@agentunion/kite 1.5.0 → 1.6.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 (574) hide show
  1. package/.claude/skills/kite/checklists/feature-checklist.md +496 -0
  2. package/.claude/skills/kite/references/event-patterns.md +180 -0
  3. package/.claude/skills/kite/references/health-check.md +202 -0
  4. package/.claude/skills/kite/references/http-service.md +199 -0
  5. package/.claude/skills/kite/references/module-md-spec.md +172 -0
  6. package/.claude/skills/kite/references/multi-connection.md +147 -0
  7. package/.claude/skills/kite/references/rpc-patterns.md +199 -0
  8. package/.claude/skills/kite/references/shutdown-sequence.md +146 -0
  9. package/.claude/skills/kite/references/stdin-protocol.md +147 -0
  10. package/.claude/skills/kite/references/test-center-integration.md +178 -0
  11. package/.claude/skills/kite/references/ws-lifecycle.md +301 -0
  12. package/.claude/skills/kite/skill.md +272 -0
  13. package/.claude/skills/kite/templates/go/README.md +20 -0
  14. package/.claude/skills/kite/templates/node/entry.js +134 -0
  15. package/.claude/skills/kite/templates/node/module.md +16 -0
  16. package/.claude/skills/kite/templates/node/server.js +351 -0
  17. package/.claude/skills/kite/templates/node/server_http.js +90 -0
  18. package/.claude/skills/kite/templates/python/entry.py +425 -0
  19. package/.claude/skills/kite/templates/python/module.md +26 -0
  20. package/.claude/skills/kite/templates/python/server.py +447 -0
  21. package/.claude/skills/kite/templates/python/server_http.py +433 -0
  22. package/cli.js +38 -4
  23. package/core/env_checker.py +96 -0
  24. package/docs/05-/347/237/255/344/277/241/350/256/244/350/257/201/344/270/216/347/224/250/346/210/267/344/277/241/346/201/257/346/216/245/345/217/243/346/226/207/346/241/243.md +507 -0
  25. package/docs/ACP/345/215/217/350/256/256/345/205/274/345/256/271/346/226/271/346/241/210.md +138 -0
  26. package/docs/CI/344/270/216AI/350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/346/226/271/346/241/210.md +75 -0
  27. package/docs/CLI/345/274/200/345/217/221/350/256/241/345/210/222.md +595 -0
  28. package/docs/ClaudeCode/350/277/234/347/250/213/345/215/217/344/275/234/347/263/273/347/273/237-/346/212/200/346/234/257/350/257/204/344/274/260.md +535 -0
  29. package/docs/ClaudeCode/350/277/234/347/250/213/345/215/217/344/275/234/347/263/273/347/273/237/350/256/276/350/256/241.md +631 -0
  30. package/docs/Evol-App/344/275/277/347/224/250KernelClient/346/224/271/351/200/240/345/256/214/346/210/220.md +342 -0
  31. package/docs/Evol/346/216/247/345/210/266/345/217/260/346/217/222/344/273/266/345/214/226/346/236/266/346/236/204/346/246/202/350/246/201.md +604 -0
  32. package/docs/Evol/346/216/247/345/210/266/345/217/260/346/217/222/344/273/266/345/214/226/346/236/266/346/236/204/350/256/276/350/256/241.md +1708 -0
  33. package/docs/Evol/346/250/241/345/235/227/350/256/276/350/256/241/346/226/271/346/241/210.md +1154 -0
  34. package/docs/Evol/351/241/265/351/235/242/346/217/222/344/273/266/345/214/226-Evol/346/250/241/345/235/227/345/256/236/346/226/275/346/214/207/345/215/227.md +403 -0
  35. package/docs/Evol/351/241/265/351/235/242/346/217/222/344/273/266/345/214/226-/345/244/226/351/203/250/346/250/241/345/235/227/346/216/245/345/205/245/346/214/207/345/215/227.md +468 -0
  36. package/docs/HTTP-RPC/350/277/201/347/247/273/345/210/260WebSocket/350/256/241/345/210/222.md +318 -0
  37. package/docs/INDEX.md +388 -0
  38. package/docs/KITE_DOCS_GUIDE.md +33 -0
  39. package/docs/Kernel-Client-Kite-Token/346/224/257/346/214/201/345/256/236/346/226/275/345/256/214/346/210/220.md +330 -0
  40. package/docs/Kernel/344/270/273/345/212/250Ping/346/234/272/345/210/266-/346/255/243/347/241/256/345/256/236/347/216/260.md +235 -0
  41. package/docs/Kernel/344/270/273/345/212/250Ping/346/234/272/345/210/266/345/256/236/346/226/275/346/200/273/347/273/223.md +204 -0
  42. package/docs/Kite/345/256/211/350/243/205/351/227/256/351/242/230/350/247/243/345/206/263/346/226/271/346/241/210.md +362 -0
  43. package/docs/Kite/346/216/247/345/210/266/345/217/260/346/217/222/344/273/266/345/214/226/346/236/266/346/236/204/350/256/276/350/256/241-/347/273/210/346/236/201/347/233/256/346/240/207.md +721 -0
  44. package/docs/Kite/346/216/247/345/210/266/345/217/260/347/273/237/344/270/200WebSocket/346/224/271/351/200/240/346/226/271/346/241/210.md +821 -0
  45. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/01-/346/241/206/346/236/266/345/256/232/344/275/215.md +12 -0
  46. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/02-/346/240/270/345/277/203/346/246/202/345/277/265.md +341 -0
  47. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/03-/347/263/273/347/273/237/346/236/266/346/236/204.md +257 -0
  48. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/04-/346/250/241/345/235/227/350/247/204/350/214/203.md +263 -0
  49. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/05-/346/240/270/345/277/203/346/265/201/347/250/213-/346/226/260/347/211/210.md +267 -0
  50. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/05-/346/240/270/345/277/203/346/265/201/347/250/213.md +149 -0
  51. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/06-/347/233/256/345/275/225/347/273/223/346/236/204.md +231 -0
  52. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/07-/346/225/260/346/215/256/346/250/241/345/236/213.md +68 -0
  53. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/08-/346/211/251/345/261/225/346/200/247.md +34 -0
  54. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/09-/344/270/216/345/205/267/344/275/223/345/272/224/347/224/250/347/232/204/345/205/263/347/263/273.md +22 -0
  55. package/docs/Kite/346/241/206/346/236/266/350/256/276/350/256/241/README.md +46 -0
  56. package/docs/Kite/347/263/273/347/273/237/345/220/257/345/212/250/346/265/201/347/250/213.md +567 -0
  57. package/docs/Launcher/345/220/257/345/212/250/345/231/250/346/226/207/346/241/243.md +745 -0
  58. package/docs/Polyglot/350/277/220/350/241/214/346/227/266/344/270/216Clawdbot/345/205/274/345/256/271/346/200/247/350/256/276/350/256/241.md +321 -0
  59. package/docs/Redis/344/270/216/346/250/241/345/235/227/345/244/232/345/256/236/344/276/213/346/226/271/346/241/210.md +438 -0
  60. package/docs/Relay-Kite-Token/350/256/244/350/257/201/345/256/236/346/226/275/345/256/214/346/210/220.md +178 -0
  61. package/docs/Relay-Token/346/235/203/351/231/220/351/205/215/347/275/256/351/252/214/350/257/201.md +113 -0
  62. package/docs/Watchdog/345/201/245/345/272/267/346/243/200/346/237/245/344/270/216WebSocket-Ping/346/234/272/345/210/266/345/210/206/346/236/220.md +367 -0
  63. package/docs/Watchdog/350/265/204/346/272/220/347/233/221/346/216/247/347/255/226/347/225/245.md +92 -0
  64. package/docs/WebSocket/346/216/245/346/224/266/345/276/252/347/216/257/346/255/273/351/224/201/351/230/262/350/214/203/350/247/204/350/214/203.md +357 -0
  65. package/docs/WebSocket/350/277/236/346/216/245/351/237/247/346/200/247/344/270/216/351/207/215/350/277/236/346/234/272/345/210/266/345/256/214/346/225/264/346/226/271/346/241/210.md +531 -0
  66. package/docs/WebSocket/350/277/236/346/216/245/351/237/247/346/200/247/346/226/271/346/241/210.md +169 -0
  67. package/docs/WebSocket/351/207/215/350/277/236/346/234/272/345/210/266/346/265/213/350/257/225/346/212/245/345/221/212.md +169 -0
  68. package/docs/WebSocket/351/207/215/350/277/236/351/200/200/351/201/277/346/234/272/345/210/266/346/226/271/346/241/210.md +394 -0
  69. package/docs/Web/346/250/241/345/235/227/344/270/216Evol/346/250/241/345/235/227/351/207/215/346/236/204/345/210/206/346/236/220.md +521 -0
  70. package/docs/audit-api-guide.md +68 -0
  71. package/docs/audit-module-design.md +315 -0
  72. package/docs/audit-module-implementation-summary.md +149 -0
  73. package/docs/llm-context-design.md +52 -0
  74. package/docs/llm-test-enhancement-plan.md +970 -0
  75. package/docs/logs-api-guide.md +42 -0
  76. package/docs/npm/345/214/205Python/347/216/257/345/242/203/347/256/241/347/220/206/346/226/271/346/241/210.md +302 -0
  77. package/docs/npm/345/217/221/345/270/203/344/270/216CLI/344/275/277/347/224/250/346/214/207/345/215/227.md +245 -0
  78. package/docs/stdio/344/270/216/347/253/257/345/217/243/345/217/221/347/216/260/351/207/215/346/236/204.md +480 -0
  79. package/docs/web/346/250/241/345/235/227/344/270/255/350/275/254/346/234/215/345/212/241/350/256/276/350/256/241/346/226/271/346/241/210.md +449 -0
  80. package/docs//344/272/213/344/273/266/345/244/204/347/220/206/346/234/272/345/210/266.md +388 -0
  81. package/docs//344/272/213/344/273/266/345/244/204/347/220/206/350/247/204/350/214/203.md +113 -0
  82. package/docs//344/272/213/344/273/266/350/256/242/351/230/205/351/200/232/351/205/215/347/254/246/350/247/204/350/214/203.md +256 -0
  83. package/docs//344/272/213/344/273/266/351/230/237/345/210/227/345/274/271/346/200/247/347/256/241/347/220/206.md +449 -0
  84. package/docs//344/272/244/344/272/222/345/274/217/347/273/210/347/253/257/346/216/247/345/210/266/346/226/271/346/241/210.md +301 -0
  85. package/docs//344/273/243/347/220/206/345/220/257/345/212/250/345/231/250/344/270/216/345/256/271/345/231/250/345/214/226.md +140 -0
  86. package/docs//344/273/243/347/240/201/347/273/237/350/256/241/345/267/245/345/205/267/344/275/277/347/224/250/350/257/264/346/230/216.md +217 -0
  87. package/docs//344/274/230/351/233/205/351/200/200/345/207/272/350/247/204/350/214/203.md +362 -0
  88. package/docs//344/276/235/350/265/226/347/256/241/347/220/206/350/257/264/346/230/216.md +141 -0
  89. package/docs//344/277/256/345/244/215/346/235/203/351/231/220/351/227/256/351/242/230-evol-RPC/346/235/203/351/231/220.md +268 -0
  90. package/docs//345/210/240/351/231/244kernel-client-example/345/256/214/346/210/220.md +309 -0
  91. package/docs//345/210/240/351/231/244ws-management/345/256/214/346/210/220.md +418 -0
  92. package/docs//345/220/257/345/212/250/344/274/230/345/214/226/346/226/271/346/241/210.md +522 -0
  93. package/docs//345/220/257/345/212/250/344/276/235/350/265/226/344/270/216/346/216/222/345/272/217.md +105 -0
  94. package/docs//345/256/211/350/243/205/350/204/232/346/234/254/345/274/200/345/217/221/346/226/207/346/241/243.md +643 -0
  95. package/docs//345/256/214/346/225/264/345/220/257/345/212/250/346/265/201/347/250/213/350/256/276/350/256/241.md +452 -0
  96. package/docs//345/256/236/347/216/260/350/247/204/345/210/222.md +195 -0
  97. package/docs//345/277/203/350/267/263/346/234/272/345/210/266/351/207/215/346/236/204/346/200/273/347/273/223.md +166 -0
  98. package/docs//346/217/241/346/211/213/350/256/244/350/257/201/346/226/271/346/241/210-/345/256/211/345/205/250/345/256/241/346/237/245.md +176 -0
  99. package/docs//346/217/241/346/211/213/350/256/244/350/257/201/346/226/271/346/241/210.md +908 -0
  100. package/docs//346/226/207/346/241/243/346/233/264/346/226/260/346/270/205/345/215/225.md +83 -0
  101. package/docs//346/227/245/345/277/227/344/270/216/345/274/202/345/270/270/345/244/204/347/220/206/350/247/204/350/214/203.md +829 -0
  102. package/docs//346/227/245/345/277/227/350/260/203/350/257/225/345/256/236/346/210/230/346/214/207/345/215/227.md +25 -0
  103. package/docs//346/236/266/346/236/204/345/200/237/351/211/264/346/214/207/345/215/227.md +977 -0
  104. package/docs//346/236/266/346/236/204/346/224/271/351/200/240-/345/256/214/346/210/220/346/200/273/347/273/223.md +440 -0
  105. package/docs//346/236/266/346/236/204/347/216/260/347/212/266/344/270/216/347/273/210/346/236/201/347/233/256/346/240/207/345/257/271/346/257/224/345/210/206/346/236/220.md +508 -0
  106. package/docs//346/250/241/345/235/227/345/244/232/350/277/236/346/216/245/346/216/247/345/210/266/347/255/226/347/225/245.md +220 -0
  107. package/docs//346/250/241/345/235/227/345/256/211/350/243/205/346/234/272/345/210/266/350/256/276/350/256/241.md +500 -0
  108. package/docs//346/250/241/345/235/227/345/274/200/345/217/221/346/214/207/345/215/227.md +1824 -0
  109. package/docs//346/250/241/345/235/227/347/203/255/346/233/264/346/226/260.md +89 -0
  110. package/docs//346/250/241/345/235/227/350/277/234/347/250/213/351/203/250/347/275/262/345/274/200/345/217/221/350/247/204/350/214/203.md +460 -0
  111. package/docs//346/250/241/345/235/227/351/200/200/345/207/272/346/234/272/345/210/266/345/256/214/346/225/264/346/226/271/346/241/210.md +303 -0
  112. package/docs//346/250/241/345/235/227/351/205/215/347/275/256/345/212/240/350/275/275/344/270/216/347/203/255/351/207/215/350/275/275/350/247/204/350/214/203.md +369 -0
  113. package/docs//346/265/213/350/257/225/344/270/255/345/277/203/346/267/273/345/212/240/346/250/241/345/235/227/346/265/213/350/257/225/346/214/207/345/215/227.md +147 -0
  114. package/docs//347/211/210/346/234/254/351/224/201/345/256/232/347/216/257/345/242/203/347/256/241/347/220/206/346/226/271/346/241/210.md +331 -0
  115. package/docs//347/216/257/345/242/203/345/217/230/351/207/217/344/270/216/350/277/220/350/241/214/346/227/266/347/233/256/345/275/225/350/256/276/350/256/241.md +499 -0
  116. package/docs//347/216/257/345/242/203/347/256/241/347/220/206/345/256/214/346/225/264/346/226/271/346/241/210.md +334 -0
  117. package/docs//350/231/232/346/213/237/346/250/241/345/235/227/344/270/255/350/275/254/346/234/215/345/212/241/345/256/214/346/225/264/350/256/276/350/256/241.md +1496 -0
  118. package/docs//350/231/232/346/213/237/347/216/257/345/242/203/345/267/245/344/275/234/345/216/237/347/220/206.md +163 -0
  119. package/docs//350/256/241/345/210/222/347/256/241/347/220/206/345/231/250/344/275/277/347/224/250/346/214/207/345/215/227.md +196 -0
  120. package/docs//350/256/244/350/257/201/346/250/241/345/235/227/344/270/216Gateway/350/256/276/350/256/241/346/226/271/346/241/210.md +765 -0
  121. package/docs//350/277/234/347/250/213/346/250/241/345/235/227/350/256/276/350/256/241-/346/227/247/347/211/210.md +1117 -0
  122. package/docs//350/277/234/347/250/213/346/250/241/345/235/227/350/256/276/350/256/241.md +451 -0
  123. package/docs//351/207/215/346/236/204/346/234/272/345/210/266/346/270/205/345/215/225.md +192 -0
  124. package/docs//351/223/276/350/267/257/350/277/275/350/270/252/346/226/271/346/241/210.md +242 -0
  125. package/docs//351/231/215/347/272/247/347/255/226/347/225/245/350/256/276/350/256/241/346/226/271/346/241/210.md +618 -0
  126. package/extensions/agents/assistant/entry.py +113 -14
  127. package/extensions/agents/assistant/module.md +27 -22
  128. package/extensions/agents/assistant/server.py +291 -105
  129. package/extensions/channels/acp_channel/entry.py +114 -16
  130. package/extensions/channels/acp_channel/module.md +4 -0
  131. package/extensions/channels/acp_channel/server.py +396 -105
  132. package/extensions/channels/phone_channel/__init__.py +1 -0
  133. package/extensions/channels/phone_channel/entry.py +503 -0
  134. package/extensions/channels/phone_channel/module.md +31 -0
  135. package/extensions/channels/phone_channel/server.py +686 -0
  136. package/extensions/event_hub_bench/entry.py +55 -12
  137. package/extensions/event_hub_bench/module.md +27 -27
  138. package/extensions/services/audit/README.md +134 -0
  139. package/extensions/services/audit/collector.py +73 -0
  140. package/extensions/services/audit/entry.py +444 -0
  141. package/extensions/services/audit/module.md +66 -0
  142. package/extensions/services/audit/query_audit.py +111 -0
  143. package/extensions/services/audit/routes/__init__.py +1 -0
  144. package/extensions/services/audit/routes/routes_audit.py +113 -0
  145. package/extensions/services/audit/schemas/__init__.py +5 -0
  146. package/extensions/services/audit/schemas/audit_event.py +92 -0
  147. package/extensions/services/audit/server.py +542 -0
  148. package/extensions/services/audit/storage.py +95 -0
  149. package/extensions/services/auth/entry.py +1054 -0
  150. package/extensions/services/auth/module.md +31 -0
  151. package/extensions/services/auth/token_store.py +185 -0
  152. package/extensions/services/auth/verifiers/evol_account.py +101 -0
  153. package/extensions/services/auth/verifiers/kite_token.py +38 -0
  154. package/extensions/services/auth/verifiers/pairing_code.py +71 -0
  155. package/extensions/services/backup/entry.py +494 -197
  156. package/extensions/services/backup/module.md +4 -2
  157. package/extensions/services/dataclaw/api/__init__.py +0 -0
  158. package/extensions/services/dataclaw/api/admin.py +367 -0
  159. package/extensions/services/dataclaw/api/copyright.py +175 -0
  160. package/extensions/services/dataclaw/api/credits.py +177 -0
  161. package/extensions/services/dataclaw/api/data.py +179 -0
  162. package/extensions/services/dataclaw/api/demands.py +269 -0
  163. package/extensions/services/dataclaw/api/feeds.py +262 -0
  164. package/extensions/services/dataclaw/api/identity.py +505 -0
  165. package/extensions/services/dataclaw/api/notifications.py +104 -0
  166. package/extensions/services/dataclaw/api/reviews.py +138 -0
  167. package/extensions/services/dataclaw/api/search.py +153 -0
  168. package/extensions/services/dataclaw/api/subscriptions.py +157 -0
  169. package/extensions/services/dataclaw/config.json5 +96 -0
  170. package/extensions/services/dataclaw/core/__init__.py +0 -0
  171. package/extensions/services/dataclaw/core/auth.py +95 -0
  172. package/extensions/services/dataclaw/core/config.py +50 -0
  173. package/extensions/services/dataclaw/core/database.py +70 -0
  174. package/extensions/services/dataclaw/entry.py +416 -0
  175. package/extensions/services/dataclaw/gofeed/351/241/271/347/233/256/346/211/200/346/234/211/346/235/203/350/275/254/347/247/273/346/265/201/347/250/213/350/257/264/346/230/216.md +309 -0
  176. package/extensions/services/dataclaw/migrate.py +283 -0
  177. package/extensions/services/dataclaw/models/__init__.py +0 -0
  178. package/extensions/services/dataclaw/module.md +49 -0
  179. package/extensions/services/dataclaw/requirements.txt +18 -0
  180. package/extensions/services/dataclaw/server.py +759 -0
  181. package/extensions/services/dataclaw/services/__init__.py +0 -0
  182. package/extensions/services/dataclaw/services/agent_service.py +132 -0
  183. package/extensions/services/dataclaw/services/credit_service.py +235 -0
  184. package/extensions/services/dataclaw/services/email_service.py +140 -0
  185. package/extensions/services/dataclaw/services/feed_service.py +259 -0
  186. package/extensions/services/dataclaw/services/notification_service.py +209 -0
  187. package/extensions/services/dataclaw/services/oauth_service.py +275 -0
  188. package/extensions/services/dataclaw/services/pricing.py +102 -0
  189. package/extensions/services/dataclaw/services/quality.py +79 -0
  190. package/extensions/services/dataclaw/services/reputation.py +142 -0
  191. package/extensions/services/dataclaw/services/sms_service.py +174 -0
  192. package/extensions/services/dataclaw/static/css/common.css +853 -0
  193. package/extensions/services/dataclaw/static/css/themes/blue.css +42 -0
  194. package/extensions/services/dataclaw/static/css/themes/dark.css +42 -0
  195. package/extensions/services/dataclaw/static/css/themes/light.css +35 -0
  196. package/extensions/services/dataclaw/static/js/api.js +103 -0
  197. package/extensions/services/dataclaw/static/js/common.js +321 -0
  198. package/extensions/services/dataclaw/static/js/i18n.js +95 -0
  199. package/extensions/services/dataclaw/static/js/pages/admin.js +152 -0
  200. package/extensions/services/dataclaw/static/js/pages/dashboard.js +82 -0
  201. package/extensions/services/dataclaw/static/js/pages/feed-detail.js +180 -0
  202. package/extensions/services/dataclaw/static/js/pages/feed-manage.js +158 -0
  203. package/extensions/services/dataclaw/static/js/theme.js +46 -0
  204. package/extensions/services/dataclaw/static/locales/en-US.json +464 -0
  205. package/extensions/services/dataclaw/static/locales/ja-JP.json +464 -0
  206. package/extensions/services/dataclaw/static/locales/zh-CN.json +464 -0
  207. package/extensions/services/dataclaw/templates/admin/index.html +90 -0
  208. package/extensions/services/dataclaw/templates/base.html +136 -0
  209. package/extensions/services/dataclaw/templates/credits/balance.html +106 -0
  210. package/extensions/services/dataclaw/templates/credits/deposit.html +164 -0
  211. package/extensions/services/dataclaw/templates/credits/history.html +90 -0
  212. package/extensions/services/dataclaw/templates/dashboard.html +52 -0
  213. package/extensions/services/dataclaw/templates/demands/create.html +78 -0
  214. package/extensions/services/dataclaw/templates/demands/detail.html +136 -0
  215. package/extensions/services/dataclaw/templates/demands/list.html +94 -0
  216. package/extensions/services/dataclaw/templates/feeds/create.html +95 -0
  217. package/extensions/services/dataclaw/templates/feeds/detail.html +110 -0
  218. package/extensions/services/dataclaw/templates/feeds/list.html +110 -0
  219. package/extensions/services/dataclaw/templates/feeds/manage.html +88 -0
  220. package/extensions/services/dataclaw/templates/index.html +185 -0
  221. package/extensions/services/dataclaw/templates/login.html +246 -0
  222. package/extensions/services/dataclaw/templates/register.html +164 -0
  223. package/extensions/services/dataclaw/templates/settings/notifications.html +96 -0
  224. package/extensions/services/dataclaw/templates/settings/profile.html +167 -0
  225. package/extensions/services/dataclaw/templates/subscriptions/list.html +64 -0
  226. package/extensions/services/dataclaw/tests/__init__.py +0 -0
  227. package/extensions/services/dataclaw/tests/conftest.py +68 -0
  228. package/extensions/services/dataclaw/tests/integration/__init__.py +0 -0
  229. package/extensions/services/dataclaw/tests/integration/test_workflows.py +239 -0
  230. package/extensions/services/dataclaw/tests/unit/__init__.py +0 -0
  231. package/extensions/services/dataclaw/tests/unit/test_admin.py +70 -0
  232. package/extensions/services/dataclaw/tests/unit/test_copyright.py +63 -0
  233. package/extensions/services/dataclaw/tests/unit/test_credits.py +80 -0
  234. package/extensions/services/dataclaw/tests/unit/test_data.py +98 -0
  235. package/extensions/services/dataclaw/tests/unit/test_demands.py +106 -0
  236. package/extensions/services/dataclaw/tests/unit/test_feeds.py +98 -0
  237. package/extensions/services/dataclaw/tests/unit/test_identity.py +88 -0
  238. package/extensions/services/dataclaw/tests/unit/test_notifications.py +36 -0
  239. package/extensions/services/dataclaw/tests/unit/test_reviews.py +68 -0
  240. package/extensions/services/dataclaw/tests/unit/test_search.py +64 -0
  241. package/extensions/services/dataclaw/tests/unit/test_subscriptions.py +65 -0
  242. package/extensions/services/dataclaw/tests/unit/test_system.py +106 -0
  243. package/extensions/services/dataclaw/utils/__init__.py +0 -0
  244. package/extensions/services/dataclaw/utils/crypto.py +38 -0
  245. package/extensions/services/dataclaw/utils/id_generator.py +52 -0
  246. package/extensions/services/dataclaw/ws/__init__.py +0 -0
  247. package/extensions/services/dataclaw/ws/handler.py +163 -0
  248. package/extensions/services/dataclaw//345/215/217/350/256/2561-/351/241/271/347/233/256/346/235/241/344/273/266/346/216/210/346/235/203/344/270/216/350/202/241/346/235/203/345/257/271/344/273/267/345/215/217/350/256/256.md +243 -0
  249. package/extensions/services/dataclaw//345/215/217/350/256/2562-/351/241/271/347/233/256/350/264/255/344/271/260/346/235/203/344/270/216/345/244/226/345/214/205/345/247/224/346/211/230/345/274/200/345/217/221/345/215/217/350/256/256.md +434 -0
  250. package/extensions/services/evol/__init__.py +1 -0
  251. package/extensions/services/evol/async_http.py +551 -0
  252. package/extensions/services/evol/auth_manager.py +602 -443
  253. package/extensions/services/evol/config.json5 +16 -0
  254. package/extensions/services/evol/entry.py +568 -406
  255. package/extensions/services/evol/evol_api.py +969 -173
  256. package/extensions/services/evol/mfa_totp.py +77 -0
  257. package/extensions/services/evol/module.md +150 -32
  258. package/extensions/services/evol/nonce_pool.py +113 -0
  259. package/extensions/services/evol/oauth_manager.py +223 -0
  260. package/extensions/services/evol/pairing.py +3 -2
  261. package/extensions/services/evol/pairing_codes.jsonl +1 -0
  262. package/extensions/services/evol/relay.py +1031 -682
  263. package/extensions/services/evol/relay_config.json5 +85 -67
  264. package/extensions/services/evol/routes/routes_llm.py +231 -0
  265. package/extensions/services/evol/routes/routes_rpc.py +90 -89
  266. package/extensions/services/evol/routes/routes_test.py +11 -4
  267. package/extensions/services/evol/server.py +2426 -875
  268. package/extensions/services/evol/static/assets/CommissionView-Cs_ys6Gm.js +1 -0
  269. package/extensions/services/evol/static/assets/CommissionView-DACet_Oo.css +1 -0
  270. package/extensions/services/evol/static/assets/IframePage-DbO11U9G.js +1 -0
  271. package/extensions/services/evol/static/assets/IframePage-c572lT8i.css +1 -0
  272. package/extensions/services/evol/static/assets/TeamDetailView-DULrGD7k.css +1 -0
  273. package/extensions/services/evol/static/assets/TeamDetailView-gy_MBEqG.js +139 -0
  274. package/extensions/services/evol/static/assets/element-plus-Bd7pZkkM.js +63 -0
  275. package/extensions/services/evol/static/assets/index-CmMONKzG.css +1 -0
  276. package/extensions/services/evol/static/assets/index-D44bBe__.js +2 -0
  277. package/extensions/services/evol/static/assets/vue-vendor-DtF-__I4.js +29 -0
  278. package/extensions/services/evol/static/index.html +16 -781
  279. package/extensions/services/evol/static/logo.png +0 -0
  280. package/extensions/services/evol/stats_manager.py +243 -240
  281. package/extensions/services/evol/web/README.md +89 -0
  282. package/extensions/services/evol/web/build.bat +44 -0
  283. package/extensions/services/evol/web/index.html +13 -0
  284. package/extensions/services/evol/web/package-lock.json +1718 -0
  285. package/extensions/services/evol/web/package.json +26 -0
  286. package/extensions/services/evol/web/public/logo.png +0 -0
  287. package/extensions/services/evol/web/src/App.vue +7 -0
  288. package/extensions/services/evol/web/src/components/layout/AppHeader.vue +202 -0
  289. package/extensions/services/evol/web/src/components/layout/AppLayout.vue +61 -0
  290. package/extensions/services/evol/web/src/components/layout/AppSidebar.vue +115 -0
  291. package/extensions/services/evol/web/src/components/login/LoginPage.vue +271 -0
  292. package/extensions/services/evol/web/src/components/team/AddMemberModal.vue +181 -0
  293. package/extensions/services/evol/web/src/components/team/GroupTreeNode.vue +156 -0
  294. package/extensions/services/evol/web/src/components/team/TeamAlertConfig.vue +221 -0
  295. package/extensions/services/evol/web/src/components/team/TeamBillModal.vue +165 -0
  296. package/extensions/services/evol/web/src/components/team/TeamMembersAndGroups.vue +499 -0
  297. package/extensions/services/evol/web/src/components/team/TeamStatsPanel.vue +907 -0
  298. package/extensions/services/evol/web/src/components/team/TreeNode.vue +331 -0
  299. package/extensions/services/evol/web/src/components/team/stats/StatsExportProgress.vue +44 -0
  300. package/extensions/services/evol/web/src/components/team/stats/StatsHeader.vue +89 -0
  301. package/extensions/services/evol/web/src/components/team/stats/StatsMemberDetail.vue +415 -0
  302. package/extensions/services/evol/web/src/components/team/stats/StatsSummary.vue +42 -0
  303. package/extensions/services/evol/web/src/components/team/stats/helpers.ts +195 -0
  304. package/extensions/services/evol/web/src/components/team/stats/stats.css +741 -0
  305. package/extensions/services/evol/web/src/components/team/stats/useStatsApi.ts +114 -0
  306. package/extensions/services/evol/web/src/components/team/stats/useStatsCharts.ts +242 -0
  307. package/extensions/services/evol/web/src/components/team/stats/useStatsExport.ts +232 -0
  308. package/extensions/services/evol/web/src/composables/useFormatters.ts +42 -0
  309. package/extensions/services/evol/web/src/composables/useTheme.ts +52 -0
  310. package/extensions/services/evol/web/src/env.d.ts +7 -0
  311. package/extensions/services/evol/web/src/i18n/en.ts +361 -0
  312. package/extensions/services/evol/web/src/i18n/index.ts +36 -0
  313. package/extensions/services/evol/web/src/i18n/zh.ts +379 -0
  314. package/extensions/services/evol/web/src/main.ts +21 -0
  315. package/extensions/services/evol/web/src/router/index.ts +81 -0
  316. package/extensions/services/evol/web/src/services/kernel-client.ts +406 -0
  317. package/extensions/services/evol/web/src/stores/auth.ts +189 -0
  318. package/extensions/services/evol/web/src/stores/connection.ts +134 -0
  319. package/extensions/services/evol/web/src/stores/pages.ts +79 -0
  320. package/extensions/services/evol/web/src/styles/base.css +213 -0
  321. package/extensions/services/evol/web/src/styles/variables.css +138 -0
  322. package/extensions/services/evol/web/src/types/rpc.ts +35 -0
  323. package/extensions/services/evol/web/src/types/token.ts +87 -0
  324. package/extensions/services/evol/web/src/views/AccountView.vue +1532 -0
  325. package/extensions/services/evol/web/src/views/AiServiceView.vue +219 -0
  326. package/extensions/services/evol/web/src/views/CommissionView.vue +1220 -0
  327. package/extensions/services/evol/web/src/views/CreditsView.vue +131 -0
  328. package/extensions/services/evol/web/src/views/EndpointView.vue +163 -0
  329. package/extensions/services/evol/web/src/views/IframePage.vue +120 -0
  330. package/extensions/services/evol/web/src/views/TeamDetailView.vue +473 -0
  331. package/extensions/services/evol/web/src/views/TeamView.vue +332 -0
  332. package/extensions/services/evol/web/tsconfig.json +31 -0
  333. package/extensions/services/evol/web/tsconfig.node.json +10 -0
  334. package/extensions/services/evol/web/vite.config.ts +49 -0
  335. package/extensions/services/evolmem/__init__.py +0 -0
  336. package/extensions/services/evolmem/entry.py +387 -0
  337. package/extensions/services/evolmem/hooks/__init__.py +0 -0
  338. package/extensions/services/evolmem/hooks/assistant_stop.py +228 -0
  339. package/extensions/services/evolmem/hooks/common.py +76 -0
  340. package/extensions/services/evolmem/hooks/pre_tool_use.py +56 -0
  341. package/extensions/services/evolmem/hooks/session_end.py +133 -0
  342. package/extensions/services/evolmem/hooks/session_start.py +229 -0
  343. package/extensions/services/evolmem/hooks/user_prompt.py +122 -0
  344. package/extensions/services/evolmem/module.md +48 -0
  345. package/extensions/services/evolmem/prompts/00-server-info.md +28 -0
  346. package/extensions/services/evolmem/prompts/01-behavior.md +46 -0
  347. package/extensions/services/evolmem/prompts/02-summary-format.md +112 -0
  348. package/extensions/services/evolmem/prompts/03-file-query.md +92 -0
  349. package/extensions/services/evolmem/prompts/04-topic-stats.md +11 -0
  350. package/extensions/services/evolmem/prompts/05-recent-topics.md +84 -0
  351. package/extensions/services/evolmem/scripts/__init__.py +0 -0
  352. package/extensions/services/evolmem/scripts/extract_keywords.py +40 -0
  353. package/extensions/services/evolmem/scripts/search_topics.py +91 -0
  354. package/extensions/services/evolmem/server.py +641 -0
  355. package/extensions/services/gateway/entry.py +964 -0
  356. package/extensions/services/gateway/module.md +29 -0
  357. package/extensions/services/gateway/nonce_pool.py +65 -0
  358. package/extensions/services/gateway/relay.py +133 -0
  359. package/extensions/services/gateway/ws_server.py +285 -0
  360. package/extensions/services/kite_console/auth_manager.py +603 -0
  361. package/extensions/services/kite_console/config.json5 +19 -0
  362. package/extensions/services/kite_console/config_loader.py +117 -0
  363. package/extensions/services/kite_console/entry.py +528 -0
  364. package/extensions/services/kite_console/evol_api.py +179 -0
  365. package/extensions/services/kite_console/evol_config.json5 +29 -0
  366. package/extensions/services/kite_console/mfa_totp.py +77 -0
  367. package/extensions/services/kite_console/migrate_tokens.py +122 -0
  368. package/extensions/services/kite_console/module.md +37 -0
  369. package/extensions/services/kite_console/nonce_pool.py +113 -0
  370. package/extensions/services/kite_console/oauth_manager.py +223 -0
  371. package/extensions/services/kite_console/pairing.py +280 -0
  372. package/extensions/services/kite_console/pairing_codes.jsonl +2 -0
  373. package/extensions/services/kite_console/relay.py +1350 -0
  374. package/extensions/services/kite_console/relay_config.json5 +96 -0
  375. package/extensions/services/kite_console/routes/__init__.py +1 -0
  376. package/extensions/services/kite_console/routes/routes_llm.py +231 -0
  377. package/extensions/services/kite_console/routes/routes_proxy.py +115 -0
  378. package/extensions/services/kite_console/routes/routes_rpc.py +89 -0
  379. package/extensions/services/kite_console/routes/routes_test.py +68 -0
  380. package/extensions/services/kite_console/server.py +1742 -0
  381. package/extensions/services/{evol → kite_console}/static/css/style.css +656 -2
  382. package/extensions/services/kite_console/static/index.html +1524 -0
  383. package/extensions/services/{evol → kite_console}/static/js/dialog.js +11 -4
  384. package/extensions/services/kite_console/static/js/evol-app.js +7740 -0
  385. package/extensions/services/{evol/static/js/evol-app.js → kite_console/static/js/evol-app.js.backup} +2777 -1949
  386. package/extensions/services/kite_console/static/js/kernel-client.js +560 -0
  387. package/extensions/services/{evol/static/js/kernel-client.js → kite_console/static/js/kernel-client.js.backup} +41 -3
  388. package/extensions/services/{evol → kite_console}/static/js/registry-tests.js +7 -0
  389. package/extensions/services/kite_console/static/js/tests/ARCHITECTURE.md +67 -0
  390. package/extensions/services/kite_console/static/js/tests/README.md +140 -0
  391. package/extensions/services/kite_console/static/js/tests/index.js +161 -0
  392. package/extensions/services/kite_console/static/js/tests/integration/auth.js +120 -0
  393. package/extensions/services/kite_console/static/js/tests/integration/channel-interaction.js +188 -0
  394. package/extensions/services/kite_console/static/js/tests/integration/elastic-connection.js +115 -0
  395. package/extensions/services/kite_console/static/js/tests/integration/full-workflow.js +43 -0
  396. package/extensions/services/kite_console/static/js/tests/integration/multi-instance.js +304 -0
  397. package/extensions/services/kite_console/static/js/tests/integration/nested-rpc.js +266 -0
  398. package/extensions/services/kite_console/static/js/tests/integration/pingpong.js +25 -0
  399. package/extensions/services/kite_console/static/js/tests/integration/redis.js +227 -0
  400. package/extensions/services/kite_console/static/js/tests/integration/registry-core.js +52 -0
  401. package/extensions/services/kite_console/static/js/tests/integration/remote-deploy.js +85 -0
  402. package/extensions/services/kite_console/static/js/tests/integration/require-init.js +96 -0
  403. package/extensions/services/kite_console/static/js/tests/integration/scaling-control.js +193 -0
  404. package/extensions/services/kite_console/static/js/tests/integration/trace.js +109 -0
  405. package/extensions/services/kite_console/static/js/tests/modules/acp_channel.js +339 -0
  406. package/extensions/services/kite_console/static/js/tests/modules/auth.js +96 -0
  407. package/extensions/services/kite_console/static/js/tests/modules/backup.js +49 -0
  408. package/extensions/services/kite_console/static/js/tests/modules/gateway.js +41 -0
  409. package/extensions/services/kite_console/static/js/tests/modules/kernel.js +90 -0
  410. package/extensions/services/kite_console/static/js/tests/modules/launcher.js +75 -0
  411. package/extensions/services/kite_console/static/js/tests/modules/multi_instance.js +129 -0
  412. package/extensions/services/kite_console/static/js/tests/modules/phone_channel.js +364 -0
  413. package/extensions/services/kite_console/static/js/tests/modules/redis.js +178 -0
  414. package/extensions/services/kite_console/static/js/tests/modules/watchdog.js +60 -0
  415. package/extensions/services/kite_console/static/js/tests/modules/web.js +70 -0
  416. package/extensions/services/kite_console/static/js/tests/test-runner.js +123 -0
  417. package/extensions/services/kite_console/static/js/virtual-list.js +200 -0
  418. package/extensions/services/kite_console/static/test_kernel_client_token.html +352 -0
  419. package/extensions/services/kite_console/stats_manager.py +247 -0
  420. package/extensions/services/logs/README.md +215 -0
  421. package/extensions/services/logs/api_logger.py +37 -0
  422. package/extensions/services/logs/baseline.py +121 -0
  423. package/extensions/services/logs/cleaner.py +76 -0
  424. package/extensions/services/logs/entry.py +449 -0
  425. package/extensions/services/logs/formatter.py +129 -0
  426. package/extensions/services/logs/module.md +38 -0
  427. package/extensions/services/logs/quick_diagnostic.py +128 -0
  428. package/extensions/services/logs/routes/__init__.py +1 -0
  429. package/extensions/services/logs/routes/routes_logs.py +218 -0
  430. package/extensions/services/logs/routes/routes_logs.py.backup +173 -0
  431. package/extensions/services/logs/scanner.py +100 -0
  432. package/extensions/services/logs/searcher.py +263 -0
  433. package/extensions/services/logs/server.py +553 -0
  434. package/extensions/services/logs.zip +0 -0
  435. package/extensions/services/model_service/config.json5 +30 -0
  436. package/extensions/services/model_service/entry.py +620 -171
  437. package/extensions/services/model_service/module.md +11 -2
  438. package/extensions/services/proxy/__init__.py +0 -0
  439. package/extensions/services/proxy/aid_manager.py +419 -0
  440. package/extensions/services/proxy/auth_bridge.py +182 -0
  441. package/extensions/services/proxy/config_store.py +79 -0
  442. package/extensions/services/proxy/entry.py +528 -0
  443. package/extensions/services/proxy/evol/presenter/agentIdPresenter.py +2 -2
  444. package/extensions/services/proxy/evol/presenter/apikeyPresenter.py +18 -28
  445. package/extensions/services/proxy/evol/presenter/configPresenter.py +80 -1127
  446. package/extensions/services/proxy/evol/presenter/userPresenter.py +71 -477
  447. package/extensions/services/proxy/evol/server/claude_proxy_async.py +11 -7
  448. package/extensions/services/proxy/module.md +151 -0
  449. package/extensions/services/proxy/server.py +952 -271
  450. package/extensions/services/redis/ALIGNMENT_CHECKLIST.md +121 -0
  451. package/extensions/services/redis/ALIGNMENT_STATUS.md +548 -0
  452. package/extensions/services/redis/config.json5 +8 -0
  453. package/extensions/services/redis/entry.py +1509 -0
  454. package/extensions/services/redis/entry.py.backup +405 -0
  455. package/extensions/services/redis/module.md +48 -0
  456. package/extensions/services/redis/redis_builtin.py +332 -0
  457. package/extensions/services/redis/redis_external.py +164 -0
  458. package/extensions/services/testUi/entry.py +446 -0
  459. package/extensions/services/testUi/module.md +18 -0
  460. package/extensions/services/testUi/ui/cards.html +131 -0
  461. package/extensions/services/testUi/ui/index.html +22 -0
  462. package/extensions/services/testUi/ui/particles.html +143 -0
  463. package/extensions/services/watchdog/entry.py +1258 -793
  464. package/extensions/services/watchdog/module.md +2 -0
  465. package/extensions/services/watchdog/monitor.py +465 -87
  466. package/extensions/services/web/auth_manager.py +602 -0
  467. package/extensions/services/web/config.json5 +11 -0
  468. package/extensions/services/web/entry.py +598 -478
  469. package/extensions/services/web/mfa_totp.py +77 -0
  470. package/extensions/services/web/module.md +16 -13
  471. package/extensions/services/web/nonce_pool.py +113 -0
  472. package/extensions/services/web/oauth_manager.py +223 -0
  473. package/extensions/services/web/pairing.py +3 -2
  474. package/extensions/services/web/pairing_codes.jsonl +1 -0
  475. package/extensions/services/web/relay.py +442 -63
  476. package/extensions/services/web/relay_config.json5 +1 -2
  477. package/extensions/services/web/routes/routes_rpc.py +6 -6
  478. package/extensions/services/web/server.py +360 -173
  479. package/extensions/services/web/static/index.html +1752 -1738
  480. package/extensions/services/web/static/js/app.js +32 -0
  481. package/extensions/services/web/static/js/kernel-client.js +48 -9
  482. package/extensions/services/web/vendor/bluetooth/audio.py +1 -1
  483. package/extensions/services/web/vendor/config.py +2 -2
  484. package/extensions/services/web/vendor/storage/identity.py +1 -1
  485. package/kernel/entry.py +77 -23
  486. package/kernel/event_hub.py +1122 -74
  487. package/kernel/module.md +2 -1
  488. package/kernel/registry_store.py +208 -11
  489. package/kernel/rpc_router.py +1400 -491
  490. package/kernel/server.py +1021 -134
  491. package/kite_cli/__init__.py +9 -1
  492. package/kite_cli/builders/__init__.py +4 -0
  493. package/kite_cli/builders/base.py +67 -0
  494. package/kite_cli/builders/custom.py +31 -0
  495. package/kite_cli/builders/detector.py +56 -0
  496. package/kite_cli/builders/go.py +34 -0
  497. package/kite_cli/builders/gradle.py +41 -0
  498. package/kite_cli/builders/maven.py +36 -0
  499. package/kite_cli/builders/npm.py +44 -0
  500. package/kite_cli/builders/python.py +37 -0
  501. package/kite_cli/commands/BUILD_GUIDE.md +109 -0
  502. package/kite_cli/commands/build.py +142 -0
  503. package/kite_cli/commands/check.py +60 -0
  504. package/kite_cli/commands/config.py +156 -0
  505. package/kite_cli/commands/deps.py +58 -0
  506. package/kite_cli/commands/deps_install.py +7 -7
  507. package/kite_cli/commands/disable.py +162 -0
  508. package/kite_cli/commands/enable.py +162 -0
  509. package/kite_cli/commands/export.py +96 -0
  510. package/kite_cli/commands/import_cmd.py +110 -0
  511. package/kite_cli/commands/install.py +50 -23
  512. package/kite_cli/commands/install_skill.py +107 -0
  513. package/kite_cli/commands/list.py +128 -31
  514. package/kite_cli/commands/outdated.py +202 -0
  515. package/kite_cli/commands/search.py +33 -17
  516. package/kite_cli/commands/update.py +115 -2
  517. package/kite_cli/commands/venv_setup.py +6 -6
  518. package/kite_cli/commands/why.py +48 -0
  519. package/kite_cli/core/config_manager.py +145 -0
  520. package/kite_cli/core/downloader.py +32 -2
  521. package/kite_cli/main.py +153 -7
  522. package/kite_cli/utils/colors.py +153 -0
  523. package/kite_cli/utils/dependency_graph.py +209 -0
  524. package/kite_cli/utils/process.py +55 -0
  525. package/kite_cli/utils/progress.py +207 -0
  526. package/kite_cli/utils/table.py +101 -0
  527. package/launcher/count_lines.py +192 -43
  528. package/launcher/entry.py +4543 -2802
  529. package/launcher/logging_setup.py +54 -1
  530. package/launcher/module.md +32 -6
  531. package/launcher/module_scanner.py +93 -20
  532. package/launcher/process_manager.py +355 -76
  533. package/main.py +6 -0
  534. package/package.json +4 -1
  535. package/requirements.txt +41 -38
  536. package/scripts/auto-fix-deps.py +128 -0
  537. package/scripts/env-manager.js +25 -2
  538. package/scripts/final-test.js +78 -0
  539. package/scripts/setup-python-env.js +700 -191
  540. package/scripts/test-alluser.js +48 -0
  541. package/scripts/test-different-version.js +86 -0
  542. package/scripts/test-direct.js +63 -0
  543. package/scripts/test-extract-installer.js +28 -0
  544. package/scripts/test-install-log.js +54 -0
  545. package/scripts/test-installer.js +39 -0
  546. package/scripts/test-integration.js +250 -0
  547. package/scripts/test-real-install.js +210 -0
  548. package/scripts/test-targetdir.js +49 -0
  549. package/scripts/test-venv-real.js +47 -0
  550. package/scripts/test-venv-simple.js +57 -0
  551. package/scripts/test-wait.js +49 -0
  552. package/scripts/test-with-log.js +63 -0
  553. package/extensions/services/evol/config.yaml +0 -149
  554. package/extensions/services/evol/routes/routes_management_ws.py +0 -127
  555. package/extensions/services/evol/static/index_evol.html +0 -14
  556. package/extensions/services/evol/static/js/app.js +0 -6304
  557. package/extensions/services/evol/static/js/auth.js +0 -326
  558. package/extensions/services/evol/static/js/evol-app-fixed.js +0 -50
  559. package/extensions/services/evol/static/js/evol-app.js.bak +0 -1800
  560. package/extensions/services/evol/static/js/kernel-client-example.js +0 -228
  561. package/extensions/services/evol/static/js/main.js +0 -141
  562. package/extensions/services/evol/static/js/stats.js +0 -217
  563. package/extensions/services/evol/static/js/token-manager.js +0 -175
  564. package/extensions/services/proxy/CHANGELOG_20260308.md +0 -258
  565. package/extensions/services/proxy/_fix_prints.py +0 -133
  566. package/extensions/services/proxy/_fix_prints2.py +0 -87
  567. package/extensions/services/proxy/console_auth.py +0 -109
  568. package/extensions/services/proxy/logs/websocket.log +0 -260
  569. package/extensions/services/proxy/main.py +0 -240
  570. package/extensions/services/proxy/requirements.txt +0 -13
  571. package/extensions/services/web/config.yaml +0 -149
  572. /package/extensions/services/{evol → kite_console}/static/pairing.html +0 -0
  573. /package/extensions/services/{evol → kite_console}/static/test_registry.html +0 -0
  574. /package/extensions/services/{evol → kite_console}/static/test_relay.html +0 -0
@@ -0,0 +1,139 @@
1
+ import{B as yn,L as oe,P as D,R as ht,aB as Rf,u as ie,X as ze,Y as St,c as Nt,H as ne,k as pl,Z as Q,e as Me,I as Xn,O as ct,ag as bt,F as lr,ab as xr,Q as Yn,n as jm,j as Qc,a3 as TT,M as Ze,V as mr,_ as Gr,aF as Rd,ao as ST,a9 as Ko,aA as CT,ay as ET,az as AT}from"./vue-vendor-DtF-__I4.js";import{_ as bi,u as Do,a as Mo,b as ko}from"./index-D44bBe__.js";import{E as Oe,a as Bu}from"./element-plus-Bd7pZkkM.js";const Rr=t=>`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`,et=t=>{const e=Math.abs(t||0);return e>=1e4?(e/1e4).toFixed(1)+"w":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString()},Ni=t=>{if(!t&&t!==0)return"0";const e=Math.abs(t);return e>=1e6?(e/1e6).toFixed(2)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":e.toLocaleString()},Ch=t=>t===0?"gold":t===1?"silver":t===2?"bronze":"",bT=t=>({chatbot:"Chatbot",codex:"Codex",claudecode:"Claude Code",gemini:"Gemini",openclaw:"OpenClaw"})[t]||t,Pd=t=>({claudecode:"Claude Code",codex:"Codex",gemini:"Gemini",chatbot:"ChatBot"})[t]||t,DT=t=>t.type==="chatbot"?`¥${(Math.abs(t.credits||0)/1e3).toFixed(2)}`:`$${t.cost?t.cost.toFixed(2):"0.00"}`,Uu=t=>{if(t==null)return 0;if(typeof t=="number")return t;if(typeof t=="object"){if(t.total_tokens)return t.total_tokens;const e=t.input_tokens||0,r=t.output_tokens||0;return e>0||r>0?e+r:(t.input_token||0)+(t.output_token||0)}return 0},Hu=t=>t==null||typeof t=="number"?0:typeof t=="object"&&(t.prompt_tokens||t.input_tokens||t.input_token)||0,Gu=t=>t==null||typeof t=="number"?0:typeof t=="object"&&(t.completion_tokens||t.output_tokens||t.output_token)||0,Wu=t=>t==null?0:typeof t=="object"&&t.cache_creation_input_tokens||0,Vu=t=>t==null?0:typeof t=="object"&&t.cache_read_input_tokens||0,Jm=t=>{if(!t)return"";const e=new Date(t);return`${e.getMonth()+1}/${e.getDate()}`},Eh=(t,e)=>{const r=new Date;let n,a=Rr(r);if(t==="month")n=`${r.getFullYear()}-${String(r.getMonth()+1).padStart(2,"0")}-01`;else if(t==="lastMonth"){const i=new Date(r.getFullYear(),r.getMonth()-1,1),o=new Date(r.getFullYear(),r.getMonth(),0);n=Rr(i),a=Rr(o)}else if(t==="week"){const i=r.getDay()||7,o=new Date(r);o.setDate(r.getDate()-(i-1)),n=Rr(o)}else if(t==="lastWeek"){const i=r.getDay()||7,o=new Date(r);o.setDate(r.getDate()-i-6);const s=new Date(r);s.setDate(r.getDate()-i),n=Rr(o),a=Rr(s)}else if(t==="custom")n=e,a=e;else{const i=parseInt(t),o=new Date;o.setDate(o.getDate()-i),n=Rr(o)}return{startDate:n,endDate:a}},MT=(t,e,r)=>t==="realtime"||e==="custom"&&r?1:e==="lastWeek"?7:parseInt(e)||0,Fd=t=>t.reduce((e,r)=>(e.totalCredits+=r.totalCredits||0,e.totalCount+=r.totalCount||0,e.chatbotCredits+=r.chatbotCredits||0,e.codexCredits+=r.codexCredits||0,e.claudecodeCredits+=r.claudecodeCredits||0,e.geminiCredits+=r.geminiCredits||0,e.openclawCredits+=r.openclawCredits||0,e),{totalCredits:0,totalCount:0,chatbotCredits:0,codexCredits:0,claudecodeCredits:0,geminiCredits:0,openclawCredits:0}),an={chatbot:"#0ea5e9",codex:"#fbbf24",claudecode:"#f97316",gemini:"#ec4899",openclaw:"#d97706",total:"#374151"},Od=["group-color-1","group-color-2","group-color-3","group-color-4","group-color-5","group-color-6"],Nd=t=>Od[t%Od.length],kT={class:"stats-header"},IT={class:"title-with-toggle"},LT=["title"],RT={class:"header-controls"},PT={class:"mode-selector"},FT={key:0,class:"date-controls"},OT=["value"],NT={key:0,class:"custom-date-controls"},BT=["value","max"],UT=["disabled"],HT={key:1,class:"realtime-indicator"},GT=yn({__name:"StatsHeader",props:{statsMode:{},dateRange:{},selectedDate:{},loading:{type:Boolean},isStatsExpanded:{type:Boolean}},emits:["switchMode","toggleStats","update:dateRange","update:selectedDate","dateRangeChange","customDateChange","prevDay","nextDay","refresh"],setup(t){const e=t,r=new Date;r.setDate(r.getDate()-1);const n=Rr(r),a=Nt(()=>{if(!e.selectedDate)return!0;const i=new Date(e.selectedDate),o=new Date;return o.setDate(o.getDate()-1),i>=o});return(i,o)=>(ne(),oe("div",kT,[D("div",IT,[o[9]||(o[9]=D("h3",{class:"stats-title"},"团队积分统计",-1)),D("button",{class:"toggle-btn",onClick:o[0]||(o[0]=s=>i.$emit("toggleStats")),title:t.isStatsExpanded?"收起":"展开"},[D("span",{class:ht(["toggle-icon",{rotated:!t.isStatsExpanded}])},"▼",2)],8,LT)]),D("div",RT,[D("div",PT,[D("button",{class:ht(["mode-btn",{active:t.statsMode==="realtime"}]),onClick:o[1]||(o[1]=s=>i.$emit("switchMode","realtime"))}," 今日实时 ",2),D("button",{class:ht(["mode-btn",{active:t.statsMode==="history"}]),onClick:o[2]||(o[2]=s=>i.$emit("switchMode","history"))}," 历史数据 ",2),D("button",{class:ht(["mode-btn",{active:t.statsMode==="group"}]),onClick:o[3]||(o[3]=s=>i.$emit("switchMode","group"))}," 分组 ",2)]),t.statsMode==="history"||t.statsMode==="group"?(ne(),oe("div",FT,[D("select",{value:t.dateRange,onChange:o[4]||(o[4]=s=>{i.$emit("update:dateRange",s.target.value),i.$emit("dateRangeChange")}),class:"range-select"},[...o[10]||(o[10]=[Rf('<option value="7">最近7天</option><option value="30">最近30天</option><option value="week">本周</option><option value="lastWeek">上周</option><option value="month">本月</option><option value="lastMonth">上月</option><option value="custom">指定日期</option>',7)])],40,OT),t.dateRange==="custom"?(ne(),oe("div",NT,[D("button",{onClick:o[5]||(o[5]=s=>i.$emit("prevDay")),class:"date-nav-btn",title:"前一日"},"◀"),D("input",{type:"date",value:t.selectedDate,onChange:o[6]||(o[6]=s=>{i.$emit("update:selectedDate",s.target.value),i.$emit("customDateChange")}),class:"date-picker",max:ie(n)},null,40,BT),D("button",{onClick:o[7]||(o[7]=s=>i.$emit("nextDay")),class:"date-nav-btn",disabled:a.value,title:"后一日"},"▶",8,UT)])):ze("",!0)])):t.statsMode==="realtime"?(ne(),oe("div",HT,[...o[11]||(o[11]=[D("span",{class:"pulse-dot"},null,-1),St(" 实时数据 ",-1)])])):ze("",!0),D("button",{class:ht(["refresh-btn",{loading:t.loading}]),onClick:o[8]||(o[8]=s=>i.$emit("refresh")),title:"刷新数据"},[D("span",{class:ht(["refresh-icon",{spinning:t.loading}])},"↻",2)],2)])]))}}),WT={class:"stats-summary-row"},VT={class:"summary-card compact"},zT={class:"summary-value primary"},$T={class:"summary-subtitle"},YT={class:"summary-card compact"},XT={class:"summary-value"},KT={class:"summary-subtitle"},ZT={class:"summary-card compact pie-card"},qT=yn({__name:"StatsSummary",props:{summary:{},statsDays:{},pieChartRef:{}},emits:["pieMount"],setup(t,{expose:e,emit:r}){const n=Me(null);e({pieChartEl:n});const a=r;return pl(()=>{n.value&&a("pieMount",n.value)}),(i,o)=>(ne(),oe("div",WT,[D("div",VT,[o[0]||(o[0]=D("div",{class:"summary-label"},"团队总消耗",-1)),D("div",zT,Q(ie(et)(t.summary.totalCredits)),1),D("div",$T,Q(t.summary.totalCount||0)+" 次使用",1)]),D("div",YT,[o[1]||(o[1]=D("div",{class:"summary-label"},"团队成员",-1)),D("div",XT,Q(t.summary.memberCount||0),1),D("div",KT,Q(t.statsDays)+" 天统计",1)]),D("div",ZT,[D("div",{ref_key:"pieChartEl",ref:n,class:"pie-chart-container"},null,512)])]))}}),jT={class:"dialog-header"},JT={key:0,class:"dialog-member-info"},QT={class:"dialog-member-name"},eS={class:"dialog-member-phone"},tS={key:0,class:"dialog-loading"},rS={key:1,class:"detail-content"},nS={class:"detail-summary-row"},aS={class:"detail-summary-card"},iS={class:"dsc-value accent"},oS={class:"detail-summary-card"},sS={class:"dsc-value"},lS={key:0,class:"detail-summary-card"},uS={class:"dsc-value"},fS={key:0,class:"model-groups"},hS={class:"mtg-header"},cS={class:"mtg-summary"},vS={class:"mtg-models"},dS={class:"mmc-top"},pS={class:"mmc-name"},gS={class:"mmc-credits"},mS={class:"mmc-meta"},_S={key:0,class:"mmc-tokens"},yS={class:"mt-val"},xS={class:"mt-val"},wS={class:"mt-val"},TS={class:"mt-val"},SS={class:"mt-val"},CS={key:1,class:"detail-empty"},ES={key:2,class:"detail-empty"},AS=yn({__name:"StatsMemberDetail",props:{visible:{type:Boolean},loading:{type:Boolean},member:{},details:{}},emits:["close"],setup(t){const e=t,r=Nt(()=>{var i,o;if(!((o=(i=e.details)==null?void 0:i.modelDetails)!=null&&o.length))return[];const n={},a=["chatbot","codex","claudecode","gemini","openclaw"];for(const s of e.details.modelDetails){const l=s.type||"unknown";n[l]||(n[l]={type:l,label:bT(l),models:[],totalCredits:0,totalCount:0}),n[l].models.push(s),n[l].totalCredits+=Math.abs(s.credits||0),n[l].totalCount+=s.count||0}return Object.values(n).sort((s,l)=>{const u=a.indexOf(s.type),f=a.indexOf(l.type);return(u===-1?999:u)-(f===-1?999:f)})});return(n,a)=>{const i=bt("el-dialog");return ne(),Xn(i,{"model-value":t.visible,title:"",width:"720px","close-on-click-modal":!0,"close-on-press-escape":!0,onClose:a[0]||(a[0]=o=>n.$emit("close")),class:"member-detail-dialog","append-to-body":""},{header:ct(()=>[D("div",jT,[a[1]||(a[1]=D("h3",{class:"dialog-title"},"成员消耗详情",-1)),t.member?(ne(),oe("div",JT,[D("span",QT,Q(t.member.memberNickname||t.member.nickName),1),D("span",eS,Q(t.member.phonenumber||t.member.userName),1)])):ze("",!0)])]),default:ct(()=>[t.loading?(ne(),oe("div",tS,[...a[2]||(a[2]=[D("div",{class:"dialog-spinner"},null,-1),D("span",null,"加载中...",-1)])])):t.details?(ne(),oe("div",rS,[D("div",nS,[D("div",aS,[a[3]||(a[3]=D("div",{class:"dsc-label"},"总消耗积分",-1)),D("div",iS,Q(ie(et)(t.details.totalCredits)),1)]),D("div",oS,[a[5]||(a[5]=D("div",{class:"dsc-label"},"使用次数",-1)),D("div",sS,[St(Q(t.details.totalCount||0)+" ",1),a[4]||(a[4]=D("small",null,"次",-1))])]),t.details.totalUsage!==void 0&&t.details.totalUsage!==null?(ne(),oe("div",lS,[a[6]||(a[6]=D("div",{class:"dsc-label"},"总Token数",-1)),D("div",uS,Q(ie(Ni)(ie(Uu)(t.details.totalUsage))),1)])):ze("",!0)]),r.value.length>0?(ne(),oe("div",fS,[a[12]||(a[12]=D("h4",{class:"model-groups-title"},"模型消耗明细",-1)),(ne(!0),oe(lr,null,xr(r.value,o=>(ne(),oe("div",{key:o.type,class:"model-type-group"},[D("div",hS,[D("span",{class:ht(["mtg-badge",o.type])},Q(o.label),3),D("span",cS,Q(ie(et)(o.totalCredits))+" 积分 · "+Q(o.totalCount)+" 次",1)]),D("div",vS,[(ne(!0),oe(lr,null,xr(o.models,(s,l)=>(ne(),oe("div",{key:l,class:"mtg-model-card"},[D("div",dS,[D("span",pS,Q(s.modelName),1),D("span",gS,Q(ie(et)(s.credits))+" 积分",1)]),D("div",mS,[D("span",null,"使用 "+Q(s.count||0)+" 次",1),D("span",null,Q(ie(DT)(s)),1)]),s.usage!==void 0&&s.usage!==null?(ne(),oe("div",_S,[D("div",{class:ht(["mmc-token","t-input"])},[a[7]||(a[7]=D("span",{class:"mt-label"},"输入",-1)),D("span",yS,Q(ie(Hu)(s.usage)>0?ie(Ni)(ie(Hu)(s.usage)):"-"),1)]),D("div",{class:ht(["mmc-token","t-output"])},[a[8]||(a[8]=D("span",{class:"mt-label"},"输出",-1)),D("span",xS,Q(ie(Gu)(s.usage)>0?ie(Ni)(ie(Gu)(s.usage)):"-"),1)]),D("div",{class:ht(["mmc-token","t-cache-w"])},[a[9]||(a[9]=D("span",{class:"mt-label"},"缓存写",-1)),D("span",wS,Q(ie(Wu)(s.usage)>0?ie(Ni)(ie(Wu)(s.usage)):"-"),1)]),D("div",{class:ht(["mmc-token","t-cache-r"])},[a[10]||(a[10]=D("span",{class:"mt-label"},"缓存读",-1)),D("span",TS,Q(ie(Vu)(s.usage)>0?ie(Ni)(ie(Vu)(s.usage)):"-"),1)]),D("div",{class:ht(["mmc-token","t-total"])},[a[11]||(a[11]=D("span",{class:"mt-label"},"合计",-1)),D("span",SS,Q(ie(Ni)(ie(Uu)(s.usage))),1)])])):ze("",!0)]))),128))])]))),128))])):(ne(),oe("div",CS,[...a[13]||(a[13]=[D("p",null,"暂无模型消耗详情数据",-1)])]))])):(ne(),oe("div",ES,[...a[14]||(a[14]=[D("p",null,"加载详情失败",-1)])]))]),_:1},8,["model-value"])}}}),bS=bi(AS,[["__scopeId","data-v-643dad20"]]),DS={key:0,class:"export-progress-overlay"},MS={class:"export-progress-dialog"},kS={class:"progress-content"},IS={class:"progress-info"},LS={class:"current-member"},RS={class:"progress-text"},PS={class:"progress-bar-container"},FS={class:"progress-bar-bg"},OS={class:"progress-percentage"},NS=yn({__name:"StatsExportProgress",props:{progress:{}},setup(t){return(e,r)=>t.progress.visible?(ne(),oe("div",DS,[D("div",MS,[D("div",kS,[r[1]||(r[1]=Rf('<div class="cute-loader"><div class="loader-circle"></div><div class="loader-face"><div class="loader-eyes"><div class="eye left"></div><div class="eye right"></div></div><div class="loader-mouth"></div></div></div><h3 class="progress-title">正在导出数据...</h3>',2)),D("div",IS,[D("span",LS,Q(t.progress.currentMember),1),D("span",RS,Q(t.progress.current)+" / "+Q(t.progress.total),1)]),D("div",PS,[D("div",FS,[D("div",{class:"progress-bar-fill",style:Yn({width:t.progress.percentage+"%"})},[...r[0]||(r[0]=[D("div",{class:"progress-bar-shine"},null,-1)])],4)]),D("div",OS,Q(t.progress.percentage)+"%",1)]),r[2]||(r[2]=D("div",{class:"progress-tip"},"正在获取成员详细数据,请稍候...",-1))])])])):ze("",!0)}});function BS(t){const e=Do(),r=Mo();async function n(_,y={}){return e.callRpc(`evol.team.${_}`,{kiteToken:r.kiteToken,teamId:t(),...y})}function a(_){return _!=null&&_.success?_.data:null}async function i(){const _=await n("get_today_stats");return a(_)}async function o(){const _=await n("get_today_members_stats"),y=a(_);return(y==null?void 0:y.members)||y||[]}async function s(_={}){const y=await n("get_hourly_stats",_);return a(y)}async function l(_){const y=await n("get_credits_stats",_);return a(y)}async function u(_){const y=await n("get_members_ranking",_),w=a(y);return(w==null?void 0:w.ranking)||w||[]}async function f(_){const y=await n("get_trend",_);return a(y)}async function h(_={}){const y=await n("get_weekly_stats",_);return a(y)}async function v(_={}){const y=await n("get_monthly_stats",_);return a(y)}async function c(_){const y=await n("get_credits_stats",{startDate:_,endDate:_});return a(y)}async function d(_){const y=await n("get_members_ranking",{startDate:_,endDate:_,limit:999}),w=a(y);return(w==null?void 0:w.ranking)||w||[]}async function p(_={}){const y=await n("get_today_group_stats",_);return a(y)}async function g(_){const y=await n("get_history_group_stats",_);return a(y)}async function m(_){const y=await n("get_user_today_models",{userId:_});return a(y)}return{getTodayStats:i,getTodayMembersStats:o,getHourlyStats:s,getCreditsStats:l,getMembersRanking:u,getTrend:f,getWeeklyStats:h,getMonthlyStats:v,getStatsByDate:c,getMembersRankingByDate:d,getTodayGroupStats:p,getHistoryGroupStats:g,getUserTodayModels:m}}/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */var e0=function(t,e){return e0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},e0(t,e)};function be(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");e0(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var US=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),HS=function(){function t(){this.browser=new US,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 t}(),Fe=new HS;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Fe.wxa=!0,Fe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Fe.worker=!0:!Fe.hasGlobalWindow||"Deno"in window?(Fe.node=!0,Fe.svgSupported=!0):GS(navigator.userAgent,Fe);function GS(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var fv=12,WS="sans-serif",yi=fv+"px "+WS,VS=20,zS=100,$S="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function YS(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),a=(t.charCodeAt(r)-VS)/zS;e[n]=a}return e}var XS=YS($S),Io={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var a=Io.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==n&&(e=t.font=n||yi),t.measureText(r);r=r||"",n=n||yi;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||fv,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=XS[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},Qm=Ia(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),e_=Ia(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),gl=Object.prototype.toString,Pf=Array.prototype,KS=Pf.forEach,ZS=Pf.filter,hv=Pf.slice,qS=Pf.map,Bd=(function(){}).constructor,Ll=Bd?Bd.prototype:null,cv="__proto__",jS=2311;function t_(){return jS++}function vv(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Ye(t){if(t==null||typeof t!="object")return t;var e=t,r=gl.call(t);if(r==="[object Array]"){if(!bs(t)){e=[];for(var n=0,a=t.length;n<a;n++)e[n]=Ye(t[n])}}else if(e_[r]){if(!bs(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var n=0,a=t.length;n<a;n++)e[n]=t[n]}}}else if(!Qm[r]&&!bs(t)&&!Xs(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==cv&&(e[o]=Ye(t[o]))}return e}function je(t,e,r){if(!Pe(e)||!Pe(t))return r?Ye(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==cv){var a=t[n],i=e[n];Pe(i)&&Pe(a)&&!ke(i)&&!ke(a)&&!Xs(i)&&!Xs(a)&&!Ud(i)&&!Ud(a)&&!bs(i)&&!bs(a)?je(a,i,r):(r||!(n in t))&&(t[n]=Ye(e[n]))}return t}function me(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==cv&&(t[r]=e[r]);return t}function Qe(t,e,r){for(var n=_t(e),a=0,i=n.length;a<i;a++){var o=n[a];t[o]==null&&(t[o]=e[o])}return t}function ut(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function JS(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);t.prototype.constructor=t,t.superClass=e}function Nn(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&t[i]==null&&(t[i]=e[i])}else Qe(t,e)}function br(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function H(t,e,r){if(t&&e)if(t.forEach&&t.forEach===KS)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function Re(t,e,r){if(!t)return[];if(!e)return dv(t);if(t.map&&t.map===qS)return t.map(e,r);for(var n=[],a=0,i=t.length;a<i;a++)n.push(e.call(r,t[a],a,t));return n}function Ia(t,e,r,n){if(t&&e){for(var a=0,i=t.length;a<i;a++)r=e.call(n,r,t[a],a,t);return r}}function Yt(t,e,r){if(!t)return[];if(!e)return dv(t);if(t.filter&&t.filter===ZS)return t.filter(e,r);for(var n=[],a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)&&n.push(t[a]);return n}function _t(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function QS(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(hv.call(arguments)))}}var dt=Ll&&Ue(Ll.bind)?Ll.call.bind(Ll.bind):QS;function It(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(hv.call(arguments)))}}function ke(t){return Array.isArray?Array.isArray(t):gl.call(t)==="[object Array]"}function Ue(t){return typeof t=="function"}function Ie(t){return typeof t=="string"}function t0(t){return gl.call(t)==="[object String]"}function pt(t){return typeof t=="number"}function Pe(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Ud(t){return!!Qm[gl.call(t)]}function Dr(t){return!!e_[gl.call(t)]}function Xs(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Ff(t){return t.colorStops!=null}function eC(t){return t.image!=null}function zu(t){return t!==t}function Ks(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function We(t,e){return t??e}function As(t,e,r){return t??e??r}function dv(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return hv.apply(t,e)}function r_(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function ta(t,e){if(!t)throw new Error(e)}function Ln(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var n_="__ec_primitive__";function r0(t){t[n_]=!0}function bs(t){return t[n_]}var tC=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return _t(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),a_=typeof Map=="function";function rC(){return a_?new Map:new tC}var nC=function(){function t(e){var r=ke(e);this.data=rC();var n=this;e instanceof t?e.each(a):e&&H(e,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,a){e.call(r,n,a)})},t.prototype.keys=function(){var e=this.data.keys();return a_?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function Ve(t){return new nC(t)}function aC(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var a=t.length,n=0;n<e.length;n++)r[n+a]=e[n];return r}function Of(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&me(r,e),r}function i_(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function xi(t,e){return t.hasOwnProperty(e)}function Er(){}var iC=180/Math.PI;function Lo(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function oC(t){return[t[0],t[1]]}function Hd(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function sC(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function lC(t){return Math.sqrt(uC(t))}function uC(t){return t[0]*t[0]+t[1]*t[1]}function Ah(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function fC(t,e){var r=lC(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function n0(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var a0=n0;function hC(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ho=hC;function bh(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function en(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function io(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function oo(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Bi=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),cC=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Bi(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,e),this.handler.dispatchToElement(new Bi(r,e),"drag",e.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Bi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Bi(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Bi(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Bi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),Bn=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==r&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t}(),vC=Math.log(2);function i0(t,e,r,n,a,i){var o=n+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/vC);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&a||(h+=(c%2?-1:1)*t[r][v]*i0(t,e-1,f,u,a|d,i),c++)}return i[o]=h,h}function Gd(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},a=i0(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*i0(r,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var Wd="___zrEVENTSAVED",Dh=[];function dC(t,e,r,n,a){return o0(Dh,e,n,a,!0)&&o0(t,r,Dh[0],Dh[1])}function o0(t,e,r,n,a){if(e.getBoundingClientRect&&Fe.domSupported&&!o_(e)){var i=e[Wd]||(e[Wd]={}),o=pC(e,i),s=gC(o,i,a);if(s)return s(t,r,n),!0}return!1}function pC(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return r}function gC(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=r?Gd(s,o):Gd(o,s))}function o_(t){return t.nodeName.toUpperCase()==="CANVAS"}var mC=/([&<>"'])/g,_C={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function wr(t){return t==null?"":(t+"").replace(mC,function(e,r){return _C[r]})}var yC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Mh=[],xC=Fe.browser.firefox&&+Fe.browser.version.split(".")[0]<39;function s0(t,e,r,n){return r=r||{},n?Vd(t,e,r):xC&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Vd(t,e,r),r}function Vd(t,e,r){if(Fe.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(o_(t)){var i=t.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(o0(Mh,t,n,a)){r.zrX=Mh[0],r.zrY=Mh[1];return}}r.zrX=r.zrY=0}function pv(t){return t||window.event}function Yr(t,e,r){if(e=pv(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&s0(t,o,e,r)}else{s0(t,e,e,r);var i=wC(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&yC.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function wC(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function TC(t,e,r,n){t.addEventListener(e,r,n)}function SC(t,e,r,n){t.removeEventListener(e,r,n)}var s_=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},CC=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:r,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=s0(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in kh)if(kh.hasOwnProperty(r)){var n=kh[r](this._track,e);if(n)return n}},t}();function zd(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function EC(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var kh={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,a=(t[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=zd(n)/zd(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=EC(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function co(){return[1,0,0,1,0,0]}function gv(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function AC(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function vo(t,e,r){var n=e[0]*r[0]+e[2]*r[1],a=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function l0(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function mv(t,e,r,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),h=Math.cos(r);return t[0]=a*h+s*f,t[1]=-a*f+s*h,t[2]=i*h+l*f,t[3]=-i*f+h*l,t[4]=h*(o-n[0])+f*(u-n[1])+n[0],t[5]=h*(u-n[1])-f*(o-n[0])+n[1],t}function bC(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function _v(t,e){var r=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=r*o-i*n;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*a)*l,t[5]=(i*a-r*s)*l,t):null}var Ne=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var i=1-a;e.x=i*r.x+a*n.x,e.y=i*r.y+a*n.y},t}(),Rl=Math.min,Pl=Math.max,Wa=new Ne,Va=new Ne,za=new Ne,$a=new Ne,Zo=new Ne,qo=new Ne,Je=function(){function t(e,r,n,a){n<0&&(e=e+n,n=-n),a<0&&(r=r+a,a=-a),this.x=e,this.y=r,this.width=n,this.height=a}return t.prototype.union=function(e){var r=Rl(e.x,this.x),n=Rl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pl(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pl(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,a=e.height/r.height,i=co();return l0(i,i,[-r.x,-r.y]),bC(i,i,[n,a]),l0(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(i<l||u<a||s<f||h<o);if(r){var c=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-a),m=Math.abs(s-f),_=Math.abs(h-o),y=Math.min(p,g),w=Math.min(m,_);i<l||u<a?y>d&&(d=y,p<g?Ne.set(qo,-p,0):Ne.set(qo,g,0)):y<c&&(c=y,p<g?Ne.set(Zo,p,0):Ne.set(Zo,-g,0)),s<f||h<o?w>d&&(d=w,m<_?Ne.set(qo,0,-m):Ne.set(qo,0,_)):y<c&&(c=y,m<_?Ne.set(Zo,0,m):Ne.set(Zo,0,-_))}return r&&Ne.copy(r,v?Zo:qo),v},t.prototype.contain=function(e,r){var n=this;return e>=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=r.x*a+o,e.y=r.y*i+s,e.width=r.width*a,e.height=r.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}Wa.x=za.x=r.x,Wa.y=$a.y=r.y,Va.x=$a.x=r.x+r.width,Va.y=za.y=r.y+r.height,Wa.transform(n),$a.transform(n),Va.transform(n),za.transform(n),e.x=Rl(Wa.x,Va.x,za.x,$a.x),e.y=Rl(Wa.y,Va.y,za.y,$a.y);var l=Pl(Wa.x,Va.x,za.x,$a.x),u=Pl(Wa.y,Va.y,za.y,$a.y);e.width=l-e.x,e.height=u-e.y},t}(),l_="silent";function DC(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:MC}}function MC(){s_(this.event)}var kC=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Bn),jo=function(){function t(e,r){this.x=e,this.y=r}return t}(),IC=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ih=new Je(0,0,0,0),u_=function(t){be(e,t);function e(r,n,a,i,o){var s=t.call(this)||this;return s._hovered=new jo(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new kC,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new cC(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(H(IC,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=f_(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new jo(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new jo(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=DC(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new jo(r,n);if($d(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Je(r-u,n-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Ih.copy(v.getBoundingRect()),v.transform&&Ih.applyTransform(v.transform),Ih.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var m=0;m<p;m+=d){var _=r+g*Math.cos(m),y=n+g*Math.sin(m);if($d(s,o,_,y,a),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new CC);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new jo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(Bn);H(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){u_.prototype[t]=function(e){var r=e.zrX,n=e.zrY,a=f_(this,r,n),i,o;if((t!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||a0(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function LC(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?l_:!0}return!1}function $d(t,e,r,n,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=LC(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==l_)){e.target=o;break}}}function f_(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var h_=32,Jo=7;function RC(t){for(var e=0;t>=h_;)e|=t&1,t>>=1;return t+e}function Yd(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a<r&&n(t[a],t[a-1])<0;)a++;PC(t,e,a)}else for(;a<r&&n(t[a],t[a-1])>=0;)a++;return a-e}function PC(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Xd(t,e,r,n,a){for(n===e&&n++;n<r;n++){for(var i=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=i}}function Lh(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])>0){for(s=n-a;l<s&&i(t,e[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(t,e[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(t,e[r+f])>0?o=f+1:l=f}return l}function Rh(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])<0){for(s=a+1;l<s&&i(t,e[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(t,e[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(t,e[r+f])<0?l=f:o=f+1}return l}function FC(t,e){var r=Jo,n,a,i=0,o=[];n=[],a=[];function s(c,d){n[i]=c,a[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&a[c-1]<=a[c]+a[c+1]||c>=2&&a[c-2]<=a[c]+a[c-1])a[c-1]<a[c+1]&&c--;else if(a[c]>a[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&a[c-1]<a[c+1]&&c--,f(c)}}function f(c){var d=n[c],p=a[c],g=n[c+1],m=a[c+1];a[c]=p+m,c===i-3&&(n[c+1]=n[c+2],a[c+1]=a[c+2]),i--;var _=Rh(t[g],t,d,p,0,e);d+=_,p-=_,p!==0&&(m=Lh(t[d+p-1],t,g,m,m-1,e),m!==0&&(p<=m?h(d,p,g,m):v(d,p,g,m)))}function h(c,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=t[c+m];var _=0,y=p,w=c;if(t[w++]=t[y++],--g===0){for(m=0;m<d;m++)t[w+m]=o[_+m];return}if(d===1){for(m=0;m<g;m++)t[w+m]=t[y+m];t[w+g]=o[_];return}for(var E=r,T,x,C;;){T=0,x=0,C=!1;do if(e(t[y],o[_])<0){if(t[w++]=t[y++],x++,T=0,--g===0){C=!0;break}}else if(t[w++]=o[_++],T++,x=0,--d===1){C=!0;break}while((T|x)<E);if(C)break;do{if(T=Rh(t[y],o,_,d,0,e),T!==0){for(m=0;m<T;m++)t[w+m]=o[_+m];if(w+=T,_+=T,d-=T,d<=1){C=!0;break}}if(t[w++]=t[y++],--g===0){C=!0;break}if(x=Lh(o[_],t,y,g,0,e),x!==0){for(m=0;m<x;m++)t[w+m]=t[y+m];if(w+=x,y+=x,g-=x,g===0){C=!0;break}}if(t[w++]=o[_++],--d===1){C=!0;break}E--}while(T>=Jo||x>=Jo);if(C)break;E<0&&(E=0),E+=2}if(r=E,r<1&&(r=1),d===1){for(m=0;m<g;m++)t[w+m]=t[y+m];t[w+g]=o[_]}else{if(d===0)throw new Error;for(m=0;m<d;m++)t[w+m]=o[_+m]}}function v(c,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=t[p+m];var _=c+d-1,y=g-1,w=p+g-1,E=0,T=0;if(t[w--]=t[_--],--d===0){for(E=w-(g-1),m=0;m<g;m++)t[E+m]=o[m];return}if(g===1){for(w-=d,_-=d,T=w+1,E=_+1,m=d-1;m>=0;m--)t[T+m]=t[E+m];t[w]=o[y];return}for(var x=r;;){var C=0,S=0,A=!1;do if(e(o[y],t[_])<0){if(t[w--]=t[_--],C++,S=0,--d===0){A=!0;break}}else if(t[w--]=o[y--],S++,C=0,--g===1){A=!0;break}while((C|S)<x);if(A)break;do{if(C=d-Rh(o[y],t,c,d,d-1,e),C!==0){for(w-=C,_-=C,d-=C,T=w+1,E=_+1,m=C-1;m>=0;m--)t[T+m]=t[E+m];if(d===0){A=!0;break}}if(t[w--]=o[y--],--g===1){A=!0;break}if(S=g-Lh(t[_],o,0,g,g-1,e),S!==0){for(w-=S,y-=S,g-=S,T=w+1,E=y+1,m=0;m<S;m++)t[T+m]=o[E+m];if(g<=1){A=!0;break}}if(t[w--]=t[_--],--d===0){A=!0;break}x--}while(C>=Jo||S>=Jo);if(A)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),g===1){for(w-=d,_-=d,T=w+1,E=_+1,m=d-1;m>=0;m--)t[T+m]=t[E+m];t[w]=o[y]}else{if(g===0)throw new Error;for(E=w-(g-1),m=0;m<g;m++)t[E+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Eu(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var i=0;if(a<h_){i=Yd(t,r,n,e),Xd(t,r,n,r+i,e);return}var o=FC(t,e),s=RC(a);do{if(i=Yd(t,r,n,e),i<s){var l=a;l>s&&(l=s),Xd(t,r,r+l,r+i,e),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var Nr=1,_s=2,ro=4,Kd=!1;function Ph(){Kd||(Kd=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Zd(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var OC=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Zd}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,e);n.length=this._displayListLen,Eu(n,Zd)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),r.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Nr),this._updateAndAddDisplayable(u,r,n)}e.__dirty=0}else{var f=e;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Ph(),f.z=0),isNaN(f.z2)&&(Ph(),f.z2=0),isNaN(f.zlevel)&&(Ph(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,r,n);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,r,n);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var a=ut(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),$u;$u=Fe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ds={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ds.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Ds.bounceIn(t*2)*.5:Ds.bounceOut(t*2-1)*.5+.5}},Fl=Math.pow,Aa=Math.sqrt,Yu=1e-8,c_=1e-4,qd=Aa(3),Ol=1/3,kn=Lo(),qr=Lo(),po=Lo();function xa(t){return t>-Yu&&t<Yu}function v_(t){return t>Yu||t<-Yu}function Xt(t,e,r,n,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*n+3*i*r)}function jd(t,e,r,n,a){var i=1-a;return 3*(((e-t)*i+2*(r-e)*a)*i+(n-r)*a*a)}function Xu(t,e,r,n,a,i){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-a,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(xa(f)&&xa(h))if(xa(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if(xa(p)){var g=h/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[c++]=d),m>=0&&m<=1&&(i[c++]=m)}else if(p>0){var _=Aa(p),y=f*s+1.5*o*(-h+_),w=f*s+1.5*o*(-h-_);y<0?y=-Fl(-y,Ol):y=Fl(y,Ol),w<0?w=-Fl(-w,Ol):w=Fl(w,Ol);var d=(-s-(y+w))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var E=(2*f*s-3*o*h)/(2*Aa(f*f*f)),T=Math.acos(E)/3,x=Aa(f),C=Math.cos(T),d=(-s-2*x*C)/(3*o),m=(-s+x*(C+qd*Math.sin(T)))/(3*o),S=(-s+x*(C-qd*Math.sin(T)))/(3*o);d>=0&&d<=1&&(i[c++]=d),m>=0&&m<=1&&(i[c++]=m),S>=0&&S<=1&&(i[c++]=S)}}return c}function d_(t,e,r,n,a){var i=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(xa(o)){if(v_(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(xa(f))a[0]=-i/(2*o);else if(f>0){var h=Aa(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function Ku(t,e,r,n,a,i){var o=(e-t)*a+t,s=(r-e)*a+e,l=(n-r)*a+r,u=(s-o)*a+o,f=(l-s)*a+s,h=(f-u)*a+u;i[0]=t,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=n}function NC(t,e,r,n,a,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,m;kn[0]=l,kn[1]=u;for(var _=0;_<1;_+=.05)qr[0]=Xt(t,r,a,o,_),qr[1]=Xt(e,n,i,s,_),g=ho(kn,qr),g<c&&(h=_,c=g);c=1/0;for(var y=0;y<32&&!(v<c_);y++)d=h-v,p=h+v,qr[0]=Xt(t,r,a,o,d),qr[1]=Xt(e,n,i,s,d),g=ho(qr,kn),d>=0&&g<c?(h=d,c=g):(po[0]=Xt(t,r,a,o,p),po[1]=Xt(e,n,i,s,p),m=ho(po,kn),p<=1&&m<c?(h=p,c=m):v*=.5);return Aa(c)}function BC(t,e,r,n,a,i,o,s,l){for(var u=t,f=e,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=Xt(t,r,a,o,d),g=Xt(e,n,i,s,d),m=p-u,_=g-f;h+=Math.sqrt(m*m+_*_),u=p,f=g}return h}function Tr(t,e,r,n){var a=1-n;return a*(a*t+2*n*e)+n*n*r}function Jd(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function UC(t,e,r,n,a){var i=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(xa(i)){if(v_(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(xa(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var h=Aa(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function p_(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Zu(t,e,r,n,a){var i=(e-t)*n+t,o=(r-e)*n+e,s=(o-i)*n+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function HC(t,e,r,n,a,i,o,s,l){var u,f=.005,h=1/0;kn[0]=o,kn[1]=s;for(var v=0;v<1;v+=.05){qr[0]=Tr(t,r,a,v),qr[1]=Tr(e,n,i,v);var c=ho(kn,qr);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<c_);d++){var p=u-f,g=u+f;qr[0]=Tr(t,r,a,p),qr[1]=Tr(e,n,i,p);var c=ho(qr,kn);if(p>=0&&c<h)u=p,h=c;else{po[0]=Tr(t,r,a,g),po[1]=Tr(e,n,i,g);var m=ho(po,kn);g<=1&&m<h?(u=g,h=m):f*=.5}}return Aa(h)}function GC(t,e,r,n,a,i,o){for(var s=t,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Tr(t,r,a,v),d=Tr(e,n,i,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var WC=/cubic-bezier\(([0-9,\.e ]+)\)/;function g_(t){var e=t&&WC.exec(t);if(e){var r=e[1].split(","),n=+Ln(r[0]),a=+Ln(r[1]),i=+Ln(r[2]),o=+Ln(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Xu(0,n,i,1,l,s)&&Xt(0,a,o,1,s[0])}}}var VC=function(){function t(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||Er,this.ondestroy=e.ondestroy||Er,this.onrestart=e.onrestart||Er,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Ue(e)?e:Ds[e]||g_(e)},t}(),m_=function(){function t(e){this.value=e}return t}(),zC=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new m_(e);return this.insertEntry(r),r},t.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++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),ml=function(){function t(e){this._list=new zC,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new m_(r),s.key=e,n.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Qd={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 ba(t){return t=Math.round(t),t<0?0:t>255?255:t}function u0(t){return t<0?0:t>1?1:t}function Fh(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ba(parseFloat(e)/100*255):ba(parseInt(e,10))}function Ms(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?u0(parseFloat(e)/100):u0(parseFloat(e))}function Oh(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Nl(t,e,r){return t+(e-t)*r}function zr(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function f0(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var __=new ml(20),Bl=null;function Ui(t,e){Bl&&f0(Bl,e),Bl=__.put(t,Bl||e.slice())}function qn(t,e){if(t){e=e||[];var r=__.get(t);if(r)return f0(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Qd)return f0(e,Qd[n]),Ui(t,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){zr(e,0,0,0,1);return}return zr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Ui(t,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){zr(e,0,0,0,1);return}return zr(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Ui(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?zr(e,+u[0],+u[1],+u[2],1):zr(e,0,0,0,1);f=Ms(u.pop());case"rgb":if(u.length>=3)return zr(e,Fh(u[0]),Fh(u[1]),Fh(u[2]),u.length===3?f:Ms(u[3])),Ui(t,e),e;zr(e,0,0,0,1);return;case"hsla":if(u.length!==4){zr(e,0,0,0,1);return}return u[3]=Ms(u[3]),ep(u,e),Ui(t,e),e;case"hsl":if(u.length!==3){zr(e,0,0,0,1);return}return ep(u,e),Ui(t,e),e;default:return}}zr(e,0,0,0,1)}}function ep(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Ms(t[1]),a=Ms(t[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],zr(e,ba(Oh(o,i,r+1/3)*255),ba(Oh(o,i,r)*255),ba(Oh(o,i,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function tp(t,e){var r=qn(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Nf(r,r.length===4?"rgba":"rgb")}}function $C(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=qn(e[a]),s=qn(e[i]),l=n-a,u=Nf([ba(Nl(o[0],s[0],l)),ba(Nl(o[1],s[1],l)),ba(Nl(o[2],s[2],l)),u0(Nl(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function Nf(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function qu(t,e){var r=qn(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var rp=new ml(100);function np(t){if(Ie(t)){var e=rp.get(t);return e||(e=tp(t,-.1),rp.put(t,e)),e}else if(Ff(t)){var r=me({},t);return r.colorStops=Re(t.colorStops,function(n){return{offset:n.offset,color:tp(n.color,-.1)}}),r}return t}function YC(t){return t.type==="linear"}function XC(t){return t.type==="radial"}(function(){return Fe.hasGlobalWindow&&Ue(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var h0=Array.prototype.slice;function $n(t,e,r){return(e-t)*r+t}function Nh(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=$n(e[i],r[i],n);return t}function KC(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=$n(e[o][s],r[o][s],n)}return t}function Ul(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+r[i]*n;return t}function ap(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function ZC(t,e){for(var r=t.length,n=e.length,a=r>n?e:t,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function qC(t,e,r){var n=t,a=e;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:h0.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function Au(t){if(br(t)){var e=t.length;if(br(t[0])){for(var r=[],n=0;n<e;n++)r.push(h0.call(t[n]));return r}return h0.call(t)}return t}function bu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function jC(t){return br(t&&t[0])?2:1}var Hl=0,Du=1,y_=2,ys=3,c0=4,v0=5,ip=6;function op(t){return t===c0||t===v0}function Gl(t){return t===Du||t===y_}var Qo=[0,0,0,0],JC=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=ip,l=r;if(br(r)){var u=jC(r);s=u,(u===1&&!pt(r[0])||u===2&&!pt(r[0][0]))&&(o=!0)}else if(pt(r)&&!zu(r))s=Hl;else if(Ie(r))if(!isNaN(+r))s=Hl;else{var f=qn(r);f&&(l=f,s=ys)}else if(Ff(r)){var h=me({},l);h.colorStops=Re(r.colorStops,function(c){return{offset:c.offset,color:qn(c.color)}}),YC(r)?s=c0:XC(r)&&(s=v0),l=h}i===0?this.valType=s:(s!==this.valType||s===ip)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=Ue(n)?n:Ds[n]||g_(n)),a.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Gl(a),u=op(a),f=0;f<i;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/e,s||(l&&f!==i-1?qC(v,c,a):u&&ZC(v.colorStops,c.colorStops))}if(!s&&a!==v0&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<i;f++)a===Hl?n[f].additiveValue=n[f].value-d:a===ys?n[f].additiveValue=Ul([],n[f].value,d,-1):Gl(a)&&(n[f].additiveValue=a===Du?Ul([],n[f].value,d,-1):ap([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===ys,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-c.percent,m=g===0?1:v((r-c.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var _=n?this._additiveValue:u?Qo:e[l];if((Gl(i)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)e[l]=m<1?c.rawValue:d.rawValue;else if(Gl(i))i===Du?Nh(_,c[a],d[a],m):KC(_,c[a],d[a],m);else if(op(i)){var y=c[a],w=d[a],E=i===c0;e[l]={type:E?"linear":"radial",x:$n(y.x,w.x,m),y:$n(y.y,w.y,m),colorStops:Re(y.colorStops,function(x,C){var S=w.colorStops[C];return{offset:$n(x.offset,S.offset,m),color:bu(Nh([],x.color,S.color,m))}}),global:w.global},E?(e[l].x2=$n(y.x2,w.x2,m),e[l].y2=$n(y.y2,w.y2,m)):e[l].r=$n(y.r,w.r,m)}else if(u)Nh(_,c[a],d[a],m),n||(e[l]=bu(_));else{var T=$n(c[a],d[a],m);n?this._additiveValue=T:e[l]=T}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;r===Hl?e[n]=e[n]+a:r===ys?(qn(e[n],Qo),Ul(Qo,Qo,a,1),e[n]=bu(Qo)):r===Du?Ul(e[n],e[n],a,1):r===y_&&ap(e[n],e[n],a,1)},t}(),yv=function(){function t(e,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a){vv("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,_t(r),n)},t.prototype.whenWithKeys=function(e,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new JC(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===ys&&u&&(u=bu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Au(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Au(r[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(r=i)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new VC({life:a,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,c);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return Re(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[i]=Au(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||_t(e);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function so(){return new Date().getTime()}var QC=function(t){be(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=so()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&($u(n),!r._paused&&r.update())}$u(n)},e.prototype.start=function(){this._running||(this._time=so(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=so(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=so()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new yv(r,n.loop);return this.addAnimator(a),a},e}(Bn),eE=300,Bh=Fe.domSupported,Uh=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Re(t,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:n}}(),sp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},lp=!1;function d0(t){var e=t.pointerType;return e==="pen"||e==="touch"}function tE(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Hh(t){t&&(t.zrByTouch=!0)}function rE(t,e){return Yr(t.dom,new nE(t,e),!0)}function x_(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var nE=function(){function t(e,r){this.stopPropagation=Er,this.stopImmediatePropagation=Er,this.preventDefault=Er,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),hn={mousedown:function(t){t=Yr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Yr(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Yr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Yr(this.dom,t);var e=t.toElement||t.relatedTarget;x_(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){lp=!0,t=Yr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){lp||(t=Yr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Yr(this.dom,t),Hh(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),hn.mousemove.call(this,t),hn.mousedown.call(this,t)},touchmove:function(t){t=Yr(this.dom,t),Hh(t),this.handler.processGesture(t,"change"),hn.mousemove.call(this,t)},touchend:function(t){t=Yr(this.dom,t),Hh(t),this.handler.processGesture(t,"end"),hn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<eE&&hn.click.call(this,t)},pointerdown:function(t){hn.mousedown.call(this,t)},pointermove:function(t){d0(t)||hn.mousemove.call(this,t)},pointerup:function(t){hn.mouseup.call(this,t)},pointerout:function(t){d0(t)||hn.mouseout.call(this,t)}};H(["click","dblclick","contextmenu"],function(t){hn[t]=function(e){e=Yr(this.dom,e),this.trigger(t,e)}});var p0={pointermove:function(t){d0(t)||p0.mousemove.call(this,t)},pointerup:function(t){p0.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function aE(t,e){var r=e.domHandlers;Fe.pointerEventsSupported?H(Uh.pointer,function(n){Mu(e,n,function(a){r[n].call(t,a)})}):(Fe.touchEventsSupported&&H(Uh.touch,function(n){Mu(e,n,function(a){r[n].call(t,a),tE(e)})}),H(Uh.mouse,function(n){Mu(e,n,function(a){a=pv(a),e.touching||r[n].call(t,a)})}))}function iE(t,e){Fe.pointerEventsSupported?H(sp.pointer,r):Fe.touchEventsSupported||H(sp.mouse,r);function r(n){function a(i){i=pv(i),x_(t,i.target)||(i=rE(t,i),e.domHandlers[n].call(t,i))}Mu(e,n,a,{capture:!0})}}function Mu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,TC(t.domTarget,e,r,n)}function Gh(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&SC(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var up=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),oE=function(t){be(e,t);function e(r,n){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new up(r,hn),Bh&&(a._globalHandlerScope=new up(document,p0)),aE(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Gh(this._localHandlerScope),Bh&&Gh(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Bh&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?iE(this,n):Gh(n)}},e}(Bn),w_=1;Fe.hasGlobalWindow&&(w_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ju=w_,g0=.4,m0="#333",_0="#ccc",sE="#eee",fp=gv,hp=5e-5;function Ya(t){return t>hp||t<-hp}var Xa=[],Hi=[],Wh=co(),Vh=Math.abs,xv=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Ya(this.rotation)||Ya(this.x)||Ya(this.y)||Ya(this.scaleX-1)||Ya(this.scaleY-1)||Ya(this.skewX)||Ya(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(fp(n),this.invTransform=null);return}n=n||co(),r?this.getLocalTransform(n):fp(n),e&&(r?vo(n,e,n):AC(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Xa);var n=Xa[0]<0?-1:1,a=Xa[1]<0?-1:1,i=((Xa[0]-n)*r+n)/Xa[0]||0,o=((Xa[1]-a)*r+a)/Xa[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||co(),_v(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||co(),vo(Hi,e.invTransform,r),r=Hi);var n=this.originX,a=this.originY;(n||a)&&(Wh[4]=n,Wh[5]=a,vo(Hi,r,Wh),Hi[4]-=n,Hi[5]-=a,r=Hi),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&en(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&en(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Vh(e[0]-1)>1e-10&&Vh(e[3]-1)>1e-10?Math.sqrt(Vh(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){lE(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;r[4]=-d*i-v*p*o,r[5]=-p*o-c*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=c*i,r[2]=v*o,u&&mv(r,r,u),r[4]+=n+f,r[5]+=a+h,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Zs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function lE(t,e){for(var r=0;r<Zs.length;r++){var n=Zs[r];t[n]=e[n]}}var cp={};function Br(t,e){e=e||yi;var r=cp[e];r||(r=cp[e]=new ml(500));var n=r.get(t);return n==null&&(n=Io.measureText(t,e).width,r.put(t,n)),n}function vp(t,e,r,n){var a=Br(t,e),i=Tv(e),o=xs(0,a,r),s=no(0,i,n),l=new Je(o,s,a,i);return l}function wv(t,e,r,n){var a=((t||"")+"").split(`
15
+ `),i=a.length;if(i===1)return vp(a[0],e,r,n);for(var o=new Je(0,0,0,0),s=0;s<a.length;s++){var l=vp(a[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function xs(t,e,r){return r==="right"?t-=e:r==="center"&&(t-=e/2),t}function no(t,e,r){return r==="middle"?t-=e/2:r==="bottom"&&(t-=e),t}function Tv(t){return Br("国",t)}function La(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function T_(t,e,r){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,f="left",h="top";if(n instanceof Array)l+=La(n[0],r.width),u+=La(n[1],r.height),f=null,h=null;else switch(n){case"left":l-=a,u+=s,f="right",h="middle";break;case"right":l+=a+o,u+=s,h="middle";break;case"top":l+=o/2,u-=a,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=a,u+=s,h="middle";break;case"insideRight":l+=o-a,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",h="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,h="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=h,t}var zh="__zr_normal__",$h=Zs.concat(["ignore"]),uE=Ia(Zs,function(t,e){return t[e]=!0,t},{ignore:!1}),Gi={},fE=new Je(0,0,0,0),Bf=function(){function t(e){this.id=t_(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(r),n.position!=null){var f=fE;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Gi,n,f):T_(Gi,n,f),i.x=Gi.x,i.y=Gi.y,o=Gi.align,s=Gi.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=La(h[0],f.width),c=La(h[1],f.height)),u=!0,i.originX=-i.x+v+(a?0:f.x),i.originY=-i.y+c+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,_=void 0,y=void 0;p&&this.canBeInsideText()?(m=n.insideFill,_=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,_=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(m),y=!0)),m=m||"#000",(m!==g.fill||_!==g.stroke||y!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=_,g.autoStroke=y,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Nr,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?_0:m0},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&qn(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Nf(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},me(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(Pe(e))for(var n=e,a=_t(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==zh)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,$h)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in r)&&(r[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(zh,!1,e)},t.prototype.useState=function(e,r,n,a){var i=e===zh,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(ut(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){vv("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,r,n,f),v&&v.useState(e,r,n,f),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Nr),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&a.push(f)}var h=a[o-1],v=!!(h&&h.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(e.join(","),c,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,r,v),g&&g.useStates(e,r,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Nr)}},t.prototype.isSilent=function(){for(var e=this.silent,r=this.parent;!e&&r;){if(r.silent){e=!0;break}r=r.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ut(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var a=this.currentStates.slice(),i=ut(a,e),o=ut(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,a=0;a<e.length;a++){var i=e[a];me(r,i),i.textConfig&&(n=n||{},me(n,i.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=me({},a?this.textConfig:n.textConfig),me(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<$h.length;f++){var h=$h[f],v=i&&uE[h];r&&r[h]!=null?v?(u=!0,l[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(v?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!i)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new xv,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),me(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Nr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var a=e?this[e]:this,i=new yv(a,r,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,r){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=ut(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},t.prototype.animateTo=function(e,r,n){Yh(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Yh(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,a){for(var i=Yh(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Nr;function r(n,a,i,o){Object.defineProperty(e,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();Nn(Bf,Bn);Nn(Bf,xv);function Yh(t,e,r,n,a){r=r||{};var i=[];S_(t,"",t,e,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(d,p){r.during(p)});for(var v=0;v<i.length;v++){var c=i[v];f&&c.done(f),h&&c.aborted(h),r.force&&c.duration(r.duration),c.start(r.easing)}return i}function Xh(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function hE(t){return br(t[0])}function cE(t,e,r){if(br(e[r]))if(br(t[r])||(t[r]=[]),Dr(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Xh(t[r],e[r],n))}else{var a=e[r],i=t[r],o=a.length;if(hE(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Xh(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Xh(i,a,o);i.length=a.length}else t[r]=e[r]}function vE(t,e){return t===e||br(t)&&br(e)&&dE(t,e)}function dE(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function S_(t,e,r,n,a,i,o,s){for(var l=_t(n),u=a.duration,f=a.delay,h=a.additive,v=a.setToFinal,c=!Pe(i),d=t.animators,p=[],g=0;g<l.length;g++){var m=l[g],_=n[m];if(_!=null&&r[m]!=null&&(c||i[m]))if(Pe(_)&&!br(_)&&!Ff(_)){if(e){s||(r[m]=_,t.updateDuringAnimation(e));continue}S_(t,m,r[m],_,a,i&&i[m],o,s)}else p.push(m);else s||(r[m]=_,t.updateDuringAnimation(e),p.push(m))}var y=p.length;if(!h&&y)for(var w=0;w<d.length;w++){var E=d[w];if(E.targetName===e){var T=E.stopTracks(p);if(T){var x=ut(d,E);d.splice(x,1)}}}if(a.force||(p=Yt(p,function(M){return!vE(n[M],r[M])}),y=p.length),y>0||a.force&&!o.length){var C=void 0,S=void 0,A=void 0;if(s){S={},v&&(C={});for(var w=0;w<y;w++){var m=p[w];S[m]=r[m],v?C[m]=n[m]:r[m]=n[m]}}else if(v){A={};for(var w=0;w<y;w++){var m=p[w];A[m]=Au(r[m]),cE(r,n,m)}}var E=new yv(r,!1,!1,h?Yt(d,function(L){return L.targetName===e}):null);E.targetName=e,a.scope&&(E.scope=a.scope),v&&C&&E.whenWithKeys(0,C,p),A&&E.whenWithKeys(0,A,p),E.whenWithKeys(u??500,s?S:n,p).delay(f||0),t.addAnimator(E,e),o.push(E)}}var sr=function(t){be(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var a=ut(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,i=ut(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},e.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new Je(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(Je.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(Bf);sr.prototype.type="group";/*!
16
+ * ZRender, a high performance 2d drawing library.
17
+ *
18
+ * Copyright (c) 2013, Baidu Inc.
19
+ * All rights reserved.
20
+ *
21
+ * LICENSE
22
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
23
+ */var ku={},C_={};function pE(t){delete C_[t]}function gE(t){if(!t)return!1;if(typeof t=="string")return qu(t,1)<g0;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,a=0;a<n;a++)r+=qu(e[a].color,1);return r/=n,r<g0}return!1}var mE=function(){function t(e,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var i=new OC,o=n.renderer||"canvas";ku[o]||(o=_t(ku)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ku[o](r,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Fe.node&&!Fe.worker&&!l?new oE(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?Fe.touchEventsSupported:!!f,v=44,c;h&&(c=We(n.pointerSize,v)),this.handler=new u_(i,s,u,s.root,c),this.animation=new QC({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=gE(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=so();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=so();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof sr&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,pE(this.id))},t}();function dp(t,e){var r=new mE(t_(),t,e);return C_[r.id]=r,r}function _E(t,e){ku[t]=e}var pp=1e-4,E_=20;function yE(t){return t.replace(/^\s+|\s+$/g,"")}function y0(t,e,r,n){var a=e[0],i=e[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/l*u+o}function mt(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Ie(t)?yE(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Lt(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),E_),t=(+t).toFixed(e),r?t:+t}function Kn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return xE(t)}function xE(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function wE(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),i=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function TE(t,e){var r=Ia(t,function(c,d){return c+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),a=Re(t,function(c){return(isNaN(c)?0:c)/r*n*100}),i=n*100,o=Re(a,function(c){return Math.floor(c)}),s=Ia(o,function(c,d){return c+d},0),l=Re(a,function(c,d){return c-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return Re(o,function(c){return c/n})}function SE(t,e){var r=Math.max(Kn(t),Kn(e)),n=t+e;return r>E_?n:Lt(n,r)}function A_(t){var e=Math.PI*2;return(t%e+e)%e}function Ju(t){return t>-pp&&t<pp}var CE=/^(?:(\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 ra(t){if(t instanceof Date)return t;if(Ie(t)){var e=CE.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function EE(t){return Math.pow(10,Sv(t))}function Sv(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function b_(t,e){var r=Sv(t),n=Math.pow(10,r),a=t/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,t=i*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Qu(t){var e=parseFloat(t);return e==t&&(e!==0||!Ie(t)||t.indexOf("x")<=0)?e:NaN}function AE(t){return!isNaN(Qu(t))}function D_(){return Math.round(Math.random()*9)}function M_(t,e){return e===0?t:M_(e,t%e)}function gp(t,e){return t==null?e:e==null?t:t*e/M_(t,e)}function Sr(t){throw new Error(t)}function mp(t,e,r){return(e-t)*r+t}var k_="series\0",bE="\0_ec_\0";function vr(t){return t instanceof Array?t:t==null?[]:[t]}function x0(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var _p=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function _l(t){return Pe(t)&&!ke(t)&&!(t instanceof Date)?t.value:t}function DE(t){return Pe(t)&&!(t instanceof Array)}function ME(t,e,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=Ve();H(e,function(l,u){if(!Pe(l)){e[u]=null;return}});var s=kE(t,o,r);return(n||a)&&IE(s,t,o,e),n&&LE(s,e),n||a?RE(s,e,a):i&&PE(s,e),FE(s),s}function kE(t,e,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:r==="replaceMerge"||qs(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function IE(t,e,r,n){H(n,function(a,i){if(!(!a||a.id==null)){var o=ks(a.id),s=r.get(o);if(s!=null){var l=t[s];ta(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function LE(t,e){H(e,function(r,n){if(!(!r||r.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||r.id==null)&&!qs(r)&&!qs(i)&&I_("name",i,r)){t[a].newOption=r,e[n]=null;return}}})}function RE(t,e,r){H(e,function(n){if(n){for(var a,i=0;(a=t[i])&&(a.newOption||qs(a.existing)||a.existing&&n.id!=null&&!I_("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function PE(t,e){H(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function FE(t){var e=Ve();H(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),H(t,function(r){var n=r.newOption;ta(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),H(t,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(Pe(i)){if(o.name=i.name!=null?ks(i.name):a?a.name:k_+n,a)o.id=ks(a.id);else if(i.id!=null)o.id=ks(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function I_(t,e,r){var n=Pn(e[t],null),a=Pn(r[t],null);return n!=null&&a!=null&&n===a}function ks(t){return Pn(t,"")}function Pn(t,e){return t==null?e:Ie(t)?t:pt(t)||t0(t)?t+"":e}function Cv(t){var e=t.name;return!!(e&&e.indexOf(k_))}function qs(t){return t&&t.id!=null&&ks(t.id).indexOf(bE)===0}function OE(t,e,r){H(t,function(n){var a=n.newOption;Pe(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=NE(e,a,n.existing,r))})}function NE(t,e,r,n){var a=e.type?e.type:r?r.subType:n.determineSubType(t,e);return a}function wi(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ke(e.dataIndex)?Re(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ke(e.name)?Re(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Dt(){var t="__ec_inner_"+BE++;return function(e){return e[t]||(e[t]={})}}var BE=D_();function Kh(t,e,r){var n=Ev(e,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var h=yl(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Ev(t,e){var r;if(Ie(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var a=Ve(),i={},o=!1;return H(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&ut(e.includeMainTypes,f)<0)){o=o||!!f;var v=a.get(f)||a.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var dn={useDefault:!0,enableAll:!1,enableNone:!1};function yl(t,e,r,n){n=n||dn;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}return a==="none"||a===!1?(ta(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(ta(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s)}function L_(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function UE(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function HE(t){return t==="auto"?Fe.domSupported?"html":"richText":t||"html"}function GE(t,e,r,n,a){var i=e==null||e==="auto";if(n==null)return n;if(pt(n)){var o=mp(r||0,n,a);return Lt(o,i?Math.max(Kn(r||0),Kn(n)):e)}else{if(Ie(n))return a<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=t.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(a<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=mp(c,d,a);s[h]=Lt(o,i?Math.max(Kn(c),Kn(d)):e)}}return s}}var WE=".",Ka="___EC__COMPONENT__CONTAINER___",R_="___EC__EXTENDED_CLASS___";function Rn(t){var e={main:"",sub:""};if(t){var r=t.split(WE);e.main=r[0]||"",e.sub=r[1]||""}return e}function VE(t){ta(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function zE(t){return!!(t&&t[R_])}function Av(t,e){t.$constructor=t,t.extend=function(r){var n=this,a;return $E(n)?a=function(i){be(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},JS(a,this)),me(a.prototype,r),a[R_]=!0,a.extend=this.extend,a.superCall=KE,a.superApply=ZE,a.superClass=n,a}}function $E(t){return Ue(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function P_(t,e){t.extend=e.extend}var YE=Math.round(Math.random()*10);function XE(t){var e=["__\0is_clz",YE++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function KE(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function ZE(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Uf(t){var e={};t.registerClass=function(n){var a=n.type||n.prototype.type;if(a){VE(a),n.prototype.type=a;var i=Rn(a);if(!i.sub)e[i.main]=n;else if(i.sub!==Ka){var o=r(i);o[i.sub]=n}}return n},t.getClass=function(n,a,i){var o=e[n];if(o&&o[Ka]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var a=Rn(n),i=[],o=e[a.main];return o&&o[Ka]?H(o,function(s,l){l!==Ka&&i.push(s)}):i.push(o),i},t.hasClass=function(n){var a=Rn(n);return!!e[a.main]},t.getAllClassMainTypes=function(){var n=[];return H(e,function(a,i){n.push(i)}),n},t.hasSubTypes=function(n){var a=Rn(n),i=e[a.main];return i&&i[Ka]};function r(n){var a=e[n.main];return(!a||!a[Ka])&&(a=e[n.main]={},a[Ka]=!0),a}}function js(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(a&&ut(a,l)>=0||i&&ut(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var qE=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],jE=js(qE),JE=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return jE(this,e,r)},t}(),w0=new ml(50);function QE(t){if(typeof t=="string"){var e=w0.get(t);return e&&e.image}else return t}function F_(t,e,r,n,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var i=w0.get(t),o={hostEl:r,cb:n,cbPayload:a};return i?(e=i.image,!Hf(e)&&i.pending.push(o)):(e=Io.loadImage(t,yp,yp),e.__zrImageSrc=t,w0.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function yp(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Hf(t){return t&&t.width&&t.height}var Zh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function eA(t,e,r,n,a,i){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
24
+ `);i=O_(r,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)N_(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
25
+ `),t.isTruncated=s}function O_(t,e,r,n){n=n||{};var a=me({},n);a.font=e,r=We(r,"..."),a.maxIterations=We(n.maxIterations,2);var i=a.minChar=We(n.minChar,0);a.cnCharWidth=Br("国",e);var o=a.ascCharWidth=Br("a",e);a.placeholder=We(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<i&&s>=o;l++)s-=o;var u=Br(r,e);return u>s&&(r="",u=0),s=t-u,a.ellipsis=r,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=t,a}function N_(t,e,r){var n=r.containerWidth,a=r.font,i=r.contentWidth;if(!n){t.textLine="",t.isTruncated=!1;return}var o=Br(e,a);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?tA(e,i,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Br(e,a)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function tA(t,e,r,n){for(var a=0,i=0,o=t.length;i<o&&a<e;i++){var s=t.charCodeAt(i);a+=0<=s&&s<=127?r:n}return i}function rA(t,e){t!=null&&(t+="");var r=e.overflow,n=e.padding,a=e.font,i=r==="truncate",o=Tv(a),s=We(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,h=e.width,v;h!=null&&(r==="break"||r==="breakAll")?v=t?B_(t,e.font,h,r==="breakAll",0).lines:[]:v=t?t.split(`
26
+ `):[];var c=v.length*s,d=We(e.height,c);if(c>d&&u){var p=Math.floor(d/s);f=f||v.length>p,v=v.slice(0,p)}if(t&&i&&h!=null)for(var g=O_(h,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},_=0;_<v.length;_++)N_(m,v[_],g),v[_]=m.textLine,f=f||m.isTruncated;for(var y=d,w=0,_=0;_<v.length;_++)w=Math.max(Br(v[_],a),w);h==null&&(h=w);var E=w;return n&&(y+=n[0]+n[2],E+=n[1]+n[3],h+=n[1]+n[3]),l&&(E=h),{lines:v,height:d,outerWidth:E,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:w,contentHeight:c,width:h,isTruncated:f}}var nA=function(){function t(){}return t}(),xp=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),aA=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function iA(t,e){var r=new aA;if(t!=null&&(t+=""),!t)return r;for(var n=e.width,a=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=Zh.lastIndex=0,l;(l=Zh.exec(t))!=null;){var u=l.index;u>s&&qh(r,t.substring(s,u),e,o),qh(r,l[2],e,o,l[1]),s=Zh.lastIndex}s<t.length&&qh(r,t.substring(s,t.length),e,o);var f=[],h=0,v=0,c=e.padding,d=i==="truncate",p=e.lineOverflow==="truncate",g={};function m(J,re,I){J.width=re,J.lineHeight=I,h+=I,v=Math.max(v,re)}e:for(var _=0;_<r.lines.length;_++){for(var y=r.lines[_],w=0,E=0,T=0;T<y.tokens.length;T++){var x=y.tokens[T],C=x.styleName&&e.rich[x.styleName]||{},S=x.textPadding=C.padding,A=S?S[1]+S[3]:0,M=x.font=C.font||e.font;x.contentHeight=Tv(M);var L=We(C.height,x.contentHeight);if(x.innerHeight=L,S&&(L+=S[0]+S[2]),x.height=L,x.lineHeight=As(C.lineHeight,e.lineHeight,L),x.align=C&&C.align||e.align,x.verticalAlign=C&&C.verticalAlign||"middle",p&&a!=null&&h+x.lineHeight>a){var N=r.lines.length;T>0?(y.tokens=y.tokens.slice(0,T),m(y,E,w),r.lines=r.lines.slice(0,_+1)):r.lines=r.lines.slice(0,_),r.isTruncated=r.isTruncated||r.lines.length<N;break e}var V=C.width,W=V==null||V==="auto";if(typeof V=="string"&&V.charAt(V.length-1)==="%")x.percentWidth=V,f.push(x),x.contentWidth=Br(x.text,M);else{if(W){var te=C.backgroundColor,_e=te&&te.image;_e&&(_e=QE(_e),Hf(_e)&&(x.width=Math.max(x.width,_e.width*L/_e.height)))}var ve=d&&n!=null?n-E:null;ve!=null&&ve<x.width?!W||ve<A?(x.text="",x.width=x.contentWidth=0):(eA(g,x.text,ve-A,M,e.ellipsis,{minChar:e.truncateMinChar}),x.text=g.text,r.isTruncated=r.isTruncated||g.isTruncated,x.width=x.contentWidth=Br(x.text,M)):x.contentWidth=Br(x.text,M)}x.width+=A,E+=x.width,C&&(w=Math.max(w,x.lineHeight))}m(y,E,w)}r.outerWidth=r.width=We(n,v),r.outerHeight=r.height=We(a,h),r.contentHeight=h,r.contentWidth=v,c&&(r.outerWidth+=c[1]+c[3],r.outerHeight+=c[0]+c[2]);for(var _=0;_<f.length;_++){var x=f[_],fe=x.percentWidth;x.width=parseInt(fe,10)/100*r.width}return r}function qh(t,e,r,n,a){var i=e==="",o=a&&r.rich[a]||{},s=t.lines,l=o.font||r.font,u=!1,f,h;if(n){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=La(o.width,n.width)+c;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
27
+ `),u=!0),n.accumWidth=d}else{var p=B_(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=e.split(`
28
+ `);for(var g=0;g<f.length;g++){var m=f[g],_=new nA;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=h?h[g]:Br(m,l),!g&&!u){var y=(s[s.length-1]||(s[0]=new xp)).tokens,w=y.length;w===1&&y[0].isLineHolder?y[0]=_:(m||!w||i)&&y.push(_)}else s.push(new xp([_]))}}function oA(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var sA=Ia(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function lA(t){return oA(t)?!!sA[t]:!0}function B_(t,e,r,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;h<t.length;h++){var v=t.charAt(h);if(v===`
29
+ `){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=Br(v,e),d=n?!1:!lA(v);if(i.length?f+c>r:a+f+c>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):d?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}var T0="__zr_style_"+Math.round(Math.random()*10),pi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Gf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};pi[T0]=!0;var wp=["z","z2","invisible"],uA=["invisible"],xl=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=_t(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&fA(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Je(0,0,0,0)),n?Je.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Je(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:me(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=_s,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&_s)},e.prototype.styleUpdated=function(){this.__dirty&=~_s},e.prototype.createStyle=function(r){return Of(pi,r)},e.prototype.useStyle=function(r){r[T0]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[T0]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,wp)},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=_t(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var d=_t(u),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?uA:wp,v=0;v<p.length;v++){var c=p[v];n&&n[c]!=null?this[c]=n[c]:l&&a[c]!=null&&(this[c]=a[c])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(r,n){return me(r,n),r},e.prototype.getAnimationStyleProps=function(){return Gf},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Nr|_s}(),e}(Bf),jh=new Je(0,0,0,0),Jh=new Je(0,0,0,0);function fA(t,e,r){return jh.copy(t.getBoundingRect()),t.transform&&jh.applyTransform(t.transform),Jh.width=e,Jh.height=r,!jh.intersect(Jh)}var jr=Math.min,Jr=Math.max,Qh=Math.sin,ec=Math.cos,Za=Math.PI*2,Wl=Lo(),Vl=Lo(),zl=Lo();function Tp(t,e,r,n,a,i){a[0]=jr(t,r),a[1]=jr(e,n),i[0]=Jr(t,r),i[1]=Jr(e,n)}var Sp=[],Cp=[];function hA(t,e,r,n,a,i,o,s,l,u){var f=d_,h=Xt,v=f(t,r,a,o,Sp);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var d=h(t,r,a,o,Sp[c]);l[0]=jr(d,l[0]),u[0]=Jr(d,u[0])}v=f(e,n,i,s,Cp);for(var c=0;c<v;c++){var p=h(e,n,i,s,Cp[c]);l[1]=jr(p,l[1]),u[1]=Jr(p,u[1])}l[0]=jr(t,l[0]),u[0]=Jr(t,u[0]),l[0]=jr(o,l[0]),u[0]=Jr(o,u[0]),l[1]=jr(e,l[1]),u[1]=Jr(e,u[1]),l[1]=jr(s,l[1]),u[1]=Jr(s,u[1])}function cA(t,e,r,n,a,i,o,s){var l=p_,u=Tr,f=Jr(jr(l(t,r,a),1),0),h=Jr(jr(l(e,n,i),1),0),v=u(t,r,a,f),c=u(e,n,i,h);o[0]=jr(t,a,v),o[1]=jr(e,i,c),s[0]=Jr(t,a,v),s[1]=Jr(e,i,c)}function vA(t,e,r,n,a,i,o,s,l){var u=io,f=oo,h=Math.abs(a-i);if(h%Za<1e-4&&h>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Wl[0]=ec(a)*r+t,Wl[1]=Qh(a)*n+e,Vl[0]=ec(i)*r+t,Vl[1]=Qh(i)*n+e,u(s,Wl,Vl),f(l,Wl,Vl),a=a%Za,a<0&&(a=a+Za),i=i%Za,i<0&&(i=i+Za),a>i&&!o?i+=Za:a<i&&o&&(a+=Za),o){var v=i;i=a,a=v}for(var c=0;c<i;c+=Math.PI/2)c>a&&(zl[0]=ec(c)*r+t,zl[1]=Qh(c)*n+e,u(s,zl,s),f(l,zl,l))}var qe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qa=[],ja=[],Cn=[],la=[],En=[],An=[],tc=Math.min,rc=Math.max,Ja=Math.cos,Qa=Math.sin,Vn=Math.abs,S0=Math.PI,_a=S0*2,nc=typeof Float32Array<"u",es=[];function ac(t){var e=Math.round(t/S0*1e8)/1e8;return e%2*S0}function U_(t,e){var r=ac(t[0]);r<0&&(r+=_a);var n=r-t[0],a=t[1];a+=n,!e&&a-r>=_a?a=r+_a:e&&r-a>=_a?a=r-_a:!e&&r>a?a=r+(_a-ac(r-a)):e&&r<a&&(a=r-(_a-ac(a-r))),t[0]=r,t[1]=a}var Ti=function(){function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Vn(n/ju/e)||0,this._uy=Vn(n/ju/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(qe.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Vn(e-this._xi),a=Vn(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(qe.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){return this._drawPendingPt(),this.addData(qe.C,e,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(qe.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,i,o){this._drawPendingPt(),es[0]=a,es[1]=i,U_(es,o),a=es[0],i=es[1];var s=i-a;return this.addData(qe.A,e,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,a,i,o),this._xi=Ja(i)*n+e,this._yi=Qa(i)*n+r,this},t.prototype.arcTo=function(e,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,i),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(qe.R,e,r,n,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(qe.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&nc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var r=e.length,n=0,a=this._len,i=0;i<r;i++)n+=e[i].len();nc&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},t.prototype.addData=function(e,r,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,nc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Cn[0]=Cn[1]=En[0]=En[1]=Number.MAX_VALUE,la[0]=la[1]=An[0]=An[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],a=r,i=n),s){case qe.M:r=a=e[o++],n=i=e[o++],En[0]=a,En[1]=i,An[0]=a,An[1]=i;break;case qe.L:Tp(r,n,e[o],e[o+1],En,An),r=e[o++],n=e[o++];break;case qe.C:hA(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],En,An),r=e[o++],n=e[o++];break;case qe.Q:cA(r,n,e[o++],e[o++],e[o],e[o+1],En,An),r=e[o++],n=e[o++];break;case qe.A:var u=e[o++],f=e[o++],h=e[o++],v=e[o++],c=e[o++],d=e[o++]+c;o+=1;var p=!e[o++];l&&(a=Ja(c)*h+u,i=Qa(c)*v+f),vA(u,f,h,v,c,d,p,En,An),r=Ja(d)*h+u,n=Qa(d)*v+f;break;case qe.R:a=r=e[o++],i=n=e[o++];var g=e[o++],m=e[o++];Tp(a,i,a+g,i+m,En,An);break;case qe.Z:r=a,n=i;break}io(Cn,Cn,En),oo(la,la,An)}return o===0&&(Cn[0]=Cn[1]=la[0]=la[1]=0),new Je(Cn[0],Cn[1],la[0]-Cn[0],la[1]-Cn[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,v=0;v<r;){var c=e[v++],d=v===1;d&&(i=e[v],o=e[v+1],s=i,l=o);var p=-1;switch(c){case qe.M:i=s=e[v++],o=l=e[v++];break;case qe.L:{var g=e[v++],m=e[v++],_=g-i,y=m-o;(Vn(_)>n||Vn(y)>a||v===r-1)&&(p=Math.sqrt(_*_+y*y),i=g,o=m);break}case qe.C:{var w=e[v++],E=e[v++],g=e[v++],m=e[v++],T=e[v++],x=e[v++];p=BC(i,o,w,E,g,m,T,x,10),i=T,o=x;break}case qe.Q:{var w=e[v++],E=e[v++],g=e[v++],m=e[v++];p=GC(i,o,w,E,g,m,10),i=g,o=m;break}case qe.A:var C=e[v++],S=e[v++],A=e[v++],M=e[v++],L=e[v++],N=e[v++],V=N+L;v+=1,d&&(s=Ja(L)*A+C,l=Qa(L)*M+S),p=rc(A,M)*tc(_a,Math.abs(N)),i=Ja(V)*A+C,o=Qa(V)*M+S;break;case qe.R:{s=i=e[v++],l=o=e[v++];var W=e[v++],te=e[v++];p=W*2+te*2;break}case qe.Z:{var _=s-i,y=l-o;p=Math.sqrt(_*_+y*y),i=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=r<1,d,p,g=0,m=0,_,y=0,w,E;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,_=r*p,!_)))e:for(var T=0;T<o;){var x=n[T++],C=T===1;switch(C&&(u=n[T],f=n[T+1],s=u,l=f),x!==qe.L&&y>0&&(e.lineTo(w,E),y=0),x){case qe.M:s=u=n[T++],l=f=n[T++],e.moveTo(u,f);break;case qe.L:{h=n[T++],v=n[T++];var S=Vn(h-u),A=Vn(v-f);if(S>a||A>i){if(c){var M=d[m++];if(g+M>_){var L=(_-g)/M;e.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break e}g+=M}e.lineTo(h,v),u=h,f=v,y=0}else{var N=S*S+A*A;N>y&&(w=h,E=v,y=N)}break}case qe.C:{var V=n[T++],W=n[T++],te=n[T++],_e=n[T++],ve=n[T++],fe=n[T++];if(c){var M=d[m++];if(g+M>_){var L=(_-g)/M;Ku(u,V,te,ve,L,qa),Ku(f,W,_e,fe,L,ja),e.bezierCurveTo(qa[1],ja[1],qa[2],ja[2],qa[3],ja[3]);break e}g+=M}e.bezierCurveTo(V,W,te,_e,ve,fe),u=ve,f=fe;break}case qe.Q:{var V=n[T++],W=n[T++],te=n[T++],_e=n[T++];if(c){var M=d[m++];if(g+M>_){var L=(_-g)/M;Zu(u,V,te,L,qa),Zu(f,W,_e,L,ja),e.quadraticCurveTo(qa[1],ja[1],qa[2],ja[2]);break e}g+=M}e.quadraticCurveTo(V,W,te,_e),u=te,f=_e;break}case qe.A:var J=n[T++],re=n[T++],I=n[T++],G=n[T++],B=n[T++],U=n[T++],q=n[T++],ce=!n[T++],Ce=I>G?I:G,ge=Vn(I-G)>.001,ue=B+U,Te=!1;if(c){var M=d[m++];g+M>_&&(ue=B+U*(_-g)/M,Te=!0),g+=M}if(ge&&e.ellipse?e.ellipse(J,re,I,G,q,B,ue,ce):e.arc(J,re,Ce,B,ue,ce),Te)break e;C&&(s=Ja(B)*I+J,l=Qa(B)*G+re),u=Ja(ue)*I+J,f=Qa(ue)*G+re;break;case qe.R:s=u=n[T],l=f=n[T+1],h=n[T++],v=n[T++];var we=n[T++],st=n[T++];if(c){var M=d[m++];if(g+M>_){var Le=_-g;e.moveTo(h,v),e.lineTo(h+tc(Le,we),v),Le-=we,Le>0&&e.lineTo(h+we,v+tc(Le,st)),Le-=st,Le>0&&e.lineTo(h+rc(we-Le,0),v+st),Le-=we,Le>0&&e.lineTo(h,v+rc(st-Le,0));break e}g+=M}e.rect(h,v,we,st);break;case qe.Z:if(c){var M=d[m++];if(g+M>_){var L=(_-g)/M;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}g+=M}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=qe,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Wi(t,e,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>t+s&&i>r+s||i<t-s&&i<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(i-t)<=s/2;var f=l*i-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function dA(t,e,r,n,a,i,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>e+h&&f>n+h&&f>i+h&&f>s+h||f<e-h&&f<n-h&&f<i-h&&f<s-h||u>t+h&&u>r+h&&u>a+h&&u>o+h||u<t-h&&u<r-h&&u<a-h&&u<o-h)return!1;var v=NC(t,e,r,n,a,i,o,s,u,f);return v<=h/2}function pA(t,e,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>t+u&&s>r+u&&s>a+u||s<t-u&&s<r-u&&s<a-u)return!1;var f=HC(t,e,r,n,a,i,s,l);return f<=u/2}var Ep=Math.PI*2;function $l(t){return t%=Ep,t<0&&(t+=Ep),t}var ts=Math.PI*2;function gA(t,e,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-a)%ts<1e-4)return!0;if(i){var h=n;n=$l(a),a=$l(h)}else n=$l(n),a=$l(a);n>a&&(a+=ts);var v=Math.atan2(l,s);return v<0&&(v+=ts),v>=n&&v<=a||v+ts>=n&&v+ts<=a}function ei(t,e,r,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===a?1/0:l>a?s:0}var ua=Ti.CMD,ti=Math.PI*2,mA=1e-4;function _A(t,e){return Math.abs(t-e)<mA}var ur=[-1,-1,-1],Kr=[-1,-1];function yA(){var t=Kr[0];Kr[0]=Kr[1],Kr[1]=t}function xA(t,e,r,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var f=Xu(e,n,i,s,u,ur);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=ur[p],m=g===0||g===1?.5:1,_=Xt(t,r,a,o,g);_<l||(v<0&&(v=d_(e,n,i,s,Kr),Kr[1]<Kr[0]&&v>1&&yA(),c=Xt(e,n,i,s,Kr[0]),v>1&&(d=Xt(e,n,i,s,Kr[1]))),v===2?g<Kr[0]?h+=c<e?m:-m:g<Kr[1]?h+=d<c?m:-m:h+=s<d?m:-m:g<Kr[0]?h+=c<e?m:-m:h+=s<c?m:-m)}return h}function wA(t,e,r,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=UC(e,n,i,s,ur);if(l===0)return 0;var u=p_(e,n,i);if(u>=0&&u<=1){for(var f=0,h=Tr(e,n,i,u),v=0;v<l;v++){var c=ur[v]===0||ur[v]===1?.5:1,d=Tr(t,r,a,ur[v]);d<o||(ur[v]<u?f+=h<e?c:-c:f+=i<h?c:-c)}return f}else{var c=ur[0]===0||ur[0]===1?.5:1,d=Tr(t,r,a,ur[0]);return d<o?0:i<e?c:-c}}function TA(t,e,r,n,a,i,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);ur[0]=-l,ur[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=ti-1e-4){n=0,a=ti;var f=i?1:-1;return o>=ur[0]+t&&o<=ur[1]+t?f:0}if(n>a){var h=n;n=a,a=h}n<0&&(n+=ti,a+=ti);for(var v=0,c=0;c<2;c++){var d=ur[c];if(d+t>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=ti+p),(p>=n&&p<=a||p+ti>=n&&p+ti<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function H_(t,e,r,n,a){for(var i=t.data,o=t.len(),s=0,l=0,u=0,f=0,h=0,v,c,d=0;d<o;){var p=i[d++],g=d===1;switch(p===ua.M&&d>1&&(r||(s+=ei(l,u,f,h,n,a))),g&&(l=i[d],u=i[d+1],f=l,h=u),p){case ua.M:f=i[d++],h=i[d++],l=f,u=h;break;case ua.L:if(r){if(Wi(l,u,i[d],i[d+1],e,n,a))return!0}else s+=ei(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case ua.C:if(r){if(dA(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=xA(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case ua.Q:if(r){if(pA(l,u,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=wA(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case ua.A:var m=i[d++],_=i[d++],y=i[d++],w=i[d++],E=i[d++],T=i[d++];d+=1;var x=!!(1-i[d++]);v=Math.cos(E)*y+m,c=Math.sin(E)*w+_,g?(f=v,h=c):s+=ei(l,u,v,c,n,a);var C=(n-m)*w/y+m;if(r){if(gA(m,_,w,E,E+T,x,e,C,a))return!0}else s+=TA(m,_,w,E,E+T,x,C,a);l=Math.cos(E+T)*y+m,u=Math.sin(E+T)*w+_;break;case ua.R:f=l=i[d++],h=u=i[d++];var S=i[d++],A=i[d++];if(v=f+S,c=h+A,r){if(Wi(f,h,v,h,e,n,a)||Wi(v,h,v,c,e,n,a)||Wi(v,c,f,c,e,n,a)||Wi(f,c,f,h,e,n,a))return!0}else s+=ei(v,h,v,c,n,a),s+=ei(f,c,f,h,n,a);break;case ua.Z:if(r){if(Wi(l,u,f,h,e,n,a))return!0}else s+=ei(l,u,f,h,n,a);l=f,u=h;break}}return!r&&!_A(u,h)&&(s+=ei(l,u,f,h,n,a)||0),s!==0}function SA(t,e,r){return H_(t,0,!1,e,r)}function CA(t,e,r,n){return H_(t,e,!0,r,n)}var G_=Qe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},pi),EA={style:Qe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Gf.style)},ic=Zs.concat(["invisible","culling","z","z2","zlevel","parent"]),vt=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<ic.length;++s)a[ic[s]]=this[ic[s]];a.__dirty|=Nr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=_t(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?me(this.style,s):this.useStyle(s):o==="shape"?me(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Ie(r)){var n=qu(r,0);return n>.5?m0:n>.2?sE:_0}else if(r)return _0}return m0},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ie(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=qu(r,0)<g0;if(i===o)return n}},e.prototype.buildPath=function(r,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~ro},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Ti(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&ro)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),CA(s,l/u,r,n)))return!0}if(this.hasFill())return SA(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ro,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:me(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&ro)},e.prototype.createStyle=function(r){return Of(G_,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=me({},this.shape))},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=me({},a.shape),me(u,n.shape)):(u=me({},i?this.shape:a.shape),me(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=me({},this.shape);for(var f={},h=_t(u),v=0;v<h.length;v++){var c=h[v];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return EA},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(i){be(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Ye(r.style)},o.prototype.getDefaultShape=function(){return Ye(r.shape)},o}(e);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Nr|_s|ro}(),e}(xl),AA=Qe({strokeFirst:!0,font:yi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},G_),ef=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return Of(AA,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=wv(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(xl);ef.prototype.type="tspan";var bA=Qe({x:0,y:0},pi),DA={style:Qe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Gf.style)};function MA(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Ua=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Of(bA,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=MA(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return DA},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Je(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xl);Ua.prototype.type="image";function kA(t,e){var r=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,u,f;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>a&&(h=s+l,s*=a/h,l*=a/h),u+f>a&&(h=u+f,u*=a/h,f*=a/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),t.moveTo(r+s,n),t.lineTo(r+a-l,n),l!==0&&t.arc(r+a-l,n+l,l,-Math.PI/2,0),t.lineTo(r+a,n+i-u),u!==0&&t.arc(r+a-u,n+i-u,u,0,Math.PI/2),t.lineTo(r+f,n+i),f!==0&&t.arc(r+f,n+i-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var lo=Math.round;function W_(t,e,r){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=n,t.x2=a,t.y1=i,t.y2=o;var s=r&&r.lineWidth;return s&&(lo(n*2)===lo(a*2)&&(t.x1=t.x2=ci(n,s,!0)),lo(i*2)===lo(o*2)&&(t.y1=t.y2=ci(i,s,!0))),t}}function V_(t,e,r){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;t.x=n,t.y=a,t.width=i,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=ci(n,s,!0),t.y=ci(a,s,!0),t.width=Math.max(ci(n+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(ci(a+o,s,!1)-t.y,o===0?0:1)),t}}function ci(t,e,r){if(!e)return t;var n=lo(t*2);return(n+lo(e))%2===0?n/2:(n+(r?1:-1))/2}var IA=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),LA={},Gt=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new IA},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=V_(LA,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?kA(r,n):r.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(vt);Gt.prototype.type="rect";var Ap={fill:"#000"},bp=2,RA={style:Qe({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},Gf.style)},jt=function(t){be(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ap,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,BA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Je(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Ap},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return me(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},e.prototype._mergeRich=function(r,n){for(var a=_t(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},me(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return RA},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||yi,a=r.padding,i=Pp(r),o=rA(i,r),s=oc(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,v=o.lines,c=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=r.x||0,g=r.y||0,m=r.align||d.align||"left",_=r.verticalAlign||d.verticalAlign||"top",y=p,w=no(g,o.contentHeight,_);if(s||a){var E=xs(p,f,m),T=no(g,u,_);s&&this._renderBackground(r,r,E,T,f,u)}w+=c/2,a&&(y=Rp(p,m,a),_==="top"?w+=a[0]:_==="bottom"&&(w-=a[2]));for(var x=0,C=!1,S=Lp("fill"in r?r.fill:(C=!0,d.fill)),A=Ip("stroke"in r?r.stroke:!l&&(!d.autoStroke||C)?(x=bp,d.stroke):null),M=r.textShadowBlur>0,L=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),N=o.calculatedLineHeight,V=0;V<v.length;V++){var W=this._getOrCreateChild(ef),te=W.createStyle();W.useStyle(te),te.text=v[V],te.x=y,te.y=w,te.textAlign=m,te.textBaseline="middle",te.opacity=r.opacity,te.strokeFirst=!0,M&&(te.shadowBlur=r.textShadowBlur||0,te.shadowColor=r.textShadowColor||"transparent",te.shadowOffsetX=r.textShadowOffsetX||0,te.shadowOffsetY=r.textShadowOffsetY||0),te.stroke=A,te.fill=S,A&&(te.lineWidth=r.lineWidth||x,te.lineDash=r.lineDash,te.lineDashOffset=r.lineDashOffset||0),te.font=n,Mp(te,r),w+=c,L&&W.setBoundingRect(new Je(xs(te.x,h,te.textAlign),no(te.y,N,te.textBaseline),h,N))}},e.prototype._updateRichTexts=function(){var r=this.style,n=Pp(r),a=iA(n,r),i=a.width,o=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,h=this._defaultStyle,v=r.align||h.align,c=r.verticalAlign||h.verticalAlign;this.isTruncated=!!a.isTruncated;var d=xs(u,o,v),p=no(f,s,c),g=d,m=p;l&&(g+=l[3],m+=l[0]);var _=g+i;oc(r)&&this._renderBackground(r,r,d,p,o,s);for(var y=!!r.backgroundColor,w=0;w<a.lines.length;w++){for(var E=a.lines[w],T=E.tokens,x=T.length,C=E.lineHeight,S=E.width,A=0,M=g,L=_,N=x-1,V=void 0;A<x&&(V=T[A],!V.align||V.align==="left");)this._placeToken(V,r,C,m,M,"left",y),S-=V.width,M+=V.width,A++;for(;N>=0&&(V=T[N],V.align==="right");)this._placeToken(V,r,C,m,L,"right",y),S-=V.width,L-=V.width,N--;for(M+=(i-(M-g)-(_-L)-S)/2;A<=N;)V=T[A],this._placeToken(V,r,C,m,M+V.width/2,"center",y),M+=V.width,A++;m+=C}},e.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,h=i+a/2;f==="top"?h=i+r.height/2:f==="bottom"&&(h=i+a-r.height/2);var v=!r.isLineHolder&&oc(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var c=!!u.backgroundColor,d=r.textPadding;d&&(o=Rp(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(ef),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,_=!1,y=0,w=Lp("fill"in u?u.fill:"fill"in n?n.fill:(_=!0,m.fill)),E=Ip("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!m.autoStroke||_)?(y=bp,m.stroke):null),T=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=h,T&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||yi,g.opacity=As(u.opacity,n.opacity,1),Mp(g,u),E&&(g.lineWidth=As(u.lineWidth,n.lineWidth,y),g.lineDash=We(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=E),w&&(g.fill=w);var x=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new Je(xs(g.x,x,g.textAlign),no(g.y,C,g.textBaseline),x,C))},e.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,h=l&&l.image,v=l&&!h,c=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(Gt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=c,p.dirtyShape()}if(v){var _=p.style;_.fill=l||null,_.fillOpacity=We(r.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Ua),g.onload=function(){d.dirtyStyle()};var y=g.style;y.image=l.image,y.x=a,y.y=i,y.width=o,y.height=s}if(u&&f){var _=p.style;_.lineWidth=u,_.stroke=f,_.strokeOpacity=We(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var w=(p||g).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=As(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return NA(r)&&(n=[r.fontStyle,r.fontWeight,OA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ln(n)||r.textFont||r.font},e}(xl),PA={left:!0,right:1,center:1},FA={top:1,bottom:1,middle:1},Dp=["fontStyle","fontWeight","fontSize","fontFamily"];function OA(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?fv+"px":t+"px"}function Mp(t,e){for(var r=0;r<Dp.length;r++){var n=Dp[r],a=e[n];a!=null&&(t[n]=a)}}function NA(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function BA(t){return kp(t),H(t.rich,kp),t}function kp(t){if(t){t.font=jt.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||PA[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||FA[r]?r:"top";var n=t.padding;n&&(t.padding=r_(t.padding))}}function Ip(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Lp(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Rp(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Pp(t){var e=t.text;return e!=null&&(e+=""),e}function oc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var at=Dt(),UA=function(t,e,r,n){if(n){var a=at(n);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=at(i);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Fp=1,Op={},z_=Dt(),bv=Dt(),Dv=0,Wf=1,Vf=2,tn=["emphasis","blur","select"],tf=["normal","emphasis","blur","select"],HA=10,GA=9,gi="highlight",Iu="downplay",Is="select",Lu="unselect",Ls="toggleSelect";function Vi(t){return t!=null&&t!=="none"}function zf(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function $_(t){zf(t,"emphasis",Vf)}function Y_(t){t.hoverState===Vf&&zf(t,"normal",Dv)}function Mv(t){zf(t,"blur",Wf)}function X_(t){t.hoverState===Wf&&zf(t,"normal",Dv)}function WA(t){t.selected=!0}function VA(t){t.selected=!1}function Np(t,e,r){e(t,r)}function oa(t,e,r){Np(t,e,r),t.isGroup&&t.traverse(function(n){Np(n,e,r)})}function Bp(t,e){switch(e){case"emphasis":t.hoverState=Vf;break;case"normal":t.hoverState=Dv;break;case"blur":t.hoverState=Wf;break;case"select":t.selected=!0}}function zA(t,e,r,n){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function $A(t,e,r,n){var a=r&&ut(r,"select")>=0,i=!1;if(t instanceof vt){var o=z_(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Vi(s)||Vi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=me({},n),u=me({},u),u.fill=s):!Vi(u.fill)&&Vi(s)?(i=!0,n=me({},n),u=me({},u),u.fill=np(s)):!Vi(u.stroke)&&Vi(l)&&(i||(n=me({},n),u=me({},u)),u.stroke=np(l)),n.style=u}}if(n&&n.z2==null){i||(n=me({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??HA)}return n}function YA(t,e,r){if(r&&r.z2==null){r=me({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??GA)}return r}function XA(t,e,r){var n=ut(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:zA(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=me({},r),o=me({opacity:n?a:i.opacity*.1},o),r.style=o),r}function sc(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return $A(this,t,e,r);if(t==="blur")return XA(this,t,r);if(t==="select")return YA(this,t,r)}return r}function KA(t){t.stateProxy=sc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=sc),r&&(r.stateProxy=sc)}function Up(t,e){!j_(t,e)&&!t.__highByOuter&&oa(t,$_)}function Hp(t,e){!j_(t,e)&&!t.__highByOuter&&oa(t,Y_)}function rf(t,e){t.__highByOuter|=1<<(e||0),oa(t,$_)}function nf(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&oa(t,Y_)}function ZA(t){oa(t,Mv)}function K_(t){oa(t,X_)}function Z_(t){oa(t,WA)}function q_(t){oa(t,VA)}function j_(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function J_(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var o=bv(i),s=a==="series",l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){X_(u)}),s&&r.push(i)),o.isBlured=!1}),H(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function C0(t,e,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&K_(v)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||e==="series"&&f)){var c=n.getViewOfSeriesModel(u);if(c.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Mv(g)}),br(e))i(u.getData(),e);else if(Pe(e))for(var d=_t(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),bv(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,a)}})}}function E0(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){bv(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Mv(i)})}}}function qA(t,e,r){var n=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=wi(a,e);i=(ke(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=at(o);C0(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);f!=null&&C0(n,f,h,r)}}}function kv(t,e,r,n){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return a;var i=n.getModel().getComponent(t,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(at(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function jA(t,e,r){var n=at(t),a=kv(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&E0(n.componentMainType,n.componentIndex,r),H(i,function(s){return Up(s,e)})):(C0(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&E0(n.componentMainType,n.componentIndex,r),Up(t,e))}function JA(t,e,r){J_(r);var n=at(t),a=kv(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?H(a,function(i){return Hp(i,e)}):Hp(t,e)}function QA(t,e,r){if(M0(e)){var n=e.dataType,a=t.getData(n),i=wi(a,e);ke(i)||(i=[i]),t[e.type===Ls?"toggleSelect":e.type===Is?"select":"unselect"](i,n)}}function Gp(t){var e=t.getAllData();H(e,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?Z_(i):q_(i)})})}function eb(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();H(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function A0(t,e,r){Q_(t,!0),oa(t,KA),rb(t,e,r)}function tb(t){Q_(t,!1)}function af(t,e,r,n){n?tb(t):A0(t,e,r)}function rb(t,e,r){var n=at(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Wp=["emphasis","blur","select"],nb={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function b0(t,e,r,n){r=r||"itemStyle";for(var a=0;a<Wp.length;a++){var i=Wp[a],o=e.getModel([i,r]),s=t.ensureState(i);s.style=o[nb[r]]()}}function Q_(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function D0(t){return!!(t&&t.__highDownDispatcher)}function ab(t){var e=Op[t];return e==null&&Fp<=32&&(e=Op[t]=Fp++),e}function M0(t){var e=t.type;return e===Is||e===Lu||e===Ls}function Vp(t){var e=t.type;return e===gi||e===Iu}function ib(t){var e=z_(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var zi=Ti.CMD,ob=[[],[],[]],zp=Math.sqrt,sb=Math.atan2;function lb(t,e){if(e){var r=t.data,n=t.len(),a,i,o,s,l,u,f=zi.M,h=zi.C,v=zi.L,c=zi.R,d=zi.A,p=zi.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case f:i=1;break;case v:i=1;break;case h:i=3;break;case p:i=2;break;case d:var g=e[4],m=e[5],_=zp(e[0]*e[0]+e[1]*e[1]),y=zp(e[2]*e[2]+e[3]*e[3]),w=sb(-e[1]/y,e[0]/_);r[o]*=_,r[o++]+=g,r[o]*=y,r[o++]+=m,r[o++]*=_,r[o++]*=y,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case c:u[0]=r[o++],u[1]=r[o++],en(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],en(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var E=ob[l];E[0]=r[o++],E[1]=r[o++],en(E,E,e),r[s++]=E[0],r[s++]=E[1]}}t.increaseVersion()}}var lc=Math.sqrt,Yl=Math.sin,Xl=Math.cos,rs=Math.PI;function $p(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function k0(t,e){return(t[0]*e[0]+t[1]*e[1])/($p(t)*$p(e))}function Yp(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(k0(t,e))}function Xp(t,e,r,n,a,i,o,s,l,u,f){var h=l*(rs/180),v=Xl(h)*(t-r)/2+Yl(h)*(e-n)/2,c=-1*Yl(h)*(t-r)/2+Xl(h)*(e-n)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=lc(d),s*=lc(d));var p=(a===i?-1:1)*lc((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,m=p*-s*v/o,_=(t+r)/2+Xl(h)*g-Yl(h)*m,y=(e+n)/2+Yl(h)*g+Xl(h)*m,w=Yp([1,0],[(v-g)/o,(c-m)/s]),E=[(v-g)/o,(c-m)/s],T=[(-1*v-g)/o,(-1*c-m)/s],x=Yp(E,T);if(k0(E,T)<=-1&&(x=rs),k0(E,T)>=1&&(x=0),x<0){var C=Math.round(x/rs*1e6)/1e6;x=rs*2+C%2*rs}f.addData(u,_,y,o,s,w,x,h,i)}var ub=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,fb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function hb(t){var e=new Ti;if(!t)return e;var r=0,n=0,a=r,i=n,o,s=Ti.CMD,l=t.match(ub);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(fb)||[],d=c.length,p=0;p<d;p++)c[p]=parseFloat(c[p]);for(var g=0;g<d;){var m=void 0,_=void 0,y=void 0,w=void 0,E=void 0,T=void 0,x=void 0,C=r,S=n,A=void 0,M=void 0;switch(h){case"l":r+=c[g++],n+=c[g++],v=s.L,e.addData(v,r,n);break;case"L":r=c[g++],n=c[g++],v=s.L,e.addData(v,r,n);break;case"m":r+=c[g++],n+=c[g++],v=s.M,e.addData(v,r,n),a=r,i=n,h="l";break;case"M":r=c[g++],n=c[g++],v=s.M,e.addData(v,r,n),a=r,i=n,h="L";break;case"h":r+=c[g++],v=s.L,e.addData(v,r,n);break;case"H":r=c[g++],v=s.L,e.addData(v,r,n);break;case"v":n+=c[g++],v=s.L,e.addData(v,r,n);break;case"V":n=c[g++],v=s.L,e.addData(v,r,n);break;case"C":v=s.C,e.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),r=c[g-2],n=c[g-1];break;case"c":v=s.C,e.addData(v,c[g++]+r,c[g++]+n,c[g++]+r,c[g++]+n,c[g++]+r,c[g++]+n),r+=c[g-2],n+=c[g-1];break;case"S":m=r,_=n,A=e.len(),M=e.data,o===s.C&&(m+=r-M[A-4],_+=n-M[A-3]),v=s.C,C=c[g++],S=c[g++],r=c[g++],n=c[g++],e.addData(v,m,_,C,S,r,n);break;case"s":m=r,_=n,A=e.len(),M=e.data,o===s.C&&(m+=r-M[A-4],_+=n-M[A-3]),v=s.C,C=r+c[g++],S=n+c[g++],r+=c[g++],n+=c[g++],e.addData(v,m,_,C,S,r,n);break;case"Q":C=c[g++],S=c[g++],r=c[g++],n=c[g++],v=s.Q,e.addData(v,C,S,r,n);break;case"q":C=c[g++]+r,S=c[g++]+n,r+=c[g++],n+=c[g++],v=s.Q,e.addData(v,C,S,r,n);break;case"T":m=r,_=n,A=e.len(),M=e.data,o===s.Q&&(m+=r-M[A-4],_+=n-M[A-3]),r=c[g++],n=c[g++],v=s.Q,e.addData(v,m,_,r,n);break;case"t":m=r,_=n,A=e.len(),M=e.data,o===s.Q&&(m+=r-M[A-4],_+=n-M[A-3]),r+=c[g++],n+=c[g++],v=s.Q,e.addData(v,m,_,r,n);break;case"A":y=c[g++],w=c[g++],E=c[g++],T=c[g++],x=c[g++],C=r,S=n,r=c[g++],n=c[g++],v=s.A,Xp(C,S,r,n,T,x,y,w,E,v,e);break;case"a":y=c[g++],w=c[g++],E=c[g++],T=c[g++],x=c[g++],C=r,S=n,r+=c[g++],n+=c[g++],v=s.A,Xp(C,S,r,n,T,x,y,w,E,v,e);break}}(h==="z"||h==="Z")&&(v=s.Z,e.addData(v),r=a,n=i),o=v}return e.toStatic(),e}var ey=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(vt);function ty(t){return t.setData!=null}function ry(t,e){var r=hb(t),n=me({},e);return n.buildPath=function(a){if(ty(a)){a.setData(r.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;r.rebuildPath(i,1)}},n.applyTransform=function(a){lb(r,a),this.dirtyShape()},n}function cb(t,e){return new ey(ry(t,e))}function vb(t,e){var r=ry(t,e),n=function(a){be(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(ey);return n}function db(t,e){for(var r=[],n=t.length,a=0;a<n;a++){var i=t[a];r.push(i.getUpdatedPathProxy(!0))}var o=new vt(e);return o.createPathProxy(),o.buildPath=function(s){if(ty(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var pb=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),$f=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new pb},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(vt);$f.prototype.type="circle";var gb=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Iv=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new gb},e.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),r.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),r.closePath()},e}(vt);Iv.prototype.type="ellipse";var ny=Math.PI,uc=ny*2,ri=Math.sin,$i=Math.cos,mb=Math.acos,tr=Math.atan2,Kp=Math.abs,Rs=Math.sqrt,ws=Math.max,bn=Math.min,fn=1e-4;function _b(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,f=o-a,h=s-i,v=h*l-f*u;if(!(v*v<fn))return v=(f*(e-i)-h*(t-a))/v,[t+v*l,e+v*u]}function Kl(t,e,r,n,a,i,o){var s=t-r,l=e-n,u=(o?i:-i)/Rs(s*s+l*l),f=u*l,h=-u*s,v=t+f,c=e+h,d=r+f,p=n+h,g=(v+d)/2,m=(c+p)/2,_=d-v,y=p-c,w=_*_+y*y,E=a-i,T=v*p-d*c,x=(y<0?-1:1)*Rs(ws(0,E*E*w-T*T)),C=(T*y-_*x)/w,S=(-T*_-y*x)/w,A=(T*y+_*x)/w,M=(-T*_+y*x)/w,L=C-g,N=S-m,V=A-g,W=M-m;return L*L+N*N>V*V+W*W&&(C=A,S=M),{cx:C,cy:S,x0:-f,y0:-h,x1:C*(a/E-1),y1:S*(a/E-1)}}function yb(t){var e;if(ke(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function xb(t,e){var r,n=ws(e.r,0),a=ws(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=Kp(u-l),d=c>uc&&c%uc;if(d>fn&&(c=d),!(n>fn))t.moveTo(f,h);else if(c>uc-fn)t.moveTo(f+n*$i(l),h+n*ri(l)),t.arc(f,h,n,l,u,!v),a>fn&&(t.moveTo(f+a*$i(u),h+a*ri(u)),t.arc(f,h,a,u,l,v));else{var p=void 0,g=void 0,m=void 0,_=void 0,y=void 0,w=void 0,E=void 0,T=void 0,x=void 0,C=void 0,S=void 0,A=void 0,M=void 0,L=void 0,N=void 0,V=void 0,W=n*$i(l),te=n*ri(l),_e=a*$i(u),ve=a*ri(u),fe=c>fn;if(fe){var J=e.cornerRadius;J&&(r=yb(J),p=r[0],g=r[1],m=r[2],_=r[3]);var re=Kp(n-a)/2;if(y=bn(re,m),w=bn(re,_),E=bn(re,p),T=bn(re,g),S=x=ws(y,w),A=C=ws(E,T),(x>fn||C>fn)&&(M=n*$i(u),L=n*ri(u),N=a*$i(l),V=a*ri(l),c<ny)){var I=_b(W,te,N,V,M,L,_e,ve);if(I){var G=W-I[0],B=te-I[1],U=M-I[0],q=L-I[1],ce=1/ri(mb((G*U+B*q)/(Rs(G*G+B*B)*Rs(U*U+q*q)))/2),Ce=Rs(I[0]*I[0]+I[1]*I[1]);S=bn(x,(n-Ce)/(ce+1)),A=bn(C,(a-Ce)/(ce-1))}}}if(!fe)t.moveTo(f+W,h+te);else if(S>fn){var ge=bn(m,S),ue=bn(_,S),Te=Kl(N,V,W,te,n,ge,v),we=Kl(M,L,_e,ve,n,ue,v);t.moveTo(f+Te.cx+Te.x0,h+Te.cy+Te.y0),S<x&&ge===ue?t.arc(f+Te.cx,h+Te.cy,S,tr(Te.y0,Te.x0),tr(we.y0,we.x0),!v):(ge>0&&t.arc(f+Te.cx,h+Te.cy,ge,tr(Te.y0,Te.x0),tr(Te.y1,Te.x1),!v),t.arc(f,h,n,tr(Te.cy+Te.y1,Te.cx+Te.x1),tr(we.cy+we.y1,we.cx+we.x1),!v),ue>0&&t.arc(f+we.cx,h+we.cy,ue,tr(we.y1,we.x1),tr(we.y0,we.x0),!v))}else t.moveTo(f+W,h+te),t.arc(f,h,n,l,u,!v);if(!(a>fn)||!fe)t.lineTo(f+_e,h+ve);else if(A>fn){var ge=bn(p,A),ue=bn(g,A),Te=Kl(_e,ve,M,L,a,-ue,v),we=Kl(W,te,N,V,a,-ge,v);t.lineTo(f+Te.cx+Te.x0,h+Te.cy+Te.y0),A<C&&ge===ue?t.arc(f+Te.cx,h+Te.cy,A,tr(Te.y0,Te.x0),tr(we.y0,we.x0),!v):(ue>0&&t.arc(f+Te.cx,h+Te.cy,ue,tr(Te.y0,Te.x0),tr(Te.y1,Te.x1),!v),t.arc(f,h,a,tr(Te.cy+Te.y1,Te.cx+Te.x1),tr(we.cy+we.y1,we.cx+we.x1),v),ge>0&&t.arc(f+we.cx,h+we.cy,ge,tr(we.y1,we.x1),tr(we.y0,we.x0),!v))}else t.lineTo(f+_e,h+ve),t.arc(f,h,a,u,l,v)}t.closePath()}}}var wb=function(){function t(){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 t}(),Ro=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new wb},e.prototype.buildPath=function(r,n){xb(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(vt);Ro.prototype.type="sector";var Tb=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Lv=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Tb},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},e}(vt);Lv.prototype.type="ring";function Sb(t,e,r,n){var a=[],i=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=t.length;v<c;v++)io(f,f,t[v]),oo(h,h,t[v]);io(f,f,n[0]),oo(h,h,n[1])}for(var v=0,c=t.length;v<c;v++){var d=t[v];if(r)l=t[v?v-1:c-1],u=t[(v+1)%c];else if(v===0||v===c-1){a.push(oC(t[v]));continue}else l=t[v-1],u=t[v+1];sC(i,u,l),Ah(i,i,e);var p=n0(d,l),g=n0(d,u),m=p+g;m!==0&&(p/=m,g/=m),Ah(o,i,-p),Ah(s,i,g);var _=Hd([],d,o),y=Hd([],d,s);n&&(oo(_,_,f),io(_,_,h),oo(y,y,f),io(y,y,h)),a.push(_),a.push(y)}return r&&a.push(a.shift()),a}function ay(t,e,r){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=Sb(a,n,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,h=a.length;s<h;s++)t.lineTo(a[s][0],a[s][1])}r&&t.closePath()}}var Cb=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Rv=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Cb},e.prototype.buildPath=function(r,n){ay(r,n,!0)},e}(vt);Rv.prototype.type="polygon";var Eb=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),wl=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Eb},e.prototype.buildPath=function(r,n){ay(r,n,!1)},e}(vt);wl.prototype.type="polyline";var Ab={},bb=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Ra=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new bb},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=W_(Ab,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(vt);Ra.prototype.type="line";var _r=[],Db=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Zp(t,e,r){var n=t.cpx2,a=t.cpy2;return n!=null||a!=null?[(r?jd:Xt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?jd:Xt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Jd:Tr)(t.x1,t.cpx1,t.x2,e),(r?Jd:Tr)(t.y1,t.cpy1,t.y2,e)]}var Pv=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Db},e.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,v=n.percent;v!==0&&(r.moveTo(a,i),f==null||h==null?(v<1&&(Zu(a,l,o,v,_r),l=_r[1],o=_r[2],Zu(i,u,s,v,_r),u=_r[1],s=_r[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(Ku(a,l,f,o,v,_r),l=_r[1],f=_r[2],o=_r[3],Ku(i,u,h,s,v,_r),u=_r[1],h=_r[2],s=_r[3]),r.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(r){return Zp(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Zp(this.shape,r,!0);return fC(n,n)},e}(vt);Pv.prototype.type="bezier-curve";var Mb=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Yf=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Mb},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+a,h*o+i),r.arc(a,i,o,s,l,!u)},e}(vt);Yf.prototype.type="arc";var kb=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),vt.prototype.getBoundingRect.call(this)},e}(vt),iy=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),oy=function(t){be(e,t);function e(r,n,a,i,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e}(iy),Ib=function(t){be(e,t);function e(r,n,a,i,o){var s=t.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e}(iy),ni=[0,0],ai=[0,0],Zl=new Ne,ql=new Ne,of=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ne;for(var n=0;n<2;n++)this._axes[n]=new Ne;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);Ne.sub(a[0],n[1],n[0]),Ne.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},t.prototype.intersect=function(e,r){var n=!0,a=!r;return Zl.set(1/0,1/0),ql.set(0,0),!this._intersectCheckOneSide(this,e,Zl,ql,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,Zl,ql,a,-1)&&(n=!1,a)||a||Ne.copy(r,n?Zl:ql),n},t.prototype._intersectCheckOneSide=function(e,r,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,ni),this._getProjMinMaxOnAxis(l,r._corners,ai),ni[1]<ai[0]||ni[0]>ai[1]){if(s=!1,i)return s;var f=Math.abs(ai[0]-ni[1]),h=Math.abs(ni[0]-ai[1]);Math.min(f,h)>a.len()&&(f<h?Ne.scale(a,u,-f*o):Ne.scale(a,u,h*o))}else if(n){var f=Math.abs(ai[0]-ni[1]),h=Math.abs(ni[0]-ai[1]);Math.min(f,h)<n.len()&&(f<h?Ne.scale(n,u,f*o):Ne.scale(n,u,-h*o))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var a=this._axes[e],i=this._origin,o=r[0].dot(a)+i[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(a)+i[e];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},t}(),Lb=[],Rb=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Je(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(Lb)),r.union(i)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e}(xl),Pb=Dt();function Fb(t,e,r,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=We(n.duration,200),f=We(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(h=i.delay)),Ue(h)&&(h=h(r,a)),Ue(u)&&(u=u(r));var v={duration:u||0,delay:h,easing:f};return v}else return null}function Fv(t,e,r,n,a,i,o){var s=!1,l;Ue(a)?(o=i,i=a,a=null):Pe(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=Fb(t,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function Fn(t,e,r,n,a,i){Fv("update",t,e,r,n,a,i)}function Da(t,e,r,n,a,i){Fv("enter",t,e,r,n,a,i)}function Ps(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function sf(t,e,r,n,a,i){Ps(t)||Fv("leave",t,e,r,n,a,i)}function qp(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),sf(t,{style:{opacity:0}},e,r,n)}function sy(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||qp(a,e,r,n)}):qp(t,e,r,n)}function ly(t){Pb(t).oldStyle=t.style}var lf=Math.max,uf=Math.min,I0={};function Ob(t){return vt.extend(t)}var Nb=vb;function Bb(t,e){return Nb(t,e)}function xn(t,e){I0[t]=e}function Ub(t){if(I0.hasOwnProperty(t))return I0[t]}function Ov(t,e,r,n){var a=cb(t,e);return r&&(n==="center"&&(r=fy(r,a.getBoundingRect())),hy(a,r)),a}function uy(t,e,r){var n=new Ua({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(fy(e,i))}}});return n}function fy(t,e){var r=e.width/e.height,n=t.height*r,a;n<=t.width?a=t.height:(n=t.width,a=n/r);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Hb=db;function hy(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Js(t,e){return W_(t,t,{lineWidth:e}),t}function Gb(t){return V_(t.shape,t.shape,t.style),t}var Wb=ci;function Vb(t,e){for(var r=gv([]);t&&t!==e;)vo(r,t.getLocalTransform(),r),t=t.parent;return r}function Nv(t,e,r){return e&&!br(e)&&(e=xv.getLocalTransform(e)),r&&(e=_v([],e)),en([],t,e)}function zb(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[t==="left"?-n:t==="right"?n:0,t==="top"?-a:t==="bottom"?a:0];return i=Nv(i,e,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function jp(t){return!t.isGroup}function $b(t){return t.shape!=null}function cy(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){jp(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return $b(o)&&(s.shape=me({},o.shape)),s}var i=n(t);e.traverse(function(o){if(jp(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Fn(o,l,r,at(o).dataIndex)}}})}function Yb(t,e){return Re(t,function(r){var n=r[0];n=lf(n,e.x),n=uf(n,e.x+e.width);var a=r[1];return a=lf(a,e.y),a=uf(a,e.y+e.height),[n,a]})}function Xb(t,e){var r=lf(t.x,e.x),n=uf(t.x+t.width,e.x+e.width),a=lf(t.y,e.y),i=uf(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Bv(t,e,r){var n=me({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),Qe(a,r),new Ua(n)):Ov(t.replace("path://",""),n,r,"center")}function Kb(t,e,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(vy(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function vy(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,f=o-a,h=s-i,v=fc(f,h,l,u);if(Zb(v))return!1;var c=t-a,d=e-i,p=fc(c,d,l,u)/v;if(p<0||p>1)return!1;var g=fc(c,d,f,h)/v;return!(g<0||g>1)}function fc(t,e,r,n){return t*n-r*e}function Zb(t){return t<=1e-6&&t>=-1e-6}function Xf(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=Ie(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=t.formatterParamsExtra;l&&H(_t(l),function(f){xi(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=at(t.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:Qe({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Jp(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Uv(t,e){if(t)if(ke(t))for(var r=0;r<t.length;r++)Jp(t[r],e);else Jp(t,e)}xn("circle",$f);xn("ellipse",Iv);xn("sector",Ro);xn("ring",Lv);xn("polygon",Rv);xn("polyline",wl);xn("rect",Gt);xn("line",Ra);xn("bezierCurve",Pv);xn("arc",Yf);const qb=Object.freeze(Object.defineProperty({__proto__:null,Arc:Yf,BezierCurve:Pv,BoundingRect:Je,Circle:$f,CompoundPath:kb,Ellipse:Iv,Group:sr,Image:Ua,IncrementalDisplayable:Rb,Line:Ra,LinearGradient:oy,OrientedBoundingRect:of,Path:vt,Point:Ne,Polygon:Rv,Polyline:wl,RadialGradient:Ib,Rect:Gt,Ring:Lv,Sector:Ro,Text:jt,applyTransform:Nv,clipPointsByRect:Yb,clipRectByRect:Xb,createIcon:Bv,extendPath:Bb,extendShape:Ob,getShapeClass:Ub,getTransform:Vb,groupTransition:cy,initProps:Da,isElementRemoved:Ps,lineLineIntersect:vy,linePolygonIntersect:Kb,makeImage:uy,makePath:Ov,mergePath:Hb,registerShape:xn,removeElement:sf,removeElementWithFadeOut:sy,resizePath:hy,setTooltipConfig:Xf,subPixelOptimize:Wb,subPixelOptimizeLine:Js,subPixelOptimizeRect:Gb,transformDirection:zb,traverseElements:Uv,updateProps:Fn},Symbol.toStringTag,{value:"Module"}));var Kf={};function jb(t,e){for(var r=0;r<tn.length;r++){var n=tn[r],a=e[n],i=t.ensureState(n);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Qp(t,e,r){var n=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Ue(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var l={normal:s},u=0;u<tn.length;u++){var f=tn[u],h=e[f];l[f]=We(n?n.getFormattedLabel(a,f,null,i,h&&h.get("formatter")):null,s)}return l}function Zf(t,e,r,n){r=r||Kf;for(var a=t instanceof jt,i=!1,o=0;o<tf.length;o++){var s=e[tf[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?t:t.getTextContent();if(i){a||(l||(l=new jt,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Qp(r,e),f=e.normal,h=!!f.getShallow("show"),v=Pa(f,n&&n.normal,r,!1,!a);v.text=u.normal,a||t.setTextConfig(eg(f,r,!1));for(var o=0;o<tn.length;o++){var c=tn[o],s=e[c];if(s){var d=l.ensureState(c),p=!!We(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=Pa(s,n&&n[c],r,!0,!a),d.style.text=u[c],!a){var g=t.ensureState(c);g.textConfig=eg(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),r.enableTextSetter&&(dy(l).setLabelText=function(m){var _=Qp(r,e,m);jb(l,_)})}else l&&(l.ignore=!0);t.dirty()}function qf(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<tn.length;n++){var a=tn[n];r[a]=t.getModel([a,e])}return r}function Pa(t,e,r,n,a){var i={};return Jb(i,t,r,n,a),e&&me(i,e),i}function eg(t,e,r){e=e||{};var n={},a,i=t.getShallow("rotate"),o=We(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function Jb(t,e,r,n,a){r=r||Kf;var i=e.ecModel,o=i&&i.option.textStyle,s=Qb(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);ag(l[u]={},f,o,r,n,a,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var v=e.get("minMargin");v!=null&&(t.margin=v),ag(t,e,o,r,n,a,!0,!1)}function Qb(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Kf).rich;if(r){e=e||{};for(var n=_t(r),a=0;a<n.length;a++){var i=n[a];e[i]=1}}t=t.parentModel}return e}var tg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],rg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ng=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ag(t,e,r,n,a,i,o,s){r=!a&&r||Kf;var l=n&&n.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),h=We(e.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),i||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(t.fill=u),f!=null&&(t.stroke=f);var v=We(e.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var c=We(e.getShallow("textBorderType"),r.textBorderType);c!=null&&(t.lineDash=c);var d=We(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(t.lineDashOffset=d),!a&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(t.opacity=h),!a&&!i&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<tg.length;p++){var g=tg[p],m=We(e.getShallow(g),r[g]);m!=null&&(t[g]=m)}for(var p=0;p<rg.length;p++){var g=rg[p],m=e.getShallow(g);m!=null&&(t[g]=m)}if(t.verticalAlign==null){var _=e.getShallow("baseline");_!=null&&(t.verticalAlign=_)}if(!o||!n.disableBox){for(var p=0;p<ng.length;p++){var g=ng[p],m=e.getShallow(g);m!=null&&(t[g]=m)}var y=e.getShallow("borderType");y!=null&&(t.borderDash=y),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function eD(t,e){var r=e&&e.getModel("textStyle");return Ln([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var dy=Dt(),tD=["textStyle","color"],hc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],cc=new jt,rD=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(tD):null)},t.prototype.getFont=function(){return eD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<hc.length;n++)r[hc[n]]=this.getShallow(hc[n]);return cc.useStyle(r),cc.update(),cc.getBoundingRect()},t}(),py=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],nD=js(py),aD=function(){function t(){}return t.prototype.getLineStyle=function(e){return nD(this,e)},t}(),gy=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],iD=js(gy),oD=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return iD(this,e,r)},t}(),Ct=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){je(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,a=n==null?n:n[e];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,r){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Ye(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Fe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();Av(Ct);XE(Ct);Nn(Ct,aD);Nn(Ct,oD);Nn(Ct,JE);Nn(Ct,rD);var sD=Math.round(Math.random()*10);function jf(t){return[t||"",sD++].join("_")}function lD(t){var e={};t.registerSubTypeDefaulter=function(r,n){var a=Rn(r);e[a.main]=n},t.determineSubType=function(r,n){var a=n.type;if(!a){var i=Rn(r).main;t.hasSubTypes(r)&&e[i]&&(a=e[i](n))}return a}}function uD(t,e){t.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),f=u.graph,h=u.noEntryList,v={};for(H(i,function(_){v[_]=!0});h.length;){var c=h.pop(),d=f[c],p=!!v[c];p&&(s.call(l,c,d.originalDeps.slice()),delete v[c]),H(d.successor,p?m:g)}H(v,function(){var _="";throw new Error(_)});function g(_){f[_].entryCount--,f[_].entryCount===0&&h.push(_)}function m(_){v[_]=!0,g(_)}};function r(i){var o={},s=[];return H(i,function(l){var u=n(o,l),f=u.originalDeps=e(l),h=a(f,i);u.entryCount=h.length,u.entryCount===0&&s.push(l),H(h,function(v){ut(u.predecessor,v)<0&&u.predecessor.push(v);var c=n(o,v);ut(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return H(i,function(l){ut(o,l)>=0&&s.push(l)}),s}}function fD(t,e){return je(je({},t,!0),e,!0)}const hD={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:". "}}}},cD={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ff="ZH",Hv="EN",go=Hv,Ru={},Gv={},my=Fe.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||go).toUpperCase();return t.indexOf(ff)>-1?ff:go}():go;function _y(t,e){t=t.toUpperCase(),Gv[t]=new Ct(e),Ru[t]=e}function vD(t){if(Ie(t)){var e=Ru[t.toUpperCase()]||{};return t===ff||t===Hv?Ye(e):je(Ye(e),Ye(Ru[go]),!1)}else return je(Ye(t),Ye(Ru[go]),!1)}function dD(t){return Gv[t]}function pD(){return Gv[go]}_y(Hv,hD);_y(ff,cD);var Wv=1e3,Vv=Wv*60,Fs=Vv*60,Qr=Fs*24,ig=Qr*365,Ts={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},jl="{yyyy}-{MM}-{dd}",og={year:"{yyyy}",month:"{yyyy}-{MM}",day:jl,hour:jl+" "+Ts.hour,minute:jl+" "+Ts.minute,second:jl+" "+Ts.second,millisecond:Ts.none},vc=["year","month","day","hour","minute","second","millisecond"],yy=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function fa(t,e){return t+="","0000".substr(0,e-t.length)+t}function mo(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function gD(t){return t===mo(t)}function mD(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Jf(t,e,r,n){var a=ra(t),i=a[zv(r)](),o=a[_o(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[Qf(r)](),u=a["get"+(r?"UTC":"")+"Day"](),f=a[Qs(r)](),h=(f-1)%12+1,v=a[eh(r)](),c=a[th(r)](),d=a[rh(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Ct?n:dD(n||my)||pD(),_=m.getModel("time"),y=_.get("month"),w=_.get("monthAbbr"),E=_.get("dayOfWeek"),T=_.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,fa(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,fa(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,fa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,E[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,fa(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,fa(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,fa(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,fa(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,fa(d,3)).replace(/{S}/g,d+"")}function _D(t,e,r,n,a){var i=null;if(Ie(r))i=r;else if(Ue(r))i=r(t.value,e,{level:t.level});else{var o=me({},Ts);if(t.level>0)for(var s=0;s<vc.length;++s)o[vc[s]]="{primary|"+o[vc[s]]+"}";var l=r?r.inherit===!1?r:Qe(r,o):o,u=xy(t.value,a);if(l[u])i=l[u];else if(l.inherit){for(var f=yy.indexOf(u),s=f-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(ke(i)){var h=t.level==null?0:t.level>=0?t.level:i.length+t.level;h=Math.min(h,i.length-1),i=i[h]}}return Jf(new Date(t.value),i,a,n)}function xy(t,e){var r=ra(t),n=r[_o(e)]()+1,a=r[Qf(e)](),i=r[Qs(e)](),o=r[eh(e)](),s=r[th(e)](),l=r[rh(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&a===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function sg(t,e,r){var n=pt(t)?ra(t):t;switch(e=e||xy(t,r),e){case"year":return n[zv(r)]();case"half-year":return n[_o(r)]()>=6?1:0;case"quarter":return Math.floor((n[_o(r)]()+1)/4);case"month":return n[_o(r)]();case"day":return n[Qf(r)]();case"half-day":return n[Qs(r)]()/24;case"hour":return n[Qs(r)]();case"minute":return n[eh(r)]();case"second":return n[th(r)]();case"millisecond":return n[rh(r)]()}}function zv(t){return t?"getUTCFullYear":"getFullYear"}function _o(t){return t?"getUTCMonth":"getMonth"}function Qf(t){return t?"getUTCDate":"getDate"}function Qs(t){return t?"getUTCHours":"getHours"}function eh(t){return t?"getUTCMinutes":"getMinutes"}function th(t){return t?"getUTCSeconds":"getSeconds"}function rh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function yD(t){return t?"setUTCFullYear":"setFullYear"}function wy(t){return t?"setUTCMonth":"setMonth"}function Ty(t){return t?"setUTCDate":"setDate"}function Sy(t){return t?"setUTCHours":"setHours"}function Cy(t){return t?"setUTCMinutes":"setMinutes"}function Ey(t){return t?"setUTCSeconds":"setSeconds"}function Ay(t){return t?"setUTCMilliseconds":"setMilliseconds"}function by(t){if(!AE(t))return Ie(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Dy(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var nh=r_;function L0(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Ln(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?ra(t):t;if(isNaN(+l)){if(s)return"-"}else return Jf(l,n,r)}if(e==="ordinal")return t0(t)?a(t):pt(t)&&i(t)?t+"":"-";var u=Qu(t);return i(u)?by(u):t0(t)?a(t):typeof t=="boolean"?t+"":"-"}var lg=["a","b","c","d","e","f","g"],dc=function(t,e){return"{"+t+(e??"")+"}"};function My(t,e,r){ke(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=lg[i];t=t.replace(dc(o),dc(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(dc(lg[l],s),r?wr(u):u)}return t}function xD(t,e){var r=Ie(t)?{color:t,extraCssText:e}:t||{},n=r.color,a=r.type;e=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+wr(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+wr(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Si(t,e){return e=e||"transparent",Ie(t)?t:Pe(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function ug(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Pu=H,wD=["left","right","top","bottom","width","height"],Jl=[["width","left","right"],["height","top","bottom"]];function $v(t,e,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(t==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=i+p,c>n||l.newline?(i=0,c=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),t==="horizontal"?i=c+r:o=d+r)})}var Os=$v;It($v,"vertical");It($v,"horizontal");function So(t,e,r){r=nh(r||0);var n=e.width,a=e.height,i=mt(t.left,n),o=mt(t.top,a),s=mt(t.right,n),l=mt(t.bottom,a),u=mt(t.width,n),f=mt(t.height,a),h=r[2]+r[0],v=r[1]+r[3],c=t.aspect;switch(isNaN(u)&&(u=n-s-v-i),isNaN(f)&&(f=a-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=n-s-u-v),isNaN(o)&&(o=a-l-f-h),t.left||t.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-v;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=n-v-i-(s||0)),isNaN(f)&&(f=a-h-o-(l||0));var d=new Je(i+r[3],o+r[0],u,f);return d.margin=r,d}function el(t){var e=t.layoutMode||t.constructor.layoutMode;return Pe(e)?e:e?{type:e}:null}function Co(t,e,r){var n=r&&r.ignoreSize;!ke(n)&&(n=[n,n]);var a=o(Jl[0],0),i=o(Jl[1],1);u(Jl[0],t,a),u(Jl[1],t,i);function o(f,h){var v={},c=0,d={},p=0,g=2;if(Pu(f,function(y){d[y]=t[y]}),Pu(f,function(y){s(e,y)&&(v[y]=d[y]=e[y]),l(v,y)&&c++,l(d,y)&&p++}),n[h])return l(e,f[1])?d[f[2]]=null:l(e,f[2])&&(d[f[1]]=null),d;if(p===g||!c)return d;if(c>=g)return v;for(var m=0;m<f.length;m++){var _=f[m];if(!s(v,_)&&s(t,_)){v[_]=t[_];break}}return v}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,v){Pu(f,function(c){h[c]=v[c]})}}function ah(t){return TD({},t)}function TD(t,e){return e&&t&&Pu(wD,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var SD=Dt(),nt=function(t){be(e,t);function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.uid=jf("ec_cpt_model"),i}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=el(this),i=a?ah(r):{},o=n.getTheme();je(r,o.get(this.mainType)),je(r,this.getDefaultOption()),a&&Co(r,i,a)},e.prototype.mergeOption=function(r,n){je(this.option,r,!0);var a=el(this);a&&Co(this.option,r,a)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!zE(r))return r.defaultOption;var n=SD(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=je(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return yl(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Ct);P_(nt,Ct);Uf(nt);lD(nt);uD(nt,CD);function CD(t){var e=[];return H(nt.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=Re(e,function(r){return Rn(r).main}),t!=="dataset"&&ut(e,"dataset")<=0&&e.unshift("dataset"),e}var ky="";typeof navigator<"u"&&(ky=navigator.platform||"");var Yi="rgba(0, 0, 0, 0.2)";const ED={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Yi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Yi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Yi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Yi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Yi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Yi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ky.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Iy=Ve(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),rn="original",Mr="arrayRows",wn="objectRows",Un="keyedColumns",Ma="typedArray",Ly="unknown",jn="column",Po="row",Vt={Must:1,Might:2,Not:3},Ry=Dt();function AD(t){Ry(t).datasetMap=Ve()}function bD(t,e,r){var n={},a=Yv(e);if(!a||!t)return n;var i=[],o=[],s=e.ecModel,l=Ry(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,f,h;t=t.slice(),H(t,function(p,g){var m=Pe(p)?p:t[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,h=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});H(t,function(p,g){var m=p.name,_=d(p);if(f==null){var y=v.valueWayDim;c(n[m],y,_),c(o,y,_),v.valueWayDim+=_}else if(f===g)c(n[m],0,_),c(i,0,_);else{var y=v.categoryWayDim;c(n[m],y,_),c(o,y,_),v.categoryWayDim+=_}});function c(p,g,m){for(var _=0;_<m;_++)p.push(g+_)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function DD(t,e,r){var n={},a=Yv(t);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===wn||i===Un)&&H(o,function(f,h){(Pe(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},v=[],c=0,d=Math.min(5,r);c<d;c++){var p=Fy(e.data,i,e.seriesLayoutBy,o,e.startIndex,c);v.push(p);var g=p===Vt.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&v[f.n]===Vt.Not)&&(f.n=c),m(f)&&v[f.n]!==Vt.Not)return f;g||(p===Vt.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function m(_){return _.v!=null&&_.n!=null}return m(f)?f:m(h)?h:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Yv(t){var e=t.get("data",!0);if(!e)return yl(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},dn).models[0]}function MD(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:yl(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},dn).models}function Py(t,e){return Fy(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Fy(t,e,r,n,a,i){var o,s=5;if(Dr(t))return Vt.Not;var l,u;if(n){var f=n[i];Pe(f)?(l=f.name,u=f.type):Ie(f)&&(l=f)}if(u!=null)return u==="ordinal"?Vt.Must:Vt.Not;if(e===Mr){var h=t;if(r===Po){for(var v=h[i],c=0;c<(v||[]).length&&c<s;c++)if((o=w(v[a+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[a+c];if(d&&(o=w(d[i]))!=null)return o}}else if(e===wn){var p=t;if(!l)return Vt.Not;for(var c=0;c<p.length&&c<s;c++){var g=p[c];if(g&&(o=w(g[l]))!=null)return o}}else if(e===Un){var m=t;if(!l)return Vt.Not;var v=m[l];if(!v||Dr(v))return Vt.Not;for(var c=0;c<v.length&&c<s;c++)if((o=w(v[c]))!=null)return o}else if(e===rn)for(var _=t,c=0;c<_.length&&c<s;c++){var g=_[c],y=_l(g);if(!ke(y))return Vt.Not;if((o=w(y[i]))!=null)return o}function w(E){var T=Ie(E);if(E!=null&&Number.isFinite(Number(E))&&E!=="")return T?Vt.Might:Vt.Not;if(T&&E!=="-")return Vt.Must}return Vt.Not}var kD=Ve();function ID(t,e,r){var n=kD.get(e);if(!n)return r;var a=n(t);return a?r.concat(a):r}var fg=Dt();Dt();var Xv=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var a=vr(this.get("color",!0)),i=this.get("colorLayer",!0);return RD(this,fg,a,i,e,r,n)},t.prototype.clearColorPalette=function(){PD(this,fg)},t}();function LD(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function RD(t,e,r,n,a,i,o){i=i||t;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?r:LD(n,o);if(f=f||r,!(!f||!f.length)){var h=f[l];return a&&(u[a]=h),s.paletteIdx=(l+1)%f.length,h}}function PD(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Ql,ns,hg,cg="\0_ec_inner",FD=1,Kv=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ct(i),this._locale=new Ct(o),this._optionManager=s},e.prototype.setOption=function(r,n,a){var i=pg(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,pg(n))},e.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?hg(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&H(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Ve(),u=n&&n.replaceMergeMainTypeMap;AD(this),H(r,function(h,v){h!=null&&(nt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):a[v]=a[v]==null?Ye(h):je(a[v],h,!0))}),u&&u.each(function(h,v){nt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),nt.topologicalTravel(s,nt.getAllClassMainTypes(),f,this);function f(h){var v=ID(this,h,vr(r[h])),c=i.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=ME(c,v,d);OE(p,h,nt),a[h]=null,i.set(h,null),o.set(h,0);var g=[],m=[],_=0,y;H(p,function(w,E){var T=w.existing,x=w.newOption;if(!x)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var C=h==="series",S=nt.getClass(h,w.keyInfo.subType,!C);if(!S)return;if(h==="tooltip"){if(y)return;y=!0}if(T&&T.constructor===S)T.name=w.keyInfo.name,T.mergeOption(x,this),T.optionUpdated(x,!1);else{var A=me({componentIndex:E},w.keyInfo);T=new S(x,this,this,A),me(T,A),w.brandNew&&(T.__requireNewView=!0),T.init(x,this,this),T.optionUpdated(null,!0)}}T?(g.push(T.option),m.push(T),_++):(g.push(void 0),m.push(void 0))},this),a[h]=g,i.set(h,m),o.set(h,_),h==="series"&&Ql(this)}this._seriesIndices||Ql(this)},e.prototype.getOption=function(){var r=Ye(this.option);return H(r,function(n,a){if(nt.hasClass(a)){for(var i=vr(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!qs(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[cg],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],H(vr(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=vg("id",i,s):o!=null?l=vg("name",o,s):l=Yt(s,function(u){return!!u}),dg(l,r)},e.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):Yt(this._componentsMap.get(a),function(u){return!!u});return l(dg(o,r));function s(u){var f=a+"Index",h=a+"Id",v=a+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:a,index:u[f],id:u[h],name:u[v]}:null}function l(u){return r.filter?Yt(u,r.filter):u}},e.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(Ue(r)){var o=n,s=r;i.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=Ie(r)?i.get(r):Pe(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Pn(r,null);return Yt(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Yt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Yt(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){ns(this),H(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},e.prototype.eachRawSeries=function(r,n){H(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,a){ns(this),H(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,n,a){return H(this.getSeriesByType(r),n,a)},e.prototype.isSeriesFiltered=function(r){return ns(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){ns(this);var a=[];H(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=Ve(a)},e.prototype.restoreData=function(r){Ql(this);var n=this._componentsMap,a=[];n.each(function(i,o){nt.hasClass(o)&&a.push(o)}),nt.topologicalTravel(a,nt.getAllClassMainTypes(),function(i){H(n.get(i),function(o){o&&(i!=="series"||!OD(o,r))&&o.restoreData()})})},e.internalField=function(){Ql=function(r){var n=r._seriesIndices=[];H(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=Ve(n)},ns=function(r){},hg=function(r,n){r.option={},r.option[cg]=FD,r._componentsMap=Ve({series:[]}),r._componentsCount=Ve();var a=n.aria;Pe(a)&&a.enabled==null&&(a.enabled=!0),ND(n,r._theme.option),je(n,ED,!1),r._mergeOption(n,null)}}(),e}(Ct);function OD(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,a=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||a!=null&&t.name!==a}}function ND(t,e){var r=t.color&&!t.colorLayer;H(e,function(n,a){a==="colorLayer"&&r||nt.hasClass(a)||(typeof n=="object"?t[a]=t[a]?je(t[a],n,!1):Ye(n):t[a]==null&&(t[a]=n))})}function vg(t,e,r){if(ke(e)){var n=Ve();return H(e,function(i){if(i!=null){var o=Pn(i,null);o!=null&&n.set(i,!0)}}),Yt(r,function(i){return i&&n.get(i[t])})}else{var a=Pn(e,null);return Yt(r,function(i){return i&&a!=null&&i[t]===a})}}function dg(t,e){return e.hasOwnProperty("subType")?Yt(t,function(r){return r&&r.subType===e.subType}):t}function pg(t){var e=Ve();return t&&H(vr(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Nn(Kv,Xv);var BD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Oy=function(){function t(e){H(BD,function(r){this[r]=dt(e[r],e)},this)}return t}(),pc={},Zv=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];H(pc,function(a,i){var o=a.create(e,r);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){H(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){pc[e]=r},t.get=function(e){return pc[e]},t}(),UD=/^(min|max)?(.+)$/,HD=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(H(vr(e.series),function(o){o&&o.data&&Dr(o.data)&&r0(o.data)}),H(vr(e.dataset),function(o){o&&o.source&&Dr(o.source)&&r0(o.source)})),e=Ye(e);var a=this._optionBackup,i=GD(e,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Ye(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(r=Ye(n[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)WD(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!zD(o,this._currentMediaIndices)&&(s=Re(o,function(f){return Ye(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},t}();function GD(t,e,r){var n=[],a,i,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,h=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((h||f)&&(t.options=t.media=null),i=t),f&&ke(u)&&H(u,function(c){c&&c.option&&(c.query?n.push(c):a||(a=c))}),v(i),H(l,function(c){return v(c)}),H(n,function(c){return v(c.option)});function v(c){H(e,function(d){d(c,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function WD(t,e,r){var n={width:e,height:r,aspectratio:e/r},a=!0;return H(t,function(i,o){var s=o.match(UD);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();VD(n[u],i,l)||(a=!1)}}),a}function VD(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function zD(t,e){return t.join(",")===e.join(",")}var on=H,tl=Pe,gg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gc(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=gg.length;r<n;r++){var a=gg[r],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?je(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?je(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function ar(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Qe(t[e],n)):t[e]=n),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function Ss(t){ar(t,"itemStyle"),ar(t,"lineStyle"),ar(t,"areaStyle"),ar(t,"label"),ar(t,"labelLine"),ar(t,"upperLabel"),ar(t,"edgeLabel")}function At(t,e){var r=tl(t)&&t[e],n=tl(r)&&r.textStyle;if(n)for(var a=0,i=_p.length;a<i;a++){var o=_p[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Xr(t){t&&(Ss(t),At(t,"label"),t.emphasis&&At(t.emphasis,"label"))}function $D(t){if(tl(t)){gc(t),Ss(t),At(t,"label"),At(t,"upperLabel"),At(t,"edgeLabel"),t.emphasis&&(At(t.emphasis,"label"),At(t.emphasis,"upperLabel"),At(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(gc(e),Xr(e));var r=t.markLine;r&&(gc(r),Xr(r));var n=t.markArea;n&&Xr(n);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!Dr(i))for(var o=0;o<i.length;o++)Xr(i[o]);H(t.categories,function(u){Ss(u)})}if(a&&!Dr(a))for(var o=0;o<a.length;o++)Xr(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Xr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)ke(l[o])?(Xr(l[o][0]),Xr(l[o][1])):Xr(l[o]);t.type==="gauge"?(At(t,"axisLabel"),At(t,"title"),At(t,"detail")):t.type==="treemap"?(ar(t.breadcrumb,"itemStyle"),H(t.levels,function(u){Ss(u)})):t.type==="tree"&&Ss(t.leaves)}}function zn(t){return ke(t)?t:t?[t]:[]}function mg(t){return(ke(t)?t[0]:t)||{}}function YD(t,e){on(zn(t.series),function(n){tl(n)&&$D(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),on(r,function(n){on(zn(t[n]),function(a){a&&(At(a,"axisLabel"),At(a.axisPointer,"label"))})}),on(zn(t.parallel),function(n){var a=n&&n.parallelAxisDefault;At(a,"axisLabel"),At(a&&a.axisPointer,"label")}),on(zn(t.calendar),function(n){ar(n,"itemStyle"),At(n,"dayLabel"),At(n,"monthLabel"),At(n,"yearLabel")}),on(zn(t.radar),function(n){At(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),on(zn(t.geo),function(n){tl(n)&&(Xr(n),on(zn(n.regions),function(a){Xr(a)}))}),on(zn(t.timeline),function(n){Xr(n),ar(n,"label"),ar(n,"itemStyle"),ar(n,"controlStyle",!0);var a=n.data;ke(a)&&H(a,function(i){Pe(i)&&(ar(i,"label"),ar(i,"itemStyle"))})}),on(zn(t.toolbox),function(n){ar(n,"iconStyle"),on(n.feature,function(a){ar(a,"iconStyle")})}),At(mg(t.axisPointer),"label"),At(mg(t.tooltip).axisPointer,"label")}function XD(t,e){for(var r=e.split(","),n=t,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function KD(t,e,r,n){for(var a=e.split(","),i=t,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=r)}function _g(t){t&&H(ZD,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var ZD=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],qD=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],mc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function as(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<mc.length;r++){var n=mc[r][1],a=mc[r][0];e[n]!=null&&(e[a]=e[n])}}function yg(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function xg(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function jD(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Ny(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Ny(t[r].children,e)}function By(t,e){YD(t,e),t.series=vr(t.series),H(t.series,function(r){if(Pe(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),yg(r.label);var a=r.data;if(a&&!Dr(a))for(var i=0;i<a.length;i++)yg(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=XD(r,"pointer.color");o!=null&&KD(r,"itemStyle.color",o)}else if(n==="bar"){as(r),as(r.backgroundStyle),as(r.emphasis);var a=r.data;if(a&&!Dr(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(as(a[i]),as(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),xg(r),Ny(r.data,xg)}else n==="graph"||n==="sankey"?jD(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Qe(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),_g(r)}}),t.dataRange&&(t.visualMap=t.dataRange),H(qD,function(r){var n=t[r];n&&(ke(n)||(n=[n]),H(n,function(a){_g(a)}))})}function JD(t){var e=Ve();t.eachSeries(function(r){var n=r.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(QD)}function QD(t){H(t,function(e,r){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,h){var v=o.get(e.stackedDimension,h);if(isNaN(v))return a;var c,d;s?d=o.getRawIndex(h):c=o.get(e.stackedByDimension,h);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,c)),d>=0){var _=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&v>=0&&_>0||l==="samesign"&&v<=0&&_<0){v=SE(v,_),p=_;break}}}return n[0]=v,n[1]=p,n})})}var ih=function(){function t(e){this.data=e.data||(e.sourceFormat===Un?{}:[]),this.sourceFormat=e.sourceFormat||Ly,this.seriesLayoutBy=e.seriesLayoutBy||jn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&Py(this,n)===Vt.Must&&(a.type="ordinal")}}return t}();function qv(t){return t instanceof ih}function R0(t,e,r){r=r||Hy(t);var n=e.seriesLayoutBy,a=t4(t,r,n,e.sourceHeader,e.dimensions),i=new ih({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Ye(e)});return i}function Uy(t){return new ih({data:t,sourceFormat:Dr(t)?Ma:rn})}function e4(t){return new ih({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Ye(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Hy(t){var e=Ly;if(Dr(t))e=Ma;else if(ke(t)){t.length===0&&(e=Mr);for(var r=0,n=t.length;r<n;r++){var a=t[r];if(a!=null){if(ke(a)||Dr(a)){e=Mr;break}else if(Pe(a)){e=wn;break}}}}else if(Pe(t)){for(var i in t)if(xi(t,i)&&br(t[i])){e=Un;break}}return e}function t4(t,e,r,n,a){var i,o;if(!t)return{dimensionsDefine:wg(a),startIndex:o,dimensionsDetectedCount:i};if(e===Mr){var s=t;n==="auto"||n==null?Tg(function(u){u!=null&&u!=="-"&&(Ie(u)?o==null&&(o=1):o=0)},r,s,10):o=pt(n)?n:n?1:0,!a&&o===1&&(a=[],Tg(function(u,f){a[f]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===Po?s.length:s[0]?s[0].length:null}else if(e===wn)a||(a=r4(t));else if(e===Un)a||(a=[],H(t,function(u,f){a.push(f)}));else if(e===rn){var l=_l(t[0]);i=ke(l)&&l.length||1}return{startIndex:o,dimensionsDefine:wg(a),dimensionsDetectedCount:i}}function r4(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return _t(r)}function wg(t){if(t){var e=Ve();return Re(t,function(r,n){r=Pe(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function Tg(t,e,r,n){if(e===Po)for(var a=0;a<r.length&&a<n;a++)t(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)t(i[a],a)}function Gy(t){var e=t.sourceFormat;return e===wn||e===Un}var ii,oi,si,Sg,Cg,Wy=function(){function t(e,r){var n=qv(e)?e:Uy(e);this._source=n;var a=this._data=n.data;n.sourceFormat===Ma&&(this._offset=0,this._dimSize=r,this._data=a),Cg(this,a,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;Cg=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,c=Sg[jv(u,f)];if(me(o,c),u===Ma)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=Vy(u,f);o.getItem=dt(d,null,s,h,v);var p=zy(u,f);o.count=dt(p,null,s,h,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=u[v],d=c[0]==null?1/0:c[0],p=c[1]==null?-1/0:c[1],g=s-o,m=l[v],_=0;_<g;_++){var y=f[_*h+v];m[o+_]=y,y<d&&(d=y),y>p&&(p=y)}c[0]=d,c[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};Sg=(e={},e[Mr+"_"+jn]={pure:!0,appendData:i},e[Mr+"_"+Po]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[wn]={pure:!0,appendData:i},e[Un]={pure:!0,appendData:function(o){var s=this._data;H(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[rn]={appendData:i},e[Ma]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),Eg=function(t,e,r,n){return t[n]},n4=(ii={},ii[Mr+"_"+jn]=function(t,e,r,n){return t[n+e]},ii[Mr+"_"+Po]=function(t,e,r,n,a){n+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},ii[wn]=Eg,ii[Un]=function(t,e,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,l=t[s];i[o]=l?l[n]:null}return i},ii[rn]=Eg,ii);function Vy(t,e){var r=n4[jv(t,e)];return r}var Ag=function(t,e,r){return t.length},a4=(oi={},oi[Mr+"_"+jn]=function(t,e,r){return Math.max(0,t.length-e)},oi[Mr+"_"+Po]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},oi[wn]=Ag,oi[Un]=function(t,e,r){var n=r[0].name,a=t[n];return a?a.length:0},oi[rn]=Ag,oi);function zy(t,e){var r=a4[jv(t,e)];return r}var _c=function(t,e,r){return t[e]},i4=(si={},si[Mr]=_c,si[wn]=function(t,e,r){return t[r]},si[Un]=_c,si[rn]=function(t,e,r){var n=_l(t);return n instanceof Array?n[e]:n},si[Ma]=_c,si);function $y(t){var e=i4[t];return e}function jv(t,e){return t===Mr?t+"_"+e:t}function Eo(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return $y(i)(n,o,s)}else{var l=n;return i===rn&&(l=_l(n)),l}}}}var o4=/\{@(.+?)\}/g,s4=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),a=this.getRawValue(e,r),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,v=h==="series",c=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&ke(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Ue(i))return l.status=r,l.dimensionIndex=a,i(l);if(Ie(i)){var f=My(i,l);return f.replace(o4,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var p=Eo(s,e,d);if(o&&ke(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return Eo(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function bg(t){var e,r;return Pe(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ns(t){return new l4(t)}var l4=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(_){return!(_>=1)&&(_=1),_}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c<d)){var p=this._progress;if(ke(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],c,d,l,u);else this._doProgress(p,c,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,a,i){Dg.reset(r,n,a,i),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Dg.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),ke(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),Dg=function(){var t,e,r,n,a,i={reset:function(l,u,f,h){e=l,t=u,r=f,n=h,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var l=e%a*r+Math.ceil(e/a),u=e>=t?null:l<n?l:e;return e++,u}}();function Fu(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!pt(t)&&t!=null&&t!=="-"&&(t=+ra(t)),t==null||t===""?NaN:Number(t))}Ve({number:function(t){return parseFloat(t)},time:function(t){return+ra(t)},trim:function(t){return Ie(t)?Ln(t):t}});var u4=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=pt(e)?e:Qu(e),a=pt(r)?r:Qu(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Ie(e),l=Ie(r);s&&(n=l?e:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}(),f4=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Fu(e,r)},t}();function h4(t,e){var r=new f4,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==jn&&Sr(o);var s=[],l={},u=t.dimensionsDefine;if(u)H(u,function(p,g){var m=p.name,_={index:g,name:m,displayName:p.displayName};if(s.push(_),m!=null){var y="";xi(l,m)&&Sr(y),l[m]=_}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var h=Vy(a,jn);e.__isBuiltIn&&(r.getRawDataItem=function(p){return h(n,i,s,p)},r.getRawData=dt(c4,null,t)),r.cloneRawData=dt(v4,null,t);var v=zy(a,jn);r.count=dt(v,null,n,i,s);var c=$y(a);r.retrieveValue=function(p,g){var m=h(n,i,s,p);return d(m,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return c(p,g,m.name)}};return r.getDimensionInfo=dt(d4,null,s,l),r.cloneAllDimensionInfo=dt(p4,null,s),r}function c4(t){var e=t.sourceFormat;if(!Jv(e)){var r="";Sr(r)}return t.data}function v4(t){var e=t.sourceFormat,r=t.data;if(!Jv(e)){var n="";Sr(n)}if(e===Mr){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(e===wn){for(var a=[],i=0,o=r.length;i<o;i++)a.push(me({},r[i]));return a}}function d4(t,e,r){if(r!=null){if(pt(r)||!isNaN(r)&&!xi(e,r))return t[r];if(xi(e,r))return e[r]}}function p4(t){return Ye(t)}var Yy=Ve();function g4(t){t=Ye(t);var e=t.type,r="";e||Sr(r);var n=e.split(":");n.length!==2&&Sr(r);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),t.__isBuiltIn=a,Yy.set(e,t)}function m4(t,e,r){var n=vr(t),a=n.length,i="";a||Sr(i);for(var o=0,s=a;o<s;o++){var l=n[o];e=_4(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function _4(t,e,r,n){var a="";e.length||Sr(a),Pe(t)||Sr(a);var i=t.type,o=Yy.get(i);o||Sr(a);var s=Re(e,function(u){return h4(u,o)}),l=vr(o.transform({upstream:s[0],upstreamList:s,config:Ye(t.config)}));return Re(l,function(u,f){var h="";Pe(u)||Sr(h),u.data||Sr(h);var v=Hy(u.data);Jv(v)||Sr(h);var c,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),c={seriesLayoutBy:jn,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:jn,sourceHeader:0,dimensions:u.dimensions};return R0(u.data,c,null)})}function Jv(t){return t===Mr||t===wn}var oh="undefined",y4=typeof Uint32Array===oh?Array:Uint32Array,x4=typeof Uint16Array===oh?Array:Uint16Array,Xy=typeof Int32Array===oh?Array:Int32Array,Mg=typeof Float64Array===oh?Array:Float64Array,Ky={float:Mg,int:Xy,ordinal:Array,number:Array,time:Mg},yc;function Xi(t){return t>65535?y4:x4}function Ki(){return[1/0,-1/0]}function w4(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function kg(t,e,r,n,a){var i=Ky[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new i(n)}var P0=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ve()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=yc[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Gy(a),this._dimensions=Re(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(e,i),this._chunks[i]=new Ky[r||"float"](this._rawCount),this._rawExtent[i]=Ki(),i},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=Ki());for(var l=i[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<i;u++){var f=a[u];kg(n,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,d=0;d<i;d++){var f=a[d],p=yc.arrayRows.call(this,e[c]||h,f.property,c,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Re(o,function(_){return _.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Ki()),kg(i,f,h.type,r,n)}if(a.fillStorage)a.fillStorage(e,r,i,l);else for(var v=[],c=e;c<r;c++){v=a.getItem(c,v);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(v,u[d],c,d);p[c]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],a=[];if(r==null){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<e)a=o+1;else if(r[o]>e)i=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var a=this._chunks,i=a[e],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var v=this.getRawIndex(f),c=r-i[v],d=Math.abs(c);d<=n&&((d<s||d===s&&c>=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=r[i]}else e=new n(r.buffer,0,a)}else{var n=Xi(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Xi(n._rawCount),o=new i(a),s=[],l=e.length,u=0,f=e[0],h=n._chunks,v=0;v<a;v++){var c=void 0,d=n.getRawIndex(v);if(l===0)c=r(v);else if(l===1){var p=h[f][d];c=r(p,v)}else{for(var g=0;g<l;g++)s[g]=h[e[g]][d];s[g]=v,c=r.apply(null,s)}c&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var a=_t(e),i=a.length;if(!i)return this;var o=r.count(),s=Xi(r._rawCount),l=new s(o),u=0,f=a[0],h=e[f][0],v=e[f][1],c=r._chunks,d=!1;if(!r._indices){var p=0;if(i===1){for(var g=c[a[0]],m=0;m<n;m++){var _=g[m];(_>=h&&_<=v||isNaN(_))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=c[a[0]],y=c[a[1]],w=e[a[1]][0],E=e[a[1]][1],m=0;m<n;m++){var _=g[m],T=y[m];(_>=h&&_<=v||isNaN(_))&&(T>=w&&T<=E||isNaN(T))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m<o;m++){var x=r.getRawIndex(m),_=c[a[0]][x];(_>=h&&_<=v||isNaN(_))&&(l[u++]=x)}else for(var m=0;m<o;m++){for(var C=!0,x=r.getRawIndex(m),S=0;S<i;S++){var A=a[S],_=c[A][x];(_<e[A][0]||_>e[A][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var a=e._chunks,i=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Ki();for(var h=0;h<s;h++){for(var v=e.getRawIndex(h),c=0;c<o;c++)l[c]=a[r[c]][v];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],m=u[p],_=a[p];_&&(_[v]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,h,v,c=new(Xi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,_=0,y=p;y<g;y++){var w=this.getRawIndex(y),E=i[w];isNaN(E)||(_+=E)}_/=g-p;var T=d,x=Math.min(d+l,o),C=d-1,S=i[u];f=-1,v=T;for(var A=-1,M=0,y=T;y<x;y++){var w=this.getRawIndex(y),E=i[w];if(isNaN(E)){M++,A<0&&(A=w);continue}h=Math.abs((C-m)*(E-S)-(C-y)*(_-S)),h>f&&(f=h,v=w)}M>0&&M<x-T&&(c[s++]=Math.min(A,v),v=Math.max(A,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),n._count=s,n._indices=c,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/r),o=a[e],s=this.count(),l=new(Xi(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var h=f,v=o[this.getRawIndex(h)],c=f,d=o[this.getRawIndex(c)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),_=o[m];_<v&&(v=_,h=f+g),_>d&&(d=_,c=f+g)}var y=this.getRawIndex(h),w=this.getRawIndex(c);h<c?(l[u++]=y,l[u++]=w):(l[u++]=w,l[u++]=y)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),h=i._rawExtent[e]=Ki(),v=new(Xi(this._rawCount))(Math.ceil(f/l)),c=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),_=this.getRawIndex(Math.min(d+a(s,m)||0,f-1));u[_]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),v[c++]=_}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[e[0]][s],i);break;case 2:r(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=Ki();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),h=r[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},t.prototype.clone=function(e,r){var n=new t,a=this._chunks,i=e&&Ia(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?w4(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Ye(this._extent),e._rawExtent=Ye(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,a,i){return Fu(r[i],this._dimensions[i])}yc={arrayRows:e,objectRows:function(r,n,a,i){return Fu(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Fu(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),t}(),T4=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(eu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Dr(s)?Ma:rn,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=We(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=We(h.sourceHeader,v.sourceHeader),p=We(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;a=g?[R0(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(n){var _=this._applyTransform(r);a=_.sourceList,i=_.upstreamSignList}else{var y=m.get("source",!0);a=[R0(y,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&Ig(i)}var o,s=[],l=[];return H(e,function(u){u.prepareSource();var f=u.getSource(a||0),h="";a!=null&&!f&&Ig(h),s.push(f),l.push(u._getVersionSign())}),n?o=m4(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[e4(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];eu(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new P0,s.initData(new Wy(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(eu(e)){var r=Yv(e);return r?[r.getSourceManager()]:[]}else return Re(MD(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,a;if(eu(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},t}();function eu(t){return t.mainType==="series"}function Ig(t){throw new Error(t)}var S4="line-height:1";function Zy(t){var e=t.lineHeight;return e==null?S4:"line-height:"+wr(e+"")+"px"}function qy(t,e){var r=t.color||"#6e7079",n=t.fontSize||12,a=t.fontWeight||"400",i=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+wr(n+"")+"px;color:"+wr(r)+";font-weight:"+wr(a+""),valueStyle:"font-size:"+wr(o+"")+"px;color:"+wr(i)+";font-weight:"+wr(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var C4=[0,10,20,30],E4=["",`
30
+ `,`
31
+
32
+ `,`
33
+
34
+
35
+ `];function rl(t,e){return e.type=t,e}function F0(t){return t.type==="section"}function jy(t){return F0(t)?A4:b4}function Jy(t){if(F0(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return H(t.blocks,function(a){var i=Jy(a);i>=e&&(e=i+ +(n&&(!i||F0(a)&&!a.noHeader)))}),e}return 0}function A4(t,e,r,n){var a=e.noHeader,i=D4(Jy(e)),o=[],s=e.blocks||[];ta(!s||ke(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(xi(u,l)){var f=new u4(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}H(s,function(p,g){var m=e.valueFormatter,_=jy(p)(m?me(me({},t),{valueFormatter:m}):t,p,g>0?i.html:0,n);_!=null&&o.push(_)});var h=t.renderMode==="richText"?o.join(i.richText):O0(n,o.join(""),a?r:i.html);if(a)return h;var v=L0(e.header,"ordinal",t.useUTC),c=qy(n,t.renderMode).nameStyle,d=Zy(n);return t.renderMode==="richText"?Qy(t,v,c)+i.richText+h:O0(n,'<div style="'+c+";"+d+';">'+wr(v)+"</div>"+h,r)}function b4(t,e,r,n){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(w){return w=ke(w)?w:[w],Re(w,function(E,T){return L0(E,ke(c)?c[T]:c,u)})};if(!(i&&o)){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),v=i?"":L0(l,"ordinal",u),c=e.valueType,d=o?[]:f(e.value,e.dataIndex),p=!s||!i,g=!s&&i,m=qy(n,a),_=m.nameStyle,y=m.valueStyle;return a==="richText"?(s?"":h)+(i?"":Qy(t,v,_))+(o?"":I4(t,d,p,g,y)):O0(n,(s?"":h)+(i?"":M4(v,!s,_))+(o?"":k4(d,p,g,y)),r)}}function Lg(t,e,r,n,a,i){if(t){var o=jy(t),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function D4(t){return{html:C4[t],richText:E4[t]}}function O0(t,e,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=Zy(t);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function M4(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+wr(t)+"</span>"}function k4(t,e,r,n){var a=r?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=ke(t)?t:[t],'<span style="'+i+";"+n+'">'+Re(t,function(o){return wr(o)}).join("&nbsp;&nbsp;")+"</span>"}function Qy(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function I4(t,e,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(ke(e)?e.join(" "):e,i)}function L4(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Si(n)}function ex(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var xc=function(){function t(){this.richTextStyles={},this._nextStyleNameId=D_()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a=n==="richText"?this._generateStyleName():null,i=xD({color:r,type:e,renderMode:n,markerId:a});return Ie(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};ke(r)?H(r,function(i){return me(n,i)}):me(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();function R4(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),l=ke(s),u=L4(e,r),f,h,v,c;if(o>1||l&&!o){var d=P4(s,e,r,i,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);c=f=Eo(a,r,i[0]),h=p.type}else c=f=l?s[0]:s;var g=Cv(e),m=g&&e.name||"",_=a.getName(r),y=n?m:_;return rl("section",{header:m,noHeader:n||!g,sortParam:c,blocks:[rl("nameValue",{markerType:"item",markerColor:u,name:y,noName:!Ln(y),value:f,valueType:h,dataIndex:r})].concat(v||[])})}function P4(t,e,r,n,a){var i=e.getData(),o=Ia(t,function(h,v,c){var d=i.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?H(n,function(h){f(Eo(i,r,h),h)}):H(t,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(rl("nameValue",{markerType:"subItem",markerColor:a,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ha=Dt();function tu(t,e){return t.getName(e)||t.getId(e)}var F4="__universalTransitionEnabled",na=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Ns({count:N4,reset:B4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=ha(this).sourceManager=new T4(this);i.prepareSource();var o=this.getInitialData(r,a);Pg(o,this),this.dataTask.context.data=o,ha(this).dataBeforeProcessed=o,Rg(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=el(this),i=a?ah(r):{},o=this.subType;nt.hasClass(o)&&(o+="Series"),je(r,n.getTheme().get(this.subType)),je(r,this.getDefaultOption()),x0(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Co(r,i,a)},e.prototype.mergeOption=function(r,n){r=je(this.option,r,!0),this.fillDataTextStyle(r.data);var a=el(this);a&&Co(this.option,r,a);var i=ha(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);Pg(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ha(this).dataBeforeProcessed=o,Rg(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Dr(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&x0(r[a],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=N0(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return ha(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=N0(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}ha(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Ve(r)},e.prototype.getSourceManager=function(){return ha(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ha(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.formatTooltip=function(r,n,a){return R4({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Fe.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=Xv.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=tu(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=_t(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[tu(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[F4])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Pe(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],v=tu(r,h);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[l-1],v=tu(r,c);o.selectedMap=(a={},a[v]=!0,a),this._selectedDataIndicesMap=(i={},i[v]=r.getRawIndex(c),i)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return nt.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(nt);Nn(na,s4);Nn(na,Xv);P_(na,nt);function Rg(t){var e=t.name;Cv(t)||(t.name=O4(t)||e)}function O4(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return H(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function N4(t){return t.model.getRawData().count()}function B4(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),U4}function U4(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Pg(t,e){H(aC(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,It(H4,e))})}function H4(t,e){var r=N0(t);return r&&r.setOutputEnd((e||this).count()),e}function N0(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}var _n=function(){function t(){this.group=new sr,this.uid=jf("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Av(_n);Uf(_n);function tx(){var t=Dt();return function(e){var r=t(e),n=e.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var rx=Dt(),G4=tx(),gn=function(){function t(){this.group=new sr,this.uid=jf("viewChart"),this.renderTask=Ns({plan:W4,reset:V4}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&Og(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&Og(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){Uv(this.group,e)},t.markUpdateMethod=function(e,r){rx(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function Fg(t,e,r){t&&D0(t)&&(e==="emphasis"?rf:nf)(t,r)}function Og(t,e,r){var n=wi(t,e),a=e&&e.highlightKey!=null?ab(e.highlightKey):null;n!=null?H(vr(n),function(i){Fg(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){Fg(i,r,a)})}Av(gn);Uf(gn);function W4(t){return G4(t.model)}function V4(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&rx(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,a),z4[l]}var z4={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},hf="\0__throttleOriginMethod",Ng="\0__throttleRate",Bg="\0__throttleType";function nx(t,e,r){var n,a=0,i=0,o=null,s,l,u,f;e=e||0;function h(){i=new Date().getTime(),o=null,t.apply(l,u||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n=new Date().getTime(),l=this,u=c;var p=f||e,g=f||r;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function ax(t,e,r,n){var a=t[e];if(a){var i=a[hf]||a,o=a[Bg],s=a[Ng];if(s!==r||o!==n){if(r==null||!n)return t[e]=i;a=t[e]=nx(i,r,n==="debounce"),a[hf]=i,a[Bg]=n,a[Ng]=r}return a}}function B0(t,e){var r=t[e];r&&r[hf]&&(r.clear&&r.clear(),t[e]=r[hf])}var Ug=Dt(),Hg={itemStyle:js(gy,!0),lineStyle:js(py,!0)},$4={lineStyle:"stroke",itemStyle:"fill"};function ix(t,e){var r=t.visualStyleMapper||Hg[e];return r||(console.warn("Unknown style type '"+e+"'."),Hg.itemStyle)}function ox(t,e){var r=t.visualDrawType||$4[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var Y4={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),i=ix(t,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=ox(t,n),u=o[l],f=Ue(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ue(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Ue(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=t.getDataParams(d),g=me({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},is=new Ct,X4={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=ix(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){is.option=l[n];var u=a(is),f=o.ensureUniqueItemVisual(s,"style");me(f,u),is.option.decal&&(o.setItemVisual(s,"decal",is.option.decal),is.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},K4={performRawSeries:!0,overallReset:function(t){var e=Ve();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),Ug(r).scope=i}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=Ug(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=ox(r,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(c,o,d)}})}})}},ru=Math.PI;function Z4(t,e){e=e||{},Qe(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new sr,n=new Gt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var a=new jt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Gt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var o;return e.showSpinner&&(o=new Yf({shape:{startAngle:-ru/2,endAngle:-ru/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ru*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ru*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var sx=function(){function t(e,r,n,a){this._stageTaskMap=Ve(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=Ve();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;H(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";ta(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var i=!1,o=this;H(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,a.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else h&&h.each(function(g,m){s(a,g)&&g.dirty();var _=o.getPerformArgs(g,a.block);_.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(_)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Ve(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Ns({plan:eM,reset:tM,count:nM}));c.context={model:h,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,o=r.overallTask=r.overallTask||Ns({reset:q4});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Ve(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";ta(!e.createOnAllSeries,c),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(h=!1,H(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(v=!0,Ns({reset:j4,onDirty:Q4})));m.context={model:p,overallProgress:h},m.agent=o,m.__block=h,i._pipe(p,m)}v&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return Ue(e)&&(e={overallReset:e,seriesType:aM(e)}),e.uid=jf("stageHandler"),r&&(e.visualType=r),e},t}();function q4(t){t.overallReset(t.ecModel,t.api,t.payload)}function j4(t){return t.overallProgress&&J4}function J4(){this.agent.dirty(),this.getDownstream().dirty()}function Q4(){this.agent&&this.agent.dirty()}function eM(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function tM(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=vr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Re(e,function(r,n){return lx(n)}):rM}var rM=lx(0);function lx(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function nM(t){return t.data.count()}function aM(t){cf=null;try{t(nl,ux)}catch{}return cf}var nl={},ux={},cf;fx(nl,Kv);fx(ux,Oy);nl.eachSeriesByType=nl.eachRawSeriesByType=function(t){cf=t};nl.eachComponent=function(t){t.mainType==="series"&&t.subType&&(cf=t.subType)};function fx(t,e){for(var r in e.prototype)t[r]=Er}var Gg=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const iM={color:Gg,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Gg]};var nr="#B9B8CE",Wg="#100C2A",nu=function(){return{axisLine:{lineStyle:{color:nr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Vg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],hx={darkMode:!0,color:Vg,backgroundColor:Wg,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:nr},pageTextStyle:{color:nr}},textStyle:{color:nr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:nr}},dataZoom:{borderColor:"#71708A",textStyle:{color:nr},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:nr}},timeline:{lineStyle:{color:nr},label:{color:nr},controlStyle:{color:nr,borderColor:nr}},calendar:{itemStyle:{color:Wg},dayLabel:{color:nr},monthLabel:{color:nr},yearLabel:{color:nr}},timeAxis:nu(),logAxis:nu(),valueAxis:nu(),categoryAxis:nu(),line:{symbol:"circle"},graph:{color:Vg},gauge:{title:{color:nr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:nr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};hx.categoryAxis.splitLine.show=!1;var oM=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},a={};if(Ie(e)){var i=Rn(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};H(e,function(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,i));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),U0=["symbol","symbolSize","symbolRotate","symbolOffset"],zg=U0.concat(["symbolKeepAspect"]),sM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<U0.length;o++){var s=U0[o],l=t.get(s);Ue(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(me({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=_t(a);function f(h,v){for(var c=t.getRawValue(v),d=t.getDataParams(v),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(v,g,a[g](c,d))}}return{dataEach:i?f:null}}},lM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<zg.length;s++){var l=zg[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function uM(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function fM(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function hM(t,e){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}H([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=me({},a),o.dispatchAction(me(a,{type:n[1],seriesIndex:r(i,a)}))})})}function Zi(t,e,r,n,a){var i=t+e;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=wi(h,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:ke(v)?h.getName(v[0]):h.getName(v),selected:Ie(l)?l:me({},l)})}})}function cM(t,e,r){t.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Zi("map","selectchanged",e,a,n),Zi("pie","selectchanged",e,a,n)):n.fromAction==="select"?(Zi("map","selected",e,a,n),Zi("pie","selected",e,a,n)):n.fromAction==="unselect"&&(Zi("map","unselected",e,a,n),Zi("pie","unselected",e,a,n))})}function Cs(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var vM=Math.round(Math.random()*9),dM=typeof Object.defineProperty=="function",pM=function(){function t(){this._id="__ec_inner_"+vM++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return dM?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),gM=vt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n+i),t.lineTo(r-a,n+i),t.closePath()}}),mM=vt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n),t.lineTo(r,n+i),t.lineTo(r-a,n),t.closePath()}}),_M=vt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-h*c,l+s+v*c,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+h*c,l+s+v*c,r-f,l+s),t.closePath()}}),yM=vt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;t.moveTo(a,i),t.lineTo(a+o,i+r),t.lineTo(a,i+r/4*3),t.lineTo(a-o,i+r),t.lineTo(a,i),t.closePath()}}),xM={line:Ra,rect:Gt,roundRect:Gt,square:Gt,circle:$f,diamond:mM,pin:_M,arrow:yM,triangle:gM},wM={line:function(t,e,r,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+r,a.y2=e+n/2},rect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n},roundRect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(t,e,r,n,a){var i=Math.min(r,n);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.r=Math.min(r,n)/2},diamond:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n},pin:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},arrow:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},triangle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n}},H0={};H(xM,function(t,e){H0[e]=new t});var TM=vt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=T_(t,e,r),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var a=H0[n];a||(n="rect",a=H0[n]),wM[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});function SM(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ao(t,e,r,n,a,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=uy(t.slice(8),new Je(e,r,n,a),o?"center":"cover"):t.indexOf("path://")===0?l=Ov(t.slice(7),{},new Je(e,r,n,a),o?"center":"cover"):l=new TM({shape:{symbolType:t,x:e,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=SM,i&&l.setColor(i),l}function CM(t){return ke(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function cx(t,e){if(t!=null)return ke(t)||(t=[t,t]),[mt(t[0],e[0])||0,mt(We(t[1],t[0]),e[1])||0]}function vi(t){return isFinite(t)}function EM(t,e,r){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=vi(n)?n:0,a=vi(a)?a:1,i=vi(i)?i:0,o=vi(o)?o:0;var s=t.createLinearGradient(n,i,a,o);return s}function AM(t,e,r){var n=r.width,a=r.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=vi(o)?o:.5,s=vi(s)?s:.5,l=l>=0&&vi(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function G0(t,e,r){for(var n=e.type==="radial"?AM(t,e,r):EM(t,e,r),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function bM(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function au(t){return parseInt(t,10)}function iu(t,e,r){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[a]||au(s[n])||au(t.style[n]))-(au(s[i])||0)-(au(s[o])||0)|0}function DM(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:pt(t)?[t]:ke(t)?t:null}function vx(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&DM(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(r=Re(r,function(i){return i/a}),n/=a)}return[r,n]}var MM=new Ti(!0);function vf(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function $g(t){return typeof t=="string"&&t!=="none"}function df(t){var e=t.fill;return e!=null&&e!=="none"}function Yg(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Xg(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function W0(t,e,r){var n=F_(e.image,e.__image,r);if(Hf(n)){var a=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*iC),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function kM(t,e,r,n){var a,i=vf(r),o=df(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||MM,h=e.__dirty;if(!n){var v=r.fill,c=r.stroke,d=o&&!!v.colorStops,p=i&&!!c.colorStops,g=o&&!!v.image,m=i&&!!c.image,_=void 0,y=void 0,w=void 0,E=void 0,T=void 0;(d||p)&&(T=e.getBoundingRect()),d&&(_=h?G0(t,v,T):e.__canvasFillGradient,e.__canvasFillGradient=_),p&&(y=h?G0(t,c,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=y),g&&(w=h||!e.__canvasFillPattern?W0(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=w),m&&(E=h||!e.__canvasStrokePattern?W0(t,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),d?t.fillStyle=_:g&&(w?t.fillStyle=w:o=!1),p?t.strokeStyle=y:m&&(E?t.strokeStyle=E:i=!1)}var x=e.getGlobalScale();f.setScale(x[0],x[1],e.segmentIgnoreThreshold);var C,S;t.setLineDash&&r.lineDash&&(a=vx(e),C=a[0],S=a[1]);var A=!0;(u||h&ro)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),A=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),A&&f.rebuildPath(t,l?s:1),C&&(t.setLineDash(C),t.lineDashOffset=S),n||(r.strokeFirst?(i&&Xg(t,r),o&&Yg(t,r)):(o&&Yg(t,r),i&&Xg(t,r))),C&&t.setLineDash([])}function IM(t,e,r){var n=e.__image=F_(r.image,e.__image,e,e.onload);if(!(!n||!Hf(n))){var a=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,h=o-u,v=s-f;t.drawImage(n,u,f,h,v,a,i,o,s)}else t.drawImage(n,a,i,o,s)}}function LM(t,e,r){var n,a=r.text;if(a!=null&&(a+=""),a){t.font=r.font||yi,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=vx(e),i=n[0],o=n[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(vf(r)&&t.strokeText(a,r.x,r.y),df(r)&&t.fillText(a,r.x,r.y)):(df(r)&&t.fillText(a,r.x,r.y),vf(r)&&t.strokeText(a,r.x,r.y)),i&&t.setLineDash([])}}var Kg=["shadowBlur","shadowOffsetX","shadowOffsetY"],Zg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dx(t,e,r,n,a){var i=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Cr(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?pi.opacity:o}(n||e.blend!==r.blend)&&(i||(Cr(t,a),i=!0),t.globalCompositeOperation=e.blend||pi.blend);for(var s=0;s<Kg.length;s++){var l=Kg[s];(n||e[l]!==r[l])&&(i||(Cr(t,a),i=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(i||(Cr(t,a),i=!0),t.shadowColor=e.shadowColor||pi.shadowColor),i}function qg(t,e,r,n,a){var i=al(e,a.inHover),o=n?null:r&&al(r,a.inHover)||{};if(i===o)return!1;var s=dx(t,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(Cr(t,a),s=!0),$g(i.fill)&&(t.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(Cr(t,a),s=!0),$g(i.stroke)&&(t.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(Cr(t,a),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Cr(t,a),s=!0),t.lineWidth=u)}for(var f=0;f<Zg.length;f++){var h=Zg[f],v=h[0];(n||i[v]!==o[v])&&(s||(Cr(t,a),s=!0),t[v]=i[v]||h[1])}return s}function RM(t,e,r,n,a){return dx(t,al(e,a.inHover),r&&al(r,a.inHover),n,a)}function px(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function PM(t,e,r){for(var n=!1,a=0;a<t.length;a++){var i=t[a];n=n||i.isZeroArea(),px(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=n}function FM(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var jg=1,Jg=2,Qg=3,e1=4;function OM(t){var e=df(t),r=vf(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Cr(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function al(t,e){return e&&t.__hoverStyle||t.style}function gx(t,e){di(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function di(t,e,r,n){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Nr,e.__isRendered=!1;return}var i=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||bM(i,o))&&(o&&o.length&&(Cr(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Cr(t,r),t.save(),PM(i,t,r),s=!0),r.prevElClipPaths=i),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof vt&&e.autoBatch&&OM(e.style);s||FM(a,u.transform)?(Cr(t,r),px(t,e)):f||Cr(t,r);var h=al(e,r.inHover);e instanceof vt?(r.lastDrawType!==jg&&(l=!0,r.lastDrawType=jg),qg(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),kM(t,e,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):e instanceof ef?(r.lastDrawType!==Qg&&(l=!0,r.lastDrawType=Qg),qg(t,e,u,l,r),LM(t,e,h)):e instanceof Ua?(r.lastDrawType!==Jg&&(l=!0,r.lastDrawType=Jg),RM(t,e,u,l,r),IM(t,e,h)):e.getTemporalDisplayables&&(r.lastDrawType!==e1&&(l=!0,r.lastDrawType=e1),NM(t,e,r)),f&&n&&Cr(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function NM(t,e,r){var n=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),di(t,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),di(t,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var wc=new pM,t1=new ml(100),r1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function V0(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";t.dirty&&wc.delete(t);var i=wc.get(t);if(i)return i;var o=Qe(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,wc.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],h=!0,v=0;v<r1.length;++v){var c=o[r1[v]];if(c!=null&&!ke(c)&&!Ie(c)&&!pt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(a?"-svg":"");var p=t1.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=_x(o.dashArrayX),m=BM(o.dashArrayY),_=mx(o.symbol),y=UM(g),w=yx(m),E=!a&&Io.createCanvas(),T=a&&{tag:"g",attrs:{},key:"dcl",children:[]},x=S(),C;E&&(E.width=x.width*r,E.height=x.height*r,C=E.getContext("2d")),A(),h&&t1.put(d,E||T),u.image=E,u.svgElement=T,u.svgWidth=x.width,u.svgHeight=x.height;function S(){for(var M=1,L=0,N=y.length;L<N;++L)M=gp(M,y[L]);for(var V=1,L=0,N=_.length;L<N;++L)V=gp(V,_[L].length);M*=V;var W=w*y.length*_.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(W,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,E.width,E.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,E.width,E.height)));for(var M=0,L=0;L<m.length;++L)M+=m[L];if(M<=0)return;for(var N=-w,V=0,W=0,te=0;N<x.height;){if(V%2===0){for(var _e=W/2%_.length,ve=0,fe=0,J=0;ve<x.width*2;){for(var re=0,L=0;L<g[te].length;++L)re+=g[te][L];if(re<=0)break;if(fe%2===0){var I=(1-o.symbolSize)*.5,G=ve+g[te][fe]*I,B=N+m[V]*I,U=g[te][fe]*o.symbolSize,q=m[V]*o.symbolSize,ce=J/2%_[_e].length;Ce(G,B,U,q,_[_e][ce])}ve+=g[te][fe],++J,++fe,fe===g[te].length&&(fe=0)}++te,te===g.length&&(te=0)}N+=m[V],++W,++V,V===m.length&&(V=0)}function Ce(ge,ue,Te,we,st){var Le=a?1:r,Mt=Ao(st,ge*Le,ue*Le,Te*Le,we*Le,o.color,o.symbolKeepAspect);if(a){var $e=n.painter.renderOneToVNode(Mt);$e&&T.children.push($e)}else gx(C,Mt)}}}}function mx(t){if(!t||t.length===0)return[["rect"]];if(Ie(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!Ie(t[r])){e=!1;break}if(e)return mx([t]);for(var n=[],r=0;r<t.length;++r)Ie(t[r])?n.push([t[r]]):n.push(t[r]);return n}function _x(t){if(!t||t.length===0)return[[0,0]];if(pt(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!pt(t[n])){r=!1;break}if(r)return _x([t]);for(var a=[],n=0;n<t.length;++n)if(pt(t[n])){var e=Math.ceil(t[n]);a.push([e,e])}else{var e=Re(t[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function BM(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(pt(t)){var e=Math.ceil(t);return[e,e]}var r=Re(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function UM(t){return Re(t,function(e){return yx(e)})}function yx(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function HM(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=V0(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=V0(a,e)}}})}var cn=new Bn,xx={};function GM(t,e){xx[t]=e}function WM(t){return xx[t]}var VM=1,zM=800,$M=900,YM=1e3,XM=2e3,KM=5e3,Tx=1e3,ZM=1100,Qv=2e3,Sx=3e3,qM=4e3,sh=4500,jM=4600,JM=5e3,QM=6e3,Cx=7e3,ek={PROCESSOR:{FILTER:YM,SERIES_FILTER:zM,STATISTIC:KM},VISUAL:{LAYOUT:Tx,PROGRESSIVE_LAYOUT:ZM,GLOBAL:Qv,CHART:Sx,POST_CHART_LAYOUT:jM,COMPONENT:qM,BRUSH:JM,CHART_ITEM:sh,ARIA:QM,DECAL:Cx}},rr="__flagInMainProcess",yr="__pendingUpdate",Tc="__needsUpdateStatus",n1=/^[a-zA-Z0-9_]+$/,Sc="__connectUpdateStatus",a1=0,tk=1,rk=2;function Ex(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return bx(this,t,e)}}function Ax(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return bx(this,t,e)}}function bx(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Bn.prototype[e].apply(t,r)}var Dx=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bn),Mx=Dx.prototype;Mx.on=Ax("on");Mx.off=Ax("off");var qi,Cc,ou,ca,Ec,Ac,bc,os,ss,i1,o1,Dc,s1,su,l1,kx,Wr,u1,Ix=function(t){be(e,t);function e(r,n,a){var i=t.call(this,new oM)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},Ie(n)&&(n=Lx[n]),i._dom=r;var o="canvas",s="auto",l=!1;a.ssr;var u=i._zr=dp(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:We(a.useDirtyRect,l),useCoarsePointer:We(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=nx(dt(u.flush,u),17),n=Ye(n),n&&By(n,!0),i._theme=n,i._locale=vD(a.locale||my),i._coordSysMgr=new Zv;var f=i._api=l1(i);function h(v,c){return v.__prio-c.__prio}return Eu(gf,h),Eu(z0,h),i._scheduler=new sx(i,f,z0,gf),i._messageCenter=new Dx,i._initEvents(),i.resize=dt(i.resize,i),u.animation.on("frame",i._onframe,i),i1(u,i),o1(u,i),r0(i),i}return e.prototype._onframe=function(){if(!this._disposed){u1(this);var r=this._scheduler;if(this[yr]){var n=this[yr].silent;this[rr]=!0;try{qi(this),ca.update.call(this,null,this[yr].updateParams)}catch(l){throw this[rr]=!1,this[yr]=null,l}this._zr.flush(),this[rr]=!1,this[yr]=null,os.call(this,n),ss.call(this,n)}else if(r.unfinished){var a=VM,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Ac(this,i),r.performVisualTasks(i),su(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,a){if(!this[rr]){if(this._disposed){this.id;return}var i,o,s;if(Pe(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[rr]=!0,!this._model||n){var l=new HD(this._api),u=this._theme,f=this._model=new Kv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},$0);var h={seriesTransition:s,optionChanged:!0};if(a)this[yr]={silent:i,updateParams:h},this[rr]=!1,this.getZr().wakeUp();else{try{qi(this),ca.update.call(this,null,h)}catch(v){throw this[yr]=null,this[rr]=!1,v}this._ssr||this._zr.flush(),this[yr]=null,this[rr]=!1,os.call(this,i),ss.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Fe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(Fe.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return H(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;H(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return H(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(f1[a]){var l=s,u=s,f=-s,h=-s,v=[],c=r&&r.pixelRatio||this.getDevicePixelRatio();H(Us,function(y,w){if(y.group===a){var E=n?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(Ye(r)),T=y.getDom().getBoundingClientRect();l=i(T.left,l),u=i(T.top,u),f=o(T.right,f),h=o(T.bottom,h),v.push({dom:E,left:T.left,top:T.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=Io.createCanvas(),m=dp(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var _="";return H(v,function(y){var w=y.left-l,E=y.top-u;_+='<g transform="translate('+w+","+E+')">'+y.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Gt({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),H(v,function(y){var w=new Ua({style:{x:y.left*c-l,y:y.top*c-u,image:y.dom}});m.add(w)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return Ec(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return Ec(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=Kh(a,r);return H(o,function(s,l){l.indexOf("Models")>=0&&H(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(n,u))}},this)},this),!!i},e.prototype.getVisual=function(r,n){var a=this._model,i=Kh(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?uM(s,l,n):fM(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;H(nk,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&Cs(s,function(d){var p=at(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=me({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),H(Bs,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),H(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),cM(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&L_(this.getDom(),td,"");var n=this,a=n._api,i=n._model;H(n._componentsViews,function(o){o.dispose(i,a)}),H(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Us[n.id]},e.prototype.resize=function(r){if(!this[rr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[yr]&&(i==null&&(i=this[yr].silent),a=!0,this[yr]=null),this[rr]=!0;try{a&&qi(this),ca.update.call(this,{type:"resize",animation:me({duration:0},r&&r.animation)})}catch(o){throw this[rr]=!1,o}this[rr]=!1,os.call(this,i),ss.call(this,i)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Pe(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Y0[r]){var a=Y0[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=me({},r);return n.type=Bs[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Pe(n)||(n={silent:!!n}),!!pf[r.type]&&this._model){if(this[rr]){this._pendingActions.push(r);return}var a=n.silent;bc.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&Fe.browser.weChat&&this._throttledZrFlush(),os.call(this,a),ss.call(this,a)}},e.prototype.updateLabelLayout=function(){cn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){qi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Cc(h,!0),Cc(h,!1),v.plan()},Cc=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,m=h._zr,_=h._api,y=0;y<p.length;y++)p[y].__alive=!1;v?c.eachComponent(function(T,x){T!=="series"&&w(x)}):c.eachSeries(w);function w(T){var x=T.__requireNewView;T.__requireNewView=!1;var C="_ec_"+T.id+"_"+T.type,S=!x&&g[C];if(!S){var A=Rn(T.type),M=v?_n.getClass(A.main,A.sub):gn.getClass(A.sub);S=new M,S.init(c,_),g[C]=S,p.push(S),m.add(S.group)}T.__viewId=S.__id=C,S.__alive=!0,S.__model=T,S.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!v&&d.prepareView(S,T,c,_)}for(var y=0;y<p.length;){var E=p[y];E.__alive?y++:(!v&&E.renderTask.dispose(),m.remove(E.group),E.dispose(c,_),p.splice(y,1),g[E.__id]===E&&delete g[E.__id],E.__id=E.group.__ecComponentInfo=null)}},ou=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){H([].concat(h._componentsViews).concat(h._chartsViews),E);return}var m={};m[d+"Id"]=c[d+"Id"],m[d+"Index"]=c[d+"Index"],m[d+"Name"]=c[d+"Name"];var _={mainType:d,query:m};p&&(_.subType=p);var y=c.excludeSeriesId,w;y!=null&&(w=Ve(),H(vr(y),function(T){var x=Pn(T,null);x!=null&&w.set(x,!0)})),g&&g.eachComponent(_,function(T){var x=w&&w.get(T.id)!=null;if(!x)if(Vp(c))if(T instanceof na)c.type===gi&&!c.notBlur&&!T.get(["emphasis","disabled"])&&qA(T,c,h._api);else{var C=kv(T.mainType,T.componentIndex,c.name,h._api),S=C.focusSelf,A=C.dispatchers;c.type===gi&&S&&!c.notBlur&&E0(T.mainType,T.componentIndex,h._api),A&&H(A,function(M){c.type===gi?rf(M):nf(M)})}else M0(c)&&T instanceof na&&(QA(T,c,h._api),Gp(T),Wr(h))},h),g&&g.eachComponent(_,function(T){var x=w&&w.get(T.id)!=null;x||E(h[d==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},h);function E(T){T&&T.__alive&&T[v]&&T[v](T.__model,g,h._api,c)}},ca={prepareAndUpdate:function(h){qi(this),ca.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(c){c.setUpdatePayload(h),m.restoreData(c,h),m.performSeriesTasks(c),g.create(c,d),m.performDataProcessorTasks(c,h),Ac(this,c),g.update(c,d),r(c),m.performVisualTasks(c,h),Dc(this,c,d,h,v);var _=c.get("backgroundColor")||"transparent",y=c.get("darkMode");p.setBackgroundColor(_),y!=null&&y!=="auto"&&p.setDarkMode(y),cn.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var p=[];c.eachComponent(function(m,_){if(m!=="series"){var y=v.getViewOfComponentModel(_);if(y&&y.__alive)if(y.updateTransform){var w=y.updateTransform(_,c,d,h);w&&w.update&&p.push(y)}else p.push(y)}});var g=Ve();c.eachSeries(function(m){var _=v._chartsMap[m.__viewId];if(_.updateTransform){var y=_.updateTransform(m,c,d,h);y&&y.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),su(this,c,d,h,{},g),cn.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),gn.markUpdateMethod(h,"updateView"),r(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),Dc(this,v,this._api,h,{}),cn.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),gn.markUpdateMethod(h,"updateVisual"),r(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,c,v._api,h)}}),c.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,c,v._api,h)}),cn.trigger("afterupdate",c,this._api))},updateLayout:function(h){ca.update.call(this,h)}},Ec=function(h,v,c,d){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),m,_=Kh(p,c),y=0;y<g.length;y++){var w=g[y];if(w[v]&&(m=w[v](p,_,d))!=null)return m}},Ac=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},bc=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,m=pf[p],_=m.actionInfo,y=(_.update||"update").split(":"),w=y.pop(),E=y[0]!=null&&Rn(y[0]);this[rr]=!0;var T=[h],x=!1;h.batch&&(x=!0,T=Re(h.batch,function(V){return V=Qe(me({},V),h),V.batch=null,V}));var C=[],S,A=M0(h),M=Vp(h);if(M&&J_(this._api),H(T,function(V){if(S=m.action(V,c._model,c._api),S=S||me({},V),S.type=_.event||S.type,C.push(S),M){var W=Ev(h),te=W.queryOptionMap,_e=W.mainTypeSpecified,ve=_e?te.keys()[0]:"series";ou(c,w,V,ve),Wr(c)}else A?(ou(c,w,V,"series"),Wr(c)):E&&ou(c,w,V,E.main,E.sub)}),w!=="none"&&!M&&!A&&!E)try{this[yr]?(qi(this),ca.update.call(this,h),this[yr]=null):ca[w].call(this,h)}catch(V){throw this[rr]=!1,V}if(x?S={type:_.event||p,escapeConnect:g,batch:C}:S=C[0],this[rr]=!1,!v){var L=this._messageCenter;if(L.trigger(S.type,S),A){var N={type:"selectchanged",escapeConnect:g,selected:eb(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(N.type,N)}}},os=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();bc.call(this,c,h)}},ss=function(h){!h&&this.trigger("updated")},i1=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[yr]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},o1=function(h,v){h.on("mouseover",function(c){var d=c.target,p=Cs(d,D0);p&&(jA(p,c,v._api),Wr(v))}).on("mouseout",function(c){var d=c.target,p=Cs(d,D0);p&&(JA(p,c,v._api),Wr(v))}).on("click",function(c){var d=c.target,p=Cs(d,function(_){return at(_).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=at(p);v._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function n(h){var v=[],c=[],d=!1;if(h.eachComponent(function(_,y){var w=y.get("zlevel")||0,E=y.get("z")||0,T=y.getZLevelKey();d=d||!!T,(_==="series"?c:v).push({zlevel:w,z:E,idx:y.componentIndex,type:_,key:T})}),d){var p=v.concat(c),g,m;Eu(p,function(_,y){return _.zlevel===y.zlevel?_.z-y.z:_.zlevel-y.zlevel}),H(p,function(_){var y=h.getComponent(_.type,_.idx),w=_.zlevel,E=_.key;g!=null&&(w=Math.max(g,w)),E?(w===g&&E!==m&&w++,m=E):m&&(w===g&&w++,m=""),g=w,y.setZLevel(w)})}}Dc=function(h,v,c,d,p){n(v),s1(h,v,c,d,p),H(h._chartsViews,function(g){g.__alive=!1}),su(h,v,c,d,p),H(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},s1=function(h,v,c,d,p,g){H(g||h._componentsViews,function(m){var _=m.__model;u(_,m),m.render(_,v,c,d),s(_,m),f(_,m)})},su=function(h,v,c,d,p,g){var m=h._scheduler;p=me(p||{},{updatedSeries:v.getSeries()}),cn.trigger("series:beforeupdate",v,c,p);var _=!1;v.eachSeries(function(y){var w=h._chartsMap[y.__viewId];w.__alive=!0;var E=w.renderTask;m.updatePayload(E,d),u(y,w),g&&g.get(y.uid)&&E.dirty(),E.perform(m.getPerformArgs(E))&&(_=!0),w.group.silent=!!y.get("silent"),o(y,w),Gp(y)}),m.unfinished=_||m.unfinished,cn.trigger("series:layoutlabels",v,c,p),cn.trigger("series:transition",v,c,p),v.eachSeries(function(y){var w=h._chartsMap[y.__viewId];s(y,w),f(y,w)}),i(h,v),cn.trigger("series:afterupdate",v,c,p)},Wr=function(h){h[Tc]=!0,h.getZr().wakeUp()},u1=function(h){h[Tc]&&(h.getZr().storage.traverse(function(v){Ps(v)||a(v)}),h[Tc]=!1)};function a(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var p=c[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}h.selected&&h.states.select&&v.push("select"),h.hoverState===Vf&&h.states.emphasis?v.push("emphasis"):h.hoverState===Wf&&h.states.blur&&v.push("blur"),h.useStates(v)}function i(h,v){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!Fe.node&&!Fe.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=h._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(p){return l(p,c,d,-1/0),!0})}}function l(h,v,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),m=h.isGroup;if(m)for(var _=h.childrenRef(),y=0;y<_.length;y++)d=Math.max(l(_[y],v,c,d),d);else h.z=v,h.zlevel=c,d=Math.max(h.z2,d);if(p&&(p.z=v,p.zlevel=c,isFinite(d)&&(p.z2=d+2)),g){var w=h.textGuideLineConfig;g.z=v,g.zlevel=c,isFinite(d)&&(g.z2=d+(w&&w.showAbove?1:-1))}return d}function u(h,v){v.eachRendered(function(c){if(!Ps(c)){var d=c.getTextContent(),p=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=c.get("duration"),g=p>0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ps(m))return;if(m instanceof vt&&ib(m),m.__dirty){var _=m.prevStates;_&&m.useStates(_)}if(d){m.stateTransition=g;var y=m.getTextContent(),w=m.getTextGuideLine();y&&(y.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&a(m)}})}l1=function(h){return new(function(v){be(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){rf(d,p),Wr(h)},c.prototype.leaveEmphasis=function(d,p){nf(d,p),Wr(h)},c.prototype.enterBlur=function(d){ZA(d),Wr(h)},c.prototype.leaveBlur=function(d){K_(d),Wr(h)},c.prototype.enterSelect=function(d){Z_(d),Wr(h)},c.prototype.leaveSelect=function(d){q_(d),Wr(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c}(Oy))(h)},kx=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[Sc]=d}}H(Bs,function(c,d){h._messageCenter.on(d,function(p){if(f1[h.group]&&h[Sc]!==a1){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),m=[];H(Us,function(_){_!==h&&_.group===h.group&&m.push(_)}),v(m,a1),H(m,function(_){_[Sc]!==tk&&_.dispatchAction(g)}),v(m,rk)}})})}}(),e}(Bn),ed=Ix.prototype;ed.on=Ex("on");ed.off=Ex("off");ed.one=function(t,e,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(t,a)}this.on.call(this,t,a,r)};var nk=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var pf={},Bs={},z0=[],$0=[],gf=[],Lx={},Y0={},Us={},f1={},ak=+new Date-0,td="_echarts_instance_";function ls(t,e,r){{var n=ik(t);if(n)return n}var a=new Ix(t,e,r);return a.id="ec_"+ak++,Us[a.id]=a,L_(t,td,a.id),kx(a),cn.trigger("afterinit",a),a}function ik(t){return Us[UE(t,td)]}function Rx(t,e){Lx[t]=e}function Px(t){ut($0,t)<0&&$0.push(t)}function Fx(t,e){nd(z0,t,e,XM)}function ok(t){rd("afterinit",t)}function sk(t){rd("afterupdate",t)}function rd(t,e){cn.on(t,e)}function Fo(t,e,r){Ue(e)&&(r=e,e="");var n=Pe(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!Bs[e]&&(ta(n1.test(n)&&n1.test(e)),pf[n]||(pf[n]={action:r,actionInfo:t}),Bs[e]=n)}function lk(t,e){Zv.register(t,e)}function uk(t,e){nd(gf,t,e,Tx,"layout")}function Di(t,e){nd(gf,t,e,Sx,"visual")}var h1=[];function nd(t,e,r,n,a){if((Ue(e)||Pe(e))&&(r=e,e=n),!(ut(h1,r)>=0)){h1.push(r);var i=sx.wrapStageHandler(r,a);i.__prio=e,i.__raw=r,t.push(i)}}function Ox(t,e){Y0[t]=e}function fk(t,e,r){var n=WM("registerMap");n&&n(t,e,r)}var hk=g4;Di(Qv,Y4);Di(sh,X4);Di(sh,K4);Di(Qv,sM);Di(sh,lM);Di(Cx,HM);Px(By);Fx($M,JD);Ox("default",Z4);Fo({type:gi,event:gi,update:gi},Er);Fo({type:Iu,event:Iu,update:Iu},Er);Fo({type:Is,event:Is,update:Is},Er);Fo({type:Lu,event:Lu,update:Lu},Er);Fo({type:Ls,event:Ls,update:Ls},Er);Rx("light",iM);Rx("dark",hx);function us(t){return t==null?0:t.length||1}function c1(t){return t}var ck=function(){function t(e,r,n,a,i,o){this._old=e,this._new=r,this._oldKeyGetter=n||c1,this._newKeyGetter=a||c1,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},a=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=us(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],h=us(u),v=us(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),a[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var a=e[n],i=r[a],o=us(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},t.prototype._initIndexMap=function(e,r,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=us(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t}(),vk=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function dk(t,e){var r={},n=r.encode={},a=Ve(),i=[],o=[],s={};H(t.dimensions,function(v){var c=t.getDimensionInfo(v),d=c.coordDim;if(d){var p=c.coordDimIndex;Mc(n,d)[p]=v,c.isExtraCoord||(a.set(d,1),gk(c.type)&&(i[0]=v),Mc(s,d)[p]=t.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}Iy.each(function(g,m){var _=Mc(n,m),y=c.otherDims[m];y!=null&&y!==!1&&(_[y]=c.name)})});var l=[],u={};a.each(function(v,c){var d=n[c];u[c]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Re(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new vk(s,e),r}function Mc(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function pk(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function gk(t){return!(t==="ordinal"||t==="time")}var Ou=function(){function t(e){this.otherDims={},e!=null&&me(this,e)}return t}(),mk=Dt(),_k={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Nx=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Hx(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return We(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Gy(this.source),n=!Gx(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=r?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!h||!h.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=_k[u]||"f",f&&(a+=f.uid),a+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,a].join("$$");return{dimensions:i,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Bx(t){return t instanceof Nx}function Ux(t){for(var e=Ve(),r=0;r<(t||[]).length;r++){var n=t[r],a=Pe(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,r)}return e}function Hx(t){var e=mk(t);return e.dimNameMap||(e.dimNameMap=Ux(t.dimensionsDefine))}function Gx(t){return t>30}var fs=Pe,va=Re,yk=typeof Int32Array>"u"?Array:Int32Array,xk="e\0\0",v1=-1,wk=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Tk=["_approximateExtent"],d1,lu,hs,cs,kc,vs,Ic,Wx=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;Bx(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],v=Ie(h)?new Ou({name:h}):h instanceof Ou?h:new Ou(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),i[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),a&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Ve();H(o,function(g){p.set(i[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(pt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var a=this,i;if(e instanceof P0&&(i=e),!i){var o=this.dimensions,s=qv(e)||br(e)?new Wy(e,o.length):e;i=new P0;var l=va(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=dk(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&Ic(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Ma&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===rn;if(l&&!a.pure)for(var u=[],f=e;f<r;f++){var h=a.getItem(f,u);if(!this.hasItemOption&&DE(h)&&(this.hasItemOption=!0),h){var v=h.name;i[f]==null&&v!=null&&(i[f]=Pn(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=Pn(c,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Ic(this,f);d1(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){fs(e)?me(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=hs(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},t.prototype.getId=function(e){return lu(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,a=this._store;return ke(e)?a.getValues(va(e,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],a=n&&n[r];return a==null||isNaN(a)?v1:a},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){Ue(e)&&(n=r,r=e,e=[]);var a=n||this,i=va(cs(e),this._getStoreDimIndex,this);this._store.each(i,a?dt(r,a):r)},t.prototype.filterSelf=function(e,r,n){Ue(e)&&(n=r,r=e,e=[]);var a=n||this,i=va(cs(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?dt(r,a):r),this},t.prototype.selectRange=function(e){var r=this,n={},a=_t(e);return H(a,function(i){var o=r._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){Ue(e)&&(n=r,r=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},n),a},t.prototype.map=function(e,r,n,a){var i=n||a||this,o=va(cs(e),this._getStoreDimIndex,this),s=vs(this);return s._store=this._store.map(o,i?dt(r,i):r),s},t.prototype.modify=function(e,r,n,a){var i=n||a||this,o=va(cs(e),this._getStoreDimIndex,this);this._store.modify(o,i?dt(r,i):r)},t.prototype.downSample=function(e,r,n,a){var i=vs(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),r,n,a),i},t.prototype.minmaxDownSample=function(e,r){var n=vs(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=vs(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Ct(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new ck(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return lu(e,n)},function(n){return lu(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},fs(e)?me(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],a=n&&n[r];return a??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[r];return i==null&&(i=this.getVisual(r),ke(i)?i=i.slice():fs(i)&&(i=me({},i)),a[r]=i),i},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,fs(r)?me(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){fs(e)?me(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?me(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;UA(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){H(this._graphicEls,function(n,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:va(this.dimensions,this._getDimInfo,this),this.hostModel)),kc(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];Ue(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(dv(arguments)))})},t.internalField=function(){d1=function(e){var r=e._invertedIndicesMap;H(r,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=r[a]=new yk(o.categories.length);for(var l=0;l<n.length;l++)n[l]=v1;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},hs=function(e,r,n){return Pn(e._getCategory(r,n),null)},lu=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=hs(e,e._idDimIdx,r)),n==null&&(n=xk+r),n},cs=function(e){return ke(e)||(e=e!=null?[e]:[]),e},vs=function(e){var r=new t(e._schema?e._schema:va(e.dimensions,e._getDimInfo,e),e.hostModel);return kc(r,e),r},kc=function(e,r){H(wk.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,H(Tk,function(n){e[n]=Ye(r[n])}),e._calculationInfo=me({},r._calculationInfo)},Ic=function(e,r){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=hs(e,i,r)),l==null&&o!=null&&(a[r]=l=hs(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[r]=l}}}(),t}();function Vx(t,e){qv(t)||(t=Uy(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=Ve(),i=[],o=Ck(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Gx(o),l=n===t.dimensionsDefine,u=l?Hx(t):Ux(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var h=Ve(f),v=new Xy(o),c=0;c<v.length;c++)v[c]=-1;function d(S){var A=v[S];if(A<0){var M=n[S],L=Pe(M)?M:{name:M},N=new Ou,V=L.name;V!=null&&u.get(V)!=null&&(N.name=N.displayName=V),L.type!=null&&(N.type=L.type),L.displayName!=null&&(N.displayName=L.displayName);var W=i.length;return v[S]=W,N.storeDimIndex=S,i.push(N),N}return i[A]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(S,A){var M=vr(S).slice();if(M.length===1&&!Ie(M[0])&&M[0]<0){h.set(A,!1);return}var L=h.set(A,[]);H(M,function(N,V){var W=Ie(N)?u.get(N):N;W!=null&&W<o&&(L[V]=W,g(d(W),A,V))})});var p=0;H(r,function(S){var A,M,L,N;if(Ie(S))A=S,N={};else{N=S,A=N.name;var V=N.ordinalMeta;N.ordinalMeta=null,N=me({},N),N.ordinalMeta=V,M=N.dimsDef,L=N.otherDims,N.name=N.coordDim=N.coordDimIndex=N.dimsDef=N.otherDims=null}var W=h.get(A);if(W!==!1){if(W=vr(W),!W.length)for(var te=0;te<(M&&M.length||1);te++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&W.push(p++)}H(W,function(_e,ve){var fe=d(_e);if(l&&N.type!=null&&(fe.type=N.type),g(Qe(fe,N),A,ve),fe.name==null&&M){var J=M[ve];!Pe(J)&&(J={name:J}),fe.name=fe.displayName=J.name,fe.defaultTooltip=J.defaultTooltip}L&&Qe(fe.otherDims,L)})}});function g(S,A,M){Iy.get(A)!=null?S.otherDims[A]=M:(S.coordDim=A,S.coordDimIndex=M,a.set(A,!0))}var m=e.generateCoord,_=e.generateCoordCount,y=_!=null;_=m?_||1:0;var w=m||"value";function E(S){S.name==null&&(S.name=S.coordDim)}if(s)H(i,function(S){E(S)}),i.sort(function(S,A){return S.storeDimIndex-A.storeDimIndex});else for(var T=0;T<o;T++){var x=d(T),C=x.coordDim;C==null&&(x.coordDim=Ek(w,a,y),x.coordDimIndex=0,(!m||_<=0)&&(x.isExtraCoord=!0),_--),E(x),x.type==null&&(Py(t,T)===Vt.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return Sk(i),new Nx({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Sk(t){for(var e=Ve(),r=0;r<t.length;r++){var n=t[r],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function Ck(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return H(e,function(i){var o;Pe(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Ek(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Ak=function(){function t(e){this.coordSysDims=[],this.axisMap=Ve(),this.categoryAxisMap=Ve(),this.coordSysName=e}return t}();function bk(t){var e=t.get("coordinateSystem"),r=new Ak(e),n=Dk[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var Dk={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",dn).models[0],i=t.getReferringComponents("yAxis",dn).models[0];e.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),ji(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),ji(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",dn).models[0];e.coordSysDims=["single"],r.set("single",a),ji(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",dn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),ji(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),ji(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();H(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];r.set(f,u),ji(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function ji(t){return t.get("type")==="category"}function Mk(t,e,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;kk(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,h,v;if(H(i,function(_,y){Ie(_)&&(i[y]=_={name:_}),l&&!_.isExtraCoord&&(!n&&!u&&_.ordinalMeta&&(u=_),!f&&_.type!=="ordinal"&&_.type!=="time"&&(!a||a===_.coordDim)&&(f=_))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;H(i,function(_){_.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),m.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function kk(t){return!Bx(t.schema)}function il(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Ik(t,e){return il(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Lk(t,e){var r=t.get("coordinateSystem"),n=Zv.get(r),a;return e&&e.coordSysDims&&(a=Re(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=pk(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Rk(t,e,r){var n,a;return r&&H(t,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(t[n].otherDims.itemName=0),n}function Pk(t,e,r){r=r||{};var n=e.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===rn;var o=bk(e),s=Lk(e,o),l=r.useEncodeDefaulter,u=Ue(l)?l:l?It(bD,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=Vx(a,f),v=Rk(h.dimensions,r.createInvertedIndices,o),c=i?null:n.getSharedDataStore(h),d=Mk(e,{schema:h,store:c}),p=new Wx(h,e);p.setCalculationInfo(d);var g=v!=null&&Fk(a)?function(m,_,y,w){return w===v?y:this.defaultDimValueGetter(m,_,y,w)}:null;return p.hasItemOption=!1,p.initData(i?a:c,null,g),p}function Fk(t){if(t.sourceFormat===rn){var e=Ok(t.data||[]);return!ke(_l(e))}}function Ok(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Hn=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var r=this._extent;e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();Uf(Hn);var Nk=0,X0=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Nk}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&Re(n,Bk);return new t({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Ie(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var a=this._getOrCreateMap();return r=a.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,a.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Ve(this.categories))},t}();function Bk(t){return Pe(t)&&t.value!=null?t.value:t+""}function K0(t){return t.type==="interval"||t.type==="log"}function Uk(t,e,r,n){var a={},i=t[1]-t[0],o=a.interval=b_(i/e);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=zx(o),l=a.niceTickExtent=[Lt(Math.ceil(t[0]/o)*o,s),Lt(Math.floor(t[1]/o)*o,s)];return Hk(l,t),a}function Lc(t){var e=Math.pow(10,Sv(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Lt(r*e)}function zx(t){return Kn(t)+2}function p1(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function Hk(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),p1(t,0,e),p1(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function lh(t,e){return t>=e[0]&&t<=e[1]}function uh(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function fh(t,e){return t*(e[1]-e[0])+e[0]}var ad=function(t){be(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new X0({})),ke(a)&&(a=new X0({categories:Re(a,function(i){return Pe(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Ie(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),lh(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),uh(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(fh(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Hn);Hn.registerClass(ad);var li=Lt,Oo=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return lh(r,this._extent)},e.prototype.normalize=function(r){return uh(r,this._extent)},e.prototype.scale=function(r){return fh(r,this._extent)},e.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=zx(r)},e.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(r?s.push({value:li(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=li(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(r?s.push({value:li(f+n,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],h=s.value-l.value,v=h/r;u<r-1;){var c=li(l.value+(u+1)*v);c>i[0]&&c<i[1]&&f.push(c),u++}a.push(f)}return a},e.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Kn(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=li(r.value,a,!0);return by(i)},e.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=Uk(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=li(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=li(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(Hn);Hn.registerClass(Oo);var $x=typeof Float32Array<"u",Gk=$x?Float32Array:Array;function uo(t){return ke(t)?$x?new Float32Array(t):t:new Gk(t)}var Wk="__ec_stack_";function Vk(t){return t.get("stack")||Wk+t.seriesIndex}function Yx(t){return t.dim+t.index}function zk(t,e){var r=[];return e.eachSeriesByType(t,function(n){Zk(n)&&r.push(n)}),r}function $k(t){var e={};H(t,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(c,p);e[v]?e[v].push(m):e[v]=[m]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function Yk(t){var e=$k(t),r=[];return H(t,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=mt(n.get("barWidth"),s),p=mt(n.get("barMaxWidth"),s),g=mt(n.get("barMinWidth")||(qk(n)?.5:1),s),m=n.get("barGap"),_=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:_,axisKey:Yx(i),stackId:Vk(n)})}),Xk(r)}function Xk(t){var e={};H(t,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return H(e,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=_t(i).length;s=Math.max(35-l*4,15)+"%"}var u=mt(s,o),f=mt(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),H(i,function(m){var _=m.maxWidth,y=m.minWidth;if(m.width){var w=m.width;_&&(w=Math.min(w,_)),y&&(w=Math.max(w,y)),m.width=w,h-=w+f*w,v--}else{var w=c;_&&_<w&&(w=Math.min(_,h)),y&&y>w&&(w=y),w!==c&&(m.width=w,h-=w+f*w,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;H(i,function(m,_){m.width||(m.width=c),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;H(i,function(m,_){r[a][_]=r[a][_]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function Kk(t,e,r){if(t&&e){var n=t[Yx(e)];return n}}function Zk(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function qk(t){return t.pipelineContext&&t.pipelineContext.large}var jk=function(t,e,r,n){for(;r<n;){var a=r+n>>>1;t[a][1]<e?r=a+1:n=a}return r},Xx=function(t){be(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Jf(r.value,og[mD(mo(this._minLevelUnit))]||og.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return _D(r,n,a,o,i)},e.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=aI(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Qr,n[1]+=Qr),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Qr}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=uu.length,l=Math.min(jk(uu,this._approxInterval,0,s),s-1);this._interval=uu[l][1],this._minLevelUnit=uu[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return pt(r)?r:+ra(r)},e.prototype.contain=function(r){return lh(this.parse(r),this._extent)},e.prototype.normalize=function(r){return uh(this.parse(r),this._extent)},e.prototype.scale=function(r){return fh(r,this._extent)},e.type="time",e}(Oo),uu=[["second",Wv],["minute",Vv],["hour",Fs],["quarter-day",Fs*6],["half-day",Fs*12],["day",Qr*1.2],["half-week",Qr*3.5],["week",Qr*7],["month",Qr*31],["quarter",Qr*95],["half-year",ig/2],["year",ig]];function Jk(t,e,r,n){var a=ra(e),i=ra(r),o=function(d){return sg(a,d,n)===sg(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function Qk(t,e){return t/=Qr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function eI(t){var e=30*Qr;return t/=e,t>6?6:t>3?3:t>2?2:1}function tI(t){return t/=Fs,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function g1(t,e){return t/=e?Vv:Wv,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function rI(t){return b_(t)}function nI(t,e,r){var n=new Date(t);switch(mo(e)){case"year":case"month":n[wy(r)](0);case"day":n[Ty(r)](1);case"hour":n[Sy(r)](0);case"minute":n[Cy(r)](0);case"second":n[Ey(r)](0),n[Ay(r)](0)}return n.getTime()}function aI(t,e,r,n){var a=1e4,i=yy,o=0;function s(A,M,L,N,V,W,te){for(var _e=new Date(M),ve=M,fe=_e[N]();ve<L&&ve<=n[1];)te.push({value:ve}),fe+=A,_e[V](fe),ve=_e.getTime();te.push({value:ve,notAdd:!0})}function l(A,M,L){var N=[],V=!M.length;if(!Jk(mo(A),n[0],n[1],r)){V&&(M=[{value:nI(new Date(n[0]),A,r)},{value:n[1]}]);for(var W=0;W<M.length-1;W++){var te=M[W].value,_e=M[W+1].value;if(te!==_e){var ve=void 0,fe=void 0,J=void 0,re=!1;switch(A){case"year":ve=Math.max(1,Math.round(e/Qr/365)),fe=zv(r),J=yD(r);break;case"half-year":case"quarter":case"month":ve=eI(e),fe=_o(r),J=wy(r);break;case"week":case"half-week":case"day":ve=Qk(e),fe=Qf(r),J=Ty(r),re=!0;break;case"half-day":case"quarter-day":case"hour":ve=tI(e),fe=Qs(r),J=Sy(r);break;case"minute":ve=g1(e,!0),fe=eh(r),J=Cy(r);break;case"second":ve=g1(e,!1),fe=th(r),J=Ey(r);break;case"millisecond":ve=rI(e),fe=rh(r),J=Ay(r);break}s(ve,te,_e,fe,J,re,N),A==="year"&&L.length>1&&W===0&&L.unshift({value:L[0].value-ve})}}for(var W=0;W<N.length;W++)L.push(N[W]);return N}}for(var u=[],f=[],h=0,v=0,c=0;c<i.length&&o++<a;++c){var d=mo(i[c]);if(gD(i[c])){l(i[c],u[u.length-1]||[],f);var p=i[c+1]?mo(i[c+1]):null;if(d!==p){if(f.length){v=h,f.sort(function(A,M){return A.value-M.value});for(var g=[],m=0;m<f.length;++m){var _=f[m].value;(m===0||f[m-1].value!==_)&&(g.push(f[m]),_>=n[0]&&_<=n[1]&&h++)}var y=(n[1]-n[0])/e;if(h>y*1.5&&v>y/1.5||(u.push(g),h>y||t===i[c]))break}f=[]}}}for(var w=Yt(Re(u,function(A){return Yt(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),E=[],T=w.length-1,c=0;c<w.length;++c)for(var x=w[c],C=0;C<x.length;++C)E.push({value:x[C].value,level:T-c});E.sort(function(A,M){return A.value-M.value});for(var S=[],c=0;c<E.length;++c)(c===0||E[c].value!==E[c-1].value)&&S.push(E[c]);return S}Hn.registerClass(Xx);var m1=Hn.prototype,Hs=Oo.prototype,iI=Lt,oI=Math.floor,sI=Math.ceil,fu=Math.pow,sn=Math.log,id=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Oo,r._interval=0,r}return e.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=Hs.getTicks.call(this,r);return Re(o,function(s){var l=s.value,u=Lt(fu(this.base,l));return u=l===a[0]&&this._fixMin?hu(u,i[0]):u,u=l===a[1]&&this._fixMax?hu(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(r,n){var a=sn(this.base);r=sn(Math.max(0,r))/a,n=sn(Math.max(0,n))/a,Hs.setExtent.call(this,r,n)},e.prototype.getExtent=function(){var r=this.base,n=m1.getExtent.call(this);n[0]=fu(r,n[0]),n[1]=fu(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=hu(n[0],i[0])),this._fixMax&&(n[1]=hu(n[1],i[1])),n},e.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=sn(r[0])/sn(n),r[1]=sn(r[1])/sn(n),m1.unionExtent.call(this,r)},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=EE(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Lt(sI(n[0]/i)*i),Lt(oI(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){Hs.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=sn(r)/sn(this.base),lh(r,this._extent)},e.prototype.normalize=function(r){return r=sn(r)/sn(this.base),uh(r,this._extent)},e.prototype.scale=function(r){return r=fh(r,this._extent),fu(this.base,r)},e.type="log",e}(Hn),Kx=id.prototype;Kx.getMinorTicks=Hs.getMinorTicks;Kx.getLabel=Hs.getLabel;function hu(t,e){return iI(t,Kn(e))}Hn.registerClass(id);var lI=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=r.get("min",!0);i==null&&(i=r.get("startValue",!0));var o=this._modelMinRaw=i;Ue(o)?this._modelMinNum=cu(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=cu(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(Ue(s)?this._modelMaxNum=cu(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=cu(e,s)),a)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=ke(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[La(u[0],1),La(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?a?0:NaN:r-i[0]*o),l==null&&(l=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=zu(s)||zu(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},t.prototype.modifyDataMinMax=function(e,r){this[fI[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=uI[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),uI={min:"_determinedMin",max:"_determinedMax"},fI={min:"_dataMin",max:"_dataMax"};function hI(t,e,r){var n=t.rawExtentInfo;return n||(n=new lI(t,e,r),t.rawExtentInfo=n,n)}function cu(t,e){return e==null?null:zu(e)?NaN:t.parse(e)}function Zx(t,e){var r=t.type,n=hI(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&r==="time"){var s=zk("bar",o),l=!1;if(H(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=Yk(s),f=cI(a,i,e,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function cI(t,e,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=Kk(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;H(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;H(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,h=1-(s+l)/i,v=f/h-f;return e+=v*(l/u),t-=v*(s/u),{min:t,max:e}}function _1(t,e){var r=e,n=Zx(t,r),a=n.extent,i=r.get("splitNumber");t instanceof id&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function vI(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new ad({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Xx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Hn.getClass(e)||Oo)}}function dI(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function No(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(a,i){return t.scale.getFormattedLabel(a,i,n)}}(e):Ie(e)?function(n){return function(a){var i=t.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(e):Ue(e)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(od(t,a),i,a.level!=null?{level:a.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function od(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function pI(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof ad?a=r.count():(n=r.getTicks(),a=n.length);var o=t.getLabelModel(),s=No(t),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var h=n?n[f]:{value:i[0]+f},v=s(h,f),c=o.getTextRect(v),d=gI(c,o.get("rotate")||0);l?l.union(d):l=d}return l}}function gI(t,e){var r=e*Math.PI/180,n=t.width,a=t.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new Je(t.x,t.y,i,o);return s}function sd(t){var e=t.get("interval");return e??"auto"}function qx(t){return t.type==="category"&&sd(t.getLabelModel())===0}function mI(t,e){var r={};return H(t.mapDimensionsAll(e),function(n){r[Ik(t,n)]=!0}),_t(r)}var _I=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}(),y1=[],yI={registerPreprocessor:Px,registerProcessor:Fx,registerPostInit:ok,registerPostUpdate:sk,registerUpdateLifecycle:rd,registerAction:Fo,registerCoordinateSystem:lk,registerLayout:uk,registerVisual:Di,registerTransform:hk,registerLoading:Ox,registerMap:fk,registerImpl:GM,PRIORITY:ek,ComponentModel:nt,ComponentView:_n,SeriesModel:na,ChartView:gn,registerComponentModel:function(t){nt.registerClass(t)},registerComponentView:function(t){_n.registerClass(t)},registerSeriesModel:function(t){na.registerClass(t)},registerChartView:function(t){gn.registerClass(t)},registerSubTypeDefaulter:function(t,e){nt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){_E(t,e)}};function Fa(t){if(ke(t)){H(t,function(e){Fa(e)});return}ut(y1,t)>=0||(y1.push(t),Ue(t)&&(t={install:t}),t.install(yI))}var ol=Dt();function jx(t,e){var r=Re(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function xI(t){var e=t.getLabelModel().get("customValues");if(e){var r=No(t),n=t.scale.getExtent(),a=jx(t,e),i=Yt(a,function(o){return o>=n[0]&&o<=n[1]});return{labels:Re(i,function(o){var s={value:o};return{formattedLabel:r(s),rawLabel:t.scale.getLabel(s),tickValue:o}})}}return t.type==="category"?TI(t):CI(t)}function wI(t,e){var r=t.getTickModel().get("customValues");if(r){var n=t.scale.getExtent(),a=jx(t,r);return{ticks:Yt(a,function(i){return i>=n[0]&&i<=n[1]})}}return t.type==="category"?SI(t,e):{ticks:Re(t.scale.getTicks(),function(i){return i.value})}}function TI(t){var e=t.getLabelModel(),r=Jx(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Jx(t,e){var r=Qx(t,"labels"),n=sd(e),a=e2(r,n);if(a)return a;var i,o;return Ue(n)?i=n2(t,n):(o=n==="auto"?EI(t):n,i=r2(t,o)),t2(r,n,{labels:i,labelCategoryInterval:o})}function SI(t,e){var r=Qx(t,"ticks"),n=sd(e),a=e2(r,n);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),Ue(n))i=n2(t,n,!0);else if(n==="auto"){var s=Jx(t,t.getLabelModel());o=s.labelCategoryInterval,i=Re(s.labels,function(l){return l.tickValue})}else o=n,i=r2(t,o,!0);return t2(r,n,{ticks:i,tickCategoryInterval:o})}function CI(t){var e=t.scale.getTicks(),r=No(t);return{labels:Re(e,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function Qx(t,e){return ol(t)[e]||(ol(t)[e]=[])}function e2(t,e){for(var r=0;r<t.length;r++)if(t[r].key===e)return t[r].value}function t2(t,e,r){return t.push({key:e,value:r}),r}function EI(t){var e=ol(t).autoInterval;return e??(ol(t).autoInterval=t.calculateCategoryInterval())}function AI(t){var e=bI(t),r=No(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),v=0,c=0;l<=i[1];l+=s){var d=0,p=0,g=wv(r({value:l}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),c=Math.max(c,p,7)}var m=v/f,_=c/h;isNaN(m)&&(m=1/0),isNaN(_)&&(_=1/0);var y=Math.max(0,Math.floor(Math.min(m,_))),w=ol(t.model),E=t.getExtent(),T=w.lastAutoInterval,x=w.lastTickCount;return T!=null&&x!=null&&Math.abs(T-y)<=1&&Math.abs(x-o)<=1&&T>y&&w.axisExtent0===E[0]&&w.axisExtent1===E[1]?y=T:(w.lastTickCount=o,w.lastAutoInterval=y,w.axisExtent0=E[0],w.axisExtent1=E[1]),y}function bI(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function r2(t,e,r){var n=No(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=qx(t),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);c&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function n2(t,e,r){var n=t.scale,a=No(t),i=[];return H(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var x1=[0,1],DI=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return wE(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(n=n.slice(),w1(n,a.count())),y0(e,x1,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),w1(n,a.count()));var i=y0(e,n,x1,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=wI(this,r),a=n.ticks,i=Re(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return MI(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=Re(n,function(i){return Re(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return xI(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},t.prototype.calculateCategoryInterval=function(){return AI(this)},t}();function w1(t,e){var r=t[1]-t[0],n=e,a=r/n/2;t[0]+=a,t[1]-=a}function MI(t,e,r,n){var a=e.length;if(!t.onBand||r||!a)return;var i=t.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;H(e,function(c){c.coord-=u/2});var f=t.scale.getExtent();s=1+f[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s,tickValue:f[1]+1},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&v(o.coord,i[1])&&e.push({coord:i[1]});function v(c,d){return c=Lt(c),d=Lt(d),h?c>d:c<d}}function a2(t,e,r,n,a,i,o,s){var l=a-t,u=i-e,f=r-t,h=n-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;d*=v;var p=o[0]=t+d*f,g=o[1]=e+d*h;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}var wa=new Ne,wt=new Ne,zt=new Ne,Ta=new Ne,In=new Ne,mf=[],fr=new Ne;function kI(t,e){if(e<=180&&e>0){e=e/180*Math.PI,wa.fromArray(t[0]),wt.fromArray(t[1]),zt.fromArray(t[2]),Ne.sub(Ta,wa,wt),Ne.sub(In,zt,wt);var r=Ta.len(),n=In.len();if(!(r<.001||n<.001)){Ta.scale(1/r),In.scale(1/n);var a=Ta.dot(In),i=Math.cos(e);if(i<a){var o=a2(wt.x,wt.y,zt.x,zt.y,wa.x,wa.y,mf);fr.fromArray(mf),fr.scaleAndAdd(In,o/Math.tan(Math.PI-e));var s=zt.x!==wt.x?(fr.x-wt.x)/(zt.x-wt.x):(fr.y-wt.y)/(zt.y-wt.y);if(isNaN(s))return;s<0?Ne.copy(fr,wt):s>1&&Ne.copy(fr,zt),fr.toArray(t[1])}}}}function II(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,wa.fromArray(t[0]),wt.fromArray(t[1]),zt.fromArray(t[2]),Ne.sub(Ta,wt,wa),Ne.sub(In,zt,wt);var n=Ta.len(),a=In.len();if(!(n<.001||a<.001)){Ta.scale(1/n),In.scale(1/a);var i=Ta.dot(e),o=Math.cos(r);if(i<o){var s=a2(wt.x,wt.y,zt.x,zt.y,wa.x,wa.y,mf);fr.fromArray(mf);var l=Math.PI/2,u=Math.acos(In.dot(e)),f=l+u-r;if(f>=l)Ne.copy(fr,zt);else{fr.scaleAndAdd(In,s/Math.tan(Math.PI/2-f));var h=zt.x!==wt.x?(fr.x-wt.x)/(zt.x-wt.x):(fr.y-wt.y)/(zt.y-wt.y);if(isNaN(h))return;h<0?Ne.copy(fr,wt):h>1&&Ne.copy(fr,zt)}fr.toArray(t[1])}}}}function Rc(t,e,r,n){var a=r==="normal",i=a?t:t.ensureState(r);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function LI(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=a0(n[0],n[1]),i=a0(n[1],n[2]);if(!a||!i){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=bh([],n[1],n[0],o/a),l=bh([],n[1],n[2],o/i),u=bh([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function RI(t,e,r){var n=t.getTextGuideLine(),a=t.getTextContent();if(!a){n&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<tf.length;l++){var u=tf[l],f=e[u],h=u==="normal";if(f){var v=f.get("show"),c=h?s:We(a.states[u]&&a.states[u].ignore,s);if(c||!We(v,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&Rc(n,!0,u,f);continue}n||(n=new wl,t.setTextGuideLine(n),!h&&(s||!o)&&Rc(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Rc(n,!1,u,f)}}if(n){Qe(n.style,r),n.style.fill=null;var p=i.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=LI}}function PI(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<tn.length;n++){var a=tn[n];r[a]=t.getModel([a,e])}return r}function FI(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new of(o,i):null;e.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return e}function OI(t,e,r,n,a,i){var o=t.length;if(o<2)return;t.sort(function(T,x){return T.rect[e]-x.rect[e]});for(var s=0,l,u=!1,f=0;f<o;f++){var h=t[f],v=h.rect;l=v[e]-s,l<0&&(v[e]-=l,h.label[e]-=l,u=!0),s=v[e]+v[r]}var c=t[0],d=t[o-1],p,g;m(),p<0&&w(-p,.8),g<0&&w(g,.8),m(),_(p,g,1),_(g,p,-1),m(),p<0&&E(-p),g<0&&E(g);function m(){p=c.rect[e]-n,g=a-d.rect[e]-d.rect[r]}function _(T,x,C){if(T<0){var S=Math.min(x,-T);if(S>0){y(S*C,0,o);var A=S+T;A<0&&w(-A*C,1)}else w(-T*C,1)}}function y(T,x,C){T!==0&&(u=!0);for(var S=x;S<C;S++){var A=t[S],M=A.rect;M[e]+=T,A.label[e]+=T}}function w(T,x){for(var C=[],S=0,A=1;A<o;A++){var M=t[A-1].rect,L=Math.max(t[A].rect[e]-M[e]-M[r],0);C.push(L),S+=L}if(S){var N=Math.min(Math.abs(T)/S,x);if(T>0)for(var A=0;A<o-1;A++){var V=C[A]*N;y(V,0,A+1)}else for(var A=o-1;A>0;A--){var V=C[A-1]*N;y(-V,A,o)}}}function E(T){var x=T<0?-1:1;T=Math.abs(T);for(var C=Math.ceil(T/(o-1)),S=0;S<o-1;S++)if(x>0?y(C,0,S+1):y(-C,o-S-1,o),T-=C,T<=0)return}return u}function NI(t,e,r,n){return OI(t,"y","height",e,r)}function BI(t){var e=[];t.sort(function(p,g){return g.priority-p.priority});var r=new Je(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a<t.length;a++){var i=t[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var h=i.obb,v=!1,c=0;c<e.length;c++){var d=e[c];if(r.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new of(d.localRect,d.transform)),h||(h=new of(s,l)),h.intersect(d.obb)){v=!0;break}}}v?(n(u),f&&n(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}var UI=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return Pk(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new sr,a=Ao("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=Ao(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(na);function i2(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Eo(t,e,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(Eo(t,e,r[o]));return i.join(" ")}}function HI(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!ke(e))return e+"";for(var n=[],a=0;a<r.length;a++){var i=t.getDimensionIndex(r[a]);i>=0&&n.push(e[i])}return n.join(" ")}var ld=function(t){be(e,t);function e(r,n,a,i){var o=t.call(this)||this;return o.updateData(r,n,a,i),o}return e.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=Ao(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=GI,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){rf(this.childAt(0))},e.prototype.downplay=function(){nf(this.childAt(0))},e.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},e.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},e.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Fn(v,c,s,n),ly(v)}if(this._updateCommon(r,n,l,a,i),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Da(v,c,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,f,h,v,c,d,p,g,m;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||r.hasItemOption){var _=i&&i.itemModel?i.itemModel:r.getItemModel(n),y=_.getModel("emphasis");u=y.getModel("itemStyle").getItemStyle(),h=_.getModel(["select","itemStyle"]).getItemStyle(),f=_.getModel(["blur","itemStyle"]).getItemStyle(),v=y.get("focus"),c=y.get("blurScope"),d=y.get("disabled"),p=qf(_),g=y.getShallow("scale"),m=_.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var E=cx(r.getItemVisual(n,"symbolOffset"),a);E&&(s.x=E[0],s.y=E[1]),m&&s.attr("cursor",m);var T=r.getItemVisual(n,"style"),x=T.fill;if(s instanceof Ua){var C=s.style;s.useStyle(me({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},T))}else s.__isEmptyBrush?s.useStyle(me({},T)):s.useStyle(T),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var S=r.getItemVisual(n,"liftZ"),A=this._z2;S!=null?A==null&&(this._z2=s.z2,s.z2+=S):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Zf(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:x,defaultOpacity:T.opacity});function L(W){return M?r.getName(W):i2(r,W)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var N=s.ensureState("emphasis");N.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var V=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;N.scaleX=this._sizeX*V,N.scaleY=this._sizeY*V,this.setSymbolScale(1),af(this,v,c,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=at(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&sf(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();sf(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return CM(r.getItemVisual(n,"symbolSize"))},e}(sr);function GI(t,e){this.parent.drift(t,e)}function Pc(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function T1(t){return t!=null&&!Pe(t)&&(t={isIgnore:t}),t||{}}function S1(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:qf(e),cursorStyle:e.get("cursor")}}var WI=function(){function t(e){this.group=new sr,this._SymbolCtor=e||ld}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=T1(r);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=S1(e),u={disableAnimation:s},f=r.getSymbolPoint||function(h){return e.getItemLayout(h)};i||n.removeAll(),e.diff(i).add(function(h){var v=f(h);if(Pc(e,v,h,r)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),d=f(h);if(!Pc(e,d,h,r)){n.remove(c);return}var p=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)n.remove(c),c=new o(e,h,l,u),c.setPosition(d);else{c.updateData(e,h,l,u);var m={x:d[0],y:d[1]};s?c.attr(m):Fn(c,m,a)}n.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},a)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=S1(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=T1(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=r.getItemLayout(i);if(Pc(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){Uv(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},t}();function o2(t,e,r){var n=t.getBaseAxis(),a=t.getOtherAxis(n),i=VI(a,r),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=Re(t.dimensions,function(d){return e.mapDimension(d)}),v=!1,c=e.getCalculationInfo("stackResultDimension");return il(e,h[0])&&(v=!0,h[0]=c),il(e,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function VI(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:pt(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function s2(t,e,r,n){var a=NaN;t.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=r.get(t.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function zI(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function $I(t,e,r,n,a,i,o,s){for(var l=zI(t,e),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=o2(a,e,o),m=t.getLayout("points")||[],_=e.getLayout("points")||[],y=0;y<l.length;y++){var w=l[y],E=!0,T=void 0,x=void 0;switch(w.cmd){case"=":T=w.idx*2,x=w.idx1*2;var C=m[T],S=m[T+1],A=_[x],M=_[x+1];(isNaN(C)||isNaN(S))&&(C=A,S=M),u.push(C,S),f.push(A,M),h.push(r[T],r[T+1]),v.push(n[x],n[x+1]),p.push(e.getRawIndex(w.idx1));break;case"+":var L=w.idx,N=g.dataDimsForPoint,V=a.dataToPoint([e.get(N[0],L),e.get(N[1],L)]);x=L*2,u.push(V[0],V[1]),f.push(_[x],_[x+1]);var W=s2(g,a,e,L);h.push(W[0],W[1]),v.push(n[x],n[x+1]),p.push(e.getRawIndex(L));break;case"-":E=!1}E&&(c.push(w),d.push(d.length))}d.sort(function(U,q){return p[U]-p[q]});for(var te=u.length,_e=uo(te),ve=uo(te),fe=uo(te),J=uo(te),re=[],y=0;y<d.length;y++){var I=d[y],G=y*2,B=I*2;_e[G]=u[B],_e[G+1]=u[B+1],ve[G]=f[B],ve[G+1]=f[B+1],fe[G]=h[B],fe[G+1]=h[B+1],J[G]=v[B],J[G+1]=v[B+1],re[y]=c[I]}return{current:_e,next:ve,stackedOnCurrent:fe,stackedOnNext:J,status:re}}var da=Math.min,pa=Math.max;function mi(t,e){return isNaN(t)||isNaN(e)}function Z0(t,e,r,n,a,i,o,s,l){for(var u,f,h,v,c,d,p=r,g=0;g<n;g++){var m=e[p*2],_=e[p*2+1];if(p>=a||p<0)break;if(mi(m,_)){if(l){p+=i;continue}break}if(p===r)t[i>0?"moveTo":"lineTo"](m,_),h=m,v=_;else{var y=m-u,w=_-f;if(y*y+w*w<.5){p+=i;continue}if(o>0){for(var E=p+i,T=e[E*2],x=e[E*2+1];T===m&&x===_&&g<n;)g++,E+=i,p+=i,T=e[E*2],x=e[E*2+1],m=e[p*2],_=e[p*2+1],y=m-u,w=_-f;var C=g+1;if(l)for(;mi(T,x)&&C<n;)C++,E+=i,T=e[E*2],x=e[E*2+1];var S=.5,A=0,M=0,L=void 0,N=void 0;if(C>=n||mi(T,x))c=m,d=_;else{A=T-u,M=x-f;var V=m-u,W=T-m,te=_-f,_e=x-_,ve=void 0,fe=void 0;if(s==="x"){ve=Math.abs(V),fe=Math.abs(W);var J=A>0?1:-1;c=m-J*ve*o,d=_,L=m+J*fe*o,N=_}else if(s==="y"){ve=Math.abs(te),fe=Math.abs(_e);var re=M>0?1:-1;c=m,d=_-re*ve*o,L=m,N=_+re*fe*o}else ve=Math.sqrt(V*V+te*te),fe=Math.sqrt(W*W+_e*_e),S=fe/(fe+ve),c=m-A*o*(1-S),d=_-M*o*(1-S),L=m+A*o*S,N=_+M*o*S,L=da(L,pa(T,m)),N=da(N,pa(x,_)),L=pa(L,da(T,m)),N=pa(N,da(x,_)),A=L-m,M=N-_,c=m-A*ve/fe,d=_-M*ve/fe,c=da(c,pa(u,m)),d=da(d,pa(f,_)),c=pa(c,da(u,m)),d=pa(d,da(f,_)),A=m-c,M=_-d,L=m+A*fe/ve,N=_+M*fe/ve}t.bezierCurveTo(h,v,c,d,m,_),h=L,v=N}else t.lineTo(m,_)}u=m,f=_,p+=i}return g}var l2=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),YI=function(t){be(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l2},e.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&mi(a[o*2-2],a[o*2-1]);o--);for(;i<o&&mi(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=Z0(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Ti.CMD,s,l,u=n==="x",f=[],h=0;h<i.length;){var v=i[h++],c=void 0,d=void 0,p=void 0,g=void 0,m=void 0,_=void 0,y=void 0;switch(v){case o.M:s=i[h++],l=i[h++];break;case o.L:if(c=i[h++],d=i[h++],y=u?(r-s)/(c-s):(r-l)/(d-l),y<=1&&y>=0){var w=u?(d-l)*y+l:(c-s)*y+s;return u?[r,w]:[w,r]}s=c,l=d;break;case o.C:c=i[h++],d=i[h++],p=i[h++],g=i[h++],m=i[h++],_=i[h++];var E=u?Xu(s,c,p,m,r,f):Xu(l,d,g,_,r,f);if(E>0)for(var T=0;T<E;T++){var x=f[T];if(x<=1&&x>=0){var w=u?Xt(l,d,g,_,x):Xt(s,c,p,m,x);return u?[r,w]:[w,r]}}s=m,l=_;break}}},e}(vt),XI=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(l2),KI=function(t){be(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new XI},e.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&mi(a[s*2-2],a[s*2-1]);s--);for(;o<s&&mi(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=Z0(r,a,o,s,s,1,n.smooth,l,n.connectNulls);Z0(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e}(vt);function ZI(t,e,r,n,a){var i=t.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new Gt({shape:{x:o,y:s,width:l,height:u}});if(e){var v=t.getBaseAxis(),c=v.isHorizontal(),d=v.inverse;c?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=Ue(a)?function(g){a(g,h)}:null;Da(h,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return h}function qI(t,e,r){var n=t.getArea(),a=Lt(n.r0,1),i=Lt(n.r,1),o=new Ro({shape:{cx:Lt(t.cx,1),cy:Lt(t.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Da(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function jI(t,e){return t.type===e}function C1(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function E1(t){for(var e=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<t.length;){var o=t[i++],s=t[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[e,r],[n,a]]}function A1(t,e){var r=E1(t),n=r[0],a=r[1],i=E1(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function b1(t){return pt(t)?t:t?.5:0}function JI(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),a=uo(n*2),i=0;i<n;i++){var o=s2(r,t,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function ga(t,e,r,n,a){var i=r.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],v=[];if(a){for(l=0;l<t.length;l+=2){var c=e||t;!isNaN(c[l])&&!isNaN(c[l+1])&&v.push(t[l],t[l+1])}t=v}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),n){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+h[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=h[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function QI(t,e){var r=[],n=t.length,a,i;function o(f,h,v){var c=f.coord,d=(v-c)/(h.coord-c),p=$C(d,[f.color,h.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)a=l;else if(u>e){i?r.push(o(i,l,e)):a&&r.push(o(a,l,0),o(a,l,e));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function e3(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=e.getAxis(a),u=Re(i.stops,function(y){return{coord:l.toGlobalCoord(l.dataToCoord(y.value)),color:y.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=QI(u,a==="x"?r.getWidth():r.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[c-1].coord+d,m=g-p;if(m<.001)return"transparent";H(v,function(y){y.offset=(y.coord-p)/m}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var _=new oy(0,0,0,0,v,!0);return _[a]=p,_[a+"2"]=g,_}}}function t3(t,e,r){var n=t.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&r3(i,e))){var o=e.mapDimension(i.dim),s={};return H(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function r3(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(ld.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function n3(t,e){return isNaN(t)||isNaN(e)}function a3(t){for(var e=t.length/2;e>0&&n3(t[e*2-2],t[e*2-1]);e--);return e-1}function D1(t,e){return[t[e*2],t[e*2+1]]}function i3(t,e,r){for(var n=t.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+a],!(isNaN(o)||isNaN(t[u*2+1-a]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function u2(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<tn.length;e++)if(t.get([tn[e],"endLabel","show"]))return!0;return!1}function Fc(t,e,r,n){if(jI(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=u2(n)?function(c,d){t._endLabelOnDuring(c,d,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=ZI(e,r,n,function(){var c=t._endLabel;c&&r&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,f),f}else return qI(e,r,n)}function o3(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var s3=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new sr,n=new WI;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=dt(this._changePolyState,this)},e.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],h=i.type==="polar",v=this._coordSys,c=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!n.ssr&&r.get("animation"),_=!u.isEmpty(),y=u.get("origin"),w=o2(i,s,y),E=_&&JI(i,s,w),T=r.get("showSymbol"),x=r.get("connectNulls"),C=T&&!h&&t3(r,s,i),S=this._data;S&&S.eachItemGraphicEl(function(U,q){U.__temp&&(o.remove(U),S.setItemGraphicEl(q,null))}),T||c.remove(),o.add(g);var A=h?!1:r.get("step"),M;i&&i.getArea&&r.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var L=e3(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===i.type&&A===this._step))T&&c.updateData(s,{isIgnore:C,clipShape:M,disableAnimation:!0,getSymbolPoint:function(U){return[f[U*2],f[U*2+1]]}}),m&&this._initSymbolLabelAnimation(s,i,M),A&&(E&&(E=ga(E,f,i,A,x)),f=ga(f,null,i,A,x)),d=this._newPolyline(f),_?p=this._newPolygon(f,E):p&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(r,i,Si(L)),g.setClipPath(Fc(this,i,!0,r));else{_&&!p?p=this._newPolygon(f,E):p&&!_&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(r,i,Si(L));var N=g.getClipPath();if(N){var V=Fc(this,i,!1,r);Da(N,{shape:V.shape},r)}else g.setClipPath(Fc(this,i,!0,r));T&&c.updateData(s,{isIgnore:C,clipShape:M,disableAnimation:!0,getSymbolPoint:function(U){return[f[U*2],f[U*2+1]]}}),(!C1(this._stackedOnPoints,E)||!C1(this._points,f))&&(m?this._doUpdateAnimation(s,E,i,a,A,y,x):(A&&(E&&(E=ga(E,f,i,A,x)),f=ga(f,null,i,A,x)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:E})))}var W=r.getModel("emphasis"),te=W.get("focus"),_e=W.get("blurScope"),ve=W.get("disabled");if(d.useStyle(Qe(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),b0(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var fe=d.getState("emphasis").style;fe.lineWidth=+d.style.lineWidth+1}at(d).seriesIndex=r.seriesIndex,af(d,te,_e,ve);var J=b1(r.get("smooth")),re=r.get("smoothMonotone");if(d.setShape({smooth:J,smoothMonotone:re,connectNulls:x}),p){var I=s.getCalculationInfo("stackedOnSeries"),G=0;p.useStyle(Qe(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),I&&(G=b1(I.get("smooth"))),p.setShape({smooth:J,stackedOnSmooth:G,smoothMonotone:re,connectNulls:x}),b0(p,r,"areaStyle"),at(p).seriesIndex=r.seriesIndex,af(p,te,_e,ve)}var B=this._changePolyState;s.eachItemGraphicEl(function(U){U&&(U.onHoverStateChange=B)}),this._polyline.onHoverStateChange=B,this._data=s,this._coordSys=i,this._stackedOnPoints=E,this._points=f,this._step=A,this._valueOrigin=y,r.get("triggerLineEvent")&&(this.packEventData(r,d),p&&this.packEventData(r,p))},e.prototype.packEventData=function(r,n){at(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=wi(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=r.get("zlevel")||0,c=r.get("z")||0;u=new ld(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else gn.prototype.highlight.call(this,r,n,a,i)},e.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=wi(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else gn.prototype.downplay.call(this,r,n,a,i)},e.prototype._changePolyState=function(r){var n=this._polygon;Bp(this._polyline,r),n&&Bp(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new YI({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new KI({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");Ue(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=Ue(h)?h(null):h;r.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],m=void 0,_=void 0,y=void 0;if(a)if(o){var w=a,E=n.pointToCoord(g);i?(m=w.startAngle,_=w.endAngle,y=-E[1]/180*Math.PI):(m=w.r0,_=w.r,y=E[0])}else{var T=a;i?(m=T.x,_=T.x+T.width,y=c.x):(m=T.y+T.height,_=T.y,y=c.y)}var x=_===m?0:(y-m)/(_-m);l&&(x=1-x);var C=Ue(h)?h(d):f*x+v,S=p.getSymbolPath(),A=S.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),S.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(u2(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new jt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=a3(l);f>=0&&(Zf(s,qf(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?HI(o,c):i2(o,h)},enableTextSetter:!0},o3(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=a.getLayout("points"),v=a.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),_=g.inverse,y=n.shape,w=_?m?y.x:y.y+y.height:m?y.x+y.width:y.y,E=(m?p:0)*(_?-1:1),T=(m?0:-p)*(_?-1:1),x=m?"x":"y",C=i3(h,w,x),S=C.range,A=S[1]-S[0],M=void 0;if(A>=1){if(A>1&&!c){var L=D1(h,S[0]);u.attr({x:L[0]+E,y:L[1]+T}),o&&(M=v.getRawValue(S[0]))}else{var L=f.getPointOn(w,x);L&&u.attr({x:L[0]+E,y:L[1]+T});var N=v.getRawValue(S[0]),V=v.getRawValue(S[1]);o&&(M=GE(a,d,N,V,C.t))}i.lastFrameIndex=S[0]}else{var W=r===1||i.lastFrameIndex>0?S[0]:0,L=D1(h,W);o&&(M=v.getRawValue(W)),u.attr({x:L[0]+E,y:L[1]+T})}if(o){var te=dy(u);typeof te.setLabelText=="function"&&te.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,h=r.hostModel,v=$I(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=ga(v.stackedOnCurrent,v.current,a,o,l),c=ga(v.current,null,a,o,l),g=ga(v.stackedOnNext,v.next,a,o,l),p=ga(v.next,null,a,o,l)),A1(c,p)>3e3||f&&A1(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var m={shape:{points:p}};v.current!==c&&(m.shape.__points=v.next),u.stopAnimation(),Fn(u,m,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Fn(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var _=[],y=v.status,w=0;w<y.length;w++){var E=y[w].cmd;if(E==="="){var T=r.getItemGraphicEl(y[w].idx1);T&&_.push({el:T,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,C=0;C<_.length;C++){var S=_[C].el,A=_[C].ptIdx*2;S.x=x[A],S.y=x[A+1],S.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(gn);function l3(t,e){return{seriesType:t,plan:tx(),reset:function(r){var n=r.getData(),a=r.coordinateSystem;if(r.pipelineContext,!!a){var i=Re(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),o=i.length,s=n.getCalculationInfo("stackResultDimension");il(n,i[0])&&(i[0]=s),il(n,i[1])&&(i[1]=s);var l=n.getStore(),u=n.getDimensionIndex(i[0]),f=n.getDimensionIndex(i[1]);return o&&{progress:function(h,v){for(var c=h.end-h.start,d=uo(c*o),p=[],g=[],m=h.start,_=0;m<h.end;m++){var y=void 0;if(o===1){var w=l.get(u,m);y=a.dataToPoint(w,null,g)}else p[0]=l.get(u,m),p[1]=l.get(f,m),y=a.dataToPoint(p,null,g);d[_++]=y[0],d[_++]=y[1]}v.setLayout("points",d)}}}}}}var u3={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},f3=function(t){return Math.round(t.length/2)};function h3(t){return{seriesType:t,reset:function(e,r,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/c)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/c));var d=void 0;Ie(i)?d=u3[i]:Ue(i)&&(d=i),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/c,d,f3))}}}}}function c3(t){t.registerChartView(s3),t.registerSeriesModel(UI),t.registerLayout(l3("line")),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,h3("line"))}function vu(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;ke(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Re(n,function(i){return La(i,a)})}}var M1=Math.PI*2,du=Math.PI/180;function f2(t,e){return So(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function h2(t,e){var r=f2(t,e),n=t.get("center"),a=t.get("radius");ke(a)||(a=[0,a]);var i=mt(r.width,e.getWidth()),o=mt(r.height,e.getHeight()),s=Math.min(i,o),l=mt(a[0],s/2),u=mt(a[1],s/2),f,h,v=t.coordinateSystem;if(v){var c=v.dataToPoint(n);f=c[0]||0,h=c[1]||0}else ke(n)||(n=[n,n]),f=mt(n[0],i)+r.x,h=mt(n[1],o)+r.y;return{cx:f,cy:h,r0:l,r:u}}function v3(t,e,r){e.eachSeriesByType(t,function(n){var a=n.getData(),i=a.mapDimension("value"),o=f2(n,r),s=h2(n,r),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-n.get("startAngle")*du,c=n.get("endAngle"),d=n.get("padAngle")*du;c=c==="auto"?v-M1:-c*du;var p=n.get("minAngle")*du,g=p+d,m=0;a.each(i,function(_e){!isNaN(_e)&&m++});var _=a.getSum(i),y=Math.PI/(_||m)*2,w=n.get("clockwise"),E=n.get("roseType"),T=n.get("stillShowZeroSum"),x=a.getDataExtent(i);x[0]=0;var C=w?1:-1,S=[v,c],A=C*d/2;U_(S,!w),v=S[0],c=S[1];var M=c2(n);M.startAngle=v,M.endAngle=c,M.clockwise=w;var L=Math.abs(c-v),N=L,V=0,W=v;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(_e,ve){var fe;if(isNaN(_e)){a.setItemLayout(ve,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:h,r:E?NaN:f});return}E!=="area"?fe=_===0&&T?y:_e*y:fe=L/m,fe<g?(fe=g,N-=g):V+=_e;var J=W+C*fe,re=0,I=0;d>fe?(re=W+C*fe/2,I=re):(re=W+A,I=J-A),a.setItemLayout(ve,{angle:fe,startAngle:re,endAngle:I,clockwise:w,cx:l,cy:u,r0:h,r:E?y0(_e,x,[h,f]):f}),W=J}),N<M1&&m)if(N<=.001){var te=L/m;a.each(i,function(_e,ve){if(!isNaN(_e)){var fe=a.getItemLayout(ve);fe.angle=te;var J=0,re=0;te<d?(J=v+C*(ve+1/2)*te,re=J):(J=v+C*ve*te+A,re=v+C*(ve+1)*te-A),fe.startAngle=J,fe.endAngle=re}})}else y=N/V,W=v,a.each(i,function(_e,ve){if(!isNaN(_e)){var fe=a.getItemLayout(ve),J=fe.angle===g?g:_e*y,re=0,I=0;J<d?(re=W+C*J/2,I=re):(re=W+A,I=W+C*J-A),fe.startAngle=re,fe.endAngle=I,W+=C*J}})})}var c2=Dt();function d3(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var p3=Math.PI/180;function k1(t,e,r,n,a,i,o,s,l,u){if(t.length<2)return;function f(p){for(var g=p.rB,m=g*g,_=0;_<p.list.length;_++){var y=p.list[_],w=Math.abs(y.label.y-r),E=n+y.len,T=E*E,x=Math.sqrt(Math.abs((1-w*w/m)*T)),C=e+(x+y.len2)*a,S=C-y.label.x,A=y.targetTextWidth-S*a;v2(y,A,!0),y.label.x=C}}function h(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},_=0;_<p.length;_++)if(p[_].labelAlignTo==="none"){var y=p[_],w=y.label.y>r?m:g,E=Math.abs(y.label.y-r);if(E>=w.maxY){var T=y.label.x-e-y.len2*a,x=n+y.len,C=Math.abs(T)<x?Math.sqrt(E*E/(1-T*T/x/x)):x;w.rB=C,w.maxY=E}w.list.push(y)}f(g),f(m)}for(var v=t.length,c=0;c<v;c++)if(t[c].position==="outer"&&t[c].labelAlignTo==="labelLine"){var d=t[c].label.x-u;t[c].linePoints[1][0]+=d,t[c].label.x=u}NI(t,l,l+o)&&h(t)}function g3(t,e,r,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<t.length;v++){var c=t[v].label;Oc(t[v])||(c.x<e?(f=Math.min(f,c.x),l.push(t[v])):(h=Math.max(h,c.x),u.push(t[v])))}for(var v=0;v<t.length;v++){var d=t[v];if(!Oc(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var c=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?c.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?c.x<e?g=f-o-d.bleedMargin:g=o+a-h-d.bleedMargin:c.x<e?g=c.x-o-d.bleedMargin:g=o+a-c.x-d.bleedMargin,d.targetTextWidth=g,v2(d,g)}}k1(u,e,r,n,1,a,i,o,s,h),k1(l,e,r,n,-1,a,i,o,s,f);for(var v=0;v<t.length;v++){var d=t[v];if(!Oc(d)&&d.linePoints){var c=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",_=c.style.padding,y=_?_[1]+_[3]:0,w=c.style.backgroundColor?0:y,E=d.rect.width+w,T=p[1][0]-p[2][0];m?c.x<e?p[2][0]=o+d.edgeDistance+E+d.labelDistance:p[2][0]=o+a-d.edgeDistance-E-d.labelDistance:(c.x<e?p[2][0]=c.x+d.labelDistance:p[2][0]=c.x-d.labelDistance,p[1][0]=p[2][0]+T),p[1][1]=p[2][1]=c.y}}}function v2(t,e,r){if(r===void 0&&(r=!1),t.labelStyleWidth==null){var n=t.label,a=n.style,i=t.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(e<f||r){var h=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var c=e-l,d=e<f?c:r?c>t.unconstrainedWidth?null:c:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-h)/2}}}function Oc(t){return t.position==="center"}function m3(t){var e=t.getData(),r=[],n,a,i=!1,o=(t.get("minShowLabelAngle")||0)*p3,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(T){T.ignore=!0}function d(T){if(!T.ignore)return!0;for(var x in T.states)if(T.states[x].ignore===!1)return!0;return!1}e.each(function(T){var x=e.getItemGraphicEl(T),C=x.shape,S=x.getTextContent(),A=x.getTextGuideLine(),M=e.getItemModel(T),L=M.getModel("label"),N=L.get("position")||M.get(["emphasis","label","position"]),V=L.get("distanceToLabelLine"),W=L.get("alignTo"),te=mt(L.get("edgeDistance"),u),_e=L.get("bleedMargin"),ve=M.getModel("labelLine"),fe=ve.get("length");fe=mt(fe,u);var J=ve.get("length2");if(J=mt(J,u),Math.abs(C.endAngle-C.startAngle)<o){H(S.states,c),S.ignore=!0,A&&(H(A.states,c),A.ignore=!0);return}if(d(S)){var re=(C.startAngle+C.endAngle)/2,I=Math.cos(re),G=Math.sin(re),B,U,q,ce;n=C.cx,a=C.cy;var Ce=N==="inside"||N==="inner";if(N==="center")B=C.cx,U=C.cy,ce="center";else{var ge=(Ce?(C.r+C.r0)/2*I:C.r*I)+n,ue=(Ce?(C.r+C.r0)/2*G:C.r*G)+a;if(B=ge+I*3,U=ue+G*3,!Ce){var Te=ge+I*(fe+l-C.r),we=ue+G*(fe+l-C.r),st=Te+(I<0?-1:1)*J,Le=we;W==="edge"?B=I<0?f+te:f+u-te:B=st+(I<0?-V:V),U=Le,q=[[ge,ue],[Te,we],[st,Le]]}ce=Ce?"center":W==="edge"?I>0?"right":"left":I>0?"left":"right"}var Mt=Math.PI,$e=0,Ee=L.get("rotate");if(pt(Ee))$e=Ee*(Mt/180);else if(N==="center")$e=0;else if(Ee==="radial"||Ee===!0){var Qt=I<0?-re+Mt:-re;$e=Qt}else if(Ee==="tangential"&&N!=="outside"&&N!=="outer"){var Ot=Math.atan2(I,G);Ot<0&&(Ot=Mt*2+Ot);var pr=G>0;pr&&(Ot=Mt+Ot),$e=Ot-Mt}if(i=!!$e,S.x=B,S.y=U,S.rotation=$e,S.setStyle({verticalAlign:"middle"}),Ce){S.setStyle({align:ce});var Gn=S.states.select;Gn&&(Gn.x+=S.x,Gn.y+=S.y)}else{var gr=S.getBoundingRect().clone();gr.applyTransform(S.getComputedTransform());var Tn=(S.style.margin||0)+2.1;gr.y-=Tn/2,gr.height+=Tn,r.push({label:S,labelLine:A,position:N,len:fe,len2:J,minTurnAngle:ve.get("minTurnAngle"),maxSurfaceAngle:ve.get("maxSurfaceAngle"),surfaceNormal:new Ne(I,G),linePoints:q,textAlign:ce,labelDistance:V,labelAlignTo:W,edgeDistance:te,bleedMargin:_e,rect:gr,unconstrainedWidth:gr.width,labelStyleWidth:S.style.width})}x.setTextConfig({inside:Ce})}}),!i&&t.get("avoidLabelOverlap")&&g3(r,n,a,l,u,v,f,h);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,_=g.labelLine,y=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),y&&(H(m.states,c),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(_){var E=g.linePoints;y||!E?(H(_.states,c),_.ignore=!0):(kI(E,g.minTurnAngle),II(E,g.surfaceNormal,g.maxSurfaceAngle),_.setShape({points:E}),m.__hostTarget.textGuideLineConfig={anchor:new Ne(E[0][0],E[0][1])})}}}var _3=function(t){be(e,t);function e(r,n,a){var i=t.call(this)||this;i.z2=2;var o=new jt;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return e.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),h=me(vu(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(i){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(Da(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=f.r0,Da(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Da(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Fn(o,{shape:{endAngle:f.endAngle}},s,n))}else ly(o),Fn(o,{shape:h},s,n);o.useStyle(r.getItemVisual(n,"style")),b0(o,l);var c=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(c)*d,g=Math.sin(c)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=me({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},vu(u.getModel("itemStyle"),f)),me(o.ensureState("select"),{x:p,y:g,shape:vu(l.getModel(["select","itemStyle"]),f)}),me(o.ensureState("blur"),{shape:vu(l.getModel(["blur","itemStyle"]),f)});var _=o.getTextGuideLine(),y=o.getTextContent();_&&me(_.ensureState("select"),{x:p,y:g}),me(y.ensureState("select"),{x:p,y:g}),af(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;Zf(i,qf(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=r.get(["label","position"]);if(v!=="outside"&&v!=="outer")i.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new wl,this.setTextGuideLine(c)),RI(this,PI(o),{stroke:u,opacity:As(s.get(["lineStyle","opacity"]),f,1)})}},e}(Ro),y3=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=c2(r),c=new Ro({shape:me(h2(r,a),v)});c.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(d){var p=new _3(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);sy(p,r,d)}).execute(),m3(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e}(gn);function x3(t,e,r){e=ke(e)&&{coordDimensions:e}||me({encodeDefine:t.getEncode()},e);var n=t.getSource(),a=Vx(n,e).dimensions,i=new Wx(a,t);return i.initData(n,r),i}var w3=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),T3=Dt(),S3=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new w3(dt(this.getData,this),dt(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return x3(this,{coordDimensions:["value"],encodeDefaulter:It(DD,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),a=T3(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=TE(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){x0(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(na);function C3(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(pt(o)&&!isNaN(o)&&o<0)})}}}function E3(t){t.registerChartView(y3),t.registerSeriesModel(S3),hM("pie",t.registerAction),t.registerLayout(It(v3,"pie")),t.registerProcessor(d3("pie")),t.registerProcessor(C3("pie"))}var A3=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(nt),q0=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",dn).models[0]},e.type="cartesian2dAxis",e}(nt);Nn(q0,_I);var d2={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},b3=je({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},d2),ud=je({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},d2),D3=je({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ud),M3=Qe({logBase:10},ud);const k3={category:b3,value:ud,time:D3,log:M3};var I3={value:1,category:1,time:1,log:1};function I1(t,e,r,n){H(I3,function(a,i){var o=je(je({},k3[i],!0),n,!0),s=function(l){be(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=el(this),c=v?ah(f):{},d=h.getTheme();je(f,d.get(i+"Axis")),je(f,this.getDefaultOption()),f.type=L1(f),v&&Co(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=X0.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",L1)}function L1(t){return t.type||(t.data?"category":"value")}var L3=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return Re(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Yt(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}(),j0=["x","y"];function R1(t){return t.type==="interval"||t.type==="time"}var R3=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=j0,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!R1(r)||!R1(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-a[0]*f,c=o[1]-i[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=_v([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new Je(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return en(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},e.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return en(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-i+r,l=Math.max(a[0],a[1])-o+r;return new Je(i,o,s,l)},e}(L3),P3=function(t){be(e,t);function e(r,n,a,i,o){var s=t.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(DI);function J0(t,e,r){r=r||{};var n=t.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,d=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[v[s]]-d[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ks(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function P1(t){return t.get("coordinateSystem")==="cartesian2d"}function F1(t){var e={xAxisModel:null,yAxisModel:null};return H(e,function(r,n){var a=n.replace(/Model$/,""),i=t.getReferringComponents(a,dn).models[0];e[n]=i}),e}var Nc=Math.log;function F3(t,e,r){var n=Oo.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=Zx(t,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(t.type==="log"){var v=Nc(t.base);u=[Nc(u[0])/v,Nc(u[1])/v]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=n.getExtent.call(t);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=n.getInterval.call(t),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=Lc(d),g=u[0]+d*o;else if(h)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Lc(d),p=u[1]-d*o;else{var m=t.getTicks().length-1;m>o&&(d=Lc(d));var _=d*o;g=Math.ceil(u[1]/d)*d,p=Lt(g-_),p<0&&u[0]>=0?(p=0,g=Lt(_)):g>0&&u[1]<=0&&(g=0,p=-Lt(_))}var y=(a[0].value-i[0].value)/s,w=(a[o].value-i[o].value)/s;n.setExtent.call(t,p+d*y,g+d*w),n.setInterval.call(t,d),(y||w)&&n.setNiceExtent.call(t,p+d,g-d)}var O3=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=j0,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=_t(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,p=c.scale;K0(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(_1(p,d),K0(p)&&(s=c))}f.length&&(s||(s=f.pop(),_1(s.scale,s.model)),H(f,function(g){F3(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};H(n.x,function(o){O1(n,"y",o,i)}),H(n.y,function(o){O1(n,"x",o,i)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var a=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=So(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(H(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=pI(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),H(this._coordsList,function(u){u.calcAffineTransform()});function l(){H(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),N3(u,f?o.x:o.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}Pe(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===r)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",dn).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",dn).models[0],i=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ut(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,H(s.x,function(f,h){H(s.y,function(v,c){var d="x"+h+"y"+c,p=new R3(d);p.master=a,p.model=e,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(v)})});function u(f){return function(h,v){if(Bc(h,e)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var d=new P3(f,vI(h),[0,0],h.get("type"),c),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=i,d.index=v,i._axesList.push(d),s[f][v]=d,l[f]++}}}},t.prototype._updateScale=function(e,r){H(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(P1(a)){var i=F1(a),o=i.xAxisModel,s=i.yAxisModel;if(!Bc(o,r)||!Bc(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(a,i){H(mI(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return H(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);ut(r,i)<0&&r.push(i),ut(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(a,i){var o=new t(a,e,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){if(P1(a)){var i=F1(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},t.dimensions=j0,t}();function Bc(t,e){return t.getCoordSysModel()===e}function O1(t,e,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)N1(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&N1(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(h){return h.dim+"_"+h.index}}function N1(t){return t&&t.type!=="category"&&t.type!=="time"&&dI(t)}function N3(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return n-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}var Sa=Math.PI,ka=function(){function t(e,r){this.group=new sr,this.opt=r,this.axisModel=e,Qe(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new sr({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!B1[e]},t.prototype.add=function(e){B1[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var a=A_(r-e),i,o;return Ju(a)?(o=n>0?"top":"bottom",i="center"):Ju(a-Sa)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Sa?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),B1={axisLine:function(t,e,r,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(en(s,s,o),en(l,l,o));var f=me({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ra({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Js(h.shape,h.style.lineWidth),h.anid="line",r.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var c=e.get(["axisLine","symbolSize"]);Ie(v)&&(v=[v,v]),(Ie(c)||pt(c))&&(c=[c,c]);var d=cx(e.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];H([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,_){if(v[_]!=="none"&&v[_]!=null){var y=Ao(v[_],-p/2,-g/2,p,g,f.stroke,!0),w=m.r+m.offset,E=u?l:s;y.attr({rotation:m.rotate,x:E[0]+w*Math.cos(t.rotation),y:E[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),r.add(y)}})}}},axisTickLabel:function(t,e,r,n){var a=H3(r,n,e,t),i=W3(r,n,e,t);if(U3(e,i,a),G3(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=FI(Re(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));BI(o)}},axisName:function(t,e,r,n){var a=Ks(t.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,H1(i)?t.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*Sa/180);var d;H1(i)?v=ka.innerTextLayout(t.rotation,c??t.rotation,o):(v=B3(t.rotation,i,c||0,u),d=t.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,_=Ks(t.nameTruncateMaxWidth,g.maxWidth,d),y=new jt({x:h[0],y:h[1],rotation:v.rotation,silent:ka.isLabelSilent(e),style:Pa(s,{text:a,font:p,overflow:"truncate",width:_,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Xf({el:y,componentModel:e,itemName:a}),y.__fullText=a,y.anid="name",e.get("triggerEvent")){var w=ka.makeAxisEventDataBase(e);w.targetType="axisName",w.name=a,at(y).eventData=w}n.add(y),y.updateTransform(),r.add(y),y.decomposeTransform()}}};function B3(t,e,r,n){var a=A_(r-t),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Ju(a-Sa/2)?(o=l?"bottom":"top",i="center"):Ju(a-Sa*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Sa*1.5&&a>Sa/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function U3(t,e,r){if(!qx(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],f=r[1],h=r[r.length-1],v=r[r.length-2];n===!1?(Vr(i),Vr(u)):U1(i,o)&&(n?(Vr(o),Vr(f)):(Vr(i),Vr(u))),a===!1?(Vr(s),Vr(h)):U1(l,s)&&(a?(Vr(l),Vr(v)):(Vr(s),Vr(h)))}}function Vr(t){t&&(t.ignore=!0)}function U1(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var a=gv([]);return mv(a,a,-t.rotation),r.applyTransform(vo([],a,t.getLocalTransform())),n.applyTransform(vo([],a,e.getLocalTransform())),r.intersect(n)}}function H1(t){return t==="middle"||t==="center"}function p2(t,e,r,n,a){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(en(o,o,e),en(s,s,e));var f=new Ra({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Js(f.shape,f.style.lineWidth),f.anid=a+"_"+t[l].tickValue,i.push(f)}return i}function H3(t,e,r,n){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),f=p2(u,e.transform,l,Qe(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}}function G3(t,e,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=Qe(s.getLineStyle(),Qe(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=p2(o[f],e.transform,l,u,"minorticks_"+f),v=0;v<h.length;v++)t.add(h[v])}}function W3(t,e,r,n){var a=r.axis,i=Ks(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Ks(n.labelRotate,o.get("rotate"))||0)*Sa/180,f=ka.innerTextLayout(n.rotation,u,n.labelDirection),h=r.getCategories&&r.getCategories(!0),v=[],c=ka.isLabelSilent(r),d=r.get("triggerEvent");return H(l,function(p,g){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,_=p.formattedLabel,y=p.rawLabel,w=o;if(h&&h[m]){var E=h[m];Pe(E)&&E.textStyle&&(w=new Ct(E.textStyle,o,r.ecModel))}var T=w.getTextColor()||r.get(["axisLine","lineStyle","color"]),x=a.dataToCoord(m),C=w.getShallow("align",!0)||f.textAlign,S=We(w.getShallow("alignMinLabel",!0),C),A=We(w.getShallow("alignMaxLabel",!0),C),M=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||f.textVerticalAlign,L=We(w.getShallow("verticalAlignMinLabel",!0),M),N=We(w.getShallow("verticalAlignMaxLabel",!0),M),V=new jt({x,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(p.level||0),style:Pa(w,{text:_,align:g===0?S:g===l.length-1?A:C,verticalAlign:g===0?L:g===l.length-1?N:M,fill:Ue(T)?T(a.type==="category"?y:a.type==="value"?m+"":m,g):T})});if(V.anid="label_"+m,Xf({el:V,componentModel:r,itemName:_,formatterParamsExtra:{isTruncated:function(){return V.isTruncated},value:y,tickIndex:g}}),d){var W=ka.makeAxisEventDataBase(r);W.targetType="axisLabel",W.value=y,W.tickIndex=g,a.type==="category"&&(W.dataIndex=m),at(V).eventData=W}e.add(V),V.updateTransform(),v.push(V),t.add(V),V.decomposeTransform()}),v}}function V3(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return z3(r,t,e),r.seriesInvolved&&Y3(r,t),r}function z3(t,e,r){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];H(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=sl(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(H(s.getAxes(),It(p,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&H(d.baseAxes,It(p,c?"cross":!0,v)),c&&H(d.otherAxes,It(p,"cross",!1))}function p(g,m,_){var y=_.model.getModel("axisPointer",a),w=y.get("show");if(!(!w||w==="auto"&&!g&&!Q0(y))){m==null&&(m=y.get("triggerTooltip")),y=g?$3(_,h,a,e,g,m):y;var E=y.get("snap"),T=y.get("triggerEmphasis"),x=sl(_.model),C=m||E||_.type==="category",S=t.axesInfo[x]={key:x,axis:_,coordSys:s,axisPointerModel:y,triggerTooltip:m,triggerEmphasis:T,involveSeries:C,snap:E,useHandle:Q0(y),seriesModels:[],linkGroup:null};u[x]=S,t.seriesInvolved=t.seriesInvolved||C;var A=X3(i,_);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[x]=S,M.mapper=i[A].mapper,S.linkGroup=M}}}})}function $3(t,e,r,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};H(s,function(v){l[v]=Ye(o.get(v))}),l.snap=t.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var h=l.lineStyle=o.get("crossStyle");h&&Qe(u,h.textStyle)}}return t.model.getModel("axisPointer",new Ct(l,r,n))}function Y3(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||H(t.coordSysAxesInfo[sl(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function X3(t,e){for(var r=e.model,n=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(Uc(i[n+"AxisId"],r.id)||Uc(i[n+"AxisIndex"],r.componentIndex)||Uc(i[n+"AxisName"],r.name))return a}}function Uc(t,e){return t==="all"||ke(t)&&ut(t,e)>=0||t===e}function K3(t){var e=fd(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Q0(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function fd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[sl(t)]}function Z3(t){var e=fd(t);return e&&e.axisPointerModel}function Q0(t){return!!t.get(["handle","show"])}function sl(t){return t.type+"||"+t.id}var G1={},g2=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a,i){this.axisPointerClass&&K3(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=Z3(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){G1[r]=n},e.getAxisPointerClass=function(r){return r&&G1[r]},e.type="axis",e}(_n),ev=Dt();function q3(t,e,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var f=s.length,h=ev(t).splitAreaColors,v=Ve(),c=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){c=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=ke(s)?s:[s];for(var d=1;d<u.length;d++){var _=a.toGlobalCoord(u[d].coord),y=void 0,w=void 0,E=void 0,T=void 0;a.isHorizontal()?(y=g,w=l.y,E=_-y,T=l.height,g=y+E):(y=l.x,w=g,E=l.width,T=_-w,g=w+T);var x=u[d-1].tickValue;x!=null&&v.set(x,c),e.add(new Gt({anid:x!=null?"area_"+x:null,shape:{x:y,y:w,width:E,height:T},style:Qe({fill:s[c]},m),autoBatch:!0,silent:!0})),c=(c+1)%f}ev(t).splitAreaColors=v}}}function j3(t){ev(t).splitAreaColors=null}var J3=["axisLine","axisTickLabel","axisName"],Q3=["splitArea","splitLine","minorSplitLine"],m2=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new sr,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=J0(s,r),u=new ka(r,me({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),c=0;c<v.length;c++)if(K0(v[c].getOtherAxis(r.axis).scale))return!0;return!1}},l));H(J3,u.add,u),this._axisGroup.add(u.getGroup()),H(Q3,function(h){r.get([h,"show"])&&eL[h](this,this._axisGroup,r,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||cy(o,this._axisGroup,r),t.prototype.render.call(this,r,n,a,i)}},e.prototype.remove=function(){j3(this)},e.type="cartesianAxis",e}(g2),eL={splitLine:function(t,e,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color"),l=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;s=ke(s)?s:[s];for(var f=n.coordinateSystem.getRect(),h=a.isHorizontal(),v=0,c=a.getTicksCoords({tickModel:i}),d=[],p=[],g=o.getLineStyle(),m=0;m<c.length;m++){var _=a.toGlobalCoord(c[m].coord);if(!(m===0&&!l||m===c.length-1&&!u)){var y=c[m].tickValue;h?(d[0]=_,d[1]=f.y,p[0]=_,p[1]=f.y+f.height):(d[0]=f.x,d[1]=_,p[0]=f.x+f.width,p[1]=_);var w=v++%s.length,E=new Ra({anid:y!=null?"line_"+y:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:Qe({stroke:s[w]},g),silent:!0});Js(E.shape,g.lineWidth),e.add(E)}}}},minorSplitLine:function(t,e,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var f=[],h=[],v=o.getLineStyle(),c=0;c<u.length;c++)for(var d=0;d<u[c].length;d++){var p=a.toGlobalCoord(u[c][d].coord);l?(f[0]=p,f[1]=s.y,h[0]=p,h[1]=s.y+s.height):(f[0]=s.x,f[1]=p,h[0]=s.x+s.width,h[1]=p);var g=new Ra({anid:"minor_line_"+u[c][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:v,silent:!0});Js(g.shape,v.lineWidth),e.add(g)}},splitArea:function(t,e,r,n){q3(t,e,r,n)}},_2=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(m2),tL=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=_2.type,r}return e.type="yAxis",e}(m2),rL=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Gt({shape:r.coordinateSystem.getRect(),style:Qe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(_n),W1={offset:0};function nL(t){t.registerComponentView(rL),t.registerComponentModel(A3),t.registerCoordinateSystem("cartesian2d",O3),I1(t,"x",q0,W1),I1(t,"y",q0,W1),t.registerComponentView(_2),t.registerComponentView(tL),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var fi=Dt(),V1=Ye,Hc=dt,aL=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new sr,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var v=It(z1,r,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}Y1(s,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),a=e.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=fd(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,a,i){},t.prototype.createPointerEl=function(e,r,n,a){var i=r.pointer;if(i){var o=fi(e).pointerEl=new qb[i.type](V1(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var i=fi(e).labelEl=new jt(V1(r.label));e.add(i),$1(i,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=fi(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var i=fi(e).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),$1(i,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Bv(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){s_(u.event)},onmousedown:Hc(this._onHandleDragMove,this,0,0),drift:Hc(this._onHandleDragMove,this),ondragend:Hc(this._onHandleDragEnd,this)}),n.add(a)),Y1(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");ke(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,ax(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){z1(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Gc(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Gc(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Gc(a)),fi(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),B0(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function z1(t,e,r,n){y2(fi(r).lastProp,n)||(fi(r).lastProp=n,e?Fn(r,n,t):(r.stopAnimation(),r.attr(n)))}function y2(t,e){if(Pe(t)&&Pe(e)){var r=!0;return H(e,function(n,a){r=r&&y2(t[a],n)}),!!r}else return t===e}function $1(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Gc(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Y1(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}function iL(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function oL(t,e,r,n,a){var i=r.get("value"),o=x2(i,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=nh(s.get("padding")||0),u=s.getFont(),f=wv(o,u),h=a.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=a.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=a.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),sL(h,v,c,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Pa(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function sL(t,e,r,n){var a=n.getWidth(),i=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function x2(t,e,r,n,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:od(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};H(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),Ie(o)?i=o.replace("{value}",i):Ue(o)&&(i=o(s))}return i}function w2(t,e,r){var n=co();return mv(n,n,r.rotation),l0(n,n,r.position),Nv([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function lL(t,e,r,n,a,i){var o=ka.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),oL(e,n,a,i,{position:w2(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function uL(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function fL(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var hL=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=X1(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=iL(i),c=cL[u](s,h,f);c.style=v,r.graphicKey=c.type,r.pointer=c}var d=J0(l.model,a);lL(n,r,d,a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=J0(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=w2(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=X1(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:c,tooltipOption:d[f]}},e}(aL);function X1(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var cL={line:function(t,e,r){var n=uL([e,r[0]],[e,r[1]],K1(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:fL([e-n/2,r[0]],[n,a],K1(t))}}};function K1(t){return t.dim==="x"?0:1}var vL=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(nt),Zn=Dt(),dL=H;function T2(t,e,r){if(!Fe.node){var n=e.getZr();Zn(n).records||(Zn(n).records={}),pL(n,e);var a=Zn(n).records[t]||(Zn(n).records[t]={});a.handler=r}}function pL(t,e){if(Zn(t).initialized)return;Zn(t).initialized=!0,r("click",It(Z1,"click")),r("mousemove",It(Z1,"mousemove")),r("globalout",mL);function r(n,a){t.on(n,function(i){var o=_L(e);dL(Zn(t).records,function(s){s&&a(s,i,o.dispatchAction)}),gL(o.pendings,e)})}}function gL(t,e){var r=t.showTip.length,n=t.hideTip.length,a;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function mL(t,e,r){t.handler("leave",null,r)}function Z1(t,e,r,n){e.handler(t,r,n)}function _L(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function tv(t,e){if(!Fe.node){var r=e.getZr(),n=(Zn(r).records||{})[t];n&&(Zn(r).records[t]=null)}}var yL=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";T2("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){tv("axisPointer",n)},e.prototype.dispose=function(r,n){tv("axisPointer",n)},e.type="axisPointer",e}(_n);function S2(t,e){var r=[],n=t.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=wi(i,t);if(o==null||o<0||ke(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=i.mapDimension(v),p=[];p[c]=i.get(d,o),p[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(i.getValues(Re(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var q1=Dt();function xL(t,e,r){var n=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||dt(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Nu(a)&&(a=S2({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Nu(a),u=i.axesInfo,f=s.axesInfo,h=n==="leave"||Nu(a),v={},c={},d={list:[],map:{}},p={showPointer:It(TL,c),showTooltip:It(SL,d)};H(s.coordSysMap,function(m,_){var y=l||m.containPoint(a);H(s.coordSysAxesInfo[_],function(w,E){var T=w.axis,x=bL(u,w);if(!h&&y&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=T.pointToData(a)),C!=null&&j1(w,C,p,!1,v)}})});var g={};return H(f,function(m,_){var y=m.linkGroup;y&&!c[_]&&H(y.axesInfo,function(w,E){var T=c[E];if(w!==m&&T){var x=T.value;y.mapper&&(x=m.axis.scale.parse(y.mapper(x,J1(w),J1(m)))),g[m.key]=x}})}),H(g,function(m,_){j1(f[_],m,p,!0,v)}),CL(c,f,v),EL(d,a,t,o),AL(f,o,r),v}}function j1(t,e,r,n,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=wL(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&me(a,s[0]),!n&&t.snap&&i.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function wL(t,e){var r=e.axis,n=r.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return H(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,t,r);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],t,r.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=t-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=h,i.length=0),H(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function TL(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function SL(t,e,r,n){var a=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=sl(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function CL(t,e,r){var n=r.axesInfo=[];H(e,function(a,i){var o=a.axisPointerModel.option,s=t[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function EL(t,e,r,n){if(Nu(e)||!t.list.length){n({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function AL(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",i=q1(n)[a]||{},o=q1(n)[a]={};H(t,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&H(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];H(i,function(u,f){!o[f]&&l.push(u)}),H(o,function(u,f){!i[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function bL(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function J1(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Nu(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function C2(t){g2.registerAxisPointerClass("CartesianAxisPointer",hL),t.registerComponentModel(vL),t.registerComponentView(yL),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!ke(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=V3(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},xL)}function DL(t){Fa(nL),Fa(C2)}function ML(t,e){var r=nh(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Gt({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var kL=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(nt);function E2(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function A2(t){if(Fe.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var b2=A2(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),IL=A2(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function D2(t,e){if(!t)return e;e=Dy(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function LL(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var RL=D2(IL,"transition"),hd=D2(b2,"transform"),PL="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Fe.transform3dSupported?"will-change:transform;":"");function FL(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function OL(t,e,r){if(!Ie(r)||r==="inside")return"";var n=t.get("backgroundColor"),a=t.get("borderWidth");e=Si(e);var i=FL(r),o=Math.max(Math.round(a)*1.5,6),s="",l=hd+":",u;ut(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+a,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var d=e+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function NL(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,a="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,a+=Fe.transformSupported?","+hd+n:",left"+n+",top"+n),RL+":"+a}function Q1(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Fe.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Fe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+hd+":"+o+";":[["top",0],["left",0],[b2,o]]}function BL(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var a=We(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+a+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),H(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function UL(t,e,r){var n=[],a=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),f=t.getModel("textStyle"),h=ex(t,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),e&&a&&n.push(NL(a,r)),i&&n.push("background-color:"+i),H(["width","color","radius"],function(c){var d="border-"+c,p=Dy(d),g=t.get(p);g!=null&&n.push(d+":"+g+(c==="color"?"":"px"))}),n.push(BL(f)),h!=null&&n.push("padding:"+nh(h).join("px ")+"px"),n.join(";")+";"}function em(t,e,r,n,a){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&dC(t,o,r,n,a)}else{t[0]=n,t[1]=a;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var HL=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Fe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=r.appendTo,o=i&&(Ie(i)?document.querySelector(i):Xs(i)?i:Ue(i)&&i(e.getDom()));em(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Yr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=LL(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=PL+UL(e,!this._firstShow,this._longHide)+Q1(i[0],i[1],!0)+("border-color:"+Si(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Ie(i)&&n.get("trigger")==="item"&&!E2(n)&&(s=OL(n,a,i)),Ie(e))o.innerHTML=e+s;else if(e){o.innerHTML="",ke(e)||(e=[e]);for(var l=0;l<e.length;l++)Xs(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(em(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=Q1(n[0],n[1]);H(i,function(o){a[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Fe.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(dt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t}(),GL=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),rm(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,a,i){var o=this;Pe(e)&&Sr(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new jt({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ex(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),H(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),H(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=tm(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var a=this._styleCoord;rm(a,this._zr,e,r),e=a[0],r=a[1];var i=n.style,o=ya(i.borderWidth||0),s=tm(i);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(dt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function ya(t){return Math.max(0,t)}function tm(t){var e=ya(t.shadowBlur||0),r=ya(t.shadowOffsetX||0),n=ya(t.shadowOffsetY||0);return{left:ya(e-r),right:ya(e+r),top:ya(e-n),bottom:ya(e+n)}}function rm(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var WL=new Gt({shape:{x:-1,y:-1,width:2,height:2}}),VL=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(Fe.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=HE(a.get("renderMode"));this._tooltipContent=i==="richText"?new GL(n):new HL(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(r,n,a){if(!(Fe.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?ax(this,"_updatePosition",50,"fixRate"):B0(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");T2("itemTooltip",this._api,dt(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||Fe.node||!a.getDom())){var o=nm(i,a);this._ticket="";var s=i.dataByCoordSys,l=XL(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=WL;f.x=i.x,f.y=i.y,f.update(),at(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var h=S2(i,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(nm(i,a))},e.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=ds([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=at(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Cs(a,function(f){if(at(f).dataIndex!=null)return l=f,!0;if(at(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=dt(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ds([n.tooltipOption],i),l=this._renderMode,u=[],f=rl("section",{blocks:[],noHeader:!0}),h=[],v=new xc;H(r,function(_){H(_.dataByAxis,function(y){var w=a.getComponent(y.axisDim+"Axis",y.axisIndex),E=y.value;if(!(!w||E==null)){var T=x2(E,w.axis,a,y.seriesDataIndices,y.valueLabelOpt),x=rl("section",{header:T,noHeader:!Ln(T),sortBlocks:!0,blocks:[]});f.blocks.push(x),H(y.seriesDataIndices,function(C){var S=a.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,M=S.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=y.axisDim,M.axisIndex=y.axisIndex,M.axisType=y.axisType,M.axisId=y.axisId,M.axisValue=od(w.axis,{value:E}),M.axisValueLabel=T,M.marker=v.makeTooltipMarker("item",Si(M.color),l);var L=bg(S.formatTooltip(A,!0,null)),N=L.frag;if(N){var V=ds([S],i).get("valueFormatter");x.blocks.push(V?me({valueFormatter:V},N):N)}L.text&&h.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),p=Lg(f,v,l,d,a.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?`
36
+
37
+ `:"<br/>",m=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=at(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=r.positionDefault,p=ds([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,h),_=new xc;m.marker=_.makeTooltipMarker("item",Si(m.color),c);var y=bg(u.formatTooltip(f,!1,h)),w=p.get("order"),E=p.get("valueFormatter"),T=y.frag,x=T?Lg(E?me({valueFormatter:E},T):T,_,c,w,i.get("useUTC"),p.get("textStyle")):y.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,C,r.offsetX,r.offsetY,r.position,r.target,_)}),a({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var i=this._renderMode==="html",o=at(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ie(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=Ye(l),l.content=wr(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=r.positionDefault,d=ds(h,this._tooltipModel,c?{position:c}:null),p=d.get("content"),g=Math.random()+"",m=new xc;this._showOrMove(d,function(){var _=Ye(d.get("formatterParams")||{});this._showTooltipContent(d,p,_,g,r.offsetX,r.offsetY,r.position,n,m)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var c=n,d=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),p=d.color;if(v)if(Ie(v)){var g=r.ecModel.get("useUTC"),m=ke(a)?a[0]:a,_=m&&m.axisType&&m.axisType.indexOf("time")>=0;c=v,_&&(c=Jf(m.axisValue,c,g)),c=My(c,a,!0)}else if(Ue(v)){var y=dt(function(w,E){w===this._ticket&&(h.setContent(E,f,r,p,l),this._updatePosition(r,l,o,s,h,a,u))},this);this._ticket=i,c=v(a,i,y)}else c=v;h.setContent(c,f,r,p,l),h.show(r,p),this._updatePosition(r,l,o,s,h,a,u)}},e.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||ke(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!ke(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),v=r.get("align"),c=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Ue(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),ke(n))a=mt(n[0],u),i=mt(n[1],f);else if(Pe(n)){var p=n;p.width=h[0],p.height=h[1];var g=So(p,{width:u,height:f});a=g.x,i=g.y,v=null,c=null}else if(Ie(n)&&l){var m=YL(n,d,h,r.get("borderWidth"));a=m[0],i=m[1]}else{var m=zL(a,i,o,u,f,v?null:20,c?null:20);a=m[0],i=m[1]}if(v&&(a-=am(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=am(c)?h[1]/2:c==="bottom"?h[1]:0),E2(r)){var m=$L(a,i,o,u,f);a=m[0],i=m[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&H(a,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&H(u,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&H(p,function(m,_){var y=g[_];o=o&&m.seriesIndex===y.seriesIndex&&m.dataIndex===y.dataIndex}),i&&H(v.seriesDataIndices,function(m){var _=m.seriesIndex,y=n[_],w=i[_];y&&w&&w.data!==y.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){Fe.node||!n.getDom()||(B0(this,"_updatePosition"),this._tooltipContent.dispose(),tv("itemTooltip",n))},e.type="tooltip",e}(_n);function ds(t,e,r){var n=e.ecModel,a;r?(a=new Ct(r,n,n),a=new Ct(e.option,a,n)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof Ct&&(o=o.get("tooltip",!0)),Ie(o)&&(o={formatter:o}),o&&(a=new Ct(o,a,n)))}return a}function nm(t,e){return t.dispatchAction||dt(e.dispatchAction,e)}function zL(t,e,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(t+l+i+2>n?t-=l+i:t+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[t,e]}function $L(t,e,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function YL(t,e,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function am(t){return t==="center"||t==="middle"}function XL(t,e,r){var n=Ev(t).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=yl(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=at(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function KL(t){Fa(C2),t.registerComponentModel(kL),t.registerComponentView(VL),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Er),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Er)}var ZL=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(nt),qL=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=We(r.get("textBaseline"),r.get("textVerticalAlign")),f=new jt({style:Pa(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=r.get("subtext"),c=new jt({style:Pa(s,{text:v,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,c.silent=!p&&!g,d&&f.on("click",function(){ug(d,"_"+r.get("target"))}),p&&c.on("click",function(){ug(p,"_"+r.get("subtarget"))}),at(f).eventData=at(c).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),v&&i.add(c);var m=i.getBoundingRect(),_=r.getBoxLayoutParams();_.width=m.width,_.height=m.height;var y=So(_,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?y.x+=y.width:l==="center"&&(y.x+=y.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?y.y+=y.height:u==="middle"&&(y.y+=y.height/2),u=u||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var w={align:l,verticalAlign:u};f.setStyle(w),c.setStyle(w),m=i.getBoundingRect();var E=y.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var x=new Gt({shape:{x:m.x-E[3],y:m.y-E[0],width:m.width+E[1]+E[3],height:m.height+E[0]+E[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});i.add(x)}},e.type="title",e}(_n);function jL(t){t.registerComponentModel(ZL),t.registerComponentView(qL)}var JL=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},rv=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),ke(n)&&H(n,function(i,o){Ie(i)&&(i={type:i}),n[o]=je(i,JL(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Cv(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=Ve(),s=Re(i,function(l){return(Ie(l)||pt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ct(l,this,this.ecModel))},this);this._data=Yt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;H(i,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;H(r,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;H(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ut(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(nt),Ji=It,nv=H,pu=sr,M2=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new pu),this.group.add(this._selectorGroup=new pu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var f=r.getBoxLayoutParams(),h={width:a.getWidth(),height:a.getHeight()},v=r.get("padding"),c=So(f,h,v),d=this.layoutInner(r,o,c,i,l,u),p=So(Qe({width:d.width,height:d.height},f),h,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ML(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),f=Ve(),h=n.get("selectedMode"),v=[];a.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),nv(n.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===`
38
+ `)){var g=new pu;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!f.get(p))if(m){var _=m.getData(),y=_.getVisual("legendLineStyle")||{},w=_.getVisual("legendIcon"),E=_.getVisual("style"),T=this._createItem(m,p,d,c,n,r,y,E,w,h,i);T.on("click",Ji(im,p,null,i,v)).on("mouseover",Ji(av,m.name,null,i,v)).on("mouseout",Ji(iv,m.name,null,i,v)),a.ssr&&T.eachChild(function(x){var C=at(x);C.seriesIndex=m.seriesIndex,C.dataIndex=d,C.ssrType="legend"}),f.set(p,!0)}else a.eachRawSeries(function(x){if(!f.get(p)&&x.legendVisualProvider){var C=x.legendVisualProvider;if(!C.containName(p))return;var S=C.indexOfName(p),A=C.getItemVisual(S,"style"),M=C.getItemVisual(S,"legendIcon"),L=qn(A.fill);L&&L[3]===0&&(L[3]=.2,A=me(me({},A),{fill:Nf(L,"rgba")}));var N=this._createItem(x,p,d,c,n,r,{},A,M,h,i);N.on("click",Ji(im,null,p,i,v)).on("mouseover",Ji(av,null,p,i,v)).on("mouseout",Ji(iv,null,p,i,v)),a.ssr&&N.eachChild(function(V){var W=at(V);W.seriesIndex=x.seriesIndex,W.dataIndex=d,W.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},e.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();nv(r,function(u){var f=u.type,h=new jt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);Zf(h,{normal:v,emphasis:c},{defaultText:u.title}),A0(h)})},e.prototype._createItem=function(r,n,a,i,o,s,l,u,f,h,v){var c=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),_=i.get("symbolKeepAspect"),y=i.get("icon");f=y||f||"roundRect";var w=QL(f,i,l,u,c,g,v),E=new pu,T=i.getModel("textStyle");if(Ue(r.getLegendIcon)&&(!y||y==="inherit"))E.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:_}));else{var x=y==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;E.add(eR({itemWidth:d,itemHeight:p,icon:f,iconRotate:x,itemStyle:w.itemStyle,symbolKeepAspect:_}))}var C=s==="left"?d+5:-5,S=s,A=o.get("formatter"),M=n;Ie(A)&&A?M=A.replace("{name}",n??""):Ue(A)&&(M=A(n));var L=g?T.getTextColor():i.get("inactiveColor");E.add(new jt({style:Pa(T,{text:M,x:C,y:p/2,fill:L,align:S,verticalAlign:"middle"},{inheritColor:L})}));var N=new Gt({shape:E.getBoundingRect(),style:{fill:"transparent"}}),V=i.getModel("tooltip");return V.get("show")&&Xf({el:N,componentModel:o,itemName:n,itemTooltipOption:V.option}),E.add(N),E.eachChild(function(W){W.silent=!0}),N.silent=!h,this.getContentGroup().add(E),A0(E),E.__legendDataIndex=a,E},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Os(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Os("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",_=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[m]/2-v[m]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var y={x:0,y:0};return y[g]=f[g]+d+v[g],y[m]=Math.max(f[m],v[m]),y[_]=Math.min(0,v[_]+c[1-p]),y}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(_n);function QL(t,e,r,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),nv(g,function(_,y){g[y]==="inherit"&&(g[y]=m[y])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:V0(h,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function eR(t){var e=t.icon||"roundRect",r=Ao(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function im(t,e,r,n){iv(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),av(t,e,r,n)}function k2(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,a=e.length;n<a&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function av(t,e,r,n){k2(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function iv(t,e,r,n){k2(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function tR(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function ps(t,e,r){var n=t==="allSelect"||t==="inverseSelect",a={},i=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),om(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){H(a,function(l,u){s[l?"select":"unSelect"](u)}),om(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function om(t,e){var r=e||{};return H(t.getData(),function(n){var a=n.get("name");if(!(a===`
39
+ `||a==="")){var i=t.isSelected(a);xi(r,a)?r[a]=r[a]&&i:r[a]=i}}),r}function rR(t){t.registerAction("legendToggleSelect","legendselectchanged",It(ps,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",It(ps,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",It(ps,"inverseSelect")),t.registerAction("legendSelect","legendselected",It(ps,"select")),t.registerAction("legendUnSelect","legendunselected",It(ps,"unSelect"))}function I2(t){t.registerComponentModel(rv),t.registerComponentView(M2),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,tR),t.registerSubTypeDefaulter("legend",function(){return"plain"}),rR(t)}var nR=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,a){var i=ah(r);t.prototype.init.call(this,r,n,a),sm(this,r,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),sm(this,this.option,r)},e.type="legend.scroll",e.defaultOption=fD(rv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(rv);function sm(t,e,r){var n=t.getOrient(),a=[1,1];a[n.index]=0,Co(e,r,{type:"box",ignoreSize:!!a})}var lm=sr,Wc=["width","height"],Vc=["x","y"],aR=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new lm),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new lm)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,a,i,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),v=ke(h)?h:[h,h];d("pagePrev",0);var c=n.getModel("pageTextStyle");f.add(new jt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",_=Bv(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:dt(u._pageGo,u,m,n,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});_.name=p,f.add(_)}},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Wc[u],h=Vc[u],v=Wc[1-u],c=Vc[1-u];o&&Os("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Ye(a);o&&(m[f]=a[f]-p[f]-d);var _=this._layoutContentAndController(r,i,m,u,f,v,c,h);if(o){if(s==="end")g[u]+=_[f]+d;else{var y=p[f]+d;g[u]-=y,_[h]-=y}_[f]+=p[f]+d,g[1-u]+=_[c]+_[v]/2-p[v]/2,_[v]=Math.max(_[v],p[v]),_[c]=Math.min(_[c],p[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return _},e.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Os(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),Os("horizontal",v,r.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=c[o]>a[o],g=[-c.x,-c.y];n||(g[i]=f[u]);var m=[0,0],_=[-d.x,-d.y],y=We(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var w=r.get("pageButtonPosition",!0);w==="end"?_[i]+=a[o]-d[o]:m[i]+=d[o]+y}_[1-i]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(m),v.setPosition(_);var E={x:0,y:0};if(E[o]=p?a[o]:c[o],E[s]=Math.max(c[s],d[s]),E[l]=Math.min(0,d[l]+_[1-i]),h.__rectSize=a[o],p){var T={x:0,y:0};T[o]=Math.max(a[o]-d[o]-y,0),T[s]=E[s],h.setClipPath(new Gt({shape:T})),h.__rectSize=T[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Fn(f,{x:x.contentPosition[0],y:x.contentPosition[1]},p?r:null),this._updatePageInfoView(r,x),E},e.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;H(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=a.childOfName(f);c&&(c.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",Ie(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=Wc[o],l=Vc[o],u=this._findTargetItemIndex(n),f=a.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[a.x,a.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=w(h);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,_=p,y=null;g<=v;++g)y=w(f[g]),(!y&&_.e>m.s+i||y&&!E(y,m.s))&&(_.i>m.i?m=_:m=y,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),_=y;for(var g=u-1,m=p,_=p,y=null;g>=-1;--g)y=w(f[g]),(!y||!E(_,y.s))&&m.i<_.i&&(_=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=y;return d;function w(T){if(T){var x=T.getBoundingRect(),C=x[l]+T[l];return{s:C,e:C+x[s],i:T.__legendDataIndex}}}function E(T,x){return T.e>=x&&T.s<=x+i}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},e.type="legend.scroll",e}(M2);function iR(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function oR(t){Fa(I2),t.registerComponentModel(nR),t.registerComponentView(aR),iR(t)}function sR(t){Fa(I2),Fa(oR)}function um(t,e,r){var n=Io.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",t)),n.width=a*r,n.height=i*r,n}var zc=function(t){be(e,t);function e(r,n,a){var i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||ju,typeof r=="string"?o=um(r,n,a):Pe(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(i_(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=um("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Je(0,0,0,0);function f(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var y=new Je(0,0,0,0);y.copy(_),o.push(y)}else{for(var w=!1,E=1/0,T=0,x=0;x<o.length;++x){var C=o[x];if(C.intersect(_)){var S=new Je(0,0,0,0);S.copy(C),S.union(_),o[x]=S,w=!0;break}else if(l){u.copy(_),u.union(C);var A=_.width*_.height,M=C.width*C.height,L=u.width*u.height,N=L-A-M;N<E&&(E=N,T=x)}}if(l&&(o[T].union(_),w=!0),!w){var y=new Je(0,0,0,0);y.copy(_),o.push(y)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=r[h];if(v){var c=v.shouldBePainted(a,i,!0,!0),d=v.__isRendered&&(v.__dirty&Nr||!c)?v.getPrevPaintRect():null;d&&f(d);var p=c&&(v.__dirty&Nr||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=n[h],c=v&&v.shouldBePainted(a,i,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var m=h+1;m<o.length;)o[h].intersect(o[m])?(g=!0,o[h].union(o[m]),o.splice(m,1)):m++;h++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/h,l/h));var c=this.domBack;function d(p,g,m,_){if(o.clearRect(p,g,m,_),n&&n!=="transparent"){var y=void 0;if(Ff(n)){var w=n.global||n.__width===m&&n.__height===_;y=w&&n.__canvasGradient||G0(o,n,{x:0,y:0,width:m,height:_}),n.__canvasGradient=y,n.__width=m,n.__height=_}else eC(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,y=W0(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=y||n,o.fillRect(p,g,m,_),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,p,g,m,_),o.restore())}!a||u?d(0,0,s,l):a.length&&H(a,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},e}(Bn),fm=1e5,ui=314159,gu=.01,lR=.001;function uR(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function fR(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var hR=function(){function t(e,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=me({},n||{}),this.dpr=n.devicePixelRatio||ju,this._singleCanvas=i,this.root=e;var o=e.style;o&&(i_(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=e,h=f.width,v=f.height;n.width!=null&&(h=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=v*this.dpr,this._width=h,this._height=v;var c=new zc(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[ui]=c,c.zlevel=ui,s.push(ui),this._domRoot=e}else{this._width=iu(e,0,n),this._height=iu(e,1,n);var u=this._domRoot=fR(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(fm)),i||(i=n.ctx,i.save()),di(i,s,a,o===r-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(fm)},t.prototype.paintOne=function(e,r){gx(e,r)},t.prototype._paintList=function(e,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;$u(function(){l._paintList(e,r,n,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(ui).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var f=!0,h=!1,v=function(p){var g=i[p],m=g.ctx,_=o&&g.createRepaintRects(e,r,c._width,c._height),y=n?g.__startIndex:g.__drawIndex,w=!n&&g.incremental&&Date.now,E=w&&Date.now(),T=g.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,T,_);else if(y===g.__startIndex){var x=e[y];(!x.incremental||!x.notClear||n)&&g.clear(!1,T,_)}y===-1&&(console.error("For some unknown reason. drawIndex is -1"),y=g.__startIndex);var C,S=function(N){var V={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(C=y;C<g.__endIndex;C++){var W=e[C];if(W.__inHover&&(h=!0),a._doPaintEl(W,g,o,N,V,C===g.__endIndex-1),w){var te=Date.now()-E;if(te>15)break}}V.prevElClipPaths&&m.restore()};if(_)if(_.length===0)C=g.__endIndex;else for(var A=c.dpr,M=0;M<_.length;++M){var L=_[M];m.save(),m.beginPath(),m.rect(L.x*A,L.y*A,L.width*A,L.height*A),m.clip(),S(L),m.restore()}else m.save(),S(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},c=this,d=0;d<i.length;d++)v(d);return Fe.wxa&&H(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},t.prototype._doPaintEl=function(e,r,n,a,i,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(di(s,e,i,o),e.setPrevPaintRect(l))}else di(s,e,i,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=ui);var n=this._layers[e];return n||(n=new zc("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?je(n,this._layerConfig[e],!0):this._layerConfig[e-gu]&&je(n,this._layerConfig[e-gu],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&uR(r)){if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(r,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(r,o,i)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(r,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function r(h){i&&(i.__endIndex!==h&&(i.__dirty=!0),i.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+lR,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?gu:0),this._needsManuallyCompositing),f.__builtin__||vv("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),i=f),a.__dirty&Nr&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,H(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?je(n[e],r,!0):n[e]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+gu){var o=this._layers[i];je(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,a=r[e];a&&(a.dom.parentNode.removeChild(a.dom),delete r[e],n.splice(ut(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),r!=null&&(a.height=r),e=iu(i,0,a),r=iu(i,1,a),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(ui).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[ui].dom;var r=new zc("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,a,i):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];di(n,f,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function cR(t){t.registerPainter("canvas",hR)}Fa([c3,E3,jL,KL,sR,DL,cR]);function vR(){const t=Me(null),e=Me(null),r=Me(null),n=Me(null),a=Me(null),i=Me(null);let o=null,s=null,l=null,u=null,f=null,h=null;const v=x=>(x&&x.dispose(),null),c=(x,C)=>({tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#e5e7eb",borderWidth:1,textStyle:{color:"#374151",fontSize:12},formatter:S=>{let A=`<div style="font-weight:600;margin-bottom:4px">${S[0].axisValue}</div>`;for(const M of S)A+=`<div style="display:flex;align-items:center;gap:6px;margin:2px 0">
40
+ <span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${M.color}"></span>
41
+ <span>${M.seriesName}</span>
42
+ <span style="font-weight:600;margin-left:auto">${et(M.value)}</span>
43
+ </div>`;return A}},legend:{bottom:0,itemWidth:12,itemHeight:8,textStyle:{fontSize:12,color:"#6b7280"}},grid:{top:10,left:10,right:16,bottom:36,containLabel:!0},xAxis:{type:"category",data:x,axisLine:{lineStyle:{color:"#e5e7eb"}},axisLabel:{fontSize:11,color:"#6b7280"},axisTick:{show:!1}},yAxis:{type:"value",splitLine:{lineStyle:{color:"#f3f4f6"}},axisLabel:{fontSize:11,color:"#9ca3af",formatter:S=>et(S)}},series:C.map(S=>({name:S.name,type:"line",data:S.data,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{width:S.lineWidth||1.5,color:S.color},itemStyle:{color:S.color},emphasis:{itemStyle:{borderWidth:2}}}))}),d=(x,C)=>[{name:"总消耗",color:an.total,data:x.map(S=>C(S,"totalCredits")),lineWidth:2.5},{name:"Chatbot",color:an.chatbot,data:x.map(S=>C(S,"chatbotCredits"))},{name:"Codex",color:an.codex,data:x.map(S=>C(S,"codexCredits"))},{name:"Claude Code",color:an.claudecode,data:x.map(S=>C(S,"claudecodeCredits"))},{name:"Gemini",color:an.gemini,data:x.map(S=>C(S,"geminiCredits"))},{name:"OpenClaw",color:an.openclaw,data:x.map(S=>C(S,"openclawCredits"))}],p=(x,C)=>Math.abs(x[C]||0),g=x=>{if(!t.value)return;o=v(o),o=ls(t.value);const C=[{value:Math.abs(x.chatbotCredits||0),name:"Chatbot",itemStyle:{color:an.chatbot}},{value:Math.abs(x.codexCredits||0),name:"Codex",itemStyle:{color:an.codex}},{value:Math.abs(x.claudecodeCredits||0),name:"Claude Code",itemStyle:{color:an.claudecode}},{value:Math.abs(x.geminiCredits||0),name:"Gemini",itemStyle:{color:an.gemini}},{value:Math.abs(x.openclawCredits||0),name:"OpenClaw",itemStyle:{color:an.openclaw}}].filter(S=>S.value>0);o.setOption({tooltip:{trigger:"item",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#e5e7eb",borderWidth:1,textStyle:{color:"#374151",fontSize:12},formatter:S=>`${S.name}: ${et(S.value)} (${S.percent}%)`},legend:{orient:"vertical",right:0,top:"center",itemWidth:10,itemHeight:10,textStyle:{fontSize:11,color:"#6b7280"},formatter:S=>{const A=C.find(N=>N.name===S),M=C.reduce((N,V)=>N+V.value,0),L=M>0?Math.round(((A==null?void 0:A.value)||0)/M*100):0;return`${S} ${L}%`}},series:[{type:"pie",radius:["45%","70%"],center:["35%","50%"],label:{show:!1},data:C}]})},m=(x,C)=>{const S=C.map(L=>`${L.hour}:00`),A=d(C,p),M=ls(x);return M.setOption(c(S,A)),M},_=x=>{if(!i.value||!(x!=null&&x.trend))return;h=v(h);const C=x.trend;if(!C||C.length===0)return;const S=C.map(M=>Jm(M.date)),A=d(C,p);h=ls(i.value),h.setOption(c(S,A))},y=x=>{if(!n.value||!(x!=null&&x.weeklyData))return;u=v(u);const C=x.weeklyData,S=C.map(M=>{const L=new Date(M.startDate),N=new Date(M.endDate);return`${L.getMonth()+1}.${L.getDate()}-${N.getMonth()+1}.${N.getDate()}`}),A=d(C,p);u=ls(n.value),u.setOption(c(S,A))},w=x=>{if(!a.value||!(x!=null&&x.monthlyData))return;f=v(f);const C=x.monthlyData,S=C.map(M=>`${M.yearMonth.split("-")[1]}月`),A=d(C,p);f=ls(a.value),f.setOption(c(S,A))};return{pieChartRef:t,realtimeHourlyChartRef:e,historyHourlyChartRef:r,weeklyChartRef:n,monthlyChartRef:a,trendLineChartRef:i,renderVisibleCharts:x=>{jm(()=>{var C,S,A,M,L,N;t.value&&((C=x.summary)!=null&&C.totalCredits)&&g(x.summary),x.statsMode==="realtime"&&e.value&&((S=x.hourlyStats)!=null&&S.hourlyData)&&(s=v(s),s=m(e.value,x.hourlyStats.hourlyData)),x.statsMode==="history"&&(x.trendPeriod==="hourly"&&r.value&&((A=x.hourlyStats)!=null&&A.hourlyData)&&(l=v(l),l=m(r.value,x.hourlyStats.hourlyData)),x.trendPeriod==="weekly"&&n.value&&((M=x.weeklyStats)!=null&&M.weeklyData)&&y(x.weeklyStats),x.trendPeriod==="monthly"&&a.value&&((L=x.monthlyStats)!=null&&L.monthlyData)&&w(x.monthlyStats),x.trendPeriod==="daily"&&i.value&&((N=x.trendData)!=null&&N.trend)&&_(x.trendData))})},disposeAll:()=>{o=v(o),s=v(s),l=v(l),u=v(u),f=v(f),h=v(h)}}}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var _f={};_f.version="0.18.5";var L2=1252,dR=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],R2=function(t){dR.indexOf(t)!=-1&&(L2=t)};function pR(){R2(1252)}var ll=function(t){R2(t)};function gR(){ll(1200),pR()}var mu=function(e){return String.fromCharCode(e)},hm=function(e){return String.fromCharCode(e)},yf,Ca="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ul(t){for(var e="",r=0,n=0,a=0,i=0,o=0,s=0,l=0,u=0;u<t.length;)r=t.charCodeAt(u++),i=r>>2,n=t.charCodeAt(u++),o=(r&3)<<4|n>>4,a=t.charCodeAt(u++),s=(n&15)<<2|a>>6,l=a&63,isNaN(n)?s=l=64:isNaN(a)&&(l=64),e+=Ca.charAt(i)+Ca.charAt(o)+Ca.charAt(s)+Ca.charAt(l);return e}function aa(t){var e="",r=0,n=0,a=0,i=0,o=0,s=0,l=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<t.length;)i=Ca.indexOf(t.charAt(u++)),o=Ca.indexOf(t.charAt(u++)),r=i<<2|o>>4,e+=String.fromCharCode(r),s=Ca.indexOf(t.charAt(u++)),n=(o&15)<<4|s>>2,s!==64&&(e+=String.fromCharCode(n)),l=Ca.indexOf(t.charAt(u++)),a=(s&3)<<6|l,l!==64&&(e+=String.fromCharCode(a));return e}var Ke=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),sa=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function Ci(t){return Ke?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function cm(t){return Ke?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var vn=function(e){return Ke?sa(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)&255})};function hh(t){if(typeof ArrayBuffer>"u")return vn(t);for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),n=0;n!=t.length;++n)r[n]=t.charCodeAt(n)&255;return e}function Tl(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var e=[],r=0;r<t.length;++r)e[r]=String.fromCharCode(t[r]);return e.join("")}function mR(t){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(t)}var Kt=Ke?function(t){return Buffer.concat(t.map(function(e){return Buffer.isBuffer(e)?e:sa(e)}))}:function(t){if(typeof Uint8Array<"u"){var e=0,r=0;for(e=0;e<t.length;++e)r+=t[e].length;var n=new Uint8Array(r),a=0;for(e=0,r=0;e<t.length;r+=a,++e)if(a=t[e].length,t[e]instanceof Uint8Array)n.set(t[e],r);else{if(typeof t[e]=="string")throw"wtf";n.set(new Uint8Array(t[e]),r)}return n}return[].concat.apply([],t.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function _R(t){for(var e=[],r=0,n=t.length+250,a=Ci(t.length+255),i=0;i<t.length;++i){var o=t.charCodeAt(i);if(o<128)a[r++]=o;else if(o<2048)a[r++]=192|o>>6&31,a[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=t.charCodeAt(++i)&1023;a[r++]=240|o>>8&7,a[r++]=128|o>>2&63,a[r++]=128|s>>6&15|(o&3)<<4,a[r++]=128|s&63}else a[r++]=224|o>>12&15,a[r++]=128|o>>6&63,a[r++]=128|o&63;r>n&&(e.push(a.slice(0,r)),r=0,a=Ci(65535),n=65530)}return e.push(a.slice(0,r)),Kt(e)}var Gs=/\u0000/g,_u=/[\u0001-\u0006]/g;function yo(t){for(var e="",r=t.length-1;r>=0;)e+=t.charAt(r--);return e}function pn(t,e){var r=""+t;return r.length>=e?r:Tt("0",e-r.length)+r}function cd(t,e){var r=""+t;return r.length>=e?r:Tt(" ",e-r.length)+r}function xf(t,e){var r=""+t;return r.length>=e?r:r+Tt(" ",e-r.length)}function yR(t,e){var r=""+Math.round(t);return r.length>=e?r:Tt("0",e-r.length)+r}function xR(t,e){var r=""+t;return r.length>=e?r:Tt("0",e-r.length)+r}var vm=Math.pow(2,32);function Qi(t,e){if(t>vm||t<-vm)return yR(t,e);var r=Math.round(t);return xR(r,e)}function wf(t,e){return e=e||0,t.length>=7+e&&(t.charCodeAt(e)|32)===103&&(t.charCodeAt(e+1)|32)===101&&(t.charCodeAt(e+2)|32)===110&&(t.charCodeAt(e+3)|32)===101&&(t.charCodeAt(e+4)|32)===114&&(t.charCodeAt(e+5)|32)===97&&(t.charCodeAt(e+6)|32)===108}var dm=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],$c=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function wR(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',t}var Et={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},pm={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},TR={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Tf(t,e,r){for(var n=t<0?-1:1,a=t*n,i=0,o=1,s=0,l=1,u=0,f=0,h=Math.floor(a);u<e&&(h=Math.floor(a),s=h*o+i,f=h*u+l,!(a-h<5e-8));)a=1/(a-h),i=o,o=s,l=u,u=f;if(f>e&&(u>e?(f=l,s=i):(f=u,s=o)),!r)return[0,n*s,f];var v=Math.floor(n*s/f);return[v,n*s-v*f,f]}function yu(t,e,r){if(t>2958465||t<0)return null;var n=t|0,a=Math.floor(86400*(t-n)),i=0,o=[],s={D:n,T:a,u:86400*(t-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),e&&e.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++a==86400&&(s.T=a=0,++n,++s.D)),n===60)o=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),n<60&&(i=(i+6)%7),r&&(i=MR(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=a%60,a=Math.floor(a/60),s.M=a%60,a=Math.floor(a/60),s.H=a,s.q=i,s}var P2=new Date(1899,11,31,0,0,0),SR=P2.getTime(),CR=new Date(1900,2,1,0,0,0);function F2(t,e){var r=t.getTime();return e?r-=1461*24*60*60*1e3:t>=CR&&(r+=24*60*60*1e3),(r-(SR+(t.getTimezoneOffset()-P2.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function vd(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function ER(t){return t.indexOf("E")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function AR(t){var e=t<0?12:11,r=vd(t.toFixed(12));return r.length<=e||(r=t.toPrecision(10),r.length<=e)?r:t.toExponential(5)}function bR(t){var e=vd(t.toFixed(11));return e.length>(t<0?12:11)||e==="0"||e==="-0"?t.toPrecision(6):e}function DR(t){var e=Math.floor(Math.log(Math.abs(t))*Math.LOG10E),r;return e>=-4&&e<=-1?r=t.toPrecision(10+e):Math.abs(e)<=9?r=AR(t):e===10?r=t.toFixed(10).substr(0,12):r=bR(t),vd(ER(r.toUpperCase()))}function ov(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(t|0)===t?t.toString(10):DR(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return Oa(14,F2(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function MR(t,e){e[0]-=581;var r=t.getDay();return t<60&&(r=(r+6)%7),r}function kR(t,e,r,n){var a="",i=0,o=0,s=r.y,l,u=0;switch(t){case 98:s=r.y+543;case 121:switch(e.length){case 1:case 2:l=s%100,u=2;break;default:l=s%1e4,u=4;break}break;case 109:switch(e.length){case 1:case 2:l=r.m,u=e.length;break;case 3:return $c[r.m-1][1];case 5:return $c[r.m-1][0];default:return $c[r.m-1][2]}break;case 100:switch(e.length){case 1:case 2:l=r.d,u=e.length;break;case 3:return dm[r.q][0];default:return dm[r.q][1]}break;case 104:switch(e.length){case 1:case 2:l=1+(r.H+11)%12,u=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:l=r.H,u=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:l=r.M,u=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(e!="s"&&e!="ss"&&e!=".0"&&e!=".00"&&e!=".000")throw"bad second format: "+e;return r.u===0&&(e=="s"||e=="ss")?pn(r.S,e.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,i=Math.round(o*(r.S+r.u)),i>=60*o&&(i=0),e==="s"?i===0?"0":""+i/o:(a=pn(i,2+n),e==="ss"?a.substr(0,2):"."+a.substr(2,e.length-1)));case 90:switch(e){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+e}u=e.length===3?1:2;break;case 101:l=s,u=1;break}var f=u>0?pn(l,u):"";return f}function Ea(t){var e=3;if(t.length<=e)return t;for(var r=t.length%e,n=t.substr(0,r);r!=t.length;r+=e)n+=(n.length>0?",":"")+t.substr(r,e);return n}var O2=/%/g;function IR(t,e,r){var n=e.replace(O2,""),a=e.length-n.length;return Jn(t,n,r*Math.pow(10,2*a))+Tt("%",a)}function LR(t,e,r){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;return Jn(t,e.substr(0,n),r/Math.pow(10,3*(e.length-n)))}function N2(t,e){var r,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+N2(t,-e);var a=t.indexOf(".");a===-1&&(a=t.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(e/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var o=Math.floor(Math.log(e)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,f){return l+u+f.substr(0,(a+i)%a)+"."+f.substr(i)+"E"})}else r=e.toExponential(n);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var B2=/# (\?+)( ?)\/( ?)(\d+)/;function RR(t,e,r){var n=parseInt(t[4],10),a=Math.round(e*n),i=Math.floor(a/n),o=a-i*n,s=n;return r+(i===0?"":""+i)+" "+(o===0?Tt(" ",t[1].length+1+t[4].length):cd(o,t[1].length)+t[2]+"/"+t[3]+pn(s,t[4].length))}function PR(t,e,r){return r+(e===0?"":""+e)+Tt(" ",t[1].length+2+t[4].length)}var U2=/^#*0*\.([0#]+)/,H2=/\).*[0#]/,G2=/\(###\) ###\\?-####/;function hr(t){for(var e="",r,n=0;n!=t.length;++n)switch(r=t.charCodeAt(n)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(r)}return e}function gm(t,e){var r=Math.pow(10,e);return""+Math.round(t*r)/r}function mm(t,e){var r=t-Math.floor(t),n=Math.pow(10,e);return e<(""+Math.round(r*n)).length?0:Math.round(r*n)}function FR(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}function OR(t){return t<2147483647&&t>-2147483648?""+(t>=0?t|0:t-1|0):""+Math.floor(t)}function $r(t,e,r){if(t.charCodeAt(0)===40&&!e.match(H2)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?$r("n",n,r):"("+$r("n",n,-r)+")"}if(e.charCodeAt(e.length-1)===44)return LR(t,e,r);if(e.indexOf("%")!==-1)return IR(t,e,r);if(e.indexOf("E")!==-1)return N2(e,r);if(e.charCodeAt(0)===36)return"$"+$r(t,e.substr(e.charAt(1)==" "?2:1),r);var a,i,o,s,l=Math.abs(r),u=r<0?"-":"";if(e.match(/^00+$/))return u+Qi(l,e.length);if(e.match(/^[#?]+$/))return a=Qi(r,0),a==="0"&&(a=""),a.length>e.length?a:hr(e.substr(0,e.length-a.length))+a;if(i=e.match(B2))return RR(i,l,u);if(e.match(/^#+0+$/))return u+Qi(l,e.length-e.indexOf("0"));if(i=e.match(U2))return a=gm(r,i[1].length).replace(/^([^\.]+)$/,"$1."+hr(i[1])).replace(/\.$/,"."+hr(i[1])).replace(/\.(\d*)$/,function(d,p){return"."+p+Tt("0",hr(i[1]).length-p.length)}),e.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return u+gm(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return u+Ea(Qi(l,0));if(i=e.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+$r(t,e,-r):Ea(""+(Math.floor(r)+FR(r,i[1].length)))+"."+pn(mm(r,i[1].length),i[1].length);if(i=e.match(/^#,#*,#0/))return $r(t,e.replace(/^#,#*,/,""),r);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return a=yo($r(t,e.replace(/[\\-]/g,""),r)),o=0,yo(yo(e.replace(/\\/g,"")).replace(/[0#]/g,function(d){return o<a.length?a.charAt(o++):d==="0"?"0":""}));if(e.match(G2))return a=$r(t,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var f="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=Tf(l,Math.pow(10,o)-1,!1),a=""+u,f=Jn("n",i[1],s[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),a+=f+i[2]+"/"+i[3],f=xf(s[2],o),f.length<i[4].length&&(f=hr(i[4].substr(i[4].length-f.length))+f),a+=f,a;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),s=Tf(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?cd(s[1],o)+i[2]+"/"+i[3]+xf(s[2],o):Tt(" ",2*o+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return a=Qi(r,0),e.length<=a.length?a:hr(e.substr(0,e.length-a.length))+a;if(i=e.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var h=e.indexOf(".")-o,v=e.length-a.length-h;return hr(e.substr(0,h)+a+e.substr(e.length-v))}if(i=e.match(/^00,000\.([#0]*0)$/))return o=mm(r,i[1].length),r<0?"-"+$r(t,e,-r):Ea(OR(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(d){return"00,"+(d.length<3?pn(0,3-d.length):"")+d})+"."+pn(o,i[1].length);switch(e){case"###,##0.00":return $r(t,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var c=Ea(Qi(l,0));return c!=="0"?u+c:"";case"###,###.00":return $r(t,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return $r(t,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+e+"|")}function NR(t,e,r){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;return Jn(t,e.substr(0,n),r/Math.pow(10,3*(e.length-n)))}function BR(t,e,r){var n=e.replace(O2,""),a=e.length-n.length;return Jn(t,n,r*Math.pow(10,2*a))+Tt("%",a)}function W2(t,e){var r,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+W2(t,-e);var a=t.indexOf(".");a===-1&&(a=t.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(e/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),!r.match(/[Ee]/)){var o=Math.floor(Math.log(e)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,f){return l+u+f.substr(0,(a+i)%a)+"."+f.substr(i)+"E"})}else r=e.toExponential(n);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function Dn(t,e,r){if(t.charCodeAt(0)===40&&!e.match(H2)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Dn("n",n,r):"("+Dn("n",n,-r)+")"}if(e.charCodeAt(e.length-1)===44)return NR(t,e,r);if(e.indexOf("%")!==-1)return BR(t,e,r);if(e.indexOf("E")!==-1)return W2(e,r);if(e.charCodeAt(0)===36)return"$"+Dn(t,e.substr(e.charAt(1)==" "?2:1),r);var a,i,o,s,l=Math.abs(r),u=r<0?"-":"";if(e.match(/^00+$/))return u+pn(l,e.length);if(e.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>e.length?a:hr(e.substr(0,e.length-a.length))+a;if(i=e.match(B2))return PR(i,l,u);if(e.match(/^#+0+$/))return u+pn(l,e.length-e.indexOf("0"));if(i=e.match(U2))return a=(""+r).replace(/^([^\.]+)$/,"$1."+hr(i[1])).replace(/\.$/,"."+hr(i[1])),a=a.replace(/\.(\d*)$/,function(d,p){return"."+p+Tt("0",hr(i[1]).length-p.length)}),e.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return u+Ea(""+l);if(i=e.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Dn(t,e,-r):Ea(""+r)+"."+Tt("0",i[1].length);if(i=e.match(/^#,#*,#0/))return Dn(t,e.replace(/^#,#*,/,""),r);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return a=yo(Dn(t,e.replace(/[\\-]/g,""),r)),o=0,yo(yo(e.replace(/\\/g,"")).replace(/[0#]/g,function(d){return o<a.length?a.charAt(o++):d==="0"?"0":""}));if(e.match(G2))return a=Dn(t,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var f="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=Tf(l,Math.pow(10,o)-1,!1),a=""+u,f=Jn("n",i[1],s[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),a+=f+i[2]+"/"+i[3],f=xf(s[2],o),f.length<i[4].length&&(f=hr(i[4].substr(i[4].length-f.length))+f),a+=f,a;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),s=Tf(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?cd(s[1],o)+i[2]+"/"+i[3]+xf(s[2],o):Tt(" ",2*o+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return a=""+r,e.length<=a.length?a:hr(e.substr(0,e.length-a.length))+a;if(i=e.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var h=e.indexOf(".")-o,v=e.length-a.length-h;return hr(e.substr(0,h)+a+e.substr(e.length-v))}if(i=e.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Dn(t,e,-r):Ea(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(d){return"00,"+(d.length<3?pn(0,3-d.length):"")+d})+"."+pn(0,i[1].length);switch(e){case"###,###":case"##,###":case"#,###":var c=Ea(""+l);return c!=="0"?u+c:"";default:if(e.match(/\.[0#?]*$/))return Dn(t,e.slice(0,e.lastIndexOf(".")),r)+hr(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function Jn(t,e,r){return(r|0)===r?Dn(t,e,r):$r(t,e,r)}function UR(t){for(var e=[],r=!1,n=0,a=0;n<t.length;++n)switch(t.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:e[e.length]=t.substr(a,n-a),a=n+1}if(e[e.length]=t.substr(a),r===!0)throw new Error("Format |"+t+"| unterminated string ");return e}var V2=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function z2(t){for(var e=0,r="",n="";e<t.length;)switch(r=t.charAt(e)){case"G":wf(t,e)&&(e+=6),e++;break;case'"':for(;t.charCodeAt(++e)!==34&&e<t.length;);++e;break;case"\\":e+=2;break;case"_":e+=2;break;case"@":++e;break;case"B":case"b":if(t.charAt(e+1)==="1"||t.charAt(e+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(t.substr(e,3).toUpperCase()==="A/P"||t.substr(e,5).toUpperCase()==="AM/PM"||t.substr(e,5).toUpperCase()==="上午/下午")return!0;++e;break;case"[":for(n=r;t.charAt(e++)!=="]"&&e<t.length;)n+=t.charAt(e);if(n.match(V2))return!0;break;case".":case"0":case"#":for(;e<t.length&&("0#?.,E+-%".indexOf(r=t.charAt(++e))>-1||r=="\\"&&t.charAt(e+1)=="-"&&"0#".indexOf(t.charAt(e+2))>-1););break;case"?":for(;t.charAt(++e)===r;);break;case"*":++e,(t.charAt(e)==" "||t.charAt(e)=="*")&&++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1;);break;case" ":++e;break;default:++e;break}return!1}function HR(t,e,r,n){for(var a=[],i="",o=0,s="",l="t",u,f,h,v="H";o<t.length;)switch(s=t.charAt(o)){case"G":if(!wf(t,o))throw new Error("unrecognized character "+s+" in "+t);a[a.length]={t:"G",v:"General"},o+=7;break;case'"':for(i="";(h=t.charCodeAt(++o))!==34&&o<t.length;)i+=String.fromCharCode(h);a[a.length]={t:"t",v:i},++o;break;case"\\":var c=t.charAt(++o),d=c==="("||c===")"?c:"t";a[a.length]={t:d,v:c},++o;break;case"_":a[a.length]={t:"t",v:" "},o+=2;break;case"@":a[a.length]={t:"T",v:e},++o;break;case"B":case"b":if(t.charAt(o+1)==="1"||t.charAt(o+1)==="2"){if(u==null&&(u=yu(e,r,t.charAt(o+1)==="2"),u==null))return"";a[a.length]={t:"X",v:t.substr(o,2)},l=s,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0||u==null&&(u=yu(e,r),u==null))return"";for(i=s;++o<t.length&&t.charAt(o).toLowerCase()===s;)i+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=v),a[a.length]={t:s,v:i},l=s;break;case"A":case"a":case"上":var p={t:s,v:s};if(u==null&&(u=yu(e,r)),t.substr(o,3).toUpperCase()==="A/P"?(u!=null&&(p.v=u.H>=12?"P":"A"),p.t="T",v="h",o+=3):t.substr(o,5).toUpperCase()==="AM/PM"?(u!=null&&(p.v=u.H>=12?"PM":"AM"),p.t="T",o+=5,v="h"):t.substr(o,5).toUpperCase()==="上午/下午"?(u!=null&&(p.v=u.H>=12?"下午":"上午"),p.t="T",o+=5,v="h"):(p.t="t",++o),u==null&&p.t==="T")return"";a[a.length]=p,l=s;break;case"[":for(i=s;t.charAt(o++)!=="]"&&o<t.length;)i+=t.charAt(o);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(V2)){if(u==null&&(u=yu(e,r),u==null))return"";a[a.length]={t:"Z",v:i.toLowerCase()},l=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",z2(t)||(a[a.length]={t:"t",v:i}));break;case".":if(u!=null){for(i=s;++o<t.length&&(s=t.charAt(o))==="0";)i+=s;a[a.length]={t:"s",v:i};break}case"0":case"#":for(i=s;++o<t.length&&"0#?.,E+-%".indexOf(s=t.charAt(o))>-1;)i+=s;a[a.length]={t:"n",v:i};break;case"?":for(i=s;t.charAt(++o)===s;)i+=s;a[a.length]={t:s,v:i},l=s;break;case"*":++o,(t.charAt(o)==" "||t.charAt(o)=="*")&&++o;break;case"(":case")":a[a.length]={t:n===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=s;o<t.length&&"0123456789".indexOf(t.charAt(++o))>-1;)i+=t.charAt(o);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:s,v:s},++o;break;case"$":a[a.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+t);a[a.length]={t:"t",v:s},++o;break}var g=0,m=0,_;for(o=a.length-1,l="t";o>=0;--o)switch(a[o].t){case"h":case"H":a[o].t=v,l="h",g<1&&(g=1);break;case"s":(_=a[o].v.match(/\.0+$/))&&(m=Math.max(m,_[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":l=a[o].t;break;case"m":l==="s"&&(a[o].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&a[o].v.match(/[Hh]/)&&(g=1),g<2&&a[o].v.match(/[Mm]/)&&(g=2),g<3&&a[o].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M),u.M>=60&&(u.M=0,++u.H);break;case 2:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M);break}var y="",w;for(o=0;o<a.length;++o)switch(a[o].t){case"t":case"T":case" ":case"D":break;case"X":a[o].v="",a[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[o].v=kR(a[o].t.charCodeAt(0),a[o].v,u,m),a[o].t="t";break;case"n":case"?":for(w=o+1;a[w]!=null&&((s=a[w].t)==="?"||s==="D"||(s===" "||s==="t")&&a[w+1]!=null&&(a[w+1].t==="?"||a[w+1].t==="t"&&a[w+1].v==="/")||a[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(a[w].v==="/"||a[w].v===" "&&a[w+1]!=null&&a[w+1].t=="?"));)a[o].v+=a[w].v,a[w]={v:"",t:";"},++w;y+=a[o].v,o=w-1;break;case"G":a[o].t="t",a[o].v=ov(e,r);break}var E="",T,x;if(y.length>0){y.charCodeAt(0)==40?(T=e<0&&y.charCodeAt(0)===45?-e:e,x=Jn("n",y,T)):(T=e<0&&n>1?-e:e,x=Jn("n",y,T),T<0&&a[0]&&a[0].t=="t"&&(x=x.substr(1),a[0].v="-"+a[0].v)),w=x.length-1;var C=a.length;for(o=0;o<a.length;++o)if(a[o]!=null&&a[o].t!="t"&&a[o].v.indexOf(".")>-1){C=o;break}var S=a.length;if(C===a.length&&x.indexOf("E")===-1){for(o=a.length-1;o>=0;--o)a[o]==null||"n?".indexOf(a[o].t)===-1||(w>=a[o].v.length-1?(w-=a[o].v.length,a[o].v=x.substr(w+1,a[o].v.length)):w<0?a[o].v="":(a[o].v=x.substr(0,w+1),w=-1),a[o].t="t",S=o);w>=0&&S<a.length&&(a[S].v=x.substr(0,w+1)+a[S].v)}else if(C!==a.length&&x.indexOf("E")===-1){for(w=x.indexOf(".")-1,o=C;o>=0;--o)if(!(a[o]==null||"n?".indexOf(a[o].t)===-1)){for(f=a[o].v.indexOf(".")>-1&&o===C?a[o].v.indexOf(".")-1:a[o].v.length-1,E=a[o].v.substr(f+1);f>=0;--f)w>=0&&(a[o].v.charAt(f)==="0"||a[o].v.charAt(f)==="#")&&(E=x.charAt(w--)+E);a[o].v=E,a[o].t="t",S=o}for(w>=0&&S<a.length&&(a[S].v=x.substr(0,w+1)+a[S].v),w=x.indexOf(".")+1,o=C;o<a.length;++o)if(!(a[o]==null||"n?(".indexOf(a[o].t)===-1&&o!==C)){for(f=a[o].v.indexOf(".")>-1&&o===C?a[o].v.indexOf(".")+1:0,E=a[o].v.substr(0,f);f<a[o].v.length;++f)w<x.length&&(E+=x.charAt(w++));a[o].v=E,a[o].t="t",S=o}}}for(o=0;o<a.length;++o)a[o]!=null&&"n?".indexOf(a[o].t)>-1&&(T=n>1&&e<0&&o>0&&a[o-1].v==="-"?-e:e,a[o].v=Jn(a[o].t,a[o].v,T),a[o].t="t");var A="";for(o=0;o!==a.length;++o)a[o]!=null&&(A+=a[o].v);return A}var _m=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function ym(t,e){if(e==null)return!1;var r=parseFloat(e[2]);switch(e[1]){case"=":if(t==r)return!0;break;case">":if(t>r)return!0;break;case"<":if(t<r)return!0;break;case"<>":if(t!=r)return!0;break;case">=":if(t>=r)return!0;break;case"<=":if(t<=r)return!0;break}return!1}function GR(t,e){var r=UR(t),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof e!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=e>0?r[0]:e<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(_m),s=r[1].match(_m);return ym(e,o)?[n,r[0]]:ym(e,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,i]}function Oa(t,e,r){r==null&&(r={});var n="";switch(typeof t){case"string":t=="m/d/yy"&&r.dateNF?n=r.dateNF:n=t;break;case"number":t==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Et)[t],n==null&&(n=r.table&&r.table[pm[t]]||Et[pm[t]]),n==null&&(n=TR[t]||"General");break}if(wf(n,0))return ov(e,r);e instanceof Date&&(e=F2(e,r.date1904));var a=GR(n,e);if(wf(a[1]))return ov(e,r);if(e===!0)e="TRUE";else if(e===!1)e="FALSE";else if(e===""||e==null)return"";return HR(a[1],e,r,a[0])}function $2(t,e){if(typeof e!="number"){e=+e||-1;for(var r=0;r<392;++r){if(Et[r]==null){e<0&&(e=r);continue}if(Et[r]==t){e=r;break}}e<0&&(e=391)}return Et[e]=t,e}function ch(t){for(var e=0;e!=392;++e)t[e]!==void 0&&$2(t[e],e)}function vh(){Et=wR()}var Y2=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function WR(t){var e=typeof t=="number"?Et[t]:t;return e=e.replace(Y2,"(\\d+)"),new RegExp("^"+e+"$")}function VR(t,e,r){var n=-1,a=-1,i=-1,o=-1,s=-1,l=-1;(e.match(Y2)||[]).forEach(function(h,v){var c=parseInt(r[v+1],10);switch(h.toLowerCase().charAt(0)){case"y":n=c;break;case"d":i=c;break;case"h":o=c;break;case"s":l=c;break;case"m":o>=0?s=c:a=c;break}}),l>=0&&s==-1&&a>=0&&(s=a,a=-1);var u=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);u.length==7&&(u="0"+u),u.length==8&&(u="20"+u);var f=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&s==-1&&l==-1?u:n==-1&&a==-1&&i==-1?f:u+"T"+f}var zR=function(){var t={};t.version="1.2.0";function e(){for(var x=0,C=new Array(256),S=0;S!=256;++S)x=S,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,C[S]=x;return typeof Int32Array<"u"?new Int32Array(C):C}var r=e();function n(x){var C=0,S=0,A=0,M=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(A=0;A!=256;++A)M[A]=x[A];for(A=0;A!=256;++A)for(S=x[A],C=256+A;C<4096;C+=256)S=M[C]=S>>>8^x[S&255];var L=[];for(A=1;A!=16;++A)L[A-1]=typeof Int32Array<"u"?M.subarray(A*256,A*256+256):M.slice(A*256,A*256+256);return L}var a=n(r),i=a[0],o=a[1],s=a[2],l=a[3],u=a[4],f=a[5],h=a[6],v=a[7],c=a[8],d=a[9],p=a[10],g=a[11],m=a[12],_=a[13],y=a[14];function w(x,C){for(var S=C^-1,A=0,M=x.length;A<M;)S=S>>>8^r[(S^x.charCodeAt(A++))&255];return~S}function E(x,C){for(var S=C^-1,A=x.length-15,M=0;M<A;)S=y[x[M++]^S&255]^_[x[M++]^S>>8&255]^m[x[M++]^S>>16&255]^g[x[M++]^S>>>24]^p[x[M++]]^d[x[M++]]^c[x[M++]]^v[x[M++]]^h[x[M++]]^f[x[M++]]^u[x[M++]]^l[x[M++]]^s[x[M++]]^o[x[M++]]^i[x[M++]]^r[x[M++]];for(A+=15;M<A;)S=S>>>8^r[(S^x[M++])&255];return~S}function T(x,C){for(var S=C^-1,A=0,M=x.length,L=0,N=0;A<M;)L=x.charCodeAt(A++),L<128?S=S>>>8^r[(S^L)&255]:L<2048?(S=S>>>8^r[(S^(192|L>>6&31))&255],S=S>>>8^r[(S^(128|L&63))&255]):L>=55296&&L<57344?(L=(L&1023)+64,N=x.charCodeAt(A++)&1023,S=S>>>8^r[(S^(240|L>>8&7))&255],S=S>>>8^r[(S^(128|L>>2&63))&255],S=S>>>8^r[(S^(128|N>>6&15|(L&3)<<4))&255],S=S>>>8^r[(S^(128|N&63))&255]):(S=S>>>8^r[(S^(224|L>>12&15))&255],S=S>>>8^r[(S^(128|L>>6&63))&255],S=S>>>8^r[(S^(128|L&63))&255]);return~S}return t.table=r,t.bstr=w,t.buf=E,t.str=T,t}(),lt=function(){var e={};e.version="1.2.1";function r(b,P){for(var k=b.split("/"),R=P.split("/"),F=0,O=0,K=Math.min(k.length,R.length);F<K;++F){if(O=k[F].length-R[F].length)return O;if(k[F]!=R[F])return k[F]<R[F]?-1:1}return k.length-R.length}function n(b){if(b.charAt(b.length-1)=="/")return b.slice(0,-1).indexOf("/")===-1?b:n(b.slice(0,-1));var P=b.lastIndexOf("/");return P===-1?b:b.slice(0,P+1)}function a(b){if(b.charAt(b.length-1)=="/")return a(b.slice(0,-1));var P=b.lastIndexOf("/");return P===-1?b:b.slice(P+1)}function i(b,P){typeof P=="string"&&(P=new Date(P));var k=P.getHours();k=k<<6|P.getMinutes(),k=k<<5|P.getSeconds()>>>1,b.write_shift(2,k);var R=P.getFullYear()-1980;R=R<<4|P.getMonth()+1,R=R<<5|P.getDate(),b.write_shift(2,R)}function o(b){var P=b.read_shift(2)&65535,k=b.read_shift(2)&65535,R=new Date,F=k&31;k>>>=5;var O=k&15;k>>>=4,R.setMilliseconds(0),R.setFullYear(k+1980),R.setMonth(O-1),R.setDate(F);var K=P&31;P>>>=5;var ae=P&63;return P>>>=6,R.setHours(P),R.setMinutes(ae),R.setSeconds(K<<1),R}function s(b){Pr(b,0);for(var P={},k=0;b.l<=b.length-4;){var R=b.read_shift(2),F=b.read_shift(2),O=b.l+F,K={};switch(R){case 21589:k=b.read_shift(1),k&1&&(K.mtime=b.read_shift(4)),F>5&&(k&2&&(K.atime=b.read_shift(4)),k&4&&(K.ctime=b.read_shift(4))),K.mtime&&(K.mt=new Date(K.mtime*1e3));break}b.l=O,P[R]=K}return P}var l;function u(){return l||(l={})}function f(b,P){if(b[0]==80&&b[1]==75)return ft(b,P);if((b[0]|32)==109&&(b[1]|32)==105)return gT(b,P);if(b.length<512)throw new Error("CFB file size "+b.length+" < 512");var k=3,R=512,F=0,O=0,K=0,ae=0,Y=0,Z=[],j=b.slice(0,512);Pr(j,0);var he=h(j);switch(k=he[0],k){case 3:R=512;break;case 4:R=4096;break;case 0:if(he[1]==0)return ft(b,P);default:throw new Error("Major Version: Expected 3 or 4 saw "+k)}R!==512&&(j=b.slice(0,R),Pr(j,28));var Se=b.slice(0,R);v(j,k);var De=j.read_shift(4,"i");if(k===3&&De!==0)throw new Error("# Directory Sectors: Expected 0 saw "+De);j.l+=4,K=j.read_shift(4,"i"),j.l+=4,j.chk("00100000","Mini Stream Cutoff Size: "),ae=j.read_shift(4,"i"),F=j.read_shift(4,"i"),Y=j.read_shift(4,"i"),O=j.read_shift(4,"i");for(var pe=-1,Ae=0;Ae<109&&(pe=j.read_shift(4,"i"),!(pe<0));++Ae)Z[Ae]=pe;var Be=c(b,R);g(Y,O,Be,R,Z);var yt=_(Be,K,Z,R);yt[K].name="!Directory",F>0&&ae!==N&&(yt[ae].name="!MiniFAT"),yt[Z[0]].name="!FAT",yt.fat_addrs=Z,yt.ssz=R;var xt={},er=[],$o=[],Yo=[];y(K,yt,Be,er,F,xt,$o,ae),d($o,Yo,er),er.shift();var Xo={FileIndex:$o,FullPaths:Yo};return P&&P.raw&&(Xo.raw={header:Se,sectors:Be}),Xo}function h(b){if(b[b.l]==80&&b[b.l+1]==75)return[0,0];b.chk(V,"Header Signature: "),b.l+=16;var P=b.read_shift(2,"u");return[b.read_shift(2,"u"),P]}function v(b,P){var k=9;switch(b.l+=2,k=b.read_shift(2)){case 9:if(P!=3)throw new Error("Sector Shift: Expected 9 saw "+k);break;case 12:if(P!=4)throw new Error("Sector Shift: Expected 12 saw "+k);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+k)}b.chk("0600","Mini Sector Shift: "),b.chk("000000000000","Reserved: ")}function c(b,P){for(var k=Math.ceil(b.length/P)-1,R=[],F=1;F<k;++F)R[F-1]=b.slice(F*P,(F+1)*P);return R[k-1]=b.slice(k*P),R}function d(b,P,k){for(var R=0,F=0,O=0,K=0,ae=0,Y=k.length,Z=[],j=[];R<Y;++R)Z[R]=j[R]=R,P[R]=k[R];for(;ae<j.length;++ae)R=j[ae],F=b[R].L,O=b[R].R,K=b[R].C,Z[R]===R&&(F!==-1&&Z[F]!==F&&(Z[R]=Z[F]),O!==-1&&Z[O]!==O&&(Z[R]=Z[O])),K!==-1&&(Z[K]=R),F!==-1&&R!=Z[R]&&(Z[F]=Z[R],j.lastIndexOf(F)<ae&&j.push(F)),O!==-1&&R!=Z[R]&&(Z[O]=Z[R],j.lastIndexOf(O)<ae&&j.push(O));for(R=1;R<Y;++R)Z[R]===R&&(O!==-1&&Z[O]!==O?Z[R]=Z[O]:F!==-1&&Z[F]!==F&&(Z[R]=Z[F]));for(R=1;R<Y;++R)if(b[R].type!==0){if(ae=R,ae!=Z[ae])do ae=Z[ae],P[R]=P[ae]+"/"+P[R];while(ae!==0&&Z[ae]!==-1&&ae!=Z[ae]);Z[R]=-1}for(P[0]+="/",R=1;R<Y;++R)b[R].type!==2&&(P[R]+="/")}function p(b,P,k){for(var R=b.start,F=b.size,O=[],K=R;k&&F>0&&K>=0;)O.push(P.slice(K*L,K*L+L)),F-=L,K=hi(k,K*4);return O.length===0?ee(0):Kt(O).slice(0,b.size)}function g(b,P,k,R,F){var O=N;if(b===N){if(P!==0)throw new Error("DIFAT chain shorter than expected")}else if(b!==-1){var K=k[b],ae=(R>>>2)-1;if(!K)return;for(var Y=0;Y<ae&&(O=hi(K,Y*4))!==N;++Y)F.push(O);g(hi(K,R-4),P-1,k,R,F)}}function m(b,P,k,R,F){var O=[],K=[];F||(F=[]);var ae=R-1,Y=0,Z=0;for(Y=P;Y>=0;){F[Y]=!0,O[O.length]=Y,K.push(b[Y]);var j=k[Math.floor(Y*4/R)];if(Z=Y*4&ae,R<4+Z)throw new Error("FAT boundary crossed: "+Y+" 4 "+R);if(!b[j])break;Y=hi(b[j],Z)}return{nodes:O,data:bm([K])}}function _(b,P,k,R){var F=b.length,O=[],K=[],ae=[],Y=[],Z=R-1,j=0,he=0,Se=0,De=0;for(j=0;j<F;++j)if(ae=[],Se=j+P,Se>=F&&(Se-=F),!K[Se]){Y=[];var pe=[];for(he=Se;he>=0;){pe[he]=!0,K[he]=!0,ae[ae.length]=he,Y.push(b[he]);var Ae=k[Math.floor(he*4/R)];if(De=he*4&Z,R<4+De)throw new Error("FAT boundary crossed: "+he+" 4 "+R);if(!b[Ae]||(he=hi(b[Ae],De),pe[he]))break}O[Se]={nodes:ae,data:bm([Y])}}return O}function y(b,P,k,R,F,O,K,ae){for(var Y=0,Z=R.length?2:0,j=P[b].data,he=0,Se=0,De;he<j.length;he+=128){var pe=j.slice(he,he+128);Pr(pe,64),Se=pe.read_shift(2),De=_d(pe,0,Se-Z),R.push(De);var Ae={name:De,type:pe.read_shift(1),color:pe.read_shift(1),L:pe.read_shift(4,"i"),R:pe.read_shift(4,"i"),C:pe.read_shift(4,"i"),clsid:pe.read_shift(16),state:pe.read_shift(4,"i"),start:0,size:0},Be=pe.read_shift(2)+pe.read_shift(2)+pe.read_shift(2)+pe.read_shift(2);Be!==0&&(Ae.ct=w(pe,pe.l-8));var yt=pe.read_shift(2)+pe.read_shift(2)+pe.read_shift(2)+pe.read_shift(2);yt!==0&&(Ae.mt=w(pe,pe.l-8)),Ae.start=pe.read_shift(4,"i"),Ae.size=pe.read_shift(4,"i"),Ae.size<0&&Ae.start<0&&(Ae.size=Ae.type=0,Ae.start=N,Ae.name=""),Ae.type===5?(Y=Ae.start,F>0&&Y!==N&&(P[Y].name="!StreamData")):Ae.size>=4096?(Ae.storage="fat",P[Ae.start]===void 0&&(P[Ae.start]=m(k,Ae.start,P.fat_addrs,P.ssz)),P[Ae.start].name=Ae.name,Ae.content=P[Ae.start].data.slice(0,Ae.size)):(Ae.storage="minifat",Ae.size<0?Ae.size=0:Y!==N&&Ae.start!==N&&P[Y]&&(Ae.content=p(Ae,P[Y].data,(P[ae]||{}).data))),Ae.content&&Pr(Ae.content,0),O[De]=Ae,K.push(Ae)}}function w(b,P){return new Date((Or(b,P+4)/1e7*Math.pow(2,32)+Or(b,P)/1e7-11644473600)*1e3)}function E(b,P){return u(),f(l.readFileSync(b),P)}function T(b,P){var k=P&&P.type;switch(k||Ke&&Buffer.isBuffer(b)&&(k="buffer"),k||"base64"){case"file":return E(b,P);case"base64":return f(vn(aa(b)),P);case"binary":return f(vn(b),P)}return f(b,P)}function x(b,P){var k=P||{},R=k.root||"Root Entry";if(b.FullPaths||(b.FullPaths=[]),b.FileIndex||(b.FileIndex=[]),b.FullPaths.length!==b.FileIndex.length)throw new Error("inconsistent CFB structure");b.FullPaths.length===0&&(b.FullPaths[0]=R+"/",b.FileIndex[0]={name:R,type:5}),k.CLSID&&(b.FileIndex[0].clsid=k.CLSID),C(b)}function C(b){var P="Sh33tJ5";if(!lt.find(b,"/"+P)){var k=ee(4);k[0]=55,k[1]=k[3]=50,k[2]=54,b.FileIndex.push({name:P,type:2,content:k,size:4,L:69,R:69,C:69}),b.FullPaths.push(b.FullPaths[0]+P),S(b)}}function S(b,P){x(b);for(var k=!1,R=!1,F=b.FullPaths.length-1;F>=0;--F){var O=b.FileIndex[F];switch(O.type){case 0:R?k=!0:(b.FileIndex.pop(),b.FullPaths.pop());break;case 1:case 2:case 5:R=!0,isNaN(O.R*O.L*O.C)&&(k=!0),O.R>-1&&O.L>-1&&O.R==O.L&&(k=!0);break;default:k=!0;break}}if(!(!k&&!P)){var K=new Date(1987,1,19),ae=0,Y=Object.create?Object.create(null):{},Z=[];for(F=0;F<b.FullPaths.length;++F)Y[b.FullPaths[F]]=!0,b.FileIndex[F].type!==0&&Z.push([b.FullPaths[F],b.FileIndex[F]]);for(F=0;F<Z.length;++F){var j=n(Z[F][0]);R=Y[j],R||(Z.push([j,{name:a(j).replace("/",""),type:1,clsid:te,ct:K,mt:K,content:null}]),Y[j]=!0)}for(Z.sort(function(De,pe){return r(De[0],pe[0])}),b.FullPaths=[],b.FileIndex=[],F=0;F<Z.length;++F)b.FullPaths[F]=Z[F][0],b.FileIndex[F]=Z[F][1];for(F=0;F<Z.length;++F){var he=b.FileIndex[F],Se=b.FullPaths[F];if(he.name=a(Se).replace("/",""),he.L=he.R=he.C=-(he.color=1),he.size=he.content?he.content.length:0,he.start=0,he.clsid=he.clsid||te,F===0)he.C=Z.length>1?1:-1,he.size=0,he.type=5;else if(Se.slice(-1)=="/"){for(ae=F+1;ae<Z.length&&n(b.FullPaths[ae])!=Se;++ae);for(he.C=ae>=Z.length?-1:ae,ae=F+1;ae<Z.length&&n(b.FullPaths[ae])!=n(Se);++ae);he.R=ae>=Z.length?-1:ae,he.type=1}else n(b.FullPaths[F+1]||"")==n(Se)&&(he.R=F+1),he.type=2}}}function A(b,P){var k=P||{};if(k.fileType=="mad")return mT(b,k);switch(S(b),k.fileType){case"zip":return xh(b,k)}var R=function(De){for(var pe=0,Ae=0,Be=0;Be<De.FileIndex.length;++Be){var yt=De.FileIndex[Be];if(yt.content){var xt=yt.content.length;xt>0&&(xt<4096?pe+=xt+63>>6:Ae+=xt+511>>9)}}for(var er=De.FullPaths.length+3>>2,$o=pe+7>>3,Yo=pe+127>>7,Xo=$o+Ae+er+Yo,Ga=Xo+127>>7,Sh=Ga<=109?0:Math.ceil((Ga-109)/127);Xo+Ga+Sh+127>>7>Ga;)Sh=++Ga<=109?0:Math.ceil((Ga-109)/127);var Wn=[1,Sh,Ga,Yo,er,Ae,pe,0];return De.FileIndex[0].size=pe<<6,Wn[7]=(De.FileIndex[0].start=Wn[0]+Wn[1]+Wn[2]+Wn[3]+Wn[4]+Wn[5])+(Wn[6]+7>>3),Wn}(b),F=ee(R[7]<<9),O=0,K=0;{for(O=0;O<8;++O)F.write_shift(1,W[O]);for(O=0;O<8;++O)F.write_shift(2,0);for(F.write_shift(2,62),F.write_shift(2,3),F.write_shift(2,65534),F.write_shift(2,9),F.write_shift(2,6),O=0;O<3;++O)F.write_shift(2,0);for(F.write_shift(4,0),F.write_shift(4,R[2]),F.write_shift(4,R[0]+R[1]+R[2]+R[3]-1),F.write_shift(4,0),F.write_shift(4,4096),F.write_shift(4,R[3]?R[0]+R[1]+R[2]-1:N),F.write_shift(4,R[3]),F.write_shift(-4,R[1]?R[0]-1:N),F.write_shift(4,R[1]),O=0;O<109;++O)F.write_shift(-4,O<R[2]?R[1]+O:-1)}if(R[1])for(K=0;K<R[1];++K){for(;O<236+K*127;++O)F.write_shift(-4,O<R[2]?R[1]+O:-1);F.write_shift(-4,K===R[1]-1?N:K+1)}var ae=function(De){for(K+=De;O<K-1;++O)F.write_shift(-4,O+1);De&&(++O,F.write_shift(-4,N))};for(K=O=0,K+=R[1];O<K;++O)F.write_shift(-4,_e.DIFSECT);for(K+=R[2];O<K;++O)F.write_shift(-4,_e.FATSECT);ae(R[3]),ae(R[4]);for(var Y=0,Z=0,j=b.FileIndex[0];Y<b.FileIndex.length;++Y)j=b.FileIndex[Y],j.content&&(Z=j.content.length,!(Z<4096)&&(j.start=K,ae(Z+511>>9)));for(ae(R[6]+7>>3);F.l&511;)F.write_shift(-4,_e.ENDOFCHAIN);for(K=O=0,Y=0;Y<b.FileIndex.length;++Y)j=b.FileIndex[Y],j.content&&(Z=j.content.length,!(!Z||Z>=4096)&&(j.start=K,ae(Z+63>>6)));for(;F.l&511;)F.write_shift(-4,_e.ENDOFCHAIN);for(O=0;O<R[4]<<2;++O){var he=b.FullPaths[O];if(!he||he.length===0){for(Y=0;Y<17;++Y)F.write_shift(4,0);for(Y=0;Y<3;++Y)F.write_shift(4,-1);for(Y=0;Y<12;++Y)F.write_shift(4,0);continue}j=b.FileIndex[O],O===0&&(j.start=j.size?j.start-1:N);var Se=O===0&&k.root||j.name;if(Z=2*(Se.length+1),F.write_shift(64,Se,"utf16le"),F.write_shift(2,Z),F.write_shift(1,j.type),F.write_shift(1,j.color),F.write_shift(-4,j.L),F.write_shift(-4,j.R),F.write_shift(-4,j.C),j.clsid)F.write_shift(16,j.clsid,"hex");else for(Y=0;Y<4;++Y)F.write_shift(4,0);F.write_shift(4,j.state||0),F.write_shift(4,0),F.write_shift(4,0),F.write_shift(4,0),F.write_shift(4,0),F.write_shift(4,j.start),F.write_shift(4,j.size),F.write_shift(4,0)}for(O=1;O<b.FileIndex.length;++O)if(j=b.FileIndex[O],j.size>=4096)if(F.l=j.start+1<<9,Ke&&Buffer.isBuffer(j.content))j.content.copy(F,F.l,0,j.size),F.l+=j.size+511&-512;else{for(Y=0;Y<j.size;++Y)F.write_shift(1,j.content[Y]);for(;Y&511;++Y)F.write_shift(1,0)}for(O=1;O<b.FileIndex.length;++O)if(j=b.FileIndex[O],j.size>0&&j.size<4096)if(Ke&&Buffer.isBuffer(j.content))j.content.copy(F,F.l,0,j.size),F.l+=j.size+63&-64;else{for(Y=0;Y<j.size;++Y)F.write_shift(1,j.content[Y]);for(;Y&63;++Y)F.write_shift(1,0)}if(Ke)F.l=F.length;else for(;F.l<F.length;)F.write_shift(1,0);return F}function M(b,P){var k=b.FullPaths.map(function(Y){return Y.toUpperCase()}),R=k.map(function(Y){var Z=Y.split("/");return Z[Z.length-(Y.slice(-1)=="/"?2:1)]}),F=!1;P.charCodeAt(0)===47?(F=!0,P=k[0].slice(0,-1)+P):F=P.indexOf("/")!==-1;var O=P.toUpperCase(),K=F===!0?k.indexOf(O):R.indexOf(O);if(K!==-1)return b.FileIndex[K];var ae=!O.match(_u);for(O=O.replace(Gs,""),ae&&(O=O.replace(_u,"!")),K=0;K<k.length;++K)if((ae?k[K].replace(_u,"!"):k[K]).replace(Gs,"")==O||(ae?R[K].replace(_u,"!"):R[K]).replace(Gs,"")==O)return b.FileIndex[K];return null}var L=64,N=-2,V="d0cf11e0a1b11ae1",W=[208,207,17,224,161,177,26,225],te="00000000000000000000000000000000",_e={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:N,FREESECT:-1,HEADER_SIGNATURE:V,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:te,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ve(b,P,k){u();var R=A(b,k);l.writeFileSync(P,R)}function fe(b){for(var P=new Array(b.length),k=0;k<b.length;++k)P[k]=String.fromCharCode(b[k]);return P.join("")}function J(b,P){var k=A(b,P);switch(P&&P.type||"buffer"){case"file":return u(),l.writeFileSync(P.filename,k),k;case"binary":return typeof k=="string"?k:fe(k);case"base64":return ul(typeof k=="string"?k:fe(k));case"buffer":if(Ke)return Buffer.isBuffer(k)?k:sa(k);case"array":return typeof k=="string"?vn(k):k}return k}var re;function I(b){try{var P=b.InflateRaw,k=new P;if(k._processChunk(new Uint8Array([3,0]),k._finishFlushFlag),k.bytesRead)re=b;else throw new Error("zlib does not expose bytesRead")}catch(R){console.error("cannot use native zlib: "+(R.message||R))}}function G(b,P){if(!re)return de(b,P);var k=re.InflateRaw,R=new k,F=R._processChunk(b.slice(b.l),R._finishFlushFlag);return b.l+=R.bytesRead,F}function B(b){return re?re.deflateRawSync(b):Dl(b)}var U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],q=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ce=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Ce(b){var P=(b<<1|b<<11)&139536|(b<<5|b<<15)&558144;return(P>>16|P>>8|P)&255}for(var ge=typeof Uint8Array<"u",ue=ge?new Uint8Array(256):[],Te=0;Te<256;++Te)ue[Te]=Ce(Te);function we(b,P){var k=ue[b&255];return P<=8?k>>>8-P:(k=k<<8|ue[b>>8&255],P<=16?k>>>16-P:(k=k<<8|ue[b>>16&255],k>>>24-P))}function st(b,P){var k=P&7,R=P>>>3;return(b[R]|(k<=6?0:b[R+1]<<8))>>>k&3}function Le(b,P){var k=P&7,R=P>>>3;return(b[R]|(k<=5?0:b[R+1]<<8))>>>k&7}function Mt(b,P){var k=P&7,R=P>>>3;return(b[R]|(k<=4?0:b[R+1]<<8))>>>k&15}function $e(b,P){var k=P&7,R=P>>>3;return(b[R]|(k<=3?0:b[R+1]<<8))>>>k&31}function Ee(b,P){var k=P&7,R=P>>>3;return(b[R]|(k<=1?0:b[R+1]<<8))>>>k&127}function Qt(b,P,k){var R=P&7,F=P>>>3,O=(1<<k)-1,K=b[F]>>>R;return k<8-R||(K|=b[F+1]<<8-R,k<16-R)||(K|=b[F+2]<<16-R,k<24-R)||(K|=b[F+3]<<24-R),K&O}function Ot(b,P,k){var R=P&7,F=P>>>3;return R<=5?b[F]|=(k&7)<<R:(b[F]|=k<<R&255,b[F+1]=(k&7)>>8-R),P+3}function pr(b,P,k){var R=P&7,F=P>>>3;return k=(k&1)<<R,b[F]|=k,P+1}function gr(b,P,k){var R=P&7,F=P>>>3;return k<<=R,b[F]|=k&255,k>>>=8,b[F+1]=k,P+8}function Tn(b,P,k){var R=P&7,F=P>>>3;return k<<=R,b[F]|=k&255,k>>>=8,b[F+1]=k&255,b[F+2]=k>>>8,P+16}function Gn(b,P){var k=b.length,R=2*k>P?2*k:P+5,F=0;if(k>=P)return b;if(Ke){var O=cm(R);if(b.copy)b.copy(O);else for(;F<b.length;++F)O[F]=b[F];return O}else if(ge){var K=new Uint8Array(R);if(K.set)K.set(b);else for(;F<k;++F)K[F]=b[F];return K}return b.length=R,b}function Hr(b){for(var P=new Array(b),k=0;k<b;++k)P[k]=0;return P}function Pi(b,P,k){var R=1,F=0,O=0,K=0,ae=0,Y=b.length,Z=ge?new Uint16Array(32):Hr(32);for(O=0;O<32;++O)Z[O]=0;for(O=Y;O<k;++O)b[O]=0;Y=b.length;var j=ge?new Uint16Array(Y):Hr(Y);for(O=0;O<Y;++O)Z[F=b[O]]++,R<F&&(R=F),j[O]=0;for(Z[0]=0,O=1;O<=R;++O)Z[O+16]=ae=ae+Z[O-1]<<1;for(O=0;O<Y;++O)ae=b[O],ae!=0&&(j[O]=Z[ae+16]++);var he=0;for(O=0;O<Y;++O)if(he=b[O],he!=0)for(ae=we(j[O],R)>>R-he,K=(1<<R+4-he)-1;K>=0;--K)P[ae|K<<he]=he&15|O<<4;return R}var Wo=ge?new Uint16Array(512):Hr(512),Vo=ge?new Uint16Array(32):Hr(32);if(!ge){for(var Sn=0;Sn<512;++Sn)Wo[Sn]=0;for(Sn=0;Sn<32;++Sn)Vo[Sn]=0}(function(){for(var b=[],P=0;P<32;P++)b.push(5);Pi(b,Vo,32);var k=[];for(P=0;P<=143;P++)k.push(8);for(;P<=255;P++)k.push(9);for(;P<=279;P++)k.push(7);for(;P<=287;P++)k.push(8);Pi(k,Wo,288)})();var Fi=function(){for(var P=ge?new Uint8Array(32768):[],k=0,R=0;k<ce.length-1;++k)for(;R<ce[k+1];++R)P[R]=k;for(;R<32768;++R)P[R]=29;var F=ge?new Uint8Array(259):[];for(k=0,R=0;k<q.length-1;++k)for(;R<q[k+1];++R)F[R]=k;function O(ae,Y){for(var Z=0;Z<ae.length;){var j=Math.min(65535,ae.length-Z),he=Z+j==ae.length;for(Y.write_shift(1,+he),Y.write_shift(2,j),Y.write_shift(2,~j&65535);j-- >0;)Y[Y.l++]=ae[Z++]}return Y.l}function K(ae,Y){for(var Z=0,j=0,he=ge?new Uint16Array(32768):[];j<ae.length;){var Se=Math.min(65535,ae.length-j);if(Se<10){for(Z=Ot(Y,Z,+(j+Se==ae.length)),Z&7&&(Z+=8-(Z&7)),Y.l=Z/8|0,Y.write_shift(2,Se),Y.write_shift(2,~Se&65535);Se-- >0;)Y[Y.l++]=ae[j++];Z=Y.l*8;continue}Z=Ot(Y,Z,+(j+Se==ae.length)+2);for(var De=0;Se-- >0;){var pe=ae[j];De=(De<<5^pe)&32767;var Ae=-1,Be=0;if((Ae=he[De])&&(Ae|=j&-32768,Ae>j&&(Ae-=32768),Ae<j))for(;ae[Ae+Be]==ae[j+Be]&&Be<250;)++Be;if(Be>2){pe=F[Be],pe<=22?Z=gr(Y,Z,ue[pe+1]>>1)-1:(gr(Y,Z,3),Z+=5,gr(Y,Z,ue[pe-23]>>5),Z+=3);var yt=pe<8?0:pe-4>>2;yt>0&&(Tn(Y,Z,Be-q[pe]),Z+=yt),pe=P[j-Ae],Z=gr(Y,Z,ue[pe]>>3),Z-=3;var xt=pe<4?0:pe-2>>1;xt>0&&(Tn(Y,Z,j-Ae-ce[pe]),Z+=xt);for(var er=0;er<Be;++er)he[De]=j&32767,De=(De<<5^ae[j])&32767,++j;Se-=Be-1}else pe<=143?pe=pe+48:Z=pr(Y,Z,1),Z=gr(Y,Z,ue[pe]),he[De]=j&32767,++j}Z=gr(Y,Z,0)-1}return Y.l=(Z+7)/8|0,Y.l}return function(Y,Z){return Y.length<8?O(Y,Z):K(Y,Z)}}();function Dl(b){var P=ee(50+Math.floor(b.length*1.1)),k=Fi(b,P);return P.slice(0,k)}var zo=ge?new Uint16Array(32768):Hr(32768),Ml=ge?new Uint16Array(32768):Hr(32768),kl=ge?new Uint16Array(128):Hr(128),Il=1,se=1;function X(b,P){var k=$e(b,P)+257;P+=5;var R=$e(b,P)+1;P+=5;var F=Mt(b,P)+4;P+=4;for(var O=0,K=ge?new Uint8Array(19):Hr(19),ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Y=1,Z=ge?new Uint8Array(8):Hr(8),j=ge?new Uint8Array(8):Hr(8),he=K.length,Se=0;Se<F;++Se)K[U[Se]]=O=Le(b,P),Y<O&&(Y=O),Z[O]++,P+=3;var De=0;for(Z[0]=0,Se=1;Se<=Y;++Se)j[Se]=De=De+Z[Se-1]<<1;for(Se=0;Se<he;++Se)(De=K[Se])!=0&&(ae[Se]=j[De]++);var pe=0;for(Se=0;Se<he;++Se)if(pe=K[Se],pe!=0){De=ue[ae[Se]]>>8-pe;for(var Ae=(1<<7-pe)-1;Ae>=0;--Ae)kl[De|Ae<<pe]=pe&7|Se<<3}var Be=[];for(Y=1;Be.length<k+R;)switch(De=kl[Ee(b,P)],P+=De&7,De>>>=3){case 16:for(O=3+st(b,P),P+=2,De=Be[Be.length-1];O-- >0;)Be.push(De);break;case 17:for(O=3+Le(b,P),P+=3;O-- >0;)Be.push(0);break;case 18:for(O=11+Ee(b,P),P+=7;O-- >0;)Be.push(0);break;default:Be.push(De),Y<De&&(Y=De);break}var yt=Be.slice(0,k),xt=Be.slice(k);for(Se=k;Se<286;++Se)yt[Se]=0;for(Se=R;Se<30;++Se)xt[Se]=0;return Il=Pi(yt,zo,286),se=Pi(xt,Ml,30),P}function z(b,P){if(b[0]==3&&!(b[1]&3))return[Ci(P),2];for(var k=0,R=0,F=cm(P||1<<18),O=0,K=F.length>>>0,ae=0,Y=0;!(R&1);){if(R=Le(b,k),k+=3,R>>>1)R>>1==1?(ae=9,Y=5):(k=X(b,k),ae=Il,Y=se);else{k&7&&(k+=8-(k&7));var Z=b[k>>>3]|b[(k>>>3)+1]<<8;if(k+=32,Z>0)for(!P&&K<O+Z&&(F=Gn(F,O+Z),K=F.length);Z-- >0;)F[O++]=b[k>>>3],k+=8;continue}for(;;){!P&&K<O+32767&&(F=Gn(F,O+32767),K=F.length);var j=Qt(b,k,ae),he=R>>>1==1?Wo[j]:zo[j];if(k+=he&15,he>>>=4,!(he>>>8&255))F[O++]=he;else{if(he==256)break;he-=257;var Se=he<8?0:he-4>>2;Se>5&&(Se=0);var De=O+q[he];Se>0&&(De+=Qt(b,k,Se),k+=Se),j=Qt(b,k,Y),he=R>>>1==1?Vo[j]:Ml[j],k+=he&15,he>>>=4;var pe=he<4?0:he-2>>1,Ae=ce[he];for(pe>0&&(Ae+=Qt(b,k,pe),k+=pe),!P&&K<De&&(F=Gn(F,De+100),K=F.length);O<De;)F[O]=F[O-Ae],++O}}}return P?[F,k+7>>>3]:[F.slice(0,O),k+7>>>3]}function de(b,P){var k=b.slice(b.l||0),R=z(k,P);return b.l+=R[1],R[0]}function He(b,P){if(b)typeof console<"u"&&console.error(P);else throw new Error(P)}function ft(b,P){var k=b;Pr(k,0);var R=[],F=[],O={FileIndex:R,FullPaths:F};x(O,{root:P.root});for(var K=k.length-4;(k[K]!=80||k[K+1]!=75||k[K+2]!=5||k[K+3]!=6)&&K>=0;)--K;k.l=K+4,k.l+=4;var ae=k.read_shift(2);k.l+=6;var Y=k.read_shift(4);for(k.l=Y,K=0;K<ae;++K){k.l+=20;var Z=k.read_shift(4),j=k.read_shift(4),he=k.read_shift(2),Se=k.read_shift(2),De=k.read_shift(2);k.l+=8;var pe=k.read_shift(4),Ae=s(k.slice(k.l+he,k.l+he+Se));k.l+=he+Se+De;var Be=k.l;k.l=pe+4,yh(k,Z,j,O,Ae),k.l=Be}return O}function yh(b,P,k,R,F){b.l+=2;var O=b.read_shift(2),K=b.read_shift(2),ae=o(b);if(O&8257)throw new Error("Unsupported ZIP encryption");for(var Y=b.read_shift(4),Z=b.read_shift(4),j=b.read_shift(4),he=b.read_shift(2),Se=b.read_shift(2),De="",pe=0;pe<he;++pe)De+=String.fromCharCode(b[b.l++]);if(Se){var Ae=s(b.slice(b.l,b.l+Se));(Ae[21589]||{}).mt&&(ae=Ae[21589].mt),((F||{})[21589]||{}).mt&&(ae=F[21589].mt)}b.l+=Se;var Be=b.slice(b.l,b.l+Z);switch(K){case 8:Be=G(b,j);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+K)}var yt=!1;O&8&&(Y=b.read_shift(4),Y==134695760&&(Y=b.read_shift(4),yt=!0),Z=b.read_shift(4),j=b.read_shift(4)),Z!=P&&He(yt,"Bad compressed size: "+P+" != "+Z),j!=k&&He(yt,"Bad uncompressed size: "+k+" != "+j),Th(R,De,Be,{unsafe:!0,mt:ae})}function xh(b,P){var k=P||{},R=[],F=[],O=ee(1),K=k.compression?8:0,ae=0,Y=0,Z=0,j=0,he=0,Se=b.FullPaths[0],De=Se,pe=b.FileIndex[0],Ae=[],Be=0;for(Y=1;Y<b.FullPaths.length;++Y)if(De=b.FullPaths[Y].slice(Se.length),pe=b.FileIndex[Y],!(!pe.size||!pe.content||De=="Sh33tJ5")){var yt=j,xt=ee(De.length);for(Z=0;Z<De.length;++Z)xt.write_shift(1,De.charCodeAt(Z)&127);xt=xt.slice(0,xt.l),Ae[he]=zR.buf(pe.content,0);var er=pe.content;K==8&&(er=B(er)),O=ee(30),O.write_shift(4,67324752),O.write_shift(2,20),O.write_shift(2,ae),O.write_shift(2,K),pe.mt?i(O,pe.mt):O.write_shift(4,0),O.write_shift(-4,Ae[he]),O.write_shift(4,er.length),O.write_shift(4,pe.content.length),O.write_shift(2,xt.length),O.write_shift(2,0),j+=O.length,R.push(O),j+=xt.length,R.push(xt),j+=er.length,R.push(er),O=ee(46),O.write_shift(4,33639248),O.write_shift(2,0),O.write_shift(2,20),O.write_shift(2,ae),O.write_shift(2,K),O.write_shift(4,0),O.write_shift(-4,Ae[he]),O.write_shift(4,er.length),O.write_shift(4,pe.content.length),O.write_shift(2,xt.length),O.write_shift(2,0),O.write_shift(2,0),O.write_shift(2,0),O.write_shift(2,0),O.write_shift(4,0),O.write_shift(4,yt),Be+=O.l,F.push(O),Be+=xt.length,F.push(xt),++he}return O=ee(22),O.write_shift(4,101010256),O.write_shift(2,0),O.write_shift(2,0),O.write_shift(2,he),O.write_shift(2,he),O.write_shift(4,Be),O.write_shift(4,j),O.write_shift(2,0),Kt([Kt(R),Kt(F),O])}var Oi={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function wh(b,P){if(b.ctype)return b.ctype;var k=b.name||"",R=k.match(/\.([^\.]+)$/);return R&&Oi[R[1]]||P&&(R=(k=P).match(/[\.\\]([^\.\\])+$/),R&&Oi[R[1]])?Oi[R[1]]:"application/octet-stream"}function cT(b){for(var P=ul(b),k=[],R=0;R<P.length;R+=76)k.push(P.slice(R,R+76));return k.join(`\r
44
+ `)+`\r
45
+ `}function vT(b){var P=b.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Z){var j=Z.charCodeAt(0).toString(16).toUpperCase();return"="+(j.length==1?"0"+j:j)});P=P.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),P.charAt(0)==`
46
+ `&&(P="=0D"+P.slice(1)),P=P.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
47
+ =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var k=[],R=P.split(`\r
48
+ `),F=0;F<R.length;++F){var O=R[F];if(O.length==0){k.push("");continue}for(var K=0;K<O.length;){var ae=76,Y=O.slice(K,K+ae);Y.charAt(ae-1)=="="?ae--:Y.charAt(ae-2)=="="?ae-=2:Y.charAt(ae-3)=="="&&(ae-=3),Y=O.slice(K,K+ae),K+=ae,K<O.length&&(Y+="="),k.push(Y)}}return k.join(`\r
49
+ `)}function dT(b){for(var P=[],k=0;k<b.length;++k){for(var R=b[k];k<=b.length&&R.charAt(R.length-1)=="=";)R=R.slice(0,R.length-1)+b[++k];P.push(R)}for(var F=0;F<P.length;++F)P[F]=P[F].replace(/[=][0-9A-Fa-f]{2}/g,function(O){return String.fromCharCode(parseInt(O.slice(1),16))});return vn(P.join(`\r
50
+ `))}function pT(b,P,k){for(var R="",F="",O="",K,ae=0;ae<10;++ae){var Y=P[ae];if(!Y||Y.match(/^\s*$/))break;var Z=Y.match(/^(.*?):\s*([^\s].*)$/);if(Z)switch(Z[1].toLowerCase()){case"content-location":R=Z[2].trim();break;case"content-type":O=Z[2].trim();break;case"content-transfer-encoding":F=Z[2].trim();break}}switch(++ae,F.toLowerCase()){case"base64":K=vn(aa(P.slice(ae).join("")));break;case"quoted-printable":K=dT(P.slice(ae));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+F)}var j=Th(b,R.slice(k.length),K,{unsafe:!0});O&&(j.ctype=O)}function gT(b,P){if(fe(b.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var k=P&&P.root||"",R=(Ke&&Buffer.isBuffer(b)?b.toString("binary"):fe(b)).split(`\r
51
+ `),F=0,O="";for(F=0;F<R.length;++F)if(O=R[F],!!/^Content-Location:/i.test(O)&&(O=O.slice(O.indexOf("file")),k||(k=O.slice(0,O.lastIndexOf("/")+1)),O.slice(0,k.length)!=k))for(;k.length>0&&(k=k.slice(0,k.length-1),k=k.slice(0,k.lastIndexOf("/")+1),O.slice(0,k.length)!=k););var K=(R[1]||"").match(/boundary="(.*?)"/);if(!K)throw new Error("MAD cannot find boundary");var ae="--"+(K[1]||""),Y=[],Z=[],j={FileIndex:Y,FullPaths:Z};x(j);var he,Se=0;for(F=0;F<R.length;++F){var De=R[F];De!==ae&&De!==ae+"--"||(Se++&&pT(j,R.slice(he,F),k),he=F)}return j}function mT(b,P){var k=P||{},R=k.boundary||"SheetJS";R="------="+R;for(var F=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+R.slice(2)+'"',"","",""],O=b.FullPaths[0],K=O,ae=b.FileIndex[0],Y=1;Y<b.FullPaths.length;++Y)if(K=b.FullPaths[Y].slice(O.length),ae=b.FileIndex[Y],!(!ae.size||!ae.content||K=="Sh33tJ5")){K=K.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Be){return"_x"+Be.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Be){return"_u"+Be.charCodeAt(0).toString(16)+"_"});for(var Z=ae.content,j=Ke&&Buffer.isBuffer(Z)?Z.toString("binary"):fe(Z),he=0,Se=Math.min(1024,j.length),De=0,pe=0;pe<=Se;++pe)(De=j.charCodeAt(pe))>=32&&De<128&&++he;var Ae=he>=Se*4/5;F.push(R),F.push("Content-Location: "+(k.root||"file:///C:/SheetJS/")+K),F.push("Content-Transfer-Encoding: "+(Ae?"quoted-printable":"base64")),F.push("Content-Type: "+wh(ae,K)),F.push(""),F.push(Ae?vT(j):cT(j))}return F.push(R+`--\r
52
+ `),F.join(`\r
53
+ `)}function _T(b){var P={};return x(P,b),P}function Th(b,P,k,R){var F=R&&R.unsafe;F||x(b);var O=!F&&lt.find(b,P);if(!O){var K=b.FullPaths[0];P.slice(0,K.length)==K?K=P:(K.slice(-1)!="/"&&(K+="/"),K=(K+P).replace("//","/")),O={name:a(P),type:2},b.FileIndex.push(O),b.FullPaths.push(K),F||lt.utils.cfb_gc(b)}return O.content=k,O.size=k?k.length:0,R&&(R.CLSID&&(O.clsid=R.CLSID),R.mt&&(O.mt=R.mt),R.ct&&(O.ct=R.ct)),O}function yT(b,P){x(b);var k=lt.find(b,P);if(k){for(var R=0;R<b.FileIndex.length;++R)if(b.FileIndex[R]==k)return b.FileIndex.splice(R,1),b.FullPaths.splice(R,1),!0}return!1}function xT(b,P,k){x(b);var R=lt.find(b,P);if(R){for(var F=0;F<b.FileIndex.length;++F)if(b.FileIndex[F]==R)return b.FileIndex[F].name=a(k),b.FullPaths[F]=k,!0}return!1}function wT(b){S(b,!0)}return e.find=M,e.read=T,e.parse=f,e.write=J,e.writeFile=ve,e.utils={cfb_new:_T,cfb_add:Th,cfb_del:yT,cfb_mov:xT,cfb_gc:wT,ReadShift:Vs,CheckField:fw,prep_blob:Pr,bconcat:Kt,use_zlib:I,_deflateRaw:Dl,_inflateRaw:de,consts:_e},e}();function $R(t){return typeof t=="string"?hh(t):Array.isArray(t)?mR(t):t}function Sl(t,e,r){if(typeof Deno<"u"){if(r&&typeof e=="string")switch(r){case"utf8":e=new TextEncoder(r).encode(e);break;case"binary":e=hh(e);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(t,e)}var n=r=="utf8"?hl(e):e;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var a=new Blob([$R(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,t);if(typeof saveAs<"u")return saveAs(a,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:t,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=t,o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(t);return s.open("w"),s.encoding="binary",Array.isArray(e)&&(e=Tl(e)),s.write(e),s.close(),e}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+t)}function Jt(t){for(var e=Object.keys(t),r=[],n=0;n<e.length;++n)Object.prototype.hasOwnProperty.call(t,e[n])&&r.push(e[n]);return r}function xm(t,e){for(var r=[],n=Jt(t),a=0;a!==n.length;++a)r[t[n[a]][e]]==null&&(r[t[n[a]][e]]=n[a]);return r}function dd(t){for(var e=[],r=Jt(t),n=0;n!==r.length;++n)e[t[r[n]]]=r[n];return e}function dh(t){for(var e=[],r=Jt(t),n=0;n!==r.length;++n)e[t[r[n]]]=parseInt(r[n],10);return e}function YR(t){for(var e=[],r=Jt(t),n=0;n!==r.length;++n)e[t[r[n]]]==null&&(e[t[r[n]]]=[]),e[t[r[n]]].push(r[n]);return e}var Sf=new Date(1899,11,30,0,0,0);function kr(t,e){var r=t.getTime(),n=Sf.getTime()+(t.getTimezoneOffset()-Sf.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var X2=new Date,XR=Sf.getTime()+(X2.getTimezoneOffset()-Sf.getTimezoneOffset())*6e4,wm=X2.getTimezoneOffset();function K2(t){var e=new Date;return e.setTime(t*24*60*60*1e3+XR),e.getTimezoneOffset()!==wm&&e.setTime(e.getTime()+(e.getTimezoneOffset()-wm)*6e4),e}var Tm=new Date("2017-02-19T19:06:09.000Z"),Z2=isNaN(Tm.getFullYear())?new Date("2/19/17"):Tm,KR=Z2.getFullYear()==2017;function dr(t,e){var r=new Date(t);if(KR)return e>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):e<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(t instanceof Date)return t;if(Z2.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return t.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=t.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return t.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function ph(t,e){if(Ke&&Buffer.isBuffer(t))return t.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var n=[],a=0;a!=t.length;++a)n.push(String.fromCharCode(t[a]));return n.join("")}function Ir(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if(typeof t!="object"||t==null)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=Ir(t[r]));return e}function Tt(t,e){for(var r="";r.length<e;)r+=t;return r}function Qn(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var r=1,n=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(e=Number(n))||(n=n.replace(/[(](.*)[)]/,function(a,i){return r=-r,i}),!isNaN(e=Number(n)))?e/r:e}var ZR=["january","february","march","april","may","june","july","august","september","october","november","december"];function fl(t){var e=new Date(t),r=new Date(NaN),n=e.getYear(),a=e.getMonth(),i=e.getDate();if(isNaN(i))return r;var o=t.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&ZR.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?e:t.match(/[^-0-9:,\/\\]/)?r:e}function Ge(t,e,r){if(t.FullPaths){if(typeof r=="string"){var n;return Ke?n=sa(r):n=_R(r),lt.utils.cfb_add(t,e,n)}lt.utils.cfb_add(t,e,r)}else t.file(e,r)}function pd(){return lt.utils.cfb_new()}var Pt=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
54
+ `,qR={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},gd=dd(qR),md=/[&<>'"]/g,jR=/[\u0000-\u0008\u000b-\u001f]/g;function it(t){var e=t+"";return e.replace(md,function(r){return gd[r]}).replace(jR,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Sm(t){return it(t).replace(/ /g,"_x0020_")}var q2=/[\u0000-\u001f]/g;function JR(t){var e=t+"";return e.replace(md,function(r){return gd[r]}).replace(/\n/g,"<br/>").replace(q2,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function QR(t){var e=t+"";return e.replace(md,function(r){return gd[r]}).replace(q2,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function eP(t){return t.replace(/(\r\n|[\r\n])/g,"&#10;")}function tP(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Yc(t){for(var e="",r=0,n=0,a=0,i=0,o=0,s=0;r<t.length;){if(n=t.charCodeAt(r++),n<128){e+=String.fromCharCode(n);continue}if(a=t.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=a&63,e+=String.fromCharCode(o);continue}if(i=t.charCodeAt(r++),n<240){e+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}o=t.charCodeAt(r++),s=((n&7)<<18|(a&63)<<12|(i&63)<<6|o&63)-65536,e+=String.fromCharCode(55296+(s>>>10&1023)),e+=String.fromCharCode(56320+(s&1023))}return e}function Cm(t){var e=Ci(2*t.length),r,n,a=1,i=0,o=0,s;for(n=0;n<t.length;n+=a)a=1,(s=t.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(t.charCodeAt(n+1)&63),a=2):s<240?(r=(s&15)*4096+(t.charCodeAt(n+1)&63)*64+(t.charCodeAt(n+2)&63),a=3):(a=4,r=(s&7)*262144+(t.charCodeAt(n+1)&63)*4096+(t.charCodeAt(n+2)&63)*64+(t.charCodeAt(n+3)&63),r-=65536,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(e[i++]=o&255,e[i++]=o>>>8,o=0),e[i++]=r%256,e[i++]=r>>>8;return e.slice(0,i).toString("ucs2")}function Em(t){return sa(t,"binary").toString("utf8")}var xu="foo bar baz☃🍣",Ws=Ke&&(Em(xu)==Yc(xu)&&Em||Cm(xu)==Yc(xu)&&Cm)||Yc,hl=Ke?function(t){return sa(t,"utf8").toString("binary")}:function(t){for(var e=[],r=0,n=0,a=0;r<t.length;)switch(n=t.charCodeAt(r++),!0){case n<128:e.push(String.fromCharCode(n));break;case n<2048:e.push(String.fromCharCode(192+(n>>6))),e.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=t.charCodeAt(r++)-56320+(n<<10),e.push(String.fromCharCode(240+(a>>18&7))),e.push(String.fromCharCode(144+(a>>12&63))),e.push(String.fromCharCode(128+(a>>6&63))),e.push(String.fromCharCode(128+(a&63)));break;default:e.push(String.fromCharCode(224+(n>>12))),e.push(String.fromCharCode(128+(n>>6&63))),e.push(String.fromCharCode(128+(n&63)))}return e.join("")},rP=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
55
+ `).replace(/<[^>]*>/g,""),a=0;a<t.length;++a)n=n.replace(t[a][0],t[a][1]);return n}}(),j2=/(^\s|\s$|\n)/;function Zt(t,e){return"<"+t+(e.match(j2)?' xml:space="preserve"':"")+">"+e+"</"+t+">"}function cl(t){return Jt(t).map(function(e){return" "+e+'="'+t[e]+'"'}).join("")}function ye(t,e,r){return"<"+t+(r!=null?cl(r):"")+(e!=null?(e.match(j2)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function sv(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(r){if(e)throw r}return""}function nP(t,e){switch(typeof t){case"string":var r=ye("vt:lpwstr",it(t));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return ye((t|0)==t?"vt:i4":"vt:r8",it(String(t)));case"boolean":return ye("vt:bool",t?"true":"false")}if(t instanceof Date)return ye("vt:filetime",sv(t));throw new Error("Unable to serialize "+t)}var Bt={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Bo=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Fr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function aP(t,e){for(var r=1-2*(t[e+7]>>>7),n=((t[e+7]&127)<<4)+(t[e+6]>>>4&15),a=t[e+6]&15,i=5;i>=0;--i)a=a*256+t[e+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function iP(t,e,r){var n=(e<0||1/e==-1/0?1:0)<<7,a=0,i=0,o=n?-e:e;isFinite(o)?o==0?a=i=0:(a=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(e)?26985:0);for(var s=0;s<=5;++s,i/=256)t[r+s]=i&255;t[r+6]=(a&15)<<4|i&15,t[r+7]=a>>4|n}var Am=function(t){for(var e=[],r=10240,n=0;n<t[0].length;++n)if(t[0][n])for(var a=0,i=t[0][n].length;a<i;a+=r)e.push.apply(e,t[0][n].slice(a,a+r));return e},bm=Ke?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(e){return Buffer.isBuffer(e)?e:sa(e)})):Am(t)}:Am,Dm=function(t,e,r){for(var n=[],a=e;a<r;a+=2)n.push(String.fromCharCode(Es(t,a)));return n.join("").replace(Gs,"")},_d=Ke?function(t,e,r){return Buffer.isBuffer(t)?t.toString("utf16le",e,r).replace(Gs,""):Dm(t,e,r)}:Dm,Mm=function(t,e,r){for(var n=[],a=e;a<e+r;++a)n.push(("0"+t[a].toString(16)).slice(-2));return n.join("")},J2=Ke?function(t,e,r){return Buffer.isBuffer(t)?t.toString("hex",e,e+r):Mm(t,e,r)}:Mm,km=function(t,e,r){for(var n=[],a=e;a<r;a++)n.push(String.fromCharCode(ao(t,a)));return n.join("")},Cl=Ke?function(e,r,n){return Buffer.isBuffer(e)?e.toString("utf8",r,n):km(e,r,n)}:km,Q2=function(t,e){var r=Or(t,e);return r>0?Cl(t,e+4,e+4+r-1):""},ew=Q2,tw=function(t,e){var r=Or(t,e);return r>0?Cl(t,e+4,e+4+r-1):""},rw=tw,nw=function(t,e){var r=2*Or(t,e);return r>0?Cl(t,e+4,e+4+r-1):""},aw=nw,iw=function(e,r){var n=Or(e,r);return n>0?_d(e,r+4,r+4+n):""},ow=iw,sw=function(t,e){var r=Or(t,e);return r>0?Cl(t,e+4,e+4+r):""},lw=sw,uw=function(t,e){return aP(t,e)},Cf=uw,yd=function(e){return Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array};Ke&&(ew=function(e,r){if(!Buffer.isBuffer(e))return Q2(e,r);var n=e.readUInt32LE(r);return n>0?e.toString("utf8",r+4,r+4+n-1):""},rw=function(e,r){if(!Buffer.isBuffer(e))return tw(e,r);var n=e.readUInt32LE(r);return n>0?e.toString("utf8",r+4,r+4+n-1):""},aw=function(e,r){if(!Buffer.isBuffer(e))return nw(e,r);var n=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+n-1)},ow=function(e,r){if(!Buffer.isBuffer(e))return iw(e,r);var n=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+n)},lw=function(e,r){if(!Buffer.isBuffer(e))return sw(e,r);var n=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+n)},Cf=function(e,r){return Buffer.isBuffer(e)?e.readDoubleLE(r):uw(e,r)},yd=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array});var ao=function(t,e){return t[e]},Es=function(t,e){return t[e+1]*256+t[e]},oP=function(t,e){var r=t[e+1]*256+t[e];return r<32768?r:(65535-r+1)*-1},Or=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},hi=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},sP=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function Vs(t,e){var r="",n,a,i=[],o,s,l,u;switch(e){case"dbcs":if(u=this.l,Ke&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*t).toString("utf16le");else for(l=0;l<t;++l)r+=String.fromCharCode(Es(this,u)),u+=2;t*=2;break;case"utf8":r=Cl(this,this.l,this.l+t);break;case"utf16le":t*=2,r=_d(this,this.l,this.l+t);break;case"wstr":return Vs.call(this,t,"dbcs");case"lpstr-ansi":r=ew(this,this.l),t=4+Or(this,this.l);break;case"lpstr-cp":r=rw(this,this.l),t=4+Or(this,this.l);break;case"lpwstr":r=aw(this,this.l),t=4+2*Or(this,this.l);break;case"lpp4":t=4+Or(this,this.l),r=ow(this,this.l),t&2&&(t+=2);break;case"8lpp4":t=4+Or(this,this.l),r=lw(this,this.l),t&3&&(t+=4-(t&3));break;case"cstr":for(t=0,r="";(o=ao(this,this.l+t++))!==0;)i.push(mu(o));r=i.join("");break;case"_wstr":for(t=0,r="";(o=Es(this,this.l+t))!==0;)i.push(mu(o)),t+=2;t+=2,r=i.join("");break;case"dbcs-cont":for(r="",u=this.l,l=0;l<t;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=ao(this,u),this.l=u+1,s=Vs.call(this,t-l,o?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(mu(Es(this,u))),u+=2}r=i.join(""),t*=2;break;case"cpstr":case"sbcs-cont":for(r="",u=this.l,l=0;l!=t;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=ao(this,u),this.l=u+1,s=Vs.call(this,t-l,o?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(mu(ao(this,u))),u+=1}r=i.join("");break;default:switch(t){case 1:return n=ao(this,this.l),this.l++,n;case 2:return n=(e==="i"?oP:Es)(this,this.l),this.l+=2,n;case 4:case-4:return e==="i"||!(this[this.l+3]&128)?(n=(t>0?hi:sP)(this,this.l),this.l+=4,n):(a=Or(this,this.l),this.l+=4,a);case 8:case-8:if(e==="f")return t==8?a=Cf(this,this.l):a=Cf([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;t=8;case 16:r=J2(this,this.l,t);break}}return this.l+=t,r}var lP=function(t,e,r){t[r]=e&255,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24&255},uP=function(t,e,r){t[r]=e&255,t[r+1]=e>>8&255,t[r+2]=e>>16&255,t[r+3]=e>>24&255},fP=function(t,e,r){t[r]=e&255,t[r+1]=e>>>8&255};function hP(t,e,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=e.length;++a)fP(this,e.charCodeAt(a),this.l+2*a);n=2*e.length}else if(r==="sbcs"){for(e=e.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=e.length;++a)this[this.l+a]=e.charCodeAt(a)&255;n=e.length}else if(r==="hex"){for(;a<t;++a)this[this.l++]=parseInt(e.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var i=Math.min(this.l+t,this.length);for(a=0;a<Math.min(e.length,t);++a){var o=e.charCodeAt(a);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(t){case 1:n=1,this[this.l]=e&255;break;case 2:n=2,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255;break;case 3:n=3,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255,e>>>=8,this[this.l+2]=e&255;break;case 4:n=4,lP(this,e,this.l);break;case 8:if(n=8,r==="f"){iP(this,e,this.l);break}case 16:break;case-4:n=4,uP(this,e,this.l);break}return this.l+=n,this}function fw(t,e){var r=J2(this,this.l,t.length>>1);if(r!==t)throw new Error(e+"Expected "+t+" saw "+r);this.l+=t.length>>1}function Pr(t,e){t.l=e,t.read_shift=Vs,t.chk=fw,t.write_shift=hP}function On(t,e){t.l+=e}function ee(t){var e=Ci(t);return Pr(e,0),e}function Ar(){var t=[],e=Ke?256:2048,r=function(u){var f=ee(u);return Pr(f,0),f},n=r(e),a=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&t.push(n),n=null)},i=function(u){return n&&u<n.length-n.l?n:(a(),n=r(Math.max(u+1,e)))},o=function(){return a(),Kt(t)},s=function(u){a(),n=u,n.l==null&&(n.l=n.length),i(e)};return{next:i,push:s,end:o,_bufs:t}}function le(t,e,r,n){var a=+e,i;if(!isNaN(a)){n||(n=a6[a].p||(r||[]).length||0),i=1+(a>=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var o=t.next(i);a<=127?o.write_shift(1,a):(o.write_shift(1,(a&127)+128),o.write_shift(1,a>>7));for(var s=0;s!=4;++s)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&yd(r)&&t.push(r)}}function zs(t,e,r){var n=Ir(t);if(e.s?(n.cRel&&(n.c+=e.s.c),n.rRel&&(n.r+=e.s.r)):(n.cRel&&(n.c+=e.c),n.rRel&&(n.r+=e.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Im(t,e,r){var n=Ir(t);return n.s=zs(n.s,e.s,r),n.e=zs(n.e,e.s,r),n}function $s(t,e){if(t.cRel&&t.c<0)for(t=Ir(t);t.c<0;)t.c+=e>8?16384:256;if(t.rRel&&t.r<0)for(t=Ir(t);t.r<0;)t.r+=e>8?1048576:e>5?65536:16384;var r=ot(t);return!t.cRel&&t.cRel!=null&&(r=dP(r)),!t.rRel&&t.rRel!=null&&(r=cP(r)),r}function Xc(t,e){return t.s.r==0&&!t.s.rRel&&t.e.r==(e.biff>=12?1048575:e.biff>=8?65536:16384)&&!t.e.rRel?(t.s.cRel?"":"$")+ir(t.s.c)+":"+(t.e.cRel?"":"$")+ir(t.e.c):t.s.c==0&&!t.s.cRel&&t.e.c==(e.biff>=12?16383:255)&&!t.e.cRel?(t.s.rRel?"":"$")+qt(t.s.r)+":"+(t.e.rRel?"":"$")+qt(t.e.r):$s(t.s,e.biff)+":"+$s(t.e,e.biff)}function xd(t){return parseInt(vP(t),10)-1}function qt(t){return""+(t+1)}function cP(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function vP(t){return t.replace(/\$(\d+)$/,"$1")}function wd(t){for(var e=pP(t),r=0,n=0;n!==e.length;++n)r=26*r+e.charCodeAt(n)-64;return r-1}function ir(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function dP(t){return t.replace(/^([A-Z])/,"$$$1")}function pP(t){return t.replace(/^\$([A-Z])/,"$1")}function gP(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ut(t){for(var e=0,r=0,n=0;n<t.length;++n){var a=t.charCodeAt(n);a>=48&&a<=57?e=10*e+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:e-1}}function ot(t){for(var e=t.c+1,r="";e;e=(e-1)/26|0)r=String.fromCharCode((e-1)%26+65)+r;return r+(t.r+1)}function Ur(t){var e=t.indexOf(":");return e==-1?{s:Ut(t),e:Ut(t)}:{s:Ut(t.slice(0,e)),e:Ut(t.slice(e+1))}}function Rt(t,e){return typeof e>"u"||typeof e=="number"?Rt(t.s,t.e):(typeof t!="string"&&(t=ot(t)),typeof e!="string"&&(e=ot(e)),t==e?t:t+":"+e)}function gt(t){var e={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=t.length;for(r=0;n<i&&!((a=t.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(e.s.c=--r,r=0;n<i&&!((a=t.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(e.s.r=--r,n===i||a!=10)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++n,r=0;n!=i&&!((a=t.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(e.e.c=--r,r=0;n!=i&&!((a=t.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return e.e.r=--r,e}function Lm(t,e){var r=t.t=="d"&&e instanceof Date;if(t.z!=null)try{return t.w=Oa(t.z,r?kr(e):e)}catch{}try{return t.w=Oa((t.XF||{}).numFmtId||(r?14:0),r?kr(e):e)}catch{return""+e}}function ia(t,e,r){return t==null||t.t==null||t.t=="z"?"":t.w!==void 0?t.w:(t.t=="d"&&!t.z&&r&&r.dateNF&&(t.z=r.dateNF),t.t=="e"?El[t.v]||t.v:e==null?Lm(t,t.v):Lm(t,e))}function Mi(t,e){var r=e&&e.sheet?e.sheet:"Sheet1",n={};return n[r]=t,{SheetNames:[r],Sheets:n}}function hw(t,e,r){var n=r||{},a=t?Array.isArray(t):n.dense,i=t||(a?[]:{}),o=0,s=0;if(i&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?Ut(n.origin):n.origin;o=l.r,s=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var f=gt(i["!ref"]);u.s.c=f.s.c,u.s.r=f.s.r,u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),o==-1&&(u.e.r=o=f.e.r+1)}for(var h=0;h!=e.length;++h)if(e[h]){if(!Array.isArray(e[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var v=0;v!=e[h].length;++v)if(!(typeof e[h][v]>"u")){var c={v:e[h][v]},d=o+h,p=s+v;if(u.s.r>d&&(u.s.r=d),u.s.c>p&&(u.s.c=p),u.e.r<d&&(u.e.r=d),u.e.c<p&&(u.e.c=p),e[h][v]&&typeof e[h][v]=="object"&&!Array.isArray(e[h][v])&&!(e[h][v]instanceof Date))c=e[h][v];else if(Array.isArray(c.v)&&(c.f=e[h][v][1],c.v=c.v[0]),c.v===null)if(c.f)c.t="n";else if(n.nullError)c.t="e",c.v=0;else if(n.sheetStubs)c.t="z";else continue;else typeof c.v=="number"?c.t="n":typeof c.v=="boolean"?c.t="b":c.v instanceof Date?(c.z=n.dateNF||Et[14],n.cellDates?(c.t="d",c.w=Oa(c.z,kr(c.v))):(c.t="n",c.v=kr(c.v),c.w=Oa(c.z,c.v))):c.t="s";if(a)i[d]||(i[d]=[]),i[d][p]&&i[d][p].z&&(c.z=i[d][p].z),i[d][p]=c;else{var g=ot({c:p,r:d});i[g]&&i[g].z&&(c.z=i[g].z),i[g]=c}}}return u.s.c<1e7&&(i["!ref"]=Rt(u)),i}function Uo(t,e){return hw(null,t,e)}function mP(t){return t.read_shift(4,"i")}function mn(t,e){return e||(e=ee(4)),e.write_shift(4,t),e}function or(t){var e=t.read_shift(4);return e===0?"":t.read_shift(e,"dbcs")}function Ht(t,e){var r=!1;return e==null&&(r=!0,e=ee(4+2*t.length)),e.write_shift(4,t.length),t.length>0&&e.write_shift(0,t,"dbcs"),r?e.slice(0,e.l):e}function _P(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function yP(t,e){return e||(e=ee(4)),e.write_shift(2,0),e.write_shift(2,0),e}function Td(t,e){var r=t.l,n=t.read_shift(1),a=or(t),i=[],o={t:a,h:a};if(n&1){for(var s=t.read_shift(4),l=0;l!=s;++l)i.push(_P(t));o.r=i}else o.r=[{ich:0,ifnt:0}];return t.l=r+e,o}function xP(t,e){var r=!1;return e==null&&(r=!0,e=ee(15+4*t.t.length)),e.write_shift(1,0),Ht(t.t,e),r?e.slice(0,e.l):e}var wP=Td;function TP(t,e){var r=!1;return e==null&&(r=!0,e=ee(23+4*t.t.length)),e.write_shift(1,1),Ht(t.t,e),e.write_shift(4,1),yP({},e),r?e.slice(0,e.l):e}function nn(t){var e=t.read_shift(4),r=t.read_shift(2);return r+=t.read_shift(1)<<16,t.l++,{c:e,iStyleRef:r}}function ki(t,e){return e==null&&(e=ee(8)),e.write_shift(-4,t.c),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}function Ii(t){var e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:e}}function Li(t,e){return e==null&&(e=ee(4)),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}var SP=or,cw=Ht;function Sd(t){var e=t.read_shift(4);return e===0||e===4294967295?"":t.read_shift(e,"dbcs")}function Ef(t,e){var r=!1;return e==null&&(r=!0,e=ee(127)),e.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&e.write_shift(0,t,"dbcs"),r?e.slice(0,e.l):e}var CP=or,lv=Sd,Cd=Ef;function vw(t){var e=t.slice(t.l,t.l+4),r=e[0]&1,n=e[0]&2;t.l+=4;var a=n===0?Cf([0,0,0,0,e[0]&252,e[1],e[2],e[3]],0):hi(e,0)>>2;return r?a/100:a}function dw(t,e){e==null&&(e=ee(4));var r=0,n=0,a=t*100;if(t==(t|0)&&t>=-536870912&&t<1<<29?n=1:a==(a|0)&&a>=-536870912&&a<1<<29&&(n=1,r=1),n)e.write_shift(-4,((r?a:t)<<2)+(r+2));else throw new Error("unsupported RkNumber "+t)}function pw(t){var e={s:{},e:{}};return e.s.r=t.read_shift(4),e.e.r=t.read_shift(4),e.s.c=t.read_shift(4),e.e.c=t.read_shift(4),e}function EP(t,e){return e||(e=ee(16)),e.write_shift(4,t.s.r),e.write_shift(4,t.e.r),e.write_shift(4,t.s.c),e.write_shift(4,t.e.c),e}var Ri=pw,Ho=EP;function Go(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Ei(t,e){return(e||ee(8)).write_shift(8,t,"f")}function AP(t){var e={},r=t.read_shift(1),n=r>>>1,a=t.read_shift(1),i=t.read_shift(2,"i"),o=t.read_shift(1),s=t.read_shift(1),l=t.read_shift(1);switch(t.l++,n){case 0:e.auto=1;break;case 1:e.index=a;var u=FP[a];u&&(e.rgb=Vm(u));break;case 2:e.rgb=Vm([o,s,l]);break;case 3:e.theme=a;break}return i!=0&&(e.tint=i>0?i/32767:i/32768),e}function Af(t,e){if(e||(e=ee(8)),!t||t.auto)return e.write_shift(4,0),e.write_shift(4,0),e;t.index!=null?(e.write_shift(1,2),e.write_shift(1,t.index)):t.theme!=null?(e.write_shift(1,6),e.write_shift(1,t.theme)):(e.write_shift(1,5),e.write_shift(1,0));var r=t.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),e.write_shift(2,r),!t.rgb||t.theme!=null)e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);else{var n=t.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),e.write_shift(1,parseInt(n.slice(0,2),16)),e.write_shift(1,parseInt(n.slice(2,4),16)),e.write_shift(1,parseInt(n.slice(4,6),16)),e.write_shift(1,255)}return e}function bP(t){var e=t.read_shift(1);t.l++;var r={fBold:e&1,fItalic:e&2,fUnderline:e&4,fStrikeout:e&8,fOutline:e&16,fShadow:e&32,fCondense:e&64,fExtend:e&128};return r}function DP(t,e){e||(e=ee(2));var r=(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0);return e.write_shift(1,r),e.write_shift(1,0),e}var gw=2,Lr=3,wu=11,bf=19,Tu=64,MP=65,kP=71,IP=4108,LP=4126,$t=80,Rm={1:{n:"CodePage",t:gw},2:{n:"Category",t:$t},3:{n:"PresentationFormat",t:$t},4:{n:"ByteCount",t:Lr},5:{n:"LineCount",t:Lr},6:{n:"ParagraphCount",t:Lr},7:{n:"SlideCount",t:Lr},8:{n:"NoteCount",t:Lr},9:{n:"HiddenCount",t:Lr},10:{n:"MultimediaClipCount",t:Lr},11:{n:"ScaleCrop",t:wu},12:{n:"HeadingPairs",t:IP},13:{n:"TitlesOfParts",t:LP},14:{n:"Manager",t:$t},15:{n:"Company",t:$t},16:{n:"LinksUpToDate",t:wu},17:{n:"CharacterCount",t:Lr},19:{n:"SharedDoc",t:wu},22:{n:"HyperlinksChanged",t:wu},23:{n:"AppVersion",t:Lr,p:"version"},24:{n:"DigSig",t:MP},26:{n:"ContentType",t:$t},27:{n:"ContentStatus",t:$t},28:{n:"Language",t:$t},29:{n:"Version",t:$t},255:{},2147483648:{n:"Locale",t:bf},2147483651:{n:"Behavior",t:bf},1919054434:{}},Pm={1:{n:"CodePage",t:gw},2:{n:"Title",t:$t},3:{n:"Subject",t:$t},4:{n:"Author",t:$t},5:{n:"Keywords",t:$t},6:{n:"Comments",t:$t},7:{n:"Template",t:$t},8:{n:"LastAuthor",t:$t},9:{n:"RevNumber",t:$t},10:{n:"EditTime",t:Tu},11:{n:"LastPrinted",t:Tu},12:{n:"CreatedDate",t:Tu},13:{n:"ModifiedDate",t:Tu},14:{n:"PageCount",t:Lr},15:{n:"WordCount",t:Lr},16:{n:"CharCount",t:Lr},17:{n:"Thumbnail",t:kP},18:{n:"Application",t:$t},19:{n:"DocSecurity",t:Lr},255:{},2147483648:{n:"Locale",t:bf},2147483651:{n:"Behavior",t:bf},1919054434:{}};function RP(t){return t.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var PP=RP([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),FP=Ir(PP),El={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},OP={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Su={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function mw(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function _w(t,e){var r=YR(OP),n=[],a;n[n.length]=Pt,n[n.length]=ye("Types",null,{xmlns:Bt.CT,"xmlns:xsd":Bt.xsd,"xmlns:xsi":Bt.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return ye("Default",null,{Extension:l[0],ContentType:l[1]})}));var i=function(l){t[l]&&t[l].length>0&&(a=t[l][0],n[n.length]=ye("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Su[l][e.bookType]||Su[l].xlsx}))},o=function(l){(t[l]||[]).forEach(function(u){n[n.length]=ye("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:Su[l][e.bookType]||Su[l].xlsx})})},s=function(l){(t[l]||[]).forEach(function(u){n[n.length]=ye("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:r[l][0]})})};return i("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Xe={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function yw(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function xo(t){var e=[Pt,ye("Relationships",null,{xmlns:Bt.RELS})];return Jt(t["!id"]).forEach(function(r){e[e.length]=ye("Relationship",null,t["!id"][r])}),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function rt(t,e,r,n,a,i){if(a||(a={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),e<0)for(e=t["!idx"];t["!id"]["rId"+e];++e);if(t["!idx"]=e+1,a.Id="rId"+e,a.Type=n,a.Target=r,[Xe.HLINK,Xe.XPATH,Xe.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),t["!id"][a.Id])throw new Error("Cannot rewrite rId "+e);return t["!id"][a.Id]=a,t[("/"+a.Target).replace("//","/")]=a,e}function NP(t){var e=[Pt];e.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
56
+ `),e.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
57
+ `);for(var r=0;r<t.length;++r)e.push(' <manifest:file-entry manifest:full-path="'+t[r][0]+'" manifest:media-type="'+t[r][1]+`"/>
58
+ `);return e.push("</manifest:manifest>"),e.join("")}function Fm(t,e,r){return[' <rdf:Description rdf:about="'+t+`">
59
+ `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+e+`"/>
60
+ `,` </rdf:Description>
61
+ `].join("")}function BP(t,e){return[' <rdf:Description rdf:about="'+t+`">
62
+ `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e+`"/>
63
+ `,` </rdf:Description>
64
+ `].join("")}function UP(t){var e=[Pt];e.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
65
+ `);for(var r=0;r!=t.length;++r)e.push(Fm(t[r][0],t[r][1])),e.push(BP("",t[r][0]));return e.push(Fm("","Document","pkg")),e.push("</rdf:RDF>"),e.join("")}function xw(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+_f.version+"</meta:generator></office:meta></office:document-meta>"}var _i=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Kc(t,e,r,n,a){a[t]!=null||e==null||e===""||(a[t]=e,e=it(e),n[n.length]=r?ye(t,e,r):Zt(t,e))}function ww(t,e){var r=e||{},n=[Pt,ye("cp:coreProperties",null,{"xmlns:cp":Bt.CORE_PROPS,"xmlns:dc":Bt.dc,"xmlns:dcterms":Bt.dcterms,"xmlns:dcmitype":Bt.dcmitype,"xmlns:xsi":Bt.xsi})],a={};if(!t&&!r.Props)return n.join("");t&&(t.CreatedDate!=null&&Kc("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:sv(t.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),t.ModifiedDate!=null&&Kc("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:sv(t.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=_i.length;++i){var o=_i[i],s=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:t?t[o[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&Kc(o[0],s,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var wo=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Tw=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Sw(t){var e=[],r=ye;return t||(t={}),t.Application="SheetJS",e[e.length]=Pt,e[e.length]=ye("Properties",null,{xmlns:Bt.EXT_PROPS,"xmlns:vt":Bt.vt}),wo.forEach(function(n){if(t[n[1]]!==void 0){var a;switch(n[2]){case"string":a=it(String(t[n[1]]));break;case"bool":a=t[n[1]]?"true":"false";break}a!==void 0&&(e[e.length]=r(n[0],a))}}),e[e.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=r("TitlesOfParts",r("vt:vector",t.SheetNames.map(function(n){return"<vt:lpstr>"+it(n)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function Cw(t){var e=[Pt,ye("Properties",null,{xmlns:Bt.CUST_PROPS,"xmlns:vt":Bt.vt})];if(!t)return e.join("");var r=1;return Jt(t).forEach(function(a){++r,e[e.length]=ye("property",nP(t[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:it(a)})}),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var Om={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function HP(t,e){var r=[];return Jt(Om).map(function(n){for(var a=0;a<_i.length;++a)if(_i[a][1]==n)return _i[a];for(a=0;a<wo.length;++a)if(wo[a][1]==n)return wo[a];throw n}).forEach(function(n){if(t[n[1]]!=null){var a=e&&e.Props&&e.Props[n[1]]!=null?e.Props[n[1]]:t[n[1]];switch(n[2]){case"date":a=new Date(a).toISOString().replace(/\.\d*Z/,"Z");break}typeof a=="number"?a=String(a):a===!0||a===!1?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),r.push(Zt(Om[n[1]]||n[1],a))}}),ye("DocumentProperties",r.join(""),{xmlns:Fr.o})}function GP(t,e){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",a=[];return t&&Jt(t).forEach(function(i){if(Object.prototype.hasOwnProperty.call(t,i)){for(var o=0;o<_i.length;++o)if(i==_i[o][1])return;for(o=0;o<wo.length;++o)if(i==wo[o][1])return;for(o=0;o<r.length;++o)if(i==r[o])return;var s=t[i],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),a.push(ye(Sm(i),s,{"dt:dt":l}))}}),e&&Jt(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)&&!(t&&Object.prototype.hasOwnProperty.call(t,i))){var o=e[i],s="string";typeof o=="number"?(s="float",o=String(o)):o===!0||o===!1?(s="boolean",o=o?"1":"0"):o instanceof Date?(s="dateTime.tz",o=o.toISOString()):o=String(o),a.push(ye(Sm(i),o,{"dt:dt":s}))}}),"<"+n+' xmlns="'+Fr.o+'">'+a.join("")+"</"+n+">"}function WP(t){var e=typeof t=="string"?new Date(Date.parse(t)):t,r=e.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),a+=i);var o=ee(8);return o.write_shift(4,n),o.write_shift(4,a),o}function Nm(t,e){var r=ee(4),n=ee(4);switch(r.write_shift(4,t==80?31:t),t){case 3:n.write_shift(-4,e);break;case 5:n=ee(8),n.write_shift(8,e,"f");break;case 11:n.write_shift(4,e?1:0);break;case 64:n=WP(e);break;case 31:case 80:for(n=ee(4+2*(e.length+1)+(e.length%2?0:2)),n.write_shift(4,e.length+1),n.write_shift(0,e,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+e)}return Kt([r,n])}var Ew=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function VP(t){switch(typeof t){case"boolean":return 11;case"number":return(t|0)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64;break}return-1}function Bm(t,e,r){var n=ee(8),a=[],i=[],o=8,s=0,l=ee(8),u=ee(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),i.push(l),a.push(u),o+=8+l.length,!e){u=ee(8),u.write_shift(4,0),a.unshift(u);var f=[ee(4)];for(f[0].write_shift(4,t.length),s=0;s<t.length;++s){var h=t[s][0];for(l=ee(8+2*(h.length+1)+(h.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,h.length+1),l.write_shift(0,h,"dbcs");l.l!=l.length;)l.write_shift(1,0);f.push(l)}l=Kt(f),i.unshift(l),o+=8+l.length}for(s=0;s<t.length;++s)if(!(e&&!e[t[s][0]])&&!(Ew.indexOf(t[s][0])>-1||Tw.indexOf(t[s][0])>-1)&&t[s][1]!=null){var v=t[s][1],c=0;if(e){c=+e[t[s][0]];var d=r[c];if(d.p=="version"&&typeof v=="string"){var p=v.split(".");v=(+p[0]<<16)+(+p[1]||0)}l=Nm(d.t,v)}else{var g=VP(v);g==-1&&(g=31,v=String(v)),l=Nm(g,v)}i.push(l),u=ee(8),u.write_shift(4,e?c:2+s),a.push(u),o+=8+l.length}var m=8*(i.length+1);for(s=0;s<i.length;++s)a[s].write_shift(4,m),m+=i[s].length;return n.write_shift(4,o),n.write_shift(4,i.length),Kt([n].concat(a).concat(i))}function Um(t,e,r,n,a,i){var o=ee(a?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,lt.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,a?2:1),o.write_shift(16,e,"hex"),o.write_shift(4,a?68:48);var l=Bm(t,r,n);if(s.push(l),a){var u=Bm(a,null,null);o.write_shift(16,i,"hex"),o.write_shift(4,68+l.length),s.push(u)}return Kt(s)}function zP(t,e){e||(e=ee(t));for(var r=0;r<t;++r)e.write_shift(1,0);return e}function $P(t,e){return t.read_shift(e)===1}function cr(t,e){return e||(e=ee(2)),e.write_shift(2,+!!t),e}function Aw(t){return t.read_shift(2,"u")}function Zr(t,e){return e||(e=ee(2)),e.write_shift(2,t),e}function bw(t,e,r){return r||(r=ee(2)),r.write_shift(1,e=="e"?+t:+!!t),r.write_shift(1,e=="e"?1:0),r}function Dw(t,e,r){var n=t.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=t.read_shift(1);i&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var o=n?t.read_shift(n,a):"";return o}function YP(t){var e=t.t||"",r=ee(3);r.write_shift(2,e.length),r.write_shift(1,1);var n=ee(2*e.length);n.write_shift(2*e.length,e,"utf16le");var a=[r,n];return Kt(a)}function XP(t,e,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return t.read_shift(e,"cpstr");if(r.biff>=12)return t.read_shift(e,"dbcs-cont")}var a=t.read_shift(1);return a===0?n=t.read_shift(e,"sbcs-cont"):n=t.read_shift(e,"dbcs-cont"),n}function KP(t,e,r){var n=t.read_shift(r&&r.biff==2?1:2);return n===0?(t.l++,""):XP(t,n,r)}function ZP(t,e,r){if(r.biff>5)return KP(t,e,r);var n=t.read_shift(1);return n===0?(t.l++,""):t.read_shift(n,r.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function Mw(t,e,r){return r||(r=ee(3+2*t.length)),r.write_shift(2,t.length),r.write_shift(1,1),r.write_shift(31,t,"utf16le"),r}function Hm(t,e){e||(e=ee(6+t.length*2)),e.write_shift(4,1+t.length);for(var r=0;r<t.length;++r)e.write_shift(2,t.charCodeAt(r));return e.write_shift(2,0),e}function qP(t){var e=ee(512),r=0,n=t.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),i=a>-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}e.write_shift(4,2),e.write_shift(4,i);var o=[8,6815827,6619237,4849780,83];for(r=0;r<o.length;++r)e.write_shift(4,o[r]);if(i==28)n=n.slice(1),Hm(n,e);else if(i&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<o.length;++r)e.write_shift(1,parseInt(o[r],16));var s=a>-1?n.slice(0,a):n;for(e.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)e.write_shift(2,s.charCodeAt(r));e.write_shift(2,0),i&8&&Hm(a>-1?n.slice(a+1):"",e)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<o.length;++r)e.write_shift(1,parseInt(o[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(e.write_shift(2,l),e.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)e.write_shift(1,n.charCodeAt(r+3*l)&255);for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),r=0;r<6;++r)e.write_shift(4,0)}return e.slice(0,e.l)}function Ai(t,e,r,n){return n||(n=ee(6)),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(2,r||0),n}function jP(t,e,r){var n=r.biff>8?4:2,a=t.read_shift(n),i=t.read_shift(n,"i"),o=t.read_shift(n,"i");return[a,i,o]}function JP(t){var e=t.read_shift(2),r=t.read_shift(2),n=t.read_shift(2),a=t.read_shift(2);return{s:{c:n,r:e},e:{c:a,r}}}function kw(t,e){return e||(e=ee(8)),e.write_shift(2,t.s.r),e.write_shift(2,t.e.r),e.write_shift(2,t.s.c),e.write_shift(2,t.e.c),e}function Ed(t,e,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=ee(a);return i.write_shift(2,n),i.write_shift(2,e),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function QP(t,e){var r=!e||e.biff==8,n=ee(r?112:54);for(n.write_shift(e.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function eF(t,e){var r=!e||e.biff>=8?2:1,n=ee(8+r*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),e.biff>=8&&n.write_shift(1,1),n.write_shift(r*t.name.length,t.name,e.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function tF(t,e){var r=ee(8);r.write_shift(4,t.Count),r.write_shift(4,t.Unique);for(var n=[],a=0;a<t.length;++a)n[a]=YP(t[a]);var i=Kt([r].concat(n));return i.parts=[r.length].concat(n.map(function(o){return o.length})),i}function rF(){var t=ee(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}function nF(t){var e=ee(18),r=1718;return t&&t.RTL&&(r|=64),e.write_shift(2,r),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}function aF(t,e){var r=t.name||"Arial",n=e&&e.biff==5,a=n?15+r.length:16+2*r.length,i=ee(a);return i.write_shift(2,t.sz*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function iF(t,e,r,n){var a=ee(10);return Ai(t,e,n,a),a.write_shift(4,r),a}function oF(t,e,r,n,a){var i=!a||a.biff==8,o=ee(8+ +i+(1+i)*r.length);return Ai(t,e,n,o),o.write_shift(2,r.length),i&&o.write_shift(1,1),o.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),o}function sF(t,e,r,n){var a=r&&r.biff==5;n||(n=ee(a?3+e.length:5+2*e.length)),n.write_shift(2,t),n.write_shift(a?1:2,e.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*e.length,e,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}function lF(t,e){var r=e.biff==8||!e.biff?4:2,n=ee(2*r+6);return n.write_shift(r,t.s.r),n.write_shift(r,t.e.r+1),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c+1),n.write_shift(2,0),n}function Gm(t,e,r,n){var a=r&&r.biff==5;n||(n=ee(a?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,e<<4));var i=0;return t.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function uF(t){var e=ee(8);return e.write_shift(4,0),e.write_shift(2,0),e.write_shift(2,0),e}function fF(t,e,r,n,a,i){var o=ee(8);return Ai(t,e,n,o),bw(r,i,o),o}function hF(t,e,r,n){var a=ee(14);return Ai(t,e,n,a),Ei(r,a),a}function cF(t,e,r){if(r.biff<8)return vF(t,e,r);for(var n=[],a=t.l+e,i=t.read_shift(r.biff>8?4:2);i--!==0;)n.push(jP(t,r.biff>8?12:6,r));if(t.l!=a)throw new Error("Bad ExternSheet: "+t.l+" != "+a);return n}function vF(t,e,r){t[t.l+1]==3&&t[t.l]++;var n=Dw(t,e,r);return n.charCodeAt(0)==3?n.slice(1):n}function dF(t){var e=ee(2+t.length*8);e.write_shift(2,t.length);for(var r=0;r<t.length;++r)kw(t[r],e);return e}function pF(t){var e=ee(24),r=Ut(t[0]);e.write_shift(2,r.r),e.write_shift(2,r.r),e.write_shift(2,r.c),e.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)e.write_shift(1,parseInt(n[a],16));return Kt([e,qP(t[1])])}function gF(t){var e=t[1].Tooltip,r=ee(10+2*(e.length+1));r.write_shift(2,2048);var n=Ut(t[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a<e.length;++a)r.write_shift(2,e.charCodeAt(a));return r.write_shift(2,0),r}function mF(t){return t||(t=ee(4)),t.write_shift(2,1),t.write_shift(2,1),t}function _F(t,e,r){if(!r.cellStyles)return On(t,e);var n=r&&r.biff>=12?4:2,a=t.read_shift(n),i=t.read_shift(n),o=t.read_shift(n),s=t.read_shift(n),l=t.read_shift(2);n==2&&(t.l+=2);var u={s:a,e:i,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(u.level=l>>8&7),u}function yF(t,e){var r=ee(12);r.write_shift(2,e),r.write_shift(2,e),r.write_shift(2,t.width*256),r.write_shift(2,0);var n=0;return t.hidden&&(n|=1),r.write_shift(1,n),n=t.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function xF(t){for(var e=ee(2*t),r=0;r<t;++r)e.write_shift(2,r+1);return e}function wF(t,e,r){var n=ee(15);return bl(n,t,e),n.write_shift(8,r,"f"),n}function TF(t,e,r){var n=ee(9);return bl(n,t,e),n.write_shift(2,r),n}var SF=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=dd({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,l){var u=[],f=Ci(1);switch(l.type){case"base64":f=vn(aa(s));break;case"binary":f=vn(s);break;case"buffer":case"array":f=s;break}Pr(f,0);var h=f.read_shift(1),v=!!(h&136),c=!1,d=!1;switch(h){case 2:break;case 3:break;case 48:c=!0,v=!0;break;case 49:c=!0,v=!0;break;case 131:break;case 139:break;case 140:d=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+h.toString(16))}var p=0,g=521;h==2&&(p=f.read_shift(2)),f.l+=3,h!=2&&(p=f.read_shift(4)),p>1048576&&(p=1e6),h!=2&&(g=f.read_shift(2));var m=f.read_shift(2),_=l.codepage||1252;h!=2&&(f.l+=16,f.read_shift(1),f[f.l]!==0&&(_=t[f[f.l]]),f.l+=1,f.l+=2),d&&(f.l+=36);for(var y=[],w={},E=Math.min(f.length,h==2?521:g-10-(c?264:0)),T=d?32:11;f.l<E&&f[f.l]!=13;)switch(w={},w.name=yf.utils.decode(_,f.slice(f.l,f.l+T)).replace(/[\u0000\r\n].*$/g,""),f.l+=T,w.type=String.fromCharCode(f.read_shift(1)),h!=2&&!d&&(w.offset=f.read_shift(4)),w.len=f.read_shift(1),h==2&&(w.offset=f.read_shift(2)),w.dec=f.read_shift(1),w.name.length&&y.push(w),h!=2&&(f.l+=d?13:14),w.type){case"B":(!c||w.len!=8)&&l.WTF&&console.log("Skipping "+w.name+":"+w.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+w.name+":"+w.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+w.type)}if(f[f.l]!==13&&(f.l=g-1),f.read_shift(1)!==13)throw new Error("DBF Terminator not found "+f.l+" "+f[f.l]);f.l=g;var x=0,C=0;for(u[0]=[],C=0;C!=y.length;++C)u[0][C]=y[C].name;for(;p-- >0;){if(f[f.l]===42){f.l+=m;continue}for(++f.l,u[++x]=[],C=0,C=0;C!=y.length;++C){var S=f.slice(f.l,f.l+y[C].len);f.l+=y[C].len,Pr(S,0);var A=yf.utils.decode(_,S);switch(y[C].type){case"C":A.trim().length&&(u[x][C]=A.replace(/\s+$/,""));break;case"D":A.length===8?u[x][C]=new Date(+A.slice(0,4),+A.slice(4,6)-1,+A.slice(6,8)):u[x][C]=A;break;case"F":u[x][C]=parseFloat(A.trim());break;case"+":case"I":u[x][C]=d?S.read_shift(-4,"i")^2147483648:S.read_shift(4,"i");break;case"L":switch(A.trim().toUpperCase()){case"Y":case"T":u[x][C]=!0;break;case"N":case"F":u[x][C]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+A+"|")}break;case"M":if(!v)throw new Error("DBF Unexpected MEMO for type "+h.toString(16));u[x][C]="##MEMO##"+(d?parseInt(A.trim(),10):S.read_shift(4));break;case"N":A=A.replace(/\u0000/g,"").trim(),A&&A!="."&&(u[x][C]=+A||0);break;case"@":u[x][C]=new Date(S.read_shift(-8,"f")-621356832e5);break;case"T":u[x][C]=new Date((S.read_shift(4)-2440588)*864e5+S.read_shift(4));break;case"Y":u[x][C]=S.read_shift(4,"i")/1e4+S.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[x][C]=-S.read_shift(-8,"f");break;case"B":if(c&&y[C].len==8){u[x][C]=S.read_shift(8,"f");break}case"G":case"P":S.l+=y[C].len;break;case"0":if(y[C].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+y[C].type)}}}if(h!=2&&f.l<f.length&&f[f.l++]!=26)throw new Error("DBF EOF Marker missing "+(f.l-1)+" of "+f.length+" "+f[f.l-1].toString(16));return l&&l.sheetRows&&(u=u.slice(0,l.sheetRows)),l.DBF=y,u}function n(s,l){var u=l||{};u.dateNF||(u.dateNF="yyyymmdd");var f=Uo(r(s,u),u);return f["!cols"]=u.DBF.map(function(h){return{wch:h.len,DBF:h}}),delete u.DBF,f}function a(s,l){try{return Mi(n(s,l),l)}catch(u){if(l&&l.WTF)throw u}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,l){var u=l||{};if(+u.codepage>=0&&ll(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var f=Ar(),h=Lf(s,{header:1,raw:!0,cellDates:!0}),v=h[0],c=h.slice(1),d=s["!cols"]||[],p=0,g=0,m=0,_=1;for(p=0;p<v.length;++p){if(((d[p]||{}).DBF||{}).name){v[p]=d[p].DBF.name,++m;continue}if(v[p]!=null){if(++m,typeof v[p]=="number"&&(v[p]=v[p].toString(10)),typeof v[p]!="string")throw new Error("DBF Invalid column name "+v[p]+" |"+typeof v[p]+"|");if(v.indexOf(v[p])!==p){for(g=0;g<1024;++g)if(v.indexOf(v[p]+"_"+g)==-1){v[p]+="_"+g;break}}}}var y=gt(s["!ref"]),w=[],E=[],T=[];for(p=0;p<=y.e.c-y.s.c;++p){var x="",C="",S=0,A=[];for(g=0;g<c.length;++g)c[g][p]!=null&&A.push(c[g][p]);if(A.length==0||v[p]==null){w[p]="?";continue}for(g=0;g<A.length;++g){switch(typeof A[g]){case"number":C="B";break;case"string":C="C";break;case"boolean":C="L";break;case"object":C=A[g]instanceof Date?"D":"C";break;default:C="C"}S=Math.max(S,String(A[g]).length),x=x&&x!=C?"C":C}S>250&&(S=250),C=((d[p]||{}).DBF||{}).type,C=="C"&&d[p].DBF.len>S&&(S=d[p].DBF.len),x=="B"&&C=="N"&&(x="N",T[p]=d[p].DBF.dec,S=d[p].DBF.len),E[p]=x=="C"||C=="N"?S:i[x]||0,_+=E[p],w[p]=x}var M=f.next(32);for(M.write_shift(4,318902576),M.write_shift(4,c.length),M.write_shift(2,296+32*m),M.write_shift(2,_),p=0;p<4;++p)M.write_shift(4,0);for(M.write_shift(4,0|(+e[L2]||3)<<8),p=0,g=0;p<v.length;++p)if(v[p]!=null){var L=f.next(32),N=(v[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);L.write_shift(1,N,"sbcs"),L.write_shift(1,w[p]=="?"?"C":w[p],"sbcs"),L.write_shift(4,g),L.write_shift(1,E[p]||i[w[p]]||0),L.write_shift(1,T[p]||0),L.write_shift(1,2),L.write_shift(4,0),L.write_shift(1,0),L.write_shift(4,0),L.write_shift(4,0),g+=E[p]||i[w[p]]||0}var V=f.next(264);for(V.write_shift(4,13),p=0;p<65;++p)V.write_shift(4,0);for(p=0;p<c.length;++p){var W=f.next(_);for(W.write_shift(1,0),g=0;g<v.length;++g)if(v[g]!=null)switch(w[g]){case"L":W.write_shift(1,c[p][g]==null?63:c[p][g]?84:70);break;case"B":W.write_shift(8,c[p][g]||0,"f");break;case"N":var te="0";for(typeof c[p][g]=="number"&&(te=c[p][g].toFixed(T[g]||0)),m=0;m<E[g]-te.length;++m)W.write_shift(1,32);W.write_shift(1,te,"sbcs");break;case"D":c[p][g]?(W.write_shift(4,("0000"+c[p][g].getFullYear()).slice(-4),"sbcs"),W.write_shift(2,("00"+(c[p][g].getMonth()+1)).slice(-2),"sbcs"),W.write_shift(2,("00"+c[p][g].getDate()).slice(-2),"sbcs")):W.write_shift(8,"00000000","sbcs");break;case"C":var _e=String(c[p][g]!=null?c[p][g]:"").slice(0,E[g]);for(W.write_shift(1,_e,"sbcs"),m=0;m<E[g]-_e.length;++m)W.write_shift(1,32);break}}return f.next(1).write_shift(1,26),f.end()}return{to_workbook:a,to_sheet:n,from_sheet:o}}(),CF=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("\x1BN("+Jt(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(v,c){var d=t[c];return typeof d=="number"?hm(d):d},n=function(v,c,d){var p=c.charCodeAt(0)-32<<4|d.charCodeAt(0)-48;return p==59?v:hm(p)};t["|"]=254;function a(v,c){switch(c.type){case"base64":return i(aa(v),c);case"binary":return i(v,c);case"buffer":return i(Ke&&Buffer.isBuffer(v)?v.toString("binary"):Tl(v),c);case"array":return i(ph(v),c)}throw new Error("Unrecognized type "+c.type)}function i(v,c){var d=v.split(/[\n\r]+/),p=-1,g=-1,m=0,_=0,y=[],w=[],E=null,T={},x=[],C=[],S=[],A=0,M;for(+c.codepage>=0&&ll(+c.codepage);m!==d.length;++m){A=0;var L=d[m].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(e,r),N=L.replace(/;;/g,"\0").split(";").map(function(U){return U.replace(/\u0000/g,";")}),V=N[0],W;if(L.length>0)switch(V){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":N[1].charAt(0)=="P"&&w.push(L.slice(3).replace(/;;/g,";"));break;case"C":var te=!1,_e=!1,ve=!1,fe=!1,J=-1,re=-1;for(_=1;_<N.length;++_)switch(N[_].charAt(0)){case"A":break;case"X":g=parseInt(N[_].slice(1))-1,_e=!0;break;case"Y":for(p=parseInt(N[_].slice(1))-1,_e||(g=0),M=y.length;M<=p;++M)y[M]=[];break;case"K":W=N[_].slice(1),W.charAt(0)==='"'?W=W.slice(1,W.length-1):W==="TRUE"?W=!0:W==="FALSE"?W=!1:isNaN(Qn(W))?isNaN(fl(W).getDate())||(W=dr(W)):(W=Qn(W),E!==null&&z2(E)&&(W=K2(W))),te=!0;break;case"E":fe=!0;var I=TO(N[_].slice(1),{r:p,c:g});y[p][g]=[y[p][g],I];break;case"S":ve=!0,y[p][g]=[y[p][g],"S5S"];break;case"G":break;case"R":J=parseInt(N[_].slice(1))-1;break;case"C":re=parseInt(N[_].slice(1))-1;break;default:if(c&&c.WTF)throw new Error("SYLK bad record "+L)}if(te&&(y[p][g]&&y[p][g].length==2?y[p][g][0]=W:y[p][g]=W,E=null),ve){if(fe)throw new Error("SYLK shared formula cannot have own formula");var G=J>-1&&y[J][re];if(!G||!G[1])throw new Error("SYLK shared formula cannot find base");y[p][g][1]=SO(G[1],{r:p-J,c:g-re})}break;case"F":var B=0;for(_=1;_<N.length;++_)switch(N[_].charAt(0)){case"X":g=parseInt(N[_].slice(1))-1,++B;break;case"Y":for(p=parseInt(N[_].slice(1))-1,M=y.length;M<=p;++M)y[M]=[];break;case"M":A=parseInt(N[_].slice(1))/20;break;case"F":break;case"G":break;case"P":E=w[parseInt(N[_].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(S=N[_].slice(1).split(" "),M=parseInt(S[0],10);M<=parseInt(S[1],10);++M)A=parseInt(S[2],10),C[M-1]=A===0?{hidden:!0}:{wch:A},Ad(C[M-1]);break;case"C":g=parseInt(N[_].slice(1))-1,C[g]||(C[g]={});break;case"R":p=parseInt(N[_].slice(1))-1,x[p]||(x[p]={}),A>0?(x[p].hpt=A,x[p].hpx=Fw(A)):A===0&&(x[p].hidden=!0);break;default:if(c&&c.WTF)throw new Error("SYLK bad record "+L)}B<1&&(E=null);break;default:if(c&&c.WTF)throw new Error("SYLK bad record "+L)}}return x.length>0&&(T["!rows"]=x),C.length>0&&(T["!cols"]=C),c&&c.sheetRows&&(y=y.slice(0,c.sheetRows)),[y,T]}function o(v,c){var d=a(v,c),p=d[0],g=d[1],m=Uo(p,c);return Jt(g).forEach(function(_){m[_]=g[_]}),m}function s(v,c){return Mi(o(v,c),c)}function l(v,c,d,p){var g="C;Y"+(d+1)+";X"+(p+1)+";K";switch(v.t){case"n":g+=v.v||0,v.f&&!v.F&&(g+=";E"+Dd(v.f,{r:d,c:p}));break;case"b":g+=v.v?"TRUE":"FALSE";break;case"e":g+=v.w||v.v;break;case"d":g+='"'+(v.w||v.v)+'"';break;case"s":g+='"'+v.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function u(v,c){c.forEach(function(d,p){var g="F;W"+(p+1)+" "+(p+1)+" ";d.hidden?g+="0":(typeof d.width=="number"&&!d.wpx&&(d.wpx=Df(d.width)),typeof d.wpx=="number"&&!d.wch&&(d.wch=Mf(d.wpx)),typeof d.wch=="number"&&(g+=Math.round(d.wch))),g.charAt(g.length-1)!=" "&&v.push(g)})}function f(v,c){c.forEach(function(d,p){var g="F;";d.hidden?g+="M0;":d.hpt?g+="M"+20*d.hpt+";":d.hpx&&(g+="M"+20*kf(d.hpx)+";"),g.length>2&&v.push(g+"R"+(p+1))})}function h(v,c){var d=["ID;PWXL;N;E"],p=[],g=gt(v["!ref"]),m,_=Array.isArray(v),y=`\r
66
+ `;d.push("P;PGeneral"),d.push("F;P0;DG0G8;M255"),v["!cols"]&&u(d,v["!cols"]),v["!rows"]&&f(d,v["!rows"]),d.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var w=g.s.r;w<=g.e.r;++w)for(var E=g.s.c;E<=g.e.c;++E){var T=ot({r:w,c:E});m=_?(v[w]||[])[E]:v[T],!(!m||m.v==null&&(!m.f||m.F))&&p.push(l(m,v,w,E))}return d.join(y)+y+p.join(y)+y+"E"+y}return{to_workbook:s,to_sheet:o,from_sheet:h}}(),EF=function(){function t(i,o){switch(o.type){case"base64":return e(aa(i),o);case"binary":return e(i,o);case"buffer":return e(Ke&&Buffer.isBuffer(i)?i.toString("binary"):Tl(i),o);case"array":return e(ph(i),o)}throw new Error("Unrecognized type "+o.type)}function e(i,o){for(var s=i.split(`
67
+ `),l=-1,u=-1,f=0,h=[];f!==s.length;++f){if(s[f].trim()==="BOT"){h[++l]=[],u=0;continue}if(!(l<0)){var v=s[f].trim().split(","),c=v[0],d=v[1];++f;for(var p=s[f]||"";(p.match(/["]/g)||[]).length&1&&f<s.length-1;)p+=`
68
+ `+s[++f];switch(p=p.trim(),+c){case-1:if(p==="BOT"){h[++l]=[],u=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?h[l][u]=!0:p==="FALSE"?h[l][u]=!1:isNaN(Qn(d))?isNaN(fl(d).getDate())?h[l][u]=d:h[l][u]=dr(d):h[l][u]=Qn(d),++u;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),h[l][u++]=p!==""?p:null;break}if(p==="EOD")break}}return o&&o.sheetRows&&(h=h.slice(0,o.sheetRows)),h}function r(i,o){return Uo(t(i,o),o)}function n(i,o){return Mi(r(i,o),o)}var a=function(){var i=function(l,u,f,h,v){l.push(u),l.push(f+","+h),l.push('"'+v.replace(/"/g,'""')+'"')},o=function(l,u,f,h){l.push(u+","+f),l.push(u==1?'"'+h.replace(/"/g,'""')+'"':h)};return function(l){var u=[],f=gt(l["!ref"]),h,v=Array.isArray(l);i(u,"TABLE",0,1,"sheetjs"),i(u,"VECTORS",0,f.e.r-f.s.r+1,""),i(u,"TUPLES",0,f.e.c-f.s.c+1,""),i(u,"DATA",0,0,"");for(var c=f.s.r;c<=f.e.r;++c){o(u,-1,0,"BOT");for(var d=f.s.c;d<=f.e.c;++d){var p=ot({r:c,c:d});if(h=v?(l[c]||[])[d]:l[p],!h){o(u,1,0,"");continue}switch(h.t){case"n":var g=h.w;!g&&h.v!=null&&(g=h.v),g==null?h.f&&!h.F?o(u,1,0,"="+h.f):o(u,1,0,""):o(u,0,g,"V");break;case"b":o(u,0,h.v?1:0,h.v?"TRUE":"FALSE");break;case"s":o(u,1,0,isNaN(h.v)?h.v:'="'+h.v+'"');break;case"d":h.w||(h.w=Oa(h.z||Et[14],kr(dr(h.v)))),o(u,0,h.w,"V");break;default:o(u,1,0,"")}}}o(u,-1,0,"EOD");var m=`\r
69
+ `,_=u.join(m);return _}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),Iw=function(){function t(h){return h.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
70
+ `)}function e(h){return h.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(h,v){for(var c=h.split(`
71
+ `),d=-1,p=-1,g=0,m=[];g!==c.length;++g){var _=c[g].trim().split(":");if(_[0]==="cell"){var y=Ut(_[1]);if(m.length<=y.r)for(d=m.length;d<=y.r;++d)m[d]||(m[d]=[]);switch(d=y.r,p=y.c,_[2]){case"t":m[d][p]=t(_[3]);break;case"v":m[d][p]=+_[3];break;case"vtf":var w=_[_.length-1];case"vtc":switch(_[3]){case"nl":m[d][p]=!!+_[4];break;default:m[d][p]=+_[4];break}_[2]=="vtf"&&(m[d][p]=[m[d][p],w])}}}return v&&v.sheetRows&&(m=m.slice(0,v.sheetRows)),m}function n(h,v){return Uo(r(h,v),v)}function a(h,v){return Mi(n(h,v),v)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
72
+ `),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
73
+ `)+`
74
+ `,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
75
+ `),l="--SocialCalcSpreadsheetControlSave--";function u(h){if(!h||!h["!ref"])return"";for(var v=[],c=[],d,p="",g=Ur(h["!ref"]),m=Array.isArray(h),_=g.s.r;_<=g.e.r;++_)for(var y=g.s.c;y<=g.e.c;++y)if(p=ot({r:_,c:y}),d=m?(h[_]||[])[y]:h[p],!(!d||d.v==null||d.t==="z")){switch(c=["cell",p,"t"],d.t){case"s":case"str":c.push(e(d.v));break;case"n":d.f?(c[2]="vtf",c[3]="n",c[4]=d.v,c[5]=e(d.f)):(c[2]="v",c[3]=d.v);break;case"b":c[2]="vt"+(d.f?"f":"c"),c[3]="nl",c[4]=d.v?"1":"0",c[5]=e(d.f||(d.v?"TRUE":"FALSE"));break;case"d":var w=kr(dr(d.v));c[2]="vtc",c[3]="nd",c[4]=""+w,c[5]=d.w||Oa(d.z||Et[14],w);break;case"e":continue}v.push(c.join(":"))}return v.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),v.push("valueformat:1:text-wiki"),v.join(`
76
+ `)}function f(h){return[i,o,s,o,u(h),l].join(`
77
+ `)}return{to_workbook:a,to_sheet:n,from_sheet:f}}(),AF=function(){function t(f,h,v,c,d){d.raw?h[v][c]=f:f===""||(f==="TRUE"?h[v][c]=!0:f==="FALSE"?h[v][c]=!1:isNaN(Qn(f))?isNaN(fl(f).getDate())?h[v][c]=f:h[v][c]=dr(f):h[v][c]=Qn(f))}function e(f,h){var v=h||{},c=[];if(!f||f.length===0)return c;for(var d=f.split(/[\r\n]/),p=d.length-1;p>=0&&d[p].length===0;)--p;for(var g=10,m=0,_=0;_<=p;++_)m=d[_].indexOf(" "),m==-1?m=d[_].length:m++,g=Math.max(g,m);for(_=0;_<=p;++_){c[_]=[];var y=0;for(t(d[_].slice(0,g).trim(),c,_,y,v),y=1;y<=(d[_].length-g)/10+1;++y)t(d[_].slice(g+(y-1)*10,g+y*10).trim(),c,_,y,v)}return v.sheetRows&&(c=c.slice(0,v.sheetRows)),c}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(f){for(var h={},v=!1,c=0,d=0;c<f.length;++c)(d=f.charCodeAt(c))==34?v=!v:!v&&d in r&&(h[d]=(h[d]||0)+1);d=[];for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&d.push([h[c],c]);if(!d.length){h=n;for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&d.push([h[c],c])}return d.sort(function(p,g){return p[0]-g[0]||n[p[1]]-n[g[1]]}),r[d.pop()[1]]||44}function i(f,h){var v=h||{},c="",d=v.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};f.slice(0,4)=="sep="?f.charCodeAt(5)==13&&f.charCodeAt(6)==10?(c=f.charAt(4),f=f.slice(7)):f.charCodeAt(5)==13||f.charCodeAt(5)==10?(c=f.charAt(4),f=f.slice(6)):c=a(f.slice(0,1024)):v&&v.FS?c=v.FS:c=a(f.slice(0,1024));var g=0,m=0,_=0,y=0,w=0,E=c.charCodeAt(0),T=!1,x=0,C=f.charCodeAt(0);f=f.replace(/\r\n/mg,`
78
+ `);var S=v.dateNF!=null?WR(v.dateNF):null;function A(){var M=f.slice(y,w),L={};if(M.charAt(0)=='"'&&M.charAt(M.length-1)=='"'&&(M=M.slice(1,-1).replace(/""/g,'"')),M.length===0)L.t="z";else if(v.raw)L.t="s",L.v=M;else if(M.trim().length===0)L.t="s",L.v=M;else if(M.charCodeAt(0)==61)M.charCodeAt(1)==34&&M.charCodeAt(M.length-1)==34?(L.t="s",L.v=M.slice(2,-1).replace(/""/g,'"')):CO(M)?(L.t="n",L.f=M.slice(1)):(L.t="s",L.v=M);else if(M=="TRUE")L.t="b",L.v=!0;else if(M=="FALSE")L.t="b",L.v=!1;else if(!isNaN(_=Qn(M)))L.t="n",v.cellText!==!1&&(L.w=M),L.v=_;else if(!isNaN(fl(M).getDate())||S&&M.match(S)){L.z=v.dateNF||Et[14];var N=0;S&&M.match(S)&&(M=VR(M,v.dateNF,M.match(S)||[]),N=1),v.cellDates?(L.t="d",L.v=dr(M,N)):(L.t="n",L.v=kr(dr(M,N))),v.cellText!==!1&&(L.w=Oa(L.z,L.v instanceof Date?kr(L.v):L.v)),v.cellNF||delete L.z}else L.t="s",L.v=M;if(L.t=="z"||(v.dense?(d[g]||(d[g]=[]),d[g][m]=L):d[ot({c:m,r:g})]=L),y=w+1,C=f.charCodeAt(y),p.e.c<m&&(p.e.c=m),p.e.r<g&&(p.e.r=g),x==E)++m;else if(m=0,++g,v.sheetRows&&v.sheetRows<=g)return!0}e:for(;w<f.length;++w)switch(x=f.charCodeAt(w)){case 34:C===34&&(T=!T);break;case E:case 10:case 13:if(!T&&A())break e;break}return w-y>0&&A(),d["!ref"]=Rt(p),d}function o(f,h){return!(h&&h.PRN)||h.FS||f.slice(0,4)=="sep="||f.indexOf(" ")>=0||f.indexOf(",")>=0||f.indexOf(";")>=0?i(f,h):Uo(e(f,h),h)}function s(f,h){var v="",c=h.type=="string"?[0,0,0,0]:B6(f,h);switch(h.type){case"base64":v=aa(f);break;case"binary":v=f;break;case"buffer":h.codepage==65001?v=f.toString("utf8"):h.codepage&&typeof yf<"u"||(v=Ke&&Buffer.isBuffer(f)?f.toString("binary"):Tl(f));break;case"array":v=ph(f);break;case"string":v=f;break;default:throw new Error("Unrecognized type "+h.type)}return c[0]==239&&c[1]==187&&c[2]==191?v=Ws(v.slice(3)):h.type!="string"&&h.type!="buffer"&&h.codepage==65001?v=Ws(v):h.type=="binary"&&typeof yf<"u",v.slice(0,19)=="socialcalc:version:"?Iw.to_sheet(h.type=="string"?v:Ws(v),h):o(v,h)}function l(f,h){return Mi(s(f,h),h)}function u(f){for(var h=[],v=gt(f["!ref"]),c,d=Array.isArray(f),p=v.s.r;p<=v.e.r;++p){for(var g=[],m=v.s.c;m<=v.e.c;++m){var _=ot({r:p,c:m});if(c=d?(f[p]||[])[m]:f[_],!c||c.v==null){g.push(" ");continue}for(var y=(c.w||(ia(c),c.w)||"").slice(0,10);y.length<10;)y+=" ";g.push(y+(m===0?" ":""))}h.push(g.join(""))}return h.join(`
79
+ `)}return{to_workbook:l,to_sheet:s,from_sheet:u}}(),Wm=function(){function t(I,G,B){if(I){Pr(I,I.l||0);for(var U=B.Enum||J;I.l<I.length;){var q=I.read_shift(2),ce=U[q]||U[65535],Ce=I.read_shift(2),ge=I.l+Ce,ue=ce.f&&ce.f(I,Ce,B);if(I.l=ge,G(ue,ce,q))return}}}function e(I,G){switch(G.type){case"base64":return r(vn(aa(I)),G);case"binary":return r(vn(I),G);case"buffer":case"array":return r(I,G)}throw"Unsupported type "+G.type}function r(I,G){if(!I)return I;var B=G||{},U=B.dense?[]:{},q="Sheet1",ce="",Ce=0,ge={},ue=[],Te=[],we={s:{r:0,c:0},e:{r:0,c:0}},st=B.sheetRows||0;if(I[2]==0&&(I[3]==8||I[3]==9)&&I.length>=16&&I[14]==5&&I[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(I[2]==2)B.Enum=J,t(I,function(Ee,Qt,Ot){switch(Ot){case 0:B.vers=Ee,Ee>=4096&&(B.qpro=!0);break;case 6:we=Ee;break;case 204:Ee&&(ce=Ee);break;case 222:ce=Ee;break;case 15:case 51:B.qpro||(Ee[1].v=Ee[1].v.slice(1));case 13:case 14:case 16:Ot==14&&(Ee[2]&112)==112&&(Ee[2]&15)>1&&(Ee[2]&15)<15&&(Ee[1].z=B.dateNF||Et[14],B.cellDates&&(Ee[1].t="d",Ee[1].v=K2(Ee[1].v))),B.qpro&&Ee[3]>Ce&&(U["!ref"]=Rt(we),ge[q]=U,ue.push(q),U=B.dense?[]:{},we={s:{r:0,c:0},e:{r:0,c:0}},Ce=Ee[3],q=ce||"Sheet"+(Ce+1),ce="");var pr=B.dense?(U[Ee[0].r]||[])[Ee[0].c]:U[ot(Ee[0])];if(pr){pr.t=Ee[1].t,pr.v=Ee[1].v,Ee[1].z!=null&&(pr.z=Ee[1].z),Ee[1].f!=null&&(pr.f=Ee[1].f);break}B.dense?(U[Ee[0].r]||(U[Ee[0].r]=[]),U[Ee[0].r][Ee[0].c]=Ee[1]):U[ot(Ee[0])]=Ee[1];break}},B);else if(I[2]==26||I[2]==14)B.Enum=re,I[2]==14&&(B.qpro=!0,I.l=0),t(I,function(Ee,Qt,Ot){switch(Ot){case 204:q=Ee;break;case 22:Ee[1].v=Ee[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Ee[3]>Ce&&(U["!ref"]=Rt(we),ge[q]=U,ue.push(q),U=B.dense?[]:{},we={s:{r:0,c:0},e:{r:0,c:0}},Ce=Ee[3],q="Sheet"+(Ce+1)),st>0&&Ee[0].r>=st)break;B.dense?(U[Ee[0].r]||(U[Ee[0].r]=[]),U[Ee[0].r][Ee[0].c]=Ee[1]):U[ot(Ee[0])]=Ee[1],we.e.c<Ee[0].c&&(we.e.c=Ee[0].c),we.e.r<Ee[0].r&&(we.e.r=Ee[0].r);break;case 27:Ee[14e3]&&(Te[Ee[14e3][0]]=Ee[14e3][1]);break;case 1537:Te[Ee[0]]=Ee[1],Ee[0]==Ce&&(q=Ee[1]);break}},B);else throw new Error("Unrecognized LOTUS BOF "+I[2]);if(U["!ref"]=Rt(we),ge[ce||q]=U,ue.push(ce||q),!Te.length)return{SheetNames:ue,Sheets:ge};for(var Le={},Mt=[],$e=0;$e<Te.length;++$e)ge[ue[$e]]?(Mt.push(Te[$e]||ue[$e]),Le[Te[$e]]=ge[Te[$e]]||ge[ue[$e]]):(Mt.push(Te[$e]),Le[Te[$e]]={"!ref":"A1"});return{SheetNames:Mt,Sheets:Le}}function n(I,G){var B=G||{};if(+B.codepage>=0&&ll(+B.codepage),B.type=="string")throw new Error("Cannot write WK1 to JS string");var U=Ar(),q=gt(I["!ref"]),ce=Array.isArray(I),Ce=[];xe(U,0,i(1030)),xe(U,6,l(q));for(var ge=Math.min(q.e.r,8191),ue=q.s.r;ue<=ge;++ue)for(var Te=qt(ue),we=q.s.c;we<=q.e.c;++we){ue===q.s.r&&(Ce[we]=ir(we));var st=Ce[we]+Te,Le=ce?(I[ue]||[])[we]:I[st];if(!(!Le||Le.t=="z"))if(Le.t=="n")(Le.v|0)==Le.v&&Le.v>=-32768&&Le.v<=32767?xe(U,13,c(ue,we,Le.v)):xe(U,14,p(ue,we,Le.v));else{var Mt=ia(Le);xe(U,15,h(ue,we,Mt.slice(0,239)))}}return xe(U,1),U.end()}function a(I,G){var B=G||{};if(+B.codepage>=0&&ll(+B.codepage),B.type=="string")throw new Error("Cannot write WK3 to JS string");var U=Ar();xe(U,0,o(I));for(var q=0,ce=0;q<I.SheetNames.length;++q)(I.Sheets[I.SheetNames[q]]||{})["!ref"]&&xe(U,27,fe(I.SheetNames[q],ce++));var Ce=0;for(q=0;q<I.SheetNames.length;++q){var ge=I.Sheets[I.SheetNames[q]];if(!(!ge||!ge["!ref"])){for(var ue=gt(ge["!ref"]),Te=Array.isArray(ge),we=[],st=Math.min(ue.e.r,8191),Le=ue.s.r;Le<=st;++Le)for(var Mt=qt(Le),$e=ue.s.c;$e<=ue.e.c;++$e){Le===ue.s.r&&(we[$e]=ir($e));var Ee=we[$e]+Mt,Qt=Te?(ge[Le]||[])[$e]:ge[Ee];if(!(!Qt||Qt.t=="z"))if(Qt.t=="n")xe(U,23,A(Le,$e,Ce,Qt.v));else{var Ot=ia(Qt);xe(U,22,x(Le,$e,Ce,Ot.slice(0,239)))}}++Ce}}return xe(U,1),U.end()}function i(I){var G=ee(2);return G.write_shift(2,I),G}function o(I){var G=ee(26);G.write_shift(2,4096),G.write_shift(2,4),G.write_shift(4,0);for(var B=0,U=0,q=0,ce=0;ce<I.SheetNames.length;++ce){var Ce=I.SheetNames[ce],ge=I.Sheets[Ce];if(!(!ge||!ge["!ref"])){++q;var ue=Ur(ge["!ref"]);B<ue.e.r&&(B=ue.e.r),U<ue.e.c&&(U=ue.e.c)}}return B>8191&&(B=8191),G.write_shift(2,B),G.write_shift(1,q),G.write_shift(1,U),G.write_shift(2,0),G.write_shift(2,0),G.write_shift(1,1),G.write_shift(1,2),G.write_shift(4,0),G.write_shift(4,0),G}function s(I,G,B){var U={s:{c:0,r:0},e:{c:0,r:0}};return G==8&&B.qpro?(U.s.c=I.read_shift(1),I.l++,U.s.r=I.read_shift(2),U.e.c=I.read_shift(1),I.l++,U.e.r=I.read_shift(2),U):(U.s.c=I.read_shift(2),U.s.r=I.read_shift(2),G==12&&B.qpro&&(I.l+=2),U.e.c=I.read_shift(2),U.e.r=I.read_shift(2),G==12&&B.qpro&&(I.l+=2),U.s.c==65535&&(U.s.c=U.e.c=U.s.r=U.e.r=0),U)}function l(I){var G=ee(8);return G.write_shift(2,I.s.c),G.write_shift(2,I.s.r),G.write_shift(2,I.e.c),G.write_shift(2,I.e.r),G}function u(I,G,B){var U=[{c:0,r:0},{t:"n",v:0},0,0];return B.qpro&&B.vers!=20768?(U[0].c=I.read_shift(1),U[3]=I.read_shift(1),U[0].r=I.read_shift(2),I.l+=2):(U[2]=I.read_shift(1),U[0].c=I.read_shift(2),U[0].r=I.read_shift(2)),U}function f(I,G,B){var U=I.l+G,q=u(I,G,B);if(q[1].t="s",B.vers==20768){I.l++;var ce=I.read_shift(1);return q[1].v=I.read_shift(ce,"utf8"),q}return B.qpro&&I.l++,q[1].v=I.read_shift(U-I.l,"cstr"),q}function h(I,G,B){var U=ee(7+B.length);U.write_shift(1,255),U.write_shift(2,G),U.write_shift(2,I),U.write_shift(1,39);for(var q=0;q<U.length;++q){var ce=B.charCodeAt(q);U.write_shift(1,ce>=128?95:ce)}return U.write_shift(1,0),U}function v(I,G,B){var U=u(I,G,B);return U[1].v=I.read_shift(2,"i"),U}function c(I,G,B){var U=ee(7);return U.write_shift(1,255),U.write_shift(2,G),U.write_shift(2,I),U.write_shift(2,B,"i"),U}function d(I,G,B){var U=u(I,G,B);return U[1].v=I.read_shift(8,"f"),U}function p(I,G,B){var U=ee(13);return U.write_shift(1,255),U.write_shift(2,G),U.write_shift(2,I),U.write_shift(8,B,"f"),U}function g(I,G,B){var U=I.l+G,q=u(I,G,B);if(q[1].v=I.read_shift(8,"f"),B.qpro)I.l=U;else{var ce=I.read_shift(2);w(I.slice(I.l,I.l+ce),q),I.l+=ce}return q}function m(I,G,B){var U=G&32768;return G&=-32769,G=(U?I:0)+(G>=8192?G-16384:G),(U?"":"$")+(B?ir(G):qt(G))}var _={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function w(I,G){Pr(I,0);for(var B=[],U=0,q="",ce="",Ce="",ge="";I.l<I.length;){var ue=I[I.l++];switch(ue){case 0:B.push(I.read_shift(8,"f"));break;case 1:ce=m(G[0].c,I.read_shift(2),!0),q=m(G[0].r,I.read_shift(2),!1),B.push(ce+q);break;case 2:{var Te=m(G[0].c,I.read_shift(2),!0),we=m(G[0].r,I.read_shift(2),!1);ce=m(G[0].c,I.read_shift(2),!0),q=m(G[0].r,I.read_shift(2),!1),B.push(Te+we+":"+ce+q)}break;case 3:if(I.l<I.length){console.error("WK1 premature formula end");return}break;case 4:B.push("("+B.pop()+")");break;case 5:B.push(I.read_shift(2));break;case 6:{for(var st="";ue=I[I.l++];)st+=String.fromCharCode(ue);B.push('"'+st.replace(/"/g,'""')+'"')}break;case 8:B.push("-"+B.pop());break;case 23:B.push("+"+B.pop());break;case 22:B.push("NOT("+B.pop()+")");break;case 20:case 21:ge=B.pop(),Ce=B.pop(),B.push(["AND","OR"][ue-20]+"("+Ce+","+ge+")");break;default:if(ue<32&&y[ue])ge=B.pop(),Ce=B.pop(),B.push(Ce+y[ue]+ge);else if(_[ue]){if(U=_[ue][1],U==69&&(U=I[I.l++]),U>B.length){console.error("WK1 bad formula parse 0x"+ue.toString(16)+":|"+B.join("|")+"|");return}var Le=B.slice(-U);B.length-=U,B.push(_[ue][0]+"("+Le.join(",")+")")}else return ue<=7?console.error("WK1 invalid opcode "+ue.toString(16)):ue<=24?console.error("WK1 unsupported op "+ue.toString(16)):ue<=30?console.error("WK1 invalid opcode "+ue.toString(16)):ue<=115?console.error("WK1 unsupported function opcode "+ue.toString(16)):console.error("WK1 unrecognized opcode "+ue.toString(16))}}B.length==1?G[1].f=""+B[0]:console.error("WK1 bad formula parse |"+B.join("|")+"|")}function E(I){var G=[{c:0,r:0},{t:"n",v:0},0];return G[0].r=I.read_shift(2),G[3]=I[I.l++],G[0].c=I[I.l++],G}function T(I,G){var B=E(I);return B[1].t="s",B[1].v=I.read_shift(G-4,"cstr"),B}function x(I,G,B,U){var q=ee(6+U.length);q.write_shift(2,I),q.write_shift(1,B),q.write_shift(1,G),q.write_shift(1,39);for(var ce=0;ce<U.length;++ce){var Ce=U.charCodeAt(ce);q.write_shift(1,Ce>=128?95:Ce)}return q.write_shift(1,0),q}function C(I,G){var B=E(I);B[1].v=I.read_shift(2);var U=B[1].v>>1;if(B[1].v&1)switch(U&7){case 0:U=(U>>3)*5e3;break;case 1:U=(U>>3)*500;break;case 2:U=(U>>3)/20;break;case 3:U=(U>>3)/200;break;case 4:U=(U>>3)/2e3;break;case 5:U=(U>>3)/2e4;break;case 6:U=(U>>3)/16;break;case 7:U=(U>>3)/64;break}return B[1].v=U,B}function S(I,G){var B=E(I),U=I.read_shift(4),q=I.read_shift(4),ce=I.read_shift(2);if(ce==65535)return U===0&&q===3221225472?(B[1].t="e",B[1].v=15):U===0&&q===3489660928?(B[1].t="e",B[1].v=42):B[1].v=0,B;var Ce=ce&32768;return ce=(ce&32767)-16446,B[1].v=(1-Ce*2)*(q*Math.pow(2,ce+32)+U*Math.pow(2,ce)),B}function A(I,G,B,U){var q=ee(14);if(q.write_shift(2,I),q.write_shift(1,B),q.write_shift(1,G),U==0)return q.write_shift(4,0),q.write_shift(4,0),q.write_shift(2,65535),q;var ce=0,Ce=0,ge=0,ue=0;return U<0&&(ce=1,U=-U),Ce=Math.log2(U)|0,U/=Math.pow(2,Ce-31),ue=U>>>0,ue&2147483648||(U/=2,++Ce,ue=U>>>0),U-=ue,ue|=2147483648,ue>>>=0,U*=Math.pow(2,32),ge=U>>>0,q.write_shift(4,ge),q.write_shift(4,ue),Ce+=16383+(ce?32768:0),q.write_shift(2,Ce),q}function M(I,G){var B=S(I);return I.l+=G-14,B}function L(I,G){var B=E(I),U=I.read_shift(4);return B[1].v=U>>6,B}function N(I,G){var B=E(I),U=I.read_shift(8,"f");return B[1].v=U,B}function V(I,G){var B=N(I);return I.l+=G-10,B}function W(I,G){return I[I.l+G-1]==0?I.read_shift(G,"cstr"):""}function te(I,G){var B=I[I.l++];B>G-1&&(B=G-1);for(var U="";U.length<B;)U+=String.fromCharCode(I[I.l++]);return U}function _e(I,G,B){if(!(!B.qpro||G<21)){var U=I.read_shift(1);I.l+=17,I.l+=1,I.l+=2;var q=I.read_shift(G-21,"cstr");return[U,q]}}function ve(I,G){for(var B={},U=I.l+G;I.l<U;){var q=I.read_shift(2);if(q==14e3){for(B[q]=[0,""],B[q][0]=I.read_shift(2);I[I.l];)B[q][1]+=String.fromCharCode(I[I.l]),I.l++;I.l++}}return B}function fe(I,G){var B=ee(5+I.length);B.write_shift(2,14e3),B.write_shift(2,G);for(var U=0;U<I.length;++U){var q=I.charCodeAt(U);B[B.l++]=q>127?95:q}return B[B.l++]=0,B}var J={0:{n:"BOF",f:Aw},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:v},14:{n:"NUMBER",f:d},15:{n:"LABEL",f},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:W},222:{n:"SHEETNAMELP",f:te},65535:{n:""}},re={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:T},23:{n:"NUMBER17",f:S},24:{n:"NUMBER18",f:C},25:{n:"FORMULA19",f:M},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ve},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:L},38:{n:"??"},39:{n:"NUMBER27",f:N},40:{n:"FORMULA28",f:V},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:W},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:_e},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:e}}(),bF=/^\s|\s$|[\t\n\r]/;function Lw(t,e){if(!e.bookSST)return"";var r=[Pt];r[r.length]=ye("sst",null,{xmlns:Bo[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(t[n]!=null){var a=t[n],i="<si>";a.r?i+=a.r:(i+="<t",a.t||(a.t=""),a.t.match(bF)&&(i+=' xml:space="preserve"'),i+=">"+it(a.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function DF(t){return[t.read_shift(4),t.read_shift(4)]}function MF(t,e){return e||(e=ee(8)),e.write_shift(4,t.Count),e.write_shift(4,t.Unique),e}var kF=xP;function IF(t){var e=Ar();le(e,159,MF(t));for(var r=0;r<t.length;++r)le(e,19,kF(t[r]));return le(e,160),e.end()}function LF(t){for(var e=[],r=t.split(""),n=0;n<r.length;++n)e[n]=r[n].charCodeAt(0);return e}function Rw(t){var e=0,r,n=LF(t),a=n.length+1,i,o,s,l,u;for(r=Ci(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)o=r[i],s=e&16384?1:0,l=e<<1&32767,u=s|l,e=u^o;return e^52811}var RF=function(){function t(a,i){switch(i.type){case"base64":return e(aa(a),i);case"binary":return e(a,i);case"buffer":return e(Ke&&Buffer.isBuffer(a)?a.toString("binary"):Tl(a),i);case"array":return e(ph(a),i)}throw new Error("Unrecognized type "+i.type)}function e(a,i){var o=i||{},s=o.dense?[]:{},l=a.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var u={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(f,h){Array.isArray(s)&&(s[h]=[]);for(var v=/\\\w+\b/g,c=0,d,p=-1;d=v.exec(f);){switch(d[0]){case"\\cell":var g=f.slice(c,v.lastIndex-d[0].length);if(g[0]==" "&&(g=g.slice(1)),++p,g.length){var m={v:g,t:"s"};Array.isArray(s)?s[h][p]=m:s[ot({r:h,c:p})]=m}break}c=v.lastIndex}p>u.e.c&&(u.e.c=p)}),s["!ref"]=Rt(u),s}function r(a,i){return Mi(t(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],o=gt(a["!ref"]),s,l=Array.isArray(a),u=o.s.r;u<=o.e.r;++u){i.push("\\trowd\\trautofit1");for(var f=o.s.c;f<=o.e.c;++f)i.push("\\cellx"+(f+1));for(i.push("\\pard\\intbl"),f=o.s.c;f<=o.e.c;++f){var h=ot({r:u,c:f});s=l?(a[u]||[])[f]:a[h],!(!s||s.v==null&&(!s.f||s.F))&&(i.push(" "+(s.w||(ia(s),s.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:n}}();function Vm(t){for(var e=0,r=1;e!=3;++e)r=r*256+(t[e]>255?255:t[e]<0?0:t[e]);return r.toString(16).toUpperCase().slice(1)}var PF=6,ea=PF;function Df(t){return Math.floor((t+Math.round(128/ea)/256)*ea)}function Mf(t){return Math.floor((t-5)/ea*100+.5)/100}function uv(t){return Math.round((t*ea+5)/ea*256)/256}function Ad(t){t.width?(t.wpx=Df(t.width),t.wch=Mf(t.wpx),t.MDW=ea):t.wpx?(t.wch=Mf(t.wpx),t.width=uv(t.wch),t.MDW=ea):typeof t.wch=="number"&&(t.width=uv(t.wch),t.wpx=Df(t.width),t.MDW=ea),t.customWidth&&delete t.customWidth}var FF=96,Pw=FF;function kf(t){return t*96/Pw}function Fw(t){return t*Pw/96}function OF(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)t[n]!=null&&(e[e.length]=ye("numFmt",null,{numFmtId:n,formatCode:it(t[n])}))}),e.length===1?"":(e[e.length]="</numFmts>",e[0]=ye("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function NF(t){var e=[];return e[e.length]=ye("cellXfs",null),t.forEach(function(r){e[e.length]=ye("xf",null,r)}),e[e.length]="</cellXfs>",e.length===2?"":(e[0]=ye("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function Ow(t,e){var r=[Pt,ye("styleSheet",null,{xmlns:Bo[0],"xmlns:vt":Bt.vt})],n;return t.SSF&&(n=OF(t.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=NF(e.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function BF(t,e){var r=t.read_shift(2),n=or(t);return[r,n]}function UF(t,e,r){r||(r=ee(6+4*e.length)),r.write_shift(2,t),Ht(e,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function HF(t,e,r){var n={};n.sz=t.read_shift(2)/20;var a=bP(t);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=t.read_shift(2);switch(i===700&&(n.bold=1),t.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=t.read_shift(1);o!=0&&(n.underline=o);var s=t.read_shift(1);s>0&&(n.family=s);var l=t.read_shift(1);switch(l>0&&(n.charset=l),t.l++,n.color=AP(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=or(t),n}function GF(t,e){e||(e=ee(25+4*32)),e.write_shift(2,t.sz*20),DP(t,e),e.write_shift(2,t.bold?700:400);var r=0;t.vertAlign=="superscript"?r=1:t.vertAlign=="subscript"&&(r=2),e.write_shift(2,r),e.write_shift(1,t.underline||0),e.write_shift(1,t.family||0),e.write_shift(1,t.charset||0),e.write_shift(1,0),Af(t.color,e);var n=0;return n=2,e.write_shift(1,n),Ht(t.name,e),e.length>e.l?e.slice(0,e.l):e}var WF=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Zc,VF=On;function zm(t,e){e||(e=ee(4*3+8*7+16*1)),Zc||(Zc=dd(WF));var r=Zc[t.patternType];r==null&&(r=40),e.write_shift(4,r);var n=0;if(r!=40)for(Af({auto:1},e),Af({auto:1},e);n<12;++n)e.write_shift(4,0);else{for(;n<4;++n)e.write_shift(4,0);for(;n<12;++n)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function zF(t,e){var r=t.l+e,n=t.read_shift(2),a=t.read_shift(2);return t.l=r,{ixfe:n,numFmtId:a}}function Nw(t,e,r){r||(r=ee(16)),r.write_shift(2,e||0),r.write_shift(2,t.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function gs(t,e){return e||(e=ee(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var $F=On;function YF(t,e){return e||(e=ee(51)),e.write_shift(1,0),gs(null,e),gs(null,e),gs(null,e),gs(null,e),gs(null,e),e.length>e.l?e.slice(0,e.l):e}function XF(t,e){return e||(e=ee(12+4*10)),e.write_shift(4,t.xfId),e.write_shift(2,1),e.write_shift(1,0),e.write_shift(1,0),Ef(t.name||"",e),e.length>e.l?e.slice(0,e.l):e}function KF(t,e,r){var n=ee(2052);return n.write_shift(4,t),Ef(e,n),Ef(r,n),n.length>n.l?n.slice(0,n.l):n}function ZF(t,e){if(e){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)e[a]!=null&&++r}),r!=0&&(le(t,615,mn(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)e[a]!=null&&le(t,44,UF(a,e[a]))}),le(t,616))}}function qF(t){var e=1;le(t,611,mn(e)),le(t,43,GF({sz:12,color:{theme:1},name:"Calibri",family:2})),le(t,612)}function jF(t){var e=2;le(t,603,mn(e)),le(t,45,zm({patternType:"none"})),le(t,45,zm({patternType:"gray125"})),le(t,604)}function JF(t){var e=1;le(t,613,mn(e)),le(t,46,YF()),le(t,614)}function QF(t){var e=1;le(t,626,mn(e)),le(t,47,Nw({numFmtId:0},65535)),le(t,627)}function eO(t,e){le(t,617,mn(e.length)),e.forEach(function(r){le(t,47,Nw(r,0))}),le(t,618)}function tO(t){var e=1;le(t,619,mn(e)),le(t,48,XF({xfId:0,name:"Normal"})),le(t,620)}function rO(t){var e=0;le(t,505,mn(e)),le(t,506)}function nO(t){var e=0;le(t,508,KF(e,"TableStyleMedium9","PivotStyleMedium4")),le(t,509)}function aO(t,e){var r=Ar();return le(r,278),ZF(r,t.SSF),qF(r),jF(r),JF(r),QF(r),eO(r,e.cellXfs),tO(r),rO(r),nO(r),le(r,279),r.end()}function Bw(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var r=[Pt];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function iO(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:or(t)}}function oO(t){var e=ee(12+2*t.name.length);return e.write_shift(4,t.flags),e.write_shift(4,t.version),Ht(t.name,e),e.slice(0,e.l)}function sO(t){for(var e=[],r=t.read_shift(4);r-- >0;)e.push([t.read_shift(4),t.read_shift(4)]);return e}function lO(t){var e=ee(4+8*t.length);e.write_shift(4,t.length);for(var r=0;r<t.length;++r)e.write_shift(4,t[r][0]),e.write_shift(4,t[r][1]);return e}function uO(t,e){var r=ee(8+2*e.length);return r.write_shift(4,t),Ht(e,r),r.slice(0,r.l)}function fO(t){return t.l+=4,t.read_shift(4)!=0}function hO(t,e){var r=ee(8);return r.write_shift(4,t),r.write_shift(4,1),r}function cO(){var t=Ar();return le(t,332),le(t,334,mn(1)),le(t,335,oO({name:"XLDAPR",version:12e4,flags:3496657072})),le(t,336),le(t,339,uO(1,"XLDAPR")),le(t,52),le(t,35,mn(514)),le(t,4096,mn(0)),le(t,4097,Zr(1)),le(t,36),le(t,53),le(t,340),le(t,337,hO(1)),le(t,51,lO([[1,0]])),le(t,338),le(t,333),t.end()}function Uw(){var t=[Pt];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
80
+ <metadataTypes count="1">
81
+ <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
82
+ </metadataTypes>
83
+ <futureMetadata name="XLDAPR" count="1">
84
+ <bk>
85
+ <extLst>
86
+ <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
87
+ <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
88
+ </ext>
89
+ </extLst>
90
+ </bk>
91
+ </futureMetadata>
92
+ <cellMetadata count="1">
93
+ <bk>
94
+ <rc t="1" v="0"/>
95
+ </bk>
96
+ </cellMetadata>
97
+ </metadata>`),t.join("")}function vO(t){var e={};e.i=t.read_shift(4);var r={};r.r=t.read_shift(4),r.c=t.read_shift(4),e.r=ot(r);var n=t.read_shift(1);return n&2&&(e.l="1"),n&8&&(e.a="1"),e}var fo=1024;function Hw(t,e){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[ye("xml",null,{"xmlns:v":Fr.v,"xmlns:o":Fr.o,"xmlns:x":Fr.x,"xmlns:mv":Fr.mv}).replace(/\/>/,">"),ye("o:shapelayout",ye("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),ye("v:shapetype",[ye("v:stroke",null,{joinstyle:"miter"}),ye("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];fo<t*1e3;)fo+=1e3;return e.forEach(function(i){var o=Ut(i[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?ye("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,u=ye("v:fill",l,s),f={on:"t",obscured:"t"};++fo,a=a.concat(["<v:shape"+cl({id:"_x0000_s"+fo,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",u,ye("v:shadow",null,f),ye("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Zt("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),Zt("x:AutoFill","False"),Zt("x:Row",String(o.r)),Zt("x:Column",String(o.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function Gw(t){var e=[Pt,ye("comments",null,{xmlns:Bo[0]})],r=[];return e.push("<authors>"),t.forEach(function(n){n[1].forEach(function(a){var i=it(a.a);r.indexOf(i)==-1&&(r.push(i),e.push("<author>"+i+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),e.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(a=r.indexOf(it(l.a))),i.push(l.t||"")}),e.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),i.length<=1)e.push(Zt("t",it(i[0]||"")));else{for(var o=`Comment:
98
+ `+i[0]+`
99
+ `,s=1;s<i.length;++s)o+=`Reply:
100
+ `+i[s]+`
101
+ `;e.push(Zt("t",it(o)))}e.push("</text></comment>")}),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function dO(t,e,r){var n=[Pt,ye("ThreadedComments",null,{xmlns:Bt.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(a){var i="";(a[1]||[]).forEach(function(o,s){if(!o.T){delete o.ID;return}o.a&&e.indexOf(o.a)==-1&&e.push(o.a);var l={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?i=l.id:l.parentId=i,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(o.a)).slice(-12)+"}"),n.push(ye("threadedComment",Zt("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function pO(t){var e=[Pt,ye("personList",null,{xmlns:Bt.TCMNT,"xmlns:x":Bo[0]}).replace(/[\/]>/,">")];return t.forEach(function(r,n){e.push(ye("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),e.push("</personList>"),e.join("")}function gO(t){var e={};e.iauthor=t.read_shift(4);var r=Ri(t);return e.rfx=r.s,e.ref=ot(r.s),t.l+=16,e}function mO(t,e){return e==null&&(e=ee(36)),e.write_shift(4,t[1].iauthor),Ho(t[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}var _O=or;function yO(t){return Ht(t.slice(0,54))}function xO(t){var e=Ar(),r=[];return le(e,628),le(e,630),t.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),le(e,632,yO(a.a)))})}),le(e,631),le(e,633),t.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:Ut(n[0]),e:Ut(n[0])};le(e,635,mO([i,a])),a.t&&a.t.length>0&&le(e,637,TP(a)),le(e,636),delete a.iauthor})}),le(e,634),le(e,629),e.end()}function wO(t,e){e.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&lt.utils.cfb_add(t,a,e.FileIndex[n].content)}})}var Ww=["xlsb","xlsm","xlam","biff8","xla"],TO=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function r(n,a,i,o){var s=!1,l=!1;i.length==0?l=!0:i.charAt(0)=="["&&(l=!0,i=i.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var u=i.length>0?parseInt(i,10)|0:0,f=o.length>0?parseInt(o,10)|0:0;return s?f+=e.c:--f,l?u+=e.r:--u,a+(s?"":"$")+ir(f)+(l?"":"$")+qt(u)}return function(a,i){return e=i,a.replace(t,r)}}(),bd=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Dd=function(){return function(e,r){return e.replace(bd,function(n,a,i,o,s,l){var u=wd(o)-(i?0:r.c),f=xd(l)-(s?0:r.r),h=f==0?"":s?f+1:"["+f+"]",v=u==0?"":i?u+1:"["+u+"]";return a+"R"+h+"C"+v})}}();function SO(t,e){return t.replace(bd,function(r,n,a,i,o,s){return n+(a=="$"?a+i:ir(wd(i)+e.c))+(o=="$"?o+s:qt(xd(s)+e.r))})}function CO(t){return t.length!=1}function kt(t){t.l+=1}function Na(t,e){var r=t.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function Vw(t,e,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return zw(t);r.biff==12&&(n=4)}var a=t.read_shift(n),i=t.read_shift(n),o=Na(t),s=Na(t);return{s:{r:a,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function zw(t){var e=Na(t),r=Na(t),n=t.read_shift(1),a=t.read_shift(1);return{s:{r:e[0],c:n,cRel:e[1],rRel:e[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function EO(t,e,r){if(r.biff<8)return zw(t);var n=t.read_shift(r.biff==12?4:2),a=t.read_shift(r.biff==12?4:2),i=Na(t),o=Na(t);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function $w(t,e,r){if(r&&r.biff>=2&&r.biff<=5)return AO(t);var n=t.read_shift(r&&r.biff==12?4:2),a=Na(t);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function AO(t){var e=Na(t),r=t.read_shift(1);return{r:e[0],c:r,cRel:e[1],rRel:e[2]}}function bO(t){var e=t.read_shift(2),r=t.read_shift(2);return{r:e,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function DO(t,e,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return MO(t);var a=t.read_shift(n>=12?4:2),i=t.read_shift(2),o=(i&16384)>>14,s=(i&32768)>>15;if(i&=16383,s==1)for(;a>524287;)a-=1048576;if(o==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:o,rRel:s}}function MO(t){var e=t.read_shift(2),r=t.read_shift(1),n=(e&32768)>>15,a=(e&16384)>>14;return e&=16383,n==1&&e>=8192&&(e=e-16384),a==1&&r>=128&&(r=r-256),{r:e,c:r,cRel:a,rRel:n}}function kO(t,e,r){var n=(t[t.l++]&96)>>5,a=Vw(t,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function IO(t,e,r){var n=(t[t.l++]&96)>>5,a=t.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:t.l+=12,i=6;break;case 12:i=12;break}var o=Vw(t,i,r);return[n,a,o]}function LO(t,e,r){var n=(t[t.l++]&96)>>5;return t.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function RO(t,e,r){var n=(t[t.l++]&96)>>5,a=t.read_shift(2),i=8;if(r)switch(r.biff){case 5:t.l+=12,i=6;break;case 12:i=12;break}return t.l+=i,[n,a]}function PO(t,e,r){var n=(t[t.l++]&96)>>5,a=EO(t,e-1,r);return[n,a]}function FO(t,e,r){var n=(t[t.l++]&96)>>5;return t.l+=r.biff==2?6:r.biff==12?14:7,[n]}function $m(t){var e=t[t.l+1]&1,r=1;return t.l+=4,[e,r]}function OO(t,e,r){t.l+=2;for(var n=t.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(t.read_shift(r&&r.biff==2?1:2));return a}function NO(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(r&&r.biff==2?1:2)]}function BO(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(r&&r.biff==2?1:2)]}function UO(t){var e=t[t.l+1]&255?1:0;return t.l+=2,[e,t.read_shift(2)]}function HO(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=r&&r.biff==2?3:4,[n]}function Yw(t){var e=t.read_shift(1),r=t.read_shift(1);return[e,r]}function GO(t){return t.read_shift(2),Yw(t)}function WO(t){return t.read_shift(2),Yw(t)}function VO(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var a=$w(t,0,r);return[n,a]}function zO(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var a=DO(t,0,r);return[n,a]}function $O(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var a=t.read_shift(2);r&&r.biff==5&&(t.l+=12);var i=$w(t,0,r);return[n,a,i]}function YO(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var a=t.read_shift(r&&r.biff<=3?1:2);return[Y5[a],Zw[a],n]}function XO(t,e,r){var n=t[t.l++],a=t.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,t.read_shift(1)]:KO(t);return[a,(i[0]===0?Zw:$5)[i[1]]]}function KO(t){return[t[t.l+1]>>7,t.read_shift(2)&32767]}function ZO(t,e,r){t.l+=r&&r.biff==2?3:4}function qO(t,e,r){if(t.l++,r&&r.biff==12)return[t.read_shift(4,"i"),0];var n=t.read_shift(2),a=t.read_shift(r&&r.biff==2?1:2);return[n,a]}function jO(t){return t.l++,El[t.read_shift(1)]}function JO(t){return t.l++,t.read_shift(2)}function QO(t){return t.l++,t.read_shift(1)!==0}function e5(t){return t.l++,Go(t)}function t5(t,e,r){return t.l++,Dw(t,e-1,r)}function r5(t,e){var r=[t.read_shift(1)];if(e==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=$P(t,1)?"TRUE":"FALSE",e!=12&&(t.l+=7);break;case 37:case 16:r[1]=El[t[t.l]],t.l+=e==12?4:8;break;case 0:t.l+=8;break;case 1:r[1]=Go(t);break;case 2:r[1]=ZP(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function n5(t,e,r){for(var n=t.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?Ri:JP)(t));return a}function a5(t,e,r){var n=0,a=0;r.biff==12?(n=t.read_shift(4),a=t.read_shift(4)):(a=1+t.read_shift(1),n=1+t.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,o=[];i!=n&&(o[i]=[]);++i)for(var s=0;s!=a;++s)o[i][s]=r5(t,r.biff);return o}function i5(t,e,r){var n=t.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=t.read_shift(a);switch(r.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12;break}return[n,0,i]}function o5(t,e,r){if(r.biff==5)return s5(t);var n=t.read_shift(1)>>>5&3,a=t.read_shift(2),i=t.read_shift(4);return[n,a,i]}function s5(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2,"i");t.l+=8;var n=t.read_shift(2);return t.l+=12,[e,r,n]}function l5(t,e,r){var n=t.read_shift(1)>>>5&3;t.l+=r&&r.biff==2?3:4;var a=t.read_shift(r&&r.biff==2?1:2);return[n,a]}function u5(t,e,r){var n=t.read_shift(1)>>>5&3,a=t.read_shift(r&&r.biff==2?1:2);return[n,a]}function f5(t,e,r){var n=t.read_shift(1)>>>5&3;return t.l+=4,r.biff<8&&t.l--,r.biff==12&&(t.l+=2),[n]}function h5(t,e,r){var n=(t[t.l++]&96)>>5,a=t.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return t.l+=i,[n,a]}var c5=On,v5=On,d5=On;function Al(t,e,r){return t.l+=2,[bO(t)]}function Md(t){return t.l+=6,[]}var p5=Al,g5=Md,m5=Md,_5=Al;function Xw(t){return t.l+=2,[Aw(t),t.read_shift(2)&1]}var y5=Al,x5=Xw,w5=Md,T5=Al,S5=Al,C5=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function E5(t){t.l+=2;var e=t.read_shift(2),r=t.read_shift(2),n=t.read_shift(4),a=t.read_shift(2),i=t.read_shift(2),o=C5[r>>2&31];return{ixti:e,coltype:r&3,rt:o,idx:n,c:a,C:i}}function A5(t){return t.l+=2,[t.read_shift(4)]}function b5(t,e,r){return t.l+=5,t.l+=2,t.l+=r.biff==2?1:4,["PTGSHEET"]}function D5(t,e,r){return t.l+=r.biff==2?4:5,["PTGENDSHEET"]}function M5(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function k5(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function I5(t){return t.l+=4,[0,0]}var Ym={1:{n:"PtgExp",f:qO},2:{n:"PtgTbl",f:d5},3:{n:"PtgAdd",f:kt},4:{n:"PtgSub",f:kt},5:{n:"PtgMul",f:kt},6:{n:"PtgDiv",f:kt},7:{n:"PtgPower",f:kt},8:{n:"PtgConcat",f:kt},9:{n:"PtgLt",f:kt},10:{n:"PtgLe",f:kt},11:{n:"PtgEq",f:kt},12:{n:"PtgGe",f:kt},13:{n:"PtgGt",f:kt},14:{n:"PtgNe",f:kt},15:{n:"PtgIsect",f:kt},16:{n:"PtgUnion",f:kt},17:{n:"PtgRange",f:kt},18:{n:"PtgUplus",f:kt},19:{n:"PtgUminus",f:kt},20:{n:"PtgPercent",f:kt},21:{n:"PtgParen",f:kt},22:{n:"PtgMissArg",f:kt},23:{n:"PtgStr",f:t5},26:{n:"PtgSheet",f:b5},27:{n:"PtgEndSheet",f:D5},28:{n:"PtgErr",f:jO},29:{n:"PtgBool",f:QO},30:{n:"PtgInt",f:JO},31:{n:"PtgNum",f:e5},32:{n:"PtgArray",f:FO},33:{n:"PtgFunc",f:YO},34:{n:"PtgFuncVar",f:XO},35:{n:"PtgName",f:i5},36:{n:"PtgRef",f:VO},37:{n:"PtgArea",f:kO},38:{n:"PtgMemArea",f:l5},39:{n:"PtgMemErr",f:c5},40:{n:"PtgMemNoMem",f:v5},41:{n:"PtgMemFunc",f:u5},42:{n:"PtgRefErr",f:f5},43:{n:"PtgAreaErr",f:LO},44:{n:"PtgRefN",f:zO},45:{n:"PtgAreaN",f:PO},46:{n:"PtgMemAreaN",f:M5},47:{n:"PtgMemNoMemN",f:k5},57:{n:"PtgNameX",f:o5},58:{n:"PtgRef3d",f:$O},59:{n:"PtgArea3d",f:IO},60:{n:"PtgRefErr3d",f:h5},61:{n:"PtgAreaErr3d",f:RO},255:{}},L5={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},R5={1:{n:"PtgElfLel",f:Xw},2:{n:"PtgElfRw",f:T5},3:{n:"PtgElfCol",f:p5},6:{n:"PtgElfRwV",f:S5},7:{n:"PtgElfColV",f:_5},10:{n:"PtgElfRadical",f:y5},11:{n:"PtgElfRadicalS",f:w5},13:{n:"PtgElfColS",f:g5},15:{n:"PtgElfColSV",f:m5},16:{n:"PtgElfRadicalLel",f:x5},25:{n:"PtgList",f:E5},29:{n:"PtgSxName",f:A5},255:{}},P5={0:{n:"PtgAttrNoop",f:I5},1:{n:"PtgAttrSemi",f:HO},2:{n:"PtgAttrIf",f:BO},4:{n:"PtgAttrChoose",f:OO},8:{n:"PtgAttrGoto",f:NO},16:{n:"PtgAttrSum",f:ZO},32:{n:"PtgAttrBaxcel",f:$m},33:{n:"PtgAttrBaxcel",f:$m},64:{n:"PtgAttrSpace",f:GO},65:{n:"PtgAttrSpaceSemi",f:WO},128:{n:"PtgAttrIfError",f:UO},255:{}};function F5(t,e,r,n){if(n.biff<8)return On(t,e);for(var a=t.l+e,i=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=a5(t,0,n),i.push(r[o][1]);break;case"PtgMemArea":r[o][2]=n5(t,r[o][1],n),i.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=t.read_shift(4),i.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return e=a-t.l,e!==0&&i.push(On(t,e)),i}function O5(t,e,r){for(var n=t.l+e,a,i,o=[];n!=t.l;)e=n-t.l,i=t[t.l],a=Ym[i]||Ym[L5[i]],(i===24||i===25)&&(a=(i===24?R5:P5)[t[t.l+1]]),!a||!a.f?On(t,e):o.push([a.n,a.f(t,e,r)]);return o}function N5(t){for(var e=[],r=0;r<t.length;++r){for(var n=t[r],a=[],i=0;i<n.length;++i){var o=n[i];if(o)switch(o[0]){case 2:a.push('"'+o[1].replace(/"/g,'""')+'"');break;default:a.push(o[1])}else a.push("")}e.push(a.join(","))}return e.join(";")}var B5={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function U5(t,e){if(!t&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}function Kw(t,e,r){if(!t)return"SH33TJSERR0";if(r.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[e];if(r.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),e==0?"":t.XTI[e-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(t[n[0]][0]){case 357:return a=n[1]==-1?"#REF":t.SheetNames[n[1]],n[1]==n[2]?a:a+":"+t.SheetNames[n[2]];case 358:return r.SID!=null?t.SheetNames[r.SID]:"SH33TJSSAME"+t[n[0]][0];case 355:default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return t[n[0]][0][3]?(a=n[1]==-1?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Xm(t,e,r){var n=Kw(t,e,r);return n=="#REF"?n:U5(n,r)}function bo(t,e,r,n,a){var i=a&&a.biff||8,o={s:{c:0,r:0}},s=[],l,u,f,h=0,v=0,c,d="";if(!t[0]||!t[0][0])return"";for(var p=-1,g="",m=0,_=t[0].length;m<_;++m){var y=t[0][m];switch(y[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=s.pop(),u=s.pop(),p>=0){switch(t[0][p][1][0]){case 0:g=Tt(" ",t[0][p][1][1]);break;case 1:g=Tt("\r",t[0][p][1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][p][1][0])}u=u+g,p=-1}s.push(u+B5[y[0]]+l);break;case"PtgIsect":l=s.pop(),u=s.pop(),s.push(u+" "+l);break;case"PtgUnion":l=s.pop(),u=s.pop(),s.push(u+","+l);break;case"PtgRange":l=s.pop(),u=s.pop(),s.push(u+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":f=zs(y[1][1],o,a),s.push($s(f,i));break;case"PtgRefN":f=r?zs(y[1][1],r,a):y[1][1],s.push($s(f,i));break;case"PtgRef3d":h=y[1][1],f=zs(y[1][2],o,a),d=Xm(n,h,a),s.push(d+"!"+$s(f,i));break;case"PtgFunc":case"PtgFuncVar":var w=y[1][0],E=y[1][1];w||(w=0),w&=127;var T=w==0?[]:s.slice(-w);s.length-=w,E==="User"&&(E=T.shift()),s.push(E+"("+T.join(",")+")");break;case"PtgBool":s.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(y[1]);break;case"PtgNum":s.push(String(y[1]));break;case"PtgStr":s.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(y[1]);break;case"PtgAreaN":c=Im(y[1][1],r?{s:r}:o,a),s.push(Xc(c,a));break;case"PtgArea":c=Im(y[1][1],o,a),s.push(Xc(c,a));break;case"PtgArea3d":h=y[1][1],c=y[1][2],d=Xm(n,h,a),s.push(d+"!"+Xc(c,a));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":v=y[1][2];var x=(n.names||[])[v-1]||(n[0]||[])[v],C=x?x.Name:"SH33TJSNAME"+String(v);C&&C.slice(0,6)=="_xlfn."&&!a.xlfn&&(C=C.slice(6)),s.push(C);break;case"PtgNameX":var S=y[1][1];v=y[1][2];var A;if(a.biff<=5)S<0&&(S=-S),n[S]&&(A=n[S][v]);else{var M="";if(((n[S]||[])[0]||[])[0]==14849||(((n[S]||[])[0]||[])[0]==1025?n[S][v]&&n[S][v].itab>0&&(M=n.SheetNames[n[S][v].itab-1]+"!"):M=n.SheetNames[v-1]+"!"),n[S]&&n[S][v])M+=n[S][v].Name;else if(n[0]&&n[0][v])M+=n[0][v].Name;else{var L=(Kw(n,S,a)||"").split(";;");L[v-1]?M=L[v-1]:M+="SH33TJSERRX"}s.push(M);break}A||(A={Name:"SH33TJSERRY"}),s.push(A.Name);break;case"PtgParen":var N="(",V=")";if(p>=0){switch(g="",t[0][p][1][0]){case 2:N=Tt(" ",t[0][p][1][1])+N;break;case 3:N=Tt("\r",t[0][p][1][1])+N;break;case 4:V=Tt(" ",t[0][p][1][1])+V;break;case 5:V=Tt("\r",t[0][p][1][1])+V;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][p][1][0])}p=-1}s.push(N+s.pop()+V);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":f={c:y[1][1],r:y[1][0]};var W={c:r.c,r:r.r};if(n.sharedf[ot(f)]){var te=n.sharedf[ot(f)];s.push(bo(te,o,W,n,a))}else{var _e=!1;for(l=0;l!=n.arrayf.length;++l)if(u=n.arrayf[l],!(f.c<u[0].s.c||f.c>u[0].e.c)&&!(f.r<u[0].s.r||f.r>u[0].e.r)){s.push(bo(u[1],o,W,n,a)),_e=!0;break}_e||s.push(y[1])}break;case"PtgArray":s.push("{"+N5(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var ve=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&p>=0&&ve.indexOf(t[0][m][0])==-1){y=t[0][p];var fe=!0;switch(y[1][0]){case 4:fe=!1;case 0:g=Tt(" ",y[1][1]);break;case 5:fe=!1;case 1:g=Tt("\r",y[1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}s.push((fe?g:"")+s.pop()+(fe?"":g)),p=-1}}if(s.length>1&&a.WTF)throw new Error("bad formula stack");return s[0]}function H5(t){if(t==null){var e=ee(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}else if(typeof t=="number")return Ei(t);return Ei(0)}function G5(t,e,r,n,a){var i=Ai(e,r,a),o=H5(t.v),s=ee(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var u=ee(t.bf.length),f=0;f<t.bf.length;++f)u[f]=t.bf[f];var h=Kt([i,o,s,u]);return h}function gh(t,e,r){var n=t.read_shift(4),a=O5(t,n,r),i=t.read_shift(4),o=i>0?F5(t,i,a,r):null;return[a,o]}var W5=gh,mh=gh,V5=gh,z5=gh,$5={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Zw={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Y5={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function X5(t){var e="of:="+t.replace(bd,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return e.replace(/;/g,"|").replace(/,/g,";")}function K5(t){return t.replace(/\./,"!")}var Ys=typeof Map<"u";function kd(t,e,r){var n=0,a=t.length;if(r){if(Ys?r.has(e):Object.prototype.hasOwnProperty.call(r,e)){for(var i=Ys?r.get(e):r[e];n<i.length;++n)if(t[i[n]].t===e)return t.Count++,i[n]}}else for(;n<a;++n)if(t[n].t===e)return t.Count++,n;return t[a]={t:e},t.Count++,t.Unique++,r&&(Ys?(r.has(e)||r.set(e,[]),r.get(e).push(a)):(Object.prototype.hasOwnProperty.call(r,e)||(r[e]=[]),r[e].push(a))),a}function _h(t,e){var r={min:t+1,max:t+1},n=-1;return e.MDW&&(ea=e.MDW),e.width!=null?r.customWidth=1:e.wpx!=null?n=Mf(e.wpx):e.wch!=null&&(n=e.wch),n>-1?(r.width=uv(n),r.customWidth=1):e.width!=null&&(r.width=e.width),e.hidden&&(r.hidden=!0),e.level!=null&&(r.outlineLevel=r.level=e.level),r}function qw(t,e){if(t){var r=[.7,.7,.75,.75,.3,.3];t.left==null&&(t.left=r[0]),t.right==null&&(t.right=r[1]),t.top==null&&(t.top=r[2]),t.bottom==null&&(t.bottom=r[3]),t.header==null&&(t.header=r[4]),t.footer==null&&(t.footer=r[5])}}function Ha(t,e,r){var n=r.revssf[e.z!=null?e.z:"General"],a=60,i=t.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){$2(e.z,a),r.ssf[a]=e.z,r.revssf[e.z]=n=a;break}}for(a=0;a!=i;++a)if(t[a].numFmtId===n)return a;return t[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function Z5(t,e,r){if(t&&t["!ref"]){var n=gt(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+t["!ref"])}}function q5(t){if(t.length===0)return"";for(var e='<mergeCells count="'+t.length+'">',r=0;r!=t.length;++r)e+='<mergeCell ref="'+Rt(t[r])+'"/>';return e+"</mergeCells>"}function j5(t,e,r,n,a){var i=!1,o={},s=null;if(n.bookType!=="xlsx"&&e.vbaraw){var l=e.SheetNames[r];try{e.Workbook&&(l=e.Workbook.Sheets[r].CodeName||l)}catch{}i=!0,o.codeName=hl(it(l))}if(t&&t["!outline"]){var u={summaryBelow:1,summaryRight:1};t["!outline"].above&&(u.summaryBelow=0),t["!outline"].left&&(u.summaryRight=0),s=(s||"")+ye("outlinePr",null,u)}!i&&!s||(a[a.length]=ye("sheetPr",s,o))}var J5=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Q5=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function eN(t){var e={sheet:1};return J5.forEach(function(r){t[r]!=null&&t[r]&&(e[r]="1")}),Q5.forEach(function(r){t[r]!=null&&!t[r]&&(e[r]="0")}),t.password&&(e.password=Rw(t.password).toString(16).toUpperCase()),ye("sheetProtection",null,e)}function tN(t){return qw(t),ye("pageMargins",null,t)}function rN(t,e){for(var r=["<cols>"],n,a=0;a!=e.length;++a)(n=e[a])&&(r[r.length]=ye("col",null,_h(a,n)));return r[r.length]="</cols>",r.join("")}function nN(t,e,r,n){var a=typeof t.ref=="string"?t.ref:Rt(t.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,o=Ur(a);o.s.r==o.e.r&&(o.e.r=Ur(e["!ref"]).e.r,a=Rt(o));for(var s=0;s<i.length;++s){var l=i[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+a;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),ye("autoFilter",null,{ref:a})}function aN(t,e,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),ye("sheetViews",ye("sheetView",null,a),{})}function iN(t,e,r,n){if(t.c&&r["!comments"].push([e,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var a="",i=t.t,o=t.v;if(t.t!=="z")switch(t.t){case"b":a=t.v?"1":"0";break;case"n":a=""+t.v;break;case"e":a=El[t.v];break;case"d":n&&n.cellDates?a=dr(t.v,-1).toISOString():(t=Ir(t),t.t="n",a=""+(t.v=kr(dr(t.v)))),typeof t.z>"u"&&(t.z=Et[14]);break;default:a=t.v;break}var s=Zt("v",it(a)),l={r:e},u=Ha(n.cellXfs,t,n);switch(u!==0&&(l.s=u),t.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=Zt("v",""+kd(n.Strings,t.v,n.revStrings)),l.t="s";break}l.t="str";break}if(t.t!=i&&(t.t=i,t.v=o),typeof t.f=="string"&&t.f){var f=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;s=ye("f",it(t.f),f)+(t.v!=null?s:"")}return t.l&&r["!links"].push([e,t.l]),t.D&&(l.cm=1),ye("c",s,l)}function oN(t,e,r,n){var a=[],i=[],o=gt(t["!ref"]),s="",l,u="",f=[],h=0,v=0,c=t["!rows"],d=Array.isArray(t),p={r:u},g,m=-1;for(v=o.s.c;v<=o.e.c;++v)f[v]=ir(v);for(h=o.s.r;h<=o.e.r;++h){for(i=[],u=qt(h),v=o.s.c;v<=o.e.c;++v){l=f[v]+u;var _=d?(t[h]||[])[v]:t[l];_!==void 0&&(s=iN(_,l,t,e))!=null&&i.push(s)}(i.length>0||c&&c[h])&&(p={r:u},c&&c[h]&&(g=c[h],g.hidden&&(p.hidden=1),m=-1,g.hpx?m=kf(g.hpx):g.hpt&&(m=g.hpt),m>-1&&(p.ht=m,p.customHeight=1),g.level&&(p.outlineLevel=g.level)),a[a.length]=ye("row",i.join(""),p))}if(c)for(;h<c.length;++h)c&&c[h]&&(p={r:h+1},g=c[h],g.hidden&&(p.hidden=1),m=-1,g.hpx?m=kf(g.hpx):g.hpt&&(m=g.hpt),m>-1&&(p.ht=m,p.customHeight=1),g.level&&(p.outlineLevel=g.level),a[a.length]=ye("row","",p));return a.join("")}function jw(t,e,r,n){var a=[Pt,ye("worksheet",null,{xmlns:Bo[0],"xmlns:r":Bt.r})],i=r.SheetNames[t],o=0,s="",l=r.Sheets[i];l==null&&(l={});var u=l["!ref"]||"A1",f=gt(u);if(f.e.c>16383||f.e.r>1048575){if(e.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),u=Rt(f)}n||(n={}),l["!comments"]=[];var h=[];j5(l,r,t,e,a),a[a.length]=ye("dimension",null,{ref:u}),a[a.length]=aN(l,e,t,r),e.sheetFormat&&(a[a.length]=ye("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(a[a.length]=rN(l,l["!cols"])),a[o=a.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=oN(l,e),s.length>0&&(a[a.length]=s)),a.length>o+1&&(a[a.length]="</sheetData>",a[o]=a[o].replace("/>",">")),l["!protect"]&&(a[a.length]=eN(l["!protect"])),l["!autofilter"]!=null&&(a[a.length]=nN(l["!autofilter"],l,r,t)),l["!merges"]!=null&&l["!merges"].length>0&&(a[a.length]=q5(l["!merges"]));var v=-1,c,d=-1;return l["!links"].length>0&&(a[a.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(c={ref:p[0]},p[1].Target.charAt(0)!="#"&&(d=rt(n,-1,it(p[1].Target).replace(/#.*$/,""),Xe.HLINK),c["r:id"]="rId"+d),(v=p[1].Target.indexOf("#"))>-1&&(c.location=it(p[1].Target.slice(v+1))),p[1].Tooltip&&(c.tooltip=it(p[1].Tooltip)),a[a.length]=ye("hyperlink",null,c))}),a[a.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(a[a.length]=tN(l["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&(a[a.length]=Zt("ignoredErrors",ye("ignoredError",null,{numberStoredAsText:1,sqref:u}))),h.length>0&&(d=rt(n,-1,"../drawings/drawing"+(t+1)+".xml",Xe.DRAW),a[a.length]=ye("drawing",null,{"r:id":"rId"+d}),l["!drawing"]=h),l["!comments"].length>0&&(d=rt(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Xe.VML),a[a.length]=ye("legacyDrawing",null,{"r:id":"rId"+d}),l["!legacy"]=d),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function sN(t,e){var r={},n=t.l+e;r.r=t.read_shift(4),t.l+=4;var a=t.read_shift(2);t.l+=1;var i=t.read_shift(1);return t.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}function lN(t,e,r){var n=ee(145),a=(r["!rows"]||[])[t]||{};n.write_shift(4,t),n.write_shift(4,0);var i=320;a.hpx?i=kf(a.hpx)*20:a.hpt&&(i=a.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var o=0;a.level&&(o|=a.level),a.hidden&&(o|=16),(a.hpx||a.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var u={r:t,c:0},f=0;f<16;++f)if(!(e.s.c>f+1<<10||e.e.c<f<<10)){for(var h=-1,v=-1,c=f<<10;c<f+1<<10;++c){u.c=c;var d=Array.isArray(r)?(r[u.r]||[])[u.c]:r[ot(u)];d&&(h<0&&(h=c),v=c)}h<0||(++s,n.write_shift(4,h),n.write_shift(4,v))}var p=n.l;return n.l=l,n.write_shift(4,s),n.l=p,n.length>n.l?n.slice(0,n.l):n}function uN(t,e,r,n){var a=lN(n,r,e);(a.length>17||(e["!rows"]||[])[n])&&le(t,0,a)}var fN=Ri,hN=Ho;function cN(){}function vN(t,e){var r={},n=t[t.l];return++t.l,r.above=!(n&64),r.left=!(n&128),t.l+=18,r.name=SP(t),r}function dN(t,e,r){r==null&&(r=ee(84+4*t.length));var n=192;e&&(e.above&&(n&=-65),e.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return Af({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),cw(t,r),r.slice(0,r.l)}function pN(t){var e=nn(t);return[e]}function gN(t,e,r){return r==null&&(r=ee(8)),ki(e,r)}function mN(t){var e=Ii(t);return[e]}function _N(t,e,r){return r==null&&(r=ee(4)),Li(e,r)}function yN(t){var e=nn(t),r=t.read_shift(1);return[e,r,"b"]}function xN(t,e,r){return r==null&&(r=ee(9)),ki(e,r),r.write_shift(1,t.v?1:0),r}function wN(t){var e=Ii(t),r=t.read_shift(1);return[e,r,"b"]}function TN(t,e,r){return r==null&&(r=ee(5)),Li(e,r),r.write_shift(1,t.v?1:0),r}function SN(t){var e=nn(t),r=t.read_shift(1);return[e,r,"e"]}function CN(t,e,r){return r==null&&(r=ee(9)),ki(e,r),r.write_shift(1,t.v),r}function EN(t){var e=Ii(t),r=t.read_shift(1);return[e,r,"e"]}function AN(t,e,r){return r==null&&(r=ee(8)),Li(e,r),r.write_shift(1,t.v),r.write_shift(2,0),r.write_shift(1,0),r}function bN(t){var e=nn(t),r=t.read_shift(4);return[e,r,"s"]}function DN(t,e,r){return r==null&&(r=ee(12)),ki(e,r),r.write_shift(4,e.v),r}function MN(t){var e=Ii(t),r=t.read_shift(4);return[e,r,"s"]}function kN(t,e,r){return r==null&&(r=ee(8)),Li(e,r),r.write_shift(4,e.v),r}function IN(t){var e=nn(t),r=Go(t);return[e,r,"n"]}function LN(t,e,r){return r==null&&(r=ee(16)),ki(e,r),Ei(t.v,r),r}function RN(t){var e=Ii(t),r=Go(t);return[e,r,"n"]}function PN(t,e,r){return r==null&&(r=ee(12)),Li(e,r),Ei(t.v,r),r}function FN(t){var e=nn(t),r=vw(t);return[e,r,"n"]}function ON(t,e,r){return r==null&&(r=ee(12)),ki(e,r),dw(t.v,r),r}function NN(t){var e=Ii(t),r=vw(t);return[e,r,"n"]}function BN(t,e,r){return r==null&&(r=ee(8)),Li(e,r),dw(t.v,r),r}function UN(t){var e=nn(t),r=Td(t);return[e,r,"is"]}function HN(t){var e=nn(t),r=or(t);return[e,r,"str"]}function GN(t,e,r){return r==null&&(r=ee(12+4*t.v.length)),ki(e,r),Ht(t.v,r),r.length>r.l?r.slice(0,r.l):r}function WN(t){var e=Ii(t),r=or(t);return[e,r,"str"]}function VN(t,e,r){return r==null&&(r=ee(8+4*t.v.length)),Li(e,r),Ht(t.v,r),r.length>r.l?r.slice(0,r.l):r}function zN(t,e,r){var n=t.l+e,a=nn(t);a.r=r["!row"];var i=t.read_shift(1),o=[a,i,"b"];if(r.cellFormula){t.l+=2;var s=mh(t,n-t.l,r);o[3]=bo(s,null,a,r.supbooks,r)}else t.l=n;return o}function $N(t,e,r){var n=t.l+e,a=nn(t);a.r=r["!row"];var i=t.read_shift(1),o=[a,i,"e"];if(r.cellFormula){t.l+=2;var s=mh(t,n-t.l,r);o[3]=bo(s,null,a,r.supbooks,r)}else t.l=n;return o}function YN(t,e,r){var n=t.l+e,a=nn(t);a.r=r["!row"];var i=Go(t),o=[a,i,"n"];if(r.cellFormula){t.l+=2;var s=mh(t,n-t.l,r);o[3]=bo(s,null,a,r.supbooks,r)}else t.l=n;return o}function XN(t,e,r){var n=t.l+e,a=nn(t);a.r=r["!row"];var i=or(t),o=[a,i,"str"];if(r.cellFormula){t.l+=2;var s=mh(t,n-t.l,r);o[3]=bo(s,null,a,r.supbooks,r)}else t.l=n;return o}var KN=Ri,ZN=Ho;function qN(t,e){return e==null&&(e=ee(4)),e.write_shift(4,t),e}function jN(t,e){var r=t.l+e,n=Ri(t),a=Sd(t),i=or(t),o=or(t),s=or(t);t.l=r;var l={rfx:n,relId:a,loc:i,display:s};return o&&(l.Tooltip=o),l}function JN(t,e){var r=ee(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));Ho({s:Ut(t[0]),e:Ut(t[0])},r),Cd("rId"+e,r);var n=t[1].Target.indexOf("#"),a=n==-1?"":t[1].Target.slice(n+1);return Ht(a||"",r),Ht(t[1].Tooltip||"",r),Ht("",r),r.slice(0,r.l)}function QN(){}function e8(t,e,r){var n=t.l+e,a=pw(t),i=t.read_shift(1),o=[a];if(o[2]=i,r.cellFormula){var s=W5(t,n-t.l,r);o[1]=s}else t.l=n;return o}function t8(t,e,r){var n=t.l+e,a=Ri(t),i=[a];if(r.cellFormula){var o=z5(t,n-t.l,r);i[1]=o,t.l=n}else t.l=n;return i}function r8(t,e,r){r==null&&(r=ee(18));var n=_h(t,e);r.write_shift(-4,t),r.write_shift(-4,t),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return e.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),e.level&&(a|=e.level<<8),r.write_shift(2,a),r}var Jw=["left","right","top","bottom","header","footer"];function n8(t){var e={};return Jw.forEach(function(r){e[r]=Go(t)}),e}function a8(t,e){return e==null&&(e=ee(6*8)),qw(t),Jw.forEach(function(r){Ei(t[r],e)}),e}function i8(t){var e=t.read_shift(2);return t.l+=28,{RTL:e&32}}function o8(t,e,r){r==null&&(r=ee(30));var n=924;return(((e||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function s8(t){var e=ee(24);return e.write_shift(4,4),e.write_shift(4,1),Ho(t,e),e}function l8(t,e){return e==null&&(e=ee(16*4+2)),e.write_shift(2,t.password?Rw(t.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?e.write_shift(4,t[r[0]]!=null&&!t[r[0]]?1:0):e.write_shift(4,t[r[0]]!=null&&t[r[0]]?0:1)}),e}function u8(){}function f8(){}function h8(t,e,r,n,a,i,o){if(e.v===void 0)return!1;var s="";switch(e.t){case"b":s=e.v?"1":"0";break;case"d":e=Ir(e),e.z=e.z||Et[14],e.v=kr(dr(e.v)),e.t="n";break;case"n":case"e":s=""+e.v;break;default:s=e.v;break}var l={r,c:n};switch(l.s=Ha(a.cellXfs,e,a),e.l&&i["!links"].push([ot(l),e.l]),e.c&&i["!comments"].push([ot(l),e.c]),e.t){case"s":case"str":return a.bookSST?(s=kd(a.Strings,e.v,a.revStrings),l.t="s",l.v=s,o?le(t,18,kN(e,l)):le(t,7,DN(e,l))):(l.t="str",o?le(t,17,VN(e,l)):le(t,6,GN(e,l))),!0;case"n":return e.v==(e.v|0)&&e.v>-1e3&&e.v<1e3?o?le(t,13,BN(e,l)):le(t,2,ON(e,l)):o?le(t,16,PN(e,l)):le(t,5,LN(e,l)),!0;case"b":return l.t="b",o?le(t,15,TN(e,l)):le(t,4,xN(e,l)),!0;case"e":return l.t="e",o?le(t,14,AN(e,l)):le(t,3,CN(e,l)),!0}return o?le(t,12,_N(e,l)):le(t,1,gN(e,l)),!0}function c8(t,e,r,n){var a=gt(e["!ref"]||"A1"),i,o="",s=[];le(t,145);var l=Array.isArray(e),u=a.e.r;e["!rows"]&&(u=Math.max(a.e.r,e["!rows"].length-1));for(var f=a.s.r;f<=u;++f){o=qt(f),uN(t,e,a,f);var h=!1;if(f<=a.e.r)for(var v=a.s.c;v<=a.e.c;++v){f===a.s.r&&(s[v]=ir(v)),i=s[v]+o;var c=l?(e[f]||[])[v]:e[i];if(!c){h=!1;continue}h=h8(t,c,f,v,n,e,h)}}le(t,146)}function v8(t,e){!e||!e["!merges"]||(le(t,177,qN(e["!merges"].length)),e["!merges"].forEach(function(r){le(t,176,ZN(r))}),le(t,178))}function d8(t,e){!e||!e["!cols"]||(le(t,390),e["!cols"].forEach(function(r,n){r&&le(t,60,r8(n,r))}),le(t,391))}function p8(t,e){!e||!e["!ref"]||(le(t,648),le(t,649,s8(gt(e["!ref"]))),le(t,650))}function g8(t,e,r){e["!links"].forEach(function(n){if(n[1].Target){var a=rt(r,-1,n[1].Target.replace(/#.*$/,""),Xe.HLINK);le(t,494,JN(n,a))}}),delete e["!links"]}function m8(t,e,r,n){if(e["!comments"].length>0){var a=rt(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Xe.VML);le(t,551,Cd("rId"+a)),e["!legacy"]=a}}function _8(t,e,r,n){if(e["!autofilter"]){var a=e["!autofilter"],i=typeof a.ref=="string"?a.ref:Rt(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=Ur(i);s.s.r==s.e.r&&(s.e.r=Ur(e["!ref"]).e.r,i=Rt(s));for(var l=0;l<o.length;++l){var u=o[l];if(u.Name=="_xlnm._FilterDatabase"&&u.Sheet==n){u.Ref="'"+r.SheetNames[n]+"'!"+i;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),le(t,161,Ho(gt(i))),le(t,162)}}function y8(t,e,r){le(t,133),le(t,137,o8(e,r)),le(t,138),le(t,134)}function x8(t,e){e["!protect"]&&le(t,535,l8(e["!protect"]))}function w8(t,e,r,n){var a=Ar(),i=r.SheetNames[t],o=r.Sheets[i]||{},s=i;try{r&&r.Workbook&&(s=r.Workbook.Sheets[t].CodeName||s)}catch{}var l=gt(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(e.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],le(a,129),(r.vbaraw||o["!outline"])&&le(a,147,dN(s,o["!outline"])),le(a,148,hN(l)),y8(a,o,r.Workbook),d8(a,o),c8(a,o,t,e),x8(a,o),_8(a,o,r,t),v8(a,o),g8(a,o,n),o["!margins"]&&le(a,476,a8(o["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&p8(a,o),m8(a,o,t,n),le(a,130),a.end()}function T8(t,e){t.l+=10;var r=or(t);return{name:r}}var S8=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function C8(t){return!t.Workbook||!t.Workbook.WBProps?"false":tP(t.Workbook.WBProps.date1904)?"true":"false"}var E8="][*?/\\".split("");function Qw(t,e){if(t.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return E8.forEach(function(n){if(t.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function A8(t,e,r){t.forEach(function(n,a){Qw(n);for(var i=0;i<a;++i)if(n==t[i])throw new Error("Duplicate Sheet Name: "+n);if(r){var o=e&&e[a]&&e[a].CodeName||n;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function b8(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];A8(t.SheetNames,e,!!t.vbaraw);for(var r=0;r<t.SheetNames.length;++r)Z5(t.Sheets[t.SheetNames[r]],t.SheetNames[r],r)}function eT(t){var e=[Pt];e[e.length]=ye("workbook",null,{xmlns:Bo[0],"xmlns:r":Bt.r});var r=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(S8.forEach(function(s){t.Workbook.WBProps[s[0]]!=null&&t.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=t.Workbook.WBProps[s[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),e[e.length]=ye("workbookPr",null,n);var a=t.Workbook&&t.Workbook.Sheets||[],i=0;if(a&&a[0]&&a[0].Hidden){for(e[e.length]="<bookViews>",i=0;i!=t.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==t.SheetNames.length&&(i=0),e[e.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",i=0;i!=t.SheetNames.length;++i){var o={name:it(t.SheetNames[i].slice(0,31))};if(o.sheetId=""+(i+1),o["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}e[e.length]=ye("sheet",null,o)}return e[e.length]="</sheets>",r&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(e[e.length]=ye("definedName",it(s.Ref),l))}),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function D8(t,e){var r={};return r.Hidden=t.read_shift(4),r.iTabID=t.read_shift(4),r.strRelID=lv(t),r.name=or(t),r}function M8(t,e){return e||(e=ee(127)),e.write_shift(4,t.Hidden),e.write_shift(4,t.iTabID),Cd(t.strRelID,e),Ht(t.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function k8(t,e){var r={},n=t.read_shift(4);r.defaultThemeVersion=t.read_shift(4);var a=e>8?or(t):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function I8(t,e){e||(e=ee(72));var r=0;return t&&t.filterPrivacy&&(r|=8),e.write_shift(4,r),e.write_shift(4,0),cw(t&&t.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}function L8(t,e,r){var n=t.l+e;t.l+=4,t.l+=1;var a=t.read_shift(4),i=CP(t),o=V5(t,0,r),s=Sd(t);t.l=n;var l={Name:i,Ptg:o};return a<268435455&&(l.Sheet=a),s&&(l.Comment=s),l}function R8(t,e){le(t,143);for(var r=0;r!=e.SheetNames.length;++r){var n=e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[r]&&e.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:e.SheetNames[r]};le(t,156,M8(a))}le(t,144)}function P8(t,e){e||(e=ee(127));for(var r=0;r!=4;++r)e.write_shift(4,0);return Ht("SheetJS",e),Ht(_f.version,e),Ht(_f.version,e),Ht("7262",e),e.length>e.l?e.slice(0,e.l):e}function F8(t,e){e||(e=ee(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,t),e.write_shift(4,t);var r=120;return e.write_shift(1,r),e.length>e.l?e.slice(0,e.l):e}function O8(t,e){if(!(!e.Workbook||!e.Workbook.Sheets)){for(var r=e.Workbook.Sheets,n=0,a=-1,i=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&a==-1?a=n:r[n].Hidden==1&&i==-1&&(i=n);i>a||(le(t,135),le(t,158,F8(a)),le(t,136))}}function N8(t,e){var r=Ar();return le(r,131),le(r,128,P8()),le(r,153,I8(t.Workbook&&t.Workbook.WBProps||null)),O8(r,t),R8(r,t),le(r,132),r.end()}function B8(t,e,r){return(e.slice(-4)===".bin"?N8:eT)(t)}function U8(t,e,r,n,a){return(e.slice(-4)===".bin"?w8:jw)(t,r,n,a)}function H8(t,e,r){return(e.slice(-4)===".bin"?aO:Ow)(t,r)}function G8(t,e,r){return(e.slice(-4)===".bin"?IF:Lw)(t,r)}function W8(t,e,r){return(e.slice(-4)===".bin"?xO:Gw)(t)}function V8(t){return(t.slice(-4)===".bin"?cO:Uw)()}function z8(t,e){var r=[];return t.Props&&r.push(HP(t.Props,e)),t.Custprops&&r.push(GP(t.Props,t.Custprops)),r.join("")}function $8(){return""}function Y8(t,e){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach(function(n,a){var i=[];i.push(ye("NumberFormat",null,{"ss:Format":it(Et[n.numFmtId])}));var o={"ss:ID":"s"+(21+a)};r.push(ye("Style",i.join(""),o))}),ye("Styles",r.join(""))}function tT(t){return ye("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+Dd(t.Ref,{r:0,c:0})})}function X8(t){if(!((t||{}).Workbook||{}).Names)return"";for(var e=t.Workbook.Names,r=[],n=0;n<e.length;++n){var a=e[n];a.Sheet==null&&(a.Name.match(/^_xlfn\./)||r.push(tT(a)))}return ye("Names",r.join(""))}function K8(t,e,r,n){if(!t||!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,i=[],o=0;o<a.length;++o){var s=a[o];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||i.push(tT(s)))}return i.join("")}function Z8(t,e,r,n){if(!t)return"";var a=[];if(t["!margins"]&&(a.push("<PageSetup>"),t["!margins"].header&&a.push(ye("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&a.push(ye("Footer",null,{"x:Margin":t["!margins"].footer})),a.push(ye("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),a.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(ye("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&!(n.Workbook.Sheets[i]&&!n.Workbook.Sheets[i].Hidden);++i);i==r&&a.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),t["!protect"]&&(a.push(Zt("ProtectContents","True")),t["!protect"].objects&&a.push(Zt("ProtectObjects","True")),t["!protect"].scenarios&&a.push(Zt("ProtectScenarios","True")),t["!protect"].selectLockedCells!=null&&!t["!protect"].selectLockedCells?a.push(Zt("EnableSelection","NoSelection")):t["!protect"].selectUnlockedCells!=null&&!t["!protect"].selectUnlockedCells&&a.push(Zt("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){t["!protect"][o[0]]&&a.push("<"+o[1]+"/>")})),a.length==0?"":ye("WorksheetOptions",a.join(""),{xmlns:Fr.x})}function q8(t){return t.map(function(e){var r=eP(e.t||""),n=ye("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return ye("Comment",n,{"ss:Author":e.a})}).join("")}function j8(t,e,r,n,a,i,o){if(!t||t.v==null&&t.f==null)return"";var s={};if(t.f&&(s["ss:Formula"]="="+it(Dd(t.f,o))),t.F&&t.F.slice(0,e.length)==e){var l=Ut(t.F.slice(e.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=it(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=it(t.l.Tooltip))),r["!merges"])for(var u=r["!merges"],f=0;f!=u.length;++f)u[f].s.c!=o.c||u[f].s.r!=o.r||(u[f].e.c>u[f].s.c&&(s["ss:MergeAcross"]=u[f].e.c-u[f].s.c),u[f].e.r>u[f].s.r&&(s["ss:MergeDown"]=u[f].e.r-u[f].s.r));var h="",v="";switch(t.t){case"z":if(!n.sheetStubs)return"";break;case"n":h="Number",v=String(t.v);break;case"b":h="Boolean",v=t.v?"1":"0";break;case"e":h="Error",v=El[t.v];break;case"d":h="DateTime",v=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||Et[14]);break;case"s":h="String",v=QR(t.v||"");break}var c=Ha(n.cellXfs,t,n);s["ss:StyleID"]="s"+(21+c),s["ss:Index"]=o.c+1;var d=t.v!=null?v:"",p=t.t=="z"?"":'<Data ss:Type="'+h+'">'+d+"</Data>";return(t.c||[]).length>0&&(p+=q8(t.c)),ye("Cell",p,s)}function J8(t,e){var r='<Row ss:Index="'+(t+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=Fw(e.hpt)),e.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(r+=' ss:Hidden="1"')),r+">"}function Q8(t,e,r,n){if(!t["!ref"])return"";var a=gt(t["!ref"]),i=t["!merges"]||[],o=0,s=[];t["!cols"]&&t["!cols"].forEach(function(g,m){Ad(g);var _=!!g.width,y=_h(m,g),w={"ss:Index":m+1};_&&(w["ss:Width"]=Df(y.width)),g.hidden&&(w["ss:Hidden"]="1"),s.push(ye("Column",null,w))});for(var l=Array.isArray(t),u=a.s.r;u<=a.e.r;++u){for(var f=[J8(u,(t["!rows"]||[])[u])],h=a.s.c;h<=a.e.c;++h){var v=!1;for(o=0;o!=i.length;++o)if(!(i[o].s.c>h)&&!(i[o].s.r>u)&&!(i[o].e.c<h)&&!(i[o].e.r<u)){(i[o].s.c!=h||i[o].s.r!=u)&&(v=!0);break}if(!v){var c={r:u,c:h},d=ot(c),p=l?(t[u]||[])[h]:t[d];f.push(j8(p,d,t,e,r,n,c))}}f.push("</Row>"),f.length>2&&s.push(f.join(""))}return s.join("")}function e6(t,e,r){var n=[],a=r.SheetNames[t],i=r.Sheets[a],o=i?K8(i,e,t,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=i?Q8(i,e,t,r):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(Z8(i,e,t,r)),n.join("")}function t6(t,e){e||(e={}),t.SSF||(t.SSF=Ir(Et)),t.SSF&&(vh(),ch(t.SSF),e.revssf=dh(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF,e.cellXfs=[],Ha(e.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(z8(t,e)),r.push($8()),r.push(""),r.push("");for(var n=0;n<t.SheetNames.length;++n)r.push(ye("Worksheet",e6(n,e,t),{"ss:Name":it(t.SheetNames[n])}));return r[2]=Y8(t,e),r[3]=X8(t),Pt+ye("Workbook",r.join(""),{xmlns:Fr.ss,"xmlns:o":Fr.o,"xmlns:x":Fr.x,"xmlns:ss":Fr.ss,"xmlns:dt":Fr.dt,"xmlns:html":Fr.html})}var qc={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function r6(t,e){var r=[],n=[],a=[],i=0,o,s=xm(Rm,"n"),l=xm(Pm,"n");if(t.Props)for(o=Jt(t.Props),i=0;i<o.length;++i)(Object.prototype.hasOwnProperty.call(s,o[i])?r:Object.prototype.hasOwnProperty.call(l,o[i])?n:a).push([o[i],t.Props[o[i]]]);if(t.Custprops)for(o=Jt(t.Custprops),i=0;i<o.length;++i)Object.prototype.hasOwnProperty.call(t.Props||{},o[i])||(Object.prototype.hasOwnProperty.call(s,o[i])?r:Object.prototype.hasOwnProperty.call(l,o[i])?n:a).push([o[i],t.Custprops[o[i]]]);var u=[];for(i=0;i<a.length;++i)Ew.indexOf(a[i][0])>-1||Tw.indexOf(a[i][0])>-1||a[i][1]!=null&&u.push(a[i]);n.length&&lt.utils.cfb_add(e,"/SummaryInformation",Um(n,qc.SI,l,Pm)),(r.length||u.length)&&lt.utils.cfb_add(e,"/DocumentSummaryInformation",Um(r,qc.DSI,s,Rm,u.length?u:null,qc.UDI))}function n6(t,e){var r=e||{},n=lt.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return lt.utils.cfb_add(n,a,rT(t,r)),r.biff==8&&(t.Props||t.Custprops)&&r6(t,n),r.biff==8&&t.vbaraw&&wO(n,lt.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),n}var a6={0:{f:sN},1:{f:pN},2:{f:FN},3:{f:SN},4:{f:yN},5:{f:IN},6:{f:HN},7:{f:bN},8:{f:XN},9:{f:YN},10:{f:zN},11:{f:$N},12:{f:mN},13:{f:NN},14:{f:EN},15:{f:wN},16:{f:RN},17:{f:WN},18:{f:MN},19:{f:Td},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:L8},40:{},42:{},43:{f:HF},44:{f:BF},45:{f:VF},46:{f:$F},47:{f:zF},48:{},49:{f:mP},50:{},51:{f:sO},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:_F},62:{f:UN},63:{f:vO},64:{f:u8},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:On,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:i8},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:vN},148:{f:fN,p:16},151:{f:QN},152:{},153:{f:k8},154:{},155:{},156:{f:D8},157:{},158:{},159:{T:1,f:DF},160:{T:-1},161:{T:1,f:Ri},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:KN},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:iO},336:{T:-1},337:{f:fO,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:lv},357:{},358:{},359:{},360:{T:1},361:{},362:{f:cF},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:e8},427:{f:t8},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:n8},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:cN},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:jN},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:lv},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:_O},633:{T:1},634:{T:-1},635:{T:1,f:gO},636:{T:-1},637:{f:wP},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:T8},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:f8},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function xe(t,e,r,n){var a=e;if(!isNaN(a)){var i=n||(r||[]).length||0,o=t.next(4);o.write_shift(2,a),o.write_shift(2,i),i>0&&yd(r)&&t.push(r)}}function i6(t,e,r,n){var a=(r||[]).length||0;if(a<=8224)return xe(t,e,r,a);var i=e;if(!isNaN(i)){for(var o=r.parts||[],s=0,l=0,u=0;u+(o[s]||8224)<=8224;)u+=o[s]||8224,s++;var f=t.next(4);for(f.write_shift(2,i),f.write_shift(2,u),t.push(r.slice(l,l+u)),l+=u;l<a;){for(f=t.next(4),f.write_shift(2,60),u=0;u+(o[s]||8224)<=8224;)u+=o[s]||8224,s++;f.write_shift(2,u),t.push(r.slice(l,l+u)),l+=u}}}function bl(t,e,r){return t||(t=ee(7)),t.write_shift(2,e),t.write_shift(2,r),t.write_shift(2,0),t.write_shift(1,0),t}function o6(t,e,r,n){var a=ee(9);return bl(a,t,e),bw(r,n||"b",a),a}function s6(t,e,r){var n=ee(8+2*r.length);return bl(n,t,e),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function l6(t,e,r,n){if(e.v!=null)switch(e.t){case"d":case"n":var a=e.t=="d"?kr(dr(e.v)):e.v;a==(a|0)&&a>=0&&a<65536?xe(t,2,TF(r,n,a)):xe(t,3,wF(r,n,a));return;case"b":case"e":xe(t,5,o6(r,n,e.v,e.t));return;case"s":case"str":xe(t,4,s6(r,n,(e.v||"").slice(0,255)));return}xe(t,1,bl(null,r,n))}function u6(t,e,r,n){var a=Array.isArray(e),i=gt(e["!ref"]||"A1"),o,s="",l=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),o=Rt(i)}for(var u=i.s.r;u<=i.e.r;++u){s=qt(u);for(var f=i.s.c;f<=i.e.c;++f){u===i.s.r&&(l[f]=ir(f)),o=l[f]+s;var h=a?(e[u]||[])[f]:e[o];h&&l6(t,h,u,f)}}}function f6(t,e){for(var r=e||{},n=Ar(),a=0,i=0;i<t.SheetNames.length;++i)t.SheetNames[i]==r.sheet&&(a=i);if(a==0&&r.sheet&&t.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return xe(n,r.biff==4?1033:r.biff==3?521:9,Ed(t,16,r)),u6(n,t.Sheets[t.SheetNames[a]],a,r),xe(n,10),n.end()}function h6(t,e,r){xe(t,49,aF({sz:12,name:"Arial"},r))}function c6(t,e,r){e&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)e[a]!=null&&xe(t,1054,sF(a,e[a],r))})}function v6(t,e){var r=ee(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),xe(t,2151,r),r=ee(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),kw(gt(e["!ref"]||"A1"),r),r.write_shift(4,4),xe(t,2152,r)}function d6(t,e){for(var r=0;r<16;++r)xe(t,224,Gm({numFmtId:0,style:!0},0,e));e.cellXfs.forEach(function(n){xe(t,224,Gm(n,0,e))})}function p6(t,e){for(var r=0;r<e["!links"].length;++r){var n=e["!links"][r];xe(t,440,pF(n)),n[1].Tooltip&&xe(t,2048,gF(n))}delete e["!links"]}function g6(t,e){if(e){var r=0;e.forEach(function(n,a){++r<=256&&n&&xe(t,125,yF(_h(a,n),a))})}}function m6(t,e,r,n,a){var i=16+Ha(a.cellXfs,e,a);if(e.v==null&&!e.bf){xe(t,513,Ai(r,n,i));return}if(e.bf)xe(t,6,G5(e,r,n,a,i));else switch(e.t){case"d":case"n":var o=e.t=="d"?kr(dr(e.v)):e.v;xe(t,515,hF(r,n,o,i));break;case"b":case"e":xe(t,517,fF(r,n,e.v,i,a,e.t));break;case"s":case"str":if(a.bookSST){var s=kd(a.Strings,e.v,a.revStrings);xe(t,253,iF(r,n,s,i))}else xe(t,516,oF(r,n,(e.v||"").slice(0,255),i,a));break;default:xe(t,513,Ai(r,n,i))}}function _6(t,e,r){var n=Ar(),a=r.SheetNames[t],i=r.Sheets[a]||{},o=(r||{}).Workbook||{},s=(o.Sheets||[])[t]||{},l=Array.isArray(i),u=e.biff==8,f,h="",v=[],c=gt(i["!ref"]||"A1"),d=u?65536:16384;if(c.e.c>255||c.e.r>=d){if(e.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");c.e.c=Math.min(c.e.c,255),c.e.r=Math.min(c.e.c,d-1)}xe(n,2057,Ed(r,16,e)),xe(n,13,Zr(1)),xe(n,12,Zr(100)),xe(n,15,cr(!0)),xe(n,17,cr(!1)),xe(n,16,Ei(.001)),xe(n,95,cr(!0)),xe(n,42,cr(!1)),xe(n,43,cr(!1)),xe(n,130,Zr(1)),xe(n,128,uF()),xe(n,131,cr(!1)),xe(n,132,cr(!1)),u&&g6(n,i["!cols"]),xe(n,512,lF(c,e)),u&&(i["!links"]=[]);for(var p=c.s.r;p<=c.e.r;++p){h=qt(p);for(var g=c.s.c;g<=c.e.c;++g){p===c.s.r&&(v[g]=ir(g)),f=v[g]+h;var m=l?(i[p]||[])[g]:i[f];m&&(m6(n,m,p,g,e),u&&m.l&&i["!links"].push([f,m.l]))}}var _=s.CodeName||s.name||a;return u&&xe(n,574,nF((o.Views||[])[0])),u&&(i["!merges"]||[]).length&&xe(n,229,dF(i["!merges"])),u&&p6(n,i),xe(n,442,Mw(_)),u&&v6(n,i),xe(n,10),n.end()}function y6(t,e,r){var n=Ar(),a=(t||{}).Workbook||{},i=a.Sheets||[],o=a.WBProps||{},s=r.biff==8,l=r.biff==5;if(xe(n,2057,Ed(t,5,r)),r.bookType=="xla"&&xe(n,135),xe(n,225,s?Zr(1200):null),xe(n,193,zP(2)),l&&xe(n,191),l&&xe(n,192),xe(n,226),xe(n,92,QP("SheetJS",r)),xe(n,66,Zr(s?1200:1252)),s&&xe(n,353,Zr(0)),s&&xe(n,448),xe(n,317,xF(t.SheetNames.length)),s&&t.vbaraw&&xe(n,211),s&&t.vbaraw){var u=o.CodeName||"ThisWorkbook";xe(n,442,Mw(u))}xe(n,156,Zr(17)),xe(n,25,cr(!1)),xe(n,18,cr(!1)),xe(n,19,Zr(0)),s&&xe(n,431,cr(!1)),s&&xe(n,444,Zr(0)),xe(n,61,rF()),xe(n,64,cr(!1)),xe(n,141,Zr(0)),xe(n,34,cr(C8(t)=="true")),xe(n,14,cr(!0)),s&&xe(n,439,cr(!1)),xe(n,218,Zr(0)),h6(n,t,r),c6(n,t.SSF,r),d6(n,r),s&&xe(n,352,cr(!1));var f=n.end(),h=Ar();s&&xe(h,140,mF()),s&&r.Strings&&i6(h,252,tF(r.Strings)),xe(h,10);var v=h.end(),c=Ar(),d=0,p=0;for(p=0;p<t.SheetNames.length;++p)d+=(s?12:11)+(s?2:1)*t.SheetNames[p].length;var g=f.length+d+v.length;for(p=0;p<t.SheetNames.length;++p){var m=i[p]||{};xe(c,133,eF({pos:g,hs:m.Hidden||0,dt:0,name:t.SheetNames[p]},r)),g+=e[p].length}var _=c.end();if(d!=_.length)throw new Error("BS8 "+d+" != "+_.length);var y=[];return f.length&&y.push(f),_.length&&y.push(_),v.length&&y.push(v),Kt(y)}function x6(t,e){var r=e||{},n=[];t&&!t.SSF&&(t.SSF=Ir(Et)),t&&t.SSF&&(vh(),ch(t.SSF),r.revssf=dh(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Id(r),r.cellXfs=[],Ha(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var a=0;a<t.SheetNames.length;++a)n[n.length]=_6(a,r,t);return n.unshift(y6(t,n,r)),Kt(n)}function rT(t,e){for(var r=0;r<=t.SheetNames.length;++r){var n=t.Sheets[t.SheetNames[r]];if(!(!n||!n["!ref"])){var a=Ur(n["!ref"]);a.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var i=e||{};switch(i.biff||2){case 8:case 5:return x6(t,e);case 4:case 3:case 2:return f6(t,e)}throw new Error("invalid type "+i.bookType+" for BIFF")}function w6(t,e,r,n){for(var a=t["!merges"]||[],i=[],o=e.s.c;o<=e.e.c;++o){for(var s=0,l=0,u=0;u<a.length;++u)if(!(a[u].s.r>r||a[u].s.c>o)&&!(a[u].e.r<r||a[u].e.c<o)){if(a[u].s.r<r||a[u].s.c<o){s=-1;break}s=a[u].e.r-a[u].s.r+1,l=a[u].e.c-a[u].s.c+1;break}if(!(s<0)){var f=ot({r,c:o}),h=n.dense?(t[r]||[])[o]:t[f],v=h&&h.v!=null&&(h.h||JR(h.w||(ia(h),h.w)||""))||"",c={};s>1&&(c.rowspan=s),l>1&&(c.colspan=l),n.editable?v='<span contenteditable="true">'+v+"</span>":h&&(c["data-t"]=h&&h.t||"z",h.v!=null&&(c["data-v"]=h.v),h.z!=null&&(c["data-z"]=h.z),h.l&&(h.l.Target||"#").charAt(0)!="#"&&(v='<a href="'+h.l.Target+'">'+v+"</a>")),c.id=(n.id||"sjs")+"-"+f,i.push(ye("td",v,c))}}var d="<tr>";return d+i.join("")+"</tr>"}var T6='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',S6="</body></html>";function C6(t,e,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function nT(t,e){var r=e||{},n=r.header!=null?r.header:T6,a=r.footer!=null?r.footer:S6,i=[n],o=Ur(t["!ref"]);r.dense=Array.isArray(t),i.push(C6(t,o,r));for(var s=o.s.r;s<=o.e.r;++s)i.push(w6(t,o,s,r));return i.push("</table>"+a),i.join("")}function aT(t,e,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var o=typeof n.origin=="string"?Ut(n.origin):n.origin;a=o.r,i=o.c}var s=e.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),u={s:{r:0,c:0},e:{r:a,c:i}};if(t["!ref"]){var f=Ur(t["!ref"]);u.s.r=Math.min(u.s.r,f.s.r),u.s.c=Math.min(u.s.c,f.s.c),u.e.r=Math.max(u.e.r,f.e.r),u.e.c=Math.max(u.e.c,f.e.c),a==-1&&(u.e.r=a=f.e.r+1)}var h=[],v=0,c=t["!rows"]||(t["!rows"]=[]),d=0,p=0,g=0,m=0,_=0,y=0;for(t["!cols"]||(t["!cols"]=[]);d<s.length&&p<l;++d){var w=s[d];if(Km(w)){if(n.display)continue;c[p]={hidden:!0}}var E=w.children;for(g=m=0;g<E.length;++g){var T=E[g];if(!(n.display&&Km(T))){var x=T.hasAttribute("data-v")?T.getAttribute("data-v"):T.hasAttribute("v")?T.getAttribute("v"):rP(T.innerHTML),C=T.getAttribute("data-z")||T.getAttribute("z");for(v=0;v<h.length;++v){var S=h[v];S.s.c==m+i&&S.s.r<p+a&&p+a<=S.e.r&&(m=S.e.c+1-i,v=-1)}y=+T.getAttribute("colspan")||1,((_=+T.getAttribute("rowspan")||1)>1||y>1)&&h.push({s:{r:p+a,c:m+i},e:{r:p+a+(_||1)-1,c:m+i+(y||1)-1}});var A={t:"s",v:x},M=T.getAttribute("data-t")||T.getAttribute("t")||"";x!=null&&(x.length==0?A.t=M||"z":n.raw||x.trim().length==0||M=="s"||(x==="TRUE"?A={t:"b",v:!0}:x==="FALSE"?A={t:"b",v:!1}:isNaN(Qn(x))?isNaN(fl(x).getDate())||(A={t:"d",v:dr(x)},n.cellDates||(A={t:"n",v:kr(A.v)}),A.z=n.dateNF||Et[14]):A={t:"n",v:Qn(x)})),A.z===void 0&&C!=null&&(A.z=C);var L="",N=T.getElementsByTagName("A");if(N&&N.length)for(var V=0;V<N.length&&!(N[V].hasAttribute("href")&&(L=N[V].getAttribute("href"),L.charAt(0)!="#"));++V);L&&L.charAt(0)!="#"&&(A.l={Target:L}),n.dense?(t[p+a]||(t[p+a]=[]),t[p+a][m+i]=A):t[ot({c:m+i,r:p+a})]=A,u.e.c<m+i&&(u.e.c=m+i),m+=y}}++p}return h.length&&(t["!merges"]=(t["!merges"]||[]).concat(h)),u.e.r=Math.max(u.e.r,p-1+a),t["!ref"]=Rt(u),p>=l&&(t["!fullref"]=Rt((u.e.r=s.length-d+p-1+a,u))),t}function iT(t,e){var r=e||{},n=r.dense?[]:{};return aT(n,t,e)}function E6(t,e){return Mi(iT(t,e),e)}function Km(t){var e="",r=A6(t);return r&&(e=r(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),e==="none"}function A6(t){return t.ownerDocument.defaultView&&typeof t.ownerDocument.defaultView.getComputedStyle=="function"?t.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var b6=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+cl({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Pt+e}}(),Zm=function(){var t=function(i){return it(i).replace(/ +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},e=` <table:table-cell />
102
+ `,r=` <table:covered-table-cell/>
103
+ `,n=function(i,o,s){var l=[];l.push(' <table:table table:name="'+it(o.SheetNames[s])+`" table:style-name="ta1">
104
+ `);var u=0,f=0,h=Ur(i["!ref"]||"A1"),v=i["!merges"]||[],c=0,d=Array.isArray(i);if(i["!cols"])for(f=0;f<=h.e.c;++f)l.push(" <table:table-column"+(i["!cols"][f]?' table:style-name="co'+i["!cols"][f].ods+'"':"")+`></table:table-column>
105
+ `);var p="",g=i["!rows"]||[];for(u=0;u<h.s.r;++u)p=g[u]?' table:style-name="ro'+g[u].ods+'"':"",l.push(" <table:table-row"+p+`></table:table-row>
106
+ `);for(;u<=h.e.r;++u){for(p=g[u]?' table:style-name="ro'+g[u].ods+'"':"",l.push(" <table:table-row"+p+`>
107
+ `),f=0;f<h.s.c;++f)l.push(e);for(;f<=h.e.c;++f){var m=!1,_={},y="";for(c=0;c!=v.length;++c)if(!(v[c].s.c>f)&&!(v[c].s.r>u)&&!(v[c].e.c<f)&&!(v[c].e.r<u)){(v[c].s.c!=f||v[c].s.r!=u)&&(m=!0),_["table:number-columns-spanned"]=v[c].e.c-v[c].s.c+1,_["table:number-rows-spanned"]=v[c].e.r-v[c].s.r+1;break}if(m){l.push(r);continue}var w=ot({r:u,c:f}),E=d?(i[u]||[])[f]:i[w];if(E&&E.f&&(_["table:formula"]=it(X5(E.f)),E.F&&E.F.slice(0,w.length)==w)){var T=Ur(E.F);_["table:number-matrix-columns-spanned"]=T.e.c-T.s.c+1,_["table:number-matrix-rows-spanned"]=T.e.r-T.s.r+1}if(!E){l.push(e);continue}switch(E.t){case"b":y=E.v?"TRUE":"FALSE",_["office:value-type"]="boolean",_["office:boolean-value"]=E.v?"true":"false";break;case"n":y=E.w||String(E.v||0),_["office:value-type"]="float",_["office:value"]=E.v||0;break;case"s":case"str":y=E.v==null?"":E.v,_["office:value-type"]="string";break;case"d":y=E.w||dr(E.v).toISOString(),_["office:value-type"]="date",_["office:date-value"]=dr(E.v).toISOString(),_["table:style-name"]="ce1";break;default:l.push(e);continue}var x=t(y);if(E.l&&E.l.Target){var C=E.l.Target;C=C.charAt(0)=="#"?"#"+K5(C.slice(1)):C,C.charAt(0)!="#"&&!C.match(/^\w+:/)&&(C="../"+C),x=ye("text:a",x,{"xlink:href":C.replace(/&/g,"&amp;")})}l.push(" "+ye("table:table-cell",ye("text:p",x,{}),_)+`
108
+ `)}l.push(` </table:table-row>
109
+ `)}return l.push(` </table:table>
110
+ `),l.join("")},a=function(i,o){i.push(` <office:automatic-styles>
111
+ `),i.push(` <number:date-style style:name="N37" number:automatic-order="true">
112
+ `),i.push(` <number:month number:style="long"/>
113
+ `),i.push(` <number:text>/</number:text>
114
+ `),i.push(` <number:day number:style="long"/>
115
+ `),i.push(` <number:text>/</number:text>
116
+ `),i.push(` <number:year/>
117
+ `),i.push(` </number:date-style>
118
+ `);var s=0;o.SheetNames.map(function(u){return o.Sheets[u]}).forEach(function(u){if(u&&u["!cols"]){for(var f=0;f<u["!cols"].length;++f)if(u["!cols"][f]){var h=u["!cols"][f];if(h.width==null&&h.wpx==null&&h.wch==null)continue;Ad(h),h.ods=s;var v=u["!cols"][f].wpx+"px";i.push(' <style:style style:name="co'+s+`" style:family="table-column">
119
+ `),i.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+v+`"/>
120
+ `),i.push(` </style:style>
121
+ `),++s}}});var l=0;o.SheetNames.map(function(u){return o.Sheets[u]}).forEach(function(u){if(u&&u["!rows"]){for(var f=0;f<u["!rows"].length;++f)if(u["!rows"][f]){u["!rows"][f].ods=l;var h=u["!rows"][f].hpx+"px";i.push(' <style:style style:name="ro'+l+`" style:family="table-row">
122
+ `),i.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+h+`"/>
123
+ `),i.push(` </style:style>
124
+ `),++l}}}),i.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
125
+ `),i.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
126
+ `),i.push(` </style:style>
127
+ `),i.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
128
+ `),i.push(` </office:automatic-styles>
129
+ `)};return function(o,s){var l=[Pt],u=cl({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),f=cl({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push("<office:document"+u+f+`>
130
+ `),l.push(xw().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+u+`>
131
+ `),a(l,o),l.push(` <office:body>
132
+ `),l.push(` <office:spreadsheet>
133
+ `);for(var h=0;h!=o.SheetNames.length;++h)l.push(n(o.Sheets[o.SheetNames[h]],o,h));return l.push(` </office:spreadsheet>
134
+ `),l.push(` </office:body>
135
+ `),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function oT(t,e){if(e.bookType=="fods")return Zm(t,e);var r=pd(),n="",a=[],i=[];return n="mimetype",Ge(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Ge(r,n,Zm(t,e)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",Ge(r,n,b6(t,e)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",Ge(r,n,Pt+xw()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",Ge(r,n,UP(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Ge(r,n,NP(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function If(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function D6(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):vn(hl(t))}function M6(t,e){e:for(var r=0;r<=t.length-e.length;++r){for(var n=0;n<e.length;++n)if(t[r+n]!=e[n])continue e;return!0}return!1}function Ba(t){var e=t.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(e),n=0;return t.forEach(function(a){r.set(a,n),n+=a.length}),r}function k6(t,e,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);t[e+15]|=n>>7,t[e+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)t[e+i]=a&255;t[e+15]|=r>=0?0:128}function vl(t,e){var r=e?e[0]:0,n=t[r]&127;e:if(t[r++]>=128&&(n|=(t[r]&127)<<7,t[r++]<128||(n|=(t[r]&127)<<14,t[r++]<128)||(n|=(t[r]&127)<<21,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,28),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,35),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,42),++r,t[r++]<128)))break e;return e&&(e[0]=r),n}function tt(t){var e=new Uint8Array(7);e[0]=t&127;var r=1;e:if(t>127){if(e[r-1]|=128,e[r]=t>>7&127,++r,t<=16383||(e[r-1]|=128,e[r]=t>>14&127,++r,t<=2097151)||(e[r-1]|=128,e[r]=t>>21&127,++r,t<=268435455)||(e[r-1]|=128,e[r]=t/256>>>21&127,++r,t<=34359738367)||(e[r-1]|=128,e[r]=t/65536>>>21&127,++r,t<=4398046511103))break e;e[r-1]|=128,e[r]=t/16777216>>>21&127,++r}return e.slice(0,r)}function To(t){var e=0,r=t[e]&127;e:if(t[e++]>=128){if(r|=(t[e]&127)<<7,t[e++]<128||(r|=(t[e]&127)<<14,t[e++]<128)||(r|=(t[e]&127)<<21,t[e++]<128))break e;r|=(t[e]&127)<<28}return r}function Ft(t){for(var e=[],r=[0];r[0]<t.length;){var n=r[0],a=vl(t,r),i=a&7;a=Math.floor(a/8);var o=0,s;if(a==0)break;switch(i){case 0:{for(var l=r[0];t[r[0]++]>=128;);s=t.slice(l,r[0])}break;case 5:o=4,s=t.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,s=t.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=vl(t,r),s=t.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var u={data:s,type:i};e[a]==null?e[a]=[u]:e[a].push(u)}return e}function Wt(t){var e=[];return t.forEach(function(r,n){r.forEach(function(a){a.data&&(e.push(tt(n*8+a.type)),a.type==2&&e.push(tt(a.data.length)),e.push(a.data))})}),Ba(e)}function ln(t){for(var e,r=[],n=[0];n[0]<t.length;){var a=vl(t,n),i=Ft(t.slice(n[0],n[0]+a));n[0]+=a;var o={id:To(i[1][0].data),messages:[]};i[2].forEach(function(s){var l=Ft(s.data),u=To(l[3][0].data);o.messages.push({meta:l,data:t.slice(n[0],n[0]+u)}),n[0]+=u}),(e=i[3])!=null&&e[0]&&(o.merge=To(i[3][0].data)>>>0>0),r.push(o)}return r}function eo(t){var e=[];return t.forEach(function(r){var n=[];n[1]=[{data:tt(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:tt(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(o){a.push(o.data),o.meta[3]=[{type:0,data:tt(o.data.length)}],n[2].push({data:Wt(o.meta),type:2})});var i=Wt(n);e.push(tt(i.length)),e.push(i),a.forEach(function(o){return e.push(o)})}),Ba(e)}function I6(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var r=[0],n=vl(e,r),a=[];r[0]<e.length;){var i=e[r[0]]&3;if(i==0){var o=e[r[0]++]>>2;if(o<60)++o;else{var s=o-59;o=e[r[0]],s>1&&(o|=e[r[0]+1]<<8),s>2&&(o|=e[r[0]+2]<<16),s>3&&(o|=e[r[0]+3]<<24),o>>>=0,o++,r[0]+=s}a.push(e.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,u=0;if(i==1?(u=(e[r[0]]>>2&7)+4,l=(e[r[0]++]&224)<<3,l|=e[r[0]++]):(u=(e[r[0]++]>>2)+1,i==2?(l=e[r[0]]|e[r[0]+1]<<8,r[0]+=2):(l=(e[r[0]]|e[r[0]+1]<<8|e[r[0]+2]<<16|e[r[0]+3]<<24)>>>0,r[0]+=4)),a=[Ba(a)],l==0)throw new Error("Invalid offset 0");if(l>a[0].length)throw new Error("Invalid offset beyond length");if(u>=l)for(a.push(a[0].slice(-l)),u-=l;u>=a[a.length-1].length;)a.push(a[a.length-1]),u-=a[a.length-1].length;a.push(a[0].slice(-l,-l+u))}}var f=Ba(a);if(f.length!=n)throw new Error("Unexpected length: ".concat(f.length," != ").concat(n));return f}function un(t){for(var e=[],r=0;r<t.length;){var n=t[r++],a=t[r]|t[r+1]<<8|t[r+2]<<16;r+=3,e.push(I6(n,t.slice(r,r+a))),r+=a}if(r!==t.length)throw new Error("data is not a valid framed stream!");return Ba(e)}function to(t){for(var e=[],r=0;r<t.length;){var n=Math.min(t.length-r,268435455),a=new Uint8Array(4);e.push(a);var i=tt(n),o=i.length;e.push(i),n<=60?(o++,e.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,e.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,e.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,e.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,e.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),e.push(t.slice(r,r+n)),o+=n,a[0]=0,a[1]=o&255,a[2]=o>>8&255,a[3]=o>>16&255,r+=n}return Ba(e)}function jc(t,e){var r=new Uint8Array(32),n=If(r),a=12,i=0;switch(r[0]=5,t.t){case"n":r[1]=2,k6(r,a,t.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,t.v?1:0,!0),i|=2,a+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[1]=3,n.setUint32(a,e.indexOf(t.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,i,!0),r.slice(0,a)}function Jc(t,e){var r=new Uint8Array(32),n=If(r),a=12,i=0;switch(r[0]=3,t.t){case"n":r[2]=2,n.setFloat64(a,t.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,t.v?1:0,!0),i|=32,a+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[2]=3,n.setUint32(a,e.indexOf(t.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,i,!0),r.slice(0,a)}function ma(t){var e=Ft(t);return vl(e[1][0].data)}function L6(t,e,r){var n,a,i,o;if(!((n=t[6])!=null&&n[0])||!((a=t[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(i=t[8])==null?void 0:i[0])==null?void 0:o.data)&&To(t[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,u=If(t[7][0].data),f=0,h=[],v=If(t[4][0].data),c=0,d=[],p=0;p<e.length;++p){if(e[p]==null){u.setUint16(p*2,65535,!0),v.setUint16(p*2,65535);continue}u.setUint16(p*2,f,!0),v.setUint16(p*2,c,!0);var g,m;switch(typeof e[p]){case"string":g=jc({t:"s",v:e[p]},r),m=Jc({t:"s",v:e[p]},r);break;case"number":g=jc({t:"n",v:e[p]},r),m=Jc({t:"n",v:e[p]},r);break;case"boolean":g=jc({t:"b",v:e[p]},r),m=Jc({t:"b",v:e[p]},r);break;default:throw new Error("Unsupported value "+e[p])}h.push(g),f+=g.length,d.push(m),c+=m.length,++l}for(t[2][0].data=tt(l);p<t[7][0].data.length/2;++p)u.setUint16(p*2,65535,!0),v.setUint16(p*2,65535,!0);return t[6][0].data=Ba(h),t[3][0].data=Ba(d),l}function R6(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Ur(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(Rt(n)));var i=Lf(r,{range:n,header:1}),o=["~Sh33tJ5~"];i.forEach(function(G){return G.forEach(function(B){typeof B=="string"&&o.push(B)})});var s={},l=[],u=lt.read(e.numbers,{type:"base64"});u.FileIndex.map(function(G,B){return[G,u.FullPaths[B]]}).forEach(function(G){var B=G[0],U=G[1];if(B.type==2&&B.name.match(/\.iwa/)){var q=B.content,ce=un(q),Ce=ln(ce);Ce.forEach(function(ge){l.push(ge.id),s[ge.id]={deps:[],location:U,type:To(ge.messages[0].meta[1][0].data)}})}}),l.sort(function(G,B){return G-B});var f=l.filter(function(G){return G>1}).map(function(G){return[G,tt(G)]});u.FileIndex.map(function(G,B){return[G,u.FullPaths[B]]}).forEach(function(G){var B=G[0];if(G[1],!!B.name.match(/\.iwa/)){var U=ln(un(B.content));U.forEach(function(q){q.messages.forEach(function(ce){f.forEach(function(Ce){q.messages.some(function(ge){return To(ge.meta[1][0].data)!=11006&&M6(ge.data,Ce[1])})&&s[Ce[0]].deps.push(q.id)})})})}});for(var h=lt.find(u,s[1].location),v=ln(un(h.content)),c,d=0;d<v.length;++d){var p=v[d];p.id==1&&(c=p)}var g=ma(Ft(c.messages[0].data)[1][0].data);for(h=lt.find(u,s[g].location),v=ln(un(h.content)),d=0;d<v.length;++d)p=v[d],p.id==g&&(c=p);for(g=ma(Ft(c.messages[0].data)[2][0].data),h=lt.find(u,s[g].location),v=ln(un(h.content)),d=0;d<v.length;++d)p=v[d],p.id==g&&(c=p);for(g=ma(Ft(c.messages[0].data)[2][0].data),h=lt.find(u,s[g].location),v=ln(un(h.content)),d=0;d<v.length;++d)p=v[d],p.id==g&&(c=p);var m=Ft(c.messages[0].data);{m[6][0].data=tt(n.e.r+1),m[7][0].data=tt(n.e.c+1);var _=ma(m[46][0].data),y=lt.find(u,s[_].location),w=ln(un(y.content));{for(var E=0;E<w.length&&w[E].id!=_;++E);if(w[E].id!=_)throw"Bad ColumnRowUIDMapArchive";var T=Ft(w[E].messages[0].data);T[1]=[],T[2]=[],T[3]=[];for(var x=0;x<=n.e.c;++x){var C=[];C[1]=C[2]=[{type:0,data:tt(x+420690)}],T[1].push({type:2,data:Wt(C)}),T[2].push({type:0,data:tt(x)}),T[3].push({type:0,data:tt(x)})}T[4]=[],T[5]=[],T[6]=[];for(var S=0;S<=n.e.r;++S)C=[],C[1]=C[2]=[{type:0,data:tt(S+726270)}],T[4].push({type:2,data:Wt(C)}),T[5].push({type:0,data:tt(S)}),T[6].push({type:0,data:tt(S)});w[E].messages[0].data=Wt(T)}y.content=to(eo(w)),y.size=y.content.length,delete m[46];var A=Ft(m[4][0].data);{A[7][0].data=tt(n.e.r+1);var M=Ft(A[1][0].data),L=ma(M[2][0].data);y=lt.find(u,s[L].location),w=ln(un(y.content));{if(w[0].id!=L)throw"Bad HeaderStorageBucket";var N=Ft(w[0].messages[0].data);for(S=0;S<i.length;++S){var V=Ft(N[2][0].data);V[1][0].data=tt(S),V[4][0].data=tt(i[S].length),N[2][S]={type:N[2][0].type,data:Wt(V)}}w[0].messages[0].data=Wt(N)}y.content=to(eo(w)),y.size=y.content.length;var W=ma(A[2][0].data);y=lt.find(u,s[W].location),w=ln(un(y.content));{if(w[0].id!=W)throw"Bad HeaderStorageBucket";for(N=Ft(w[0].messages[0].data),x=0;x<=n.e.c;++x)V=Ft(N[2][0].data),V[1][0].data=tt(x),V[4][0].data=tt(n.e.r+1),N[2][x]={type:N[2][0].type,data:Wt(V)};w[0].messages[0].data=Wt(N)}y.content=to(eo(w)),y.size=y.content.length;var te=ma(A[4][0].data);(function(){for(var G=lt.find(u,s[te].location),B=ln(un(G.content)),U,q=0;q<B.length;++q){var ce=B[q];ce.id==te&&(U=ce)}var Ce=Ft(U.messages[0].data);{Ce[3]=[];var ge=[];o.forEach(function(we,st){ge[1]=[{type:0,data:tt(st)}],ge[2]=[{type:0,data:tt(1)}],ge[3]=[{type:2,data:D6(we)}],Ce[3].push({type:2,data:Wt(ge)})})}U.messages[0].data=Wt(Ce);var ue=eo(B),Te=to(ue);G.content=Te,G.size=G.content.length})();var _e=Ft(A[3][0].data);{var ve=_e[1][0];delete _e[2];var fe=Ft(ve.data);{var J=ma(fe[2][0].data);(function(){for(var G=lt.find(u,s[J].location),B=ln(un(G.content)),U,q=0;q<B.length;++q){var ce=B[q];ce.id==J&&(U=ce)}var Ce=Ft(U.messages[0].data);{delete Ce[6],delete _e[7];var ge=new Uint8Array(Ce[5][0].data);Ce[5]=[];for(var ue=0,Te=0;Te<=n.e.r;++Te){var we=Ft(ge);ue+=L6(we,i[Te],o),we[1][0].data=tt(Te),Ce[5].push({data:Wt(we),type:2})}Ce[1]=[{type:0,data:tt(n.e.c+1)}],Ce[2]=[{type:0,data:tt(n.e.r+1)}],Ce[3]=[{type:0,data:tt(ue)}],Ce[4]=[{type:0,data:tt(n.e.r+1)}]}U.messages[0].data=Wt(Ce);var st=eo(B),Le=to(st);G.content=Le,G.size=G.content.length})()}ve.data=Wt(fe)}A[3][0].data=Wt(_e)}m[4][0].data=Wt(A)}c.messages[0].data=Wt(m);var re=eo(v),I=to(re);return h.content=I,h.size=h.content.length,u}function P6(t){return function(r){for(var n=0;n!=t.length;++n){var a=t[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function Id(t){P6([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function F6(t,e){return e.bookType=="ods"?oT(t,e):e.bookType=="numbers"?R6(t,e):e.bookType=="xlsb"?O6(t,e):N6(t,e)}function O6(t,e){fo=1024,t&&!t.SSF&&(t.SSF=Ir(Et)),t&&t.SSF&&(vh(),ch(t.SSF),e.revssf=dh(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Ys?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r=e.bookType=="xlsb"?"bin":"xml",n=Ww.indexOf(e.bookType)>-1,a=mw();Id(e=e||{});var i=pd(),o="",s=0;if(e.cellXfs=[],Ha(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",Ge(i,o,ww(t.Props,e)),a.coreprops.push(o),rt(e.rels,2,o,Xe.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],u=0;u<t.SheetNames.length;++u)(t.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(t.SheetNames[u]);t.Props.SheetNames=l}for(t.Props.Worksheets=t.Props.SheetNames.length,Ge(i,o,Sw(t.Props)),a.extprops.push(o),rt(e.rels,3,o,Xe.EXT_PROPS),t.Custprops!==t.Props&&Jt(t.Custprops||{}).length>0&&(o="docProps/custom.xml",Ge(i,o,Cw(t.Custprops)),a.custprops.push(o),rt(e.rels,4,o,Xe.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var f={"!id":{}},h=t.Sheets[t.SheetNames[s-1]],v=(h||{})["!type"]||"sheet";switch(v){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Ge(i,o,U8(s-1,o,e,t,f)),a.sheets.push(o),rt(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xe.WS[0])}if(h){var c=h["!comments"],d=!1,p="";c&&c.length>0&&(p="xl/comments"+s+"."+r,Ge(i,p,W8(c,p)),a.comments.push(p),rt(f,-1,"../comments"+s+"."+r,Xe.CMNT),d=!0),h["!legacy"]&&d&&Ge(i,"xl/drawings/vmlDrawing"+s+".vml",Hw(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}f["!id"].rId1&&Ge(i,yw(o),xo(f))}return e.Strings!=null&&e.Strings.length>0&&(o="xl/sharedStrings."+r,Ge(i,o,G8(e.Strings,o,e)),a.strs.push(o),rt(e.wbrels,-1,"sharedStrings."+r,Xe.SST)),o="xl/workbook."+r,Ge(i,o,B8(t,o)),a.workbooks.push(o),rt(e.rels,1,o,Xe.WB),o="xl/theme/theme1.xml",Ge(i,o,Bw(t.Themes,e)),a.themes.push(o),rt(e.wbrels,-1,"theme/theme1.xml",Xe.THEME),o="xl/styles."+r,Ge(i,o,H8(t,o,e)),a.styles.push(o),rt(e.wbrels,-1,"styles."+r,Xe.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",Ge(i,o,t.vbaraw),a.vba.push(o),rt(e.wbrels,-1,"vbaProject.bin",Xe.VBA)),o="xl/metadata."+r,Ge(i,o,V8(o)),a.metadata.push(o),rt(e.wbrels,-1,"metadata."+r,Xe.XLMETA),Ge(i,"[Content_Types].xml",_w(a,e)),Ge(i,"_rels/.rels",xo(e.rels)),Ge(i,"xl/_rels/workbook."+r+".rels",xo(e.wbrels)),delete e.revssf,delete e.ssf,i}function N6(t,e){fo=1024,t&&!t.SSF&&(t.SSF=Ir(Et)),t&&t.SSF&&(vh(),ch(t.SSF),e.revssf=dh(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Ys?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",n=Ww.indexOf(e.bookType)>-1,a=mw();Id(e=e||{});var i=pd(),o="",s=0;if(e.cellXfs=[],Ha(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",Ge(i,o,ww(t.Props,e)),a.coreprops.push(o),rt(e.rels,2,o,Xe.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],u=0;u<t.SheetNames.length;++u)(t.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(t.SheetNames[u]);t.Props.SheetNames=l}t.Props.Worksheets=t.Props.SheetNames.length,Ge(i,o,Sw(t.Props)),a.extprops.push(o),rt(e.rels,3,o,Xe.EXT_PROPS),t.Custprops!==t.Props&&Jt(t.Custprops||{}).length>0&&(o="docProps/custom.xml",Ge(i,o,Cw(t.Custprops)),a.custprops.push(o),rt(e.rels,4,o,Xe.CUST_PROPS));var f=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var h={"!id":{}},v=t.Sheets[t.SheetNames[s-1]],c=(v||{})["!type"]||"sheet";switch(c){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Ge(i,o,jw(s-1,e,t,h)),a.sheets.push(o),rt(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xe.WS[0])}if(v){var d=v["!comments"],p=!1,g="";if(d&&d.length>0){var m=!1;d.forEach(function(_){_[1].forEach(function(y){y.T==!0&&(m=!0)})}),m&&(g="xl/threadedComments/threadedComment"+s+"."+r,Ge(i,g,dO(d,f,e)),a.threadedcomments.push(g),rt(h,-1,"../threadedComments/threadedComment"+s+"."+r,Xe.TCMNT)),g="xl/comments"+s+"."+r,Ge(i,g,Gw(d)),a.comments.push(g),rt(h,-1,"../comments"+s+"."+r,Xe.CMNT),p=!0}v["!legacy"]&&p&&Ge(i,"xl/drawings/vmlDrawing"+s+".vml",Hw(s,v["!comments"])),delete v["!comments"],delete v["!legacy"]}h["!id"].rId1&&Ge(i,yw(o),xo(h))}return e.Strings!=null&&e.Strings.length>0&&(o="xl/sharedStrings."+r,Ge(i,o,Lw(e.Strings,e)),a.strs.push(o),rt(e.wbrels,-1,"sharedStrings."+r,Xe.SST)),o="xl/workbook."+r,Ge(i,o,eT(t)),a.workbooks.push(o),rt(e.rels,1,o,Xe.WB),o="xl/theme/theme1.xml",Ge(i,o,Bw(t.Themes,e)),a.themes.push(o),rt(e.wbrels,-1,"theme/theme1.xml",Xe.THEME),o="xl/styles."+r,Ge(i,o,Ow(t,e)),a.styles.push(o),rt(e.wbrels,-1,"styles."+r,Xe.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",Ge(i,o,t.vbaraw),a.vba.push(o),rt(e.wbrels,-1,"vbaProject.bin",Xe.VBA)),o="xl/metadata."+r,Ge(i,o,Uw()),a.metadata.push(o),rt(e.wbrels,-1,"metadata."+r,Xe.XLMETA),f.length>1&&(o="xl/persons/person.xml",Ge(i,o,pO(f)),a.people.push(o),rt(e.wbrels,-1,"persons/person.xml",Xe.PEOPLE)),Ge(i,"[Content_Types].xml",_w(a,e)),Ge(i,"_rels/.rels",xo(e.rels)),Ge(i,"xl/_rels/workbook."+r+".rels",xo(e.wbrels)),delete e.revssf,delete e.ssf,i}function B6(t,e){var r="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":r=aa(t.slice(0,12));break;case"binary":r=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function sT(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return Sl(e.file,lt.write(t,{type:Ke?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return lt.write(t,e)}function U6(t,e){var r=Ir(e||{}),n=F6(t,r);return H6(n,r)}function H6(t,e){var r={},n=Ke?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=n;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var a=t.FullPaths?lt.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(e.type=="binary"||e.type=="base64")return a;a=new Uint8Array(hh(a))}return e.password&&typeof encrypt_agile<"u"?sT(encrypt_agile(a,e.password),e):e.type==="file"?Sl(e.file,a):e.type=="string"?Ws(a):a}function G6(t,e){var r=e||{},n=n6(t,r);return sT(n,r)}function Mn(t,e,r){r||(r="");var n=r+t;switch(e.type){case"base64":return ul(hl(n));case"binary":return hl(n);case"string":return t;case"file":return Sl(e.file,n,"utf8");case"buffer":return Ke?sa(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Mn(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function W6(t,e){switch(e.type){case"base64":return ul(t);case"binary":return t;case"string":return t;case"file":return Sl(e.file,t,"binary");case"buffer":return Ke?sa(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function Cu(t,e){switch(e.type){case"string":case"base64":case"binary":for(var r="",n=0;n<t.length;++n)r+=String.fromCharCode(t[n]);return e.type=="base64"?ul(r):e.type=="string"?Ws(r):r;case"file":return Sl(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function lT(t,e){gR(),b8(t);var r=Ir(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=lT(t,r);return r.type="array",hh(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=t.SheetNames.indexOf(r.sheet),!t.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return Mn(t6(t,r),r);case"slk":case"sylk":return Mn(CF.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"htm":case"html":return Mn(nT(t.Sheets[t.SheetNames[a]],r),r);case"txt":return W6(uT(t.Sheets[t.SheetNames[a]],r),r);case"csv":return Mn(Ld(t.Sheets[t.SheetNames[a]],r),r,"\uFEFF");case"dif":return Mn(EF.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"dbf":return Cu(SF.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"prn":return Mn(AF.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"rtf":return Mn(RF.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"eth":return Mn(Iw.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"fods":return Mn(oT(t,r),r);case"wk1":return Cu(Wm.sheet_to_wk1(t.Sheets[t.SheetNames[a]],r),r);case"wk3":return Cu(Wm.book_to_wk3(t,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Cu(rT(t,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),G6(t,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return U6(t,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function V6(t){if(!t.bookType){var e={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(t.bookType=r.slice(1)),t.bookType=e[t.bookType]||t.bookType}}function z6(t,e,r){var n={};return n.type="file",n.file=e,V6(n),lT(t,n)}function $6(t,e,r,n,a,i,o,s){var l=qt(r),u=s.defval,f=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,v=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(v,"__rowNum__",{value:r,enumerable:!1})}catch{v.__rowNum__=r}else v.__rowNum__=r;if(!o||t[r])for(var c=e.s.c;c<=e.e.c;++c){var d=o?t[r][c]:t[n[c]+l];if(d===void 0||d.t===void 0){if(u===void 0)continue;i[c]!=null&&(v[i[c]]=u);continue}var p=d.v;switch(d.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+d.t)}if(i[c]!=null){if(p==null)if(d.t=="e"&&p===null)v[i[c]]=null;else if(u!==void 0)v[i[c]]=u;else if(f&&p===null)v[i[c]]=null;else continue;else v[i[c]]=f&&(d.t!=="n"||d.t==="n"&&s.rawNumbers!==!1)?p:ia(d,p,s);p!=null&&(h=!1)}}return{row:v,isempty:h}}function Lf(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,i=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=e||{},f=u.range!=null?u.range:t["!ref"];switch(u.header===1?n=1:u.header==="A"?n=2:Array.isArray(u.header)?n=3:u.header==null&&(n=0),typeof f){case"string":l=gt(f);break;case"number":l=gt(t["!ref"]),l.s.r=f;break;default:l=f}n>0&&(a=0);var h=qt(l.s.r),v=[],c=[],d=0,p=0,g=Array.isArray(t),m=l.s.r,_=0,y={};g&&!t[m]&&(t[m]=[]);var w=u.skipHidden&&t["!cols"]||[],E=u.skipHidden&&t["!rows"]||[];for(_=l.s.c;_<=l.e.c;++_)if(!(w[_]||{}).hidden)switch(v[_]=ir(_),r=g?t[m][_]:t[v[_]+h],n){case 1:i[_]=_-l.s.c;break;case 2:i[_]=v[_];break;case 3:i[_]=u.header[_-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=ia(r,null,u),p=y[o]||0,!p)y[o]=1;else{do s=o+"_"+p++;while(y[s]);y[o]=p,y[s]=1}i[_]=s}for(m=l.s.r+a;m<=l.e.r;++m)if(!(E[m]||{}).hidden){var T=$6(t,l,m,v,n,i,g,u);(T.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(c[d++]=T.row)}return c.length=d,c}var qm=/"/g;function Y6(t,e,r,n,a,i,o,s){for(var l=!0,u=[],f="",h=qt(r),v=e.s.c;v<=e.e.c;++v)if(n[v]){var c=s.dense?(t[r]||[])[v]:t[n[v]+h];if(c==null)f="";else if(c.v!=null){l=!1,f=""+(s.rawNumbers&&c.t=="n"?c.v:ia(c,null,s));for(var d=0,p=0;d!==f.length;++d)if((p=f.charCodeAt(d))===a||p===i||p===34||s.forceQuotes){f='"'+f.replace(qm,'""')+'"';break}f=="ID"&&(f='"ID"')}else c.f!=null&&!c.F?(l=!1,f="="+c.f,f.indexOf(",")>=0&&(f='"'+f.replace(qm,'""')+'"')):f="";u.push(f)}return s.blankrows===!1&&l?null:u.join(o)}function Ld(t,e){var r=[],n=e??{};if(t==null||t["!ref"]==null)return"";var a=gt(t["!ref"]),i=n.FS!==void 0?n.FS:",",o=i.charCodeAt(0),s=n.RS!==void 0?n.RS:`
136
+ `,l=s.charCodeAt(0),u=new RegExp((i=="|"?"\\|":i)+"+$"),f="",h=[];n.dense=Array.isArray(t);for(var v=n.skipHidden&&t["!cols"]||[],c=n.skipHidden&&t["!rows"]||[],d=a.s.c;d<=a.e.c;++d)(v[d]||{}).hidden||(h[d]=ir(d));for(var p=0,g=a.s.r;g<=a.e.r;++g)(c[g]||{}).hidden||(f=Y6(t,a,g,h,o,l,i,n),f!=null&&(n.strip&&(f=f.replace(u,"")),(f||n.blankrows!==!1)&&r.push((p++?s:"")+f)));return delete n.dense,r.join("")}function uT(t,e){e||(e={}),e.FS=" ",e.RS=`
137
+ `;var r=Ld(t,e);return r}function X6(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var a=gt(t["!ref"]),i="",o=[],s,l=[],u=Array.isArray(t);for(s=a.s.c;s<=a.e.c;++s)o[s]=ir(s);for(var f=a.s.r;f<=a.e.r;++f)for(i=qt(f),s=a.s.c;s<=a.e.c;++s)if(e=o[s]+i,r=u?(t[f]||[])[s]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=e+"="+n}return l}function fT(t,e,r){var n=r||{},a=+!n.skipHeader,i=t||{},o=0,s=0;if(i&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?Ut(n.origin):n.origin;o=l.r,s=l.c}var u,f={s:{c:0,r:0},e:{c:s,r:o+e.length-1+a}};if(i["!ref"]){var h=gt(i["!ref"]);f.e.c=Math.max(f.e.c,h.e.c),f.e.r=Math.max(f.e.r,h.e.r),o==-1&&(o=h.e.r+1,f.e.r=o+e.length-1+a)}else o==-1&&(o=0,f.e.r=e.length-1+a);var v=n.header||[],c=0;e.forEach(function(p,g){Jt(p).forEach(function(m){(c=v.indexOf(m))==-1&&(v[c=v.length]=m);var _=p[m],y="z",w="",E=ot({c:s+c,r:o+g+a});u=dl(i,E),_&&typeof _=="object"&&!(_ instanceof Date)?i[E]=_:(typeof _=="number"?y="n":typeof _=="boolean"?y="b":typeof _=="string"?y="s":_ instanceof Date?(y="d",n.cellDates||(y="n",_=kr(_)),w=n.dateNF||Et[14]):_===null&&n.nullError&&(y="e",_=0),u?(u.t=y,u.v=_,delete u.w,delete u.R,w&&(u.z=w)):i[E]=u={t:y,v:_},w&&(u.z=w))})}),f.e.c=Math.max(f.e.c,s+v.length-1);var d=qt(o);if(a)for(c=0;c<v.length;++c)i[ir(c+s)+d]={t:"s",v:v[c]};return i["!ref"]=Rt(f),i}function K6(t,e){return fT(null,t,e)}function dl(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=Ut(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?dl(t,ot(e)):dl(t,ot({r:e,c:r||0}))}function Z6(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function q6(){return{SheetNames:[],Sheets:{}}}function j6(t,e,r,n){var a=1;if(!r)for(;a<=65535&&t.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var o=i&&i[1]||r;for(++a;a<=65535&&t.SheetNames.indexOf(r=o+a)!=-1;++a);}if(Qw(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function J6(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=Z6(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function Q6(t,e){return t.z=e,t}function hT(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function eB(t,e,r){return hT(t,"#"+e,r)}function tB(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function rB(t,e,r,n){for(var a=typeof e!="string"?e:gt(e),i=typeof e=="string"?e:Rt(e),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var l=dl(t,o,s);l.t="n",l.F=i,delete l.v,o==a.s.r&&s==a.s.c&&(l.f=r,n&&(l.D=!0))}return t}var ms={encode_col:ir,encode_row:qt,encode_cell:ot,encode_range:Rt,decode_col:wd,decode_row:xd,split_cell:gP,decode_cell:Ut,decode_range:Ur,format_cell:ia,sheet_add_aoa:hw,sheet_add_json:fT,sheet_add_dom:aT,aoa_to_sheet:Uo,json_to_sheet:K6,table_to_sheet:iT,table_to_book:E6,sheet_to_csv:Ld,sheet_to_txt:uT,sheet_to_json:Lf,sheet_to_html:nT,sheet_to_formulae:X6,sheet_to_row_object_array:Lf,sheet_get_cell:dl,book_new:q6,book_append_sheet:j6,book_set_sheet_visibility:J6,cell_set_number_format:Q6,cell_set_hyperlink:hT,cell_set_internal_link:eB,cell_add_comment:tB,sheet_set_array_formula:rB,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function nB(t,e,r,n,a){const i=Me({visible:!1,current:0,total:0,percentage:0,currentMember:""});return{exportProgress:i,exportToExcel:async()=>{const s=e();if(!s||s.length===0){Oe.error("暂无数据可导出");return}const l=s.filter(u=>Math.abs(u.totalCredits||0)>0);if(l.length===0){Oe.error("暂无消耗数据可导出");return}i.value={visible:!0,current:0,total:l.length,percentage:0,currentMember:"准备导出..."};try{const u=ms.book_new(),f=[];let h=0,v=0,c=0,d=0,p=0,g=0,m=0;const _=[];for(let x=0;x<l.length;x++){const C=l[x];i.value.current=x+1,i.value.percentage=Math.round((x+1)/l.length*100),i.value.currentMember=C.memberNickname||C.nickName||"";let S=null;try{r()==="realtime"?S=await t.getUserTodayModels(C.userId):C.modelDetails&&C.modelDetails.length>0&&(S={modelDetails:C.modelDetails})}catch(W){console.error(`获取成员 ${C.nickName} 详情失败:`,W)}_.push({member:C,memberDetails:S});let A=0,M=0,L=0,N=0,V=0;S!=null&&S.modelDetails&&Array.isArray(S.modelDetails)&&S.modelDetails.forEach(W=>{W.usage&&typeof W.usage=="object"&&(A+=Hu(W.usage)||0,M+=Gu(W.usage)||0,L+=Wu(W.usage)||0,N+=Vu(W.usage)||0,V+=Uu(W.usage)||0)}),f.push({成员名称:C.memberNickname||C.nickName||"",昵称:C.memberNickname?C.nickName:"",手机号:C.phonenumber||C.userName||"",总积分消耗:Math.abs(C.totalCredits||0),使用次数:C.totalCount||0,输入Token:A,输出Token:M,缓存创建Token:L,缓存读取Token:N,总Token:V,"Claude Code消耗":Math.abs(C.claudecodeCredits||0),Codex消耗:Math.abs(C.codexCredits||0),Gemini消耗:Math.abs(C.geminiCredits||0),ChatBot消耗:Math.abs(C.chatbotCredits||0),OpenClaw消耗:Math.abs(C.openclawCredits||0)}),h+=Math.abs(C.totalCredits||0),v+=A,c+=M,d+=L,p+=N,g+=V,m+=C.totalCount||0,await new Promise(W=>setTimeout(W,50))}f.push({成员名称:"====总计====",昵称:"",手机号:"",总积分消耗:h,使用次数:m,输入Token:v,输出Token:c,缓存创建Token:d,缓存读取Token:p,总Token:g,"Claude Code消耗":"",Codex消耗:"",Gemini消耗:"",ChatBot消耗:""});const y=ms.json_to_sheet(f);y["!cols"]=[{wch:20},{wch:20},{wch:15},{wch:15},{wch:12},{wch:14},{wch:14},{wch:16},{wch:16},{wch:14},{wch:16},{wch:14},{wch:14},{wch:14}],ms.book_append_sheet(u,y,"总表");for(let x=0;x<_.length;x++){const{member:C,memberDetails:S}=_[x];i.value.currentMember=`创建${C.memberNickname||C.nickName}的工作表...`;const A=[],M=["claudecode","codex","gemini","chatbot"],L={};if(S!=null&&S.modelDetails&&Array.isArray(S.modelDetails)&&S.modelDetails.forEach(N=>{var W;const V=(W=N.type)==null?void 0:W.toLowerCase();L[V]||(L[V]=[]),L[V].push(N)}),M.forEach(N=>{const V=L[N]||[];if(V.length>0)V.forEach(W=>{const te={模型类型:Pd(N),模型名称:W.modelName||W.model||"-",调用次数:W.count||0,积分消耗:Math.abs(W.credits||0),费用:W.cost?`$${W.cost.toFixed(4)}`:"-"};W.usage&&typeof W.usage=="object"?(te.输入Token=Hu(W.usage)||0,te.输出Token=Gu(W.usage)||0,te.缓存创建Token=Wu(W.usage)||0,te.缓存读取Token=Vu(W.usage)||0,te.总Token=Uu(W.usage)||0):(te.输入Token=0,te.输出Token=0,te.缓存创建Token=0,te.缓存读取Token=0,te.总Token=0),A.push(te)});else{const W=C[`${N}Credits`];W&&Math.abs(W)>0&&A.push({模型类型:Pd(N),模型名称:"汇总",调用次数:"-",积分消耗:Math.abs(W),费用:"-",输入Token:0,输出Token:0,缓存创建Token:0,缓存读取Token:0,总Token:0})}}),A.length>0){const N=ms.json_to_sheet(A);N["!cols"]=[{wch:15},{wch:30},{wch:12},{wch:12},{wch:12},{wch:14},{wch:14},{wch:16},{wch:16},{wch:14}];let V=(C.memberNickname||C.nickName||`成员${x+1}`).substring(0,31);V=V.replace(/[:\\/?*[\]]/g,"_"),ms.book_append_sheet(u,N,V)}await new Promise(N=>setTimeout(N,30))}const w=r(),E=n();let T="团队成员消耗详情";w==="realtime"?T+=`_实时数据_${Rr(new Date)}`:E==="custom"?T+=`_${a()}`:E==="week"?T+="_本周":E==="lastWeek"?T+="_上周":E==="month"?T+="_本月":E==="lastMonth"?T+="_上月":T+=`_最近${E}天`,T+=".xlsx",z6(u,T),Oe.success(`导出成功!共${l.length}个成员,${u.SheetNames.length}张工作表`)}catch(u){console.error("导出Excel失败:",u),Oe.error("导出失败,请重试")}finally{setTimeout(()=>{i.value.visible=!1},500)}}}}const aB={class:"team-stats-panel"},iB={key:0,class:"loading-state"},oB={key:0,class:"hourly-chart-section collapsible-content"},sB={class:"hourly-chart-header"},lB={class:"title-with-toggle"},uB=["title"],fB={class:"hourly-controls"},hB=["disabled"],cB=["value"],vB={key:0,class:"hourly-summary"},dB={class:"hourly-total"},pB={class:"hourly-count"},gB={key:0,class:"hourly-loading"},mB={key:1,class:"hourly-chart collapsible-content"},_B={key:2,class:"hourly-no-data collapsible-content"},yB={key:1,class:"trend-stats-section collapsible-content"},xB={class:"trend-stats-header"},wB={class:"title-with-toggle"},TB=["title"],SB={class:"trend-stats-controls"},CB={class:"period-selector"},EB=["disabled","title"],AB=["disabled"],bB=["value"],DB={class:"hourly-summary"},MB={class:"hourly-total"},kB={class:"hourly-count"},IB={key:0,class:"hourly-loading"},LB={key:1,class:"hourly-chart collapsible-content"},RB={key:0},PB={key:1,class:"hourly-no-data"},FB={key:2,class:"weekly-chart collapsible-content"},OB={key:0},NB={key:1,class:"hourly-no-data"},BB={key:3,class:"monthly-chart collapsible-content"},UB={key:0},HB={key:1,class:"hourly-no-data"},GB={key:4,class:"daily-chart collapsible-content"},WB={key:0},VB={key:1,class:"hourly-no-data"},zB={key:2,class:"group-stats-section collapsible-content"},$B={class:"group-ranking-chart"},YB={class:"group-chart-header"},XB={key:0,class:"group-chart-summary"},KB={class:"summary-text"},ZB={key:0,class:"hourly-loading"},qB={key:1,class:"group-bars-container"},jB=["title"],JB={class:"group-bar-track"},QB={class:"group-bar-stack"},e7=["title"],t7=["title"],r7=["title"],n7=["title"],a7=["title"],i7={class:"group-bar-value"},o7={key:2,class:"hourly-no-data"},s7={key:0,class:"group-detail-table"},l7={class:"ranking-table-container"},u7={class:"ranking-table"},f7={class:"member-cell"},h7={class:"member-name"},c7={key:0,class:"member-phone"},v7={class:"count-value"},d7={class:"credits-amount primary"},p7={class:"count-value"},g7={class:"credits-amount"},m7={class:"type-credits"},_7={class:"type-credits"},y7={class:"type-credits"},x7={class:"type-credits"},w7={class:"type-credits"},T7={key:1,class:"group-trend-section"},S7={class:"group-trend-chart"},C7={class:"group-trend-bars"},E7={class:"group-trend-bar-stack"},A7=["title"],b7={class:"trend-bar-label"},D7={class:"hourly-legend",style:{"margin-top":"12px"}},M7={key:3,class:"member-ranking"},k7={class:"ranking-header"},I7={class:"title-with-toggle"},L7=["title"],R7={key:0,class:"ranking-table-container collapsible-content"},P7={class:"ranking-table"},F7={class:"member-cell"},O7={class:"member-name"},N7={key:0,class:"member-tag"},B7={class:"member-phone"},U7={class:"credits-amount primary"},H7={class:"count-value"},G7={class:"type-credits"},W7={class:"type-credits"},V7={class:"type-credits"},z7={class:"type-credits"},$7={class:"type-credits"},Y7=["onClick"],X7={key:1,class:"no-ranking collapsible-content"},K7={key:2,class:"empty-stats"},Z7=yn({__name:"TeamStatsPanel",props:{teamId:{}},setup(t){const e=t,r=BS(()=>e.teamId),n=vR(),a=Me(!1),i=Me("realtime"),o=Me("30"),s=Me(!0),l=Me(!0),u=Me(!0),f=Me({}),h=Me([]),v=Me(null),c=Me(null),d=Me(!1),p=Me(null),g=Me("weekly"),m=Me(null),_=Me(null),y=Me(!1),w=Me(null),E=new Date;E.setDate(E.getDate()-1);const T=Me(Rr(E)),x=Me(!1),C=Me(!1),S=Me(null),A=Me(null),M=Me(null),L=Me(null),N=Me(!1),V=Me(null),W=Me(null),te=Me(null),_e=Me(null),ve=Me(null),fe=()=>{n.realtimeHourlyChartRef.value=V.value,n.historyHourlyChartRef.value=W.value,n.weeklyChartRef.value=te.value,n.monthlyChartRef.value=_e.value,n.trendLineChartRef.value=ve.value},J=se=>{n.pieChartRef.value=se,we()},{exportProgress:re,exportToExcel:I}=nB(r,()=>h.value,()=>i.value,()=>o.value,()=>T.value),G=Nt(()=>i.value==="group"?q.value.length>0||N.value:f.value&&Object.keys(f.value).length>0||h.value.length>0),B=Nt(()=>MT(i.value,o.value,T.value)),U=Nt(()=>i.value!=="history"?!1:o.value==="custom"||o.value==="1"),q=Nt(()=>{if(M.value){const se=(M.value.groups||[]).map(z=>({...z})),X=M.value.ungrouped;return X&&(X.totalCredits>0||X.memberCount>0)&&se.push({...X,groupId:null,groupName:"未分组",groupPath:"未分组"}),se.sort((z,de)=>(de.totalCredits||0)-(z.totalCredits||0))}if(L.value){const se=(L.value.groups||[]).map(z=>{const de=Fd(z.dailyStats||[]);return{...z,...de}}),X=L.value.ungrouped;if(X){const z=Fd(X.dailyStats||[]);(z.totalCredits>0||X.memberCount>0)&&se.push({...X,...z,groupId:null,groupName:"未分组",groupPath:"未分组"})}return se.sort((z,de)=>(de.totalCredits||0)-(z.totalCredits||0))}return[]}),ce=Nt(()=>{if(!L.value)return[];const se=new Set,X=[...L.value.groups||[]];return L.value.ungrouped&&X.push(L.value.ungrouped),X.forEach(z=>(z.dailyStats||[]).forEach(de=>se.add(de.date))),Array.from(se).sort()}),Ce=Nt(()=>{if(!L.value)return[];const se=(L.value.groups||[]).map(z=>({groupId:z.groupId,groupName:z.groupName,dailyStats:z.dailyStats||[]})),X=L.value.ungrouped;return X&&(X.dailyStats||[]).length>0&&se.push({groupId:null,groupName:"未分组",dailyStats:X.dailyStats||[]}),se}),ge=(se,X)=>{const z=(se.dailyStats||[]).find(de=>de.date===X);return z&&z.totalCredits||0},ue=(se,X)=>{let z=0;return Ce.value.forEach(de=>{ce.value.forEach(He=>{const ft=ge(de,He);ft>z&&(z=ft)})}),z===0?"0%":`${Math.abs(ge(se,X))/z*100}%`},Te=se=>{const X=q.value.length>0?Math.max(...q.value.map(z=>Math.abs(z.totalCredits||0))):0;return X===0?"0%":`${Math.abs(se||0)/X*100}%`},we=()=>{jm(()=>{fe(),n.renderVisibleCharts({statsMode:i.value,trendPeriod:g.value,summary:f.value,hourlyStats:c.value,weeklyStats:m.value,monthlyStats:_.value,trendData:v.value})})},st=()=>{var se,X,z;return g.value==="weekly"&&m.value?((se=m.value.weeklyData)==null?void 0:se.reduce((de,He)=>de+(He.totalCredits||0),0))||0:g.value==="monthly"&&_.value?((X=_.value.monthlyData)==null?void 0:X.reduce((de,He)=>de+(He.totalCredits||0),0))||0:g.value==="hourly"&&c.value?c.value.totalCredits||0:g.value==="daily"&&v.value&&((z=v.value.trend)==null?void 0:z.reduce((de,He)=>de+(He.totalCredits||0),0))||0},Le=()=>{var se,X,z;return g.value==="weekly"&&m.value?((se=m.value.weeklyData)==null?void 0:se.reduce((de,He)=>de+(He.totalCount||0),0))||0:g.value==="monthly"&&_.value?((X=_.value.monthlyData)==null?void 0:X.reduce((de,He)=>de+(He.totalCount||0),0))||0:g.value==="hourly"&&c.value?c.value.totalCount||0:g.value==="daily"&&v.value&&((z=v.value.trend)==null?void 0:z.reduce((de,He)=>de+(He.totalCount||0),0))||0},Mt=async()=>{a.value=!0,p.value=null;try{const[se,X,z]=await Promise.all([r.getTodayStats(),r.getTodayMembersStats(),r.getHourlyStats({})]);se&&(f.value=se),X&&(h.value=Array.isArray(X)?X:[]),c.value=z||null,v.value=null}catch(se){console.error("加载实时统计失败:",se),Oe.error("加载实时统计失败")}finally{a.value=!1,we()}},$e=async()=>{a.value=!0,w.value=null;try{const{startDate:se,endDate:X}=Eh(o.value,T.value);let z=7;if(o.value==="month"||o.value==="lastMonth"){const Oi=new Date(se),wh=new Date(X);z=Math.ceil((wh.getTime()-Oi.getTime())/(1e3*60*60*24))+1}else o.value==="week"||o.value==="lastWeek"?z=7:z=parseInt(o.value)||7;const de={days:z};w.value&&(de.userId=w.value);const[He,ft,yh,xh]=await Promise.all([r.getCreditsStats({startDate:se,endDate:X}),r.getMembersRanking({startDate:se,endDate:X,limit:999}),r.getTrend(de),r.getWeeklyStats({})]);He&&(f.value=He),ft&&(h.value=Array.isArray(ft)?ft:[]),v.value=yh||null,m.value=xh||null}catch(se){console.error("加载历史统计失败:",se),Oe.error("加载历史统计失败")}finally{a.value=!1,we()}},Ee=async()=>{a.value=!0,g.value="hourly",p.value=null,w.value=null;try{if(!T.value)return;const se=`${T.value} 00:00:00`,[X,z,de]=await Promise.all([r.getStatsByDate(T.value),r.getMembersRankingByDate(T.value),r.getHourlyStats({startHour:se})]);X&&(f.value=X),z&&(h.value=Array.isArray(z)?z:[]),c.value=de||null,v.value=null}catch(se){console.error("加载指定日期统计失败:",se),Oe.error("加载指定日期统计失败")}finally{a.value=!1,we()}},Qt=async()=>{a.value=!0,N.value=!0,M.value=null,L.value=null;try{const se=await r.getTodayGroupStats({limit:20});if(se){M.value=se;const X=q.value;f.value={totalCredits:X.reduce((z,de)=>z+(de.totalCredits||0),0),totalCount:X.reduce((z,de)=>z+(de.totalCount||0),0),memberCount:X.reduce((z,de)=>z+(de.memberCount||0),0),chatbotCredits:X.reduce((z,de)=>z+(de.chatbotCredits||0),0),codexCredits:X.reduce((z,de)=>z+(de.codexCredits||0),0),claudecodeCredits:X.reduce((z,de)=>z+(de.claudecodeCredits||0),0),geminiCredits:X.reduce((z,de)=>z+(de.geminiCredits||0),0),openclawCredits:X.reduce((z,de)=>z+(de.openclawCredits||0),0)}}}catch(se){console.error("加载分组实时统计失败:",se),Oe.error("加载分组统计失败")}finally{a.value=!1,N.value=!1}},Ot=async()=>{a.value=!0,N.value=!0,M.value=null,L.value=null;try{const{startDate:se,endDate:X}=Eh(o.value,T.value),z=await r.getHistoryGroupStats({startDate:se,endDate:X,limit:20});if(z){L.value=z;const de=q.value;f.value={totalCredits:de.reduce((He,ft)=>He+(ft.totalCredits||0),0),totalCount:de.reduce((He,ft)=>He+(ft.totalCount||0),0),memberCount:de.reduce((He,ft)=>He+(ft.memberCount||0),0),chatbotCredits:de.reduce((He,ft)=>He+(ft.chatbotCredits||0),0),codexCredits:de.reduce((He,ft)=>He+(ft.codexCredits||0),0),claudecodeCredits:de.reduce((He,ft)=>He+(ft.claudecodeCredits||0),0),geminiCredits:de.reduce((He,ft)=>He+(ft.geminiCredits||0),0),openclawCredits:de.reduce((He,ft)=>He+(ft.openclawCredits||0),0)}}}catch(se){console.error("加载分组历史统计失败:",se),Oe.error("加载分组历史统计失败")}finally{a.value=!1,N.value=!1}},pr=async()=>{if(a.value=!0,N.value=!0,M.value=null,L.value=null,!!T.value)try{const se=await r.getHistoryGroupStats({startDate:T.value,endDate:T.value,limit:20});if(se){L.value=se;const X=q.value;f.value={totalCredits:X.reduce((z,de)=>z+(de.totalCredits||0),0),totalCount:X.reduce((z,de)=>z+(de.totalCount||0),0),memberCount:X.reduce((z,de)=>z+(de.memberCount||0),0),chatbotCredits:X.reduce((z,de)=>z+(de.chatbotCredits||0),0),codexCredits:X.reduce((z,de)=>z+(de.codexCredits||0),0),claudecodeCredits:X.reduce((z,de)=>z+(de.claudecodeCredits||0),0),geminiCredits:X.reduce((z,de)=>z+(de.geminiCredits||0),0),openclawCredits:X.reduce((z,de)=>z+(de.openclawCredits||0),0)}}}catch(se){console.error("加载分组指定日期统计失败:",se),Oe.error("加载分组统计失败")}finally{a.value=!1,N.value=!1}},gr=()=>{i.value==="realtime"?Qt():o.value==="custom"?pr():Ot()},Tn=()=>{i.value==="realtime"?Mt():i.value==="group"?gr():o.value==="custom"?Ee():$e()},Gn=se=>{i.value=se,se==="history"&&(o.value="30",g.value="weekly"),Tn()},Hr=()=>{i.value==="history"&&(g.value=o.value==="custom"||o.value==="1"?"hourly":"weekly"),Tn()},Pi=()=>{if(i.value==="group"){pr();return}Ee()},Wo=()=>{if(!T.value)return;const se=new Date(T.value);se.setDate(se.getDate()-1),T.value=Rr(se),i.value==="group"?pr():Ee()},Vo=()=>{if(!T.value)return;const se=new Date(T.value),X=new Date;X.setDate(X.getDate()-1),se.setDate(se.getDate()+1),se<=X&&(T.value=Rr(se),i.value==="group"?pr():Ee())},Sn=async()=>{d.value=!0;try{const se={};p.value&&(se.userId=p.value),i.value!=="realtime"&&o.value==="custom"&&T.value&&(se.startHour=`${T.value} 00:00:00`),c.value=await r.getHourlyStats(se)||null}catch(se){console.error("加载小时统计失败:",se),c.value=null}finally{d.value=!1,we()}},Fi=()=>{zo(),g.value==="daily"&&we()},Dl=()=>{g.value==="hourly"?(p.value=w.value,Sn()):g.value==="daily"?Ml():zo()},zo=async()=>{if(g.value==="weekly"){y.value=!0;try{const se={};w.value&&(se.userId=w.value),m.value=await r.getWeeklyStats(se)||null}catch(se){console.error("加载周趋势失败:",se),m.value=null}finally{y.value=!1,we()}}else if(g.value==="monthly"){y.value=!0;try{const se={};w.value&&(se.userId=w.value),_.value=await r.getMonthlyStats(se)||null}catch(se){console.error("加载月趋势失败:",se),_.value=null}finally{y.value=!1,we()}}else if(g.value==="hourly"){d.value=!0;try{const se={};if(p.value&&(se.userId=p.value),o.value==="custom"&&T.value)se.startHour=`${T.value} 00:00:00`;else if(o.value==="1"){const X=new Date;X.setDate(X.getDate()-1),se.startHour=`${Rr(X)} 00:00:00`}c.value=await r.getHourlyStats(se)||null}catch(se){console.error("加载小时统计失败:",se),c.value=null}finally{d.value=!1,we()}}},Ml=async()=>{try{const{startDate:se,endDate:X}=Eh(o.value,T.value);let z=7;o.value==="month"||o.value==="lastMonth"?z=Math.ceil((new Date(X).getTime()-new Date(se).getTime())/(1e3*60*60*24))+1:o.value==="week"||o.value==="lastWeek"?z=7:z=parseInt(o.value)||7;const de={days:z};w.value&&(de.userId=w.value),v.value=await r.getTrend(de)||null,we()}catch(se){console.error("加载日趋势数据失败:",se)}},kl=async se=>{S.value=se,x.value=!0,C.value=!0,A.value=null;try{i.value==="realtime"?(A.value=await r.getUserTodayModels(se.userId),A.value||Oe.error("获取消耗详情失败")):se.modelDetails&&se.modelDetails.length>0?A.value={totalCredits:se.totalCredits,totalCount:se.totalCount,totalCost:se.totalCost,modelDetails:se.modelDetails,...se.totalUsage&&{totalUsage:se.totalUsage}}:A.value={totalCredits:se.totalCredits,totalCount:se.totalCount,modelDetails:[]}}catch(X){console.error("获取成员消耗详情失败:",X),Oe.error("获取消耗详情失败")}finally{C.value=!1}},Il=()=>{x.value=!1,S.value=null,A.value=null};return Qc(()=>e.teamId,()=>{e.teamId&&Tn()},{immediate:!0}),TT(()=>{n.disposeAll()}),(se,X)=>(ne(),oe("div",aB,[Ze(GT,{statsMode:i.value,dateRange:o.value,selectedDate:T.value,loading:a.value,isStatsExpanded:s.value,onSwitchMode:Gn,onToggleStats:X[0]||(X[0]=z=>s.value=!s.value),"onUpdate:dateRange":X[1]||(X[1]=z=>o.value=z),"onUpdate:selectedDate":X[2]||(X[2]=z=>T.value=z),onDateRangeChange:Hr,onCustomDateChange:Pi,onPrevDay:Wo,onNextDay:Vo,onRefresh:Tn},null,8,["statsMode","dateRange","selectedDate","loading","isStatsExpanded"]),a.value?(ne(),oe("div",iB,[...X[13]||(X[13]=[D("div",{class:"spinner-small"},null,-1),D("span",null,"加载中...",-1)])])):G.value?(ne(),oe(lr,{key:1},[mr(Ze(qT,{ref:"summaryRef",summary:f.value,statsDays:B.value,pieChartRef:null,onPieMount:J,class:"collapsible-content"},null,8,["summary","statsDays"]),[[Gr,s.value]]),i.value==="realtime"?mr((ne(),oe("div",oB,[D("div",sB,[D("div",lB,[X[14]||(X[14]=D("h4",{class:"section-subtitle"},"24小时消耗趋势",-1)),D("button",{class:"toggle-btn",onClick:X[3]||(X[3]=z=>u.value=!u.value),title:u.value?"收起":"展开"},[D("span",{class:ht(["toggle-icon",{rotated:!u.value}])},"▼",2)],8,uB)]),D("div",fB,[mr(D("select",{"onUpdate:modelValue":X[4]||(X[4]=z=>p.value=z),onChange:Sn,class:"member-select",disabled:h.value.length===0},[X[15]||(X[15]=D("option",{value:null},"团队汇总",-1)),(ne(!0),oe(lr,null,xr(h.value,z=>(ne(),oe("option",{key:z.userId,value:z.userId},Q(z.memberNickname||z.nickName),9,cB))),128))],40,hB),[[Rd,p.value]]),c.value?(ne(),oe("div",vB,[D("span",dB,[X[16]||(X[16]=St("总消耗: ",-1)),D("strong",null,Q(ie(et)(c.value.totalCredits)),1)]),D("span",pB,Q(c.value.totalCount||0)+" 次调用",1)])):ze("",!0)])]),d.value?(ne(),oe("div",gB,[...X[17]||(X[17]=[D("div",{class:"spinner-small"},null,-1),D("span",null,"加载中...",-1)])])):c.value&&c.value.hourlyData?mr((ne(),oe("div",mB,[D("div",{ref_key:"realtimeHourlyChartEl",ref:V,class:"echarts-line-container"},null,512)],512)),[[Gr,u.value]]):mr((ne(),oe("div",_B,[...X[18]||(X[18]=[D("p",null,"暂无24小时统计数据",-1)])],512)),[[Gr,u.value]])],512)),[[Gr,s.value]]):ze("",!0),i.value==="history"?mr((ne(),oe("div",yB,[D("div",xB,[D("div",wB,[X[19]||(X[19]=D("h4",{class:"section-subtitle"},"积分消耗趋势",-1)),D("button",{class:"toggle-btn",onClick:X[5]||(X[5]=z=>u.value=!u.value),title:u.value?"收起":"展开"},[D("span",{class:ht(["toggle-icon",{rotated:!u.value}])},"▼",2)],8,TB)]),D("div",SB,[D("div",CB,[D("button",{class:ht(["period-btn",{active:g.value==="hourly"}]),onClick:X[6]||(X[6]=z=>{g.value="hourly",Fi()}),disabled:!U.value,title:U.value?"24小时趋势":"仅在选择1天数据时可用"},"24小时",10,EB),D("button",{class:ht(["period-btn",{active:g.value==="daily"}]),onClick:X[7]||(X[7]=z=>{g.value="daily",Fi()})},"日趋势",2),D("button",{class:ht(["period-btn",{active:g.value==="weekly"}]),onClick:X[8]||(X[8]=z=>{g.value="weekly",Fi()})},"周趋势",2),D("button",{class:ht(["period-btn",{active:g.value==="monthly"}]),onClick:X[9]||(X[9]=z=>{g.value="monthly",Fi()})},"月趋势",2)]),mr(D("select",{"onUpdate:modelValue":X[10]||(X[10]=z=>w.value=z),onChange:Dl,class:"member-select",disabled:h.value.length===0},[X[20]||(X[20]=D("option",{value:null},"团队汇总",-1)),(ne(!0),oe(lr,null,xr(h.value,z=>(ne(),oe("option",{key:z.userId,value:z.userId},Q(z.memberNickname||z.nickName),9,bB))),128))],40,AB),[[Rd,w.value]]),D("div",DB,[D("span",MB,[X[21]||(X[21]=St("总消耗: ",-1)),D("strong",null,Q(ie(et)(st())),1)]),D("span",kB,Q(Le())+" 次调用",1)])])]),y.value||d.value?(ne(),oe("div",IB,[...X[22]||(X[22]=[D("div",{class:"spinner-small"},null,-1),D("span",null,"加载中...",-1)])])):g.value==="hourly"?mr((ne(),oe("div",LB,[c.value&&c.value.hourlyData?(ne(),oe("div",RB,[D("div",{ref_key:"historyHourlyChartEl",ref:W,class:"echarts-line-container"},null,512)])):(ne(),oe("div",PB,[...X[23]||(X[23]=[D("p",null,"暂无24小时统计数据",-1)])]))],512)),[[Gr,u.value]]):g.value==="weekly"?mr((ne(),oe("div",FB,[m.value&&m.value.weeklyData&&m.value.weeklyData.length>0?(ne(),oe("div",OB,[D("div",{ref_key:"weeklyChartEl",ref:te,class:"echarts-line-container"},null,512)])):(ne(),oe("div",NB,[...X[24]||(X[24]=[D("p",null,"暂无周趋势数据",-1)])]))],512)),[[Gr,u.value]]):g.value==="monthly"?mr((ne(),oe("div",BB,[_.value&&_.value.monthlyData&&_.value.monthlyData.length>0?(ne(),oe("div",UB,[D("div",{ref_key:"monthlyChartEl",ref:_e,class:"echarts-line-container"},null,512)])):(ne(),oe("div",HB,[...X[25]||(X[25]=[D("p",null,"暂无月趋势数据",-1)])]))],512)),[[Gr,u.value]]):g.value==="daily"?mr((ne(),oe("div",GB,[v.value&&v.value.trend&&v.value.trend.length>0?(ne(),oe("div",WB,[D("div",{ref_key:"trendLineChartEl",ref:ve,class:"echarts-line-container"},null,512)])):(ne(),oe("div",VB,[...X[26]||(X[26]=[D("p",null,"暂无日趋势数据",-1)])]))],512)),[[Gr,u.value]]):ze("",!0)],512)),[[Gr,s.value]]):ze("",!0),i.value==="group"?mr((ne(),oe("div",zB,[D("div",$B,[D("div",YB,[X[27]||(X[27]=D("h4",{class:"section-subtitle"},"分组消耗排行",-1)),q.value.length>0?(ne(),oe("div",XB,[D("span",KB,"共 "+Q(q.value.length)+" 个分组",1)])):ze("",!0)]),N.value?(ne(),oe("div",ZB,[...X[28]||(X[28]=[D("div",{class:"spinner-small"},null,-1),D("span",null,"加载中...",-1)])])):q.value.length>0?(ne(),oe("div",qB,[(ne(!0),oe(lr,null,xr(q.value,(z,de)=>(ne(),oe("div",{key:z.groupId||"ungrouped",class:"group-bar-row"},[D("div",{class:ht(["group-bar-rank",ie(Ch)(de)])},Q(de+1),3),D("div",{class:"group-bar-name",title:z.groupPath||z.groupName},Q(z.groupName),9,jB),D("div",JB,[D("div",QB,[D("div",{class:"group-bar-fill chatbot",style:Yn({width:Te(z.chatbotCredits)}),title:`Chatbot: ${ie(et)(z.chatbotCredits)}`},null,12,e7),D("div",{class:"group-bar-fill codex",style:Yn({width:Te(z.codexCredits)}),title:`Codex: ${ie(et)(z.codexCredits)}`},null,12,t7),D("div",{class:"group-bar-fill claudecode",style:Yn({width:Te(z.claudecodeCredits)}),title:`Claude Code: ${ie(et)(z.claudecodeCredits)}`},null,12,r7),z.geminiCredits?(ne(),oe("div",{key:0,class:"group-bar-fill gemini",style:Yn({width:Te(z.geminiCredits)}),title:`Gemini: ${ie(et)(z.geminiCredits)}`},null,12,n7)):ze("",!0),z.openclawCredits?(ne(),oe("div",{key:1,class:"group-bar-fill openclaw",style:Yn({width:Te(z.openclawCredits)}),title:`OpenClaw: ${ie(et)(z.openclawCredits)}`},null,12,a7)):ze("",!0)])]),D("div",i7,Q(ie(et)(z.totalCredits)),1)]))),128)),X[29]||(X[29]=Rf('<div class="hourly-legend" style="margin-top:12px;"><div class="hourly-legend-item chatbot"><span class="legend-dot"></span><span>Chatbot</span></div><div class="hourly-legend-item codex"><span class="legend-dot"></span><span>Codex</span></div><div class="hourly-legend-item claudecode"><span class="legend-dot"></span><span>Claude Code</span></div><div class="hourly-legend-item gemini"><span class="legend-dot"></span><span>Gemini</span></div></div>',1))])):(ne(),oe("div",o7,[...X[30]||(X[30]=[D("p",null,"暂无分组统计数据",-1)])]))]),!N.value&&q.value.length>0?(ne(),oe("div",s7,[X[32]||(X[32]=D("h4",{class:"section-subtitle",style:{"margin-bottom":"12px"}},"分组详细对比",-1)),D("div",l7,[D("table",u7,[X[31]||(X[31]=D("thead",null,[D("tr",null,[D("th",{width:"60"},"排名"),D("th",null,"分组"),D("th",{width:"80"},"成员数"),D("th",{width:"100"},"总消耗"),D("th",{width:"80"},"次数"),D("th",{width:"100"},"人均消耗"),D("th",{width:"100"},"Chatbot"),D("th",{width:"100"},"Codex"),D("th",{width:"100"},"Claude"),D("th",{width:"100"},"Gemini"),D("th",{width:"100"},"OpenClaw")])],-1)),D("tbody",null,[(ne(!0),oe(lr,null,xr(q.value,(z,de)=>(ne(),oe("tr",{key:z.groupId||"ungrouped"},[D("td",null,[D("div",{class:ht(["rank-badge",ie(Ch)(de)])},Q(de+1),3)]),D("td",null,[D("div",f7,[D("div",h7,Q(z.groupName),1),z.groupPath&&z.groupPath!==z.groupName?(ne(),oe("div",c7,Q(z.groupPath),1)):ze("",!0)])]),D("td",null,[D("div",v7,Q(z.memberCount||0),1)]),D("td",null,[D("div",d7,Q(ie(et)(z.totalCredits)),1)]),D("td",null,[D("div",p7,Q(z.totalCount||0),1)]),D("td",null,[D("div",g7,Q(z.memberCount?ie(et)(Math.round(z.totalCredits/z.memberCount)):"-"),1)]),D("td",null,[D("div",m7,Q(ie(et)(z.chatbotCredits)),1)]),D("td",null,[D("div",_7,Q(ie(et)(z.codexCredits)),1)]),D("td",null,[D("div",y7,Q(ie(et)(z.claudecodeCredits)),1)]),D("td",null,[D("div",x7,Q(ie(et)(z.geminiCredits)),1)]),D("td",null,[D("div",w7,Q(ie(et)(z.openclawCredits)),1)])]))),128))])])])])):ze("",!0),!N.value&&L.value&&o.value!=="custom"&&q.value.length>0?(ne(),oe("div",T7,[X[34]||(X[34]=D("h4",{class:"section-subtitle",style:{"margin-bottom":"12px"}},"分组消耗趋势",-1)),D("div",S7,[D("div",C7,[(ne(!0),oe(lr,null,xr(ce.value,(z,de)=>(ne(),oe("div",{key:de,class:"group-trend-col"},[D("div",E7,[(ne(!0),oe(lr,null,xr(Ce.value,(He,ft)=>(ne(),oe("div",{key:He.groupId||"ungrouped",class:ht(["group-trend-bar",ie(Nd)(ft)]),style:Yn({height:ue(He,z)}),title:`${He.groupName}: ${ie(et)(ge(He,z))}`},null,14,A7))),128))]),D("div",b7,Q(ie(Jm)(z)),1)]))),128))]),D("div",D7,[(ne(!0),oe(lr,null,xr(Ce.value,(z,de)=>(ne(),oe("div",{key:z.groupId||"ungrouped",class:ht(["hourly-legend-item",ie(Nd)(de)])},[X[33]||(X[33]=D("span",{class:"legend-dot"},null,-1)),D("span",null,Q(z.groupName),1)],2))),128))])])])):ze("",!0)],512)),[[Gr,s.value]]):ze("",!0),i.value!=="group"?(ne(),oe("div",M7,[D("div",k7,[D("div",I7,[X[35]||(X[35]=D("h4",{class:"section-subtitle"},"成员消耗排行",-1)),D("button",{class:"toggle-btn",onClick:X[11]||(X[11]=z=>l.value=!l.value),title:l.value?"收起":"展开"},[D("span",{class:ht(["toggle-icon",{rotated:!l.value}])},"▼",2)],8,L7)]),h.value.length>0?(ne(),oe("button",{key:0,class:"export-btn",onClick:X[12]||(X[12]=(...z)=>ie(I)&&ie(I)(...z)),title:"导出为Excel"},"导出Excel")):ze("",!0)]),h.value.length>0?mr((ne(),oe("div",R7,[D("table",P7,[X[36]||(X[36]=D("thead",null,[D("tr",null,[D("th",{width:"60"},"排名"),D("th",null,"成员"),D("th",{width:"100"},"总消耗"),D("th",{width:"80"},"次数"),D("th",{width:"120"},"Chatbot"),D("th",{width:"120"},"Codex"),D("th",{width:"120"},"Claude"),D("th",{width:"120"},"Gemini"),D("th",{width:"120"},"OpenClaw"),D("th",{width:"100"},"操作")])],-1)),D("tbody",null,[(ne(!0),oe(lr,null,xr(h.value,(z,de)=>(ne(),oe("tr",{key:z.userId},[D("td",null,[D("div",{class:ht(["rank-badge",ie(Ch)(de)])},Q(de+1),3)]),D("td",null,[D("div",F7,[D("div",O7,[St(Q(z.memberNickname||z.nickName)+" ",1),z.memberNickname?(ne(),oe("span",N7,"("+Q(z.nickName)+")",1)):ze("",!0)]),D("div",B7,Q(z.phonenumber||z.userName),1)])]),D("td",null,[D("div",U7,Q(ie(et)(z.totalCredits)),1)]),D("td",null,[D("div",H7,Q(z.totalCount||0),1)]),D("td",null,[D("div",G7,Q(ie(et)(z.chatbotCredits)),1)]),D("td",null,[D("div",W7,Q(ie(et)(z.codexCredits)),1)]),D("td",null,[D("div",V7,Q(ie(et)(z.claudecodeCredits)),1)]),D("td",null,[D("div",z7,Q(ie(et)(z.geminiCredits)),1)]),D("td",null,[D("div",$7,Q(ie(et)(z.openclawCredits)),1)]),D("td",null,[D("button",{class:"detail-btn",onClick:He=>kl(z),title:"查看消耗详情"},"详情",8,Y7)])]))),128))])])],512)),[[Gr,l.value]]):mr((ne(),oe("div",X7,"暂无成员消耗数据",512)),[[Gr,l.value]])])):ze("",!0)],64)):(ne(),oe("div",K7,[...X[37]||(X[37]=[D("p",null,"该时间段内暂无统计数据",-1)])])),Ze(bS,{visible:x.value,loading:C.value,member:S.value,details:A.value,onClose:Il},null,8,["visible","loading","member","details"]),Ze(NS,{progress:ie(re)},null,8,["progress"])]))}}),q7={class:"search-area"},j7={key:0,class:"search-result"},J7={class:"result-user"},Q7={class:"user-avatar"},e9={class:"user-info"},t9={class:"user-name"},r9={class:"user-phone"},n9={class:"form-section"},a9={class:"form-label"},i9={key:1,class:"search-error"},o9=yn({__name:"AddMemberModal",props:{teamId:{}},emits:["close","added"],setup(t,{emit:e}){const r=t,n=e,a=Do(),i=Mo(),{t:o}=ko(),s=Me(""),l=Me(!1),u=Me(null),f=Me(""),h=Me(2),v=Me(!1);async function c(){if(s.value.trim()){l.value=!0,u.value=null,f.value="";try{const p=await a.callRpc("evol.team.search_user",{kiteToken:i.kiteToken,teamId:r.teamId,phonenumber:s.value.trim()});p.success&&p.data?u.value=p.data:f.value=p.msg||o("team.userNotFound")}catch{f.value=o("team.userNotFound")}finally{l.value=!1}}}async function d(){if(u.value){v.value=!0;try{const p=await a.callRpc("evol.team.add_member",{kiteToken:i.kiteToken,teamId:r.teamId,data:{userId:u.value.userId||u.value.id,memberRole:h.value}});p.success?(Oe.success(o("team.addMemberSuccess")),n("added"),n("close")):Oe.error(p.msg||o("team.addMemberFailed"))}catch{Oe.error(o("team.addMemberFailed"))}finally{v.value=!1}}}return(p,g)=>{const m=bt("el-button"),_=bt("el-input"),y=bt("el-radio"),w=bt("el-radio-group"),E=bt("el-dialog");return ne(),Xn(E,{"model-value":!0,title:ie(o)("team.addMember"),width:"460px",onClose:g[3]||(g[3]=T=>p.$emit("close"))},{footer:ct(()=>[Ze(m,{onClick:g[2]||(g[2]=T=>p.$emit("close"))},{default:ct(()=>[St(Q(ie(o)("common.cancel")),1)]),_:1}),Ze(m,{type:"primary",loading:v.value,disabled:!u.value,onClick:d},{default:ct(()=>[St(Q(ie(o)("team.addMember")),1)]),_:1},8,["loading","disabled"])]),default:ct(()=>[D("div",q7,[Ze(_,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=T=>s.value=T),placeholder:ie(o)("team.searchByPhone"),clearable:"",onKeyup:ST(c,["enter"])},{append:ct(()=>[Ze(m,{loading:l.value,onClick:c},{default:ct(()=>[St(Q(ie(o)("team.search")),1)]),_:1},8,["loading"])]),_:1},8,["modelValue","placeholder"])]),u.value?(ne(),oe("div",j7,[D("div",J7,[D("div",Q7,Q((u.value.nickName||u.value.userName||"?")[0]),1),D("div",e9,[D("div",t9,Q(u.value.nickName||u.value.userName),1),D("div",r9,Q(u.value.phone),1)])]),D("div",n9,[D("label",a9,Q(ie(o)("team.selectRole")),1),Ze(w,{modelValue:h.value,"onUpdate:modelValue":g[1]||(g[1]=T=>h.value=T)},{default:ct(()=>[Ze(y,{value:2},{default:ct(()=>[St(Q(ie(o)("team.roleMember")),1)]),_:1}),Ze(y,{value:1},{default:ct(()=>[St(Q(ie(o)("team.roleAdmin")),1)]),_:1})]),_:1},8,["modelValue"])])])):f.value?(ne(),oe("div",i9,Q(f.value),1)):ze("",!0)]),_:1},8,["title"])}}}),s9=bi(o9,[["__scopeId","data-v-beb34740"]]),l9={key:0,class:"tree-node"},u9={class:"group-name"},f9={class:"member-count"},h9={class:"cell cell-actions"},c9={key:0,class:"action-buttons"},v9=["title"],d9=["title"],p9=["title"],g9={key:0,class:"tree-children"},m9={key:1,class:"tree-node"},_9={class:"tree-row member-row"},y9={class:"member-avatar"},x9={class:"member-info"},w9={class:"member-name"},T9={key:0,class:"member-remark"},S9={class:"cell cell-role"},C9={class:"cell cell-credits mono"},E9={class:"cell cell-actions"},A9={key:0,class:"action-buttons"},b9=yn({__name:"TreeNode",props:{node:{},depth:{},isAdmin:{type:Boolean}},emits:["create-sub-group","edit-group","delete-group","set-admin","remove-admin","remove-member"],setup(t){const e=t,{t:r}=ko(),n=Me(!0);function a(){n.value=!n.value}const i=Nt(()=>e.node.remark||e.node.nickName||e.node.userName||e.node.userId),o=Nt(()=>{const l=String(e.node.memberRole);return r(l==="0"?"team.roleCreator":l==="1"?"team.roleAdmin":l==="2"?"team.roleMember":"na")}),s=Nt(()=>{const l=String(e.node.memberRole);return l==="0"?"role-creator":l==="1"?"role-admin":"role-member"});return(l,u)=>{var d,p;const f=bt("TreeNode",!0),h=bt("el-dropdown-item"),v=bt("el-dropdown-menu"),c=bt("el-dropdown");return t.node.type==="group"?(ne(),oe("div",l9,[D("div",{class:"tree-row group-row",onClick:a},[u[19]||(u[19]=D("div",{class:"cell cell-checkbox"},null,-1)),D("div",{class:"cell cell-name",style:Yn({paddingLeft:t.depth*20+"px"})},[(ne(),oe("svg",{class:ht(["expand-icon",{expanded:n.value}]),width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[...u[14]||(u[14]=[D("polyline",{points:"9 18 15 12 9 6"},null,-1)])],2)),u[15]||(u[15]=D("svg",{class:"group-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[D("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})],-1)),D("span",u9,Q(t.node.name),1),D("span",f9,Q(t.node.memberCount??((d=t.node.children)==null?void 0:d.length)??0),1)],4),u[20]||(u[20]=D("div",{class:"cell cell-role"},null,-1)),u[21]||(u[21]=D("div",{class:"cell cell-credits"},null,-1)),D("div",h9,[t.isAdmin&&!t.node.isUngrouped?(ne(),oe("div",c9,[D("button",{class:"action-btn",title:ie(r)("team.createSubGroup"),onClick:u[0]||(u[0]=Ko(g=>l.$emit("create-sub-group",t.node),["stop"]))},[...u[16]||(u[16]=[D("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[D("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),D("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)])],8,v9),D("button",{class:"action-btn",title:ie(r)("team.editGroup"),onClick:u[1]||(u[1]=Ko(g=>l.$emit("edit-group",t.node),["stop"]))},[...u[17]||(u[17]=[D("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[D("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),D("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})],-1)])],8,d9),D("button",{class:"action-btn danger",title:ie(r)("team.deleteGroup"),onClick:u[2]||(u[2]=Ko(g=>l.$emit("delete-group",t.node),["stop"]))},[...u[18]||(u[18]=[D("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[D("polyline",{points:"3 6 5 6 21 6"}),D("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})],-1)])],8,p9)])):ze("",!0)])]),n.value&&((p=t.node.children)!=null&&p.length)?(ne(),oe("div",g9,[(ne(!0),oe(lr,null,xr(t.node.children,g=>(ne(),Xn(f,{key:g.id,node:g,depth:t.depth+1,"is-admin":t.isAdmin,onCreateSubGroup:u[3]||(u[3]=m=>l.$emit("create-sub-group",m)),onEditGroup:u[4]||(u[4]=m=>l.$emit("edit-group",m)),onDeleteGroup:u[5]||(u[5]=m=>l.$emit("delete-group",m)),onSetAdmin:u[6]||(u[6]=m=>l.$emit("set-admin",m)),onRemoveAdmin:u[7]||(u[7]=m=>l.$emit("remove-admin",m)),onRemoveMember:u[8]||(u[8]=m=>l.$emit("remove-member",m))},null,8,["node","depth","is-admin"]))),128))])):ze("",!0)])):t.node.type==="member"?(ne(),oe("div",m9,[D("div",_9,[u[23]||(u[23]=D("div",{class:"cell cell-checkbox"},null,-1)),D("div",{class:"cell cell-name",style:Yn({paddingLeft:t.depth*20+"px"})},[D("div",y9,Q((t.node.nickName||t.node.userName||"?")[0]),1),D("div",x9,[D("span",w9,Q(i.value),1),t.node.remark?(ne(),oe("span",T9,Q(t.node.remark),1)):ze("",!0)])],4),D("div",S9,[D("span",{class:ht(["role-badge",s.value])},Q(o.value),3)]),D("div",C9,Q(t.node.credits??"-"),1),D("div",E9,[t.isAdmin?(ne(),oe("div",A9,[Ze(c,{trigger:"click",onClick:u[13]||(u[13]=Ko(()=>{},["stop"]))},{dropdown:ct(()=>[Ze(v,null,{default:ct(()=>[Ze(h,{onClick:u[10]||(u[10]=g=>l.$emit("set-admin",t.node))},{default:ct(()=>[St(Q(ie(r)("team.setAdmin")),1)]),_:1}),Ze(h,{onClick:u[11]||(u[11]=g=>l.$emit("remove-admin",t.node))},{default:ct(()=>[St(Q(ie(r)("team.removeAdmin")),1)]),_:1}),Ze(h,{divided:"",onClick:u[12]||(u[12]=g=>l.$emit("remove-member",t.node))},{default:ct(()=>[St(Q(ie(r)("team.removeMember")),1)]),_:1})]),_:1})]),default:ct(()=>[D("button",{class:"action-btn",onClick:u[9]||(u[9]=Ko(()=>{},["stop"]))},[...u[22]||(u[22]=[D("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[D("circle",{cx:"12",cy:"12",r:"1"}),D("circle",{cx:"12",cy:"5",r:"1"}),D("circle",{cx:"12",cy:"19",r:"1"})],-1)])])]),_:1})])):ze("",!0)])])])):ze("",!0)}}}),D9=bi(b9,[["__scopeId","data-v-127a3a16"]]),M9={class:"members-panel"},k9={class:"toolbar"},I9={class:"toolbar-actions"},L9={class:"tree-table"},R9={class:"tree-table-header"},P9={class:"cell cell-name"},F9={class:"cell cell-role"},O9={class:"cell cell-credits"},N9={class:"cell cell-actions"},B9={class:"tree-table-body"},U9={key:0,class:"loading"},H9={key:1,class:"empty"},G9=yn({__name:"TeamMembersAndGroups",props:{teamId:{},teamDetail:{}},setup(t){const e=t,r=Do(),n=Mo(),{t:a}=ko(),i=Me(""),o=Me(!1),s=Me(!1),l=Me(null),u=Me(null),f=Me({name:""}),h=Me(!1),v=Me(!1),c=Me([]),d=Me([]),p=Nt(()=>{var re;const J=(re=e.teamDetail)==null?void 0:re.memberRole;return J==="0"||J==="1"||J===0||J===1}),g=Nt(()=>_(d.value,c.value)),m=Nt(()=>{if(!i.value)return g.value;const J=i.value.toLowerCase();return T(g.value,J)});function _(J,re){const I=[];for(const G of J)I.push(y(G));return re.length>0&&I.push({id:"__ungrouped__",type:"group",name:a("team.ungroupedMembers"),isUngrouped:!0,memberCount:re.length,children:re.map(G=>E(G))}),I}function y(J){var G;const re=[];if((G=J.children)!=null&&G.length)for(const B of J.children)re.push(y(B));const I=J.members||[];for(const B of I)re.push(E(B));return{id:J.id,type:"group",name:J.groupName||J.name,isUngrouped:!1,memberCount:J.memberCount??I.length,children:re}}let w=!1;function E(J){return w||(console.log("[members] sample member raw data:",JSON.stringify(J)),w=!0),{id:J.id||J.userId,type:"member",nickName:J.nickName||J.nickname,userName:J.userName||J.username,remark:J.remark||J.teamRemark||"",userId:J.userId||J.user_id,phone:J.phone,memberRole:J.memberRole??J.member_role,credits:J.credits,_raw:J}}function T(J,re){const I=[];for(const G of J)if(G.type==="member")((G.nickName||"").toLowerCase().includes(re)||(G.userName||"").toLowerCase().includes(re)||(G.phone||"").includes(re))&&I.push(G);else if(G.type==="group"){const B=T(G.children||[],re),U=(G.name||"").toLowerCase().includes(re);(U||B.length>0)&&I.push({...G,children:U?G.children:B,memberCount:B.filter(q=>q.type==="member").length})}return I}async function x(J,re={}){return r.callRpc(`evol.team.${J}`,{kiteToken:n.kiteToken,teamId:e.teamId,...re})}async function C(){var J,re;v.value=!0;try{const I=await x("get_group_tree");console.log("[members] group tree response:",JSON.stringify(I).slice(0,500));const G=I.success?I.data||[]:[],B=S(G),U=new Map;if(B.length>0){const q=B.map(async ce=>{var Ce,ge;try{const ue=await x("get_group_members",{groupId:ce,pageNum:1,pageSize:9999});if(console.log(`[members] group ${ce} response:`,JSON.stringify(ue).slice(0,500)),ue.success){const Te=((Ce=ue.data)==null?void 0:Ce.list)||((ge=ue.data)==null?void 0:ge.records)||(Array.isArray(ue.data)?ue.data:[]);U.set(ce,Te)}}catch(ue){console.error(`[members] group ${ce} load failed:`,ue)}});await Promise.all(q)}A(G,U),d.value=G;try{const q=await x("get_ungrouped_members",{pageNum:1,pageSize:9999});console.log("[members] ungrouped response:",JSON.stringify(q).slice(0,500)),q.success?c.value=((J=q.data)==null?void 0:J.list)||((re=q.data)==null?void 0:re.records)||(Array.isArray(q.data)?q.data:[]):c.value=[]}catch(q){console.error("[members] ungrouped load failed:",q),c.value=[]}}catch(I){console.error("Load all failed:",I)}finally{v.value=!1}}function S(J){var I;const re=[];for(const G of J)re.push(G.id),(I=G.children)!=null&&I.length&&re.push(...S(G.children));return re}function A(J,re){var I;for(const G of J)G.members=re.get(G.id)||[],(I=G.children)!=null&&I.length&&A(G.children,re)}function M(){}function L(){l.value=null,u.value=null,f.value={name:""},s.value=!0}function N(J){l.value=null,u.value=J.id,f.value={name:""},s.value=!0}function V(J){l.value=J,u.value=null,f.value={name:J.name||""},s.value=!0}async function W(J){try{await Bu.confirm(a("team.confirmDeleteGroup"),a("common.confirm"));const re=await x("delete_group",{groupId:J.id});re.success?(Oe.success(a("team.deleteGroupSuccess")),C()):Oe.error(re.msg||a("common.error"))}catch{}}async function te(){if(f.value.name.trim()){h.value=!0;try{let J;if(l.value)J=await x("update_group",{groupId:l.value.id,data:{name:f.value.name.trim()}});else{const re={name:f.value.name.trim()};u.value&&(re.parentId=u.value),J=await x("create_group",{data:re})}J.success?(Oe.success(l.value?a("team.editGroupSuccess"):a("team.createGroupSuccess")),s.value=!1,C()):Oe.error(J.msg||a("common.error"))}catch{Oe.error(a("common.error"))}finally{h.value=!1}}}async function _e(J){var re;try{const I=await x("set_member_admin",{memberId:((re=J._raw)==null?void 0:re.id)||J.id||J.userId});I.success?(Oe.success(a("team.setAdminSuccess")),C()):Oe.error(I.msg||a("common.error"))}catch{Oe.error(a("common.error"))}}async function ve(J){var re;try{const I=await x("remove_member_admin",{memberId:((re=J._raw)==null?void 0:re.id)||J.id||J.userId});I.success?(Oe.success(a("team.removeAdminSuccess")),C()):Oe.error(I.msg||a("common.error"))}catch{Oe.error(a("common.error"))}}async function fe(J){var re;try{await Bu.confirm(a("team.confirmRemoveMember"),a("common.confirm"));const I=await x("remove_member",{memberId:((re=J._raw)==null?void 0:re.id)||J.id||J.userId});I.success?(Oe.success(a("team.removeMemberSuccess")),C()):Oe.error(I.msg||a("common.error"))}catch{}}return pl(()=>{C()}),(J,re)=>{const I=bt("el-input"),G=bt("el-form-item"),B=bt("el-form"),U=bt("el-button"),q=bt("el-dialog");return ne(),oe("div",M9,[D("div",k9,[Ze(I,{modelValue:i.value,"onUpdate:modelValue":re[0]||(re[0]=ce=>i.value=ce),placeholder:ie(a)("team.searchMember"),"prefix-icon":"Search",clearable:"",style:{"max-width":"280px"},onInput:M},null,8,["modelValue","placeholder"]),D("div",I9,[p.value?(ne(),oe("button",{key:0,class:"tool-btn",onClick:re[1]||(re[1]=ce=>o.value=!0)},[re[6]||(re[6]=D("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[D("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),D("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),St(" "+Q(ie(a)("team.addMember")),1)])):ze("",!0),p.value?(ne(),oe("button",{key:1,class:"tool-btn",onClick:L},[re[7]||(re[7]=D("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[D("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),D("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),D("line",{x1:"9",y1:"14",x2:"15",y2:"14"})],-1)),St(" "+Q(ie(a)("team.createGroup")),1)])):ze("",!0)])]),D("div",L9,[D("div",R9,[re[8]||(re[8]=D("div",{class:"cell cell-checkbox"},null,-1)),D("div",P9,Q(ie(a)("team.nameAndMembers")),1),D("div",F9,Q(ie(a)("team.role")),1),D("div",O9,Q(ie(a)("team.credits")),1),D("div",N9,Q(ie(a)("team.operation")),1)]),D("div",B9,[v.value?(ne(),oe("div",U9,Q(ie(a)("common.loading")),1)):m.value.length===0?(ne(),oe("div",H9,Q(ie(a)("team.noMembers")),1)):(ne(!0),oe(lr,{key:2},xr(m.value,ce=>(ne(),Xn(D9,{key:ce.id,node:ce,depth:0,"is-admin":p.value,onCreateSubGroup:N,onEditGroup:V,onDeleteGroup:W,onSetAdmin:_e,onRemoveAdmin:ve,onRemoveMember:fe},null,8,["node","is-admin"]))),128))])]),o.value?(ne(),Xn(s9,{key:0,"team-id":t.teamId,onClose:re[2]||(re[2]=ce=>o.value=!1),onAdded:C},null,8,["team-id"])):ze("",!0),Ze(q,{modelValue:s.value,"onUpdate:modelValue":re[5]||(re[5]=ce=>s.value=ce),title:l.value?ie(a)("team.editGroup"):ie(a)("team.createGroup"),width:"380px"},{footer:ct(()=>[Ze(U,{onClick:re[4]||(re[4]=ce=>s.value=!1)},{default:ct(()=>[St(Q(ie(a)("common.cancel")),1)]),_:1}),Ze(U,{type:"primary",loading:h.value,onClick:te},{default:ct(()=>[St(Q(ie(a)("common.confirm")),1)]),_:1},8,["loading"])]),default:ct(()=>[Ze(B,{"label-position":"top"},{default:ct(()=>[Ze(G,{label:ie(a)("team.groupName")},{default:ct(()=>[Ze(I,{modelValue:f.value.name,"onUpdate:modelValue":re[3]||(re[3]=ce=>f.value.name=ce),placeholder:ie(a)("team.groupNamePlaceholder"),maxlength:"30"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["modelValue","title"])])}}}),W9=bi(G9,[["__scopeId","data-v-a2b86d9c"]]),V9={class:"bill-panel"},z9={class:"bill-toolbar"},$9={key:0,class:"loading"},Y9={key:1,class:"empty"},X9={key:2,class:"bill-list"},K9={class:"bill-header"},Z9={class:"bill-col date"},q9={class:"bill-col credits"},j9={class:"bill-col requests"},J9={class:"bill-col date"},Q9={class:"bill-col credits mono"},eU={class:"bill-col requests mono"},tU=yn({__name:"TeamBillModal",props:{teamId:{}},setup(t){const e=t,r=Do(),n=Mo(),{t:a}=ko(),i=Me(!1),o=Me([]),s=new Date,l=new Date(s.getTime()-30*864e5),u=Me([l.toISOString().slice(0,10),s.toISOString().slice(0,10)]);async function f(){var v,c;if(!(!((v=u.value)!=null&&v[0])||!((c=u.value)!=null&&c[1]))){i.value=!0;try{const d=await r.callRpc("evol.team.get_bill_range",{kiteToken:n.kiteToken,teamId:e.teamId,startDate:u.value[0],endDate:u.value[1]});d.success&&(o.value=d.data||[])}catch(d){console.error("Load bill failed:",d)}finally{i.value=!1}}}function h(){if(o.value.length===0)return;const v=`Date,Credits,Requests
138
+ `,c=o.value.map(g=>`${g.date},${g.totalCredits??""},${g.totalRequests??""}`).join(`
139
+ `),d=new Blob([v+c],{type:"text/csv;charset=utf-8;"}),p=document.createElement("a");p.href=URL.createObjectURL(d),p.download=`team_bill_${e.teamId}.csv`,p.click(),URL.revokeObjectURL(p.href)}return pl(()=>{f()}),(v,c)=>{const d=bt("el-date-picker");return ne(),oe("div",V9,[D("div",z9,[Ze(d,{modelValue:u.value,"onUpdate:modelValue":c[0]||(c[0]=p=>u.value=p),type:"daterange","start-placeholder":ie(a)("team.startDate"),"end-placeholder":ie(a)("team.endDate"),format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",onChange:f},null,8,["modelValue","start-placeholder","end-placeholder"]),D("button",{class:"tool-btn",onClick:h},[c[1]||(c[1]=D("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[D("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),D("polyline",{points:"7 10 12 15 17 10"}),D("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1)),St(" "+Q(ie(a)("team.downloadCSV")),1)])]),i.value?(ne(),oe("div",$9,Q(ie(a)("common.loading")),1)):o.value.length===0?(ne(),oe("div",Y9,Q(ie(a)("team.noBill")),1)):(ne(),oe("div",X9,[D("div",K9,[D("span",Z9,Q(ie(a)("team.date")),1),D("span",q9,Q(ie(a)("team.credits")),1),D("span",j9,Q(ie(a)("team.requests")),1)]),(ne(!0),oe(lr,null,xr(o.value,p=>(ne(),oe("div",{key:p.date,class:"bill-row"},[D("span",J9,Q(p.date),1),D("span",Q9,Q(p.totalCredits??"-"),1),D("span",eU,Q(p.totalRequests??"-"),1)]))),128))]))])}}}),rU=bi(tU,[["__scopeId","data-v-d8e1bc4e"]]),nU={class:"alert-panel"},aU={key:0,class:"loading"},iU={key:1},oU={class:"alert-form"},sU={class:"form-row"},lU={class:"form-label"},uU={class:"form-row"},fU={class:"form-label"},hU={class:"form-row"},cU={class:"form-label"},vU={key:0,class:"form-row"},dU={class:"alert-actions"},pU=["disabled"],gU=["disabled"],mU=yn({__name:"TeamAlertConfig",props:{teamId:{}},setup(t){const e=t,r=Do(),n=Mo(),{t:a}=ko(),i=Me(!1),o=Me(!1),s=Me(!1),l=Me({enabled:!1,threshold:1e3,notifyTypes:[],webhookUrl:""});async function u(d,p={}){return r.callRpc(`evol.team.${d}`,{kiteToken:n.kiteToken,teamId:e.teamId,...p})}async function f(){i.value=!0;try{const d=await u("get_alert_config");d.success&&d.data&&(l.value={enabled:d.data.enabled??!1,threshold:d.data.threshold??1e3,notifyTypes:d.data.notifyTypes||[],webhookUrl:d.data.webhookUrl||""})}catch(d){console.error("Load alert config failed:",d)}finally{i.value=!1}}async function h(){o.value=!0;try{const d=await u("update_alert_config",{data:l.value});d.success?Oe.success(a("team.alertSaveSuccess")):Oe.error(d.msg||a("common.error"))}catch{Oe.error(a("common.error"))}finally{o.value=!1}}async function v(){s.value=!0;try{const d=await u("test_alert");d.success?Oe.success(a("team.testAlertSuccess")):Oe.error(d.msg||a("common.error"))}catch{Oe.error(a("common.error"))}finally{s.value=!1}}async function c(){try{const d=await u("reset_alert_status");d.success?Oe.success(a("team.resetAlertSuccess")):Oe.error(d.msg||a("common.error"))}catch{Oe.error(a("common.error"))}}return pl(()=>{f()}),(d,p)=>{const g=bt("el-switch"),m=bt("el-input-number"),_=bt("el-checkbox"),y=bt("el-checkbox-group"),w=bt("el-input");return ne(),oe("div",nU,[i.value?(ne(),oe("div",aU,Q(ie(a)("common.loading")),1)):(ne(),oe("div",iU,[D("div",oU,[D("div",sU,[D("span",lU,Q(ie(a)("team.alertEnabled")),1),Ze(g,{modelValue:l.value.enabled,"onUpdate:modelValue":p[0]||(p[0]=E=>l.value.enabled=E),onChange:h},null,8,["modelValue"])]),D("div",uU,[D("span",fU,Q(ie(a)("team.alertThreshold")),1),Ze(m,{modelValue:l.value.threshold,"onUpdate:modelValue":p[1]||(p[1]=E=>l.value.threshold=E),min:0,max:1e5,step:100},null,8,["modelValue"])]),D("div",hU,[D("span",cU,Q(ie(a)("team.alertNotifyType")),1),Ze(y,{modelValue:l.value.notifyTypes,"onUpdate:modelValue":p[2]||(p[2]=E=>l.value.notifyTypes=E)},{default:ct(()=>[Ze(_,{label:"email"},{default:ct(()=>[St(Q(ie(a)("team.notifyEmail")),1)]),_:1}),Ze(_,{label:"sms"},{default:ct(()=>[St(Q(ie(a)("team.notifySms")),1)]),_:1}),Ze(_,{label:"webhook"},{default:ct(()=>[...p[4]||(p[4]=[St("Webhook",-1)])]),_:1})]),_:1},8,["modelValue"])]),l.value.notifyTypes.includes("webhook")?(ne(),oe("div",vU,[p[5]||(p[5]=D("span",{class:"form-label"},"Webhook URL",-1)),Ze(w,{modelValue:l.value.webhookUrl,"onUpdate:modelValue":p[3]||(p[3]=E=>l.value.webhookUrl=E),placeholder:"https://"},null,8,["modelValue"])])):ze("",!0)]),D("div",dU,[D("button",{class:"action-btn save-btn",disabled:o.value,onClick:h},Q(o.value?ie(a)("common.loading"):ie(a)("common.save")),9,pU),D("button",{class:"action-btn test-btn",disabled:s.value,onClick:v},Q(s.value?ie(a)("common.loading"):ie(a)("team.testAlert")),9,gU),D("button",{class:"action-btn reset-btn",onClick:c},Q(ie(a)("team.resetAlert")),1)])]))])}}}),_U=bi(mU,[["__scopeId","data-v-4b3cc206"]]),yU={class:"team-detail-view"},xU={class:"detail-header"},wU={class:"header-info"},TU={class:"header-text"},SU={class:"team-name"},CU={class:"team-meta"},EU={key:0},AU={key:1,class:"meta-dot"},bU={key:2},DU={class:"header-actions"},MU={key:0,class:"action-btn active-badge"},kU={class:"detail-tabs"},IU=["onClick"],LU={class:"tab-content"},RU={key:1,class:"tab-panel"},PU={key:0,class:"loading"},FU={key:1,class:"empty"},OU={key:2,class:"info-list"},NU={class:"info-row"},BU={class:"info-label"},UU={class:"info-value"},HU={class:"info-row"},GU={class:"info-label"},WU={class:"info-value mono"},VU={class:"info-row"},zU={class:"info-label"},$U={class:"info-value mono"},YU={key:0,class:"info-row"},XU={class:"info-label"},KU={class:"info-value"},ZU={key:4,class:"tab-panel"},qU={class:"empty"},jU={key:5,class:"tab-panel"},JU={class:"empty"},QU=yn({__name:"TeamDetailView",setup(t){const e=AT(),r=ET(),n=Mo(),a=Do(),{userInfo:i}=CT(n),{t:o}=ko(),s=Nt(()=>Number(e.params.teamId)),l=Me(null),u=Me(null),f=Me(!1),h=Me("stats"),v=Nt(()=>[{key:"stats",label:o("team.tabStats")},{key:"packages",label:o("team.tabPackages")},{key:"members",label:o("team.tabMembers")},{key:"alerts",label:o("team.tabAlerts")}]),c=Nt(()=>{var T,x;return((x=(T=i.value)==null?void 0:T.teamInfo)==null?void 0:x.currentTeamId)===s.value}),d=Nt(()=>{var T,x;return((T=l.value)==null?void 0:T.memberRole)==="0"||((x=l.value)==null?void 0:x.memberRole)===0});function p(T){if(!T)return"-";const x=new Date(T);if(isNaN(x.getTime()))return T;const C=S=>String(S).padStart(2,"0");return`${x.getFullYear()}-${C(x.getMonth()+1)}-${C(x.getDate())} ${C(x.getHours())}:${C(x.getMinutes())}:${C(x.getSeconds())}`}function g(T){const x=String(T);return o(x==="0"?"team.roleCreator":x==="1"?"team.roleAdmin":x==="2"?"team.roleMember":"na")}async function m(){try{const T=await a.callRpc("evol.team.get_detail",{kiteToken:n.kiteToken,teamId:s.value});T.success&&(l.value=T.data)}catch(T){console.error("Load team detail failed:",T)}}async function _(){f.value=!0;try{const T=await a.callRpc("evol.team.get_account",{kiteToken:n.kiteToken,teamId:s.value});T.success&&(u.value=T.data)}catch(T){console.error("Load team account failed:",T)}finally{f.value=!1}}async function y(){try{const T=a.getClient();if(!T)return;const x=await T.call("evol.switch_team",{team_id:s.value,kiteToken:n.kiteToken});x.status==="success"?(Oe.success(o("team.switchSuccess")),await n.loadUserInfo(T)):Oe.error(x.error||o("team.switchFailed"))}catch{Oe.error(o("team.switchFailed"))}}async function w(){try{await Bu.confirm(o("team.confirmDelete"),o("common.confirm"));const T=await a.callRpc("evol.team.delete",{kiteToken:n.kiteToken,teamId:s.value});if(T.success){Oe.success(o("team.deleteSuccess")),r.push({name:"team"});const x=a.getClient();x&&await n.loadUserInfo(x)}else Oe.error(T.msg||o("team.deleteFailed"))}catch{}}async function E(){try{await Bu.confirm(o("team.confirmQuit"),o("common.confirm"));const T=await a.callRpc("evol.team.quit",{kiteToken:n.kiteToken,teamId:s.value});if(T.success){Oe.success(o("team.quitSuccess")),r.push({name:"team"});const x=a.getClient();x&&await n.loadUserInfo(x)}else Oe.error(T.msg||o("team.quitFailed"))}catch{}}return pl(()=>{m()}),Qc(h,T=>{T==="packages"&&!u.value&&_()}),Qc(()=>e.params.teamId,()=>{m(),u.value=null,h.value="stats"}),(T,x)=>{var C,S,A,M;return ne(),oe("div",yU,[D("div",xU,[D("button",{class:"back-btn",onClick:x[0]||(x[0]=L=>T.$router.push({name:"team"}))},[x[1]||(x[1]=D("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[D("polyline",{points:"15 18 9 12 15 6"})],-1)),St(" "+Q(ie(o)("team.back")),1)]),D("div",wU,[x[2]||(x[2]=Rf('<div class="header-icon" data-v-be89508c><svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-be89508c><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-v-be89508c></path><circle cx="9" cy="7" r="4" data-v-be89508c></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87" data-v-be89508c></path><path d="M16 3.13a4 4 0 0 1 0 7.75" data-v-be89508c></path></svg></div>',1)),D("div",TU,[D("h2",SU,Q(((C=l.value)==null?void 0:C.teamName)||ie(o)("common.loading")),1),D("div",CU,[((S=l.value)==null?void 0:S.memberRole)!=null?(ne(),oe("span",EU,Q(g(l.value.memberRole)),1)):ze("",!0),(A=l.value)!=null&&A.memberCount?(ne(),oe("span",AU,"·")):ze("",!0),(M=l.value)!=null&&M.memberCount?(ne(),oe("span",bU,Q(l.value.memberCount)+" "+Q(ie(o)("team.members")),1)):ze("",!0)])])]),D("div",DU,[c.value?(ne(),oe("button",MU,Q(ie(o)("team.current")),1)):(ne(),oe("button",{key:1,class:"action-btn switch-btn",onClick:y},Q(ie(o)("team.switchToThis")),1)),d.value?(ne(),oe("button",{key:2,class:"action-btn danger-btn",onClick:w},Q(ie(o)("team.deleteTeam")),1)):(ne(),oe("button",{key:3,class:"action-btn danger-btn",onClick:E},Q(ie(o)("team.quitTeam")),1))])]),D("div",kU,[(ne(!0),oe(lr,null,xr(v.value,L=>(ne(),oe("div",{key:L.key,class:ht(["tab-item",{active:h.value===L.key}]),onClick:N=>h.value=L.key},Q(L.label),11,IU))),128))]),D("div",LU,[h.value==="stats"?(ne(),Xn(Z7,{key:0,"team-id":s.value},null,8,["team-id"])):h.value==="packages"?(ne(),oe("div",RU,[f.value?(ne(),oe("div",PU,Q(ie(o)("common.loading")),1)):u.value?(ne(),oe("div",OU,[D("div",NU,[D("span",BU,Q(ie(o)("team.vipType")),1),D("span",UU,Q(u.value.vipTypeName||"Free"),1)]),D("div",HU,[D("span",GU,Q(ie(o)("team.credits")),1),D("span",WU,Q(u.value.credits??"-"),1)]),D("div",VU,[D("span",zU,Q(ie(o)("team.creditsLimit")),1),D("span",$U,Q(u.value.creditsLimit??"-"),1)]),u.value.vipExpireTime?(ne(),oe("div",YU,[D("span",XU,Q(ie(o)("team.expireTime")),1),D("span",KU,Q(p(u.value.vipExpireTime)),1)])):ze("",!0)])):(ne(),oe("div",FU,Q(ie(o)("team.noData")),1))])):h.value==="bill"?(ne(),Xn(rU,{key:2,"team-id":s.value},null,8,["team-id"])):h.value==="members"?(ne(),Xn(W9,{key:3,"team-id":s.value,"team-detail":l.value},null,8,["team-id","team-detail"])):h.value==="models"?(ne(),oe("div",ZU,[D("div",qU,Q(ie(o)("team.modelConfigDesc")),1)])):h.value==="insights"?(ne(),oe("div",jU,[D("div",JU,Q(ie(o)("team.insightsDesc")),1)])):h.value==="alerts"?(ne(),Xn(_U,{key:6,"team-id":s.value},null,8,["team-id"])):ze("",!0)])])}}}),nH=bi(QU,[["__scopeId","data-v-be89508c"]]);export{nH as default};