dknowc-dsh 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -19
- package/package.json +3 -3
- package/skills/dknowc-official-doc-writer/README.md +18 -16
- package/skills/dknowc-official-doc-writer/SKILL.md +112 -143
- package/skills/dknowc-official-doc-writer/attribution.json +5 -0
- package/skills/dknowc-official-doc-writer/reference/material_usage_guidance.md +5 -0
- package/skills/dknowc-official-doc-writer/reference/onboarding_scripts.md +18 -8
- package/skills/dknowc-official-doc-writer/reference/output_guide.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/research_notes.md +34 -0
- package/skills/dknowc-official-doc-writer/reference/review_checklist.md +2 -9
- package/skills/dknowc-official-doc-writer/reference/sample_trace_report.html +38 -18
- package/skills/dknowc-official-doc-writer/reference/search_guide.md +100 -33
- package/skills/dknowc-official-doc-writer/reference/search_intro.md +6 -6
- package/skills/dknowc-official-doc-writer/reference/search_policy.md +77 -55
- package/skills/dknowc-official-doc-writer/reference/task_router.md +6 -6
- package/skills/dknowc-official-doc-writer/scripts/api_key.py +41 -14
- package/skills/dknowc-official-doc-writer/scripts/attribution.py +60 -0
- package/skills/dknowc-official-doc-writer/scripts/build_trace_json.py +288 -0
- package/skills/dknowc-official-doc-writer/scripts/check_materials.py +265 -0
- package/skills/dknowc-official-doc-writer/scripts/deep_convert.py +235 -0
- package/skills/dknowc-official-doc-writer/scripts/deep_query.py +333 -0
- package/skills/dknowc-official-doc-writer/scripts/dkag_search.py +13 -4
- package/skills/dknowc-official-doc-writer/scripts/extract_reference.py +245 -0
- package/skills/dknowc-official-doc-writer/scripts/format_document.py +106 -18
- package/skills/dknowc-official-doc-writer/scripts/initialize.py +13 -7
- package/skills/dknowc-official-doc-writer/scripts/mcp_convert.py +272 -0
- package/skills/dknowc-official-doc-writer/scripts/mcp_direct.py +257 -143
- package/skills/dknowc-official-doc-writer/scripts/merge_search_results.py +72 -8
- package/skills/dknowc-official-doc-writer/scripts/outline_reference.py +14 -4
- package/skills/dknowc-official-doc-writer/scripts/prose_lint.py +6 -1
- package/skills/dknowc-official-doc-writer/scripts/register.mjs +122 -50
- package/skills/dknowc-official-doc-writer/scripts/render_trace_html.py +238 -94
- package/skills/dknowc-official-doc-writer/scripts/source_note_html.py +11 -2
- package/skills/dknowc-official-doc-writer/scripts/template_generator.py +13 -0
- package/skills/dknowc-ppt-assistant/README.md +14 -10
- package/skills/dknowc-ppt-assistant/SKILL.md +33 -15
- package/skills/dknowc-ppt-assistant/attribution.json +5 -0
- package/skills/dknowc-ppt-assistant/references/material_usage.md +9 -5
- package/skills/dknowc-ppt-assistant/references/onboarding_scripts.md +14 -2
- package/skills/dknowc-ppt-assistant/references/sample_trace_report.html +123 -115
- package/skills/dknowc-ppt-assistant/references/search_intro.md +1 -1
- package/skills/dknowc-ppt-assistant/references/svg-authoring.md +1 -1
- package/skills/dknowc-ppt-assistant/scripts/api_key.py +41 -14
- package/skills/dknowc-ppt-assistant/scripts/attribution.py +60 -0
- package/skills/dknowc-ppt-assistant/scripts/initialize.py +5 -3
- package/skills/dknowc-ppt-assistant/scripts/mcp_convert.py +188 -0
- package/skills/dknowc-ppt-assistant/scripts/register_key.mjs +184 -94
- package/skills/dknowc-ppt-assistant/scripts/render_trace_html.py +141 -121
- package/skills/dknowc-ppt-assistant/scripts/trusted_search.py +33 -3
- package/skills/dknowc-ppt-assistant/workflows/generate-pptx.md +15 -17
- package/skills/dknowc-trusted-search/README.md +27 -23
- package/skills/dknowc-trusted-search/SKILL.md +213 -141
- package/skills/dknowc-trusted-search/attribution.json +5 -0
- package/skills/dknowc-trusted-search/reference/onboarding_scripts.md +17 -7
- package/skills/dknowc-trusted-search/reference/sample_trace_report.html +129 -521
- package/skills/dknowc-trusted-search/scripts/api_key.py +41 -14
- package/skills/dknowc-trusted-search/scripts/attribution.py +61 -0
- package/skills/dknowc-trusted-search/scripts/chart_embed.py +350 -0
- package/skills/dknowc-trusted-search/scripts/deep_query.py +26 -5
- package/skills/dknowc-trusted-search/scripts/initialize.py +19 -27
- package/skills/dknowc-trusted-search/scripts/mcp_convert.py +189 -0
- package/skills/dknowc-trusted-search/scripts/merge_search_results.py +272 -0
- package/skills/dknowc-trusted-search/scripts/register_key.mjs +151 -45
- package/skills/dknowc-trusted-search/scripts/render_trace_html.py +340 -129
- package/skills/dknowc-trusted-search/scripts/trusted_search.py +28 -28
- package/src/index.js +2 -7
- package/skills/dknowc-ppt-assistant/scripts/adapt_mcp_result.py +0 -279
- package/skills/dknowc-trusted-consulting/README.md +0 -63
- package/skills/dknowc-trusted-consulting/SKILL.md +0 -241
- package/skills/dknowc-trusted-consulting/reference/consult_intro.md +0 -47
- package/skills/dknowc-trusted-consulting/reference/onboarding_scripts.md +0 -132
- package/skills/dknowc-trusted-consulting/reference/sample_consult_answer.md +0 -31
- package/skills/dknowc-trusted-consulting/reference/sample_trace_report.html +0 -867
- package/skills/dknowc-trusted-consulting/scripts/adapt_mcp_result.py +0 -283
- package/skills/dknowc-trusted-consulting/scripts/api_key.py +0 -41
- package/skills/dknowc-trusted-consulting/scripts/gov_chat.py +0 -508
- package/skills/dknowc-trusted-consulting/scripts/initialize.py +0 -123
- package/skills/dknowc-trusted-consulting/scripts/mcp_direct.py +0 -166
- package/skills/dknowc-trusted-consulting/scripts/register_key.mjs +0 -281
- package/skills/dknowc-trusted-consulting/scripts/render_trace_html.py +0 -2534
- package/skills/dknowc-trusted-search/scripts/adapt_mcp_result.py +0 -261
- package/skills/dknowc-trusted-search/scripts/render_policy_visualization.py +0 -894
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title
|
|
6
|
+
<title>三市人才购房补贴标准对比(效果示例,示例数据) · 溯源核验报告</title>
|
|
7
7
|
<style>
|
|
8
8
|
:root{
|
|
9
9
|
--navy:#20242c; --navy-2:#3a4152;
|
|
@@ -25,6 +25,19 @@ body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe
|
|
|
25
25
|
color:var(--ink);background:#f4f5f7;line-height:1.75;font-size:14.5px}
|
|
26
26
|
a{color:var(--brand)}
|
|
27
27
|
|
|
28
|
+
/* ===== 数据可视化(1.4.0 一体化:图表并入核验报告,不再另出独立报告) ===== */
|
|
29
|
+
/* 主形态:图表跟着它展示的数据所在章节走(.chart-inline 插在该章节正文之后) */
|
|
30
|
+
.chart-inline{margin:18px 0 4px;padding-top:14px;border-top:1px dashed var(--line)}
|
|
31
|
+
.chart-h3{margin:0 0 4px;font-size:14px;font-weight:600;color:var(--ink)}
|
|
32
|
+
/* 退化形态:锚点缺失/匹配不上时,作为独立章节排在核验报告单之后、正文之前 */
|
|
33
|
+
.chart-section{background:#fff;border-radius:14px;box-shadow:var(--shadow-1);padding:22px 26px 18px;margin:0 0 16px}
|
|
34
|
+
.chart-h2{margin:0 0 6px;font-size:16px;line-height:1.4}
|
|
35
|
+
.chart-note{margin:0 0 14px;color:var(--muted);font-size:12px}
|
|
36
|
+
.chart-section .card,.chart-inline .card{box-shadow:none;padding:0;border:0;background:transparent}
|
|
37
|
+
.chart-section .viz-panel h3,.chart-inline .viz-panel h3{margin:0 0 6px;font-size:13.5px;font-weight:600;color:var(--ink)}
|
|
38
|
+
.viz-duo{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;align-items:start}
|
|
39
|
+
@media(max-width:900px){.viz-duo{grid-template-columns:1fr}}
|
|
40
|
+
|
|
28
41
|
/* ===== 顶栏 ===== */
|
|
29
42
|
.topbar{position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;gap:10px;
|
|
30
43
|
padding:9px 22px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);
|
|
@@ -205,7 +218,7 @@ a.jb-quote{text-decoration:none}
|
|
|
205
218
|
.sc-links a{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border-radius:6px;
|
|
206
219
|
background:var(--brand-soft);color:var(--brand);font-weight:700;text-decoration:none;font-size:12px}
|
|
207
220
|
|
|
208
|
-
/* =====
|
|
221
|
+
/* ===== 知识专库视图 ===== */
|
|
209
222
|
#view-library{padding:26px 0 30px}
|
|
210
223
|
.lib-head{max-width:860px;margin:0 auto 16px;text-align:center}
|
|
211
224
|
.lib-title{margin-bottom:14px}
|
|
@@ -283,6 +296,9 @@ a.jb-quote{text-decoration:none}
|
|
|
283
296
|
.toc a{color:var(--muted);text-decoration:none;padding:4px 10px;border-left:2px solid var(--line);
|
|
284
297
|
line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
285
298
|
.toc a.on{color:var(--brand);border-left-color:var(--brand);font-weight:700}
|
|
299
|
+
/* 知识专库视图下隐藏章节目录(2026-09-29,对齐公文 3.7.6):.toc 渲染在 .app 之外,
|
|
300
|
+
视图切换只由 .app[data-view] 驱动,此前无任何规则处理 .toc,专库视图下目录仍挂在左侧 */
|
|
301
|
+
.app[data-view="library"] ~ .toc,.app[data-view="library"] .toc{display:none}
|
|
286
302
|
@media (max-width:1460px){.toc{display:none}}
|
|
287
303
|
|
|
288
304
|
.foot{text-align:center;color:var(--muted);font-size:11.5px;padding:16px 0 4px;line-height:1.8}
|
|
@@ -412,12 +428,12 @@ body.reading .cite,body.reading .toc,body.reading .p-detail{display:none!importa
|
|
|
412
428
|
<header class="topbar">
|
|
413
429
|
<div class="tb-left">
|
|
414
430
|
<span class="tb-stamp">溯源核验报告</span>
|
|
415
|
-
<span class="tb-title"
|
|
431
|
+
<span class="tb-title">三市人才购房补贴标准对比(效果示例,示例数据)</span>
|
|
416
432
|
</div>
|
|
417
433
|
<div class="tb-right">
|
|
418
434
|
<div class="view-switch" role="tablist" aria-label="视图切换">
|
|
419
435
|
<button class="on" data-view="report" type="button">核验报告</button>
|
|
420
|
-
<button data-view="library" type="button"
|
|
436
|
+
<button data-view="library" type="button">知识专库</button>
|
|
421
437
|
</div>
|
|
422
438
|
<div class="tb-tools">
|
|
423
439
|
<button id="btn-reading" type="button" aria-pressed="false" title="隐藏核验元素,纯阅读正文">只看正文</button>
|
|
@@ -426,7 +442,7 @@ body.reading .cite,body.reading .toc,body.reading .p-detail{display:none!importa
|
|
|
426
442
|
<button id="btn-print" type="button" aria-haspopup="true" title="浏览器打印/另存为 PDF">打印归档 ▾</button>
|
|
427
443
|
<span class="print-drop" id="print-drop" hidden>
|
|
428
444
|
<button id="print-body" type="button">只打印正文</button>
|
|
429
|
-
<button id="print-full" type="button"
|
|
445
|
+
<button id="print-full" type="button">完整归档(含来源文章)</button>
|
|
430
446
|
</span>
|
|
431
447
|
</span>
|
|
432
448
|
</div>
|
|
@@ -436,12 +452,12 @@ body.reading .cite,body.reading .toc,body.reading .p-detail{display:none!importa
|
|
|
436
452
|
|
|
437
453
|
<div class="hero">
|
|
438
454
|
<div class="r-badge">溯源核验报告</div>
|
|
439
|
-
<h1
|
|
440
|
-
<div class="meta">深知检索
|
|
455
|
+
<h1>三市人才购房补贴标准对比(效果示例,示例数据)</h1>
|
|
456
|
+
<div class="meta">深知检索 3 路 · 来源文章 9 篇 · 正文引用 15 处 · 生成于 2026-09-29 11:27 | 素材来源:深知可信搜索</div>
|
|
441
457
|
<div class="hero-switch">
|
|
442
458
|
<div class="view-switch" role="tablist" aria-label="视图切换">
|
|
443
459
|
<button class="on" data-view="report" type="button">核验报告</button>
|
|
444
|
-
<button data-view="library" type="button"
|
|
460
|
+
<button data-view="library" type="button">知识专库(9)</button>
|
|
445
461
|
</div>
|
|
446
462
|
</div>
|
|
447
463
|
</div>
|
|
@@ -453,17 +469,17 @@ body.reading .cite,body.reading .toc,body.reading .p-detail{display:none!importa
|
|
|
453
469
|
<ol class="p-steps">
|
|
454
470
|
<li class="p-step expandable" id="p-step-search" role="button" tabindex="0" title="展开各路检索明细">
|
|
455
471
|
<span class="p-no">1</span>
|
|
456
|
-
<div class="p-txt"><b>深知检索
|
|
472
|
+
<div class="p-txt"><b>深知检索 3 路</b><i>共 3 路检索 · 杭州市人才购房补贴政策…</i></div>
|
|
457
473
|
</li>
|
|
458
474
|
<li class="p-arrow" aria-hidden="true">›</li>
|
|
459
475
|
<li class="p-step">
|
|
460
476
|
<span class="p-no">2</span>
|
|
461
|
-
<div class="p-txt"><b
|
|
477
|
+
<div class="p-txt"><b>来源文章入库 9 篇</b><i>正文采用 9 · 召回未采用 0</i></div>
|
|
462
478
|
</li>
|
|
463
479
|
<li class="p-arrow" aria-hidden="true">›</li>
|
|
464
480
|
<li class="p-step">
|
|
465
481
|
<span class="p-no">3</span>
|
|
466
|
-
<div class="p-txt"><b>逐条比对原文</b><i>依据溯源
|
|
482
|
+
<div class="p-txt"><b>逐条比对原文</b><i>依据溯源 9/9 · 摘录可比对</i></div>
|
|
467
483
|
</li>
|
|
468
484
|
<li class="p-arrow" aria-hidden="true">›</li>
|
|
469
485
|
<li class="p-step done">
|
|
@@ -471,7 +487,7 @@ body.reading .cite,body.reading .toc,body.reading .p-detail{display:none!importa
|
|
|
471
487
|
<div class="p-txt"><b>核验完成</b><i>结论:正文依据逐条对过原文</i></div>
|
|
472
488
|
</li>
|
|
473
489
|
</ol>
|
|
474
|
-
<div class="p-detail" id="p-detail"><div class="pd-row"><b
|
|
490
|
+
<div class="p-detail" id="p-detail"><div class="pd-row"><b>杭州市人才购房补贴政策</b><span>召回 3 条 · 正文采用 3 条</span></div><div class="pd-row"><b>宁波市人才购房补贴政策</b><span>召回 3 条 · 正文采用 3 条</span></div><div class="pd-row"><b>温州市人才购房补贴政策</b><span>召回 3 条 · 正文采用 3 条</span></div></div>
|
|
475
491
|
</section>
|
|
476
492
|
|
|
477
493
|
<main class="view" id="view-report" aria-label="核验报告正文">
|
|
@@ -481,534 +497,54 @@ body.reading .cite,body.reading .toc,body.reading .p-detail{display:none!importa
|
|
|
481
497
|
<div class="v-head"><span class="v-shield">✓</span>核验完成,正文依据逐条对过原文<span class="v-stamp">已核验</span></div>
|
|
482
498
|
|
|
483
499
|
<div class="v-grid">
|
|
484
|
-
<div class="vi"><span class="s ok">✓ 依据溯源
|
|
500
|
+
<div class="vi"><span class="s ok">✓ 依据溯源 9/9</span><span class="d">每条素材摘录可比对,原文或存档快照可回看</span></div><div class="vi"><span class="s ok">✓ 引用对应 15/15</span><span class="d">正文每处 [n] 都能找到对应来源文章</span></div><div class="vi"><span class="s ok">✓ 材料新旧 已核</span><span class="d">材料日期 2025-06~2025-06</span></div><div class="vi"><span class="s ok" title="关键结论均有示例材料支撑;角标与来源文章一一对应;报告与回复同源;示例来源文章日期已核对;无未核验断言">✓ 交付前检查 5/5</span><span class="d">事实有据、角标绑定、答案一致、时效确认、无未核验断言 · 悬停查看说明</span></div>
|
|
485
501
|
</div>
|
|
486
|
-
<div class="v-note"
|
|
502
|
+
<div class="v-note">核验方式:先用深知可信搜索找权威来源,再把正文每处依据和原文逐条比对(都能点开原文回看),最后做了交付前五项检查。</div>
|
|
487
503
|
</div>
|
|
504
|
+
|
|
488
505
|
<div class="doc-paper">
|
|
489
|
-
<section class="chapter" id="sec-1"><header class="ch-head"><h2
|
|
490
|
-
<p class="lead"
|
|
491
|
-
为进一步支持小微企业和个体工商户发展,现将延续小规模纳税人增值税减免政策公告如下:
|
|
492
|
-
一、对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。
|
|
493
|
-
二、增值税小规模纳税人适用3%征收率的应税销售收入,减按1%征收率征收增值税;适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。
|
|
494
|
-
三、本公告执行至2027年12月31日。
|
|
495
|
-
特此公告。
|
|
496
|
-
财政部 税务总局 2023年8月1日</span></span></span></span></p>
|
|
497
|
-
<p class="para">小微企业融资方面,金融机构向小型企业、微型企业及个体工商户发放小额贷款取得的利息收入,免征增值税。<span class="jb" data-cite="2"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">2</i><span class="jb-txt">关于支持小微企业融资有关税收政策的公告</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.gov.cn/zhengce/zhengceku/202308/content_6896295.htm" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>中国政府网门户网站 · 2027年12月31日</span><span class="crumb">关于支持小微企业融资有关税收政策的公告</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">2</i><span class="sc-excerpt">财政部 税务总局公告2023年第13号
|
|
498
|
-
为继续加大对小微企业的支持力度,推动缓解融资难、融资贵问题,现将有关税收政策公告如下:
|
|
499
|
-
一、对金融机构向小型企业、微型企业及个体工商户发放小额贷款取得的利息收入,免征增值税。金融机构应将相关免税证明材料留存备查,单独核算符合免税条件的小额贷款利息收入,按现行规定向主管税务机关办理纳税申报;未单独核算的,不得免征增值税。
|
|
500
|
-
二、对金融机构与小型企业、微型企业签订的借款合同免征印花税。
|
|
501
|
-
三、本公告所称小型企业、微型企业,是指符合《中小企业划型标准规定》(工信部联企业〔2011〕300号)的小型企业和微型企业。其中,资产总额和从业人员指标均以贷款发放时的实际状态确定;营业收入指标以贷款发放前12个自然月的累计数确定,不满12个自然月的,按照以下公式计算:
|
|
502
|
-
营业收入(年)=企业实际存续期间营业收入/企业实际存续月数×12
|
|
503
|
-
四、本公告所称小额贷款,是指单户授信小于100万元(含本数)的小型企业、微型企业或个体工商户贷款;没有授信额度的,是指单户贷款合同金额且贷款余额在100万元(含本数)以下的贷款。
|
|
504
|
-
五、本公告执行至2027年12月31日。
|
|
505
|
-
特此公告。
|
|
506
|
-
财政部 税务总局 2023年8月2日</span></span></span></span></p>
|
|
506
|
+
<section class="chapter" id="sec-1"><header class="ch-head"><h2>一、总体结论</h2><span class="sec-badge ">本章引用 3 处 · 已核验</span></header>
|
|
507
|
+
<p class="lead">三市均按人才层级分档给予购房补贴,力度依次为杭州 > 宁波 > 温州,且均要求本地就业、社保与无房条件(示例数据,仅供展示报告效果)。<span class="jb" data-cite="1"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">1</i><span class="jb-txt">杭州市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/1.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">1</i><span class="sc-excerpt">杭州市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高800万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">1</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span><span class="jb" data-cite="2"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">2</i><span class="jb-txt">宁波市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/4.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">2</i><span class="sc-excerpt">宁波市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高600万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">2</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span><span class="jb" data-cite="3"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">3</i><span class="jb-txt">温州市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/7.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">3</i><span class="sc-excerpt">温州市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高500万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">3</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span></p>
|
|
507
508
|
</section>
|
|
508
|
-
<section class="chapter" id="sec-2"><header class="ch-head"><h2
|
|
509
|
-
<p class="para"
|
|
510
|
-
1
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
3.自2026年1月1日起,销售旧货,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
514
|
-
旧货,是指进入二次流通的具有部分使用价值的货物(含旧汽车、旧摩托车和旧游艇),但不包括自己使用过的物品。
|
|
515
|
-
4.自2026年1月1日起,个人(不含个体工商户中的一般纳税人)出租住房,按照简易计税方法依照3%征收率减按1.5%计算缴纳增值税。
|
|
516
|
-
5.自2026年1月1日起,《财政部 税务总局 住房城乡建设部关于完善住房租赁有关税收政策的公告》(财政部 税务总局 住房城乡建设部公告2021年第24号)中现行有效的增值税优惠政策。
|
|
517
|
-
6.自2026年1月1日至2027年12月31日,小规模纳税人发生除销售、出租不动产或者转让土地使用权之外的增值税应税交易,依照3%征收率减按1%征收率征收增值税;按规定预缴增值税的项目,当期在预缴地实现的全部价款、预收款(均不含增值税)合计达到增值税起征点的,减按1%预征率预缴增值税。
|
|
518
|
-
7.自2026年1月1日至2027年12月31日,《财政部 税务总局关于延续实施二手车经销有关增值税政策的公告》(财政部 税务总局公告2023年第63号)中现行有效的增值税优惠政策。</span></span></span></span></p>
|
|
509
|
+
<section class="chapter" id="sec-2"><header class="ch-head"><h2>二、补贴标准对比</h2><span class="sec-badge ">本章引用 9 处 · 已核验</span></header>
|
|
510
|
+
<p class="para"><b class="kw">•</b> <strong>A类(顶尖人才)</strong>:杭州最高 800 万元、宁波最高 600 万元、温州最高 500 万元。<span class="jb" data-cite="1"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">1</i><span class="jb-txt">杭州市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/1.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">1</i><span class="sc-excerpt">杭州市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高800万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">1</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span><span class="jb" data-cite="2"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">2</i><span class="jb-txt">宁波市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/4.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">2</i><span class="sc-excerpt">宁波市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高600万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">2</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span><span class="jb" data-cite="3"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">3</i><span class="jb-txt">温州市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/7.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">3</i><span class="sc-excerpt">温州市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高500万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">3</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span></p>
|
|
511
|
+
<p class="para"><b class="kw">•</b> <strong>B类(领军人才)</strong>:杭州最高 300 万元、宁波最高 240 万元、温州最高 200 万元。<span class="jb" data-cite="4"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">4</i><span class="jb-txt">杭州市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/2.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">4</i><span class="sc-excerpt">杭州市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高300万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">4</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span><span class="jb" data-cite="5"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">5</i><span class="jb-txt">宁波市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/5.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">5</i><span class="sc-excerpt">宁波市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高240万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">5</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span><span class="jb" data-cite="6"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">6</i><span class="jb-txt">温州市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/8.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">6</i><span class="sc-excerpt">温州市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高200万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">6</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span></p>
|
|
512
|
+
<p class="para"><b class="kw">•</b> <strong>C类(高级人才)</strong>:杭州最高 100 万元、宁波最高 80 万元、温州最高 60 万元。<span class="jb" data-cite="7"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">7</i><span class="jb-txt">杭州市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/3.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">7</i><span class="sc-excerpt">杭州市对经认定的C类(高级人才)人才,在市内购买首套自住住房的,按人才层级给予最高100万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">7</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span><span class="jb" data-cite="8"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">8</i><span class="jb-txt">宁波市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/6.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">8</i><span class="sc-excerpt">宁波市对经认定的C类(高级人才)人才,在市内购买首套自住住房的,按人才层级给予最高80万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">8</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span><span class="jb" data-cite="9"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">9</i><span class="jb-txt">温州市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/9.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">9</i><span class="sc-excerpt">温州市对经认定的C类(高级人才)人才,在市内购买首套自住住房的,按人才层级给予最高60万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">9</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span></p>
|
|
513
|
+
<div class="chart-inline" aria-label="数据可视化"><h3 class="chart-h3">三市人才购房补贴上限对比(万元;示例数据)</h3><p class="chart-note">图表由已核验材料数据生成,点击图例或数据项可跳转对应来源原文。</p><div class="card viz-duo"><div class="viz-panel"><h3>A类(顶尖人才)补贴上限</h3><div id="chart_metric_0" style="width:100%;height:360px"></div></div><div class="viz-panel"><h3>B类(领军人才)补贴上限</h3><div id="chart_metric_1" style="width:100%;height:360px"></div></div><div class="viz-panel"><h3>C类(高级人才)补贴上限</h3><div id="chart_metric_2" style="width:100%;height:360px"></div></div></div></div>
|
|
519
514
|
</section>
|
|
520
|
-
<section class="chapter" id="sec-3"><header class="ch-head"><h2
|
|
521
|
-
<p class="para"
|
|
522
|
-
|
|
523
|
-
按照公告,自2023年1月1日至2027年12月31日,对个体工商户年应纳税所得额不超过200万元的部分,减半征收个人所得税。个体工商户在享受现行其他个人所得税优惠政策的基础上,可叠加享受上述优惠政策。
|
|
524
|
-
许文分析,按照上述规定,将个体工商户减半征收个人所得税的年应纳税所得额范围,由不超过100万元提高为不超过200万元,“为进一步支持个体工商户发展,国家提高了政策优惠力度”。
|
|
525
|
-
公告还规定,自2023年1月1日至2027年12月31日,对增值税小规模纳税人、小型微利企业和个体工商户减半征收资源税(不含水资源税)、城市维护建设税、房产税、城镇土地使用税、印花税(不含证券交易印花税)、耕地占用税和教育费附加、地方教育附加。此外,对小型微利企业减按25%计算应纳税所得额,按20%的税率缴纳企业所得税政策,延续执行至2027年12月31日。
|
|
526
|
-
值得关注的是,小规模纳税人减免增值税政策也延续至2027年底。按照规定,对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。增值税小规模纳税人适用3%征收率的应税销售收入,减按1%征收率征收增值税;适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。
|
|
527
|
-
“以小规模纳税人年应税收入为500万元、适用征收率为3%为例,由于减按1%征收率征收增值税,一年可节省10万元增值税,减负效果十分明显。”北京国家会计学院学术委员会主任李旭红分析。</span></span></span></span></p>
|
|
515
|
+
<section class="chapter" id="sec-3"><header class="ch-head"><h2>三、申报条件(摘要)</h2><span class="sec-badge ">本章引用 3 处 · 已核验</span></header>
|
|
516
|
+
<p class="para">三地共性条件为:本市用人单位 3 年以上劳动合同、连续缴纳社保满 6 个月、本人及配偶市内无自有住房;补贴均分三年拨付(40%/30%/30%)。<span class="jb" data-cite="4"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">4</i><span class="jb-txt">杭州市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/2.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">4</i><span class="sc-excerpt">杭州市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高300万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">4</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span><span class="jb" data-cite="5"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">5</i><span class="jb-txt">宁波市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/5.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">5</i><span class="sc-excerpt">宁波市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高240万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">5</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span><span class="jb" data-cite="6"><button class="jb-name" type="button" aria-expanded="false"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg><i class="jb-id">6</i><span class="jb-txt">温州市人才购房补贴实施细则(示例标题)</span></button><span class="jb-body"><span class="jb-head"><span class="jb-label"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>溯源原文:</span><a class="jb-src" href="https://www.example.gov.cn/sample/8.html" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg><span>查看全文</span></a></span><span class="jb-site"><span class="dot"></span>2025-06-30</span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">6</i><span class="sc-excerpt">温州市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高200万元购房补贴,分三年按 40%/30%/30% 拨付。</span></span><span class="jb-quote" role="button" tabindex="0"><i class="jb-no">6</i><span class="sc-excerpt">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</span></span></span></span></p>
|
|
517
|
+
<p class="para">> 本报告为效果展示样例:素材、金额与链接均为示例数据,不代表真实政策口径,不得作为依据引用。</p>
|
|
528
518
|
</section>
|
|
529
519
|
</div>
|
|
530
|
-
<div class="foot">深知可信搜索 · 溯源核验报告 | 内容由 AI
|
|
520
|
+
<div class="foot">深知可信搜索 · 溯源核验报告 | 内容由 AI 生成,仅供参考</div>
|
|
531
521
|
</main>
|
|
532
522
|
|
|
533
523
|
|
|
534
|
-
<section class="view" id="view-library" aria-label="
|
|
524
|
+
<section class="view" id="view-library" aria-label="知识专库">
|
|
535
525
|
<div class="lib-head">
|
|
536
|
-
<div class="lib-title"><b
|
|
537
|
-
<span>共
|
|
526
|
+
<div class="lib-title"><b>知识专库</b>
|
|
527
|
+
<span>共 9 条 · 已引用 9 · 全部已核验</span>
|
|
538
528
|
</div>
|
|
539
529
|
<div class="lib-searchWrap">
|
|
540
530
|
<span class="lib-searchIcon" aria-hidden="true">⌕</span>
|
|
541
|
-
<input class="lib-search" type="search" placeholder="搜索标题 / 来源 / 摘录…" aria-label="
|
|
531
|
+
<input class="lib-search" type="search" placeholder="搜索标题 / 来源 / 摘录…" aria-label="搜索来源文章">
|
|
542
532
|
</div>
|
|
543
|
-
<div class="hot-terms" aria-label="热门搜索词"><span class="hot-label">大家都在搜</span><button class="hot-term" type="button"
|
|
544
|
-
<div class="lib-tabs" role="tablist" aria-label="按检索分组筛选"><button class="on" data-cond="" type="button">全部(
|
|
533
|
+
<div class="hot-terms" aria-label="热门搜索词"><span class="hot-label">大家都在搜</span><button class="hot-term" type="button">杭州</button><button class="hot-term" type="button">宁波</button><button class="hot-term" type="button">温州</button><button class="hot-term" type="button">房补贴政</button><button class="hot-term" type="button">补贴政策</button><button class="hot-term" type="button">杭州市人</button><button class="hot-term" type="button">宁波市人</button><button class="hot-term" type="button">波市人才</button></div>
|
|
534
|
+
<div class="lib-tabs" role="tablist" aria-label="按检索分组筛选"><button class="on" data-cond="" type="button">全部(9)</button><button data-cond="杭州市人才购房补贴政策" type="button">杭州市人才购房补贴政策(3)</button><button data-cond="宁波市人才购房补贴政策" type="button">宁波市人才购房补贴政策(3)</button><button data-cond="温州市人才购房补贴政策" type="button">温州市人才购房补贴政策(3)</button></div>
|
|
545
535
|
</div>
|
|
546
|
-
<div class="lib-list" id="lib-list"><article class="scard mat" id="src-1" data-type="material" data-cite-id="1" data-search="
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
二、增值税小规模纳税人适用3%征收率的应税销售收入,减按1%征收率征收增值税;适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。
|
|
550
|
-
三、本公告执行至2027年12月31日。
|
|
551
|
-
特此公告。
|
|
552
|
-
财政部 税务总局 2023年8月1日</div></div><div class="sc-links"><span><a href="https://www.gov.cn/zhengce/zhengceku/202308/content_6896287.htm" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-2" data-type="material" data-cite-id="2" data-search="本次检索"><div class="sc-head"><span class="sc-id">[2]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文链接与知识专库可回看">✓ 已核验</span></div><h4>关于支持小微企业融资有关税收政策的公告</h4><div class="sc-meta">中国政府网门户网站 | 2027年12月31日</div><div class="seg-block"><span class="crumb">关于支持小微企业融资有关税收政策的公告</span><div class="sc-excerpt plain">财政部 税务总局公告2023年第13号
|
|
553
|
-
为继续加大对小微企业的支持力度,推动缓解融资难、融资贵问题,现将有关税收政策公告如下:
|
|
554
|
-
一、对金融机构向小型企业、微型企业及个体工商户发放小额贷款取得的利息收入,免征增值税。金融机构应将相关免税证明材料留存备查,单独核算符合免税条件的小额贷款利息收入,按现行规定向主管税务机关办理纳税申报;未单独核算的,不得免征增值税。
|
|
555
|
-
二、对金融机构与小型企业、微型企业签订的借款合同免征印花税。
|
|
556
|
-
三、本公告所称小型企业、微型企业,是指符合《中小企业划型标准规定》(工信部联企业〔2011〕300号)的小型企业和微型企业。其中,资产总额和从业人员指标均以贷款发放时的实际状态确定;营业收入指标以贷款发放前12个自然月的累计数确定,不满12个自然月的,按照以下公式计算:
|
|
557
|
-
营业收入(年)=企业实际存续期间营业收入/企业实际存续月数×12
|
|
558
|
-
四、本公告所称小额贷款,是指单户授信小于100万元(含本数)的小型企业、微型企业或个体工商户贷款;没有授信额度的,是指单户贷款合同金额且贷款余额在100万元(含本数)以下的贷款。
|
|
559
|
-
五、本公告执行至2027年12月31日。
|
|
560
|
-
特此公告。
|
|
561
|
-
财政部 税务总局 2023年8月2日</div></div><div class="sc-links"><span><a href="https://www.gov.cn/zhengce/zhengceku/202308/content_6896295.htm" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-3" data-type="material" data-cite-id="3" data-search="本次检索"><div class="sc-head"><span class="sc-id">[3]</span><span class="sc-type">材料</span><span class="sc-conf" title="发布日期可信度:高。内容经模型治理入库,标题为模型从原文动态抽取,非规则提取">高可信</span><span class="sc-vk ok" title="摘录可比对,原文链接与知识专库可回看">✓ 已核验</span></div><h4>关于增值税法施行后增值税优惠政策衔接事项的公告</h4><div class="sc-meta">财政部税务总局公告2026年第10号 | 2026年01月01日</div><div class="seg-block"><span class="crumb">关于增值税法施行后增值税优惠政策衔接事项的公告</span><div class="sc-excerpt plain">(三)纳税人发生以下应税交易,可以选择适用简易计税方法,按照规定征收率计算缴纳增值税。
|
|
562
|
-
1.自2026年1月1日起,一般纳税人销售自己使用过的属于增值税法第二十二条规定不得抵扣且未抵扣进项税额的固定资产,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
563
|
-
固定资产,是指使用期限超过12个月的机器、机械、运输工具以及其他与生产经营相关的设备、工具、器具等。
|
|
564
|
-
2.自2026年1月1日起,小规模纳税人(不含自然人)销售自己使用过的固定资产,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
565
|
-
3.自2026年1月1日起,销售旧货,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
566
|
-
旧货,是指进入二次流通的具有部分使用价值的货物(含旧汽车、旧摩托车和旧游艇),但不包括自己使用过的物品。
|
|
567
|
-
4.自2026年1月1日起,个人(不含个体工商户中的一般纳税人)出租住房,按照简易计税方法依照3%征收率减按1.5%计算缴纳增值税。
|
|
568
|
-
5.自2026年1月1日起,《财政部 税务总局 住房城乡建设部关于完善住房租赁有关税收政策的公告》(财政部 税务总局 住房城乡建设部公告2021年第24号)中现行有效的增值税优惠政策。
|
|
569
|
-
6.自2026年1月1日至2027年12月31日,小规模纳税人发生除销售、出租不动产或者转让土地使用权之外的增值税应税交易,依照3%征收率减按1%征收率征收增值税;按规定预缴增值税的项目,当期在预缴地实现的全部价款、预收款(均不含增值税)合计达到增值税起征点的,减按1%预征率预缴增值税。
|
|
570
|
-
7.自2026年1月1日至2027年12月31日,《财政部 税务总局关于延续实施二手车经销有关增值税政策的公告》(财政部 税务总局公告2023年第63号)中现行有效的增值税优惠政策。</div></div><div class="sc-links"><span><a href="http://www.conghua.gov.cn/zwgk/zdlyxxgk/jsjf/grsdsyhzczt/content/post_10897634.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-4" data-type="material" data-cite-id="4" data-search="本次检索"><div class="sc-head"><span class="sc-id">[4]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文链接与知识专库可回看">✓ 已核验</span></div><h4>优惠政策延期、个税征收减半——税费组合拳促进小微企业发展</h4><div class="sc-meta">中国政府网门户网站 | 2027年12月31日</div><div class="seg-block"><span class="crumb">优惠政策延期、个税征收减半——税费组合拳促进小微企业发展</span><div class="sc-excerpt plain">财政部、国家税务总局8月2日联合发布多个公告,明确一系列支持小微企业和个体工商户发展有关税费政策,进一步为经营主体减负担、增动能。
|
|
571
|
-
中央政治局会议要求,要继续实施积极的财政政策和稳健的货币政策,延续、优化、完善并落实好减税降费政策。“此次发布的多数政策是对今年底到期的优惠政策进行延续,一些政策在此前政策基础上进行优化完善,部分政策进一步加大支持力度。”中国财政科学研究院研究员许文表示。
|
|
572
|
-
按照公告,自2023年1月1日至2027年12月31日,对个体工商户年应纳税所得额不超过200万元的部分,减半征收个人所得税。个体工商户在享受现行其他个人所得税优惠政策的基础上,可叠加享受上述优惠政策。
|
|
573
|
-
许文分析,按照上述规定,将个体工商户减半征收个人所得税的年应纳税所得额范围,由不超过100万元提高为不超过200万元,“为进一步支持个体工商户发展,国家提高了政策优惠力度”。
|
|
574
|
-
公告还规定,自2023年1月1日至2027年12月31日,对增值税小规模纳税人、小型微利企业和个体工商户减半征收资源税(不含水资源税)、城市维护建设税、房产税、城镇土地使用税、印花税(不含证券交易印花税)、耕地占用税和教育费附加、地方教育附加。此外,对小型微利企业减按25%计算应纳税所得额,按20%的税率缴纳企业所得税政策,延续执行至2027年12月31日。
|
|
575
|
-
值得关注的是,小规模纳税人减免增值税政策也延续至2027年底。按照规定,对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。增值税小规模纳税人适用3%征收率的应税销售收入,减按1%征收率征收增值税;适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。
|
|
576
|
-
“以小规模纳税人年应税收入为500万元、适用征收率为3%为例,由于减按1%征收率征收增值税,一年可节省10万元增值税,减负效果十分明显。”北京国家会计学院学术委员会主任李旭红分析。</div></div><div class="sc-links"><span><a href="https://www.gov.cn/zhengce/202308/content_6896376.htm" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-5" data-type="material" data-cite-id="5" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-conf" title="发布日期可信度:高。内容经模型治理入库,标题为模型从原文动态抽取,非规则提取">高可信</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>财政部税务总局发布:增值税法施行后优惠政策衔接明确——现行有效优惠继续实施,资源综合利用政策(2021年第40号)延续</h4><div class="sc-meta">2026年01月01日</div><div class="seg-block"><span class="crumb">财政部税务总局发布:增值税法施行后优惠政策衔接明确——现行有效优惠继续实施,资源综合利用政策(2021年第40号)延续 <i>›</i> 适用简易计税方法的项目(三)</span><div class="sc-excerpt plain">(三)纳税人发生以下应税交易,可以选择适用简易计税方法,按照规定征收率计算缴纳增值税。
|
|
577
|
-
1.自2026年1月1日起,一般纳税人销售自己使用过的属于增值税法第二十二条规定不得抵扣且未抵扣进项税额的固定资产,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
578
|
-
固定资产,是指使用期限超过12个月的机器、机械、运输工具以及其他与生产经营相关的设备、工具、器具等。
|
|
579
|
-
2.自2026年1月1日起,小规模纳税人(不含自然人)销售自己使用过的固定资产,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
580
|
-
3.自2026年1月1日起,销售旧货,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
581
|
-
旧货,是指进入二次流通的具有部分使用价值的货物(含旧汽车、旧摩托车和旧游艇),但不包括自己使用过的物品。
|
|
582
|
-
4.自2026年1月1日起,个人(不含个体工商户中的一般纳税人)出租住房,按照简易计税方法依照3%征收率减按1.5%计算缴纳增值税。
|
|
583
|
-
5.自2026年1月1日起,《财政部 税务总局 住房城乡建设部关于完善住房租赁有关税收政策的公告》(财政部 税务总局 住房城乡建设部公告2021年第24号)中现行有效的增值税优惠政策。
|
|
584
|
-
6.自2026年1月1日至2027年12月31日,小规模纳税人发生除销售、出租不动产或者转让土地使用权之外的增值税应税交易,依照3%征收率减按1%征收率征收增值税;按规定预缴增值税的项目,当期在预缴地实现的全部价款、预收款(均不含增值税)合计达到增值税起征点的,减按1%预征率预缴增值税。
|
|
585
|
-
7.自2026年1月1日至2027年12月31日,《财政部 税务总局关于延续实施二手车经销有关增值税政策的公告》(财政部 税务总局公告2023年第63号)中现行有效的增值税优惠政策。</div></div><div class="sc-links"><span><a href="https://www.crra.org.cn/news/qiye/1541.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-6" data-type="material" data-cite-id="6" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>[经济日报] 增值税征管兼顾效率和公平</h4><div class="sc-meta">国家税务总局门户网站 | 2026年02月03日</div><div class="seg-block"><span class="crumb">[经济日报] 增值税征管兼顾效率和公平</span><div class="sc-excerpt plain">按次纳税的主体中,自然人纳税人占绝大多数。为减轻自然人办税负担,《中华人民共和国增值税法实施条例》第四十四条明确,按次纳税的纳税人,销售额达到起征点的,应当自纳税义务发生之日起至次年6月30日前进行申报纳税,在申报纳税期限方面为纳税人预留了较为充足的时间。考虑到自然人流动性强,为便利其申报纳税,减轻按次纳税办税负担,《征管公告》明确自然人发生应税交易达到起征点的,不论是向税务机关申请代开发票,还是由扣缴义务人代扣代缴,均视为办理了申报纳税。
|
|
586
|
-
“从公告规定来看,税务部门尽量减少了自然人需要自行申报纳税的情况。”黄立新表示,如果自然人代开发票、代扣代缴两种方式都未涉及,才适用兜底方式,就其本年度尚未缴纳增值税的应税交易,按照规定向主管税务机关申报纳税,这样就减轻了自然人的办税负担。
|
|
587
|
-
《征管公告》还对小规模纳税人灵活享受减免税优惠进行了明确。《中华人民共和国增值税法》第二十七条明确,“纳税人可以放弃增值税优惠;放弃优惠的,在三十六个月内不得享受该项税收优惠,小规模纳税人除外”。基于上述条款规定,《征管公告》延续了近年来一直执行的征管口径,明确提出,小规模纳税人发生应税交易,销售额未达到起征点标准的,可以选择全部或者部分应税交易放弃免税并开具增值税专用发票。
|
|
588
|
-
国家税务总局货物和劳务税司有关负责人介绍,由于增值税实行“环环征收、道道抵扣”的链条式征扣税机制,小规模纳税人放弃减免税的主要目的,一般是为了满足下游客户索取增值税专用发票用以抵扣进项的需求。根据《征管公告》规定,小规模纳税人可以根据自身经营情况,灵活选择是否就某笔应税交易放弃减免税优惠,单笔放弃享受优惠的,不会影响其他应税交易继续享受优惠。需要提醒的是,小规模纳税人在准确把握政策规定灵活享受减免税优惠的同时,应当做到合规经营,确保长远稳定发展。
|
|
589
|
-
(记者:董碧娟)
|
|
590
|
-
网站纠错
|
|
591
|
-
责任编辑: 曾彪
|
|
592
|
-
[人民日报] 国家税务总局制发公告 明确起征点标准等增值税征管事项
|
|
593
|
-
[人民日报] 国家税务总局发布新出口退税管理办法 申报办理更加便捷高效</div></div><div class="sc-links"><span><a href="http://www.chinatax.gov.cn/chinatax/n810219/n810780/c5247519/content.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-7" data-type="material" data-cite-id="7" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>[经济日报] 优化税收环境激发新活力</h4><div class="sc-meta">国家税务总局门户网站 | 2026年01月01日</div><div class="seg-block"><span class="crumb">[经济日报] 优化税收环境激发新活力</span><div class="sc-excerpt plain">近年来,小微企业和个体工商户一直是减税降费的支持重点。2023年,我国延续实施了多项小微企业和个体工商户十分关注的税费优惠政策,大部分政策直接延续到2027年底。比如,对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。对个体工商户年应纳税所得额不超过200万元的部分,减半征收个人所得税。对小型微利企业减按25%计算应纳税所得额,按20%的税率缴纳企业所得税。这些税费政策普惠性强,符合条件的小微企业和个体工商户都可以享受。
|
|
594
|
-
“民营企业以中小企业和个体工商户为主,具有数量多、第三产业居多等特征。这些小微企业抗风险能力普遍较弱。近年来,为帮助中小企业及服务业纾困,我国出台了一揽子税费支持政策,在助力中小民营企业渡过难关并实现持续发展方面发挥了积极作用。”北京国家会计学院副院长李旭红表示。
|
|
595
|
-
在税费优惠等多方面政策助力下,民营经营主体活力不断释放。税收数据显示,2024年民营经济销售收入增速比全国企业平均水平高0.5个百分点。其中,高技术制造业、数字经济核心产业销售收入同比分别增长13%、4.7%,较全国同行业企业分别高1.8个、1.7个百分点。
|
|
596
|
-
强化法治公平
|
|
597
|
-
2024年12月25日,十四届全国人大常委会第十三次会议表决通过了《中华人民共和国增值税法》,自2026年1月1日起施行。我国第一大税种增值税有了专门法律,对于健全有利于高质量发展的增值税制度、规范增值税的征收和缴纳、保护纳税人的合法权益具有重要意义。
|
|
598
|
-
“法治公平是最好的营商环境。目前,我国18个税种中已经有14个完成立法,涉及的税收收入在全部税收收入中所占比重超80%,基本形成了系统完备、科学规范、运行有效的税收法律制度体系。”吉林财经大学税务学院院长张巍表示,税收立法有助于增强税制确定性,让企业稳定预期、提振信心。</div></div><div class="sc-links"><span><a href="http://www.chinatax.gov.cn/chinatax/n810219/n810780/c5238961/content.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-8" data-type="material" data-cite-id="8" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>最新的小微企业增值税优惠政策是如何规定的?</h4><div class="sc-meta">国家税务总局门户网站 | 2025年10月30日</div><div class="seg-block"><span class="crumb">最新的小微企业增值税优惠政策是如何规定的?</span><div class="sc-excerpt plain">知识详情
|
|
599
|
-
智能咨询
|
|
600
|
-
关于12366
|
|
601
|
-
首页
|
|
602
|
-
北京市 [切换]
|
|
603
|
-
A-G
|
|
604
|
-
北京市
|
|
605
|
-
安徽省
|
|
606
|
-
福建省
|
|
607
|
-
广东省
|
|
608
|
-
广西壮族自治区
|
|
609
|
-
重庆市
|
|
610
|
-
贵州省
|
|
611
|
-
甘肃省
|
|
612
|
-
大连市
|
|
613
|
-
H-K
|
|
614
|
-
河北省
|
|
615
|
-
吉林省
|
|
616
|
-
黑龙江省
|
|
617
|
-
江苏省
|
|
618
|
-
江西省
|
|
619
|
-
河南省
|
|
620
|
-
湖北省
|
|
621
|
-
湖南省
|
|
622
|
-
海南省
|
|
623
|
-
L-S
|
|
624
|
-
山西省
|
|
625
|
-
内蒙古自治区
|
|
626
|
-
辽宁省
|
|
627
|
-
上海市
|
|
628
|
-
山东省
|
|
629
|
-
四川省
|
|
630
|
-
陕西省
|
|
631
|
-
青海省
|
|
632
|
-
宁夏回族自治区
|
|
633
|
-
宁波市
|
|
634
|
-
青岛市
|
|
635
|
-
深圳市
|
|
636
|
-
T-Z
|
|
637
|
-
天津市
|
|
638
|
-
浙江省
|
|
639
|
-
云南省
|
|
640
|
-
西藏自治区
|
|
641
|
-
新疆维吾尔自治区
|
|
642
|
-
厦门市
|
|
643
|
-
我的收藏
|
|
644
|
-
好友申请
|
|
645
|
-
我的消息
|
|
646
|
-
注册
|
|
647
|
-
登录
|
|
648
|
-
用户名称
|
|
649
|
-
个人中心
|
|
650
|
-
退出
|
|
651
|
-
知识详情
|
|
652
|
-
最新的小微企业增值税优惠政策是如何规定的?
|
|
653
|
-
发布日期:2025-10-30
|
|
654
|
-
打印
|
|
655
|
-
字体:
|
|
656
|
-
大
|
|
657
|
-
中
|
|
658
|
-
小阅读量17798
|
|
659
|
-
根据《关于增值税小规模纳税人减免增值税政策的公告》(财政部 税务总局公告2023年第19号)规定,一、对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。</div></div><div class="seg-block"><span class="crumb">最新的小微企业增值税优惠政策是如何规定的? <i>›</i> 本公告执行至2027年12月31日。</span><div class="sc-excerpt plain">三、本公告执行至2027年12月31日。
|
|
660
|
-
下载
|
|
661
|
-
收藏
|
|
662
|
-
纠错
|
|
663
|
-
纠错
|
|
664
|
-
提交
|
|
665
|
-
0
|
|
666
|
-
相关附件
|
|
667
|
-
相关法规
|
|
668
|
-
问题解答
|
|
669
|
-
办税流程
|
|
670
|
-
你可能关注的
|
|
671
|
-
换一换
|
|
672
|
-
[视频点播]增值税申报表更正及医疗服务、教育服务免征增值税政策
|
|
673
|
-
发布时间:2025-12-10
|
|
674
|
-
[热点问题]纳税人发生跨境应税行为,按照《国家税务总局关于发布〈营业税改征增值税跨境应税行为增值税免税管理办法(试行)〉的公告》(国家税务总局公告2016年第29号)的规定办理免税备案手续后发生的相同跨境应税行为,是否需要重新办理备案手续?
|
|
675
|
-
发布时间:2025-12-09
|
|
676
|
-
[视频点播]社保费基数补差操作指引
|
|
677
|
-
发布时间:2025-12-08
|
|
678
|
-
[视频点播]个转企“一件事”办理指南
|
|
679
|
-
发布时间:2025-12-08
|
|
680
|
-
[视频点播]纳税信用缴费
|
|
681
|
-
发布时间:2025-12-08
|
|
682
|
-
[视频点播]契税优惠政策中的“家庭唯一住房”
|
|
683
|
-
发布时间:2025-12-05
|
|
684
|
-
[视频点播]山东省土地增值税预征率是多少
|
|
685
|
-
发布时间:2025-12-05
|
|
686
|
-
[视频点播]办税一点通高效指南 代开增值税发票
|
|
687
|
-
发布时间:2025-12-05
|
|
688
|
-
版权所有:国家税务总局 网站标识码:bm29000002
|
|
689
|
-
京ICP备13021685号-2
|
|
690
|
-
京公网安备 11040102700073号
|
|
691
|
-
主办单位:国家税务总局 地址:北京市西城区枣林前街68号 |
|
|
692
|
-
联系我们
|
|
693
|
-
建议您使用IE9及以上版本、Edge、Chrome、Firefox和360等主流浏览器浏览本网站
|
|
694
|
-
X
|
|
695
|
-
您即将离开12366纳税服务平台网站,
|
|
696
|
-
是否继续?
|
|
697
|
-
继续访问 放弃
|
|
698
|
-
X
|
|
699
|
-
分享到 - 微信</div></div><div class="sc-links"><span><a href="https://12366.chinatax.gov.cn/sscx/detail?code=0000000002019012200002&flag=2&tslx=2" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-9" data-type="material" data-cite-id="9" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-conf" title="发布日期可信度:高。内容经模型治理入库,标题为模型从原文动态抽取,非规则提取">高可信</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>支持小微企业和个体工商户发展税费优惠政策指引(2.0)</h4><div class="sc-meta">2023年12月21日</div><div class="seg-block"><span class="crumb">支持小微企业和个体工商户发展税费优惠政策指引(2.0) <i>›</i> 第三十七条</span><div class="sc-excerpt plain">【政策案例】
|
|
700
|
-
某教授在外单位授课获取酬劳,8月5日到办税服务厅代开征收率为1%的增值税普通发票。如代开发票金额为400元,未超过500元的起征点,则可免征增值税;如代开发票金额为800元,超过500元的起征点,则需按照800元全额缴纳增值税8元(=800*1%)。
|
|
701
|
-
2.增值税小规模纳税人月销售额10万元以下免征增值税政策
|
|
702
|
-
【享受主体】
|
|
703
|
-
增值税小规模纳税人
|
|
704
|
-
【优惠内容】
|
|
705
|
-
自2023年1月1日至2027年12月31日,对月销售额10万元以下(含本数)的增值税小规模纳税人免征增值税。
|
|
706
|
-
【享受条件】
|
|
707
|
-
1.适用于按期纳税的增值税小规模纳税人。
|
|
708
|
-
2.小规模纳税人以1个月为1个纳税期的,月销售额未超过10万元;小规模纳税人以1个季度为1个纳税期的,季度销售额未超过30万元,可以享受免征增值税政策。
|
|
709
|
-
3.小规模纳税人发生增值税应税销售行为,合计月销售额超过10万元,但扣除本期发生的销售不动产的销售额后未超过10万元的,其销售货物、劳务、服务、无形资产取得的销售额免征增值税。
|
|
710
|
-
4.适用增值税差额征税政策的小规模纳税人,以差额后的销售额确定是否可以享受上述免征增值税政策。
|
|
711
|
-
5.其他个人采取一次性收取租金形式出租不动产取得的租金收入,可在对应的租赁期内平均分摊,分摊后的月租金收入未超过10万元的,免征增值税。
|
|
712
|
-
6.按固定期限纳税的小规模纳税人可以选择以1个月或1个季度为纳税期限,一经选择,一个会计年度内不得变更。
|
|
713
|
-
【享受方式】</div></div><div class="seg-block"><span class="crumb">支持小微企业和个体工商户发展税费优惠政策指引(2.0)</span><div class="sc-excerpt plain">二
|
|
714
|
-
、推动普惠金融发展
|
|
715
|
-
13.金融机构小微企业及个体工商户1000万元及以下小额贷款利息收入免征增值税政策
|
|
716
|
-
【享受主体】
|
|
717
|
-
向小型企业、微型企业及个体工商户发放小额贷款的金融机构
|
|
718
|
-
【优惠内容】
|
|
719
|
-
2027年12月31日前,对金融机构向小型企业、微型企业和个体工商户发放小额贷款取得的利息收入,免征增值税。金融机构可以选择以下两种方法之一适用免税:
|
|
720
|
-
(1)对金融机构向小型企业、微型企业和个体工商户发放的,利率水平不高于全国银行间同业拆借中心公布的贷款市场报价利率(LPR)150%(含本数)的单笔小额贷款取得的利息收入,免征增值税;高于全国银行间同业拆借中心公布的贷款市场报价利率(LPR)150%的单笔小额贷款取得的利息收入,按照现行政策规定缴纳增值税。
|
|
721
|
-
(2)对金融机构向小型企业、微型企业和个体工商户发放单笔小额贷款取得的利息收入中,不高于该笔贷款按照全国银行间同业拆借中心公布的贷款市场报价利率(LPR)150%(含本数)计算的利息收入部分,免征增值税;超过部分按照现行政策规定缴纳增值税。
|
|
722
|
-
金融机构可按会计年度在以上两种方法之间选定其一作为该年的免税适用方法,一经选定,该会计年度内不得变更。
|
|
723
|
-
【享受条件】
|
|
724
|
-
1.小型企业、微型企业,是指符合《中小企业划型标准规定》(工信部联企业〔2011〕300号)的小型企业和微型企业。其中,资产总额和从业人员指标均以贷款发放时的实际状态确定,营业收入指标以贷款发放前12个自然月的累计数确定,不满12个自然月的,按照以下公式计算:
|
|
725
|
-
营业收入(年)=企业实际存续期间营业收入/企业实际存续月数×12</div></div><div class="sc-links"><span><a href="http://zc.gjzwfw.gov.cn/art/2023/12/22/art_14_71595.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-10" data-type="material" data-cite-id="10" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-conf" title="发布日期可信度:高。内容经模型治理入库,标题为模型从原文动态抽取,非规则提取">高可信</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>增值税小规模纳税人增值税优惠政策</h4><div class="sc-meta">2023年01月01日</div><div class="seg-block"><span class="crumb">增值税小规模纳税人增值税优惠政策 <i>›</i> 表格</span><div class="sc-excerpt rich"><table>
|
|
726
|
-
<tbody>
|
|
727
|
-
<tr>
|
|
728
|
-
<td>政策依据</td>
|
|
729
|
-
<td>1.《财政部税务总局关于增值税小规模纳税人减免增值税政策的公告》(财政部税务总局公告2023年第19号); 2.《国家税务总局关于增值税小规模纳税人减免增值税等政策有关征管事项的公告》(国家税务总局公告2023年第1号)。</td>
|
|
730
|
-
</tr>
|
|
731
|
-
<tr>
|
|
732
|
-
<td>政策内容</td>
|
|
733
|
-
<td>1.自2023年1月1日至2027年12月31日,对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。 3%征收率的应税销售收入,减按1%征收率征收增值税;适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。</td>
|
|
734
|
-
</tr>
|
|
735
|
-
<tr>
|
|
736
|
-
<td>适用对象</td>
|
|
737
|
-
</tr>
|
|
738
|
-
<tr>
|
|
739
|
-
<td>适用时间</td>
|
|
740
|
-
<td>1.随增值税纳税申报; 2.2023年1月1日起实施,有效期至2027年12月31日。</td>
|
|
741
|
-
</tr>
|
|
742
|
-
<tr>
|
|
743
|
-
<td>咨询电话</td>
|
|
744
|
-
<td>纳税人主管税务机关0472-8012366,0472-8917188</td>
|
|
745
|
-
</tr>
|
|
746
|
-
<tr>
|
|
747
|
-
<td>申请条件</td>
|
|
748
|
-
<td>1.增值税小规模纳税人(以下简称小规模纳税人)发生增值税应税销售行为,合计月销售额未超过10万元(以1个季度为1个纳税期的,季度销售额未超过30万元)的,免征增值税。 2.小规模纳税人发生增值税应税销售行为,合计月销售额超过10万元,但扣除本期发生的销售不动产的销售额后未超过10万元的,其销售货物、劳务、服务、无形资产取得的销售额免征增值税 3.按照现行规定应当预缴增值税税款的小规模纳税人,凡在预缴地实现的月销售额未超过10万元的,当期无需预缴税款。在预缴地实现的月销售额超过10万元的,适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。</td>
|
|
749
|
-
</tr>
|
|
750
|
-
<tr>
|
|
751
|
-
<td>申请材料</td>
|
|
752
|
-
</tr>
|
|
753
|
-
</tbody>
|
|
754
|
-
</table></div></div><div class="sc-links"><span><a href="http://www.tmtyq.gov.cn/zfxxgk/fdzdgknr/zdlyxxgk/zqsk/zqsk_jsjf/202510/t20251014_678346.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-11" data-type="material" data-cite-id="11" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-conf" title="发布日期可信度:高。内容经模型治理入库,标题为模型从原文动态抽取,非规则提取">高可信</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>关于《国家税务总局关于资源回收企业向自然人报废产品出售者“反向开票”有关事项的公告》的解读</h4><div class="sc-meta">2024年04月25日</div><div class="seg-block"><span class="crumb">关于《国家税务总局关于资源回收企业向自然人报废产品出售者“反向开票”有关事项的公告》的解读 <i>›</i> 八、 出售者可享受的增值税优惠 <i>›</i> 出售者可享受的增值税优惠政策</span><div class="sc-excerpt plain">答:出售者通过“反向开票”销售报废产品,可按规定享受小规模纳税人月销售额10万元以下免征增值税和3%征收率减按1%计算缴纳增值税等税费优惠政策。后续如小规模纳税人相关税费优惠政策调整,按照调整后的政策执行。</div></div><div class="sc-links"><span><a href="https://fgk.chinatax.gov.cn/zcfgk/c100015/c5225083/content.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-12" data-type="material" data-cite-id="12" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>支持小微企业和个体工商户发展 多项税收优惠政策延续优化至2027年底</h4><div class="sc-meta">中国政府网门户网站 | 2023年08月04日</div><div class="seg-block"><span class="crumb">支持小微企业和个体工商户发展 多项税收优惠政策延续优化至2027年底</span><div class="sc-excerpt plain">财政部、国家税务总局日前联合发布一系列公告,明确多项支持小微企业和个体工商户发展的税费政策,为经营主体减负担、增动能,促进重点群体创业就业。
|
|
755
|
-
为继续减轻小微企业和个体工商户税费负担,公告明确,2027年底前,对个体工商户年应纳税所得额不超过200万元的部分,减半征收个人所得税;对增值税小规模纳税人、小型微利企业和个体工商户减半征收资源税(不含水资源税)、城市维护建设税、房产税、城镇土地使用税、印花税(不含证券交易印花税)、耕地占用税和教育费附加、地方教育附加;对小型微利企业减按25%计算应纳税所得额,按20%的税率缴纳企业所得税。与此同时,小规模纳税人减免增值税政策也延续至2027年底,即对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税;增值税小规模纳税人适用3%征收率的应税销售收入,减按1%征收率征收增值税;适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。
|
|
756
|
-
为继续推动缓解小微企业和个体工商户融资难、融资贵问题,公告明确,2027年底前,对金融机构向小型企业、微型企业及个体工商户发放小额贷款取得的利息收入,免征增值税。对金融机构与小型企业、微型企业签订的借款合同免征印花税。纳税人为农户、小型企业、微型企业及个体工商户借款、发行债券提供融资担保取得的担保费收入,以及为上述融资担保提供再担保取得的再担保费收入,免征增值税。</div></div><div class="sc-links"><span><a href="https://www.gov.cn/zhengce/202308/content_6896550.htm" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-13" data-type="material" data-cite-id="13" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>学习收藏!按季申报小规模纳税人享受减免增值税政策等14问</h4><div class="sc-meta">国家税务总局门户网站 | 2025年01月07日</div><div class="seg-block"><span class="crumb">学习收藏!按季申报小规模纳税人享受减免增值税政策等14问</span><div class="sc-excerpt plain">答:《财政部 税务总局关于增值税小规模纳税人减免增值税政策的公告》(2023年第19号)第二条规定,增值税小规模纳税人适用3%征收率的应税销售收入,减按1%征收率征收增值税。根据上述规定,您可以享受3%征收率销售收入减按1%征收增值税政策。但由于您开具的3%征收率的机动车销售统一发票,具有抵扣功能,您的客户如为一般纳税人,可以凭您开具的3%征收率的机动车销售统一发票,抵扣对应的进项税额。因此,您需要追回已开具的3%征收率的机动车销售统一发票,重新开具1%征收率的机动车销售统一发票,方能享受减税政策。如无法追回,则需要按照3%征收率计算缴纳增值税。今后您要享受3%征收率销售收入减按1%征收增值税政策时,如需开具机动车销售统一发票,注意应按照1%征收率开具。
|
|
757
|
-
【问题10】我公司是一家增值税小规模纳税人,2021年适用3%征收率减按1%征收增值税政策。有一笔纳税义务发生时间在2021年12月1日的收入,已经按照1%征收率开具发票,但由于购买方名称填写错误被购买方拒收,请问是否可以重新开票?
|
|
758
|
-
答:可以。《国家税务总局关于增值税小规模纳税人减免增值税等政策有关征管事项的公告》(国家税务总局公告2023年第1号)第六条规定,小规模纳税人取得应税销售收入,纳税义务发生时间在2022年12月31日前并已开具增值税发票,如发生销售折让、中止或者退回等情形需要开具红字发票,应开具对应征收率红字发票或免税红字发票;开票有误需要重新开具的,应开具对应征收率红字发票或免税红字发票,再重新开具正确的蓝字发票。
|
|
759
|
-
【问题11】我公司是一家住房租赁企业,属于增值税小规模纳税人。请问,小规模纳税人新政策出台后,我公司出租位于省外城市的住房还需要预缴增值税吗?</div></div><div class="sc-links"><span><a href="https://www.chinatax.gov.cn/chinatax/n810356/n3010387/c5237719/content.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-14" data-type="material" data-cite-id="14" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>国新办举行优化完善部分阶段性税费优惠政策国务院政策例行吹风会 图文实录</h4><div class="sc-meta">国务院新闻办公室门户网站 | 2023年03月31日</div><div class="seg-block"><span class="crumb">国新办举行优化完善部分阶段性税费优惠政策国务院政策例行吹风会 图文实录</span><div class="sc-excerpt plain">3月24日国务院常务会议决定延续实施减征小微企业和个体工商户的所得税政策。今年1月,按照国务院部署,财政部已经会同有关部门明确了小规模纳税人增值税的相关优惠政策。今年支持小微企业和个体工商户的政策措施,我们梳理了一下,主要包括以下几项:一是优化完善小微企业和个体工商户的所得税政策。自2023年1月1日至2024年12月31日,对小微企业年应纳税所得额不超过100万元的部分,减按25%计入应纳税所得额,按20%的税率缴纳企业所得税,保持相关优惠政策的衔接协调,同时对个体工商户年应纳税所得额不超过100万元的部分,在现行优惠政策基础上减半征收个人所得税。二是将小规模纳税人的增值税征收率降至1%。三是对月销售额10万元及以下小规模纳税人免征增值税。四是对生产生活性服务业纳税人分别实施5%、10%的增值税加计抵减。以上各项政策,将与现行其他支持小微企业和个体工商户的政策形成合力。
|
|
760
|
-
下一步,我们将按照党中央、国务院决策部署,进一步优化政策实施方式,及时研究解决经营主体反映的突出问题,有效纾解小微企业和个体工商户生产经营的困难,激发市场活力和信心。谢谢。
|
|
761
|
-
2023-03-31 10:19:28
|
|
762
|
-
中国日报记者提问(刘健 摄)
|
|
763
|
-
中国日报记者: 日前,国务院常务会议决定延续和优化实施部分税费优惠政策,我们想问一下税务部门,在政策落实方面有哪些安排和进展?谢谢。
|
|
764
|
-
2023-03-31 10:25:20
|
|
765
|
-
王道树(徐想 摄)
|
|
766
|
-
国家税务总局副局长王道树: 谢谢您的关心。3月24日国务院常务会议研究到期税费优惠政策接续安排,这充分体现了党中央、国务院因时应势的科学谋划和务实高效的工作作风,对激发市场活力、稳定市场预期、提振市场信心具有重要意义。
|
|
767
|
-
前期,税务部门积极会同有关部门深入开展调研,广泛听取企业和专家的意见,认真开展测算,研究提出政策延续和优化完善的建议。在国务院常务会议作出决定之后,税务总局党委高度重视,党委书记、局长王军同志亲自主持召开党委会议,进行抓好落实工作的部署,研究推出“五个迅速”的落实工作行动安排:</div></div><div class="sc-links"><span><a href="http://www.scio.gov.cn/gwyzclxcfh/cfh/49553/49741/tw49743/202305/t20230517_714205.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-15" data-type="material" data-cite-id="15" data-search="本次检索" data-unused="1"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>国新办举行优化完善部分阶段性税费优惠政策例行吹风会</h4><div class="sc-meta">国家税务总局门户网站 | 2023年05月05日</div><div class="seg-block"><span class="crumb">国新办举行优化完善部分阶段性税费优惠政策例行吹风会</span><div class="sc-excerpt plain">正如刚刚我讲到的,当前我国发展面临的不确定、难预料的因素比较多,小微企业和个体工商户仍然面临不少困难。所以面对新形势,我们要综合考虑财政的承受能力和助企纾困的需要,在落实好前期出台政策的基础上,根据实际情况进一步完善税费优惠政策,突出对小微企业、个体工商户的支持,以稳定市场预期、提振市场信心,持续激发市场主体的活力。
|
|
768
|
-
3月24日国务院常务会议决定延续实施减征小微企业和个体工商户的所得税政策。今年1月,按照国务院部署,财政部已经会同有关部门明确了小规模纳税人增值税的相关优惠政策。今年支持小微企业和个体工商户的政策措施,我们梳理了一下,主要包括以下几项:一是优化完善小微企业和个体工商户的所得税政策。自2023年1月1日至2024年12月31日,对小微企业年应纳税所得额不超过100万元的部分,减按25%计入应纳税所得额,按20%的税率缴纳企业所得税,保持相关优惠政策的衔接协调,同时对个体工商户年应纳税所得额不超过100万元的部分,在现行优惠政策基础上减半征收个人所得税。二是将小规模纳税人的增值税征收率降至1%。三是对月销售额10万元及以下小规模纳税人免征增值税。四是对生产生活性服务业纳税人分别实施5%、10%的增值税加计抵减。以上各项政策,将与现行其他支持小微企业和个体工商户的政策形成合力。
|
|
769
|
-
下一步,我们将按照党中央、国务院决策部署,进一步优化政策实施方式,及时研究解决市场主体反映的突出问题,有效纾解小微企业和个体工商户生产经营的困难,激发市场活力和信心。谢谢。
|
|
770
|
-
日前,国务院常务会议决定延续和优化实施部分税费优惠政策,我们想问一下税务部门,在政策落实方面有哪些安排和进展?谢谢。
|
|
771
|
-
王道树(徐想 摄)
|
|
772
|
-
国家税务总局副局长王道树:
|
|
773
|
-
谢谢您的关心。3月24日国务院常务会议研究到期税费优惠政策接续安排,这充分体现了党中央、国务院因时应势的科学谋划和务实高效的工作作风,对激发市场活力、稳定市场预期、提振市场信心具有重要意义。</div></div><div class="sc-links"><span><a href="http://www.chinatax.gov.cn/chinatax/n810219/n810724/c5185995/content.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article></div>
|
|
774
|
-
<div class="lib-empty hide" id="lib-empty">没有符合当前筛选的材料。</div>
|
|
775
|
-
<div class="lib-foot">材料来源:深知可信搜索 · 每条摘录均取自原文原段</div>
|
|
536
|
+
<div class="lib-list" id="lib-list"><article class="scard mat" id="src-1" data-type="material" data-cite-id="1" data-search="杭州市人才购房补贴政策"><div class="sc-head"><span class="sc-id">[1]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>杭州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">杭州市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高800万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/1.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-2" data-type="material" data-cite-id="2" data-search="宁波市人才购房补贴政策"><div class="sc-head"><span class="sc-id">[2]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>宁波市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">宁波市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高600万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/4.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-3" data-type="material" data-cite-id="3" data-search="温州市人才购房补贴政策"><div class="sc-head"><span class="sc-id">[3]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>温州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">温州市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高500万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/7.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-4" data-type="material" data-cite-id="4" data-search="杭州市人才购房补贴政策"><div class="sc-head"><span class="sc-id">[4]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>杭州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">杭州市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高300万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/2.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-5" data-type="material" data-cite-id="5" data-search="宁波市人才购房补贴政策"><div class="sc-head"><span class="sc-id">[5]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>宁波市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">宁波市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高240万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/5.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-6" data-type="material" data-cite-id="6" data-search="温州市人才购房补贴政策"><div class="sc-head"><span class="sc-id">[6]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>温州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">温州市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高200万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/8.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-7" data-type="material" data-cite-id="7" data-search="杭州市人才购房补贴政策"><div class="sc-head"><span class="sc-id">[7]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>杭州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">杭州市对经认定的C类(高级人才)人才,在市内购买首套自住住房的,按人才层级给予最高100万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/3.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-8" data-type="material" data-cite-id="8" data-search="宁波市人才购房补贴政策"><div class="sc-head"><span class="sc-id">[8]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>宁波市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">宁波市对经认定的C类(高级人才)人才,在市内购买首套自住住房的,按人才层级给予最高80万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/6.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard mat" id="src-9" data-type="material" data-cite-id="9" data-search="温州市人才购房补贴政策"><div class="sc-head"><span class="sc-id">[9]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>温州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">温州市对经认定的C类(高级人才)人才,在市内购买首套自住住房的,按人才层级给予最高60万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/9.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article></div>
|
|
537
|
+
<div class="lib-empty hide" id="lib-empty">没有符合当前筛选的来源文章。</div>
|
|
538
|
+
<div class="lib-foot">来源:深知可信搜索 · 每条摘录均取自原文原段</div>
|
|
776
539
|
</section>
|
|
777
|
-
<section class="print-appendix" aria-label="
|
|
778
|
-
为进一步支持小微企业和个体工商户发展,现将延续小规模纳税人增值税减免政策公告如下:
|
|
779
|
-
一、对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。
|
|
780
|
-
二、增值税小规模纳税人适用3%征收率的应税销售收入,减按1%征收率征收增值税;适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。
|
|
781
|
-
三、本公告执行至2027年12月31日。
|
|
782
|
-
特此公告。
|
|
783
|
-
财政部 税务总局 2023年8月1日</div></div><div class="sc-links"><span><a href="https://www.gov.cn/zhengce/zhengceku/202308/content_6896287.htm" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[2]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文链接与知识专库可回看">✓ 已核验</span></div><h4>关于支持小微企业融资有关税收政策的公告</h4><div class="sc-meta">中国政府网门户网站 | 2027年12月31日</div><div class="seg-block"><span class="crumb">关于支持小微企业融资有关税收政策的公告</span><div class="sc-excerpt plain">财政部 税务总局公告2023年第13号
|
|
784
|
-
为继续加大对小微企业的支持力度,推动缓解融资难、融资贵问题,现将有关税收政策公告如下:
|
|
785
|
-
一、对金融机构向小型企业、微型企业及个体工商户发放小额贷款取得的利息收入,免征增值税。金融机构应将相关免税证明材料留存备查,单独核算符合免税条件的小额贷款利息收入,按现行规定向主管税务机关办理纳税申报;未单独核算的,不得免征增值税。
|
|
786
|
-
二、对金融机构与小型企业、微型企业签订的借款合同免征印花税。
|
|
787
|
-
三、本公告所称小型企业、微型企业,是指符合《中小企业划型标准规定》(工信部联企业〔2011〕300号)的小型企业和微型企业。其中,资产总额和从业人员指标均以贷款发放时的实际状态确定;营业收入指标以贷款发放前12个自然月的累计数确定,不满12个自然月的,按照以下公式计算:
|
|
788
|
-
营业收入(年)=企业实际存续期间营业收入/企业实际存续月数×12
|
|
789
|
-
四、本公告所称小额贷款,是指单户授信小于100万元(含本数)的小型企业、微型企业或个体工商户贷款;没有授信额度的,是指单户贷款合同金额且贷款余额在100万元(含本数)以下的贷款。
|
|
790
|
-
五、本公告执行至2027年12月31日。
|
|
791
|
-
特此公告。
|
|
792
|
-
财政部 税务总局 2023年8月2日</div></div><div class="sc-links"><span><a href="https://www.gov.cn/zhengce/zhengceku/202308/content_6896295.htm" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[3]</span><span class="sc-type">材料</span><span class="sc-conf" title="发布日期可信度:高。内容经模型治理入库,标题为模型从原文动态抽取,非规则提取">高可信</span><span class="sc-vk ok" title="摘录可比对,原文链接与知识专库可回看">✓ 已核验</span></div><h4>关于增值税法施行后增值税优惠政策衔接事项的公告</h4><div class="sc-meta">财政部税务总局公告2026年第10号 | 2026年01月01日</div><div class="seg-block"><span class="crumb">关于增值税法施行后增值税优惠政策衔接事项的公告</span><div class="sc-excerpt plain">(三)纳税人发生以下应税交易,可以选择适用简易计税方法,按照规定征收率计算缴纳增值税。
|
|
793
|
-
1.自2026年1月1日起,一般纳税人销售自己使用过的属于增值税法第二十二条规定不得抵扣且未抵扣进项税额的固定资产,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
794
|
-
固定资产,是指使用期限超过12个月的机器、机械、运输工具以及其他与生产经营相关的设备、工具、器具等。
|
|
795
|
-
2.自2026年1月1日起,小规模纳税人(不含自然人)销售自己使用过的固定资产,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
796
|
-
3.自2026年1月1日起,销售旧货,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
797
|
-
旧货,是指进入二次流通的具有部分使用价值的货物(含旧汽车、旧摩托车和旧游艇),但不包括自己使用过的物品。
|
|
798
|
-
4.自2026年1月1日起,个人(不含个体工商户中的一般纳税人)出租住房,按照简易计税方法依照3%征收率减按1.5%计算缴纳增值税。
|
|
799
|
-
5.自2026年1月1日起,《财政部 税务总局 住房城乡建设部关于完善住房租赁有关税收政策的公告》(财政部 税务总局 住房城乡建设部公告2021年第24号)中现行有效的增值税优惠政策。
|
|
800
|
-
6.自2026年1月1日至2027年12月31日,小规模纳税人发生除销售、出租不动产或者转让土地使用权之外的增值税应税交易,依照3%征收率减按1%征收率征收增值税;按规定预缴增值税的项目,当期在预缴地实现的全部价款、预收款(均不含增值税)合计达到增值税起征点的,减按1%预征率预缴增值税。
|
|
801
|
-
7.自2026年1月1日至2027年12月31日,《财政部 税务总局关于延续实施二手车经销有关增值税政策的公告》(财政部 税务总局公告2023年第63号)中现行有效的增值税优惠政策。</div></div><div class="sc-links"><span><a href="http://www.conghua.gov.cn/zwgk/zdlyxxgk/jsjf/grsdsyhzczt/content/post_10897634.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[4]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文链接与知识专库可回看">✓ 已核验</span></div><h4>优惠政策延期、个税征收减半——税费组合拳促进小微企业发展</h4><div class="sc-meta">中国政府网门户网站 | 2027年12月31日</div><div class="seg-block"><span class="crumb">优惠政策延期、个税征收减半——税费组合拳促进小微企业发展</span><div class="sc-excerpt plain">财政部、国家税务总局8月2日联合发布多个公告,明确一系列支持小微企业和个体工商户发展有关税费政策,进一步为经营主体减负担、增动能。
|
|
802
|
-
中央政治局会议要求,要继续实施积极的财政政策和稳健的货币政策,延续、优化、完善并落实好减税降费政策。“此次发布的多数政策是对今年底到期的优惠政策进行延续,一些政策在此前政策基础上进行优化完善,部分政策进一步加大支持力度。”中国财政科学研究院研究员许文表示。
|
|
803
|
-
按照公告,自2023年1月1日至2027年12月31日,对个体工商户年应纳税所得额不超过200万元的部分,减半征收个人所得税。个体工商户在享受现行其他个人所得税优惠政策的基础上,可叠加享受上述优惠政策。
|
|
804
|
-
许文分析,按照上述规定,将个体工商户减半征收个人所得税的年应纳税所得额范围,由不超过100万元提高为不超过200万元,“为进一步支持个体工商户发展,国家提高了政策优惠力度”。
|
|
805
|
-
公告还规定,自2023年1月1日至2027年12月31日,对增值税小规模纳税人、小型微利企业和个体工商户减半征收资源税(不含水资源税)、城市维护建设税、房产税、城镇土地使用税、印花税(不含证券交易印花税)、耕地占用税和教育费附加、地方教育附加。此外,对小型微利企业减按25%计算应纳税所得额,按20%的税率缴纳企业所得税政策,延续执行至2027年12月31日。
|
|
806
|
-
值得关注的是,小规模纳税人减免增值税政策也延续至2027年底。按照规定,对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。增值税小规模纳税人适用3%征收率的应税销售收入,减按1%征收率征收增值税;适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。
|
|
807
|
-
“以小规模纳税人年应税收入为500万元、适用征收率为3%为例,由于减按1%征收率征收增值税,一年可节省10万元增值税,减负效果十分明显。”北京国家会计学院学术委员会主任李旭红分析。</div></div><div class="sc-links"><span><a href="https://www.gov.cn/zhengce/202308/content_6896376.htm" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-conf" title="发布日期可信度:高。内容经模型治理入库,标题为模型从原文动态抽取,非规则提取">高可信</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>财政部税务总局发布:增值税法施行后优惠政策衔接明确——现行有效优惠继续实施,资源综合利用政策(2021年第40号)延续</h4><div class="sc-meta">2026年01月01日</div><div class="seg-block"><span class="crumb">财政部税务总局发布:增值税法施行后优惠政策衔接明确——现行有效优惠继续实施,资源综合利用政策(2021年第40号)延续 <i>›</i> 适用简易计税方法的项目(三)</span><div class="sc-excerpt plain">(三)纳税人发生以下应税交易,可以选择适用简易计税方法,按照规定征收率计算缴纳增值税。
|
|
808
|
-
1.自2026年1月1日起,一般纳税人销售自己使用过的属于增值税法第二十二条规定不得抵扣且未抵扣进项税额的固定资产,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
809
|
-
固定资产,是指使用期限超过12个月的机器、机械、运输工具以及其他与生产经营相关的设备、工具、器具等。
|
|
810
|
-
2.自2026年1月1日起,小规模纳税人(不含自然人)销售自己使用过的固定资产,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
811
|
-
3.自2026年1月1日起,销售旧货,按照简易计税方法依照3%征收率减按2%计算缴纳增值税。
|
|
812
|
-
旧货,是指进入二次流通的具有部分使用价值的货物(含旧汽车、旧摩托车和旧游艇),但不包括自己使用过的物品。
|
|
813
|
-
4.自2026年1月1日起,个人(不含个体工商户中的一般纳税人)出租住房,按照简易计税方法依照3%征收率减按1.5%计算缴纳增值税。
|
|
814
|
-
5.自2026年1月1日起,《财政部 税务总局 住房城乡建设部关于完善住房租赁有关税收政策的公告》(财政部 税务总局 住房城乡建设部公告2021年第24号)中现行有效的增值税优惠政策。
|
|
815
|
-
6.自2026年1月1日至2027年12月31日,小规模纳税人发生除销售、出租不动产或者转让土地使用权之外的增值税应税交易,依照3%征收率减按1%征收率征收增值税;按规定预缴增值税的项目,当期在预缴地实现的全部价款、预收款(均不含增值税)合计达到增值税起征点的,减按1%预征率预缴增值税。
|
|
816
|
-
7.自2026年1月1日至2027年12月31日,《财政部 税务总局关于延续实施二手车经销有关增值税政策的公告》(财政部 税务总局公告2023年第63号)中现行有效的增值税优惠政策。</div></div><div class="sc-links"><span><a href="https://www.crra.org.cn/news/qiye/1541.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>[经济日报] 增值税征管兼顾效率和公平</h4><div class="sc-meta">国家税务总局门户网站 | 2026年02月03日</div><div class="seg-block"><span class="crumb">[经济日报] 增值税征管兼顾效率和公平</span><div class="sc-excerpt plain">按次纳税的主体中,自然人纳税人占绝大多数。为减轻自然人办税负担,《中华人民共和国增值税法实施条例》第四十四条明确,按次纳税的纳税人,销售额达到起征点的,应当自纳税义务发生之日起至次年6月30日前进行申报纳税,在申报纳税期限方面为纳税人预留了较为充足的时间。考虑到自然人流动性强,为便利其申报纳税,减轻按次纳税办税负担,《征管公告》明确自然人发生应税交易达到起征点的,不论是向税务机关申请代开发票,还是由扣缴义务人代扣代缴,均视为办理了申报纳税。
|
|
817
|
-
“从公告规定来看,税务部门尽量减少了自然人需要自行申报纳税的情况。”黄立新表示,如果自然人代开发票、代扣代缴两种方式都未涉及,才适用兜底方式,就其本年度尚未缴纳增值税的应税交易,按照规定向主管税务机关申报纳税,这样就减轻了自然人的办税负担。
|
|
818
|
-
《征管公告》还对小规模纳税人灵活享受减免税优惠进行了明确。《中华人民共和国增值税法》第二十七条明确,“纳税人可以放弃增值税优惠;放弃优惠的,在三十六个月内不得享受该项税收优惠,小规模纳税人除外”。基于上述条款规定,《征管公告》延续了近年来一直执行的征管口径,明确提出,小规模纳税人发生应税交易,销售额未达到起征点标准的,可以选择全部或者部分应税交易放弃免税并开具增值税专用发票。
|
|
819
|
-
国家税务总局货物和劳务税司有关负责人介绍,由于增值税实行“环环征收、道道抵扣”的链条式征扣税机制,小规模纳税人放弃减免税的主要目的,一般是为了满足下游客户索取增值税专用发票用以抵扣进项的需求。根据《征管公告》规定,小规模纳税人可以根据自身经营情况,灵活选择是否就某笔应税交易放弃减免税优惠,单笔放弃享受优惠的,不会影响其他应税交易继续享受优惠。需要提醒的是,小规模纳税人在准确把握政策规定灵活享受减免税优惠的同时,应当做到合规经营,确保长远稳定发展。
|
|
820
|
-
(记者:董碧娟)
|
|
821
|
-
网站纠错
|
|
822
|
-
责任编辑: 曾彪
|
|
823
|
-
[人民日报] 国家税务总局制发公告 明确起征点标准等增值税征管事项
|
|
824
|
-
[人民日报] 国家税务总局发布新出口退税管理办法 申报办理更加便捷高效</div></div><div class="sc-links"><span><a href="http://www.chinatax.gov.cn/chinatax/n810219/n810780/c5247519/content.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>[经济日报] 优化税收环境激发新活力</h4><div class="sc-meta">国家税务总局门户网站 | 2026年01月01日</div><div class="seg-block"><span class="crumb">[经济日报] 优化税收环境激发新活力</span><div class="sc-excerpt plain">近年来,小微企业和个体工商户一直是减税降费的支持重点。2023年,我国延续实施了多项小微企业和个体工商户十分关注的税费优惠政策,大部分政策直接延续到2027年底。比如,对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。对个体工商户年应纳税所得额不超过200万元的部分,减半征收个人所得税。对小型微利企业减按25%计算应纳税所得额,按20%的税率缴纳企业所得税。这些税费政策普惠性强,符合条件的小微企业和个体工商户都可以享受。
|
|
825
|
-
“民营企业以中小企业和个体工商户为主,具有数量多、第三产业居多等特征。这些小微企业抗风险能力普遍较弱。近年来,为帮助中小企业及服务业纾困,我国出台了一揽子税费支持政策,在助力中小民营企业渡过难关并实现持续发展方面发挥了积极作用。”北京国家会计学院副院长李旭红表示。
|
|
826
|
-
在税费优惠等多方面政策助力下,民营经营主体活力不断释放。税收数据显示,2024年民营经济销售收入增速比全国企业平均水平高0.5个百分点。其中,高技术制造业、数字经济核心产业销售收入同比分别增长13%、4.7%,较全国同行业企业分别高1.8个、1.7个百分点。
|
|
827
|
-
强化法治公平
|
|
828
|
-
2024年12月25日,十四届全国人大常委会第十三次会议表决通过了《中华人民共和国增值税法》,自2026年1月1日起施行。我国第一大税种增值税有了专门法律,对于健全有利于高质量发展的增值税制度、规范增值税的征收和缴纳、保护纳税人的合法权益具有重要意义。
|
|
829
|
-
“法治公平是最好的营商环境。目前,我国18个税种中已经有14个完成立法,涉及的税收收入在全部税收收入中所占比重超80%,基本形成了系统完备、科学规范、运行有效的税收法律制度体系。”吉林财经大学税务学院院长张巍表示,税收立法有助于增强税制确定性,让企业稳定预期、提振信心。</div></div><div class="sc-links"><span><a href="http://www.chinatax.gov.cn/chinatax/n810219/n810780/c5238961/content.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>最新的小微企业增值税优惠政策是如何规定的?</h4><div class="sc-meta">国家税务总局门户网站 | 2025年10月30日</div><div class="seg-block"><span class="crumb">最新的小微企业增值税优惠政策是如何规定的?</span><div class="sc-excerpt plain">知识详情
|
|
830
|
-
智能咨询
|
|
831
|
-
关于12366
|
|
832
|
-
首页
|
|
833
|
-
北京市 [切换]
|
|
834
|
-
A-G
|
|
835
|
-
北京市
|
|
836
|
-
安徽省
|
|
837
|
-
福建省
|
|
838
|
-
广东省
|
|
839
|
-
广西壮族自治区
|
|
840
|
-
重庆市
|
|
841
|
-
贵州省
|
|
842
|
-
甘肃省
|
|
843
|
-
大连市
|
|
844
|
-
H-K
|
|
845
|
-
河北省
|
|
846
|
-
吉林省
|
|
847
|
-
黑龙江省
|
|
848
|
-
江苏省
|
|
849
|
-
江西省
|
|
850
|
-
河南省
|
|
851
|
-
湖北省
|
|
852
|
-
湖南省
|
|
853
|
-
海南省
|
|
854
|
-
L-S
|
|
855
|
-
山西省
|
|
856
|
-
内蒙古自治区
|
|
857
|
-
辽宁省
|
|
858
|
-
上海市
|
|
859
|
-
山东省
|
|
860
|
-
四川省
|
|
861
|
-
陕西省
|
|
862
|
-
青海省
|
|
863
|
-
宁夏回族自治区
|
|
864
|
-
宁波市
|
|
865
|
-
青岛市
|
|
866
|
-
深圳市
|
|
867
|
-
T-Z
|
|
868
|
-
天津市
|
|
869
|
-
浙江省
|
|
870
|
-
云南省
|
|
871
|
-
西藏自治区
|
|
872
|
-
新疆维吾尔自治区
|
|
873
|
-
厦门市
|
|
874
|
-
我的收藏
|
|
875
|
-
好友申请
|
|
876
|
-
我的消息
|
|
877
|
-
注册
|
|
878
|
-
登录
|
|
879
|
-
用户名称
|
|
880
|
-
个人中心
|
|
881
|
-
退出
|
|
882
|
-
知识详情
|
|
883
|
-
最新的小微企业增值税优惠政策是如何规定的?
|
|
884
|
-
发布日期:2025-10-30
|
|
885
|
-
打印
|
|
886
|
-
字体:
|
|
887
|
-
大
|
|
888
|
-
中
|
|
889
|
-
小阅读量17798
|
|
890
|
-
根据《关于增值税小规模纳税人减免增值税政策的公告》(财政部 税务总局公告2023年第19号)规定,一、对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。</div></div><div class="seg-block"><span class="crumb">最新的小微企业增值税优惠政策是如何规定的? <i>›</i> 本公告执行至2027年12月31日。</span><div class="sc-excerpt plain">三、本公告执行至2027年12月31日。
|
|
891
|
-
下载
|
|
892
|
-
收藏
|
|
893
|
-
纠错
|
|
894
|
-
纠错
|
|
895
|
-
提交
|
|
896
|
-
0
|
|
897
|
-
相关附件
|
|
898
|
-
相关法规
|
|
899
|
-
问题解答
|
|
900
|
-
办税流程
|
|
901
|
-
你可能关注的
|
|
902
|
-
换一换
|
|
903
|
-
[视频点播]增值税申报表更正及医疗服务、教育服务免征增值税政策
|
|
904
|
-
发布时间:2025-12-10
|
|
905
|
-
[热点问题]纳税人发生跨境应税行为,按照《国家税务总局关于发布〈营业税改征增值税跨境应税行为增值税免税管理办法(试行)〉的公告》(国家税务总局公告2016年第29号)的规定办理免税备案手续后发生的相同跨境应税行为,是否需要重新办理备案手续?
|
|
906
|
-
发布时间:2025-12-09
|
|
907
|
-
[视频点播]社保费基数补差操作指引
|
|
908
|
-
发布时间:2025-12-08
|
|
909
|
-
[视频点播]个转企“一件事”办理指南
|
|
910
|
-
发布时间:2025-12-08
|
|
911
|
-
[视频点播]纳税信用缴费
|
|
912
|
-
发布时间:2025-12-08
|
|
913
|
-
[视频点播]契税优惠政策中的“家庭唯一住房”
|
|
914
|
-
发布时间:2025-12-05
|
|
915
|
-
[视频点播]山东省土地增值税预征率是多少
|
|
916
|
-
发布时间:2025-12-05
|
|
917
|
-
[视频点播]办税一点通高效指南 代开增值税发票
|
|
918
|
-
发布时间:2025-12-05
|
|
919
|
-
版权所有:国家税务总局 网站标识码:bm29000002
|
|
920
|
-
京ICP备13021685号-2
|
|
921
|
-
京公网安备 11040102700073号
|
|
922
|
-
主办单位:国家税务总局 地址:北京市西城区枣林前街68号 |
|
|
923
|
-
联系我们
|
|
924
|
-
建议您使用IE9及以上版本、Edge、Chrome、Firefox和360等主流浏览器浏览本网站
|
|
925
|
-
X
|
|
926
|
-
您即将离开12366纳税服务平台网站,
|
|
927
|
-
是否继续?
|
|
928
|
-
继续访问 放弃
|
|
929
|
-
X
|
|
930
|
-
分享到 - 微信</div></div><div class="sc-links"><span><a href="https://12366.chinatax.gov.cn/sscx/detail?code=0000000002019012200002&flag=2&tslx=2" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-conf" title="发布日期可信度:高。内容经模型治理入库,标题为模型从原文动态抽取,非规则提取">高可信</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>支持小微企业和个体工商户发展税费优惠政策指引(2.0)</h4><div class="sc-meta">2023年12月21日</div><div class="seg-block"><span class="crumb">支持小微企业和个体工商户发展税费优惠政策指引(2.0) <i>›</i> 第三十七条</span><div class="sc-excerpt plain">【政策案例】
|
|
931
|
-
某教授在外单位授课获取酬劳,8月5日到办税服务厅代开征收率为1%的增值税普通发票。如代开发票金额为400元,未超过500元的起征点,则可免征增值税;如代开发票金额为800元,超过500元的起征点,则需按照800元全额缴纳增值税8元(=800*1%)。
|
|
932
|
-
2.增值税小规模纳税人月销售额10万元以下免征增值税政策
|
|
933
|
-
【享受主体】
|
|
934
|
-
增值税小规模纳税人
|
|
935
|
-
【优惠内容】
|
|
936
|
-
自2023年1月1日至2027年12月31日,对月销售额10万元以下(含本数)的增值税小规模纳税人免征增值税。
|
|
937
|
-
【享受条件】
|
|
938
|
-
1.适用于按期纳税的增值税小规模纳税人。
|
|
939
|
-
2.小规模纳税人以1个月为1个纳税期的,月销售额未超过10万元;小规模纳税人以1个季度为1个纳税期的,季度销售额未超过30万元,可以享受免征增值税政策。
|
|
940
|
-
3.小规模纳税人发生增值税应税销售行为,合计月销售额超过10万元,但扣除本期发生的销售不动产的销售额后未超过10万元的,其销售货物、劳务、服务、无形资产取得的销售额免征增值税。
|
|
941
|
-
4.适用增值税差额征税政策的小规模纳税人,以差额后的销售额确定是否可以享受上述免征增值税政策。
|
|
942
|
-
5.其他个人采取一次性收取租金形式出租不动产取得的租金收入,可在对应的租赁期内平均分摊,分摊后的月租金收入未超过10万元的,免征增值税。
|
|
943
|
-
6.按固定期限纳税的小规模纳税人可以选择以1个月或1个季度为纳税期限,一经选择,一个会计年度内不得变更。
|
|
944
|
-
【享受方式】</div></div><div class="seg-block"><span class="crumb">支持小微企业和个体工商户发展税费优惠政策指引(2.0)</span><div class="sc-excerpt plain">二
|
|
945
|
-
、推动普惠金融发展
|
|
946
|
-
13.金融机构小微企业及个体工商户1000万元及以下小额贷款利息收入免征增值税政策
|
|
947
|
-
【享受主体】
|
|
948
|
-
向小型企业、微型企业及个体工商户发放小额贷款的金融机构
|
|
949
|
-
【优惠内容】
|
|
950
|
-
2027年12月31日前,对金融机构向小型企业、微型企业和个体工商户发放小额贷款取得的利息收入,免征增值税。金融机构可以选择以下两种方法之一适用免税:
|
|
951
|
-
(1)对金融机构向小型企业、微型企业和个体工商户发放的,利率水平不高于全国银行间同业拆借中心公布的贷款市场报价利率(LPR)150%(含本数)的单笔小额贷款取得的利息收入,免征增值税;高于全国银行间同业拆借中心公布的贷款市场报价利率(LPR)150%的单笔小额贷款取得的利息收入,按照现行政策规定缴纳增值税。
|
|
952
|
-
(2)对金融机构向小型企业、微型企业和个体工商户发放单笔小额贷款取得的利息收入中,不高于该笔贷款按照全国银行间同业拆借中心公布的贷款市场报价利率(LPR)150%(含本数)计算的利息收入部分,免征增值税;超过部分按照现行政策规定缴纳增值税。
|
|
953
|
-
金融机构可按会计年度在以上两种方法之间选定其一作为该年的免税适用方法,一经选定,该会计年度内不得变更。
|
|
954
|
-
【享受条件】
|
|
955
|
-
1.小型企业、微型企业,是指符合《中小企业划型标准规定》(工信部联企业〔2011〕300号)的小型企业和微型企业。其中,资产总额和从业人员指标均以贷款发放时的实际状态确定,营业收入指标以贷款发放前12个自然月的累计数确定,不满12个自然月的,按照以下公式计算:
|
|
956
|
-
营业收入(年)=企业实际存续期间营业收入/企业实际存续月数×12</div></div><div class="sc-links"><span><a href="http://zc.gjzwfw.gov.cn/art/2023/12/22/art_14_71595.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-conf" title="发布日期可信度:高。内容经模型治理入库,标题为模型从原文动态抽取,非规则提取">高可信</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>增值税小规模纳税人增值税优惠政策</h4><div class="sc-meta">2023年01月01日</div><div class="seg-block"><span class="crumb">增值税小规模纳税人增值税优惠政策 <i>›</i> 表格</span><div class="sc-excerpt rich"><table>
|
|
957
|
-
<tbody>
|
|
958
|
-
<tr>
|
|
959
|
-
<td>政策依据</td>
|
|
960
|
-
<td>1.《财政部税务总局关于增值税小规模纳税人减免增值税政策的公告》(财政部税务总局公告2023年第19号); 2.《国家税务总局关于增值税小规模纳税人减免增值税等政策有关征管事项的公告》(国家税务总局公告2023年第1号)。</td>
|
|
961
|
-
</tr>
|
|
962
|
-
<tr>
|
|
963
|
-
<td>政策内容</td>
|
|
964
|
-
<td>1.自2023年1月1日至2027年12月31日,对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税。 3%征收率的应税销售收入,减按1%征收率征收增值税;适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。</td>
|
|
965
|
-
</tr>
|
|
966
|
-
<tr>
|
|
967
|
-
<td>适用对象</td>
|
|
968
|
-
</tr>
|
|
969
|
-
<tr>
|
|
970
|
-
<td>适用时间</td>
|
|
971
|
-
<td>1.随增值税纳税申报; 2.2023年1月1日起实施,有效期至2027年12月31日。</td>
|
|
972
|
-
</tr>
|
|
973
|
-
<tr>
|
|
974
|
-
<td>咨询电话</td>
|
|
975
|
-
<td>纳税人主管税务机关0472-8012366,0472-8917188</td>
|
|
976
|
-
</tr>
|
|
977
|
-
<tr>
|
|
978
|
-
<td>申请条件</td>
|
|
979
|
-
<td>1.增值税小规模纳税人(以下简称小规模纳税人)发生增值税应税销售行为,合计月销售额未超过10万元(以1个季度为1个纳税期的,季度销售额未超过30万元)的,免征增值税。 2.小规模纳税人发生增值税应税销售行为,合计月销售额超过10万元,但扣除本期发生的销售不动产的销售额后未超过10万元的,其销售货物、劳务、服务、无形资产取得的销售额免征增值税 3.按照现行规定应当预缴增值税税款的小规模纳税人,凡在预缴地实现的月销售额未超过10万元的,当期无需预缴税款。在预缴地实现的月销售额超过10万元的,适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。</td>
|
|
980
|
-
</tr>
|
|
981
|
-
<tr>
|
|
982
|
-
<td>申请材料</td>
|
|
983
|
-
</tr>
|
|
984
|
-
</tbody>
|
|
985
|
-
</table></div></div><div class="sc-links"><span><a href="http://www.tmtyq.gov.cn/zfxxgk/fdzdgknr/zdlyxxgk/zqsk/zqsk_jsjf/202510/t20251014_678346.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-conf" title="发布日期可信度:高。内容经模型治理入库,标题为模型从原文动态抽取,非规则提取">高可信</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>关于《国家税务总局关于资源回收企业向自然人报废产品出售者“反向开票”有关事项的公告》的解读</h4><div class="sc-meta">2024年04月25日</div><div class="seg-block"><span class="crumb">关于《国家税务总局关于资源回收企业向自然人报废产品出售者“反向开票”有关事项的公告》的解读 <i>›</i> 八、 出售者可享受的增值税优惠 <i>›</i> 出售者可享受的增值税优惠政策</span><div class="sc-excerpt plain">答:出售者通过“反向开票”销售报废产品,可按规定享受小规模纳税人月销售额10万元以下免征增值税和3%征收率减按1%计算缴纳增值税等税费优惠政策。后续如小规模纳税人相关税费优惠政策调整,按照调整后的政策执行。</div></div><div class="sc-links"><span><a href="https://fgk.chinatax.gov.cn/zcfgk/c100015/c5225083/content.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>支持小微企业和个体工商户发展 多项税收优惠政策延续优化至2027年底</h4><div class="sc-meta">中国政府网门户网站 | 2023年08月04日</div><div class="seg-block"><span class="crumb">支持小微企业和个体工商户发展 多项税收优惠政策延续优化至2027年底</span><div class="sc-excerpt plain">财政部、国家税务总局日前联合发布一系列公告,明确多项支持小微企业和个体工商户发展的税费政策,为经营主体减负担、增动能,促进重点群体创业就业。
|
|
986
|
-
为继续减轻小微企业和个体工商户税费负担,公告明确,2027年底前,对个体工商户年应纳税所得额不超过200万元的部分,减半征收个人所得税;对增值税小规模纳税人、小型微利企业和个体工商户减半征收资源税(不含水资源税)、城市维护建设税、房产税、城镇土地使用税、印花税(不含证券交易印花税)、耕地占用税和教育费附加、地方教育附加;对小型微利企业减按25%计算应纳税所得额,按20%的税率缴纳企业所得税。与此同时,小规模纳税人减免增值税政策也延续至2027年底,即对月销售额10万元以下(含本数)的增值税小规模纳税人,免征增值税;增值税小规模纳税人适用3%征收率的应税销售收入,减按1%征收率征收增值税;适用3%预征率的预缴增值税项目,减按1%预征率预缴增值税。
|
|
987
|
-
为继续推动缓解小微企业和个体工商户融资难、融资贵问题,公告明确,2027年底前,对金融机构向小型企业、微型企业及个体工商户发放小额贷款取得的利息收入,免征增值税。对金融机构与小型企业、微型企业签订的借款合同免征印花税。纳税人为农户、小型企业、微型企业及个体工商户借款、发行债券提供融资担保取得的担保费收入,以及为上述融资担保提供再担保取得的再担保费收入,免征增值税。</div></div><div class="sc-links"><span><a href="https://www.gov.cn/zhengce/202308/content_6896550.htm" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>学习收藏!按季申报小规模纳税人享受减免增值税政策等14问</h4><div class="sc-meta">国家税务总局门户网站 | 2025年01月07日</div><div class="seg-block"><span class="crumb">学习收藏!按季申报小规模纳税人享受减免增值税政策等14问</span><div class="sc-excerpt plain">答:《财政部 税务总局关于增值税小规模纳税人减免增值税政策的公告》(2023年第19号)第二条规定,增值税小规模纳税人适用3%征收率的应税销售收入,减按1%征收率征收增值税。根据上述规定,您可以享受3%征收率销售收入减按1%征收增值税政策。但由于您开具的3%征收率的机动车销售统一发票,具有抵扣功能,您的客户如为一般纳税人,可以凭您开具的3%征收率的机动车销售统一发票,抵扣对应的进项税额。因此,您需要追回已开具的3%征收率的机动车销售统一发票,重新开具1%征收率的机动车销售统一发票,方能享受减税政策。如无法追回,则需要按照3%征收率计算缴纳增值税。今后您要享受3%征收率销售收入减按1%征收增值税政策时,如需开具机动车销售统一发票,注意应按照1%征收率开具。
|
|
988
|
-
【问题10】我公司是一家增值税小规模纳税人,2021年适用3%征收率减按1%征收增值税政策。有一笔纳税义务发生时间在2021年12月1日的收入,已经按照1%征收率开具发票,但由于购买方名称填写错误被购买方拒收,请问是否可以重新开票?
|
|
989
|
-
答:可以。《国家税务总局关于增值税小规模纳税人减免增值税等政策有关征管事项的公告》(国家税务总局公告2023年第1号)第六条规定,小规模纳税人取得应税销售收入,纳税义务发生时间在2022年12月31日前并已开具增值税发票,如发生销售折让、中止或者退回等情形需要开具红字发票,应开具对应征收率红字发票或免税红字发票;开票有误需要重新开具的,应开具对应征收率红字发票或免税红字发票,再重新开具正确的蓝字发票。
|
|
990
|
-
【问题11】我公司是一家住房租赁企业,属于增值税小规模纳税人。请问,小规模纳税人新政策出台后,我公司出租位于省外城市的住房还需要预缴增值税吗?</div></div><div class="sc-links"><span><a href="https://www.chinatax.gov.cn/chinatax/n810356/n3010387/c5237719/content.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>国新办举行优化完善部分阶段性税费优惠政策国务院政策例行吹风会 图文实录</h4><div class="sc-meta">国务院新闻办公室门户网站 | 2023年03月31日</div><div class="seg-block"><span class="crumb">国新办举行优化完善部分阶段性税费优惠政策国务院政策例行吹风会 图文实录</span><div class="sc-excerpt plain">3月24日国务院常务会议决定延续实施减征小微企业和个体工商户的所得税政策。今年1月,按照国务院部署,财政部已经会同有关部门明确了小规模纳税人增值税的相关优惠政策。今年支持小微企业和个体工商户的政策措施,我们梳理了一下,主要包括以下几项:一是优化完善小微企业和个体工商户的所得税政策。自2023年1月1日至2024年12月31日,对小微企业年应纳税所得额不超过100万元的部分,减按25%计入应纳税所得额,按20%的税率缴纳企业所得税,保持相关优惠政策的衔接协调,同时对个体工商户年应纳税所得额不超过100万元的部分,在现行优惠政策基础上减半征收个人所得税。二是将小规模纳税人的增值税征收率降至1%。三是对月销售额10万元及以下小规模纳税人免征增值税。四是对生产生活性服务业纳税人分别实施5%、10%的增值税加计抵减。以上各项政策,将与现行其他支持小微企业和个体工商户的政策形成合力。
|
|
991
|
-
下一步,我们将按照党中央、国务院决策部署,进一步优化政策实施方式,及时研究解决经营主体反映的突出问题,有效纾解小微企业和个体工商户生产经营的困难,激发市场活力和信心。谢谢。
|
|
992
|
-
2023-03-31 10:19:28
|
|
993
|
-
中国日报记者提问(刘健 摄)
|
|
994
|
-
中国日报记者: 日前,国务院常务会议决定延续和优化实施部分税费优惠政策,我们想问一下税务部门,在政策落实方面有哪些安排和进展?谢谢。
|
|
995
|
-
2023-03-31 10:25:20
|
|
996
|
-
王道树(徐想 摄)
|
|
997
|
-
国家税务总局副局长王道树: 谢谢您的关心。3月24日国务院常务会议研究到期税费优惠政策接续安排,这充分体现了党中央、国务院因时应势的科学谋划和务实高效的工作作风,对激发市场活力、稳定市场预期、提振市场信心具有重要意义。
|
|
998
|
-
前期,税务部门积极会同有关部门深入开展调研,广泛听取企业和专家的意见,认真开展测算,研究提出政策延续和优化完善的建议。在国务院常务会议作出决定之后,税务总局党委高度重视,党委书记、局长王军同志亲自主持召开党委会议,进行抓好落实工作的部署,研究推出“五个迅速”的落实工作行动安排:</div></div><div class="sc-links"><span><a href="http://www.scio.gov.cn/gwyzclxcfh/cfh/49553/49741/tw49743/202305/t20230517_714205.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-unused">未引用</span><span class="sc-type">材料</span><span class="sc-vk" style="color:var(--muted)">可查看全文</span></div><h4>国新办举行优化完善部分阶段性税费优惠政策例行吹风会</h4><div class="sc-meta">国家税务总局门户网站 | 2023年05月05日</div><div class="seg-block"><span class="crumb">国新办举行优化完善部分阶段性税费优惠政策例行吹风会</span><div class="sc-excerpt plain">正如刚刚我讲到的,当前我国发展面临的不确定、难预料的因素比较多,小微企业和个体工商户仍然面临不少困难。所以面对新形势,我们要综合考虑财政的承受能力和助企纾困的需要,在落实好前期出台政策的基础上,根据实际情况进一步完善税费优惠政策,突出对小微企业、个体工商户的支持,以稳定市场预期、提振市场信心,持续激发市场主体的活力。
|
|
999
|
-
3月24日国务院常务会议决定延续实施减征小微企业和个体工商户的所得税政策。今年1月,按照国务院部署,财政部已经会同有关部门明确了小规模纳税人增值税的相关优惠政策。今年支持小微企业和个体工商户的政策措施,我们梳理了一下,主要包括以下几项:一是优化完善小微企业和个体工商户的所得税政策。自2023年1月1日至2024年12月31日,对小微企业年应纳税所得额不超过100万元的部分,减按25%计入应纳税所得额,按20%的税率缴纳企业所得税,保持相关优惠政策的衔接协调,同时对个体工商户年应纳税所得额不超过100万元的部分,在现行优惠政策基础上减半征收个人所得税。二是将小规模纳税人的增值税征收率降至1%。三是对月销售额10万元及以下小规模纳税人免征增值税。四是对生产生活性服务业纳税人分别实施5%、10%的增值税加计抵减。以上各项政策,将与现行其他支持小微企业和个体工商户的政策形成合力。
|
|
1000
|
-
下一步,我们将按照党中央、国务院决策部署,进一步优化政策实施方式,及时研究解决市场主体反映的突出问题,有效纾解小微企业和个体工商户生产经营的困难,激发市场活力和信心。谢谢。
|
|
1001
|
-
日前,国务院常务会议决定延续和优化实施部分税费优惠政策,我们想问一下税务部门,在政策落实方面有哪些安排和进展?谢谢。
|
|
1002
|
-
王道树(徐想 摄)
|
|
1003
|
-
国家税务总局副局长王道树:
|
|
1004
|
-
谢谢您的关心。3月24日国务院常务会议研究到期税费优惠政策接续安排,这充分体现了党中央、国务院因时应势的科学谋划和务实高效的工作作风,对激发市场活力、稳定市场预期、提振市场信心具有重要意义。</div></div><div class="sc-links"><span><a href="http://www.chinatax.gov.cn/chinatax/n810219/n810724/c5185995/content.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article></section>
|
|
540
|
+
<section class="print-appendix" aria-label="来源文章附录(打印归档)"><h3>来源文章(全 9 篇)</h3><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[1]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>杭州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">杭州市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高800万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/1.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[2]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>宁波市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">宁波市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高600万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/4.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[3]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>温州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">温州市对经认定的A类(顶尖人才)人才,在市内购买首套自住住房的,按人才层级给予最高500万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/7.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[4]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>杭州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">杭州市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高300万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/2.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[5]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>宁波市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">宁波市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高240万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/5.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[6]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>温州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">温州市对经认定的B类(领军人才)人才,在市内购买首套自住住房的,按人才层级给予最高200万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/8.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[7]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>杭州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">杭州市对经认定的C类(高级人才)人才,在市内购买首套自住住房的,按人才层级给予最高100万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/3.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[8]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>宁波市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">宁波市对经认定的C类(高级人才)人才,在市内购买首套自住住房的,按人才层级给予最高80万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/6.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article><article class="scard print-only mat"><div class="sc-head"><span class="sc-id">[9]</span><span class="sc-type">材料</span><span class="sc-vk ok" title="摘录可比对,原文或存档快照可回看">✓ 已核验</span></div><h4>温州市人才购房补贴实施细则(示例标题)</h4><div class="sc-meta">2025-06-30</div><div class="seg-block"><div class="sc-excerpt plain">温州市对经认定的C类(高级人才)人才,在市内购买首套自住住房的,按人才层级给予最高60万元购房补贴,分三年按 40%/30%/30% 拨付。</div></div><div class="seg-block"><div class="sc-excerpt plain">申请须同时满足:与本市用人单位签订 3 年以上劳动合同、在当地连续缴纳社保满 6 个月、本人及配偶在市内无自有住房。</div></div><div class="sc-links"><span><a href="https://www.example.gov.cn/sample/9.html" target="_blank" rel="noopener">查看全文 ↗</a></span></div></article></section>
|
|
1005
541
|
</div>
|
|
1006
542
|
|
|
1007
543
|
|
|
1008
544
|
|
|
1009
545
|
<div class="ev-panel" id="ev-pop" hidden></div>
|
|
1010
546
|
<div class="sheet-mask" aria-hidden="true"></div>
|
|
1011
|
-
<div class="sheet" role="dialog" aria-label="
|
|
547
|
+
<div class="sheet" role="dialog" aria-label="来源文章">
|
|
1012
548
|
<div class="sheet-grab"></div>
|
|
1013
549
|
<div class="sheet-head"><b>依据对照</b><button class="sheet-close" type="button">收起</button></div>
|
|
1014
550
|
<div class="sheet-body"></div>
|
|
@@ -1056,7 +592,7 @@ X
|
|
|
1056
592
|
var on = document.body.classList.toggle("reading");
|
|
1057
593
|
readBtn.setAttribute("aria-pressed", on ? "true" : "false");
|
|
1058
594
|
readBtn.textContent = on ? "显示核验" : "只看正文";
|
|
1059
|
-
/*
|
|
595
|
+
/* 只看正文只作用于核验报告视图:正在知识专库时切回报告,专库不受影响 */
|
|
1060
596
|
if (on && app && app.getAttribute("data-view") !== "report") setView("report");
|
|
1061
597
|
});
|
|
1062
598
|
}
|
|
@@ -1211,7 +747,7 @@ X
|
|
|
1211
747
|
name.addEventListener("click", function () { toggleJb(name.closest(".jb")); });
|
|
1212
748
|
});
|
|
1213
749
|
|
|
1214
|
-
/* 引文条目点击 →
|
|
750
|
+
/* 引文条目点击 → 知识专库定位对应卡:库内导航看完整材料;
|
|
1215
751
|
外部原文跳转只保留 jb-head 的"查看全文"按钮,动线分离 */
|
|
1216
752
|
function jumpToLibrary(id) {
|
|
1217
753
|
var card = byId[id];
|
|
@@ -1257,7 +793,7 @@ X
|
|
|
1257
793
|
});
|
|
1258
794
|
});
|
|
1259
795
|
|
|
1260
|
-
/* ===== 7.
|
|
796
|
+
/* ===== 7. 知识专库:tabs + 搜索 + 热词 ===== */
|
|
1261
797
|
var cond = "";
|
|
1262
798
|
var kw = "";
|
|
1263
799
|
function applyFilter() {
|
|
@@ -1314,7 +850,13 @@ X
|
|
|
1314
850
|
a.addEventListener("click", function (e) {
|
|
1315
851
|
e.preventDefault();
|
|
1316
852
|
var target = document.querySelector(a.getAttribute("href"));
|
|
1317
|
-
if (target)
|
|
853
|
+
if (!target) return;
|
|
854
|
+
/* 手动定位而非 scrollIntoView({block:"start"}):后者把标题顶到视口 y=0,
|
|
855
|
+
会被 sticky 顶栏盖住。偏移量与目录吸顶位置同一基准(顶栏高 + 20px)。 */
|
|
856
|
+
var bar = document.querySelector(".topbar");
|
|
857
|
+
var offset = (bar ? bar.offsetHeight : 0) + 20;
|
|
858
|
+
var y = target.getBoundingClientRect().top + window.scrollY - offset;
|
|
859
|
+
window.scrollTo({ top: Math.max(0, y), behavior: "smooth" });
|
|
1318
860
|
});
|
|
1319
861
|
});
|
|
1320
862
|
function spy() {
|
|
@@ -1324,9 +866,75 @@ X
|
|
|
1324
866
|
links.forEach(function (a, i) { a.classList.toggle("on", i === current); });
|
|
1325
867
|
}
|
|
1326
868
|
window.addEventListener("scroll", spy, { passive: true });
|
|
869
|
+
|
|
870
|
+
/* 目录纵向定位(2026-09-29,对齐公文 3.7.6):此前 CSS 写死 top:120px,目录顶部与页头
|
|
871
|
+
齐平、离正文很远。改为——直接跟随正文首节,只保留"不低于顶栏下方"的下限;首屏看不到
|
|
872
|
+
目录属正常,向下滚动后自然吸附在顶栏下方。目录过长由 CSS max-height:60vh+overflow:auto
|
|
873
|
+
内部滚动兜底。 */
|
|
874
|
+
var topbar = document.querySelector(".topbar");
|
|
875
|
+
function placeToc() {
|
|
876
|
+
var first = secs[0];
|
|
877
|
+
if (!first) return;
|
|
878
|
+
var stick = (topbar ? topbar.offsetHeight : 0) + 20;
|
|
879
|
+
var want = Math.round(first.getBoundingClientRect().top);
|
|
880
|
+
toc.style.top = Math.max(stick, want) + "px";
|
|
881
|
+
}
|
|
882
|
+
window.addEventListener("scroll", placeToc, { passive: true });
|
|
883
|
+
window.addEventListener("resize", placeToc);
|
|
884
|
+
placeToc();
|
|
1327
885
|
spy();
|
|
1328
886
|
}
|
|
1329
887
|
})();
|
|
1330
888
|
</script>
|
|
889
|
+
<script>(()=>{var x1=Object.defineProperty;var Me=(r,t)=>{for(var e in t)x1(r,e,{get:t[e],enumerable:!0})};var sf={};Me(sf,{Axis:()=>af,ChartView:()=>Ft,ComponentModel:()=>ht,ComponentView:()=>Ot,List:()=>Ga,Model:()=>gt,PRIORITY:()=>zp,SeriesModel:()=>Jt,color:()=>rl,connect:()=>DM,dataTool:()=>OM,dependencies:()=>lM,disConnect:()=>AM,disconnect:()=>hx,dispose:()=>MM,env:()=>X,extendChartView:()=>ZE,extendComponentModel:()=>YE,extendComponentView:()=>XE,extendSeriesModel:()=>qE,format:()=>xv,getCoordinateSystemDimensions:()=>LM,getInstanceByDom:()=>Fp,getInstanceById:()=>EM,getMap:()=>IM,graphic:()=>_v,helper:()=>hv,init:()=>CM,innerDrawElementOnCanvas:()=>Ua,matrix:()=>Nr,number:()=>gv,parseGeoJSON:()=>nf,parseGeoJson:()=>nf,registerAction:()=>yi,registerCoordinateSystem:()=>Wp,registerLayout:()=>Yp,registerLoading:()=>Vu,registerLocale:()=>Kl,registerMap:()=>qp,registerPostInit:()=>Gp,registerPostUpdate:()=>Hp,registerPreprocessor:()=>Uu,registerProcessor:()=>Fu,registerTheme:()=>Vp,registerTransform:()=>Zp,registerUpdateLifecycle:()=>cs,registerVisual:()=>qr,setCanvasCreator:()=>PM,setPlatformAPI:()=>Os,throttle:()=>Rn,time:()=>yv,use:()=>de,util:()=>Sv,vector:()=>nr,version:()=>sM,zrUtil:()=>Q,zrender:()=>pl});var Pf=function(r,t){return Pf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Pf(r,t)};function P(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pf(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var pl={};Me(pl,{dispose:()=>rT,disposeAll:()=>iT,getElementSSRData:()=>aT,getInstance:()=>nT,init:()=>cl,registerPainter:()=>Dh,registerSSRDataGetter:()=>Ah,version:()=>oT});var S1=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),b1=(function(){function r(){this.browser=new S1,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),Pi=new b1;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Pi.wxa=!0,Pi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Pi.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Pi.node=!0,Pi.svgSupported=!0):w1(navigator.userAgent,Pi);function w1(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var X=Pi;var Q={};Me(Q,{HashMap:()=>Ad,RADIAN_TO_DEGREE:()=>ks,assert:()=>Wt,bind:()=>lt,clone:()=>$,concatArray:()=>kf,createCanvas:()=>N1,createHashMap:()=>Y,createObject:()=>Pr,curry:()=>pt,defaults:()=>q,disableUserSelect:()=>to,each:()=>w,eqNaN:()=>Ri,extend:()=>R,filter:()=>wt,find:()=>k1,guid:()=>ja,hasOwn:()=>Ue,indexOf:()=>it,inherits:()=>Qa,isArray:()=>N,isArrayLike:()=>Lt,isBuiltInObject:()=>If,isDom:()=>Ii,isFunction:()=>G,isGradientObject:()=>Lr,isImagePatternObject:()=>Nf,isNumber:()=>rt,isObject:()=>V,isPrimitive:()=>Xn,isRegExp:()=>B1,isString:()=>z,isStringSafe:()=>Zn,isTypedArray:()=>At,keys:()=>st,logError:()=>Oi,map:()=>U,merge:()=>at,mergeAll:()=>R1,mixin:()=>Ht,noop:()=>Rt,normalizeCssArray:()=>Ja,reduce:()=>ee,retrieve:()=>Qr,retrieve2:()=>K,retrieve3:()=>vr,setAsPrimitive:()=>Ni,slice:()=>$a,trim:()=>Yt});var Is=12,T1="sans-serif",ir=Is+"px "+T1,C1=20,D1=100,A1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function M1(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-C1)/D1;t[i]=n}return t}var E1=M1(A1),le={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=le.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||ir),r.measureText(e);e=e||"",i=i||ir;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Is,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=E1[e[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}};function Os(r){for(var t in le)r[t]&&(le[t]=r[t])}var wd=ee(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Td=ee(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),qn=Object.prototype.toString,Ns=Array.prototype,L1=Ns.forEach,P1=Ns.filter,Of=Ns.slice,I1=Ns.map,bd=function(){}.constructor,Rs=bd?bd.prototype:null,Rf="__proto__",O1=2311;function ja(){return O1++}function Oi(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function $(r){if(r==null||typeof r!="object")return r;var t=r,e=qn.call(r);if(e==="[object Array]"){if(!Xn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=$(r[i])}}else if(Td[e]){if(!Xn(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!wd[e]&&!Xn(r)&&!Ii(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Rf&&(t[o]=$(r[o]))}return t}function at(r,t,e){if(!V(t)||!V(r))return e?$(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==Rf){var n=r[i],a=t[i];V(a)&&V(n)&&!N(a)&&!N(n)&&!Ii(a)&&!Ii(n)&&!If(a)&&!If(n)&&!Xn(a)&&!Xn(n)?at(n,a,e):(e||!(i in r))&&(r[i]=$(t[i]))}return r}function R1(r,t){for(var e=r[0],i=1,n=r.length;i<n;i++)e=at(e,r[i],t);return e}function R(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Rf&&(r[e]=t[e]);return r}function q(r,t,e){for(var i=st(t),n=0;n<i.length;n++){var a=i[n];(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}return r}var N1=le.createCanvas;function it(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function Qa(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Ht(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else q(r,t,e)}function Lt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function w(r,t,e){if(r&&t)if(r.forEach&&r.forEach===L1)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function U(r,t,e){if(!r)return[];if(!t)return $a(r);if(r.map&&r.map===I1)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function ee(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function wt(r,t,e){if(!r)return[];if(!t)return $a(r);if(r.filter&&r.filter===P1)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function k1(r,t,e){if(r&&t){for(var i=0,n=r.length;i<n;i++)if(t.call(e,r[i],i,r))return r[i]}}function st(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function z1(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(Of.call(arguments)))}}var lt=Rs&&G(Rs.bind)?Rs.call.bind(Rs.bind):z1;function pt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Of.call(arguments)))}}function N(r){return Array.isArray?Array.isArray(r):qn.call(r)==="[object Array]"}function G(r){return typeof r=="function"}function z(r){return typeof r=="string"}function Zn(r){return qn.call(r)==="[object String]"}function rt(r){return typeof r=="number"}function V(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function If(r){return!!wd[qn.call(r)]}function At(r){return!!Td[qn.call(r)]}function Ii(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Lr(r){return r.colorStops!=null}function Nf(r){return r.image!=null}function B1(r){return qn.call(r)==="[object RegExp]"}function Ri(r){return r!==r}function Qr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function K(r,t){return r??t}function vr(r,t,e){return r??t??e}function $a(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Of.apply(r,t)}function Ja(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Wt(r,t){if(!r)throw new Error(t)}function Yt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Cd="__ec_primitive__";function Ni(r){r[Cd]=!0}function Xn(r){return r[Cd]}var U1=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return st(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),Dd=typeof Map=="function";function F1(){return Dd?new Map:new U1}var Ad=(function(){function r(t){var e=N(t);this.data=F1();var i=this;t instanceof r?t.each(n):t&&w(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return Dd?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Y(r){return new Ad(r)}function kf(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function Pr(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&R(e,t),e}function to(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ue(r,t){return r.hasOwnProperty(t)}function Rt(){}var ks=180/Math.PI;var nr={};Me(nr,{add:()=>zs,applyTransform:()=>Pt,clone:()=>zf,copy:()=>V1,create:()=>Ir,dist:()=>Kn,distSquare:()=>$r,distance:()=>ro,distanceSquare:()=>Md,div:()=>q1,dot:()=>Z1,len:()=>Uf,lenSquare:()=>Ff,length:()=>W1,lengthSquare:()=>Y1,lerp:()=>io,max:()=>Ve,min:()=>Fe,mul:()=>X1,negate:()=>K1,normalize:()=>Vf,scale:()=>eo,scaleAndAdd:()=>H1,set:()=>G1,sub:()=>Bf});function Ir(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function V1(r,t){return r[0]=t[0],r[1]=t[1],r}function zf(r){return[r[0],r[1]]}function G1(r,t,e){return r[0]=t,r[1]=e,r}function zs(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function H1(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function Bf(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Uf(r){return Math.sqrt(Ff(r))}var W1=Uf;function Ff(r){return r[0]*r[0]+r[1]*r[1]}var Y1=Ff;function X1(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function q1(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function Z1(r,t){return r[0]*t[0]+r[1]*t[1]}function eo(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Vf(r,t){var e=Uf(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function ro(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Kn=ro;function Md(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var $r=Md;function K1(r,t){return r[0]=-t[0],r[1]=-t[1],r}function io(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function Pt(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Fe(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Ve(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var jn=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),j1=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new jn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new jn(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new jn(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new jn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new jn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new jn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),Ed=j1;var Q1=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var l={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),$t=Q1;var $1=Math.log(2);function Gf(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/$1);return r[e][l]}for(var u=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,p=0,c=0;p<s;p++){var v=1<<p;v&n||(h+=(c%2?-1:1)*r[e][p]*Gf(r,t-1,f,u,n|v,a),c++)}return a[o]=h,h}function Hf(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=Gf(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Gf(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var Ld="___zrEVENTSAVED",Wf=[];function Pd(r,t,e,i,n){return Bs(Wf,t,i,n,!0)&&Bs(r,e,Wf[0],Wf[1])}function Bs(r,t,e,i,n){if(t.getBoundingClientRect&&X.domSupported&&!Yf(t)){var a=t[Ld]||(t[Ld]={}),o=J1(t,a),s=tw(o,a,n);if(s)return s(r,e,i),!0}return!1}function J1(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function tw(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,p=f.left,c=f.top;o.push(p,c),l=l&&a&&p===a[h]&&c===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?Hf(s,o):Hf(o,s))}function Yf(r){return r.nodeName.toUpperCase()==="CANVAS"}var ew=/([&<>"'])/g,rw={"&":"&","<":"<",">":">",'"':""","'":"'"};function Xt(r){return r==null?"":(r+"").replace(ew,function(t,e){return rw[e]})}var iw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xf=[],nw=X.browser.firefox&&+X.browser.version.split(".")[0]<39;function Us(r,t,e,i){return e=e||{},i?Id(r,t,e):nw&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Id(r,t,e),e}function Id(r,t,e){if(X.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Yf(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(Bs(Xf,r,i,n)){e.zrX=Xf[0],e.zrY=Xf[1];return}}e.zrX=e.zrY=0}function Fs(r){return r||window.event}function ye(r,t,e){if(t=Fs(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Us(r,o,t,e)}else{Us(r,t,t,e);var a=aw(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&iw.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function aw(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function Od(r,t,e,i){r.addEventListener(t,e,i)}function Rd(r,t,e,i){r.removeEventListener(t,e,i)}var Vs=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};var kd=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=Us(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Zf)if(Zf.hasOwnProperty(e)){var i=Zf[e](this._track,t);if(i)return i}},r})();function Nd(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function ow(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Zf={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Nd(i)/Nd(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=ow(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};var Nr={};Me(Nr,{clone:()=>sw,copy:()=>Gs,create:()=>ar,identity:()=>Or,invert:()=>Rr,mul:()=>Ge,rotate:()=>ki,scale:()=>Kf,translate:()=>Qn});function ar(){return[1,0,0,1,0,0]}function Or(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Gs(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ge(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Qn(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function ki(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function Kf(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function Rr(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}function sw(r){var t=ar();return Gs(t,r),t}var lw=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r})(),et=lw;var Hs=Math.min,Ws=Math.max,zi=new et,Bi=new et,Ui=new et,Fi=new et,no=new et,ao=new et,uw=(function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=Hs(t.x,this.x),i=Hs(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ws(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ws(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=ar();return Qn(a,a,[-e.x,-e.y]),Kf(a,a,[i,n]),Qn(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,p=!(a<l||u<n||s<f||h<o);if(e){var c=1/0,v=0,g=Math.abs(a-l),d=Math.abs(u-n),m=Math.abs(s-f),y=Math.abs(h-o),_=Math.min(g,d),x=Math.min(m,y);a<l||u<n?_>v&&(v=_,g<d?et.set(ao,-g,0):et.set(ao,d,0)):_<c&&(c=_,g<d?et.set(no,g,0):et.set(no,-d,0)),s<f||h<o?x>v&&(v=x,m<y?et.set(ao,0,-m):et.set(ao,0,y)):_<c&&(c=_,m<y?et.set(no,0,m):et.set(no,0,-y))}return e&&et.copy(e,p?no:ao),p},r.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}zi.x=Ui.x=e.x,zi.y=Fi.y=e.y,Bi.x=Fi.x=e.x+e.width,Bi.y=Ui.y=e.y+e.height,zi.transform(i),Fi.transform(i),Bi.transform(i),Ui.transform(i),t.x=Hs(zi.x,Bi.x,Ui.x,Fi.x),t.y=Hs(zi.y,Bi.y,Ui.y,Fi.y);var l=Ws(zi.x,Bi.x,Ui.x,Fi.x),u=Ws(zi.y,Bi.y,Ui.y,Fi.y);t.width=l-t.x,t.height=u-t.y},r})(),J=uw;var Bd="silent";function fw(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:hw}}function hw(){Vs(this.event)}var cw=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})($t),oo=(function(){function r(t,e){this.x=t,this.y=e}return r})(),pw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],jf=new J(0,0,0,0),Ud=(function(r){P(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new oo(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new cw,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Ed(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(w(pw,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=Fd(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new oo(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new oo(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=fw(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new oo(e,i);if(zd(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new J(e-u,i-u,l,l),h=a.length-1;h>=0;h--){var p=a[h];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(jf.copy(p.getBoundingRect()),p.transform&&jf.applyTransform(p.transform),jf.intersect(f)&&s.push(p))}if(s.length)for(var c=4,v=Math.PI/12,g=Math.PI*2,d=0;d<u;d+=c)for(var m=0;m<g;m+=v){var y=e+d*Math.cos(m),_=i+d*Math.sin(m);if(zd(s,o,y,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new kd);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new oo;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})($t);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Ud.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=Fd(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Kn(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function vw(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Bd:!0}return!1}function zd(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=vw(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Bd)){t.target=o;break}}}function Fd(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Vd=Ud;var Wd=32,so=7;function dw(r){for(var t=0;r>=Wd;)t|=r&1,r>>=1;return r+t}function Gd(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;mw(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function mw(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function Hd(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Qf(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l<s&&a(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function $f(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;l<s&&a(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function gw(r,t){var e=so,i,n,a=0,o=[];i=[],n=[];function s(c,v){i[a]=c,n[a]=v,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var v=i[c],g=n[c],d=i[c+1],m=n[c+1];n[c]=g+m,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var y=$f(r[d],r,v,g,0,t);v+=y,g-=y,g!==0&&(m=Qf(r[v+g-1],r,d,m,m-1,t),m!==0&&(g<=m?h(v,g,d,m):p(v,g,d,m)))}function h(c,v,g,d){var m=0;for(m=0;m<v;m++)o[m]=r[c+m];var y=0,_=g,x=c;if(r[x++]=r[_++],--d===0){for(m=0;m<v;m++)r[x+m]=o[y+m];return}if(v===1){for(m=0;m<d;m++)r[x+m]=r[_+m];r[x+d]=o[y];return}for(var b=e,S,T,C;;){S=0,T=0,C=!1;do if(t(r[_],o[y])<0){if(r[x++]=r[_++],T++,S=0,--d===0){C=!0;break}}else if(r[x++]=o[y++],S++,T=0,--v===1){C=!0;break}while((S|T)<b);if(C)break;do{if(S=$f(r[_],o,y,v,0,t),S!==0){for(m=0;m<S;m++)r[x+m]=o[y+m];if(x+=S,y+=S,v-=S,v<=1){C=!0;break}}if(r[x++]=r[_++],--d===0){C=!0;break}if(T=Qf(o[y],r,_,d,0,t),T!==0){for(m=0;m<T;m++)r[x+m]=r[_+m];if(x+=T,_+=T,d-=T,d===0){C=!0;break}}if(r[x++]=o[y++],--v===1){C=!0;break}b--}while(S>=so||T>=so);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),v===1){for(m=0;m<d;m++)r[x+m]=r[_+m];r[x+d]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)r[x+m]=o[y+m]}}function p(c,v,g,d){var m=0;for(m=0;m<d;m++)o[m]=r[g+m];var y=c+v-1,_=d-1,x=g+d-1,b=0,S=0;if(r[x--]=r[y--],--v===0){for(b=x-(d-1),m=0;m<d;m++)r[b+m]=o[m];return}if(d===1){for(x-=v,y-=v,S=x+1,b=y+1,m=v-1;m>=0;m--)r[S+m]=r[b+m];r[x]=o[_];return}for(var T=e;;){var C=0,A=0,M=!1;do if(t(o[_],r[y])<0){if(r[x--]=r[y--],C++,A=0,--v===0){M=!0;break}}else if(r[x--]=o[_--],A++,C=0,--d===1){M=!0;break}while((C|A)<T);if(M)break;do{if(C=v-$f(o[_],r,c,v,v-1,t),C!==0){for(x-=C,y-=C,v-=C,S=x+1,b=y+1,m=C-1;m>=0;m--)r[S+m]=r[b+m];if(v===0){M=!0;break}}if(r[x--]=o[_--],--d===1){M=!0;break}if(A=d-Qf(r[y],o,0,d,d-1,t),A!==0){for(x-=A,_-=A,d-=A,S=x+1,b=_+1,m=0;m<A;m++)r[S+m]=o[b+m];if(d<=1){M=!0;break}}if(r[x--]=r[y--],--v===0){M=!0;break}T--}while(C>=so||A>=so);if(M)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),d===1){for(x-=v,y-=v,S=x+1,b=y+1,m=v-1;m>=0;m--)r[S+m]=r[b+m];r[x]=o[_]}else{if(d===0)throw new Error;for(b=x-(d-1),m=0;m<d;m++)r[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Vi(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<Wd){a=Gd(r,e,i,t),Hd(r,e,i,e+a,t);return}var o=gw(r,t),s=dw(n);do{if(a=Gd(r,e,i,t),a<s){var l=n;l>s&&(l=s),Hd(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var Nt=1,Gi=2,Jr=4;var Yd=!1;function Jf(){Yd||(Yd=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Xd(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var yw=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Xd}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Vi(i,Xd)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e?e=e.slice():e=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Nt),this._updateAndAddDisplayable(u,e,i)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Jf(),f.z=0),isNaN(f.z2)&&(Jf(),f.z2=0),isNaN(f.zlevel)&&(Jf(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,e,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=it(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),qd=yw;var Zd;Zd=X.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var lo=Zd;var Ys={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Ys.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?Ys.bounceIn(r*2)*.5:Ys.bounceOut(r*2-1)*.5+.5}},Xs=Ys;var qs=Math.pow,ei=Math.sqrt,Ks=1e-8,jd=1e-4,Kd=ei(3),Zs=1/3,dr=Ir(),He=Ir(),$n=Ir();function ti(r){return r>-Ks&&r<Ks}function Qd(r){return r>Ks||r<-Ks}function Ct(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function th(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Hi(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,p=l*l-3*s*u,c=0;if(ti(f)&&ti(h))if(ti(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[c++]=v)}else{var g=h*h-4*f*p;if(ti(g)){var d=h/f,v=-s/o+d,m=-d/2;v>=0&&v<=1&&(a[c++]=v),m>=0&&m<=1&&(a[c++]=m)}else if(g>0){var y=ei(g),_=f*s+1.5*o*(-h+y),x=f*s+1.5*o*(-h-y);_<0?_=-qs(-_,Zs):_=qs(_,Zs),x<0?x=-qs(-x,Zs):x=qs(x,Zs);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[c++]=v)}else{var b=(2*f*s-3*o*h)/(2*ei(f*f*f)),S=Math.acos(b)/3,T=ei(f),C=Math.cos(S),v=(-s-2*T*C)/(3*o),m=(-s+T*(C+Kd*Math.sin(S)))/(3*o),A=(-s+T*(C-Kd*Math.sin(S)))/(3*o);v>=0&&v<=1&&(a[c++]=v),m>=0&&m<=1&&(a[c++]=m),A>=0&&A<=1&&(a[c++]=A)}}return c}function js(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(ti(o)){if(Qd(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(ti(f))n[0]=-a/(2*o);else if(f>0){var h=ei(f),u=(-a+h)/(2*o),p=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Jn(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function $d(r,t,e,i,n,a,o,s,l,u,f){var h,p=.005,c=1/0,v,g,d,m;dr[0]=l,dr[1]=u;for(var y=0;y<1;y+=.05)He[0]=Ct(r,e,n,o,y),He[1]=Ct(t,i,a,s,y),d=$r(dr,He),d<c&&(h=y,c=d);c=1/0;for(var _=0;_<32&&!(p<jd);_++)v=h-p,g=h+p,He[0]=Ct(r,e,n,o,v),He[1]=Ct(t,i,a,s,v),d=$r(He,dr),v>=0&&d<c?(h=v,c=d):($n[0]=Ct(r,e,n,o,g),$n[1]=Ct(t,i,a,s,g),m=$r($n,dr),g<=1&&m<c?(h=g,c=m):p*=.5);return f&&(f[0]=Ct(r,e,n,o,h),f[1]=Ct(t,i,a,s,h)),ei(c)}function Jd(r,t,e,i,n,a,o,s,l){for(var u=r,f=t,h=0,p=1/l,c=1;c<=l;c++){var v=c*p,g=Ct(r,e,n,o,v),d=Ct(t,i,a,s,v),m=g-u,y=d-f;h+=Math.sqrt(m*m+y*y),u=g,f=d}return h}function zt(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function eh(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function tm(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(ti(a)){if(Qd(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(ti(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=ei(f),u=(-o+h)/(2*a),p=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Qs(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function ta(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function em(r,t,e,i,n,a,o,s,l){var u,f=.005,h=1/0;dr[0]=o,dr[1]=s;for(var p=0;p<1;p+=.05){He[0]=zt(r,e,n,p),He[1]=zt(t,i,a,p);var c=$r(dr,He);c<h&&(u=p,h=c)}h=1/0;for(var v=0;v<32&&!(f<jd);v++){var g=u-f,d=u+f;He[0]=zt(r,e,n,g),He[1]=zt(t,i,a,g);var c=$r(He,dr);if(g>=0&&c<h)u=g,h=c;else{$n[0]=zt(r,e,n,d),$n[1]=zt(t,i,a,d);var m=$r($n,dr);d<=1&&m<h?(u=d,h=m):f*=.5}}return l&&(l[0]=zt(r,e,n,u),l[1]=zt(t,i,a,u)),ei(h)}function rm(r,t,e,i,n,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var p=h*f,c=zt(r,e,n,p),v=zt(t,i,a,p),g=c-s,d=v-l;u+=Math.sqrt(g*g+d*d),s=c,l=v}return u}var _w=/cubic-bezier\(([0-9,\.e ]+)\)/;function $s(r){var t=r&&_w.exec(r);if(t){var e=t[1].split(","),i=+Yt(e[0]),n=+Yt(e[1]),a=+Yt(e[2]),o=+Yt(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Hi(0,i,a,1,l,s)&&Ct(0,n,o,1,s[0])}}}var xw=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Rt,this.ondestroy=t.ondestroy||Rt,this.onrestart=t.onrestart||Rt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=G(t)?t:Xs[t]||$s(t)},r})(),im=xw;var rl={};Me(rl,{fastLerp:()=>lm,fastMapToColor:()=>Dw,lerp:()=>tl,lift:()=>sh,liftColor:()=>el,lum:()=>Yi,mapToColor:()=>Aw,modifyAlpha:()=>Ew,modifyHSL:()=>Mw,parse:()=>re,random:()=>Lw,stringify:()=>mr,toHex:()=>Cw});var nm=(function(){function r(t){this.value=t}return r})();var Sw=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new nm(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})();var bw=(function(){function r(t){this._list=new Sw,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new nm(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),kr=bw;var am={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 or(r){return r=Math.round(r),r<0?0:r>255?255:r}function ww(r){return r=Math.round(r),r<0?0:r>360?360:r}function uo(r){return r<0?0:r>1?1:r}function ih(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?or(parseFloat(t)/100*255):or(parseInt(t,10))}function Wi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?uo(parseFloat(t)/100):uo(parseFloat(t))}function nh(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function ri(r,t,e){return r+(t-r)*e}function We(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function ah(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var sm=new kr(20),Js=null;function ea(r,t){Js&&ah(Js,t),Js=sm.put(r,Js||t.slice())}function re(r,t){if(r){t=t||[];var e=sm.get(r);if(e)return ah(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in am)return ah(t,am[i]),ea(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){We(t,0,0,0,1);return}return We(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),ea(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){We(t,0,0,0,1);return}return We(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),ea(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?We(t,+u[0],+u[1],+u[2],1):We(t,0,0,0,1);f=Wi(u.pop());case"rgb":if(u.length>=3)return We(t,ih(u[0]),ih(u[1]),ih(u[2]),u.length===3?f:Wi(u[3])),ea(r,t),t;We(t,0,0,0,1);return;case"hsla":if(u.length!==4){We(t,0,0,0,1);return}return u[3]=Wi(u[3]),oh(u,t),ea(r,t),t;case"hsl":if(u.length!==3){We(t,0,0,0,1);return}return oh(u,t),ea(r,t),t;default:return}}We(t,0,0,0,1)}}function oh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=Wi(r[1]),n=Wi(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],We(t,or(nh(o,a,e+1/3)*255),or(nh(o,a,e)*255),or(nh(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Tw(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,p=((a-i)/6+o/2)/o;t===a?l=p-h:e===a?l=1/3+f-p:i===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function sh(r,t){var e=re(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return mr(e,e.length===4?"rgba":"rgb")}}function Cw(r){var t=re(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function lm(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return e[0]=or(ri(o[0],s[0],l)),e[1]=or(ri(o[1],s[1],l)),e[2]=or(ri(o[2],s[2],l)),e[3]=uo(ri(o[3],s[3],l)),e}}var Dw=lm;function tl(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=re(t[n]),s=re(t[a]),l=i-n,u=mr([or(ri(o[0],s[0],l)),or(ri(o[1],s[1],l)),or(ri(o[2],s[2],l)),uo(ri(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var Aw=tl;function Mw(r,t,e,i){var n=re(r);if(r)return n=Tw(n),t!=null&&(n[0]=ww(t)),e!=null&&(n[1]=Wi(e)),i!=null&&(n[2]=Wi(i)),mr(oh(n),"rgba")}function Ew(r,t){var e=re(r);if(e&&t!=null)return e[3]=uo(t),mr(e,"rgba")}function mr(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Yi(r,t){var e=re(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function Lw(){return mr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var om=new kr(100);function el(r){if(z(r)){var t=om.get(r);return t||(t=sh(r,-.1),om.put(r,t)),t}else if(Lr(r)){var e=R({},r);return e.colorStops=U(r.colorStops,function(i){return{offset:i.offset,color:sh(i.color,-.1)}}),e}return r}function um(r){return r.type==="linear"}function fm(r){return r.type==="radial"}var YI=(function(){return X.hasGlobalWindow&&G(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var uh=Array.prototype.slice;function zr(r,t,e){return(t-r)*e+r}function lh(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=zr(t[a],e[a],i);return r}function Pw(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=zr(t[o][s],e[o][s],i)}return r}function il(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function hm(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function Iw(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function Ow(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(e===1?n[l]:uh.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function co(r){if(Lt(r)){var t=r.length;if(Lt(r[0])){for(var e=[],i=0;i<t;i++)e.push(uh.call(r[i]));return e}return uh.call(r)}return r}function ol(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Rw(r){return Lt(r&&r[0])?2:1}var nl=0,sl=1,vm=2,ho=3,fh=4,hh=5,cm=6;function pm(r){return r===fh||r===hh}function al(r){return r===sl||r===vm}var fo=[0,0,0,0],Nw=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=cm,l=e;if(Lt(e)){var u=Rw(e);s=u,(u===1&&!rt(e[0])||u===2&&!rt(e[0][0]))&&(o=!0)}else if(rt(e)&&!Ri(e))s=nl;else if(z(e))if(!isNaN(+e))s=nl;else{var f=re(e);f&&(l=f,s=ho)}else if(Lr(e)){var h=R({},l);h.colorStops=U(e.colorStops,function(c){return{offset:c.offset,color:re(c.color)}}),um(e)?s=fh:fm(e)&&(s=hh),l=h}a===0?this.valType=s:(s!==this.valType||s===cm)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:l,rawValue:e,percent:0};return i&&(p.easing=i,p.easingFunc=G(i)?i:Xs[i]||$s(i)),n.push(p),p},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=al(n),u=pm(n),f=0;f<a;f++){var h=i[f],p=h.value,c=o.value;h.percent=h.time/t,s||(l&&f!==a-1?Ow(p,c,n):u&&Iw(p.colorStops,c.colorStops))}if(!s&&n!==hh&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var v=i[0].value,f=0;f<a;f++)n===nl?i[f].additiveValue=i[f].value-v:n===ho?i[f].additiveValue=il([],i[f].value,v,-1):al(n)&&(i[f].additiveValue=n===sl?il([],i[f].value,v,-1):hm([],i[f].value,v,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===ho,f,h=this._lastFr,p=Math.min,c,v;if(s===1)c=v=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var g=p(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=e);f--);f=p(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=p(f-1,s-2)}v=o[f+1],c=o[f]}if(c&&v){this._lastFr=f,this._lastFrP=e;var d=v.percent-c.percent,m=d===0?1:p((e-c.percent)/d,1);v.easingFunc&&(m=v.easingFunc(m));var y=i?this._additiveValue:u?fo:t[l];if((al(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?c.rawValue:v.rawValue;else if(al(a))a===sl?lh(y,c[n],v[n],m):Pw(y,c[n],v[n],m);else if(pm(a)){var _=c[n],x=v[n],b=a===fh;t[l]={type:b?"linear":"radial",x:zr(_.x,x.x,m),y:zr(_.y,x.y,m),colorStops:U(_.colorStops,function(T,C){var A=x.colorStops[C];return{offset:zr(T.offset,A.offset,m),color:ol(lh([],T.color,A.color,m))}}),global:x.global},b?(t[l].x2=zr(_.x2,x.x2,m),t[l].y2=zr(_.y2,x.y2,m)):t[l].r=zr(_.r,x.r,m)}else if(u)lh(y,c[n],v[n],m),i||(t[l]=ol(y));else{var S=zr(c[n],v[n],m);i?this._additiveValue=S:t[l]=S}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===nl?t[i]=t[i]+n:e===ho?(re(t[i],fo),il(fo,fo,n,1),t[i]=ol(fo)):e===sl?il(t[i],t[i],n,1):e===vm&&hm(t[i],t[i],n,1)},r})(),kw=(function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Oi("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,st(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new Nw(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,p=h[h.length-1];u=p&&p.value,f.valType===ho&&u&&(u=ol(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,co(u),n),this._trackKeys.push(s)}l.addKeyframe(t,co(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new im({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var v=e._additiveAnimators;if(v){for(var g=!1,d=0;d<v.length;d++)if(v[d]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(e._target,c);var m=e._onframeCbs;if(m)for(var d=0;d<m.length;d++)m[d](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return U(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[a]=co(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||st(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})(),po=kw;function Xi(){return new Date().getTime()}var zw=(function(r){P(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Xi()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(lo(i),!e._paused&&e.update())}lo(i)},t.prototype.start=function(){this._running||(this._time=Xi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Xi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Xi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new po(e,i.loop);return this.addAnimator(n),n},t})($t),dm=zw;var Bw=300,ch=X.domSupported,ph=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=U(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),mm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},gm=!1;function mh(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Uw(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function vh(r){r&&(r.zrByTouch=!0)}function Fw(r,t){return ye(r.dom,new Vw(r,t),!0)}function _m(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var Vw=(function(){function r(t,e){this.stopPropagation=Rt,this.stopImmediatePropagation=Rt,this.preventDefault=Rt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),sr={mousedown:function(r){r=ye(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ye(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ye(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ye(this.dom,r);var t=r.toElement||r.relatedTarget;_m(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){gm=!0,r=ye(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){gm||(r=ye(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ye(this.dom,r),vh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),sr.mousemove.call(this,r),sr.mousedown.call(this,r)},touchmove:function(r){r=ye(this.dom,r),vh(r),this.handler.processGesture(r,"change"),sr.mousemove.call(this,r)},touchend:function(r){r=ye(this.dom,r),vh(r),this.handler.processGesture(r,"end"),sr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Bw&&sr.click.call(this,r)},pointerdown:function(r){sr.mousedown.call(this,r)},pointermove:function(r){mh(r)||sr.mousemove.call(this,r)},pointerup:function(r){sr.mouseup.call(this,r)},pointerout:function(r){mh(r)||sr.mouseout.call(this,r)}};w(["click","dblclick","contextmenu"],function(r){sr[r]=function(t){t=ye(this.dom,t),this.trigger(r,t)}});var gh={pointermove:function(r){mh(r)||gh.mousemove.call(this,r)},pointerup:function(r){gh.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Gw(r,t){var e=t.domHandlers;X.pointerEventsSupported?w(ph.pointer,function(i){ll(t,i,function(n){e[i].call(r,n)})}):(X.touchEventsSupported&&w(ph.touch,function(i){ll(t,i,function(n){e[i].call(r,n),Uw(t)})}),w(ph.mouse,function(i){ll(t,i,function(n){n=Fs(n),t.touching||e[i].call(r,n)})}))}function Hw(r,t){X.pointerEventsSupported?w(mm.pointer,e):X.touchEventsSupported||w(mm.mouse,e);function e(i){function n(a){a=Fs(a),_m(r,a.target)||(a=Fw(r,a),t.domHandlers[i].call(r,a))}ll(t,i,n,{capture:!0})}}function ll(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,Od(r.domTarget,t,e,i)}function dh(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Rd(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var ym=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),Ww=(function(r){P(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new ym(e,sr),ch&&(n._globalHandlerScope=new ym(document,gh)),Gw(n,n._localHandlerScope),n}return t.prototype.dispose=function(){dh(this._localHandlerScope),ch&&dh(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,ch&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?Hw(this,i):dh(i)}},t})($t),xm=Ww;var Sm=1;X.hasGlobalWindow&&(Sm=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var qi=Sm,vo=.4,mo="#333",go="#ccc",bm="#eee";var wm=Or,Tm=5e-5;function Zi(r){return r>Tm||r<-Tm}var Ki=[],ra=[],yh=ar(),_h=Math.abs,Yw=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Zi(this.rotation)||Zi(this.x)||Zi(this.y)||Zi(this.scaleX-1)||Zi(this.scaleY-1)||Zi(this.skewX)||Zi(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(wm(i),this.invTransform=null);return}i=i||ar(),e?this.getLocalTransform(i):wm(i),t&&(e?Ge(i,t,i):Gs(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ki);var i=Ki[0]<0?-1:1,n=Ki[1]<0?-1:1,a=((Ki[0]-i)*e+i)/Ki[0]||0,o=((Ki[1]-n)*e+n)/Ki[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ar(),Rr(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ar(),Ge(ra,t.invTransform,e),e=ra);var i=this.originX,n=this.originY;(i||n)&&(yh[4]=i,yh[5]=n,Ge(ra,e,yh),ra[4]-=i,ra[5]-=n,e=ra),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&Pt(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&Pt(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&_h(t[0]-1)>1e-10&&_h(t[3]-1)>1e-10?Math.sqrt(_h(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Xw(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,p=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var v=i+s,g=n+l;e[4]=-v*a-p*g*o,e[5]=-g*o-c*v*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=p*o,u&&ki(e,e,u),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),ji=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xw(r,t){for(var e=0;e<ji.length;e++){var i=ji[e];r[i]=t[i]}}var yo=Yw;var Cm={};function _e(r,t){t=t||ir;var e=Cm[t];e||(e=Cm[t]=new kr(500));var i=e.get(r);return i==null&&(i=le.measureText(r,t).width,e.put(r,i)),i}function Dm(r,t,e,i){var n=_e(r,t),a=ul(t),o=na(0,n,e),s=Qi(0,a,i),l=new J(o,s,n,a);return l}function ia(r,t,e,i){var n=((r||"")+"").split(`
|
|
890
|
+
`),a=n.length;if(a===1)return Dm(n[0],t,e,i);for(var o=new J(0,0,0,0),s=0;s<n.length;s++){var l=Dm(n[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function na(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Qi(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function ul(r){return _e("\u56FD",r)}function Ye(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function $i(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=Ye(i[0],e.width),u+=Ye(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var xh="__zr_normal__",Sh=ji.concat(["ignore"]),qw=ee(ji,function(r,t){return r[t]=!0,r},{ignore:!1}),aa={},Zw=new J(0,0,0,0),Th=(function(){function r(t){this.id=ja(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(e),i.position!=null){var f=Zw;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(aa,i,f):$i(aa,i,f),a.x=aa.x,a.y=aa.y,o=aa.align,s=aa.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var p=void 0,c=void 0;h==="center"?(p=f.width*.5,c=f.height*.5):(p=Ye(h[0],f.width),c=Ye(h[1],f.height)),u=!0,a.originX=-a.x+p+(n?0:f.x),a.originY=-a.y+c+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var v=i.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;g&&this.canBeInsideText()?(m=i.insideFill,y=i.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=i.outsideFill,y=i.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==d.fill||y!==d.stroke||_!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(l=!0,d.fill=m,d.stroke=y,d.autoStroke=_,d.align=o,d.verticalAlign=s,e.setDefaultTextStyle(d)),e.__dirty|=Nt,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?go:mo},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&re(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,mr(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},R(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(V(t))for(var i=t,n=st(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==xh)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Sh)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(xh,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===xh,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(it(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Oi("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,i,f),p&&p.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Nt),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],p=!!(h&&h.hoverLayer||i);p&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),v=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,d=this._textGuide;g&&g.useStates(t,e,p),d&&d.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Nt)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=it(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=it(n,t),o=it(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];R(e,a),a.textConfig&&(i=i||{},R(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=R({},n?this.textConfig:i.textConfig),R(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Sh.length;f++){var h=Sh[f],p=a&&qw[h];e&&e[h]!=null?p?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(p?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],v=c.targetName;c.getLoop()||c.__changeFinalValue(v?(e||i)[v]:e||i)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new yo,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),R(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Nt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new po(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=it(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){bh(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){bh(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=bh(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Nt;var e={};function i(a,o,s){e[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(h,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),r})();Ht(Th,$t);Ht(Th,yo);function bh(r,t,e,i,n){e=e||{};var a=[];Mm(r,"",r,t,e,i,a,n);var o=a.length,s=!1,l=e.done,u=e.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(),a.length>0&&e.during&&a[0].during(function(v,g){e.during(g)});for(var p=0;p<a.length;p++){var c=a[p];f&&c.done(f),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function wh(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function Kw(r){return Lt(r[0])}function jw(r,t,e){if(Lt(t[e]))if(Lt(r[e])||(r[e]=[]),At(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),wh(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(Kw(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?wh(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else wh(a,n,o);a.length=n.length}else r[e]=t[e]}function Qw(r,t){return r===t||Lt(r)&&Lt(t)&&$w(r,t)}function $w(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function Mm(r,t,e,i,n,a,o,s){for(var l=st(i),u=n.duration,f=n.delay,h=n.additive,p=n.setToFinal,c=!V(a),v=r.animators,g=[],d=0;d<l.length;d++){var m=l[d],y=i[m];if(y!=null&&e[m]!=null&&(c||a[m]))if(V(y)&&!Lt(y)&&!Lr(y)){if(t){s||(e[m]=y,r.updateDuringAnimation(t));continue}Mm(r,m,e[m],y,n,a&&a[m],o,s)}else g.push(m);else s||(e[m]=y,r.updateDuringAnimation(t),g.push(m))}var _=g.length;if(!h&&_)for(var x=0;x<v.length;x++){var b=v[x];if(b.targetName===t){var S=b.stopTracks(g);if(S){var T=it(v,b);v.splice(T,1)}}}if(n.force||(g=wt(g,function(D){return!Qw(i[D],e[D])}),_=g.length),_>0||n.force&&!o.length){var C=void 0,A=void 0,M=void 0;if(s){A={},p&&(C={});for(var x=0;x<_;x++){var m=g[x];A[m]=e[m],p?C[m]=i[m]:e[m]=i[m]}}else if(p){M={};for(var x=0;x<_;x++){var m=g[x];M[m]=co(e[m]),jw(e,i,m)}}var b=new po(e,!1,!1,h?wt(v,function(E){return E.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),p&&C&&b.whenWithKeys(0,C,g),M&&b.whenWithKeys(0,M,g),b.whenWithKeys(u??500,s?A:i,g).delay(f||0),r.addAnimator(b,t),o.push(b)}}var fl=Th;var Em=(function(r){P(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=it(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=it(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new J(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(J.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t})(fl);Em.prototype.type="group";var dt=Em;var hl={},Ji={};function Jw(r){delete Ji[r]}function tT(r){if(!r)return!1;if(typeof r=="string")return Yi(r,1)<vo;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Yi(t[n].color,1);return e/=i,e<vo}return!1}var eT=(function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new qd,o=i.renderer||"canvas";hl[o]||(o=st(hl)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new hl[o](e,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!X.node&&!X.worker&&!l?new xm(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?X.touchEventsSupported:!!f,p=44,c;h&&(c=K(i.pointerSize,p)),this.handler=new Vd(a,s,u,s.root,c),this.animation=new dm({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=tT(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=Xi();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Xi();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof dt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Jw(this.id))},r})();function cl(r,t){var e=new eT(ja(),r,t);return Ji[e.id]=e,e}function rT(r){r.dispose()}function iT(){for(var r in Ji)Ji.hasOwnProperty(r)&&Ji[r].dispose();Ji={}}function nT(r){return Ji[r]}function Dh(r,t){hl[r]=t}var Ch;function aT(r){if(typeof Ch=="function")return Ch(r)}function Ah(r){Ch=r}var oT="5.6.0";var Lm=1e-4,Pm=20;function sT(r){return r.replace(/^\s+|\s+$/g,"")}function tn(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}function _t(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return z(r)?sT(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function St(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Pm),r=(+r).toFixed(t),e?r:+r}function Im(r){return r.sort(function(t,e){return t-e}),r}function ue(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Mh(r)}function Mh(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function vl(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function Om(r,t,e){if(!r[t])return 0;var i=Eh(r,e);return i[t]||0}function Eh(r,t){var e=ee(r,function(c,v){return c+(isNaN(v)?0:v)},0);if(e===0)return[];for(var i=Math.pow(10,t),n=U(r,function(c){return(isNaN(c)?0:c)/e*i*100}),a=i*100,o=U(n,function(c){return Math.floor(c)}),s=ee(o,function(c,v){return c+v},0),l=U(n,function(c,v){return c-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return U(o,function(c){return c/i})}function Rm(r,t){var e=Math.max(ue(r),ue(t)),i=r+t;return e>Pm?i:St(i,e)}var Nm=9007199254740991;function _o(r){var t=Math.PI*2;return(r%t+t)%t}function en(r){return r>-Lm&&r<Lm}var lT=/^(?:(\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 qt(r){if(r instanceof Date)return r;if(z(r)){var t=lT.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function dl(r){return Math.pow(10,oa(r))}function oa(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function sa(r,t){var e=oa(r),i=Math.pow(10,e),n=r/i,a;return t?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function km(r,t){var e=(r.length-1)*t+1,i=Math.floor(e),n=+r[i-1],a=e-i;return a?n+a*(r[i]-n):n}function zm(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,i=0;i<r.length;){for(var n=r[i].interval,a=r[i].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,a[o]=o?1:1-e),t=n[o],e=a[o];n[0]===n[1]&&a[0]*a[1]!==1?r.splice(i,1):i++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Xe(r){var t=parseFloat(r);return t==r&&(t!==0||!z(r)||r.indexOf("x")<=0)?t:NaN}function xo(r){return!isNaN(Xe(r))}function ml(){return Math.round(Math.random()*9)}function Bm(r,t){return t===0?r:Bm(t,r%t)}function Lh(r,t){return r==null?t:t==null?r:r*t/Bm(r,t)}function Zt(r){throw new Error(r)}function Um(r,t,e){return(t-r)*e+r}var Fm="series\0",uT="\0_ec_\0";function Dt(r){return r instanceof Array?r:r==null?[]:[r]}function bo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i<n;i++){var a=e[i];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Ph=["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 Br(r){return V(r)&&!N(r)&&!(r instanceof Date)?r.value:r}function Vm(r){return V(r)&&!(r instanceof Array)}function Gm(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Y();w(t,function(l,u){if(!V(l)){t[u]=null;return}});var s=fT(r,o,e);return(i||n)&&hT(s,r,o,t),i&&cT(s,t),i||n?pT(s,t,n):a&&vT(s,t),dT(s),s}function fT(r,t,e){var i=[];if(e==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:e==="replaceMerge"||la(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function hT(r,t,e,i){w(i,function(n,a){if(!(!n||n.id==null)){var o=So(n.id),s=e.get(o);if(s!=null){var l=r[s];Wt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],i[a]=null}}})}function cT(r,t){w(t,function(e,i){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||e.id==null)&&!la(e)&&!la(a)&&Hm("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function pT(r,t,e){w(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||la(n.existing)||n.existing&&i.id!=null&&!Hm("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function vT(r,t){w(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function dT(r){var t=Y();w(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),w(r,function(e){var i=e.newOption;Wt(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),w(r,function(e,i){var n=e.existing,a=e.newOption,o=e.keyInfo;if(V(a)){if(o.name=a.name!=null?So(a.name):n?n.name:Fm+i,n)o.id=So(n.id);else if(a.id!=null)o.id=So(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Hm(r,t,e){var i=Ee(t[r],null),n=Ee(e[r],null);return i!=null&&n!=null&&i===n}function So(r){return Ee(r,"")}function Ee(r,t){return r==null?t:z(r)?r:rt(r)||Zn(r)?r+"":t}function ua(r){var t=r.name;return!!(t&&t.indexOf(Fm))}function la(r){return r&&r.id!=null&&So(r.id).indexOf(uT)===0}function Wm(r,t,e){w(r,function(i){var n=i.newOption;V(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=mT(t,n,i.existing,e))})}function mT(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function qe(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return N(t.dataIndex)?U(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return N(t.name)?U(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ut(){var r="__ec_inner_"+gT++;return function(t){return t[r]||(t[r]={})}}var gT=ml();function yl(r,t,e){var i=wo(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var h=ii(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function wo(r,t){var e;if(z(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=Y(),a={},o=!1;return w(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&it(t.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var ie={useDefault:!0,enableAll:!1,enableNone:!1};function ii(r,t,e,i){i=i||ie;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(Wt(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(Wt(i.enableAll,'`"all"` is not a valid value on index option.'),n=a=o=null),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s)}function Ih(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function Ym(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function Xm(r){return r==="auto"?X.domSupported?"html":"richText":r||"html"}function Oh(r,t,e,i,n){var a=t==null||t==="auto";if(i==null)return i;if(rt(i)){var o=Um(e||0,i,n);return St(o,a?Math.max(ue(e||0),ue(i)):t)}else{if(z(i))return n<1?e:i;for(var s=[],l=e,u=i,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var p=r.getDimensionInfo(h);if(p&&p.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,v=u[h],o=Um(c,v,n);s[h]=St(o,a?Math.max(ue(c),ue(v)):t)}}return s}}var yT=".",rn="___EC__COMPONENT__CONTAINER___",qm="___EC__EXTENDED_CLASS___";function xe(r){var t={main:"",sub:""};if(r){var e=r.split(yT);t.main=e[0]||"",t.sub=e[1]||""}return t}function _T(r){Wt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Zm(r){return!!(r&&r[qm])}function fa(r,t){r.$constructor=r,r.extend=function(e){var i=this,n;return xT(i)?n=(function(a){P(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(e.$constructor||i).apply(this,arguments)},Qa(n,this)),R(n.prototype,e),n[qm]=!0,n.extend=this.extend,n.superCall=bT,n.superApply=wT,n.superClass=i,n}}function xT(r){return G(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function _l(r,t){r.extend=t.extend}var ST=Math.round(Math.random()*10);function Km(r){var t=["__\0is_clz",ST++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function bT(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function wT(r,t,e){return this.superClass.prototype[t].apply(r,e)}function ai(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){_T(n),i.prototype.type=n;var a=xe(n);if(!a.sub)t[a.main]=i;else if(a.sub!==rn){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[rn]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=xe(i),a=[],o=t[n.main];return o&&o[rn]?w(o,function(s,l){l!==rn&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=xe(i);return!!t[n.main]},r.getAllClassMainTypes=function(){var i=[];return w(t,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=xe(i),a=t[n.main];return a&&a[rn]};function e(i){var n=t[i.main];return(!n||!n[rn])&&(n=t[i.main]={},n[rn]=!0),n}}function gr(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&it(n,l)>=0||a&&it(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var TT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],CT=gr(TT),jm=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return CT(this,t,e)},r})();var Nh=new kr(50);function $m(r){if(typeof r=="string"){var t=Nh.get(r);return t&&t.image}else return r}function kh(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Nh.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!ha(t)&&a.pending.push(o)):(t=le.loadImage(r,Qm,Qm),t.__zrImageSrc=r,Nh.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Qm(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function ha(r){return r&&r.width&&r.height}var zh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function xl(r,t,e,i,n){if(!t)return"";var a=(r+"").split(`
|
|
891
|
+
`);n=tg(t,e,i,n);for(var o=0,s=a.length;o<s;o++)a[o]=eg(a[o],n);return a.join(`
|
|
892
|
+
`)}function tg(r,t,e,i){i=i||{};var n=R({},i);n.font=t,e=K(e,"..."),n.maxIterations=K(i.maxIterations,2);var a=n.minChar=K(i.minChar,0);n.cnCharWidth=_e("\u56FD",t);var o=n.ascCharWidth=_e("a",t);n.placeholder=K(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=_e(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function eg(r,t){var e=t.containerWidth,i=t.font,n=t.contentWidth;if(!e)return"";var a=_e(r,i);if(a<=e)return r;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?AT(r,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*n/a):0;r=r.substr(0,s),a=_e(r,i)}return r===""&&(r=t.placeholder),r}function AT(r,t,e,i){for(var n=0,a=0,o=r.length;a<o&&n<t;a++){var s=r.charCodeAt(a);n+=0<=s&&s<=127?e:i}return a}function rg(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,n=t.font,a=e==="truncate",o=ul(n),s=K(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?ng(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
|
|
893
|
+
`):[];var p=h.length*s,c=K(t.height,p);if(p>c&&u){var v=Math.floor(c/s);h=h.slice(0,v)}if(r&&a&&f!=null)for(var g=tg(f,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),d=0;d<h.length;d++)h[d]=eg(h[d],g);for(var m=c,y=0,d=0;d<h.length;d++)y=Math.max(_e(h[d],n),y);f==null&&(f=y);var _=y;return i&&(m+=i[0]+i[2],_+=i[1]+i[3],f+=i[1]+i[3]),l&&(_=f),{lines:h,height:c,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:p,width:f}}var MT=(function(){function r(){}return r})(),Jm=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),ET=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r})();function ig(r,t){var e=new ET;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=zh.lastIndex=0,l;(l=zh.exec(r))!=null;){var u=l.index;u>s&&Bh(e,r.substring(s,u),t,o),Bh(e,l[2],t,o,l[1]),s=zh.lastIndex}s<r.length&&Bh(e,r.substring(s,r.length),t,o);var f=[],h=0,p=0,c=t.padding,v=a==="truncate",g=t.lineOverflow==="truncate";function d(B,F,H){B.width=F,B.lineHeight=H,h+=H,p=Math.max(p,F)}t:for(var m=0;m<e.lines.length;m++){for(var y=e.lines[m],_=0,x=0,b=0;b<y.tokens.length;b++){var S=y.tokens[b],T=S.styleName&&t.rich[S.styleName]||{},C=S.textPadding=T.padding,A=C?C[1]+C[3]:0,M=S.font=T.font||t.font;S.contentHeight=ul(M);var D=K(T.height,S.contentHeight);if(S.innerHeight=D,C&&(D+=C[0]+C[2]),S.height=D,S.lineHeight=vr(T.lineHeight,t.lineHeight,D),S.align=T&&T.align||t.align,S.verticalAlign=T&&T.verticalAlign||"middle",g&&n!=null&&h+S.lineHeight>n){b>0?(y.tokens=y.tokens.slice(0,b),d(y,x,_),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m);break t}var E=T.width,L=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")S.percentWidth=E,f.push(S),S.contentWidth=_e(S.text,M);else{if(L){var I=T.backgroundColor,O=I&&I.image;O&&(O=$m(O),ha(O)&&(S.width=Math.max(S.width,O.width*D/O.height)))}var k=v&&i!=null?i-x:null;k!=null&&k<S.width?!L||k<A?(S.text="",S.width=S.contentWidth=0):(S.text=xl(S.text,k-A,M,t.ellipsis,{minChar:t.truncateMinChar}),S.width=S.contentWidth=_e(S.text,M)):S.contentWidth=_e(S.text,M)}S.width+=A,x+=S.width,T&&(_=Math.max(_,S.lineHeight))}d(y,x,_)}e.outerWidth=e.width=K(i,p),e.outerHeight=e.height=K(n,h),e.contentHeight=h,e.contentWidth=p,c&&(e.outerWidth+=c[1]+c[3],e.outerHeight+=c[0]+c[2]);for(var m=0;m<f.length;m++){var S=f[m],W=S.percentWidth;S.width=parseInt(W,10)/100*e.width}return e}function Bh(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(i){var p=o.padding,c=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Ye(o.width,i.width)+c;s.length>0&&v+i.accumWidth>i.width&&(f=t.split(`
|
|
894
|
+
`),u=!0),i.accumWidth=v}else{var g=ng(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,h=g.linesWidths,f=g.lines}}else f=t.split(`
|
|
895
|
+
`);for(var d=0;d<f.length;d++){var m=f[d],y=new MT;if(y.styleName=n,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=h?h[d]:_e(m,l),!d&&!u){var _=(s[s.length-1]||(s[0]=new Jm)).tokens,x=_.length;x===1&&_[0].isLineHolder?_[0]=y:(m||!x||a)&&_.push(y)}else s.push(new Jm([y]))}}function LT(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var PT=ee(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function IT(r){return LT(r)?!!PT[r]:!0}function ng(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var p=r.charAt(h);if(p===`
|
|
896
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=_e(p,t),v=i?!1:!IT(p);if(a.length?f+c>e:n+f+c>e){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=p,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=p,f=c)):v?(a.push(l),o.push(u),l=p,u=c):(a.push(p),o.push(c));continue}f+=c,v?(l+=p,u+=c):(l&&(s+=l,l="",u=0),s+=p)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var Vh="__zr_style_"+Math.round(Math.random()*10),yr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};yr[Vh]=!0;var ag=["z","z2","invisible"],OT=["invisible"],RT=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=st(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&NT(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new J(0,0,0,0)),i?J.applyTransform(e,n,i):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:R(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Gi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Gi)},t.prototype.styleUpdated=function(){this.__dirty&=~Gi},t.prototype.createStyle=function(e){return Pr(yr,e)},t.prototype.useStyle=function(e){e[Vh]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Vh]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,ag)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=st(f),p=0;p<h.length;p++){var c=h[p];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var v=st(u),p=0;p<v.length;p++){var c=v[p];this.style[c]=this.style[c]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?OT:ag,p=0;p<g.length;p++){var c=g[p];i&&i[c]!=null?this[c]=i[c]:l&&n[c]!=null&&(this[c]=n[c])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return R(e,i),e},t.prototype.getAnimationStyleProps=function(){return nn},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Nt|Gi})(),t})(fl),Uh=new J(0,0,0,0),Fh=new J(0,0,0,0);function NT(r,t,e){return Uh.copy(r.getBoundingRect()),r.transform&&Uh.applyTransform(r.transform),Fh.width=t,Fh.height=e,!Uh.intersect(Fh)}var _r=RT;var Ze=Math.min,Ke=Math.max,Gh=Math.sin,Hh=Math.cos,an=Math.PI*2,Sl=Ir(),bl=Ir(),wl=Ir();function Wh(r,t,e,i,n,a){n[0]=Ze(r,e),n[1]=Ze(t,i),a[0]=Ke(r,e),a[1]=Ke(t,i)}var og=[],sg=[];function lg(r,t,e,i,n,a,o,s,l,u){var f=js,h=Ct,p=f(r,e,n,o,og);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<p;c++){var v=h(r,e,n,o,og[c]);l[0]=Ze(v,l[0]),u[0]=Ke(v,u[0])}p=f(t,i,a,s,sg);for(var c=0;c<p;c++){var g=h(t,i,a,s,sg[c]);l[1]=Ze(g,l[1]),u[1]=Ke(g,u[1])}l[0]=Ze(r,l[0]),u[0]=Ke(r,u[0]),l[0]=Ze(o,l[0]),u[0]=Ke(o,u[0]),l[1]=Ze(t,l[1]),u[1]=Ke(t,u[1]),l[1]=Ze(s,l[1]),u[1]=Ke(s,u[1])}function ug(r,t,e,i,n,a,o,s){var l=Qs,u=zt,f=Ke(Ze(l(r,e,n),1),0),h=Ke(Ze(l(t,i,a),1),0),p=u(r,e,n,f),c=u(t,i,a,h);o[0]=Ze(r,n,p),o[1]=Ze(t,a,c),s[0]=Ke(r,n,p),s[1]=Ke(t,a,c)}function fg(r,t,e,i,n,a,o,s,l){var u=Fe,f=Ve,h=Math.abs(n-a);if(h%an<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(Sl[0]=Hh(n)*e+r,Sl[1]=Gh(n)*i+t,bl[0]=Hh(a)*e+r,bl[1]=Gh(a)*i+t,u(s,Sl,bl),f(l,Sl,bl),n=n%an,n<0&&(n=n+an),a=a%an,a<0&&(a=a+an),n>a&&!o?a+=an:n<a&&o&&(n+=an),o){var p=a;a=n,n=p}for(var c=0;c<a;c+=Math.PI/2)c>n&&(wl[0]=Hh(c)*e+r,wl[1]=Gh(c)*i+t,u(s,wl,s),f(l,wl,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},on=[],sn=[],xr=[],oi=[],Sr=[],br=[],Yh=Math.min,Xh=Math.max,ln=Math.cos,un=Math.sin,Ur=Math.abs,Kh=Math.PI,si=Kh*2,qh=typeof Float32Array<"u",To=[];function Zh(r){var t=Math.round(r/Kh*1e8)/1e8;return t%2*Kh}function jh(r,t){var e=Zh(r[0]);e<0&&(e+=si);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=si?n=e+si:t&&e-n>=si?n=e-si:!t&&e>n?n=e+(si-Zh(e-n)):t&&e<n&&(n=e-(si-Zh(n-e))),r[0]=e,r[1]=n}var kT=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=Ur(i/qi/t)||0,this._uy=Ur(i/qi/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(xt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Ur(t-this._xi),n=Ur(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(xt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(xt.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(xt.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),To[0]=n,To[1]=a,jh(To,o),n=To[0],a=To[1];var s=a-n;return this.addData(xt.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=ln(a)*i+t,this._yi=un(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(xt.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(xt.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&qh&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();qh&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(t,e,i,n,a,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]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,qh&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){xr[0]=xr[1]=Sr[0]=Sr[1]=Number.MAX_VALUE,oi[0]=oi[1]=br[0]=br[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],i=t[o+1],n=e,a=i),s){case xt.M:e=n=t[o++],i=a=t[o++],Sr[0]=n,Sr[1]=a,br[0]=n,br[1]=a;break;case xt.L:Wh(e,i,t[o],t[o+1],Sr,br),e=t[o++],i=t[o++];break;case xt.C:lg(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Sr,br),e=t[o++],i=t[o++];break;case xt.Q:ug(e,i,t[o++],t[o++],t[o],t[o+1],Sr,br),e=t[o++],i=t[o++];break;case xt.A:var u=t[o++],f=t[o++],h=t[o++],p=t[o++],c=t[o++],v=t[o++]+c;o+=1;var g=!t[o++];l&&(n=ln(c)*h+u,a=un(c)*p+f),fg(u,f,h,p,c,v,g,Sr,br),e=ln(v)*h+u,i=un(v)*p+f;break;case xt.R:n=e=t[o++],a=i=t[o++];var d=t[o++],m=t[o++];Wh(n,a,n+d,a+m,Sr,br);break;case xt.Z:e=n,i=a;break}Fe(xr,xr,Sr),Ve(oi,oi,br)}return o===0&&(xr[0]=xr[1]=oi[0]=oi[1]=0),new J(xr[0],xr[1],oi[0]-xr[0],oi[1]-xr[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,p=0;p<e;){var c=t[p++],v=p===1;v&&(a=t[p],o=t[p+1],s=a,l=o);var g=-1;switch(c){case xt.M:a=s=t[p++],o=l=t[p++];break;case xt.L:{var d=t[p++],m=t[p++],y=d-a,_=m-o;(Ur(y)>i||Ur(_)>n||p===e-1)&&(g=Math.sqrt(y*y+_*_),a=d,o=m);break}case xt.C:{var x=t[p++],b=t[p++],d=t[p++],m=t[p++],S=t[p++],T=t[p++];g=Jd(a,o,x,b,d,m,S,T,10),a=S,o=T;break}case xt.Q:{var x=t[p++],b=t[p++],d=t[p++],m=t[p++];g=rm(a,o,x,b,d,m,10),a=d,o=m;break}case xt.A:var C=t[p++],A=t[p++],M=t[p++],D=t[p++],E=t[p++],L=t[p++],I=L+E;p+=1,v&&(s=ln(E)*M+C,l=un(E)*D+A),g=Xh(M,D)*Yh(si,Math.abs(L)),a=ln(I)*M+C,o=un(I)*D+A;break;case xt.R:{s=a=t[p++],l=o=t[p++];var O=t[p++],k=t[p++];g=O*2+k*2;break}case xt.Z:{var y=s-a,_=l-o;g=Math.sqrt(y*y+_*_),a=s,o=l;break}}g>=0&&(u[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,h,p,c=e<1,v,g,d=0,m=0,y,_=0,x,b;if(!(c&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,y=e*g,!y)))t:for(var S=0;S<o;){var T=i[S++],C=S===1;switch(C&&(u=i[S],f=i[S+1],s=u,l=f),T!==xt.L&&_>0&&(t.lineTo(x,b),_=0),T){case xt.M:s=u=i[S++],l=f=i[S++],t.moveTo(u,f);break;case xt.L:{h=i[S++],p=i[S++];var A=Ur(h-u),M=Ur(p-f);if(A>n||M>a){if(c){var D=v[m++];if(d+D>y){var E=(y-d)/D;t.lineTo(u*(1-E)+h*E,f*(1-E)+p*E);break t}d+=D}t.lineTo(h,p),u=h,f=p,_=0}else{var L=A*A+M*M;L>_&&(x=h,b=p,_=L)}break}case xt.C:{var I=i[S++],O=i[S++],k=i[S++],W=i[S++],B=i[S++],F=i[S++];if(c){var D=v[m++];if(d+D>y){var E=(y-d)/D;Jn(u,I,k,B,E,on),Jn(f,O,W,F,E,sn),t.bezierCurveTo(on[1],sn[1],on[2],sn[2],on[3],sn[3]);break t}d+=D}t.bezierCurveTo(I,O,k,W,B,F),u=B,f=F;break}case xt.Q:{var I=i[S++],O=i[S++],k=i[S++],W=i[S++];if(c){var D=v[m++];if(d+D>y){var E=(y-d)/D;ta(u,I,k,E,on),ta(f,O,W,E,sn),t.quadraticCurveTo(on[1],sn[1],on[2],sn[2]);break t}d+=D}t.quadraticCurveTo(I,O,k,W),u=k,f=W;break}case xt.A:var H=i[S++],Z=i[S++],j=i[S++],ct=i[S++],yt=i[S++],Vt=i[S++],bt=i[S++],ge=!i[S++],Ae=j>ct?j:ct,Qt=Ur(j-ct)>.001,Et=yt+Vt,nt=!1;if(c){var D=v[m++];d+D>y&&(Et=yt+Vt*(y-d)/D,nt=!0),d+=D}if(Qt&&t.ellipse?t.ellipse(H,Z,j,ct,bt,yt,Et,ge):t.arc(H,Z,Ae,yt,Et,ge),nt)break t;C&&(s=ln(yt)*j+H,l=un(yt)*ct+Z),u=ln(Et)*j+H,f=un(Et)*ct+Z;break;case xt.R:s=u=i[S],l=f=i[S+1],h=i[S++],p=i[S++];var ft=i[S++],pr=i[S++];if(c){var D=v[m++];if(d+D>y){var Gt=y-d;t.moveTo(h,p),t.lineTo(h+Yh(Gt,ft),p),Gt-=ft,Gt>0&&t.lineTo(h+ft,p+Yh(Gt,pr)),Gt-=pr,Gt>0&&t.lineTo(h+Xh(ft-Gt,0),p+pr),Gt-=ft,Gt>0&&t.lineTo(h,p+Xh(pr-Gt,0));break t}d+=D}t.rect(h,p,ft,pr);break;case xt.Z:if(c){var D=v[m++];if(d+D>y){var E=(y-d)/D;t.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break t}d+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=xt,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})(),fe=kT;function fn(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-i)/(r-e),u=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function hg(r,t,e,i,n,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||u>r+h&&u>e+h&&u>n+h&&u>o+h||u<r-h&&u<e-h&&u<n-h&&u<o-h)return!1;var p=$d(r,t,e,i,n,a,o,s,u,f,null);return p<=h/2}function cg(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>i+u&&l>a+u||l<t-u&&l<i-u&&l<a-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var f=em(r,t,e,i,n,a,s,l,null);return f<=u/2}var pg=Math.PI*2;function Co(r){return r%=pg,r<0&&(r+=pg),r}var Do=Math.PI*2;function vg(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(i-n)%Do<1e-4)return!0;if(a){var h=i;i=Co(n),n=Co(h)}else i=Co(i),n=Co(n);i>n&&(n+=Do);var p=Math.atan2(l,s);return p<0&&(p+=Do),p>=i&&p<=n||p+Do>=i&&p+Do<=n}function je(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var li=fe.CMD,hn=Math.PI*2,VT=1e-4;function GT(r,t){return Math.abs(r-t)<VT}var he=[-1,-1,-1],Qe=[-1,-1];function HT(){var r=Qe[0];Qe[0]=Qe[1],Qe[1]=r}function WT(r,t,e,i,n,a,o,s,l,u){if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var f=Hi(t,i,a,s,u,he);if(f===0)return 0;for(var h=0,p=-1,c=void 0,v=void 0,g=0;g<f;g++){var d=he[g],m=d===0||d===1?.5:1,y=Ct(r,e,n,o,d);y<l||(p<0&&(p=js(t,i,a,s,Qe),Qe[1]<Qe[0]&&p>1&&HT(),c=Ct(t,i,a,s,Qe[0]),p>1&&(v=Ct(t,i,a,s,Qe[1]))),p===2?d<Qe[0]?h+=c<t?m:-m:d<Qe[1]?h+=v<c?m:-m:h+=s<v?m:-m:d<Qe[0]?h+=c<t?m:-m:h+=s<c?m:-m)}return h}function YT(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=tm(t,i,a,s,he);if(l===0)return 0;var u=Qs(t,i,a);if(u>=0&&u<=1){for(var f=0,h=zt(t,i,a,u),p=0;p<l;p++){var c=he[p]===0||he[p]===1?.5:1,v=zt(r,e,n,he[p]);v<o||(he[p]<u?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=he[0]===0||he[0]===1?.5:1,v=zt(r,e,n,he[0]);return v<o?0:a<t?c:-c}}function XT(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);he[0]=-l,he[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=hn-1e-4){i=0,n=hn;var f=a?1:-1;return o>=he[0]+r&&o<=he[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=hn,n+=hn);for(var p=0,c=0;c<2;c++){var v=he[c];if(v+r>o){var g=Math.atan2(s,v),f=a?1:-1;g<0&&(g=hn+g),(g>=i&&g<=n||g+hn>=i&&g+hn<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),p+=f)}}return p}function dg(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,p,c,v=0;v<o;){var g=a[v++],d=v===1;switch(g===li.M&&v>1&&(e||(s+=je(l,u,f,h,i,n))),d&&(l=a[v],u=a[v+1],f=l,h=u),g){case li.M:f=a[v++],h=a[v++],l=f,u=h;break;case li.L:if(e){if(fn(l,u,a[v],a[v+1],t,i,n))return!0}else s+=je(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case li.C:if(e){if(hg(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,i,n))return!0}else s+=WT(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case li.Q:if(e){if(cg(l,u,a[v++],a[v++],a[v],a[v+1],t,i,n))return!0}else s+=YT(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case li.A:var m=a[v++],y=a[v++],_=a[v++],x=a[v++],b=a[v++],S=a[v++];v+=1;var T=!!(1-a[v++]);p=Math.cos(b)*_+m,c=Math.sin(b)*x+y,d?(f=p,h=c):s+=je(l,u,p,c,i,n);var C=(i-m)*x/_+m;if(e){if(vg(m,y,x,b,b+S,T,t,C,n))return!0}else s+=XT(m,y,x,b,b+S,T,C,n);l=Math.cos(b+S)*_+m,u=Math.sin(b+S)*x+y;break;case li.R:f=l=a[v++],h=u=a[v++];var A=a[v++],M=a[v++];if(p=f+A,c=h+M,e){if(fn(f,h,p,h,t,i,n)||fn(p,h,p,c,t,i,n)||fn(p,c,f,c,t,i,n)||fn(f,c,f,h,t,i,n))return!0}else s+=je(p,h,p,c,i,n),s+=je(f,c,f,h,i,n);break;case li.Z:if(e){if(fn(l,u,f,h,t,i,n))return!0}else s+=je(l,u,f,h,i,n);l=f,u=h;break}}return!e&&!GT(u,h)&&(s+=je(l,u,f,h,i,n)||0),s!==0}function mg(r,t,e){return dg(r,0,!1,t,e)}function gg(r,t,e,i){return dg(r,t,!0,e,i)}var $h=q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},yr),ZT={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nn.style)},Qh=ji.concat(["invisible","culling","z","z2","zlevel","parent"]),KT=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Qh.length;++s)n[Qh[s]]=this[Qh[s]];n.__dirty|=Nt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=st(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?R(this.style,s):this.useStyle(s):o==="shape"?R(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(z(e)){var i=Yi(e,0);return i>.5?mo:i>.2?bm:go}else if(e)return go}return mo},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(z(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Yi(e,0)<vo;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Jr},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new fe(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Jr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.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 e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){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)),gg(s,l/u,e,i)))return!0}if(this.hasFill())return mg(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Jr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:R(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Jr)},t.prototype.createStyle=function(e){return Pr($h,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=R({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=R({},n.shape),R(u,i.shape)):(u=R({},a?this.shape:n.shape),R(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=R({},this.shape);for(var f={},h=st(u),p=0;p<h.length;p++){var c=h[p];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return ZT},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){P(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return $(e.style)},o.prototype.getDefaultShape=function(){return $(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Nt|Gi|Jr})(),t})(_r),tt=KT;var jT=q({strokeFirst:!0,font:ir,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},$h),yg=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return i!=null&&i!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Pr(jT,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=ia(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(_r);yg.prototype.type="tspan";var Ao=yg;var QT=q({x:0,y:0},yr),$T={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nn.style)};function JT(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var _g=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Pr(QT,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=JT(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return $T},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(_r);_g.prototype.type="image";var Se=_g;function xg(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),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>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var ca=Math.round;function Tl(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(ca(i*2)===ca(n*2)&&(r.x1=r.x2=ui(i,s,!0)),ca(a*2)===ca(o*2)&&(r.y1=r.y2=ui(a,s,!0))),r}}function Cl(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=ui(i,s,!0),r.y=ui(n,s,!0),r.width=Math.max(ui(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(ui(n+o,s,!1)-r.y,o===0?0:1)),r}}function ui(r,t,e){if(!t)return r;var i=ca(r*2);return(i+ca(t))%2===0?i/2:(i+(e?1:-1))/2}var rC=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})();var iC={},Sg=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new rC},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=Cl(iC,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?xg(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(tt);Sg.prototype.type="rect";var vt=Sg;var bg={fill:"#000"},wg=2,nC={style:q({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},nn.style)},Pg=(function(r){P(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=bg,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,uC(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new J(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||bg},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return R(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=st(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},R(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return nC},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||ir,n=e.padding,a=Lg(e),o=rg(a,e),s=Jh(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,p=o.lines,c=o.lineHeight,v=this._defaultStyle,g=e.x||0,d=e.y||0,m=e.align||v.align||"left",y=e.verticalAlign||v.verticalAlign||"top",_=g,x=Qi(d,o.contentHeight,y);if(s||n){var b=na(g,f,m),S=Qi(d,u,y);s&&this._renderBackground(e,e,b,S,f,u)}x+=c/2,n&&(_=Eg(g,m,n),y==="top"?x+=n[0]:y==="bottom"&&(x-=n[2]));for(var T=0,C=!1,A=Mg("fill"in e?e.fill:(C=!0,v.fill)),M=Ag("stroke"in e?e.stroke:!l&&(!v.autoStroke||C)?(T=wg,v.stroke):null),D=e.textShadowBlur>0,E=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,I=0;I<p.length;I++){var O=this._getOrCreateChild(Ao),k=O.createStyle();O.useStyle(k),k.text=p[I],k.x=_,k.y=x,m&&(k.textAlign=m),k.textBaseline="middle",k.opacity=e.opacity,k.strokeFirst=!0,D&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||"transparent",k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=M,k.fill=A,M&&(k.lineWidth=e.lineWidth||T,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=i,Cg(k,e),x+=c,E&&O.setBoundingRect(new J(na(k.x,e.width,k.textAlign),Qi(k.y,L,k.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,i=Lg(e),n=ig(i,e),a=n.width,o=n.outerWidth,s=n.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,p=e.align||h.align,c=e.verticalAlign||h.verticalAlign,v=na(u,o,p),g=Qi(f,s,c),d=v,m=g;l&&(d+=l[3],m+=l[0]);var y=d+a;Jh(e)&&this._renderBackground(e,e,v,g,o,s);for(var _=!!e.backgroundColor,x=0;x<n.lines.length;x++){for(var b=n.lines[x],S=b.tokens,T=S.length,C=b.lineHeight,A=b.width,M=0,D=d,E=y,L=T-1,I=void 0;M<T&&(I=S[M],!I.align||I.align==="left");)this._placeToken(I,e,C,m,D,"left",_),A-=I.width,D+=I.width,M++;for(;L>=0&&(I=S[L],I.align==="right");)this._placeToken(I,e,C,m,E,"right",_),A-=I.width,E-=I.width,L--;for(D+=(a-(D-d)-(y-E)-A)/2;M<=L;)I=S[M],this._placeToken(I,e,C,m,D+I.width/2,"center",_),D+=I.width,M++;m+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var p=!e.isLineHolder&&Jh(u);p&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!u.backgroundColor,v=e.textPadding;v&&(o=Eg(o,s,v),h-=e.height/2-v[0]-e.innerHeight/2);var g=this._getOrCreateChild(Ao),d=g.createStyle();g.useStyle(d);var m=this._defaultStyle,y=!1,_=0,x=Mg("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,m.fill)),b=Ag("stroke"in u?u.stroke:"stroke"in i?i.stroke:!c&&!l&&(!m.autoStroke||y)?(_=wg,m.stroke):null),S=u.textShadowBlur>0||i.textShadowBlur>0;d.text=e.text,d.x=o,d.y=h,S&&(d.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,d.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=e.font||ir,d.opacity=vr(u.opacity,i.opacity,1),Cg(d,u),b&&(d.lineWidth=vr(u.lineWidth,i.lineWidth,_),d.lineDash=K(u.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=b),x&&(d.fill=x);var T=e.contentWidth,C=e.contentHeight;g.setBoundingRect(new J(na(d.x,T,d.textAlign),Qi(d.y,C,d.textBaseline),T,C))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,p=l&&!h,c=e.borderRadius,v=this,g,d;if(p||e.lineHeight||u&&f){g=this._getOrCreateChild(vt),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=n,m.y=a,m.width=o,m.height=s,m.r=c,g.dirtyShape()}if(p){var y=g.style;y.fill=l||null,y.fillOpacity=K(e.fillOpacity,1)}else if(h){d=this._getOrCreateChild(Se),d.onload=function(){v.dirtyStyle()};var _=d.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=g.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=K(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(g||d).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=vr(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return lC(e)&&(i=[e.fontStyle,e.fontWeight,sC(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Yt(i)||e.textFont||e.font},t})(_r),aC={left:!0,right:1,center:1},oC={top:1,bottom:1,middle:1},Tg=["fontStyle","fontWeight","fontSize","fontFamily"];function sC(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Is+"px":r+"px"}function Cg(r,t){for(var e=0;e<Tg.length;e++){var i=Tg[e],n=t[i];n!=null&&(r[i]=n)}}function lC(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function uC(r){return Dg(r),w(r.rich,Dg),r}function Dg(r){if(r){r.font=Pg.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||aC[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||oC[e]?e:"top";var i=r.padding;i&&(r.padding=Ja(r.padding))}}function Ag(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Mg(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Eg(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Lg(r){var t=r.text;return t!=null&&(t+=""),t}function Jh(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var mt=Pg;var ot=ut(),Ig=function(r,t,e,i){if(i){var n=ot(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=ot(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}};var Og=1,Rg={},Ug=ut(),rc=ut(),ic=0,Mo=1,Eo=2,ce=["emphasis","blur","select"],va=["normal","emphasis","blur","select"],fC=10,hC=9,fi="highlight",Lo="downplay",da="select",Po="unselect",ma="toggleSelect";function pa(r){return r!=null&&r!=="none"}function Al(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Fg(r){Al(r,"emphasis",Eo)}function Vg(r){r.hoverState===Eo&&Al(r,"normal",ic)}function nc(r){Al(r,"blur",Mo)}function Gg(r){r.hoverState===Mo&&Al(r,"normal",ic)}function cC(r){r.selected=!0}function pC(r){r.selected=!1}function Ng(r,t,e){t(r,e)}function Fr(r,t,e){Ng(r,t,e),r.isGroup&&r.traverse(function(i){Ng(i,t,e)})}function ac(r,t){switch(t){case"emphasis":r.hoverState=Eo;break;case"normal":r.hoverState=ic;break;case"blur":r.hoverState=Mo;break;case"select":r.selected=!0}}function vC(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function dC(r,t,e,i){var n=e&&it(e,"select")>=0,a=!1;if(r instanceof tt){var o=Ug(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(pa(s)||pa(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=R({},i),u=R({},u),u.fill=s):!pa(u.fill)&&pa(s)?(a=!0,i=R({},i),u=R({},u),u.fill=el(s)):!pa(u.stroke)&&pa(l)&&(a||(i=R({},i),u=R({},u)),u.stroke=el(l)),i.style=u}}if(i&&i.z2==null){a||(i=R({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??fC)}return i}function mC(r,t,e){if(e&&e.z2==null){e=R({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??hC)}return e}function gC(r,t,e){var i=it(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:vC(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=R({},e),o=R({opacity:i?n:a.opacity*.1},o),e.style=o),e}function tc(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return dC(this,r,t,e);if(r==="blur")return gC(this,r,e);if(r==="select")return mC(this,r,e)}return e}function yC(r){r.stateProxy=tc;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=tc),e&&(e.stateProxy=tc)}function kg(r,t){!Wg(r,t)&&!r.__highByOuter&&Fr(r,Fg)}function zg(r,t){!Wg(r,t)&&!r.__highByOuter&&Fr(r,Vg)}function cn(r,t){r.__highByOuter|=1<<(t||0),Fr(r,Fg)}function pn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Fr(r,Vg)}function Hg(r){Fr(r,nc)}function oc(r){Fr(r,Gg)}function sc(r){Fr(r,cC)}function lc(r){Fr(r,pC)}function Wg(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function uc(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=rc(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){Gg(u)}),s&&e.push(a)),o.isBlured=!1}),w(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function ec(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var p=u.getItemGraphicEl(f[h]);p&&oc(p)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var p=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!p||t==="series"&&f)){var c=i.getViewOfSeriesModel(u);if(c.group.traverse(function(d){d.__highByOuter&&f&&t==="self"||nc(d)}),Lt(t))a(u.getData(),t);else if(V(t))for(var v=st(t),g=0;g<v.length;g++)a(u.getData(v[g]),t[v[g]]);l.push(u),rc(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function Dl(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){rc(i).isBlured=!0;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){nc(a)})}}}function Yg(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(n){var a=qe(n,t);a=(N(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ot(o);ec(i,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&ec(i,f,h,e)}}}function Ml(r,t,e,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var a=i.getModel().getComponent(r,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ot(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Xg(r,t,e){var i=ot(r),n=Ml(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&Dl(i.componentMainType,i.componentIndex,e),w(a,function(s){return kg(s,t)})):(ec(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&Dl(i.componentMainType,i.componentIndex,e),kg(r,t))}function qg(r,t,e){uc(e);var i=ot(r),n=Ml(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?w(n,function(a){return zg(a,t)}):zg(r,t)}function Zg(r,t,e){if(El(t)){var i=t.dataType,n=r.getData(i),a=qe(n,t);N(a)||(a=[a]),r[t.type===ma?"toggleSelect":t.type===da?"select":"unselect"](a,i)}}function fc(r){var t=r.getAllData();w(t,function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?sc(a):lc(a)})})}function Kg(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();w(i,function(n){var a=n.data,o=n.type,s=e.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:e.seriesIndex};o!=null&&(l.dataType=o),t.push(l)}})}),t}function ga(r,t,e){jg(r,!0),Fr(r,yC),xC(r,t,e)}function _C(r){jg(r,!1)}function Vr(r,t,e,i){i?_C(r):ga(r,t,e)}function xC(r,t,e){var i=ot(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var Bg=["emphasis","blur","select"],SC={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vn(r,t,e,i){e=e||"itemStyle";for(var n=0;n<Bg.length;n++){var a=Bg[n],o=t.getModel([a,e]),s=r.ensureState(a);s.style=i?i(o):o[SC[e]]()}}function jg(r,t){var e=t===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function Io(r){return!!(r&&r.__highDownDispatcher)}function Qg(r){var t=Rg[r];return t==null&&Og<=32&&(t=Rg[r]=Og++),t}function El(r){var t=r.type;return t===da||t===Po||t===ma}function hc(r){var t=r.type;return t===fi||t===Lo}function $g(r){var t=Ug(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Bt={};Me(Bt,{Arc:()=>gn,BezierCurve:()=>Uo,BoundingRect:()=>J,Circle:()=>dn,CompoundPath:()=>Rl,Ellipse:()=>Ro,Group:()=>dt,Image:()=>Se,IncrementalDisplayable:()=>Ul,Line:()=>Pe,LinearGradient:()=>xa,OrientedBoundingRect:()=>Sa,Path:()=>tt,Point:()=>et,Polygon:()=>Bo,Polyline:()=>Gr,RadialGradient:()=>kl,Rect:()=>vt,Ring:()=>zo,Sector:()=>Le,Text:()=>mt,applyTransform:()=>Hl,clipPointsByRect:()=>Dc,clipRectByRect:()=>Ac,createIcon:()=>wn,extendPath:()=>Sc,extendShape:()=>xc,getShapeClass:()=>bc,getTransform:()=>Tc,groupTransition:()=>Cc,initProps:()=>kt,isElementRemoved:()=>xn,lineLineIntersect:()=>Ay,linePolygonIntersect:()=>rD,makeImage:()=>Fo,makePath:()=>Ta,mergePath:()=>wc,registerShape:()=>Ie,removeElement:()=>ba,removeElementWithFadeOut:()=>Sn,resizePath:()=>Gl,setTooltipConfig:()=>Vo,subPixelOptimize:()=>JC,subPixelOptimizeLine:()=>bn,subPixelOptimizeRect:()=>$C,transformDirection:()=>tD,traverseElements:()=>Tn,updateProps:()=>Tt});var ya=fe.CMD,bC=[[],[],[]],Jg=Math.sqrt,wC=Math.atan2;function cc(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,l,u,f=ya.M,h=ya.C,p=ya.L,c=ya.R,v=ya.A,g=ya.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case h:a=3;break;case g:a=2;break;case v:var d=t[4],m=t[5],y=Jg(t[0]*t[0]+t[1]*t[1]),_=Jg(t[2]*t[2]+t[3]*t[3]),x=wC(-t[1]/_,t[0]/y);e[o]*=y,e[o++]+=d,e[o]*=_,e[o++]+=m,e[o++]*=y,e[o++]*=_,e[o++]+=x,e[o++]+=x,o+=2,s=o;break;case c:u[0]=e[o++],u[1]=e[o++],Pt(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Pt(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var b=bC[l];b[0]=e[o++],b[1]=e[o++],Pt(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var pc=Math.sqrt,Ll=Math.sin,Pl=Math.cos,Oo=Math.PI;function ty(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function vc(r,t){return(r[0]*t[0]+r[1]*t[1])/(ty(r)*ty(t))}function ey(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(vc(r,t))}function ry(r,t,e,i,n,a,o,s,l,u,f){var h=l*(Oo/180),p=Pl(h)*(r-e)/2+Ll(h)*(t-i)/2,c=-1*Ll(h)*(r-e)/2+Pl(h)*(t-i)/2,v=p*p/(o*o)+c*c/(s*s);v>1&&(o*=pc(v),s*=pc(v));var g=(n===a?-1:1)*pc((o*o*(s*s)-o*o*(c*c)-s*s*(p*p))/(o*o*(c*c)+s*s*(p*p)))||0,d=g*o*c/s,m=g*-s*p/o,y=(r+e)/2+Pl(h)*d-Ll(h)*m,_=(t+i)/2+Ll(h)*d+Pl(h)*m,x=ey([1,0],[(p-d)/o,(c-m)/s]),b=[(p-d)/o,(c-m)/s],S=[(-1*p-d)/o,(-1*c-m)/s],T=ey(b,S);if(vc(b,S)<=-1&&(T=Oo),vc(b,S)>=1&&(T=0),T<0){var C=Math.round(T/Oo*1e6)/1e6;T=Oo*2+C%2*Oo}f.addData(u,y,_,o,s,x,T,h,a)}var TC=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,CC=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function DC(r){var t=new fe;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=fe.CMD,l=r.match(TC);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),p=void 0,c=f.match(CC)||[],v=c.length,g=0;g<v;g++)c[g]=parseFloat(c[g]);for(var d=0;d<v;){var m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,S=void 0,T=void 0,C=e,A=i,M=void 0,D=void 0;switch(h){case"l":e+=c[d++],i+=c[d++],p=s.L,t.addData(p,e,i);break;case"L":e=c[d++],i=c[d++],p=s.L,t.addData(p,e,i);break;case"m":e+=c[d++],i+=c[d++],p=s.M,t.addData(p,e,i),n=e,a=i,h="l";break;case"M":e=c[d++],i=c[d++],p=s.M,t.addData(p,e,i),n=e,a=i,h="L";break;case"h":e+=c[d++],p=s.L,t.addData(p,e,i);break;case"H":e=c[d++],p=s.L,t.addData(p,e,i);break;case"v":i+=c[d++],p=s.L,t.addData(p,e,i);break;case"V":i=c[d++],p=s.L,t.addData(p,e,i);break;case"C":p=s.C,t.addData(p,c[d++],c[d++],c[d++],c[d++],c[d++],c[d++]),e=c[d-2],i=c[d-1];break;case"c":p=s.C,t.addData(p,c[d++]+e,c[d++]+i,c[d++]+e,c[d++]+i,c[d++]+e,c[d++]+i),e+=c[d-2],i+=c[d-1];break;case"S":m=e,y=i,M=t.len(),D=t.data,o===s.C&&(m+=e-D[M-4],y+=i-D[M-3]),p=s.C,C=c[d++],A=c[d++],e=c[d++],i=c[d++],t.addData(p,m,y,C,A,e,i);break;case"s":m=e,y=i,M=t.len(),D=t.data,o===s.C&&(m+=e-D[M-4],y+=i-D[M-3]),p=s.C,C=e+c[d++],A=i+c[d++],e+=c[d++],i+=c[d++],t.addData(p,m,y,C,A,e,i);break;case"Q":C=c[d++],A=c[d++],e=c[d++],i=c[d++],p=s.Q,t.addData(p,C,A,e,i);break;case"q":C=c[d++]+e,A=c[d++]+i,e+=c[d++],i+=c[d++],p=s.Q,t.addData(p,C,A,e,i);break;case"T":m=e,y=i,M=t.len(),D=t.data,o===s.Q&&(m+=e-D[M-4],y+=i-D[M-3]),e=c[d++],i=c[d++],p=s.Q,t.addData(p,m,y,e,i);break;case"t":m=e,y=i,M=t.len(),D=t.data,o===s.Q&&(m+=e-D[M-4],y+=i-D[M-3]),e+=c[d++],i+=c[d++],p=s.Q,t.addData(p,m,y,e,i);break;case"A":_=c[d++],x=c[d++],b=c[d++],S=c[d++],T=c[d++],C=e,A=i,e=c[d++],i=c[d++],p=s.A,ry(C,A,e,i,S,T,_,x,b,p,t);break;case"a":_=c[d++],x=c[d++],b=c[d++],S=c[d++],T=c[d++],C=e,A=i,e+=c[d++],i+=c[d++],p=s.A,ry(C,A,e,i,S,T,_,x,b,p,t);break}}(h==="z"||h==="Z")&&(p=s.Z,t.addData(p),e=n,i=a),o=p}return t.toStatic(),t}var iy=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(tt);function ny(r){return r.setData!=null}function ay(r,t){var e=DC(r),i=R({},t);return i.buildPath=function(n){if(ny(n)){n.setData(e.data);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=n;e.rebuildPath(a,1)}},i.applyTransform=function(n){cc(e,n),this.dirtyShape()},i}function oy(r,t){return new iy(ay(r,t))}function sy(r,t){var e=ay(r,t),i=(function(n){P(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(iy);return i}function ly(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new tt(t);return o.createPathProxy(),o.buildPath=function(s){if(ny(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var MC=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})();var uy=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new MC},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(tt);uy.prototype.type="circle";var dn=uy;var EC=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})();var fy=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new EC},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t})(tt);fy.prototype.type="ellipse";var Ro=fy;var cy=Math.PI,dc=cy*2,mn=Math.sin,_a=Math.cos,LC=Math.acos,ne=Math.atan2,hy=Math.abs,ko=Math.sqrt,No=Math.max,wr=Math.min,lr=1e-4;function PC(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,p=h*l-f*u;if(!(p*p<lr))return p=(f*(t-a)-h*(r-n))/p,[r+p*l,t+p*u]}function Il(r,t,e,i,n,a,o){var s=r-e,l=t-i,u=(o?a:-a)/ko(s*s+l*l),f=u*l,h=-u*s,p=r+f,c=t+h,v=e+f,g=i+h,d=(p+v)/2,m=(c+g)/2,y=v-p,_=g-c,x=y*y+_*_,b=n-a,S=p*g-v*c,T=(_<0?-1:1)*ko(No(0,b*b*x-S*S)),C=(S*_-y*T)/x,A=(-S*y-_*T)/x,M=(S*_+y*T)/x,D=(-S*y+_*T)/x,E=C-d,L=A-m,I=M-d,O=D-m;return E*E+L*L>I*I+O*O&&(C=M,A=D),{cx:C,cy:A,x0:-f,y0:-h,x1:C*(n/b-1),y1:A*(n/b-1)}}function IC(r){var t;if(N(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function py(r,t){var e,i=No(t.r,0),n=No(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,p=!!t.clockwise,c=hy(u-l),v=c>dc&&c%dc;if(v>lr&&(c=v),!(i>lr))r.moveTo(f,h);else if(c>dc-lr)r.moveTo(f+i*_a(l),h+i*mn(l)),r.arc(f,h,i,l,u,!p),n>lr&&(r.moveTo(f+n*_a(u),h+n*mn(u)),r.arc(f,h,n,u,l,p));else{var g=void 0,d=void 0,m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,S=void 0,T=void 0,C=void 0,A=void 0,M=void 0,D=void 0,E=void 0,L=void 0,I=void 0,O=i*_a(l),k=i*mn(l),W=n*_a(u),B=n*mn(u),F=c>lr;if(F){var H=t.cornerRadius;H&&(e=IC(H),g=e[0],d=e[1],m=e[2],y=e[3]);var Z=hy(i-n)/2;if(_=wr(Z,m),x=wr(Z,y),b=wr(Z,g),S=wr(Z,d),A=T=No(_,x),M=C=No(b,S),(T>lr||C>lr)&&(D=i*_a(u),E=i*mn(u),L=n*_a(l),I=n*mn(l),c<cy)){var j=PC(O,k,L,I,D,E,W,B);if(j){var ct=O-j[0],yt=k-j[1],Vt=D-j[0],bt=E-j[1],ge=1/mn(LC((ct*Vt+yt*bt)/(ko(ct*ct+yt*yt)*ko(Vt*Vt+bt*bt)))/2),Ae=ko(j[0]*j[0]+j[1]*j[1]);A=wr(T,(i-Ae)/(ge+1)),M=wr(C,(n-Ae)/(ge-1))}}}if(!F)r.moveTo(f+O,h+k);else if(A>lr){var Qt=wr(m,A),Et=wr(y,A),nt=Il(L,I,O,k,i,Qt,p),ft=Il(D,E,W,B,i,Et,p);r.moveTo(f+nt.cx+nt.x0,h+nt.cy+nt.y0),A<T&&Qt===Et?r.arc(f+nt.cx,h+nt.cy,A,ne(nt.y0,nt.x0),ne(ft.y0,ft.x0),!p):(Qt>0&&r.arc(f+nt.cx,h+nt.cy,Qt,ne(nt.y0,nt.x0),ne(nt.y1,nt.x1),!p),r.arc(f,h,i,ne(nt.cy+nt.y1,nt.cx+nt.x1),ne(ft.cy+ft.y1,ft.cx+ft.x1),!p),Et>0&&r.arc(f+ft.cx,h+ft.cy,Et,ne(ft.y1,ft.x1),ne(ft.y0,ft.x0),!p))}else r.moveTo(f+O,h+k),r.arc(f,h,i,l,u,!p);if(!(n>lr)||!F)r.lineTo(f+W,h+B);else if(M>lr){var Qt=wr(g,M),Et=wr(d,M),nt=Il(W,B,D,E,n,-Et,p),ft=Il(O,k,L,I,n,-Qt,p);r.lineTo(f+nt.cx+nt.x0,h+nt.cy+nt.y0),M<C&&Qt===Et?r.arc(f+nt.cx,h+nt.cy,M,ne(nt.y0,nt.x0),ne(ft.y0,ft.x0),!p):(Et>0&&r.arc(f+nt.cx,h+nt.cy,Et,ne(nt.y0,nt.x0),ne(nt.y1,nt.x1),!p),r.arc(f,h,n,ne(nt.cy+nt.y1,nt.cx+nt.x1),ne(ft.cy+ft.y1,ft.cx+ft.x1),p),Qt>0&&r.arc(f+ft.cx,h+ft.cy,Qt,ne(ft.y1,ft.x1),ne(ft.y0,ft.x0),!p))}else r.lineTo(f+W,h+B),r.arc(f,h,n,u,l,p)}r.closePath()}}}var RC=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})();var vy=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new RC},t.prototype.buildPath=function(e,i){py(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(tt);vy.prototype.type="sector";var Le=vy;var NC=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})();var dy=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new NC},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t})(tt);dy.prototype.type="ring";var zo=dy;function mc(r,t,e,i){var n=[],a=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,c=r.length;p<c;p++)Fe(f,f,r[p]),Ve(h,h,r[p]);Fe(f,f,i[0]),Ve(h,h,i[1])}for(var p=0,c=r.length;p<c;p++){var v=r[p];if(e)l=r[p?p-1:c-1],u=r[(p+1)%c];else if(p===0||p===c-1){n.push(zf(r[p]));continue}else l=r[p-1],u=r[p+1];Bf(a,u,l),eo(a,a,t);var g=ro(v,l),d=ro(v,u),m=g+d;m!==0&&(g/=m,d/=m),eo(o,a,-g),eo(s,a,d);var y=zs([],v,o),_=zs([],v,s);i&&(Ve(y,y,f),Fe(y,y,h),Ve(_,_,f),Fe(_,_,h)),n.push(y),n.push(_)}return e&&n.push(n.shift()),n}function Ol(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=mc(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var kC=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})();var gy=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new kC},t.prototype.buildPath=function(e,i){Ol(e,i,!0)},t})(tt);gy.prototype.type="polygon";var Bo=gy;var zC=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})();var yy=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zC},t.prototype.buildPath=function(e,i){Ol(e,i,!1)},t})(tt);yy.prototype.type="polyline";var Gr=yy;var BC={},UC=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();var _y=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new UC},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=Tl(BC,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})(tt);_y.prototype.type="line";var Pe=_y;var be=[],FC=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function xy(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?th:Ct)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?th:Ct)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?eh:zt)(r.x1,r.cpx1,r.x2,t),(e?eh:zt)(r.y1,r.cpy1,r.y2,t)]}var Sy=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new FC},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,h=i.cpy2,p=i.percent;p!==0&&(e.moveTo(n,a),f==null||h==null?(p<1&&(ta(n,l,o,p,be),l=be[1],o=be[2],ta(a,u,s,p,be),u=be[1],s=be[2]),e.quadraticCurveTo(l,u,o,s)):(p<1&&(Jn(n,l,f,o,p,be),l=be[1],f=be[2],o=be[3],Jn(a,u,h,s,p,be),u=be[1],h=be[2],s=be[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return xy(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=xy(this.shape,e,!0);return Vf(i,i)},t})(tt);Sy.prototype.type="bezier-curve";var Uo=Sy;var VC=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})();var by=(function(r){P(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new VC},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,l,!u)},t})(tt);by.prototype.type="arc";var gn=by;var GC=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),tt.prototype.getBoundingRect.call(this)},t})(tt),Rl=GC;var HC=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),Nl=HC;var WC=(function(r){P(t,r);function t(e,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t})(Nl),xa=WC;var YC=(function(r){P(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(Nl),kl=YC;var yn=[0,0],_n=[0,0],zl=new et,Bl=new et,XC=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new et;for(var i=0;i<2;i++)this._axes[i]=new et;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),e)for(var u=0;u<4;u++)i[u].transform(e);et.sub(n[0],i[1],i[0]),et.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(t,e){var i=!0,n=!e;return zl.set(1/0,1/0),Bl.set(0,0),!this._intersectCheckOneSide(this,t,zl,Bl,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,zl,Bl,n,-1)&&(i=!1,n)||n||et.copy(e,i?zl:Bl),i},r.prototype._intersectCheckOneSide=function(t,e,i,n,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,yn),this._getProjMinMaxOnAxis(l,e._corners,_n),yn[1]<_n[0]||yn[0]>_n[1]){if(s=!1,a)return s;var f=Math.abs(_n[0]-yn[1]),h=Math.abs(yn[0]-_n[1]);Math.min(f,h)>n.len()&&(f<h?et.scale(n,u,-f*o):et.scale(n,u,h*o))}else if(i){var f=Math.abs(_n[0]-yn[1]),h=Math.abs(yn[0]-_n[1]);Math.min(f,h)<i.len()&&(f<h?et.scale(i,u,f*o):et.scale(i,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(n)+a[t];s=Math.min(f,s),l=Math.max(f,l)}i[0]=s,i[1]=l},r})(),Sa=XC;var qC=[],ZC=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new J(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(qC)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t})(_r),Ul=ZC;var KC=ut();function jC(r,t,e,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;i?(u=K(i.duration,200),f=K(i.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),G(h)&&(h=h(e,n)),G(u)&&(u=u(e));var p={duration:u||0,delay:h,easing:f};return p}else return null}function gc(r,t,e,i,n,a,o){var s=!1,l;G(n)?(o=a,a=n,n=null):V(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=jC(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,p=f.delay,c=f.easing,v={duration:h,delay:p||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,v):t.animateTo(e,v)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Tt(r,t,e,i,n,a){gc("update",r,t,e,i,n,a)}function kt(r,t,e,i,n,a){gc("enter",r,t,e,i,n,a)}function xn(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function ba(r,t,e,i,n,a){xn(r)||gc("leave",r,t,e,i,n,a)}function wy(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),ba(r,{style:{opacity:0}},t,e,i)}function Sn(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||wy(n,t,e,i)}):wy(r,t,e,i)}function wa(r){KC(r).oldStyle=r.style}var Fl=Math.max,Vl=Math.min,_c={};function xc(r){return tt.extend(r)}var QC=sy;function Sc(r,t){return QC(r,t)}function Ie(r,t){_c[r]=t}function bc(r){if(_c.hasOwnProperty(r))return _c[r]}function Ta(r,t,e,i){var n=oy(r,t);return e&&(i==="center"&&(e=Dy(e,n.getBoundingRect())),Gl(n,e)),n}function Fo(r,t,e){var i=new Se({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var a={width:n.width,height:n.height};i.setStyle(Dy(t,a))}}});return i}function Dy(r,t){var e=t.width/t.height,i=r.height*e,n;i<=r.width?n=r.height:(i=r.width,n=i/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var wc=ly;function Gl(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function bn(r,t){return Tl(r,r,{lineWidth:t}),r}function $C(r){return Cl(r.shape,r.shape,r.style),r}var JC=ui;function Tc(r,t){for(var e=Or([]);r&&r!==t;)Ge(e,r.getLocalTransform(),e),r=r.parent;return e}function Hl(r,t,e){return t&&!Lt(t)&&(t=yo.getLocalTransform(t)),e&&(t=Rr([],t)),Pt([],r,t)}function tD(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=Hl(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Ty(r){return!r.isGroup}function eD(r){return r.shape!=null}function Cc(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){Ty(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return eD(o)&&(s.shape=R({},o.shape)),s}var a=i(r);t.traverse(function(o){if(Ty(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Tt(o,l,e,ot(o).dataIndex)}}})}function Dc(r,t){return U(r,function(e){var i=e[0];i=Fl(i,t.x),i=Vl(i,t.x+t.width);var n=e[1];return n=Fl(n,t.y),n=Vl(n,t.y+t.height),[i,n]})}function Ac(r,t){var e=Fl(r.x,t.x),i=Vl(r.x+r.width,t.x+t.width),n=Fl(r.y,t.y),a=Vl(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function wn(r,t,e){var i=R({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),q(n,e),new Se(i)):Ta(r.replace("path://",""),i,e,"center")}function rD(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(Ay(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function Ay(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,p=yc(f,h,l,u);if(iD(p))return!1;var c=r-n,v=t-a,g=yc(c,v,l,u)/p;if(g<0||g>1)return!1;var d=yc(c,v,f,h)/p;return!(d<0||d>1)}function yc(r,t,e,i){return r*i-e*t}function iD(r){return r<=1e-6&&r>=-1e-6}function Vo(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=z(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&w(st(l),function(f){Ue(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ot(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:q({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Cy(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Tn(r,t){if(r)if(N(r))for(var e=0;e<r.length;e++)Cy(r[e],t);else Cy(r,t)}Ie("circle",dn);Ie("ellipse",Ro);Ie("sector",Le);Ie("ring",zo);Ie("polygon",Bo);Ie("polyline",Gr);Ie("rect",vt);Ie("line",Pe);Ie("bezierCurve",Uo);Ie("arc",gn);var Wl={};function nD(r,t){for(var e=0;e<ce.length;e++){var i=ce[e],n=t[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function My(r,t,e){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=G(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<ce.length;u++){var f=ce[u],h=t[f];l[f]=K(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return l}function Tr(r,t,e,i){e=e||Wl;for(var n=r instanceof mt,a=!1,o=0;o<va.length;o++){var s=t[va[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?r:r.getTextContent();if(a){n||(l||(l=new mt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=My(e,t),f=t.normal,h=!!f.getShallow("show"),p=we(f,i&&i.normal,e,!1,!n);p.text=u.normal,n||r.setTextConfig(Ey(f,e,!1));for(var o=0;o<ce.length;o++){var c=ce[o],s=t[c];if(s){var v=l.ensureState(c),g=!!K(s.getShallow("show"),h);if(g!==h&&(v.ignore=!g),v.style=we(s,i&&i[c],e,!0,!n),v.style.text=u[c],!n){var d=r.ensureState(c);d.textConfig=Ey(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!h,l.useStyle(p),l.dirty(),e.enableTextSetter&&(Ca(l).setLabelText=function(m){var y=My(e,t,m);nD(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Cr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<ce.length;i++){var n=ce[i];e[n]=r.getModel([n,t])}return e}function we(r,t,e,i,n){var a={};return aD(a,r,e,i,n),t&&R(a,t),a}function Ey(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=K(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",i}function aD(r,t,e,i,n){e=e||Wl;var a=t.ecModel,o=a&&a.option.textStyle,s=oD(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Oy(l[u]={},f,o,e,i,n,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var p=t.get("minMargin");p!=null&&(r.margin=p),Oy(r,t,o,e,i,n,!0,!1)}function oD(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Wl).rich;if(e){t=t||{};for(var i=st(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var Ly=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Py=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Iy=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Oy(r,t,e,i,n,a,o,s){e=!n&&e||Wl;var l=i&&i.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=K(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var p=K(t.getShallow("textBorderWidth"),e.textBorderWidth);p!=null&&(r.lineWidth=p);var c=K(t.getShallow("textBorderType"),e.textBorderType);c!=null&&(r.lineDash=c);var v=K(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);v!=null&&(r.lineDashOffset=v),!n&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!n&&!a&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var g=0;g<Ly.length;g++){var d=Ly[g],m=K(t.getShallow(d),e[d]);m!=null&&(r[d]=m)}for(var g=0;g<Py.length;g++){var d=Py[g],m=t.getShallow(d);m!=null&&(r[d]=m)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!i.disableBox){for(var g=0;g<Iy.length;g++){var d=Iy[g],m=t.getShallow(d);m!=null&&(r[d]=m)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function Ry(r,t){var e=t&&t.getModel("textStyle");return Yt([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ca=ut();function Ny(r,t,e,i){if(r){var n=Ca(r);n.prevValue=n.value,n.value=e;var a=t.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=t)}}var sD=["textStyle","color"],Mc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ec=new mt,lD=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(sD):null)},r.prototype.getFont=function(){return Ry({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Mc.length;i++)e[Mc[i]]=this.getShallow(Mc[i]);return Ec.useStyle(e),Ec.update(),Ec.getBoundingRect()},r})(),ky=lD;var Lc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],uD=gr(Lc),zy=(function(){function r(){}return r.prototype.getLineStyle=function(t){return uD(this,t)},r})();var Pc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],fD=gr(Pc),By=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return fD(this,t,e)},r})();var Cn=(function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},r.prototype.mergeOption=function(t,e){at(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,n=i==null?i:i[t];if(n==null&&!e){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},r.prototype.getModel=function(t,e){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t($(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!X.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r})();fa(Cn);Km(Cn);Ht(Cn,zy);Ht(Cn,By);Ht(Cn,jm);Ht(Cn,ky);var gt=Cn;var hD=Math.round(Math.random()*10);function hi(r){return[r||"",hD++].join("_")}function Uy(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=xe(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=xe(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function Fy(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,p={};for(w(a,function(y){p[y]=!0});h.length;){var c=h.pop(),v=f[c],g=!!p[c];g&&(s.call(l,c,v.originalDeps.slice()),delete p[c]),w(v.successor,g?m:d)}w(p,function(){var y="";throw new Error(y)});function d(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function m(y){p[y]=!0,d(y)}};function e(a){var o={},s=[];return w(a,function(l){var u=i(o,l),f=u.originalDeps=t(l),h=n(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),w(h,function(p){it(u.predecessor,p)<0&&u.predecessor.push(p);var c=i(o,p);it(c.successor,p)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return w(a,function(l){it(o,l)>=0&&s.push(l)}),s}}function Yl(r,t){return at(at({},r,!0),t,!0)}var Vy={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:". "}}}};var Gy={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var ql="ZH",Oc="EN",Da=Oc,Xl={},Rc={},Zl=X.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Da).toUpperCase();return r.indexOf(ql)>-1?ql:Da})():Da;function Kl(r,t){r=r.toUpperCase(),Rc[r]=new gt(t),Xl[r]=t}function Hy(r){if(z(r)){var t=Xl[r.toUpperCase()]||{};return r===ql||r===Oc?$(t):at($(t),$(Xl[Da]),!1)}else return at($(r),$(Xl[Da]),!1)}function Wy(r){return Rc[r]}function Yy(){return Rc[Da]}Kl(Oc,Vy);Kl(ql,Gy);var Ql=1e3,$l=Ql*60,Ma=$l*60,Oe=Ma*24,kc=Oe*365,Go={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}",zc={year:"{yyyy}",month:"{yyyy}-{MM}",day:jl,hour:jl+" "+Go.hour,minute:jl+" "+Go.minute,second:jl+" "+Go.second,millisecond:Go.none},Nc=["year","month","day","hour","minute","second","millisecond"],Bc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ae(r,t){return r+="","0000".substr(0,t-r.length)+r}function An(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Xy(r){return r===An(r)}function qy(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Hr(r,t,e,i){var n=qt(r),a=n[Jl(e)](),o=n[Dn(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Ho(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Aa(e)](),h=(f-1)%12+1,p=n[Wo(e)](),c=n[Yo(e)](),v=n[Xo(e)](),g=f>=12?"pm":"am",d=g.toUpperCase(),m=i instanceof gt?i:Wy(i||Zl)||Yy(),y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),b=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ae(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,ae(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ae(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ae(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ae(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ae(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ae(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,ae(v,3)).replace(/{S}/g,v+"")}function Zy(r,t,e,i,n){var a=null;if(z(e))a=e;else if(G(e))a=e(r.value,t,{level:r.level});else{var o=R({},Go);if(r.level>0)for(var s=0;s<Nc.length;++s)o[Nc[s]]="{primary|"+o[Nc[s]]+"}";var l=e?e.inherit===!1?e:q(e,o):o,u=Ky(r.value,n);if(l[u])a=l[u];else if(l.inherit){for(var f=Bc.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(N(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Hr(new Date(r.value),a,n,i)}function Ky(r,t){var e=qt(r),i=e[Dn(t)]()+1,n=e[Ho(t)](),a=e[Aa(t)](),o=e[Wo(t)](),s=e[Yo(t)](),l=e[Xo(t)](),u=l===0,f=u&&s===0,h=f&&o===0,p=h&&a===0,c=p&&n===1,v=c&&i===1;return v?"year":c?"month":p?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Uc(r,t,e){var i=rt(r)?qt(r):r;switch(t=t||Ky(r,e),t){case"year":return i[Jl(e)]();case"half-year":return i[Dn(e)]()>=6?1:0;case"quarter":return Math.floor((i[Dn(e)]()+1)/4);case"month":return i[Dn(e)]();case"day":return i[Ho(e)]();case"half-day":return i[Aa(e)]()/24;case"hour":return i[Aa(e)]();case"minute":return i[Wo(e)]();case"second":return i[Yo(e)]();case"millisecond":return i[Xo(e)]()}}function Jl(r){return r?"getUTCFullYear":"getFullYear"}function Dn(r){return r?"getUTCMonth":"getMonth"}function Ho(r){return r?"getUTCDate":"getDate"}function Aa(r){return r?"getUTCHours":"getHours"}function Wo(r){return r?"getUTCMinutes":"getMinutes"}function Yo(r){return r?"getUTCSeconds":"getSeconds"}function Xo(r){return r?"getUTCMilliseconds":"getMilliseconds"}function jy(r){return r?"setUTCFullYear":"setFullYear"}function Fc(r){return r?"setUTCMonth":"setMonth"}function Vc(r){return r?"setUTCDate":"setDate"}function Gc(r){return r?"setUTCHours":"setHours"}function Hc(r){return r?"setUTCMinutes":"setMinutes"}function Wc(r){return r?"setUTCSeconds":"setSeconds"}function Yc(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Xc(r,t,e,i,n,a,o,s){var l=new mt({style:{text:r,font:t,align:e,verticalAlign:i,padding:n,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function qo(r){if(!xo(r))return z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Ea(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Dr=Ja;function tu(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Yt(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?qt(r):r;if(isNaN(+l)){if(s)return"-"}else return Hr(l,i,e)}if(t==="ordinal")return Zn(r)?n(r):rt(r)&&a(r)?r+"":"-";var u=Xe(r);return a(u)?qo(u):Zn(r)?n(r):typeof r=="boolean"?r+"":"-"}var Qy=["a","b","c","d","e","f","g"],qc=function(r,t){return"{"+r+(t??"")+"}"};function La(r,t,e){N(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=Qy[a];r=r.replace(qc(o),qc(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(qc(Qy[l],s),e?Xt(u):u)}return r}function eu(r,t){var e=z(r)?{color:r,extraCssText:t}:r||{},i=e.color,n=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Xt(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Xt(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function $y(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
|
|
897
|
+
yyyy`);var i=qt(t),n=e?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),h=i[n+"Milliseconds"]();return r=r.replace("MM",ae(o,2)).replace("M",o).replace("yyyy",a).replace("yy",ae(a%100+"",2)).replace("dd",ae(s,2)).replace("d",s).replace("hh",ae(l,2)).replace("h",l).replace("mm",ae(u,2)).replace("m",u).replace("ss",ae(f,2)).replace("s",f).replace("SSS",ae(h,3)),r}function Jy(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function ur(r,t){return t=t||"transparent",z(r)?r:V(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Zc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var nu=w,cD=["left","right","top","bottom","width","height"],iu=[["width","left","right"],["height","top","bottom"]];function Kc(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),p=h&&h.getBoundingRect(),c,v;if(r==="horizontal"){var g=f.width+(p?-p.x+f.x:0);c=a+g,c>i||l.newline?(a=0,c=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var d=f.height+(p?-p.y+f.y:0);v=o+d,v>n||l.newline?(a+=s+e,o=0,v=d,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+e:o=v+e)})}var Mn=Kc,bk=pt(Kc,"vertical"),wk=pt(Kc,"horizontal");function Re(r,t,e){e=Dr(e||0);var i=t.width,n=t.height,a=_t(r.left,i),o=_t(r.top,n),s=_t(r.right,i),l=_t(r.bottom,n),u=_t(r.width,i),f=_t(r.height,n),h=e[2]+e[0],p=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-p;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var v=new J(a+e[3],o+e[0],u,f);return v.margin=e,v}function ci(r){var t=r.layoutMode||r.constructor.layoutMode;return V(t)?t:t?{type:t}:null}function Ar(r,t,e){var i=e&&e.ignoreSize;!N(i)&&(i=[i,i]);var n=o(iu[0],0),a=o(iu[1],1);u(iu[0],r,n),u(iu[1],r,a);function o(f,h){var p={},c=0,v={},g=0,d=2;if(nu(f,function(_){v[_]=r[_]}),nu(f,function(_){s(t,_)&&(p[_]=v[_]=t[_]),l(p,_)&&c++,l(v,_)&&g++}),i[h])return l(t,f[1])?v[f[2]]=null:l(t,f[2])&&(v[f[1]]=null),v;if(g===d||!c)return v;if(c>=d)return p;for(var m=0;m<f.length;m++){var y=f[m];if(!s(p,y)&&s(r,y)){p[y]=r[y];break}}return p}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,p){nu(f,function(c){h[c]=p[c]})}}function pi(r){return pD({},r)}function pD(r,t){return t&&r&&nu(cD,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var vD=ut(),Pa=(function(r){P(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=hi("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=ci(this),a=n?pi(e):{},o=i.getTheme();at(e,o.get(this.mainType)),at(e,this.getDefaultOption()),n&&Ar(e,a,n)},t.prototype.mergeOption=function(e,i){at(this.option,e,!0);var n=ci(this);n&&Ar(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Zm(e))return e.defaultOption;var i=vD(this);if(!i.defaultOption){for(var n=[],a=e;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=at(s,n[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return ii(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(gt);_l(Pa,gt);ai(Pa);Uy(Pa);Fy(Pa,dD);function dD(r){var t=[];return w(Pa.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=U(t,function(e){return xe(e).main}),r!=="dataset"&&it(t,"dataset")<=0&&t.unshift("dataset"),t}var ht=Pa;var t_="";typeof navigator<"u"&&(t_=navigator.platform||"");var Ia="rgba(0, 0, 0, 0.2)",e_={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ia,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ia,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ia,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ia,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ia,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ia,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:t_.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 ou=Y(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Kt="original",jt="arrayRows",pe="objectRows",Ne="keyedColumns",ke="typedArray",jc="unknown",$e="column",Wr="row";var Ut={Must:1,Might:2,Not:3},r_=ut();function i_(r){r_(r).datasetMap=Y()}function n_(r,t,e){var i={},n=su(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,l=r_(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),w(r,function(g,d){var m=V(g)?g:r[d]={name:g};m.type==="ordinal"&&f==null&&(f=d,h=v(m)),i[m.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});w(r,function(g,d){var m=g.name,y=v(g);if(f==null){var _=p.valueWayDim;c(i[m],_,y),c(o,_,y),p.valueWayDim+=y}else if(f===d)c(i[m],0,y),c(a,0,y);else{var _=p.categoryWayDim;c(i[m],_,y),c(o,_,y),p.categoryWayDim+=y}});function c(g,d,m){for(var y=0;y<m;y++)g.push(d+y)}function v(g){var d=g.dimsDef;return d?d.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function a_(r,t,e){var i={},n=su(r);if(!n)return i;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===pe||a===Ne)&&w(o,function(f,h){(V(f)?f.name:f)==="name"&&(s=h)});var l=(function(){for(var f={},h={},p=[],c=0,v=Math.min(5,e);c<v;c++){var g=s_(t.data,a,t.seriesLayoutBy,o,t.startIndex,c);p.push(g);var d=g===Ut.Not;if(d&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!d&&p[f.n]===Ut.Not)&&(f.n=c),m(f)&&p[f.n]!==Ut.Not)return f;d||(g===Ut.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(h)?h:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function su(r){var t=r.get("data",!0);if(!t)return ii(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ie).models[0]}function o_(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:ii(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ie).models}function lu(r,t){return s_(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function s_(r,t,e,i,n,a){var o,s=5;if(At(r))return Ut.Not;var l,u;if(i){var f=i[a];V(f)?(l=f.name,u=f.type):z(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ut.Must:Ut.Not;if(t===jt){var h=r;if(e===Wr){for(var p=h[a],c=0;c<(p||[]).length&&c<s;c++)if((o=x(p[n+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var v=h[n+c];if(v&&(o=x(v[a]))!=null)return o}}else if(t===pe){var g=r;if(!l)return Ut.Not;for(var c=0;c<g.length&&c<s;c++){var d=g[c];if(d&&(o=x(d[l]))!=null)return o}}else if(t===Ne){var m=r;if(!l)return Ut.Not;var p=m[l];if(!p||At(p))return Ut.Not;for(var c=0;c<p.length&&c<s;c++)if((o=x(p[c]))!=null)return o}else if(t===Kt)for(var y=r,c=0;c<y.length&&c<s;c++){var d=y[c],_=Br(d);if(!N(_))return Ut.Not;if((o=x(_[a]))!=null)return o}function x(b){var S=z(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return S?Ut.Might:Ut.Not;if(S&&b!=="-")return Ut.Must}return Ut.Not}var mD=Y();function l_(r,t,e){var i=mD.get(t);if(!i)return e;var n=i(r);if(!n)return e;if(0)for(var a;a<n.length;a++);return e.concat(n)}var u_=ut(),Uk=ut(),Zo=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=Dt(this.get("color",!0)),a=this.get("colorLayer",!0);return yD(this,u_,n,a,t,e,i)},r.prototype.clearColorPalette=function(){_D(this,u_)},r})();function gD(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function yD(r,t,e,i,n,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?e:gD(i,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function _D(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var uu,Ko,f_,h_="\0_ec_inner",xD=1;var d_=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new gt(a),this._locale=new gt(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=v_(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,v_(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?f_(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&w(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Y(),u=i&&i.replaceMergeMainTypeMap;i_(this),w(e,function(h,p){h!=null&&(ht.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?$(h):at(n[p],h,!0))}),u&&u.each(function(h,p){ht.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),ht.topologicalTravel(s,ht.getAllClassMainTypes(),f,this);function f(h){var p=l_(this,h,Dt(e[h])),c=a.get(h),v=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=Gm(c,p,v);Wm(g,h,ht),n[h]=null,a.set(h,null),o.set(h,0);var d=[],m=[],y=0,_,x;w(g,function(b,S){var T=b.existing,C=b.newOption;if(!C)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=h==="series",M=ht.getClass(h,b.keyInfo.subType,!A);if(!M){if(0)var D,E;return}if(h==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===M)T.name=b.keyInfo.name,T.mergeOption(C,this),T.optionUpdated(C,!1);else{var L=R({componentIndex:S},b.keyInfo);T=new M(C,this,this,L),R(T,L),b.brandNew&&(T.__requireNewView=!0),T.init(C,this,this),T.optionUpdated(null,!0)}}T?(d.push(T.option),m.push(T),y++):(d.push(void 0),m.push(void 0))},this),n[h]=d,a.set(h,m),o.set(h,y),h==="series"&&uu(this)}this._seriesIndices||uu(this)},t.prototype.getOption=function(){var e=$(this.option);return w(e,function(i,n){if(ht.hasClass(n)){for(var a=Dt(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!la(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[h_],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var n=e.index,a=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],w(Dt(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=c_("id",a,s):o!=null?l=c_("name",o,s):l=wt(s,function(u){return!!u}),p_(l,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):wt(this._componentsMap.get(n),function(u){return!!u});return l(p_(o,e));function s(u){var f=n+"Index",h=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[h]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[h],name:u[p]}:null}function l(u){return e.filter?wt(u,e.filter):u}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(G(e)){var o=i,s=e;a.each(function(h,p){for(var c=0;h&&c<h.length;c++){var v=h[c];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=z(e)?a.get(e):V(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Ee(e,null);return wt(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return wt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return wt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){Ko(this),w(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];e.call(i,a,n)},this)},t.prototype.eachRawSeries=function(e,i){w(this._componentsMap.get("series"),function(n){n&&e.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,n){Ko(this),w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,i,n){return w(this.getSeriesByType(e),i,n)},t.prototype.isSeriesFiltered=function(e){return Ko(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){Ko(this);var n=[];w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=Y(n)},t.prototype.restoreData=function(e){uu(this);var i=this._componentsMap,n=[];i.each(function(a,o){ht.hasClass(o)&&n.push(o)}),ht.topologicalTravel(n,ht.getAllClassMainTypes(),function(a){w(i.get(a),function(o){o&&(a!=="series"||!SD(o,e))&&o.restoreData()})})},t.internalField=(function(){uu=function(e){var i=e._seriesIndices=[];w(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=Y(i)},Ko=function(e){},f_=function(e,i){e.option={},e.option[h_]=xD,e._componentsMap=Y({series:[]}),e._componentsCount=Y();var n=i.aria;V(n)&&n.enabled==null&&(n.enabled=!0),bD(i,e._theme.option),at(i,e_,!1),e._mergeOption(i,null)}})(),t})(gt);function SD(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||n!=null&&r.name!==n}}function bD(r,t){var e=r.color&&!r.colorLayer;w(t,function(i,n){n==="colorLayer"&&e||ht.hasClass(n)||(typeof i=="object"?r[n]=r[n]?at(r[n],i,!1):$(i):r[n]==null&&(r[n]=i))})}function c_(r,t,e){if(N(t)){var i=Y();return w(t,function(a){if(a!=null){var o=Ee(a,null);o!=null&&i.set(a,!0)}}),wt(e,function(a){return a&&i.get(a[r])})}else{var n=Ee(t,null);return wt(e,function(a){return a&&n!=null&&a[r]===n})}}function p_(r,t){return t.hasOwnProperty("subType")?wt(r,function(e){return e&&e.subType===t.subType}):r}function v_(r){var t=Y();return r&&w(Dt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Ht(d_,Zo);var fu=d_;var wD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],TD=(function(){function r(t){w(wD,function(e){this[e]=lt(t[e],t)},this)}return r})(),hu=TD;var Qc={},CD=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var i=[];w(Qc,function(n,a){var o=n.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(t,e){w(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Qc[t]=e},r.get=function(t){return Qc[t]},r})(),Oa=CD;var DD=/^(min|max)?(.+)$/,AD=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(w(Dt(t.series),function(o){o&&o.data&&At(o.data)&&Ni(o.data)}),w(Dt(t.dataset),function(o){o&&o.source&&At(o.source)&&Ni(o.source)})),t=$(t);var n=this._optionBackup,a=MD(t,e,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],$(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=$(i[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)ED(n[l].query,e,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!PD(o,this._currentMediaIndices)&&(s=U(o,function(f){return $(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function MD(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&N(u)&&w(u,function(c){c&&c.option&&(c.query?i.push(c):n||(n=c))}),p(a),w(l,function(c){return p(c)}),w(i,function(c){return p(c.option)});function p(c){w(t,function(v){v(c,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function ED(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=!0;return w(r,function(a,o){var s=o.match(DD);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();LD(i[u],a,l)||(n=!1)}}),n}function LD(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function PD(r,t){return r.join(",")===t.join(",")}var m_=AD;var fr=w,Qo=V,g_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function $c(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=g_.length;e<i;e++){var n=g_[e],a=t.normal,o=t.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?at(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?at(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function oe(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,q(r[t],i)):r[t]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function jo(r){oe(r,"itemStyle"),oe(r,"lineStyle"),oe(r,"areaStyle"),oe(r,"label"),oe(r,"labelLine"),oe(r,"upperLabel"),oe(r,"edgeLabel")}function It(r,t){var e=Qo(r)&&r[t],i=Qo(e)&&e.textStyle;if(i)for(var n=0,a=Ph.length;n<a;n++){var o=Ph[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}function Je(r){r&&(jo(r),It(r,"label"),r.emphasis&&It(r.emphasis,"label"))}function ID(r){if(Qo(r)){$c(r),jo(r),It(r,"label"),It(r,"upperLabel"),It(r,"edgeLabel"),r.emphasis&&(It(r.emphasis,"label"),It(r.emphasis,"upperLabel"),It(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&($c(t),Je(t));var e=r.markLine;e&&($c(e),Je(e));var i=r.markArea;i&&Je(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!At(a))for(var o=0;o<a.length;o++)Je(a[o]);w(r.categories,function(u){jo(u)})}if(n&&!At(n))for(var o=0;o<n.length;o++)Je(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Je(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)N(l[o])?(Je(l[o][0]),Je(l[o][1])):Je(l[o]);r.type==="gauge"?(It(r,"axisLabel"),It(r,"title"),It(r,"detail")):r.type==="treemap"?(oe(r.breadcrumb,"itemStyle"),w(r.levels,function(u){jo(u)})):r.type==="tree"&&jo(r.leaves)}}function Yr(r){return N(r)?r:r?[r]:[]}function y_(r){return(N(r)?r[0]:r)||{}}function Jc(r,t){fr(Yr(r.series),function(i){Qo(i)&&ID(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),fr(e,function(i){fr(Yr(r[i]),function(n){n&&(It(n,"axisLabel"),It(n.axisPointer,"label"))})}),fr(Yr(r.parallel),function(i){var n=i&&i.parallelAxisDefault;It(n,"axisLabel"),It(n&&n.axisPointer,"label")}),fr(Yr(r.calendar),function(i){oe(i,"itemStyle"),It(i,"dayLabel"),It(i,"monthLabel"),It(i,"yearLabel")}),fr(Yr(r.radar),function(i){It(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),fr(Yr(r.geo),function(i){Qo(i)&&(Je(i),fr(Yr(i.regions),function(n){Je(n)}))}),fr(Yr(r.timeline),function(i){Je(i),oe(i,"label"),oe(i,"itemStyle"),oe(i,"controlStyle",!0);var n=i.data;N(n)&&w(n,function(a){V(a)&&(oe(a,"label"),oe(a,"itemStyle"))})}),fr(Yr(r.toolbox),function(i){oe(i,"iconStyle"),fr(i.feature,function(n){oe(n,"iconStyle")})}),It(y_(r.axisPointer),"label"),It(y_(r.tooltip).axisPointer,"label")}function OD(r,t){for(var e=t.split(","),i=r,n=0;n<e.length&&(i=i&&i[e[n]],i!=null);n++);return i}function RD(r,t,e,i){for(var n=t.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=e)}function __(r){r&&w(ND,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var ND=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],kD=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],tp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function $o(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<tp.length;e++){var i=tp[e][1],n=tp[e][0];t[i]!=null&&(t[n]=t[i])}}function x_(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function S_(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function zD(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function b_(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&b_(r[e].children,t)}function cu(r,t){Jc(r,t),r.series=Dt(r.series),w(r.series,function(e){if(V(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),x_(e.label);var n=e.data;if(n&&!At(n))for(var a=0;a<n.length;a++)x_(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=OD(e,"pointer.color");o!=null&&RD(e,"itemStyle.color",o)}else if(i==="bar"){$o(e),$o(e.backgroundStyle),$o(e.emphasis);var n=e.data;if(n&&!At(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&($o(n[a]),$o(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),S_(e),b_(e.data,S_)}else i==="graph"||i==="sankey"?zD(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&q(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),__(e)}}),r.dataRange&&(r.visualMap=r.dataRange),w(kD,function(e){var i=r[e];i&&(N(i)||(i=[i]),w(i,function(n){__(n)}))})}function ep(r){var t=Y();r.eachSeries(function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(BD)}function BD(r){w(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var p=o.get(t.stackedDimension,h);if(isNaN(p))return n;var c,v;s?v=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var g=NaN,d=e-1;d>=0;d--){var m=r[d];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,c)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=Rm(p,y),g=y;break}}}return i[0]=p,i[1]=g,i})})}var pu=(function(){function r(t){this.data=t.data||(t.sourceFormat===Ne?{}:[]),this.sourceFormat=t.sourceFormat||jc,this.seriesLayoutBy=t.seriesLayoutBy||$e,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];n.type==null&&lu(this,i)===Ut.Must&&(n.type="ordinal")}}return r})();function Ra(r){return r instanceof pu}function Jo(r,t,e){e=e||rp(r);var i=t.seriesLayoutBy,n=UD(r,e,i,t.sourceHeader,t.dimensions),a=new pu({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:$(t)});return a}function Na(r){return new pu({data:r,sourceFormat:At(r)?ke:Kt})}function C_(r){return new pu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:$(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function rp(r){var t=jc;if(At(r))t=ke;else if(N(r)){r.length===0&&(t=jt);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(N(n)||At(n)){t=jt;break}else if(V(n)){t=pe;break}}}}else if(V(r)){for(var a in r)if(Ue(r,a)&&Lt(r[a])){t=Ne;break}}return t}function UD(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:w_(n),startIndex:o,dimensionsDetectedCount:a};if(t===jt){var s=r;i==="auto"||i==null?T_(function(u){u!=null&&u!=="-"&&(z(u)?o==null&&(o=1):o=0)},e,s,10):o=rt(i)?i:i?1:0,!n&&o===1&&(n=[],T_(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),a=n?n.length:e===Wr?s.length:s[0]?s[0].length:null}else if(t===pe)n||(n=FD(r));else if(t===Ne)n||(n=[],w(r,function(u,f){n.push(f)}));else if(t===Kt){var l=Br(r[0]);a=N(l)&&l.length||1}return{startIndex:o,dimensionsDefine:w_(n),dimensionsDetectedCount:a}}function FD(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return st(e)}function w_(r){if(r){var t=Y();return U(r,function(e,i){e=V(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function T_(r,t,e,i){if(t===Wr)for(var n=0;n<e.length&&n<i;n++)r(e[n]?e[n][0]:null,n);else for(var a=e[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function vu(r){var t=r.sourceFormat;return t===pe||t===Ne}var En,Ln,Pn,D_,A_,du=(function(){function r(t,e){var i=Ra(t)?t:Na(t);this._source=i;var n=this._data=i.data;i.sourceFormat===ke&&(this._offset=0,this._dimSize=e,this._data=n),A_(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;A_=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,p=l.dimensionsDefine,c=D_[sp(u,f)];if(R(o,c),u===ke)o.getItem=e,o.count=n,o.fillStorage=i;else{var v=np(u,f);o.getItem=lt(v,null,s,h,p);var g=ap(u,f);o.count=lt(g,null,s,h,p)}};var e=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},i=function(o,s,l,u){for(var f=this._data,h=this._dimSize,p=0;p<h;p++){for(var c=u[p],v=c[0]==null?1/0:c[0],g=c[1]==null?-1/0:c[1],d=s-o,m=l[p],y=0;y<d;y++){var _=f[y*h+p];m[o+y]=_,_<v&&(v=_),_>g&&(g=_)}c[0]=v,c[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};D_=(t={},t[jt+"_"+$e]={pure:!0,appendData:a},t[jt+"_"+Wr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[pe]={pure:!0,appendData:a},t[Ne]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Kt]={appendData:a},t[ke]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})();var M_=function(r,t,e,i){return r[i]},VD=(En={},En[jt+"_"+$e]=function(r,t,e,i){return r[i+t]},En[jt+"_"+Wr]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},En[pe]=M_,En[Ne]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];a[o]=l?l[i]:null}return a},En[Kt]=M_,En);function np(r,t){var e=VD[sp(r,t)];return e}var E_=function(r,t,e){return r.length},GD=(Ln={},Ln[jt+"_"+$e]=function(r,t,e){return Math.max(0,r.length-t)},Ln[jt+"_"+Wr]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Ln[pe]=E_,Ln[Ne]=function(r,t,e){var i=e[0].name,n=r[i];return n?n.length:0},Ln[Kt]=E_,Ln);function ap(r,t){var e=GD[sp(r,t)];return e}var ip=function(r,t,e){return r[t]},HD=(Pn={},Pn[jt]=ip,Pn[pe]=function(r,t,e){return r[e]},Pn[Ne]=ip,Pn[Kt]=function(r,t,e){var i=Br(r);return i instanceof Array?i[t]:i},Pn[ke]=ip,Pn);function op(r){var t=HD[r];return t}function sp(r,t){return r===jt?r+"_"+t:r}function Xr(r,t,e){if(r){var i=r.getRawDataItem(t);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return op(a)(i,o,s)}else{var l=i;return a===Kt&&(l=Br(i)),l}}}}var WD=/\{@(.+?)\}/g,L_=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,p=h==="series",c=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,n,a,o){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(o&&(l.value=o.interpolatedValue),n!=null&&N(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(G(a))return l.status=e,l.dimensionIndex=n,a(l);if(z(a)){var f=La(a,l);return f.replace(WD,function(h,p){var c=p.length,v=p;v.charAt(0)==="["&&v.charAt(c-1)==="]"&&(v=+v.slice(1,c-1));var g=Xr(s,t,v);if(o&&N(o.interpolatedValue)){var d=s.getDimensionIndex(v);d>=0&&(g=o.interpolatedValue[d])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return Xr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r})();function lp(r){var t,e;return V(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function vi(r){return new YD(r)}var YD=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(h||c<v)){var g=this._progress;if(N(g))for(var d=0;d<g.length;d++)this._doProgress(g[d],c,v,l,u);else this._doProgress(g,c,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,n,a){P_.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:P_.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),N(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})();var P_=(function(){var r,t,e,i,n,a={reset:function(l,u,f,h){t=l,r=u,e=f,i=h,n=Math.ceil(i/e),a.next=e>1&&i>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<i?l:t;return t++,u}})();function ka(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!rt(r)&&r!=null&&r!=="-"&&(r=+qt(r)),r==null||r===""?NaN:Number(r))}var Oz=Y({number:function(r){return parseFloat(r)},time:function(r){return+qt(r)},trim:function(r){return z(r)?Yt(r):r}});var XD={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},Rz=(function(){function r(t,e){if(!rt(e)){var i="";Zt(i)}this._opFn=XD[t],this._rvalFloat=Xe(e)}return r.prototype.evaluate=function(t){return rt(t)?this._opFn(t,this._rvalFloat):this._opFn(Xe(t),this._rvalFloat)},r})(),I_=(function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=rt(t)?t:Xe(t),n=rt(e)?e:Xe(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=z(t),l=z(e);s&&(i=l?t:0),l&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r})();var Nz=(function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Xe(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(e=Xe(t)===this._rvalFloat)}return this._isEQ?e:!e},r})();var qD=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ka(t,e)},r})();function ZD(r,t){var e=new qD,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==$e&&Zt(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(g,d){var m=g.name,y={index:d,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";Ue(l,m)&&Zt(_),l[m]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=np(n,$e);t.__isBuiltIn&&(e.getRawDataItem=function(g){return h(i,a,s,g)},e.getRawData=lt(KD,null,r)),e.cloneRawData=lt(jD,null,r);var p=ap(n,$e);e.count=lt(p,null,i,a,s);var c=op(n);e.retrieveValue=function(g,d){var m=h(i,a,s,g);return v(m,d)};var v=e.retrieveValueFromItem=function(g,d){if(g!=null){var m=s[d];if(m)return c(g,d,m.name)}};return e.getDimensionInfo=lt(QD,null,s,l),e.cloneAllDimensionInfo=lt($D,null,s),e}function KD(r){var t=r.sourceFormat;if(!up(t)){var e="";Zt(e)}return r.data}function jD(r){var t=r.sourceFormat,e=r.data;if(!up(t)){var i="";Zt(i)}if(t===jt){for(var n=[],a=0,o=e.length;a<o;a++)n.push(e[a].slice());return n}else if(t===pe){for(var n=[],a=0,o=e.length;a<o;a++)n.push(R({},e[a]));return n}}function QD(r,t,e){if(e!=null){if(rt(e)||!isNaN(e)&&!Ue(t,e))return r[e];if(Ue(t,e))return t[e]}}function $D(r){return $(r)}var O_=Y();function R_(r){r=$(r);var t=r.type,e="";t||Zt(e);var i=t.split(":");i.length!==2&&Zt(e);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),r.__isBuiltIn=n,O_.set(t,r)}function N_(r,t,e){var i=Dt(r),n=i.length,a="";n||Zt(a);for(var o=0,s=n;o<s;o++){var l=i[o];t=JD(l,t,e,n===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function JD(r,t,e,i){var n="";t.length||Zt(n),V(r)||Zt(n);var a=r.type,o=O_.get(a);o||Zt(n);var s=U(t,function(f){return ZD(f,o)}),l=Dt(o.transform({upstream:s[0],upstreamList:s,config:$(r.config)}));if(0&&r.print)var u;return U(l,function(f,h){var p="";V(f)||Zt(p),f.data||Zt(p);var c=rp(f.data);up(c)||Zt(p);var v,g=t[0];if(g&&h===0&&!f.dimensions){var d=g.startIndex;d&&(f.data=g.data.slice(0,d).concat(f.data)),v={seriesLayoutBy:$e,sourceHeader:d,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:$e,sourceHeader:0,dimensions:f.dimensions};return Jo(f.data,v,null)})}function up(r){return r===jt||r===pe}var mu="undefined",tA=typeof Uint32Array===mu?Array:Uint32Array,eA=typeof Uint16Array===mu?Array:Uint16Array,hp=typeof Int32Array===mu?Array:Int32Array,k_=typeof Float64Array===mu?Array:Float64Array,B_={float:k_,int:hp,ordinal:Array,number:Array,time:k_},fp;function ts(r){return r>65535?tA:eA}function za(){return[1/0,-1/0]}function rA(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function z_(r,t,e,i,n){var a=B_[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(i)}var iA=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=fp[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=vu(n);this._dimensions=U(e,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===e)return a}else a=n.length;return n[a]={type:e},i.set(t,a),this._chunks[a]=new B_[e||"float"](this._rawCount),this._rawExtent[a]=za(),a},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=za());for(var l=a[t],u=o;u<s;u++){var f=i[u]=e.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=n[u];z_(i,u,f.type,l,!0)}for(var h=[],p=s;p<l;p++)for(var c=p-s,v=0;v<a;v++){var f=n[v],g=fp.arrayRows.call(this,t[c]||h,f.property,c,v);i[v][p]=g;var d=o[v];g<d[0]&&(d[0]=g),g>d[1]&&(d[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=za()),z_(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,l);else for(var p=[],c=t;c<e;c++){p=n.getItem(c,p);for(var v=0;v<s;v++){var g=a[v],d=this._dimValueGetter(p,u[v],c,v);g[c]=d;var m=l[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],n=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var i=e.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var p=this.getRawIndex(f),c=e-a[p],v=Math.abs(c);v<=i&&((v<s||v===s&&c>=0&&l<0)&&(s=v,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=e[a]}else t=new i(e.buffer,0,n)}else{var i=ts(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=ts(i._rawCount),o=new a(n),s=[],l=t.length,u=0,f=t[0],h=i._chunks,p=0;p<n;p++){var c=void 0,v=i.getRawIndex(p);if(l===0)c=e(p);else if(l===1){var g=h[f][v];c=e(g,p)}else{for(var d=0;d<l;d++)s[d]=h[t[d]][v];s[d]=p,c=e.apply(null,s)}c&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=st(t),a=n.length;if(!a)return this;var o=e.count(),s=ts(e._rawCount),l=new s(o),u=0,f=n[0],h=t[f][0],p=t[f][1],c=e._chunks,v=!1;if(!e._indices){var g=0;if(a===1){for(var d=c[n[0]],m=0;m<i;m++){var y=d[m];(y>=h&&y<=p||isNaN(y))&&(l[u++]=g),g++}v=!0}else if(a===2){for(var d=c[n[0]],_=c[n[1]],x=t[n[1]][0],b=t[n[1]][1],m=0;m<i;m++){var y=d[m],S=_[m];(y>=h&&y<=p||isNaN(y))&&(S>=x&&S<=b||isNaN(S))&&(l[u++]=g),g++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var T=e.getRawIndex(m),y=c[n[0]][T];(y>=h&&y<=p||isNaN(y))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=e.getRawIndex(m),A=0;A<a;A++){var M=n[A],y=c[M][T];(y<t[M][0]||y>t[M][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(m))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var n=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=za();for(var h=0;h<s;h++){for(var p=t.getRawIndex(h),c=0;c<o;c++)l[c]=n[e[c]][p];l[o]=h;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var g=e[f],d=v[f],m=u[g],y=n[g];y&&(y[p]=d),d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,p,c=new(ts(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var v=1;v<o-1;v+=l){for(var g=Math.min(v+l,o-1),d=Math.min(v+l*2,o),m=(d+g)/2,y=0,_=g;_<d;_++){var x=this.getRawIndex(_),b=a[x];isNaN(b)||(y+=b)}y/=d-g;var S=v,T=Math.min(v+l,o),C=v-1,A=a[u];f=-1,p=S;for(var M=-1,D=0,_=S;_<T;_++){var x=this.getRawIndex(_),b=a[x];if(isNaN(b)){D++,M<0&&(M=x);continue}h=Math.abs((C-m)*(b-A)-(C-_)*(y-A)),h>f&&(f=h,p=x)}D>0&&D<T-S&&(c[s++]=Math.min(M,p),p=Math.max(M,p)),c[s++]=p,u=p}return c[s++]=this.getRawIndex(o-1),i._count=s,i._indices=c,i.getRawIndex=this._getRawIdx,i},r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=za(),p=new(ts(this._rawCount))(Math.ceil(f/l)),c=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var g=0;g<l;g++){var d=this.getRawIndex(v+g);s[g]=u[d]}var m=i(s),y=this.getRawIndex(Math.min(v+n(s,m)||0,f-1));u[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),p[c++]=y}return a._count=c,a._indices=p,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:e(a);break;case 1:e(n[t[0]][s],a);break;case 2:e(n[t[0]][s],n[t[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=za();if(!e)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][e]);return i},r.prototype.clone=function(t,e){var i=new r,n=this._chunks,a=t&&ee(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?rA(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=$(this._extent),t._rawExtent=$(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,i,n,a){return ka(e[a],this._dimensions[a])}fp={arrayRows:t,objectRows:function(e,i,n,a){return ka(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return ka(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}})(),r})(),es=iA;var F_=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(gu(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=At(s)?ke:Kt,a=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},c=K(h.seriesLayoutBy,p.seriesLayoutBy)||null,v=K(h.sourceHeader,p.sourceHeader),g=K(h.dimensions,p.dimensions),d=c!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||g;n=d?[Jo(s,{seriesLayoutBy:c,sourceHeader:v,dimensions:g},l)]:[]}else{var m=t;if(i){var y=this._applyTransform(e);n=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);n=[Jo(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&U_(a)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&U_(h),s.push(f),l.push(u._getVersionSign())}),i?o=N_(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[C_(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];gu(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,i):(s=new es,s.initData(new du(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(gu(t)){var e=su(t);return e?[e.getSourceManager()]:[]}else return U(o_(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(gu(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:n}},r})();function gu(r){return r.mainType==="series"}function U_(r){throw new Error(r)}var V_="line-height:1";function G_(r,t){var e=r.color||"#6e7079",i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Xt(i+"")+"px;color:"+Xt(e)+";font-weight:"+Xt(n+""),valueStyle:"font-size:"+Xt(o+"")+"px;color:"+Xt(a)+";font-weight:"+Xt(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var nA=[0,10,20,30],aA=["",`
|
|
898
|
+
`,`
|
|
899
|
+
|
|
900
|
+
`,`
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
`];function In(r,t){return t.type=r,t}function cp(r){return r.type==="section"}function H_(r){return cp(r)?oA:sA}function W_(r){if(cp(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return w(r.blocks,function(n){var a=W_(n);a>=t&&(t=a+ +(i&&(!a||cp(n)&&!n.noHeader)))}),t}return 0}function oA(r,t,e,i){var n=t.noHeader,a=lA(W_(t)),o=[],s=t.blocks||[];Wt(!s||N(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ue(u,l)){var f=new I_(u[l],null);s.sort(function(v,g){return f.evaluate(v.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(v,g){var d=t.valueFormatter,m=H_(v)(d?R(R({},r),{valueFormatter:d}):r,v,g>0?a.html:0,i);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):pp(o.join(""),n?e:a.html);if(n)return h;var p=tu(t.header,"ordinal",r.useUTC),c=G_(i,r.renderMode).nameStyle;return r.renderMode==="richText"?Y_(r,p,c)+a.richText+h:pp('<div style="'+c+";"+V_+';">'+Xt(p)+"</div>"+h,e)}function sA(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(x){return x=N(x)?x:[x],U(x,function(b,S){return tu(b,N(c)?c[S]:c,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),p=a?"":tu(l,"ordinal",u),c=t.valueType,v=o?[]:f(t.value,t.dataIndex),g=!s||!a,d=!s&&a,m=G_(i,n),y=m.nameStyle,_=m.valueStyle;return n==="richText"?(s?"":h)+(a?"":Y_(r,p,y))+(o?"":hA(r,v,g,d,_)):pp((s?"":h)+(a?"":uA(p,!s,y))+(o?"":fA(v,g,d,_)),e)}}function vp(r,t,e,i,n,a){if(r){var o=H_(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function lA(r){return{html:nA[r],richText:aA[r]}}function pp(r,t){var e='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+V_+';">'+r+e+"</div>"}function uA(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+Xt(r)+"</span>"}function fA(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=N(r)?r:[r],'<span style="'+a+";"+i+'">'+U(r,function(o){return Xt(o)}).join(" ")+"</span>"}function Y_(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function hA(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(" "):t,a)}function X_(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return ur(i)}function yu(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var _u=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=ml()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=eu({color:e,type:t,renderMode:i,markerId:n});return z(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};N(e)?w(e,function(a){return R(i,a)}):R(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r})();function q_(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=N(s),u=X_(t,e),f,h,p,c;if(o>1||l&&!o){var v=cA(s,t,e,a,u);f=v.inlineValues,h=v.inlineValueTypes,p=v.blocks,c=v.inlineValues[0]}else if(o){var g=n.getDimensionInfo(a[0]);c=f=Xr(n,e,a[0]),h=g.type}else c=f=l?s[0]:s;var d=ua(t),m=d&&t.name||"",y=n.getName(e),_=i?m:y;return In("section",{header:m,noHeader:i||!d,sortParam:c,blocks:[In("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Yt(_),value:f,valueType:h,dataIndex:e})].concat(p||[])})}function cA(r,t,e,i,n){var a=t.getData(),o=ee(r,function(h,p,c){var v=a.getDimensionInfo(c);return h=h||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(h){f(Xr(a,e,h),h)}):w(r,f);function f(h,p){var c=a.getDimensionInfo(p);!c||c.otherDims.tooltip===!1||(o?u.push(In("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var di=ut();function xu(r,t){return r.getName(t)||r.getId(t)}var pA="__universalTransitionEnabled",Su=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=vi({count:dA,reset:mA}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=di(this).sourceManager=new F_(this);a.prepareSource();var o=this.getInitialData(e,n);K_(o,this),this.dataTask.context.data=o,di(this).dataBeforeProcessed=o,Z_(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=ci(this),a=n?pi(e):{},o=this.subType;ht.hasClass(o)&&(o+="Series"),at(e,i.getTheme().get(this.subType)),at(e,this.getDefaultOption()),bo(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Ar(e,a,n)},t.prototype.mergeOption=function(e,i){e=at(this.option,e,!0),this.fillDataTextStyle(e.data);var n=ci(this);n&&Ar(this.option,e,n);var a=di(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);K_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,di(this).dataBeforeProcessed=o,Z_(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!At(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&bo(e[n],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=dp(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return di(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=dp(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}di(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Y(e)},t.prototype.getSourceManager=function(){return di(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return di(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,i,n){return q_({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(X.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=Zo.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=xu(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,i){for(var n=[],a=0;a<e.length;a++)n[0]=e[a],this.isSelected(e[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=st(e),n=[],a=0;a<i.length;a++){var o=e[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[xu(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[pA])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){V(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=i[f],p=xu(e,h);u[p]=!0,this._selectedDataIndicesMap[p]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=i[l-1],p=xu(e,c);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=e.getRawIndex(c),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(n){var a=e.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return ht.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(ht);Ht(Su,L_);Ht(Su,Zo);_l(Su,ht);function Z_(r){var t=r.name;ua(r)||(r.name=vA(r)||t)}function vA(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return w(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function dA(r){return r.model.getRawData().count()}function mA(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),gA}function gA(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function K_(r,t){w(kf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,pt(yA,t))})}function yA(r,t){var e=dp(r);return e&&e.setOutputEnd((t||this).count()),t}function dp(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var Jt=Su;var mp=(function(){function r(){this.group=new dt,this.uid=hi("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();fa(mp);ai(mp);var Ot=mp;function On(){var r=ut();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var $_=ut(),_A=On(),gp=(function(){function r(){this.group=new dt,this.uid=hi("viewChart"),this.renderTask=vi({plan:xA,reset:SA}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&Q_(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&Q_(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){Tn(this.group,t)},r.markUpdateMethod=function(t,e){$_(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function j_(r,t,e){r&&Io(r)&&(t==="emphasis"?cn:pn)(r,e)}function Q_(r,t,e){var i=qe(r,t),n=t&&t.highlightKey!=null?Qg(t.highlightKey):null;i!=null?w(Dt(i),function(a){j_(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){j_(a,e,n)})}fa(gp,["dispose"]);ai(gp);function xA(r){return _A(r.model)}function SA(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&$_(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,n),bA[l]}var bA={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ft=gp;var bu="\0__throttleOriginMethod",J_="\0__throttleRate",t0="\0__throttleType";function Rn(r,t,e){var i,n=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var p=function(){for(var c=[],v=0;v<arguments.length;v++)c[v]=arguments[v];i=new Date().getTime(),l=this,u=c;var g=f||t,d=f||e;f=null,s=i-(d?n:a)-g,clearTimeout(o),d?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(c){f=c},p}function wu(r,t,e,i){var n=r[t];if(n){var a=n[bu]||n,o=n[t0],s=n[J_];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=Rn(a,e,i==="debounce"),n[bu]=a,n[t0]=i,n[J_]=e}return n}}function rs(r,t){var e=r[t];e&&e[bu]&&(e.clear&&e.clear(),r[t]=e[bu])}var e0=ut(),r0={itemStyle:gr(Pc,!0),lineStyle:gr(Lc,!0)},TA={lineStyle:"stroke",itemStyle:"fill"};function i0(r,t){var e=r.visualStyleMapper||r0[t];return e||(console.warn("Unknown style type '"+t+"'."),r0.itemStyle)}function n0(r,t){var e=r.visualDrawType||TA[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var a0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=i0(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=n0(r,i),u=o[l],f=G(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var p=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=p,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||G(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||G(o.stroke)?p:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,v){var g=r.getDataParams(v),d=R({},o);d[l]=f(g),c.setItemVisual(v,"style",d)}}}},is=new gt,o0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=i0(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){is.option=l[i];var u=n(is),f=o.ensureUniqueItemVisual(s,"style");R(f,u),is.option.decal&&(o.setItemVisual(s,"decal",is.option.decal),is.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},s0={performRawSeries:!0,overallReset:function(r){var t=Y();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),e0(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=e0(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=n0(e,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var p=a.ensureUniqueItemVisual(f,"style"),c=i.getName(u)||u+"",v=i.count();p[l]=e.getColorFromPalette(c,o,v)}})}})}};var Tu=Math.PI;function yp(r,t){t=t||{},q(t,{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 e=new dt,i=new vt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new mt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new vt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new gn({shape:{startAngle:-Tu/2,endAngle:-Tu/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Tu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Tu*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var CA=(function(){function r(t,e,i,n){this._stageTaskMap=Y(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Y();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;w(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";Wt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;w(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,p=f.overallTask;if(p){var c,v=p.agentStubMap;v.each(function(d){s(n,d)&&(d.dirty(),c=!0)}),c&&p.dirty(),o.updatePayload(p,i);var g=o.getPerformArgs(p,n.block);v.each(function(d){d.perform(g)}),p.perform(g)&&(a=!0)}else h&&h.each(function(d,m){s(n,d)&&d.dirty();var y=o.getPerformArgs(d,n.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(d.context.model),o.updatePayload(d,i),d.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Y(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(h){var p=h.uid,c=s.set(p,o&&o.get(p)||vi({plan:LA,reset:PA,count:OA}));c.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||vi({reset:DA});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Y(),u=t.seriesType,f=t.getTargetSeries,h=!0,p=!1,c="";Wt(!t.createOnAllSeries,c),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):(h=!1,w(i.getSeries(),v));function v(g){var d=g.uid,m=l.set(d,s&&s.get(d)||(p=!0,vi({reset:AA,onDirty:EA})));m.context={model:g,overallProgress:h},m.agent=o,m.__block=h,a._pipe(g,m)}p&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return G(t)&&(t={overallReset:t,seriesType:RA(t)}),t.uid=hi("stageHandler"),e&&(t.visualType=e),t},r})();function DA(r){r.overallReset(r.ecModel,r.api,r.payload)}function AA(r){return r.overallProgress&&MA}function MA(){this.agent.dirty(),this.getDownstream().dirty()}function EA(){this.agent&&this.agent.dirty()}function LA(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function PA(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Dt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?U(t,function(e,i){return l0(i)}):IA}var IA=l0(0);function l0(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function OA(r){return r.data.count()}function RA(r){Cu=null;try{r(ns,u0)}catch{}return Cu}var ns={},u0={},Cu;f0(ns,fu);f0(u0,hu);ns.eachSeriesByType=ns.eachRawSeriesByType=function(r){Cu=r};ns.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Cu=r.subType)};function f0(r,t){for(var e in t.prototype)r[e]=Rt}var _p=CA;var h0=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],c0={color:h0,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],h0]};var ve="#B9B8CE",p0="#100C2A",Du=function(){return{axisLine:{lineStyle:{color:ve}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},v0=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],d0={darkMode:!0,color:v0,backgroundColor:p0,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ve}},textStyle:{color:ve},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ve}},dataZoom:{borderColor:"#71708A",textStyle:{color:ve},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:ve}},timeline:{lineStyle:{color:ve},label:{color:ve},controlStyle:{color:ve,borderColor:ve}},calendar:{itemStyle:{color:p0},dayLabel:{color:ve},monthLabel:{color:ve},yearLabel:{color:ve}},timeAxis:Du(),logAxis:Du(),valueAxis:Du(),categoryAxis:Du(),line:{symbol:"circle"},graph:{color:v0},gauge:{title:{color:ve},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ve},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};d0.categoryAxis.splitLine.show=!1;var m0=d0;var g0=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if(z(t)){var a=xe(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var p=o[h],c=u.lastIndexOf(p);if(c>0&&c===u.length-p.length){var v=u.slice(0,c);v!=="data"&&(e.mainType=v,e[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,p,c,v){return h[c]==null||p[v||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})();var xp=["symbol","symbolSize","symbolRotate","symbolOffset"],y0=xp.concat(["symbolKeepAspect"]),_0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<xp.length;o++){var s=xp[o],l=r.get(s);G(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(R({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var u=st(n);function f(h,p){for(var c=r.getRawValue(p),v=r.getDataParams(p),g=0;g<u.length;g++){var d=u[g];h.setItemVisual(p,d,n[d](c,v))}}return{dataEach:a?f:null}}},x0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<y0.length;s++){var l=y0[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?i:null}}};function S0(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e);default:}}function b0(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t);default:}}function w0(r,t){function e(i,n){var a=[];return i.eachComponent({mainType:"series",subType:r,query:n},function(o){a.push(o.seriesIndex)}),a}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){t(i[0],function(n,a,o){n=R({},n),o.dispatchAction(R(n,{type:i[1],seriesIndex:e(a,n)}))})})}function Ba(r,t,e,i,n){var a=r+t;e.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),p=qe(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:N(p)?h.getName(p[0]):h.getName(p),selected:z(l)?l:R({},l)})}})}function T0(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(Ba("map","selectchanged",t,n,i),Ba("pie","selectchanged",t,n,i)):i.fromAction==="select"?(Ba("map","selected",t,n,i),Ba("pie","selected",t,n,i)):i.fromAction==="unselect"&&(Ba("map","unselected",t,n,i),Ba("pie","unselected",t,n,i))})}function Nn(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var NA=Math.round(Math.random()*9),kA=typeof Object.defineProperty=="function",zA=(function(){function r(){this._id="__ec_inner_"+NA++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return kA?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})(),C0=zA;var BA=tt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i+a),r.lineTo(e-n,i+a),r.closePath()}}),UA=tt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i),r.lineTo(e,i+a),r.lineTo(e-n,i),r.closePath()}}),FA=tt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),p=Math.cos(u),c=o*.6,v=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*c,l+s+p*c,e,i-v,e,i),r.bezierCurveTo(e,i-v,e-f+h*c,l+s+p*c,e-f,l+s),r.closePath()}}),VA=tt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+e),r.lineTo(n,a+e/4*3),r.lineTo(n-o,a+e),r.lineTo(n,a),r.closePath()}}),GA={line:Pe,rect:vt,roundRect:vt,square:vt,circle:dn,diamond:UA,pin:FA,arrow:VA,triangle:BA},HA={line:function(r,t,e,i,n){n.x1=r,n.y1=t+i/2,n.x2=r+e,n.y2=t+i/2},rect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i},roundRect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i,n.r=Math.min(e,i)/4},square:function(r,t,e,i,n){var a=Math.min(e,i);n.x=r,n.y=t,n.width=a,n.height=a},circle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.r=Math.min(e,i)/2},diamond:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i},pin:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},arrow:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},triangle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i}},Sp={};w(GA,function(r,t){Sp[t]=new r});var WA=tt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=$i(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var n=Sp[i];n||(i="rect",n=Sp[i]),HA[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function YA(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function ze(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Fo(r.slice(8),new J(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?l=Ta(r.slice(7),{},new J(t,e,i,n),o?"center":"cover"):l=new WA({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=YA,a&&l.setColor(a),l}function D0(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Au(r,t){if(r!=null)return N(r)||(r=[r,r]),[_t(r[0],t[0])||0,_t(K(r[1],r[0]),t[1])||0]}function kn(r){return isFinite(r)}function XA(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=kn(i)?i:0,n=kn(n)?n:1,a=kn(a)?a:0,o=kn(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function qA(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,l=l*a),o=kn(o)?o:.5,s=kn(s)?s:.5,l=l>=0&&kn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function as(r,t,e){for(var i=t.type==="radial"?qA(r,t,e):XA(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function A0(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Mu(r){return parseInt(r,10)}function os(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Mu(s[i])||Mu(r.style[i]))-(Mu(s[a])||0)-(Mu(s[o])||0)|0}function ZA(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:rt(r)?[r]:N(r)?r:null}function bp(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&ZA(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=U(e,function(a){return a/n}),i/=n)}return[e,i]}var KA=new fe(!0);function Eu(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function M0(r){return typeof r=="string"&&r!=="none"}function Lu(r){var t=r.fill;return t!=null&&t!=="none"}function E0(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function L0(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Pu(r,t,e){var i=kh(t.image,t.__image,e);if(ha(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*ks),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function jA(r,t,e,i){var n,a=Eu(e),o=Lu(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||KA,h=t.__dirty;if(!i){var p=e.fill,c=e.stroke,v=o&&!!p.colorStops,g=a&&!!c.colorStops,d=o&&!!p.image,m=a&&!!c.image,y=void 0,_=void 0,x=void 0,b=void 0,S=void 0;(v||g)&&(S=t.getBoundingRect()),v&&(y=h?as(r,p,S):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=h?as(r,c,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),d&&(x=h||!t.__canvasFillPattern?Pu(r,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(b=h||!t.__canvasStrokePattern?Pu(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),v?r.fillStyle=y:d&&(x?r.fillStyle=x:o=!1),g?r.strokeStyle=_:m&&(b?r.strokeStyle=b:a=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,A;r.setLineDash&&e.lineDash&&(n=bp(t),C=n[0],A=n[1]);var M=!0;(u||h&Jr)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),i||(e.strokeFirst?(a&&L0(r,e),o&&E0(r,e)):(o&&E0(r,e),a&&L0(r,e))),C&&r.setLineDash([])}function QA(r,t,e){var i=t.__image=kh(e.image,t.__image,t,t.onload);if(!(!i||!ha(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(i,u,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,p=s-f;r.drawImage(i,u,f,h,p,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function $A(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||ir,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=bp(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Eu(e)&&r.strokeText(n,e.x,e.y),Lu(e)&&r.fillText(n,e.x,e.y)):(Lu(e)&&r.fillText(n,e.x,e.y),Eu(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var P0=["shadowBlur","shadowOffsetX","shadowOffsetY"],I0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function B0(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){Te(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?yr.opacity:o}(i||t.blend!==e.blend)&&(a||(Te(r,n),a=!0),r.globalCompositeOperation=t.blend||yr.blend);for(var s=0;s<P0.length;s++){var l=P0[s];(i||t[l]!==e[l])&&(a||(Te(r,n),a=!0),r[l]=r.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(Te(r,n),a=!0),r.shadowColor=t.shadowColor||yr.shadowColor),a}function O0(r,t,e,i,n){var a=ss(t,n.inHover),o=i?null:e&&ss(e,n.inHover)||{};if(a===o)return!1;var s=B0(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Te(r,n),s=!0),M0(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Te(r,n),s=!0),M0(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Te(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(Te(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<I0.length;f++){var h=I0[f],p=h[0];(i||a[p]!==o[p])&&(s||(Te(r,n),s=!0),r[p]=a[p]||h[1])}return s}function JA(r,t,e,i,n){return B0(r,ss(t,n.inHover),e&&ss(e,n.inHover),i,n)}function U0(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function tM(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),U0(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function eM(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var R0=1,N0=2,k0=3,z0=4;function rM(r){var t=Lu(r),e=Eu(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Te(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ss(r,t){return t&&r.__hoverStyle||r.style}function Ua(r,t){mi(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function mi(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~Nt,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||A0(a,o))&&(o&&o.length&&(Te(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(Te(r,e),r.save(),tM(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof tt&&t.autoBatch&&rM(t.style);s||eM(n,u.transform)?(Te(r,e),U0(r,t)):f||Te(r,e);var h=ss(t,e.inHover);t instanceof tt?(e.lastDrawType!==R0&&(l=!0,e.lastDrawType=R0),O0(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),jA(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Ao?(e.lastDrawType!==k0&&(l=!0,e.lastDrawType=k0),O0(r,t,u,l,e),$A(r,t,h)):t instanceof Se?(e.lastDrawType!==N0&&(l=!0,e.lastDrawType=N0),JA(r,t,u,l,e),QA(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==z0&&(l=!0,e.lastDrawType=z0),iM(r,t,e)),f&&i&&Te(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function iM(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),mi(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),mi(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var wp=new C0,F0=new kr(100),V0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ls(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&wp.delete(r);var a=wp.get(r);if(a)return a;var o=q(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,wp.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,p=0;p<V0.length;++p){var c=o[V0[p]];if(c!=null&&!N(c)&&!z(c)&&!rt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var v;if(h){v=f.join(",")+(n?"-svg":"");var g=F0.get(v);g&&(n?u.svgElement=g:u.image=g)}var d=H0(o.dashArrayX),m=nM(o.dashArrayY),y=G0(o.symbol),_=aM(d),x=W0(m),b=!n&&le.createCanvas(),S=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=A(),C;b&&(b.width=T.width*e,b.height=T.height*e,C=b.getContext("2d")),M(),h&&F0.put(v,b||S),u.image=b,u.svgElement=S,u.svgWidth=T.width,u.svgHeight=T.height;function A(){for(var D=1,E=0,L=_.length;E<L;++E)D=Lh(D,_[E]);for(var I=1,E=0,L=y.length;E<L;++E)I=Lh(I,y[E].length);D*=I;var O=x*_.length*y.length;if(0)var k;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function M(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var D=0,E=0;E<m.length;++E)D+=m[E];if(D<=0)return;for(var L=-x,I=0,O=0,k=0;L<T.height;){if(I%2===0){for(var W=O/2%y.length,B=0,F=0,H=0;B<T.width*2;){for(var Z=0,E=0;E<d[k].length;++E)Z+=d[k][E];if(Z<=0)break;if(F%2===0){var j=(1-o.symbolSize)*.5,ct=B+d[k][F]*j,yt=L+m[I]*j,Vt=d[k][F]*o.symbolSize,bt=m[I]*o.symbolSize,ge=H/2%y[W].length;Ae(ct,yt,Vt,bt,y[W][ge])}B+=d[k][F],++H,++F,F===d[k].length&&(F=0)}++k,k===d.length&&(k=0)}L+=m[I],++O,++I,I===m.length&&(I=0)}function Ae(Qt,Et,nt,ft,pr){var Gt=n?1:e,jr=ze(pr,Qt*Gt,Et*Gt,nt*Gt,ft*Gt,o.color,o.symbolKeepAspect);if(n){var Er=i.painter.renderOneToVNode(jr);Er&&S.children.push(Er)}else Ua(C,jr)}}}}function G0(r){if(!r||r.length===0)return[["rect"]];if(z(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!z(r[e])){t=!1;break}if(t)return G0([r]);for(var i=[],e=0;e<r.length;++e)z(r[e])?i.push([r[e]]):i.push(r[e]);return i}function H0(r){if(!r||r.length===0)return[[0,0]];if(rt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!rt(r[i])){e=!1;break}if(e)return H0([r]);for(var n=[],i=0;i<r.length;++i)if(rt(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=U(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function nM(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(rt(r)){var t=Math.ceil(r);return[t,t]}var e=U(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function aM(r){return U(r,function(t){return W0(t)})}function W0(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function Tp(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=ls(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=ls(n,t)}}})}var oM=new $t,tr=oM;var Y0={};function X0(r,t){Y0[r]=t}function Cp(r){return Y0[r]}var sM="5.5.1",lM={zrender:"5.6.0"},uM=1,fM=800,hM=900,cM=1e3,pM=2e3,vM=5e3,ex=1e3,dM=1100,kp=2e3,rx=3e3,mM=4e3,Bu=4500,gM=4600,yM=5e3,_M=6e3,ix=7e3,zp={PROCESSOR:{FILTER:cM,SERIES_FILTER:fM,STATISTIC:vM},VISUAL:{LAYOUT:ex,PROGRESSIVE_LAYOUT:dM,GLOBAL:kp,CHART:rx,POST_CHART_LAYOUT:gM,COMPONENT:mM,BRUSH:yM,CHART_ITEM:Bu,ARIA:_M,DECAL:ix}},se="__flagInMainProcess",Ce="__pendingUpdate",Dp="__needsUpdateStatus",q0=/^[a-zA-Z0-9_]+$/,Ap="__connectUpdateStatus",Z0=0,xM=1,SM=2;function nx(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return ox(this,r,t)}}function ax(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ox(this,r,t)}}function ox(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),$t.prototype[t].apply(r,e)}var sx=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})($t),lx=sx.prototype;lx.on=ax("on");lx.off=ax("off");var Fa,Mp,Iu,gi,Ep,Lp,Pp,us,fs,K0,j0,Ip,Q0,Ou,$0,ux,er,J0,Ru=(function(r){P(t,r);function t(e,i,n){var a=r.call(this,new g0)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},z(i)&&(i=fx[i]),a._dom=e;var o="canvas",s="auto",l=!1;if(0)var u;n.ssr&&Ah(function(c){var v=ot(c),g=v.dataIndex;if(g!=null){var d=Y();return d.set("series_index",v.seriesIndex),d.set("data_index",g),v.ssrType&&d.set("ssr_type",v.ssrType),d}});var f=a._zr=cl(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:K(n.useDirtyRect,l),useCoarsePointer:K(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Rn(lt(f.flush,f),17),i=$(i),i&&cu(i,!0),a._theme=i,a._locale=Hy(n.locale||Zl),a._coordSysMgr=new Oa;var h=a._api=$0(a);function p(c,v){return c.__prio-v.__prio}return Vi(ku,p),Vi(Op,p),a._scheduler=new _p(a,h,Op,ku),a._messageCenter=new sx,a._initEvents(),a.resize=lt(a.resize,a),f.animation.on("frame",a._onframe,a),K0(f,a),j0(f,a),Ni(a),a}return t.prototype._onframe=function(){if(!this._disposed){J0(this);var e=this._scheduler;if(this[Ce]){var i=this[Ce].silent;this[se]=!0;try{Fa(this),gi.update.call(this,null,this[Ce].updateParams)}catch(l){throw this[se]=!1,this[Ce]=null,l}this._zr.flush(),this[se]=!1,this[Ce]=null,us.call(this,i),fs.call(this,i)}else if(e.unfinished){var n=uM,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Lp(this,a),e.performVisualTasks(a),Ou(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,n){if(!this[se]){if(this._disposed){this.id;return}var a,o,s;if(V(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[se]=!0,!this._model||i){var l=new m_(this._api),u=this._theme,f=this._model=new fu;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Rp);var h={seriesTransition:s,optionChanged:!0};if(n)this[Ce]={silent:a,updateParams:h},this[se]=!1,this.getZr().wakeUp();else{try{Fa(this),gi.update.call(this,null,h)}catch(p){throw this[Ce]=null,this[se]=!1,p}this._ssr||this._zr.flush(),this[Ce]=null,this[se]=!1,us.call(this,a),fs.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||X.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(X.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return w(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;w(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(zu[n]){var l=s,u=s,f=-s,h=-s,p=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();w(zn,function(_,x){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($(e)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),h=o(S.bottom,h),p.push({dom:b,left:S.left,top:S.top})}}),l*=c,u*=c,f*=c,h*=c;var v=f-l,g=h-u,d=le.createCanvas(),m=cl(d,{renderer:i?"svg":"canvas"});if(m.resize({width:v,height:g}),i){var y="";return w(p,function(_){var x=_.left-l,b=_.top-u;y+='<g transform="translate('+x+","+b+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new vt({shape:{x:0,y:0,width:v,height:g},style:{fill:e.connectedBackgroundColor}})),w(p,function(_){var x=new Se({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});m.add(x)}),m.refreshImmediately(),d.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return Ep(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Ep(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=yl(n,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,u))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=yl(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?S0(s,l,i):b0(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(bM,function(i){var n=function(a){var o=e.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&Nn(s,function(v){var g=ot(v);if(g&&g.dataIndex!=null){var d=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=d&&d.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=R({},g.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var p=f&&h!=null&&o.getComponent(f,h),c=p&&e[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=a,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:c},e.trigger(i,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),w(hs,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),w(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),T0(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Ih(this.getDom(),Up,"");var i=this,n=i._api,a=i._model;w(i._componentsViews,function(o){o.dispose(a,n)}),w(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete zn[i.id]},t.prototype.resize=function(e){if(!this[se]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[Ce]&&(a==null&&(a=this[Ce].silent),n=!0,this[Ce]=null),this[se]=!0;try{n&&Fa(this),gi.update.call(this,{type:"resize",animation:R({duration:0},e&&e.animation)})}catch(o){throw this[se]=!1,o}this[se]=!1,us.call(this,a),fs.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(V(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!Np[e]){var n=Np[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=R({},e);return i.type=hs[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(V(i)||(i={silent:!!i}),!!Nu[e.type]&&this._model){if(this[se]){this._pendingActions.push(e);return}var n=i.silent;Pp.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&X.browser.weChat&&this._throttledZrFlush(),us.call(this,n),fs.call(this,n)}},t.prototype.updateLabelLayout=function(){tr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Fa=function(h){var p=h._scheduler;p.restorePipelines(h._model),p.prepareStageTasks(),Mp(h,!0),Mp(h,!1),p.plan()},Mp=function(h,p){for(var c=h._model,v=h._scheduler,g=p?h._componentsViews:h._chartsViews,d=p?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_<g.length;_++)g[_].__alive=!1;p?c.eachComponent(function(S,T){S!=="series"&&x(T)}):c.eachSeries(x);function x(S){var T=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,A=!T&&d[C];if(!A){var M=xe(S.type),D=p?Ot.getClass(M.main,M.sub):Ft.getClass(M.sub);A=new D,A.init(c,y),d[C]=A,g.push(A),m.add(A.group)}S.__viewId=A.__id=C,A.__alive=!0,A.__model=S,A.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!p&&v.prepareView(A,S,c,y)}for(var _=0;_<g.length;){var b=g[_];b.__alive?_++:(!p&&b.renderTask.dispose(),m.remove(b.group),b.dispose(c,y),g.splice(_,1),d[b.__id]===b&&delete d[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Iu=function(h,p,c,v,g){var d=h._model;if(d.setUpdatePayload(c),!v){w([].concat(h._componentsViews).concat(h._chartsViews),b);return}var m={};m[v+"Id"]=c[v+"Id"],m[v+"Index"]=c[v+"Index"],m[v+"Name"]=c[v+"Name"];var y={mainType:v,query:m};g&&(y.subType=g);var _=c.excludeSeriesId,x;_!=null&&(x=Y(),w(Dt(_),function(S){var T=Ee(S,null);T!=null&&x.set(T,!0)})),d&&d.eachComponent(y,function(S){var T=x&&x.get(S.id)!=null;if(!T)if(hc(c))if(S instanceof Jt)c.type===fi&&!c.notBlur&&!S.get(["emphasis","disabled"])&&Yg(S,c,h._api);else{var C=Ml(S.mainType,S.componentIndex,c.name,h._api),A=C.focusSelf,M=C.dispatchers;c.type===fi&&A&&!c.notBlur&&Dl(S.mainType,S.componentIndex,h._api),M&&w(M,function(D){c.type===fi?cn(D):pn(D)})}else El(c)&&S instanceof Jt&&(Zg(S,c,h._api),fc(S),er(h))},h),d&&d.eachComponent(y,function(S){var T=x&&x.get(S.id)!=null;T||b(h[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},h);function b(S){S&&S.__alive&&S[p]&&S[p](S.__model,d,h._api,c)}},gi={prepareAndUpdate:function(h){Fa(this),gi.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,p){var c=this._model,v=this._api,g=this._zr,d=this._coordSysMgr,m=this._scheduler;if(c){c.setUpdatePayload(h),m.restoreData(c,h),m.performSeriesTasks(c),d.create(c,v),m.performDataProcessorTasks(c,h),Lp(this,c),d.update(c,v),e(c),m.performVisualTasks(c,h),Ip(this,c,v,h,p);var y=c.get("backgroundColor")||"transparent",_=c.get("darkMode");g.setBackgroundColor(y),_!=null&&_!=="auto"&&g.setDarkMode(_),tr.trigger("afterupdate",c,v)}},updateTransform:function(h){var p=this,c=this._model,v=this._api;if(c){c.setUpdatePayload(h);var g=[];c.eachComponent(function(m,y){if(m!=="series"){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,c,v,h);x&&x.update&&g.push(_)}else g.push(_)}});var d=Y();c.eachSeries(function(m){var y=p._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,c,v,h);_&&_.update&&d.set(m.uid,1)}else d.set(m.uid,1)}),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:d}),Ou(this,c,v,h,{},d),tr.trigger("afterupdate",c,v)}},updateView:function(h){var p=this._model;p&&(p.setUpdatePayload(h),Ft.markUpdateMethod(h,"updateView"),e(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0}),Ip(this,p,this._api,h,{}),tr.trigger("afterupdate",p,this._api))},updateVisual:function(h){var p=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(v){v.getData().clearAllVisual()}),Ft.markUpdateMethod(h,"updateVisual"),e(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(v,g){if(v!=="series"){var d=p.getViewOfComponentModel(g);d&&d.__alive&&d.updateVisual(g,c,p._api,h)}}),c.eachSeries(function(v){var g=p._chartsMap[v.__viewId];g.updateVisual(v,c,p._api,h)}),tr.trigger("afterupdate",c,this._api))},updateLayout:function(h){gi.update.call(this,h)}},Ep=function(h,p,c,v){if(h._disposed){h.id;return}for(var g=h._model,d=h._coordSysMgr.getCoordinateSystems(),m,y=yl(g,c),_=0;_<d.length;_++){var x=d[_];if(x[p]&&(m=x[p](g,y,v))!=null)return m}},Lp=function(h,p){var c=h._chartsMap,v=h._scheduler;p.eachSeries(function(g){v.updateStreamModes(g,c[g.__viewId])})},Pp=function(h,p){var c=this,v=this.getModel(),g=h.type,d=h.escapeConnect,m=Nu[g],y=m.actionInfo,_=(y.update||"update").split(":"),x=_.pop(),b=_[0]!=null&&xe(_[0]);this[se]=!0;var S=[h],T=!1;h.batch&&(T=!0,S=U(h.batch,function(I){return I=q(R({},I),h),I.batch=null,I}));var C=[],A,M=El(h),D=hc(h);if(D&&uc(this._api),w(S,function(I){if(A=m.action(I,c._model,c._api),A=A||R({},I),A.type=y.event||A.type,C.push(A),D){var O=wo(h),k=O.queryOptionMap,W=O.mainTypeSpecified,B=W?k.keys()[0]:"series";Iu(c,x,I,B),er(c)}else M?(Iu(c,x,I,"series"),er(c)):b&&Iu(c,x,I,b.main,b.sub)}),x!=="none"&&!D&&!M&&!b)try{this[Ce]?(Fa(this),gi.update.call(this,h),this[Ce]=null):gi[x].call(this,h)}catch(I){throw this[se]=!1,I}if(T?A={type:y.event||g,escapeConnect:d,batch:C}:A=C[0],this[se]=!1,!p){var E=this._messageCenter;if(E.trigger(A.type,A),M){var L={type:"selectchanged",escapeConnect:d,selected:Kg(v),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};E.trigger(L.type,L)}}},us=function(h){for(var p=this._pendingActions;p.length;){var c=p.shift();Pp.call(this,c,h)}},fs=function(h){!h&&this.trigger("updated")},K0=function(h,p){h.on("rendered",function(c){p.trigger("rendered",c),h.animation.isFinished()&&!p[Ce]&&!p._scheduler.unfinished&&!p._pendingActions.length&&p.trigger("finished")})},j0=function(h,p){h.on("mouseover",function(c){var v=c.target,g=Nn(v,Io);g&&(Xg(g,c,p._api),er(p))}).on("mouseout",function(c){var v=c.target,g=Nn(v,Io);g&&(qg(g,c,p._api),er(p))}).on("click",function(c){var v=c.target,g=Nn(v,function(y){return ot(y).dataIndex!=null},!0);if(g){var d=g.selected?"unselect":"select",m=ot(g);p._api.dispatchAction({type:d,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(p){p.clearColorPalette()})}function i(h){var p=[],c=[],v=!1;if(h.eachComponent(function(y,_){var x=_.get("zlevel")||0,b=_.get("z")||0,S=_.getZLevelKey();v=v||!!S,(y==="series"?c:p).push({zlevel:x,z:b,idx:_.componentIndex,type:y,key:S})}),v){var g=p.concat(c),d,m;Vi(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),w(g,function(y){var _=h.getComponent(y.type,y.idx),x=y.zlevel,b=y.key;d!=null&&(x=Math.max(d,x)),b?(x===d&&b!==m&&x++,m=b):m&&(x===d&&x++,m=""),d=x,_.setZLevel(x)})}}Ip=function(h,p,c,v,g){i(p),Q0(h,p,c,v,g),w(h._chartsViews,function(d){d.__alive=!1}),Ou(h,p,c,v,g),w(h._chartsViews,function(d){d.__alive||d.remove(p,c)})},Q0=function(h,p,c,v,g,d){w(d||h._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,p,c,v),s(y,m),f(y,m)})},Ou=function(h,p,c,v,g,d){var m=h._scheduler;g=R(g||{},{updatedSeries:p.getSeries()}),tr.trigger("series:beforeupdate",p,c,g);var y=!1;p.eachSeries(function(_){var x=h._chartsMap[_.__viewId];x.__alive=!0;var b=x.renderTask;m.updatePayload(b,v),u(_,x),d&&d.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),x.group.silent=!!_.get("silent"),o(_,x),fc(_)}),m.unfinished=y||m.unfinished,tr.trigger("series:layoutlabels",p,c,g),tr.trigger("series:transition",p,c,g),p.eachSeries(function(_){var x=h._chartsMap[_.__viewId];s(_,x),f(_,x)}),a(h,p),tr.trigger("series:afterupdate",p,c,g)},er=function(h){h[Dp]=!0,h.getZr().wakeUp()},J0=function(h){h[Dp]&&(h.getZr().storage.traverse(function(p){xn(p)||n(p)}),h[Dp]=!1)};function n(h){for(var p=[],c=h.currentStates,v=0;v<c.length;v++){var g=c[v];g==="emphasis"||g==="blur"||g==="select"||p.push(g)}h.selected&&h.states.select&&p.push("select"),h.hoverState===Eo&&h.states.emphasis?p.push("emphasis"):h.hoverState===Mo&&h.states.blur&&p.push("blur"),h.useStates(p)}function a(h,p){var c=h._zr,v=c.storage,g=0;v.traverse(function(d){d.isGroup||g++}),g>p.get("hoverLayerThreshold")&&!X.node&&!X.worker&&p.eachSeries(function(d){if(!d.preventUsingHoverLayer){var m=h._chartsMap[d.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(h,p){var c=h.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=c)})}function s(h,p){if(!h.preventAutoZ){var c=h.get("z")||0,v=h.get("zlevel")||0;p.eachRendered(function(g){return l(g,c,v,-1/0),!0})}}function l(h,p,c,v){var g=h.getTextContent(),d=h.getTextGuideLine(),m=h.isGroup;if(m)for(var y=h.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],p,c,v),v);else h.z=p,h.zlevel=c,v=Math.max(h.z2,v);if(g&&(g.z=p,g.zlevel=c,isFinite(v)&&(g.z2=v+2)),d){var x=h.textGuideLineConfig;d.z=p,d.zlevel=c,isFinite(v)&&(d.z2=v+(x&&x.showAbove?1:-1))}return v}function u(h,p){p.eachRendered(function(c){if(!xn(c)){var v=c.getTextContent(),g=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,p){var c=h.getModel("stateAnimation"),v=h.isAnimationEnabled(),g=c.get("duration"),d=g>0?{duration:g,delay:c.get("delay"),easing:c.get("easing")}:null;p.eachRendered(function(m){if(m.states&&m.states.emphasis){if(xn(m))return;if(m instanceof tt&&$g(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=d;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=d),x&&(x.stateTransition=d)}m.__dirty&&n(m)}})}$0=function(h){return new((function(p){P(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);v=v.parent}},c.prototype.enterEmphasis=function(v,g){cn(v,g),er(h)},c.prototype.leaveEmphasis=function(v,g){pn(v,g),er(h)},c.prototype.enterBlur=function(v){Hg(v),er(h)},c.prototype.leaveBlur=function(v){oc(v),er(h)},c.prototype.enterSelect=function(v){sc(v),er(h)},c.prototype.leaveSelect=function(v){lc(v),er(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(v){return h.getViewOfComponentModel(v)},c.prototype.getViewOfSeriesModel=function(v){return h.getViewOfSeriesModel(v)},c})(hu))(h)},ux=function(h){function p(c,v){for(var g=0;g<c.length;g++){var d=c[g];d[Ap]=v}}w(hs,function(c,v){h._messageCenter.on(v,function(g){if(zu[h.group]&&h[Ap]!==Z0){if(g&&g.escapeConnect)return;var d=h.makeActionFromEvent(g),m=[];w(zn,function(y){y!==h&&y.group===h.group&&m.push(y)}),p(m,Z0),w(m,function(y){y[Ap]!==xM&&y.dispatchAction(d)}),p(m,SM)}})})}})(),t})($t),Bp=Ru.prototype;Bp.on=nx("on");Bp.off=nx("off");Bp.one=function(r,t,e){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(r,n)}this.on.call(this,r,n,e)};var bM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Nu={},hs={},Op=[],Rp=[],ku=[],fx={},Np={},zn={},zu={},wM=+new Date-0,TM=+new Date-0,Up="_echarts_instance_";function CM(r,t,e){var i=!(e&&e.ssr);if(i){var n=Fp(r);if(n)return n}var a=new Ru(r,t,e);return a.id="ec_"+wM++,zn[a.id]=a,i&&Ih(r,Up,a.id),ux(a),tr.trigger("afterinit",a),a}function DM(r){if(N(r)){var t=r;r=null,w(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+TM++,w(t,function(e){e.group=r})}return zu[r]=!0,r}function hx(r){zu[r]=!1}var AM=hx;function MM(r){z(r)?r=zn[r]:r instanceof Ru||(r=Fp(r)),r instanceof Ru&&!r.isDisposed()&&r.dispose()}function Fp(r){return zn[Ym(r,Up)]}function EM(r){return zn[r]}function Vp(r,t){fx[r]=t}function Uu(r){it(Rp,r)<0&&Rp.push(r)}function Fu(r,t){Xp(Op,r,t,pM)}function Gp(r){cs("afterinit",r)}function Hp(r){cs("afterupdate",r)}function cs(r,t){tr.on(r,t)}function yi(r,t,e){G(t)&&(e=t,t="");var i=V(r)?r.type:[r,r={event:t}][0];r.event=(r.event||i).toLowerCase(),t=r.event,!hs[t]&&(Wt(q0.test(i)&&q0.test(t)),Nu[i]||(Nu[i]={action:e,actionInfo:r}),hs[t]=i)}function Wp(r,t){Oa.register(r,t)}function LM(r){var t=Oa.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Yp(r,t){Xp(ku,r,t,ex,"layout")}function qr(r,t){Xp(ku,r,t,rx,"visual")}var tx=[];function Xp(r,t,e,i,n){if((G(t)||V(t))&&(e=t,t=i),!(it(tx,e)>=0)){tx.push(e);var a=_p.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function Vu(r,t){Np[r]=t}function PM(r){Os({createCanvas:r})}function qp(r,t,e){var i=Cp("registerMap");i&&i(r,t,e)}function IM(r){var t=Cp("getMap");return t&&t(r)}var Zp=R_;qr(kp,a0);qr(Bu,o0);qr(Bu,s0);qr(kp,_0);qr(Bu,x0);qr(ix,Tp);Uu(cu);Fu(hM,ep);Vu("default",yp);yi({type:fi,event:fi,update:fi},Rt);yi({type:Lo,event:Lo,update:Lo},Rt);yi({type:da,event:da,update:da},Rt);yi({type:Po,event:Po,update:Po},Rt);yi({type:ma,event:ma,update:ma},Rt);Vp("light",c0);Vp("dark",m0);var OM={};function ps(r){return r==null?0:r.length||1}function cx(r){return r}var RM=(function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||cx,this._newKeyGetter=n||cx,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=i[s],u=ps(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],h=ps(u),p=ps(f);if(h>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[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,n)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],a=e[n],o=ps(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[n]=null}},r.prototype._initIndexMap=function(t,e,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!e){var l=e[s],u=ps(l);u===0?(e[s]=o,a&&i.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),px=RM;var NM=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function vx(r,t){var e={},i=e.encode={},n=Y(),a=[],o=[],s={};w(r.dimensions,function(p){var c=r.getDimensionInfo(p),v=c.coordDim;if(v){var g=c.coordDimIndex;Kp(i,v)[g]=p,c.isExtraCoord||(n.set(v,1),kM(c.type)&&(a[0]=p),Kp(s,v)[g]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(p)}ou.each(function(d,m){var y=Kp(i,m),_=c.otherDims[m];_!=null&&_!==!1&&(y[_]=c.name)})});var l=[],u={};n.each(function(p,c){var v=i[c];u[c]=v[0],l=l.concat(v)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=U(l,function(p){return r.getDimensionInfo(p).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e.userOutput=new NM(s,t),e}function Kp(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function dx(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function kM(r){return!(r==="ordinal"||r==="time")}var zM=(function(){function r(t){this.otherDims={},t!=null&&R(this,t)}return r})(),Va=zM;var BM=ut(),UM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},jp=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=$p(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return K(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=vu(this.source),i=!Jp(t),n="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=e?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=UM[u]||"f",f&&(n+=f.uid),n+="$"}var c=this.source,v=[c.seriesLayoutBy,c.startIndex,n].join("$$");return{dimensions:a,hash:v}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Gu(r){return r instanceof jp}function Qp(r){for(var t=Y(),e=0;e<(r||[]).length;e++){var i=r[e],n=V(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function $p(r){var t=BM(r);return t.dimNameMap||(t.dimNameMap=Qp(r.dimensionsDefine))}function Jp(r){return r>30}var vs=V,_i=U,FM=typeof Int32Array>"u"?Array:Int32Array,VM="e\0\0",mx=-1,GM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],HM=["_approximateExtent"],gx,Hu,ds,ms,tv,Wu,ev,WM=(function(){function r(t,e){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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,n=!1;Gu(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var h=i[f],p=z(h)?new Va({name:h}):h instanceof Va?h:new Va(h),c=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=c,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(c),a[c]=p,u[c]!=null&&(l=!0),p.createInvertedIndices&&(s[c]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),n&&(p.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Y();w(o,function(d){g.set(a[d].storeDimIndex,d)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(rt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,i){var n=this,a;if(t instanceof es&&(a=t),!a){var o=this.dimensions,s=Ra(t)||Lt(t)?new du(t,o.length):t;a=new es;var l=_i(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=vx(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=e[l],o&&ev(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==ke&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Kt;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var h=n.getItem(f,u);if(!this.hasItemOption&&Vm(h)&&(this.hasItemOption=!0),h){var p=h.name;a[f]==null&&p!=null&&(a[f]=Ee(p,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=Ee(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)ev(this,f);gx(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){vs(t)?R(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=ds(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},r.prototype.getId=function(t){return Hu(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,n=this._store;return N(t)?n.getValues(_i(t,function(a){return i._getStoreDimIndex(a)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i[e];return n==null||isNaN(n)?mx:n},r.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},r.prototype.each=function(t,e,i){"use strict";G(t)&&(i=e,e=t,t=[]);var n=i||this,a=_i(ms(t),this._getStoreDimIndex,this);this._store.each(a,n?lt(e,n):e)},r.prototype.filterSelf=function(t,e,i){"use strict";G(t)&&(i=e,e=t,t=[]);var n=i||this,a=_i(ms(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?lt(e,n):e),this},r.prototype.selectRange=function(t){"use strict";var e=this,i={},n=st(t),a=[];return w(n,function(o){var s=e._getStoreDimIndex(o);i[s]=t[o],a.push(s)}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){"use strict";G(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},r.prototype.map=function(t,e,i,n){"use strict";var a=i||n||this,o=_i(ms(t),this._getStoreDimIndex,this),s=Wu(this);return s._store=this._store.map(o,a?lt(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=this,o=i||n||this,s=_i(ms(t),this._getStoreDimIndex,this);this._store.modify(s,o?lt(e,o):e)},r.prototype.downSample=function(t,e,i,n){var a=Wu(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.lttbDownSample=function(t,e){var i=Wu(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new gt(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new px(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Hu(t,i)},function(i){return Hu(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},vs(t)?R(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),N(a)?a=a.slice():vs(a)&&(a=R({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,vs(e)?R(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){vs(t)?R(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?R(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;Ig(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:_i(this.dimensions,this._getDimInfo,this),this.hostModel)),tv(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];G(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat($a(arguments)))})},r.internalField=(function(){gx=function(t){var e=t._invertedIndicesMap;w(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new FM(o.categories.length);for(var l=0;l<i.length;l++)i[l]=mx;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},ds=function(t,e,i){return Ee(t._getCategory(e,i),null)},Hu=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=ds(t,t._idDimIdx,e)),i==null&&(i=VM+e),i},ms=function(t){return N(t)||(t=t!=null?[t]:[]),t},Wu=function(t){var e=new r(t._schema?t._schema:_i(t.dimensions,t._getDimInfo,t),t.hostModel);return tv(e,t),e},tv=function(t,e){w(GM.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,w(HM,function(i){t[i]=$(e[i])}),t._calculationInfo=R({},e._calculationInfo)},ev=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],l=n[e];if(s==null&&a!=null&&(i[e]=s=ds(t,a,e)),l==null&&o!=null&&(n[e]=l=ds(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[e]=l}}})(),r})(),Ga=WM;var hv={};Me(hv,{createDimensions:()=>yx,createList:()=>AE,createScale:()=>EE,createSymbol:()=>ze,createTextStyle:()=>PE,dataStack:()=>ME,enableHoverEmphasis:()=>ga,getECData:()=>ot,getLayoutRect:()=>Re,mixinAxisModelCommonMethods:()=>LE});function yx(r,t){return Ha(r,t).dimensions}function Ha(r,t){Ra(r)||(r=Na(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=Y(),a=[],o=XM(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Jp(o),l=i===r.dimensionsDefine,u=l?$p(r):Qp(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Y(f),p=new hp(o),c=0;c<p.length;c++)p[c]=-1;function v(A){var M=p[A];if(M<0){var D=i[A],E=V(D)?D:{name:D},L=new Va,I=E.name;I!=null&&u.get(I)!=null&&(L.name=L.displayName=I),E.type!=null&&(L.type=E.type),E.displayName!=null&&(L.displayName=E.displayName);var O=a.length;return p[A]=O,L.storeDimIndex=A,a.push(L),L}return a[M]}if(!s)for(var c=0;c<o;c++)v(c);h.each(function(A,M){var D=Dt(A).slice();if(D.length===1&&!z(D[0])&&D[0]<0){h.set(M,!1);return}var E=h.set(M,[]);w(D,function(L,I){var O=z(L)?u.get(L):L;O!=null&&O<o&&(E[I]=O,d(v(O),M,I))})});var g=0;w(e,function(A){var M,D,E,L;if(z(A))M=A,L={};else{L=A,M=L.name;var I=L.ordinalMeta;L.ordinalMeta=null,L=R({},L),L.ordinalMeta=I,D=L.dimsDef,E=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var O=h.get(M);if(O!==!1){if(O=Dt(O),!O.length)for(var k=0;k<(D&&D.length||1);k++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&O.push(g++)}w(O,function(W,B){var F=v(W);if(l&&L.type!=null&&(F.type=L.type),d(q(F,L),M,B),F.name==null&&D){var H=D[B];!V(H)&&(H={name:H}),F.name=F.displayName=H.name,F.defaultTooltip=H.defaultTooltip}E&&q(F.otherDims,E)})}});function d(A,M,D){ou.get(M)!=null?A.otherDims[M]=D:(A.coordDim=M,A.coordDimIndex=D,n.set(M,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var x=m||"value";function b(A){A.name==null&&(A.name=A.coordDim)}if(s)w(a,function(A){b(A)}),a.sort(function(A,M){return A.storeDimIndex-M.storeDimIndex});else for(var S=0;S<o;S++){var T=v(S),C=T.coordDim;C==null&&(T.coordDim=qM(x,n,_),T.coordDimIndex=0,(!m||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(lu(r,S)===Ut.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return YM(a),new jp({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function YM(r){for(var t=Y(),e=0;e<r.length;e++){var i=r[e],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function XM(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return w(t,function(a){var o;V(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function qM(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}var ZM=(function(){function r(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return r})();function _x(r){var t=r.get("coordinateSystem"),e=new ZM(t),i=KM[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var KM={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",ie).models[0],a=r.getReferringComponents("yAxis",ie).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),Wa(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Wa(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",ie).models[0];t.coordSysDims=["single"],e.set("single",n),Wa(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",ie).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Wa(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Wa(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();w(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Wa(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Wa(r){return r.get("type")==="category"}function Yu(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;jM(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,p;if(w(a,function(y,_){z(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!i&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(f=y))}),f&&!i&&!u&&(i=!0),f){h="__\0ecstackresult_"+r.id,p="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,v=f.type,g=0;w(a,function(y){y.coordDim===c&&g++});var d={name:h,coordDim:c,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:p,coordDim:p,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(d.storeDimIndex=s.ensureCalculationDimension(p,v),m.storeDimIndex=s.ensureCalculationDimension(h,v)),o.appendCalculationDimension(d),o.appendCalculationDimension(m)):(a.push(d),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:h}}function jM(r){return!Gu(r.schema)}function hr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Xu(r,t){return hr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function QM(r,t){var e=r.get("coordinateSystem"),i=Oa.get(e),n;return t&&t.coordSysDims&&(n=U(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=dx(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function $M(r,t,e){var i,n;return e&&w(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function JM(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;r?(a=!0,n=Na(r)):(n=i.getSource(),a=n.sourceFormat===Kt);var o=_x(t),s=QM(t,o),l=e.useEncodeDefaulter,u=G(l)?l:l?pt(n_,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Ha(n,f),p=$M(h.dimensions,e.createInvertedIndices,o),c=a?null:i.getSharedDataStore(h),v=Yu(t,{schema:h,store:c}),g=new Ga(h,t);g.setCalculationInfo(v);var d=p!=null&&tE(n)?function(m,y,_,x){return x===p?_:this.defaultDimValueGetter(m,y,_,x)}:null;return g.hasItemOption=!1,g.initData(a?n:c,null,d),g}function tE(r){if(r.sourceFormat===Kt){var t=eE(r.data||[]);return!N(Br(t))}}function eE(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var xi=JM;var xx=(function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();ai(xx);var De=xx;var rE=0,iE=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++rE}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&U(i,nE);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!z(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},r})();function nE(r){return V(r)&&r.value!=null?r.value:r+""}var gs=iE;function ys(r){return r.type==="interval"||r.type==="log"}function bx(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=sa(a/t,!0);e!=null&&o<e&&(o=n.interval=e),i!=null&&o>i&&(o=n.interval=i);var s=n.intervalPrecision=rv(o),l=n.niceTickExtent=[St(Math.ceil(r[0]/o)*o,s),St(Math.floor(r[1]/o)*o,s)];return aE(l,r),n}function qu(r){var t=Math.pow(10,oa(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,St(e*t)}function rv(r){return ue(r)+2}function Sx(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function aE(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Sx(r,0,t),Sx(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Si(r,t){return r>=t[0]&&r<=t[1]}function bi(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function wi(r,t){return r*(t[1]-t[0])+t[0]}var Tx=(function(r){P(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new gs({})),N(n)&&(n=new gs({categories:U(n,function(a){return V(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:z(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Si(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),bi(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(wi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o<l;++o){var u=i[o];n[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(De);De.registerClass(Tx);var iv=Tx;var Bn=St,Cx=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Si(e,this._extent)},t.prototype.normalize=function(e){return bi(e,this._extent)},t.prototype.scale=function(e){return wi(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=rv(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;n[0]<a[0]&&(e?s.push({value:Bn(a[0]-i,o)}):s.push({value:n[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Bn(u+i,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(e?s.push({value:Bn(f+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],l=i[o-1],u=0,f=[],h=s.value-l.value,p=h/e;u<e-1;){var c=Bn(l.value+(u+1)*p);c>a[0]&&c<a[1]&&f.push(c),u++}n.push(f)}return n},t.prototype.getLabel=function(e,i){if(e==null)return"";var n=i&&i.precision;n==null?n=ue(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=Bn(e.value,n,!0);return qo(a)},t.prototype.calcNiceTicks=function(e,i,n){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=bx(a,e,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);e.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(i[0]=Bn(Math.floor(i[0]/o)*o)),e.fixMax||(i[1]=Bn(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t})(De);De.registerClass(Cx);var Zr=Cx;var Dx=typeof Float32Array<"u",oE=Dx?Float32Array:Array;function Be(r){return N(r)?Dx?new Float32Array(r):r:new oE(r)}var sE="__ec_stack_";function nv(r){return r.get("stack")||sE+r.seriesIndex}function av(r){return r.dim+r.index}function ov(r,t){var e=[];return t.eachSeriesByType(r,function(i){Lx(i)&&e.push(i)}),e}function lE(r){var t={};w(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),p=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),v=h.getStore(),g=0,d=v.count();g<d;++g){var m=v.get(c,g);t[p]?t[p].push(m):t[p]=[m]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(l,u){return l-u});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function sv(r){var t=lE(r),e=[];return w(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),p=Math.abs(h[1]-h[0]);s=u?f/p*u:f}else{var c=i.getData();s=Math.abs(o[1]-o[0])/c.count()}var v=_t(i.get("barWidth"),s),g=_t(i.get("barMaxWidth"),s),d=_t(i.get("barMinWidth")||(Px(i)?.5:1),s),m=i.get("barGap"),y=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:d,barGap:m,barCategoryGap:y,axisKey:av(a),stackId:nv(i)})}),uE(e)}function uE(r){var t={};w(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var p=i.barMinWidth;p&&(l[u].minWidth=p);var c=i.barGap;c!=null&&(s.gap=c);var v=i.barCategoryGap;v!=null&&(s.categoryGap=v)});var e={};return w(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=st(a).length;s=Math.max(35-l*4,15)+"%"}var u=_t(s,o),f=_t(i.gap,1),h=i.remainedWidth,p=i.autoWidthCount,c=(h-u)/(p+(p-1)*f);c=Math.max(c,0),w(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var x=m.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),m.width=x,h-=x+f*x,p--}else{var x=c;y&&y<x&&(x=Math.min(y,h)),_&&_>x&&(x=_),x!==c&&(m.width=x,h-=x+f*x,p--)}}),c=(h-u)/(p+(p-1)*f),c=Math.max(c,0);var v=0,g;w(a,function(m,y){m.width||(m.width=c),g=m,v+=m.width*(1+f)}),g&&(v-=g.width*f);var d=-v/2;w(a,function(m,y){e[n][y]=e[n][y]||{bandWidth:o,offset:d,width:m.width},d+=m.width*(1+f)})}),e}function Ax(r,t,e){if(r&&t){var i=r[av(t)];return i!=null&&e!=null?i[nv(e)]:i}}function Mx(r,t){var e=ov(r,t),i=sv(e);w(e,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=nv(n),u=i[av(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function Ex(r){return{seriesType:r,plan:On(),reset:function(t){if(Lx(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=hr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),c=fE(n,a),v=Px(t),g=t.get("barMinHeight")||0,d=f&&e.getDimensionIndex(f),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,x){for(var b=_.count,S=v&&Be(b*3),T=v&&l&&Be(b*3),C=v&&Be(b),A=i.master.getRect(),M=p?A.width:A.height,D,E=x.getStore(),L=0;(D=_.next())!=null;){var I=E.get(h?d:o,D),O=E.get(s,D),k=c,W=void 0;h&&(W=+I-E.get(o,D));var B=void 0,F=void 0,H=void 0,Z=void 0;if(p){var j=i.dataToPoint([I,O]);if(h){var ct=i.dataToPoint([W,O]);k=ct[0]}B=k,F=j[1]+y,H=j[0]-k,Z=m,Math.abs(H)<g&&(H=(H<0?-1:1)*g)}else{var j=i.dataToPoint([O,I]);if(h){var ct=i.dataToPoint([O,W]);k=ct[1]}B=j[0]+y,F=k,H=m,Z=j[1]-k,Math.abs(Z)<g&&(Z=(Z<=0?-1:1)*g)}v?(S[L]=B,S[L+1]=F,S[L+2]=p?H:Z,T&&(T[L]=p?A.x:B,T[L+1]=p?F:A.y,T[L+2]=M),C[D]=D):x.setItemLayout(D,{x:B,y:F,width:H,height:Z}),L+=3}v&&x.setLayout({largePoints:S,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:p})}}}}}}function Lx(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Px(r){return r.pipelineContext&&r.pipelineContext.large}function fE(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var hE=function(r,t,e,i){for(;e<i;){var n=e+i>>>1;r[n][1]<t?e=n+1:i=n}return e},Ox=(function(r){P(t,r);function t(e){var i=r.call(this,e)||this;return i.type="time",i}return t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return Hr(e.value,zc[qy(An(this._minLevelUnit))]||zc.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Zy(e,i,n,o,a)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,n=[];if(!e)return n;n.push({value:i[0],level:0});var a=this.getSetting("useUTC"),o=yE(this._minLevelUnit,this._approxInterval,a,i);return n=n.concat(o),n.push({value:i[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=Oe,i[1]+=Oe),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-Oe}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,n){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=Ku.length,l=Math.min(hE(Ku,this._approxInterval,0,s),s-1);this._interval=Ku[l][1],this._minLevelUnit=Ku[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return rt(e)?e:+qt(e)},t.prototype.contain=function(e){return Si(this.parse(e),this._extent)},t.prototype.normalize=function(e){return bi(this.parse(e),this._extent)},t.prototype.scale=function(e){return wi(e,this._extent)},t.type="time",t})(Zr),Ku=[["second",Ql],["minute",$l],["hour",Ma],["quarter-day",Ma*6],["half-day",Ma*12],["day",Oe*1.2],["half-week",Oe*3.5],["week",Oe*7],["month",Oe*31],["quarter",Oe*95],["half-year",kc/2],["year",kc]];function cE(r,t,e,i){var n=qt(t),a=qt(e),o=function(v){return Uc(n,v,i)===Uc(a,v,i)},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")},p=function(){return h()&&o("second")},c=function(){return p()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return p();case"millisecond":return c()}}function pE(r,t){return r/=Oe,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function vE(r){var t=30*Oe;return r/=t,r>6?6:r>3?3:r>2?2:1}function dE(r){return r/=Ma,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ix(r,t){return r/=t?$l:Ql,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function mE(r){return sa(r,!0)}function gE(r,t,e){var i=new Date(r);switch(An(t)){case"year":case"month":i[Fc(e)](0);case"day":i[Vc(e)](1);case"hour":i[Gc(e)](0);case"minute":i[Hc(e)](0);case"second":i[Wc(e)](0),i[Yc(e)](0)}return i.getTime()}function yE(r,t,e,i){var n=1e4,a=Bc,o=0;function s(M,D,E,L,I,O,k){for(var W=new Date(D),B=D,F=W[L]();B<E&&B<=i[1];)k.push({value:B}),F+=M,W[I](F),B=W.getTime();k.push({value:B,notAdd:!0})}function l(M,D,E){var L=[],I=!D.length;if(!cE(An(M),i[0],i[1],e)){I&&(D=[{value:gE(new Date(i[0]),M,e)},{value:i[1]}]);for(var O=0;O<D.length-1;O++){var k=D[O].value,W=D[O+1].value;if(k!==W){var B=void 0,F=void 0,H=void 0,Z=!1;switch(M){case"year":B=Math.max(1,Math.round(t/Oe/365)),F=Jl(e),H=jy(e);break;case"half-year":case"quarter":case"month":B=vE(t),F=Dn(e),H=Fc(e);break;case"week":case"half-week":case"day":B=pE(t,31),F=Ho(e),H=Vc(e),Z=!0;break;case"half-day":case"quarter-day":case"hour":B=dE(t),F=Aa(e),H=Gc(e);break;case"minute":B=Ix(t,!0),F=Wo(e),H=Hc(e);break;case"second":B=Ix(t,!1),F=Yo(e),H=Wc(e);break;case"millisecond":B=mE(t),F=Xo(e),H=Yc(e);break}s(B,k,W,F,H,Z,L),M==="year"&&E.length>1&&O===0&&E.unshift({value:E[0].value-B})}}for(var O=0;O<L.length;O++)E.push(L[O]);return L}}for(var u=[],f=[],h=0,p=0,c=0;c<a.length&&o++<n;++c){var v=An(a[c]);if(Xy(a[c])){l(a[c],u[u.length-1]||[],f);var g=a[c+1]?An(a[c+1]):null;if(v!==g){if(f.length){p=h,f.sort(function(M,D){return M.value-D.value});for(var d=[],m=0;m<f.length;++m){var y=f[m].value;(m===0||f[m-1].value!==y)&&(d.push(f[m]),y>=i[0]&&y<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>_*1.5&&p>_/1.5||(u.push(d),h>_||r===a[c]))break}f=[]}}}for(var x=wt(U(u,function(M){return wt(M,function(D){return D.value>=i[0]&&D.value<=i[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],S=x.length-1,c=0;c<x.length;++c)for(var T=x[c],C=0;C<T.length;++C)b.push({value:T[C].value,level:S-c});b.sort(function(M,D){return M.value-D.value});for(var A=[],c=0;c<b.length;++c)(c===0||b[c].value!==b[c-1].value)&&A.push(b[c]);return A}De.registerClass(Ox);var Rx=Ox;var Nx=De.prototype,_s=Zr.prototype,_E=St,xE=Math.floor,SE=Math.ceil,ju=Math.pow,cr=Math.log,lv=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Zr,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,n=this._extent,a=i.getExtent(),o=_s.getTicks.call(this,e);return U(o,function(s){var l=s.value,u=St(ju(this.base,l));return u=l===n[0]&&this._fixMin?Qu(u,a[0]):u,u=l===n[1]&&this._fixMax?Qu(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,i){var n=cr(this.base);e=cr(Math.max(0,e))/n,i=cr(Math.max(0,i))/n,_s.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=Nx.getExtent.call(this);i[0]=ju(e,i[0]),i[1]=ju(e,i[1]);var n=this._originalScale,a=n.getExtent();return this._fixMin&&(i[0]=Qu(i[0],a[0])),this._fixMax&&(i[1]=Qu(i[1],a[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=cr(e[0])/cr(i),e[1]=cr(e[1])/cr(i),Nx.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||n<=0)){var a=dl(n),o=e/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[St(SE(i[0]/a)*a),St(xE(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){_s.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=cr(e)/cr(this.base),Si(e,this._extent)},t.prototype.normalize=function(e){return e=cr(e)/cr(this.base),bi(e,this._extent)},t.prototype.scale=function(e){return e=wi(e,this._extent),ju(this.base,e)},t.type="log",t})(De),kx=lv.prototype;kx.getMinorTicks=_s.getMinorTicks;kx.getLabel=_s.getLabel;function Qu(r,t){return _E(r,ue(t))}De.registerClass(lv);var zx=lv;var bE=(function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;G(o)?this._modelMinNum=$u(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=$u(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(G(s)?this._modelMaxNum=$u(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=$u(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=N(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ye(u[0],1),Ye(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?n?0:NaN:e-a[0]*o),l==null&&(l=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Ri(s)||Ri(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var p=this._determinedMin,c=this._determinedMax;return p!=null&&(s=p,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[TE[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=wE[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r})();var wE={min:"_determinedMin",max:"_determinedMax"},TE={min:"_dataMin",max:"_dataMax"};function Bx(r,t,e){var i=r.rawExtentInfo;return i||(i=new bE(r,t,e),r.rawExtentInfo=i,i)}function $u(r,t){return t==null?null:Ri(t)?NaN:r.parse(t)}function uv(r,t){var e=r.type,i=Bx(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=ov("bar",o),l=!1;if(w(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=sv(s),f=CE(n,a,t,u);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function CE(r,t,e,i){var n=e.axis.getExtent(),a=n[1]-n[0],o=Ax(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;w(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,p=f/h-f;return t+=p*(l/u),r-=p*(s/u),{min:r,max:t}}function xs(r,t){var e=t,i=uv(r,e),n=i.extent,a=e.get("splitNumber");r instanceof zx&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Ju(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new iv({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Rx({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(De.getClass(t)||Zr)}}function Ux(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function Un(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}})(t):z(t)?(function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a??"");return o}})(t):G(t)?(function(i){return function(n,a){return e!=null&&(a=n.value-e),i(Ss(r,n),a,n.level!=null?{level:n.level}:null)}})(t):function(i){return r.scale.getLabel(i)}}function Ss(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Fx(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof iv?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=Un(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var h=i?i[f]:{value:a[0]+f},p=s(h,f),c=o.getTextRect(p),v=DE(c,o.get("rotate")||0);l?l.union(v):l=v}return l}}function DE(r,t){var e=t*Math.PI/180,i=r.width,n=r.height,a=i*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=i*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new J(r.x,r.y,a,o);return s}function tf(r){var t=r.get("interval");return t??"auto"}function ef(r){return r.type==="category"&&tf(r.getLabelModel())===0}function Vx(r,t){var e={};return w(r.mapDimensionsAll(t),function(i){e[Xu(r,i)]=!0}),st(e)}var rf=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})();function AE(r){return xi(null,r)}var ME={isDimensionStacked:hr,enableDataStack:Yu,getStackedDimension:Xu};function EE(r,t){var e=t;t instanceof gt||(e=new gt(t));var i=Ju(e);return i.setExtent(r[0],r[1]),xs(i,e),i}function LE(r){Ht(r,rf)}function PE(r,t){return t=t||{},we(r,null,null,t.state!=="normal")}var Gx=[],IE={registerPreprocessor:Uu,registerProcessor:Fu,registerPostInit:Gp,registerPostUpdate:Hp,registerUpdateLifecycle:cs,registerAction:yi,registerCoordinateSystem:Wp,registerLayout:Yp,registerVisual:qr,registerTransform:Zp,registerLoading:Vu,registerMap:qp,registerImpl:X0,PRIORITY:zp,ComponentModel:ht,ComponentView:Ot,SeriesModel:Jt,ChartView:Ft,registerComponentModel:function(r){ht.registerClass(r)},registerComponentView:function(r){Ot.registerClass(r)},registerSeriesModel:function(r){Jt.registerClass(r)},registerChartView:function(r){Ft.registerClass(r)},registerSubTypeDefaulter:function(r,t){ht.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Dh(r,t)}};function de(r){if(N(r)){w(r,function(t){de(t)});return}it(Gx,r)>=0||(Gx.push(r),G(r)&&(r={install:r}),r.install(IE))}var OE=1e-8;function Hx(r,t){return Math.abs(r-t)<OE}function cv(r,t,e){var i=0,n=r[0];if(!n)return!1;for(var a=1;a<r.length;a++){var o=r[a];i+=je(n[0],n[1],o[0],o[1],t,e),n=o}var s=r[0];return(!Hx(n[0],s[0])||!Hx(n[1],s[1]))&&(i+=je(n[0],n[1],s[0],s[1],t,e)),i!==0}var NE=[];function pv(r,t){for(var e=0;e<r.length;e++)Pt(r[e],r[e],t)}function Wx(r,t,e,i){for(var n=0;n<r.length;n++){var a=r[n];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Fe(t,t,a),Ve(e,e,a))}}function kE(r){for(var t=0,e=0,i=0,n=r.length,a=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;t+=f,e+=(a+l)*f,i+=(o+u)*f,a=l,o=u}return t?[e/t/3,i/t/3,t]:[r[0][0]||0,r[0][1]||0]}var Yx=(function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r})();var vv=(function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r})();var dv=(function(){function r(t){this.type="linestring",this.points=t}return r})();var Xx=(function(r){P(t,r);function t(e,i,n){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,i,n=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>n&&(i=o,n=l)}if(i)return kE(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var i=this._rect;if(i&&!e)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?Wx(s.exterior,n,a,e):w(s.points,function(l){Wx(l,n,a,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])||(n[0]=n[1]=a[0]=a[1]=0),i=new J(n[0],n[1],a[0]-n[0],a[1]-n[1]),e||(this._rect=i),i},t.prototype.contain=function(e){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(e[0],e[1]))return!1;t:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(cv(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(cv(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;n?a||(a=n/s):n=s*a;for(var l=new J(e,i,n,a),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var p=f[h];p.type==="polygon"?(pv(p.exterior,u),w(p.interiors,function(c){pv(c,u)})):w(p.points,function(c){pv(c,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var i=new t(e,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},t})(Yx);var z5=(function(r){P(t,r);function t(e,i){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,i=e.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=Or(NE),o=e;o&&!o.isGeoSVGGraphicRoot;)Ge(a,o.getLocalTransform(),a),o=o.parent;return Rr(a,a),Pt(n,n,a),n},t})(Yx);function zE(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var i=t.features;return w(i,function(n){var a=n.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=qx(s,o,e);break;case"Polygon":mv(s,o,e);break;case"MultiLineString":mv(s,o,e);break;case"MultiPolygon":w(s,function(l,u){return mv(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function mv(r,t,e){for(var i=0;i<r.length;i++)r[i]=qx(r[i],t[i],e)}function qx(r,t,e){for(var i=[],n=t[0],a=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/e,l/e])}return i}function nf(r,t){return r=zE(r),U(wt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var i=e.properties,n=e.geometry,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new vv(o[0],o.slice(1)));break;case"MultiPolygon":w(n.coordinates,function(l){l[0]&&a.push(new vv(l[0],l.slice(1)))});break;case"LineString":a.push(new dv([n.coordinates]));break;case"MultiLineString":a.push(new dv(n.coordinates))}var s=new Xx(i[t||"name"],a,i.cp);return s.properties=i,s})}var gv={};Me(gv,{MAX_SAFE_INTEGER:()=>Nm,asc:()=>Im,getPercentWithPrecision:()=>Om,getPixelPrecision:()=>vl,getPrecision:()=>ue,getPrecisionSafe:()=>Mh,isNumeric:()=>xo,isRadianAroundZero:()=>en,linearMap:()=>tn,nice:()=>sa,numericToNumber:()=>Xe,parseDate:()=>qt,quantile:()=>km,quantity:()=>dl,quantityExponent:()=>oa,reformIntervals:()=>zm,remRadian:()=>_o,round:()=>St});var yv={};Me(yv,{format:()=>Hr,parse:()=>qt});var _v={};Me(_v,{Arc:()=>gn,BezierCurve:()=>Uo,BoundingRect:()=>J,Circle:()=>dn,CompoundPath:()=>Rl,Ellipse:()=>Ro,Group:()=>dt,Image:()=>Se,IncrementalDisplayable:()=>Ul,Line:()=>Pe,LinearGradient:()=>xa,Polygon:()=>Bo,Polyline:()=>Gr,RadialGradient:()=>kl,Rect:()=>vt,Ring:()=>zo,Sector:()=>Le,Text:()=>mt,clipPointsByRect:()=>Dc,clipRectByRect:()=>Ac,createIcon:()=>wn,extendPath:()=>Sc,extendShape:()=>xc,getShapeClass:()=>bc,getTransform:()=>Tc,initProps:()=>kt,makeImage:()=>Fo,makePath:()=>Ta,mergePath:()=>wc,registerShape:()=>Ie,resizePath:()=>Gl,updateProps:()=>Tt});var xv={};Me(xv,{addCommas:()=>qo,capitalFirst:()=>Jy,encodeHTML:()=>Xt,formatTime:()=>$y,formatTpl:()=>La,getTextRect:()=>Xc,getTooltipMarker:()=>eu,normalizeCssArray:()=>Dr,toCamelCase:()=>Ea,truncateText:()=>xl});var Sv={};Me(Sv,{bind:()=>lt,clone:()=>$,curry:()=>pt,defaults:()=>q,each:()=>w,extend:()=>R,filter:()=>wt,indexOf:()=>it,inherits:()=>Qa,isArray:()=>N,isFunction:()=>G,isObject:()=>V,isString:()=>z,map:()=>U,merge:()=>at,reduce:()=>ee});var bs=ut();function Zx(r,t){var e=U(t,function(i){return r.scale.parse(i)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function Kx(r){var t=r.getLabelModel().get("customValues");if(t){var e=Un(r);return{labels:Zx(r,t).map(function(i){var n={value:i};return{formattedLabel:e(n),rawLabel:r.scale.getLabel(n),tickValue:i}})}}return r.type==="category"?BE(r):FE(r)}function jx(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:Zx(r,e)}:r.type==="category"?UE(r,t):{ticks:U(r.scale.getTicks(),function(i){return i.value})}}function BE(r){var t=r.getLabelModel(),e=Qx(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Qx(r,t){var e=$x(r,"labels"),i=tf(t),n=Jx(e,i);if(n)return n;var a,o;return G(i)?a=iS(r,i):(o=i==="auto"?VE(r):i,a=rS(r,o)),tS(e,i,{labels:a,labelCategoryInterval:o})}function UE(r,t){var e=$x(r,"ticks"),i=tf(t),n=Jx(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),G(i))a=iS(r,i,!0);else if(i==="auto"){var s=Qx(r,r.getLabelModel());o=s.labelCategoryInterval,a=U(s.labels,function(l){return l.tickValue})}else o=i,a=rS(r,o,!0);return tS(e,i,{ticks:a,tickCategoryInterval:o})}function FE(r){var t=r.scale.getTicks(),e=Un(r);return{labels:U(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function $x(r,t){return bs(r)[t]||(bs(r)[t]=[])}function Jx(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function tS(r,t,e){return r.push({key:t,value:e}),e}function VE(r){var t=bs(r).autoInterval;return t??(bs(r).autoInterval=r.calculateCategoryInterval())}function eS(r){var t=GE(r),e=Un(r),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,a=n.getExtent(),o=n.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),p=0,c=0;l<=a[1];l+=s){var v=0,g=0,d=ia(e({value:l}),t.font,"center","top");v=d.width*1.3,g=d.height*1.3,p=Math.max(p,v,7),c=Math.max(c,g,7)}var m=p/f,y=c/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=bs(r.model),b=r.getExtent(),S=x.lastAutoInterval,T=x.lastTickCount;return S!=null&&T!=null&&Math.abs(S-_)<=1&&Math.abs(T-o)<=1&&S>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=S:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}function GE(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function rS(r,t,e){var i=Un(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=ef(r),p=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;p&&u!==a[0]&&g(a[0]);for(var v=u;v<=a[1];v+=l)g(v);c&&v-l!==a[1]&&g(a[1]);function g(d){var m={value:d};s.push(e?d:{formattedLabel:i(m),rawLabel:n.getLabel(m),tickValue:d})}return s}function iS(r,t,e){var i=r.scale,n=Un(r),a=[];return w(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),a}var nS=[0,1],HE=(function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return vl(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(i=i.slice(),aS(i,n.count())),tn(t,nS,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),aS(i,n.count()));var a=tn(t,i,nS,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=jx(this,e),n=i.ticks,a=U(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return WE(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=U(i,function(a){return U(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return Kx(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(){return eS(this)},r})();function aS(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function WE(r,t,e,i){var n=t.length;if(!r.onBand||e||!n)return;var a=r.getExtent(),o,s;if(n===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;w(t,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s},t.push(o)}var h=a[0]>a[1];p(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&p(a[0],t[0].coord)&&t.unshift({coord:a[0]}),p(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&p(o.coord,a[1])&&t.push({coord:a[1]});function p(c,v){return c=St(c),v=St(v),h?c>v:c<v}}var af=HE;function YE(r){var t=ht.extend(r);return ht.registerClass(t),t}function XE(r){var t=Ot.extend(r);return Ot.registerClass(t),t}function qE(r){var t=Jt.extend(r);return Jt.registerClass(t),t}function ZE(r){var t=Ft.extend(r);return Ft.registerClass(t),t}var _G=Math.PI*2,xG=fe.CMD;function oS(r,t,e,i,n,a,o,s){var l=n-r,u=a-t,f=e-r,h=i-t,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var c=l*f+u*h,v=c/p;s&&(v=Math.min(Math.max(v,0),1)),v*=p;var g=o[0]=r+v*f,d=o[1]=t+v*h;return Math.sqrt((g-n)*(g-n)+(d-a)*(d-a))}var Ti=new et,Mt=new et,te=new et,Ci=new et,Mr=new et;var of=[],me=new et;function sS(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Ti.fromArray(r[0]),Mt.fromArray(r[1]),te.fromArray(r[2]),et.sub(Ci,Ti,Mt),et.sub(Mr,te,Mt);var e=Ci.len(),i=Mr.len();if(!(e<.001||i<.001)){Ci.scale(1/e),Mr.scale(1/i);var n=Ci.dot(Mr),a=Math.cos(t);if(a<n){var o=oS(Mt.x,Mt.y,te.x,te.y,Ti.x,Ti.y,of,!1);me.fromArray(of),me.scaleAndAdd(Mr,o/Math.tan(Math.PI-t));var s=te.x!==Mt.x?(me.x-Mt.x)/(te.x-Mt.x):(me.y-Mt.y)/(te.y-Mt.y);if(isNaN(s))return;s<0?et.copy(me,Mt):s>1&&et.copy(me,te),me.toArray(r[1])}}}}function lS(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ti.fromArray(r[0]),Mt.fromArray(r[1]),te.fromArray(r[2]),et.sub(Ci,Mt,Ti),et.sub(Mr,te,Mt);var i=Ci.len(),n=Mr.len();if(!(i<.001||n<.001)){Ci.scale(1/i),Mr.scale(1/n);var a=Ci.dot(t),o=Math.cos(e);if(a<o){var s=oS(Mt.x,Mt.y,te.x,te.y,Ti.x,Ti.y,of,!1);me.fromArray(of);var l=Math.PI/2,u=Math.acos(Mr.dot(t)),f=l+u-e;if(f>=l)et.copy(me,te);else{me.scaleAndAdd(Mr,s/Math.tan(Math.PI/2-f));var h=te.x!==Mt.x?(me.x-Mt.x)/(te.x-Mt.x):(me.y-Mt.y)/(te.y-Mt.y);if(isNaN(h))return;h<0?et.copy(me,Mt):h>1&&et.copy(me,te)}me.toArray(r[1])}}}}function bv(r,t,e,i){var n=e==="normal",a=n?r:r.ensureState(e);a.ignore=t;var o=i.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function KE(r,t){var e=t.smooth,i=t.points;if(i)if(r.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var n=Kn(i[0],i[1]),a=Kn(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*e,s=io([],i[1],i[0],o/n),l=io([],i[1],i[2],o/a),u=io([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function uS(r,t,e){var i=r.getTextGuideLine(),n=r.getTextContent();if(!n){i&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=n.ignore,l=0;l<va.length;l++){var u=va[l],f=t[u],h=u==="normal";if(f){var p=f.get("show"),c=h?s:K(n.states[u]&&n.states[u].ignore,s);if(c||!K(p,o)){var v=h?i:i&&i.states[u];v&&(v.ignore=!0),i&&bv(i,!0,u,f);continue}i||(i=new Gr,r.setTextGuideLine(i),!h&&(s||!o)&&bv(i,!0,"normal",t.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),bv(i,!1,u,f)}}if(i){q(i.style,e),i.style.fill=null;var g=a.get("showAbove"),d=r.textGuideLineConfig=r.textGuideLineConfig||{};d.showAbove=g||!1,i.buildPath=KE}}function fS(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},i=0;i<ce.length;i++){var n=ce[i];e[n]=r.getModel([n,t])}return e}function hS(r){for(var t=[],e=0;e<r.length;e++){var i=r[e];if(!i.defaultAttr.ignore){var n=i.label,a=n.getComputedTransform(),o=n.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Sa(o,a):null;t.push({label:n,labelLine:i.labelLine,rect:u,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return t}function jE(r,t,e,i,n,a){var o=r.length;if(o<2)return;r.sort(function(A,M){return A.rect[t]-M.rect[t]});for(var s=0,l,u=!1,f=[],h=0,p=0;p<o;p++){var c=r[p],v=c.rect;l=v[t]-s,l<0&&(v[t]-=l,c.label[t]-=l,u=!0);var g=Math.max(-l,0);f.push(g),h+=g,s=v[t]+v[e]}h>0&&a&&S(-h/o,0,o);var d=r[0],m=r[o-1],y,_;x(),y<0&&T(-y,.8),_<0&&T(_,.8),x(),b(y,_,1),b(_,y,-1),x(),y<0&&C(-y),_<0&&C(_);function x(){y=d.rect[t]-i,_=n-m.rect[t]-m.rect[e]}function b(A,M,D){if(A<0){var E=Math.min(M,-A);if(E>0){S(E*D,0,o);var L=E+A;L<0&&T(-L*D,1)}else T(-A*D,1)}}function S(A,M,D){A!==0&&(u=!0);for(var E=M;E<D;E++){var L=r[E],I=L.rect;I[t]+=A,L.label[t]+=A}}function T(A,M){for(var D=[],E=0,L=1;L<o;L++){var I=r[L-1].rect,O=Math.max(r[L].rect[t]-I[t]-I[e],0);D.push(O),E+=O}if(E){var k=Math.min(Math.abs(A)/E,M);if(A>0)for(var L=0;L<o-1;L++){var W=D[L]*k;S(W,0,L+1)}else for(var L=o-1;L>0;L--){var W=D[L-1]*k;S(-W,L,o)}}}function C(A){var M=A<0?-1:1;A=Math.abs(A);for(var D=Math.ceil(A/(o-1)),E=0;E<o-1;E++)if(M>0?S(D,0,E+1):S(-D,o-E-1,o),A-=D,A<=0)return}return u}function cS(r,t,e,i){return jE(r,"y","height",t,e,i)}function pS(r){var t=[];r.sort(function(g,d){return d.priority-g.priority});var e=new J(0,0,0,0);function i(g){if(!g.ignore){var d=g.ensureState("emphasis");d.ignore==null&&(d.ignore=!1)}g.ignore=!0}for(var n=0;n<r.length;n++){var a=r[n],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,p=!1,c=0;c<t.length;c++){var v=t[c];if(e.intersect(v.rect)){if(o&&v.axisAligned){p=!0;break}if(v.obb||(v.obb=new Sa(v.localRect,v.transform)),h||(h=new Sa(s,l)),h.intersect(v.obb)){p=!0;break}}}p?(i(u),f&&i(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}var QE=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){if(0)var i;return xi(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new dt,n=ze("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(n),n.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=ze(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Jt),vS=QE;function Ya(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=Xr(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<e.length;o++)a.push(Xr(r,t,e[o]));return a.join(" ")}}function lf(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!N(t))return t+"";for(var i=[],n=0;n<e.length;n++){var a=r.getDimensionIndex(e[n]);a>=0&&i.push(t[a])}return i.join(" ")}var $E=(function(r){P(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o){this.removeAll();var s=ze(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=JE,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){cn(this.childAt(0))},t.prototype.downplay=function(){pn(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,h)}else{var p=this.childAt(0);p.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?p.attr(c):Tt(p,c,s,i),wa(p)}if(this._updateCommon(e,i,l,n,a),u){var p=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,kt(p,c,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,p,c,v,g,d,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,p=a.focus,c=a.blurScope,g=a.labelStatesModels,d=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),c=_.get("blurScope"),v=_.get("disabled"),g=Cr(y),d=_.getShallow("scale"),m=y.getShallow("cursor")}var x=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var b=Au(e.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var S=e.getItemVisual(i,"style"),T=S.fill;if(s instanceof Se){var C=s.style;s.useStyle(R({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(R({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(i,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Tr(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:E,inheritColor:T,defaultOpacity:S.opacity});function E(O){return D?e.getName(O):Ya(e,O)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var I=d==null||d===!0?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;L.scaleX=this._sizeX*I,L.scaleY=this._sizeY*I,this.setSymbolScale(1),Vr(this,p,c,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=ot(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&ba(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ba(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return D0(e.getItemVisual(i,"symbolSize"))},t})(dt);function JE(r,t){this.parent.drift(r,t)}var ws=$E;function wv(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function dS(r){return r!=null&&!V(r)&&(r={isIgnore:r}),r||{}}function mS(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Cr(t),cursorStyle:t.get("cursor")}}var tL=(function(){function r(t){this.group=new dt,this._SymbolCtor=t||ws}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=dS(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=mS(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var p=f(h);if(wv(t,p,h,e)){var c=new o(t,h,l,u);c.setPosition(p),t.setItemGraphicEl(h,c),i.add(c)}}).update(function(h,p){var c=a.getItemGraphicEl(p),v=f(h);if(!wv(t,v,h,e)){i.remove(c);return}var g=t.getItemVisual(h,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType();if(!c||d&&d!==g)i.remove(c),c=new o(t,h,l,u),c.setPosition(v);else{c.updateData(t,h,l,u);var m={x:v[0],y:v[1]};s?c.attr(m):Tt(c,m,n)}i.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var p=a.getItemGraphicEl(h);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=mS(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=dS(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(wv(e,o,a,i)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Tn(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},i.hostModel)}):e.removeAll()},r})(),gS=tL;function uf(r,t,e){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=eL(n,e),o=i.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=U(r.dimensions,function(v){return t.mapDimension(v)}),p=!1,c=t.getCalculationInfo("stackResultDimension");return hr(t,h[0])&&(p=!0,h[0]=c),hr(t,h[1])&&(p=!0,h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function eL(r,t){var e=0,i=r.scale.getExtent();return t==="start"?e=i[0]:t==="end"?e=i[1]:rt(t)&&!isNaN(t)?e=t:i[0]>0?e=i[0]:i[1]<0&&(e=i[1]),e}function ff(r,t,e,i){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function rL(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,n){e.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function Tv(r,t,e,i,n,a,o,s){for(var l=rL(r,t),u=[],f=[],h=[],p=[],c=[],v=[],g=[],d=uf(n,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],b=!0,S=void 0,T=void 0;switch(x.cmd){case"=":S=x.idx*2,T=x.idx1*2;var C=m[S],A=m[S+1],M=y[T],D=y[T+1];(isNaN(C)||isNaN(A))&&(C=M,A=D),u.push(C,A),f.push(M,D),h.push(e[S],e[S+1]),p.push(i[T],i[T+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var E=x.idx,L=d.dataDimsForPoint,I=n.dataToPoint([t.get(L[0],E),t.get(L[1],E)]);T=E*2,u.push(I[0],I[1]),f.push(y[T],y[T+1]);var O=ff(d,n,t,E);h.push(O[0],O[1]),p.push(i[T],i[T+1]),g.push(t.getRawIndex(E));break;case"-":b=!1}b&&(c.push(x),v.push(v.length))}v.sort(function(Vt,bt){return g[Vt]-g[bt]});for(var k=u.length,W=Be(k),B=Be(k),F=Be(k),H=Be(k),Z=[],_=0;_<v.length;_++){var j=v[_],ct=_*2,yt=j*2;W[ct]=u[yt],W[ct+1]=u[yt+1],B[ct]=f[yt],B[ct+1]=f[yt+1],F[ct]=h[yt],F[ct+1]=h[yt+1],H[ct]=p[yt],H[ct+1]=p[yt+1],Z[_]=c[j]}return{current:W,next:B,stackedOnCurrent:F,stackedOnNext:H,status:Z}}var Di=Math.min,Ai=Math.max;function Fn(r,t){return isNaN(r)||isNaN(t)}function Cv(r,t,e,i,n,a,o,s,l){for(var u,f,h,p,c,v,g=e,d=0;d<i;d++){var m=t[g*2],y=t[g*2+1];if(g>=n||g<0)break;if(Fn(m,y)){if(l){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](m,y),h=m,p=y;else{var _=m-u,x=y-f;if(_*_+x*x<.5){g+=a;continue}if(o>0){for(var b=g+a,S=t[b*2],T=t[b*2+1];S===m&&T===y&&d<i;)d++,b+=a,g+=a,S=t[b*2],T=t[b*2+1],m=t[g*2],y=t[g*2+1],_=m-u,x=y-f;var C=d+1;if(l)for(;Fn(S,T)&&C<i;)C++,b+=a,S=t[b*2],T=t[b*2+1];var A=.5,M=0,D=0,E=void 0,L=void 0;if(C>=i||Fn(S,T))c=m,v=y;else{M=S-u,D=T-f;var I=m-u,O=S-m,k=y-f,W=T-y,B=void 0,F=void 0;if(s==="x"){B=Math.abs(I),F=Math.abs(O);var H=M>0?1:-1;c=m-H*B*o,v=y,E=m+H*F*o,L=y}else if(s==="y"){B=Math.abs(k),F=Math.abs(W);var Z=D>0?1:-1;c=m,v=y-Z*B*o,E=m,L=y+Z*F*o}else B=Math.sqrt(I*I+k*k),F=Math.sqrt(O*O+W*W),A=F/(F+B),c=m-M*o*(1-A),v=y-D*o*(1-A),E=m+M*o*A,L=y+D*o*A,E=Di(E,Ai(S,m)),L=Di(L,Ai(T,y)),E=Ai(E,Di(S,m)),L=Ai(L,Di(T,y)),M=E-m,D=L-y,c=m-M*B/F,v=y-D*B/F,c=Di(c,Ai(u,m)),v=Di(v,Ai(f,y)),c=Ai(c,Di(u,m)),v=Ai(v,Di(f,y)),M=m-c,D=y-v,E=m+M*F/B,L=y+D*F/B}r.bezierCurveTo(h,p,c,v,m,y),h=E,p=L}else r.lineTo(m,y)}u=m,f=y,g+=a}return d}var yS=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),_S=(function(r){P(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new yS},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Fn(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Fn(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Cv(e,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(e,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=fe.CMD,s,l,u=i==="x",f=[],h=0;h<a.length;){var p=a[h++],c=void 0,v=void 0,g=void 0,d=void 0,m=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[h++],l=a[h++];break;case o.L:if(c=a[h++],v=a[h++],_=u?(e-s)/(c-s):(e-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(c-s)*_+s;return u?[e,x]:[x,e]}s=c,l=v;break;case o.C:c=a[h++],v=a[h++],g=a[h++],d=a[h++],m=a[h++],y=a[h++];var b=u?Hi(s,c,g,m,e,f):Hi(l,v,d,y,e,f);if(b>0)for(var S=0;S<b;S++){var T=f[S];if(T<=1&&T>=0){var x=u?Ct(l,v,d,y,T):Ct(s,c,g,m,T);return u?[e,x]:[x,e]}}s=m,l=y;break}}},t})(tt);var iL=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(yS),xS=(function(r){P(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new iL},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Fn(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Fn(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Cv(e,n,o,s,s,1,i.smooth,l,i.connectNulls);Cv(e,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,e.closePath()}},t})(tt);function Dv(r,t,e,i,n){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||2;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 vt({shape:{x:o,y:s,width:l,height:u}});if(t){var p=r.getBaseAxis(),c=p.isHorizontal(),v=p.inverse;c?(v&&(h.shape.x+=l),h.shape.width=0):(v||(h.shape.y+=u),h.shape.height=0);var g=G(n)?function(d){n(d,h)}:null;kt(h,{shape:{width:l,height:u,x:o,y:s}},e,null,i,g)}return h}function Av(r,t,e){var i=r.getArea(),n=St(i.r0,1),a=St(i.r,1),o=new Le({shape:{cx:St(r.cx,1),cy:St(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,kt(o,{shape:{endAngle:i.endAngle,r:a}},e)}return o}function SS(r,t,e,i,n){if(r){if(r.type==="polar")return Av(r,t,e);if(r.type==="cartesian2d")return Dv(r,t,e,i,n)}else return null;return null}function Ts(r,t){return r.type===t}function bS(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function wS(r){for(var t=1/0,e=1/0,i=-1/0,n=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),i=Math.max(o,i)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[i,n]]}function TS(r,t){var e=wS(r),i=e[0],n=e[1],a=wS(t),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function CS(r){return rt(r)?r:r?.5:0}function nL(r,t,e){if(!e.valueDim)return[];for(var i=t.count(),n=Be(i*2),a=0;a<i;a++){var o=ff(e,r,t,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function Mi(r,t,e,i){var n=t.getBaseAxis(),a=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(i){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var p=(u[a]+f[a])/2,c=[];l[a]=c[a]=p,l[1-a]=u[1-a],c[1-a]=f[1-a],o.push(l[0],l[1]),o.push(c[0],c[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function aL(r,t){var e=[],i=r.length,n,a;function o(f,h,p){var c=f.coord,v=(p-c)/(h.coord-c),g=tl(v,[f.color,h.color]);return{coord:p,color:g}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){a?e.push(o(a,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),a=l}return e}function oL(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=t.getAxis(n),u=U(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var p=aL(u,n==="x"?e.getWidth():e.getHeight()),c=p.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 v=10,g=p[0].coord-v,d=p[c-1].coord+v,m=d-g;if(m<.001)return"transparent";w(p,function(_){_.offset=(_.coord-g)/m}),p.push({offset:c?p[c-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:c?p[0].offset:.5,color:h[0]||"transparent"});var y=new xa(0,0,0,0,p,!0);return y[n]=g,y[n+"2"]=d,y}}}function sL(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(n&&lL(a,t))){var o=t.mapDimension(a.dim),s={};return w(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function lL(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(ws.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function uL(r,t){return isNaN(r)||isNaN(t)}function fL(r){for(var t=r.length/2;t>0&&uL(r[t*2-2],r[t*2-1]);t--);return t-1}function DS(r,t){return[r[t*2],r[t*2+1]]}function hL(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function AS(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<ce.length;t++)if(r.get([ce[t],"endLabel","show"]))return!0;return!1}function Mv(r,t,e,i){if(Ts(t,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=AS(i)?function(c,v){r._endLabelOnDuring(c,v,o,s,a,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=Dv(t,e,i,function(){var c=r._endLabel;c&&e&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=f.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=p*2):(h.x-=p,h.width+=p*2)}return l&&l(1,f),f}else return Av(t,e,i)}function cL(r,t){var e=t.getBaseAxis(),i=e.isHorizontal(),n=e.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var pL=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new dt,i=new gS;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e},t.prototype.render=function(e,i,n){var a=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),h=l.getLayout("points")||[],p=o.type==="polar",c=this._coordSys,v=this._symbolDraw,g=this._polyline,d=this._polygon,m=this._lineGroup,y=!i.ssr&&e.get("animation"),_=!f.isEmpty(),x=f.get("origin"),b=uf(o,l,x),S=_&&nL(o,l,b),T=e.get("showSymbol"),C=e.get("connectNulls"),A=T&&!p&&sL(e,l,o),M=this._data;M&&M.eachItemGraphicEl(function(bt,ge){bt.__temp&&(s.remove(bt),M.setItemGraphicEl(ge,null))}),T||v.remove(),s.add(m);var D=p?!1:e.get("step"),E;o&&o.getArea&&e.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var L=oL(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&c.type===o.type&&D===this._step))T&&v.updateData(l,{isIgnore:A,clipShape:E,disableAnimation:!0,getSymbolPoint:function(bt){return[h[bt*2],h[bt*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,E),D&&(h=Mi(h,o,D,C),S&&(S=Mi(S,o,D,C))),g=this._newPolyline(h),_?d=this._newPolygon(h,S):d&&(m.remove(d),d=this._polygon=null),p||this._initOrUpdateEndLabel(e,o,ur(L)),m.setClipPath(Mv(this,o,!0,e));else{_&&!d?d=this._newPolygon(h,S):d&&!_&&(m.remove(d),d=this._polygon=null),p||this._initOrUpdateEndLabel(e,o,ur(L));var I=m.getClipPath();if(I){var O=Mv(this,o,!1,e);kt(I,{shape:O.shape},e)}else m.setClipPath(Mv(this,o,!0,e));T&&v.updateData(l,{isIgnore:A,clipShape:E,disableAnimation:!0,getSymbolPoint:function(bt){return[h[bt*2],h[bt*2+1]]}}),(!bS(this._stackedOnPoints,S)||!bS(this._points,h))&&(y?this._doUpdateAnimation(l,S,o,n,D,x,C):(D&&(h=Mi(h,o,D,C),S&&(S=Mi(S,o,D,C))),g.setShape({points:h}),d&&d.setShape({points:h,stackedOnPoints:S})))}var k=e.getModel("emphasis"),W=k.get("focus"),B=k.get("blurScope"),F=k.get("disabled");if(g.useStyle(q(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),vn(g,e,"lineStyle"),g.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var H=g.getState("emphasis").style;H.lineWidth=+g.style.lineWidth+1}ot(g).seriesIndex=e.seriesIndex,Vr(g,W,B,F);var Z=CS(e.get("smooth")),j=e.get("smoothMonotone");if(g.setShape({smooth:Z,smoothMonotone:j,connectNulls:C}),d){var ct=l.getCalculationInfo("stackedOnSeries"),yt=0;d.useStyle(q(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ct&&(yt=CS(ct.get("smooth"))),d.setShape({smooth:Z,stackedOnSmooth:yt,smoothMonotone:j,connectNulls:C}),vn(d,e,"areaStyle"),ot(d).seriesIndex=e.seriesIndex,Vr(d,W,B,F)}var Vt=function(bt){a._changePolyState(bt)};l.eachItemGraphicEl(function(bt){bt&&(bt.onHoverStateChange=Vt)}),this._polyline.onHoverStateChange=Vt,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=h,this._step=D,this._valueOrigin=x,e.get("triggerLineEvent")&&(this.packEventData(e,g),d&&this.packEventData(e,d))},t.prototype.packEventData=function(e,i){ot(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,n,a){var o=e.getData(),s=qe(o,a);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 p=e.get("zlevel")||0,c=e.get("z")||0;u=new ws(o,s),u.x=f,u.y=h,u.setZ(p,c);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=c,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ft.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=qe(o,a);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 Ft.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;ac(this._polyline,e),i&&ac(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new _S({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new xS({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");G(f)&&(f=f(null));var h=u.get("animationDelay")||0,p=G(h)?h(null):h;e.eachItemGraphicEl(function(c,v){var g=c;if(g){var d=[c.x,c.y],m=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,b=i.pointToCoord(d);a?(m=x.startAngle,y=x.endAngle,_=-b[1]/180*Math.PI):(m=x.r0,y=x.r,_=b[0])}else{var S=n;a?(m=S.x,y=S.x+S.width,_=c.x):(m=S.y+S.height,y=S.y,_=c.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var C=G(h)?h(v):f*T+p,A=g.getSymbolPath(),M=A.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(AS(e)){var o=e.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 mt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=fL(l);f>=0&&(Tr(s,Cr(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,p,c){return c!=null?lf(o,c):Ya(o,h)},enableTextSetter:!0},cL(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=n.getLayout("points"),p=n.hostModel,c=p.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,d=l.getBaseAxis(),m=d.isHorizontal(),y=d.inverse,_=i.shape,x=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?g:0)*(y?-1:1),S=(m?0:-g)*(y?-1:1),T=m?"x":"y",C=hL(h,x,T),A=C.range,M=A[1]-A[0],D=void 0;if(M>=1){if(M>1&&!c){var E=DS(h,A[0]);u.attr({x:E[0]+b,y:E[1]+S}),o&&(D=p.getRawValue(A[0]))}else{var E=f.getPointOn(x,T);E&&u.attr({x:E[0]+b,y:E[1]+S});var L=p.getRawValue(A[0]),I=p.getRawValue(A[1]);o&&(D=Oh(n,v,L,I,C.t))}a.lastFrameIndex=A[0]}else{var O=e===1||a.lastFrameIndex>0?A[0]:0,E=DS(h,O);o&&(D=p.getRawValue(O)),u.attr({x:E[0]+b,y:E[1]+S})}if(o){var k=Ca(u);typeof k.setLabelText=="function"&&k.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,p=Tv(this._data,e,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),c=p.current,v=p.stackedOnCurrent,g=p.next,d=p.stackedOnNext;if(o&&(c=Mi(p.current,n,o,l),v=Mi(p.stackedOnCurrent,n,o,l),g=Mi(p.next,n,o,l),d=Mi(p.stackedOnNext,n,o,l)),TS(c,g)>3e3||f&&TS(v,d)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:d}));return}u.shape.__points=p.current,u.shape.points=c;var m={shape:{points:g}};p.current!==c&&(m.shape.__points=p.next),u.stopAnimation(),Tt(u,m,h),f&&(f.setShape({points:c,stackedOnPoints:v}),f.stopAnimation(),Tt(f,{shape:{stackedOnPoints:d}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var b=_[x].cmd;if(b==="="){var S=e.getItemGraphicEl(_[x].idx1);S&&y.push({el:S,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var A=y[C].el,M=y[C].ptIdx*2;A.x=T[M],A.y=T[M+1],A.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Ft),MS=pL;function Ev(r,t){return{seriesType:r,plan:On(),reset:function(e){var i=e.getData(),n=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(n){var s=U(n.dimensions,function(c){return i.mapDimension(c)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");hr(i,s[0])&&(s[0]=u),hr(i,s[1])&&(s[1]=u);var f=i.getStore(),h=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(c,v){for(var g=c.end-c.start,d=o&&Be(g*l),m=[],y=[],_=c.start,x=0;_<c.end;_++){var b=void 0;if(l===1){var S=f.get(h,_);b=n.dataToPoint(S,null,y)}else m[0]=f.get(h,_),m[1]=f.get(p,_),b=n.dataToPoint(m,null,y);o?(d[x++]=b[0],d[x++]=b[1]):v.setItemLayout(_,b.slice())}o&&v.setLayout("points",d)}}}}}}var vL={average:function(r){for(var t=0,e=0,i=0;i<r.length;i++)isNaN(r[i])||(t+=r[i],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},minmax:function(r){for(var t=-1/0,e=-1/0,i=0;i<r.length;i++){var n=r[i],a=Math.abs(n);a>t&&(t=a,e=n)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},dL=function(r){return Math.round(r.length/2)};function Cs(r){return{seriesType:r,reset:function(t,e,i){var n=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/p);if(isFinite(c)&&c>1){a==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var v=void 0;z(a)?v=vL[a]:G(a)&&(v=a),v&&t.setData(n.downSample(n.mapDimension(u.dim),1/c,v,dL))}}}}}function Lv(r){r.registerChartView(MS),r.registerSeriesModel(vS),r.registerLayout(Ev("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Cs("line"))}var ES=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return xi(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(n)w(a.getAxes(),function(p,c){if(p.type==="category"&&i!=null){var v=p.getTicksCoords(),g=p.getTickModel().get("alignWithLabel"),d=o[c],m=i[c]==="x1"||i[c]==="y1";if(m&&!g&&(d+=1),v.length<2)return;if(v.length===2){s[c]=p.toGlobalCoord(p.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,x=1,b=0;b<v.length;b++){var S=v[b].coord,T=b===v.length-1?v[b-1].tickValue+x:v[b].tickValue;if(T===d){_=S;break}else if(T<d)y=S;else if(y!=null&&T>d){_=(S+y)/2;break}b===1&&(x=T-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[c]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(Jt);Jt.registerClass(ES);var Pv=ES;var mL=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return xi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,n){return n.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Yl(Pv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(Pv),LS=mL;var gL=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),yL=(function(r){P(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new gL},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,h=i.endAngle,p=i.clockwise,c=Math.PI*2,v=p?h-f<c:f-h<c;v||(f=h-(p?c:-c));var g=Math.cos(f),d=Math.sin(f),m=Math.cos(h),y=Math.sin(h);v?(e.moveTo(g*o+n,d*o+a),e.arc(g*u+n,d*u+a,l,-Math.PI+f,f,!p)):e.moveTo(g*s+n,d*s+a),e.arc(n,a,s,f,h,!p),e.arc(m*u+n,y*u+a,l,h-Math.PI*2,h-Math.PI,!p),o!==0&&e.arc(n,a,o,h,f,p)},t})(tt),Iv=yL;function PS(r,t){t=t||{};var e=t.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return $i(i,n,a);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,h=u.cy,p=u.r,c=u.r0,v=(p+c)/2,g=u.startAngle,d=u.endAngle,m=(g+d)/2,y=e?Math.abs(p-c)/2:0,_=Math.cos,x=Math.sin,b=f+p*_(g),S=h+p*x(g),T="left",C="top";switch(s){case"startArc":b=f+(c-l)*_(m),S=h+(c-l)*x(m),T="center",C="top";break;case"insideStartArc":b=f+(c+l)*_(m),S=h+(c+l)*x(m),T="center",C="bottom";break;case"startAngle":b=f+v*_(g)+hf(g,l+y,!1),S=h+v*x(g)+cf(g,l+y,!1),T="right",C="middle";break;case"insideStartAngle":b=f+v*_(g)+hf(g,-l+y,!1),S=h+v*x(g)+cf(g,-l+y,!1),T="left",C="middle";break;case"middle":b=f+v*_(m),S=h+v*x(m),T="center",C="middle";break;case"endArc":b=f+(p+l)*_(m),S=h+(p+l)*x(m),T="center",C="bottom";break;case"insideEndArc":b=f+(p-l)*_(m),S=h+(p-l)*x(m),T="center",C="top";break;case"endAngle":b=f+v*_(d)+hf(d,l+y,!0),S=h+v*x(d)+cf(d,l+y,!0),T="left",C="middle";break;case"insideEndAngle":b=f+v*_(d)+hf(d,-l+y,!0),S=h+v*x(d)+cf(d,-l+y,!0),T="right",C="middle";break;default:return $i(i,n,a)}return i=i||{},i.x=b,i.y=S,i.align=T,i.verticalAlign=C,i}}function IS(r,t,e,i){if(rt(i)){r.setTextConfig({rotation:i});return}else if(N(t)){r.setTextConfig({rotation:0});return}var n=r.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function hf(r,t,e){return t*Math.sin(r)*(e?-1:1)}function cf(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Vn(r,t,e){var i=r.get("borderRadius");if(i==null)return e?{cornerRadius:0}:null;N(i)||(i=[i,i,i,i]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:U(i,function(a){return Ye(a,n)})}}var Ov=Math.max,Rv=Math.min;function _L(r,t){var e=r.getArea&&r.getArea();if(Ts(r,"cartesian2d")){var i=r.getBaseAxis();if(i.type!=="category"||!i.onBand){var n=t.getLayout("bandWidth");i.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var xL=(function(r){P(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,i,n,a){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,i,n):this._renderNormal(e,i,n,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,i){this._progressiveEls=[],this._incrementalRenderLarge(e,i)},t.prototype.eachRendered=function(e){Tn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e,i,n,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var p=e.isAnimationEnabled()?e:null,c=SL(e,u);c&&this._enableRealtimeSort(c,s,n);var v=e.get("clip",!0)||c,g=_L(u,s);o.removeClipPath();var d=e.get("roundCap",!0),m=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],b=this._backgroundEls,S=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function C(D){var E=pf[u.type](s,D),L=ML(u,h,E);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),x[D]=L,L}s.diff(l).add(function(D){var E=s.getItemModel(D),L=pf[u.type](s,D,E);if(m&&C(D),!(!s.hasValue(D)||!zS[u.type](L))){var I=!1;v&&(I=OS[u.type](g,L));var O=RS[u.type](e,s,D,L,h,p,f.model,!1,d);c&&(O.forceLabelAnimation=!0),BS(O,s,D,E,L,e,h,u.type==="polar"),S?O.attr({shape:L}):c?NS(c,p,O,L,D,h,!1,!1):kt(O,{shape:L},e,D),s.setItemGraphicEl(D,O),o.add(O),O.ignore=I}}).update(function(D,E){var L=s.getItemModel(D),I=pf[u.type](s,D,L);if(m){var O=void 0;b.length===0?O=C(E):(O=b[E],O.useStyle(y.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",_):O.setShape("cornerRadius",_),x[D]=O);var k=pf[u.type](s,D),W=HS(h,k,u);Tt(O,{shape:W},p,D)}var B=l.getItemGraphicEl(E);if(!s.hasValue(D)||!zS[u.type](I)){o.remove(B);return}var F=!1;if(v&&(F=OS[u.type](g,I),F&&o.remove(B)),B?wa(B):B=RS[u.type](e,s,D,I,h,p,f.model,!!B,d),c&&(B.forceLabelAnimation=!0),T){var H=B.getTextContent();if(H){var Z=Ca(H);Z.prevValue!=null&&(Z.prevValue=Z.value)}}else BS(B,s,D,L,I,e,h,u.type==="polar");S?B.attr({shape:I}):c?NS(c,p,B,I,D,h,!0,T):Tt(B,{shape:I},e,D,null),s.setItemGraphicEl(D,B),B.ignore=F,o.add(B)}).remove(function(D){var E=l.getItemGraphicEl(D);E&&Sn(E,e,D)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new dt);A.removeAll();for(var M=0;M<x.length;++M)A.add(x[M]);o.add(A),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,i,n){this._clear(),FS(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),FS(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&SS(e.coordinateSystem,!1,e),n=this.group;i?n.setClipPath(i):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,i,n){var a=this;if(i.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,i,n){var a=[];return e.each(e.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,i,n){for(var a=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:i(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,i,n,a){if(this._isOrderChangedWithinSameData(e,i,n)){var o=this._dataSort(e,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,i,n){var a=i.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Sn(a,e,ot(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Ft),OS={cartesian2d:function(r,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,a=r.y+r.height,o=Ov(t.x,r.x),s=Rv(t.x+t.width,n),l=Ov(t.y,r.y),u=Rv(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>n?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var n=Rv(t.r,r.r),a=Ov(t.r0,r.r0);t.r=n,t.r0=a;var o=n-a<0;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},RS={cartesian2d:function(r,t,e,i,n,a,o,s,l){var u=new vt({shape:R({},i),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,t,e,i,n,a,o,s,l){var u=!n&&l?Iv:Le,f=new u({shape:i,z2:1});f.name="item";var h=GS(n);if(f.calculateTextPosition=PS(h,{isRoundCap:u===Iv}),a){var p=f.shape,c=n?"r":"endAngle",v={};p[c]=n?i.r0:i.startAngle,v[c]=i[c],(s?Tt:kt)(f,{shape:v},a)}return f}};function SL(r,t){var e=r.get("realtimeSort",!0),i=t.getBaseAxis();if(e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function NS(r,t,e,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Tt:kt)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Tt:kt)(e,{shape:u},f,n)}function kS(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var bL=["x","y","width","height"],wL=["cx","cy","r","startAngle","endAngle"],zS={cartesian2d:function(r){return!kS(r,bL)},polar:function(r){return!kS(r,wL)}},pf={cartesian2d:function(r,t,e){var i=r.getItemLayout(t),n=e?CL(e,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,t,e){var i=r.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function TL(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function GS(r){return(function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}})(r)}function BS(r,t,e,i,n,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=Vn(i.getModel("itemStyle"),f,!0);R(f,h),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var p=i.getShallow("cursor");p&&r.attr("cursor",p);var c=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",v=Cr(i);Tr(r,v,{labelFetcher:a,labelDataIndex:e,defaultText:Ya(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var g=r.getTextContent();if(s&&g){var d=i.get(["label","position"]);r.textConfig.inside=d==="middle"?!0:null,IS(r,d==="outside"?c:d,GS(o),i.get(["label","rotate"]))}Ny(g,v,a.getRawValue(e),function(y){return lf(t,y)});var m=i.getModel(["emphasis"]);Vr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),vn(r,i),TL(n)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function CL(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var DL=(function(){function r(){}return r})(),US=(function(r){P(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new DL},t.prototype.buildPath=function(e,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],e.rect(s[0],s[1],l[0],l[1])},t})(tt);function FS(r,t,e,i){var n=r.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new US({shape:{points:u},incremental:!!i,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new US({shape:{points:n.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(n.getVisual("style")),ot(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",VS),h.on("mousemove",VS)),e&&e.push(h)}var VS=Rn(function(r){var t=this,e=AL(t,r.offsetX,r.offsetY);ot(t).dataIndex=e>=0?e:null},30,!1);function AL(r,t,e){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var p=f*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function HS(r,t,e){if(Ts(e,"cartesian2d")){var i=t,n=e.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=e.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function ML(r,t,e){var i=r.type==="polar"?Le:vt;return new i({shape:HS(t,e,r),silent:!0,z2:0})}var WS=xL;function Nv(r){r.registerChartView(WS),r.registerSeriesModel(LS),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,pt(Mx,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ex("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Cs("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var YS=Math.PI*2,vf=Math.PI/180;function XS(r,t){return Re(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function kv(r,t){var e=XS(r,t),i=r.get("center"),n=r.get("radius");N(n)||(n=[0,n]);var a=_t(e.width,t.getWidth()),o=_t(e.height,t.getHeight()),s=Math.min(a,o),l=_t(n[0],s/2),u=_t(n[1],s/2),f,h,p=r.coordinateSystem;if(p){var c=p.dataToPoint(i);f=c[0]||0,h=c[1]||0}else N(i)||(i=[i,i]),f=_t(i[0],a)+e.x,h=_t(i[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function zv(r,t,e){t.eachSeriesByType(r,function(i){var n=i.getData(),a=n.mapDimension("value"),o=XS(i,e),s=kv(i,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,p=-i.get("startAngle")*vf,c=i.get("endAngle"),v=i.get("padAngle")*vf;c=c==="auto"?p-YS:-c*vf;var g=i.get("minAngle")*vf,d=g+v,m=0;n.each(a,function(W){!isNaN(W)&&m++});var y=n.getSum(a),_=Math.PI/(y||m)*2,x=i.get("clockwise"),b=i.get("roseType"),S=i.get("stillShowZeroSum"),T=n.getDataExtent(a);T[0]=0;var C=x?1:-1,A=[p,c],M=C*v/2;jh(A,!x),p=A[0],c=A[1];var D=Bv(i);D.startAngle=p,D.endAngle=c,D.clockwise=x;var E=Math.abs(c-p),L=E,I=0,O=p;if(n.setLayout({viewRect:o,r:f}),n.each(a,function(W,B){var F;if(isNaN(W)){n.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:h,r:b?NaN:f});return}b!=="area"?F=y===0&&S?_:W*_:F=E/m,F<d?(F=d,L-=d):I+=W;var H=O+C*F,Z=0,j=0;v>F?(Z=O+C*F/2,j=Z):(Z=O+M,j=H-M),n.setItemLayout(B,{angle:F,startAngle:Z,endAngle:j,clockwise:x,cx:l,cy:u,r0:h,r:b?tn(W,T,[h,f]):f}),O=H}),L<YS&&m)if(L<=.001){var k=E/m;n.each(a,function(W,B){if(!isNaN(W)){var F=n.getItemLayout(B);F.angle=k;var H=0,Z=0;k<v?(H=p+C*(B+1/2)*k,Z=H):(H=p+C*B*k+M,Z=p+C*(B+1)*k-M),F.startAngle=H,F.endAngle=Z}})}else _=L/I,O=p,n.each(a,function(W,B){if(!isNaN(W)){var F=n.getItemLayout(B),H=F.angle===d?d:W*_,Z=0,j=0;H<v?(Z=O+C*H/2,j=Z):(Z=O+M,j=O+C*H-M),F.startAngle=Z,F.endAngle=j,O+=C*H}})})}var Bv=ut();function Uv(r){return{seriesType:r,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=t.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}var EL=Math.PI/180;function qS(r,t,e,i,n,a,o,s,l,u){if(r.length<2)return;function f(g){for(var d=g.rB,m=d*d,y=0;y<g.list.length;y++){var _=g.list[y],x=Math.abs(_.label.y-e),b=i+_.len,S=b*b,T=Math.sqrt((1-Math.abs(x*x/m))*S),C=t+(T+_.len2)*n,A=C-_.label.x,M=_.targetTextWidth-A*n;ZS(_,M,!0),_.label.x=C}}function h(g){for(var d={list:[],maxY:0},m={list:[],maxY:0},y=0;y<g.length;y++)if(g[y].labelAlignTo==="none"){var _=g[y],x=_.label.y>e?m:d,b=Math.abs(_.label.y-e);if(b>=x.maxY){var S=_.label.x-t-_.len2*n,T=i+_.len,C=Math.abs(S)<T?Math.sqrt(b*b/(1-S*S/T/T)):T;x.rB=C,x.maxY=b}x.list.push(_)}f(d),f(m)}for(var p=r.length,c=0;c<p;c++)if(r[c].position==="outer"&&r[c].labelAlignTo==="labelLine"){var v=r[c].label.x-u;r[c].linePoints[1][0]+=v,r[c].label.x=u}cS(r,l,l+o)&&h(r)}function LL(r,t,e,i,n,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<r.length;p++){var c=r[p].label;Fv(r[p])||(c.x<t?(f=Math.min(f,c.x),l.push(r[p])):(h=Math.max(h,c.x),u.push(r[p])))}for(var p=0;p<r.length;p++){var v=r[p];if(!Fv(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var c=v.label,g=v.linePoints,d=void 0;v.labelAlignTo==="edge"?c.x<t?d=g[2][0]-v.labelDistance-o-v.edgeDistance:d=o+n-v.edgeDistance-g[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?c.x<t?d=f-o-v.bleedMargin:d=o+n-h-v.bleedMargin:c.x<t?d=c.x-o-v.bleedMargin:d=o+n-c.x-v.bleedMargin,v.targetTextWidth=d,ZS(v,d)}}qS(u,t,e,i,1,n,a,o,s,h),qS(l,t,e,i,-1,n,a,o,s,f);for(var p=0;p<r.length;p++){var v=r[p];if(!Fv(v)&&v.linePoints){var c=v.label,g=v.linePoints,m=v.labelAlignTo==="edge",y=c.style.padding,_=y?y[1]+y[3]:0,x=c.style.backgroundColor?0:_,b=v.rect.width+x,S=g[1][0]-g[2][0];m?c.x<t?g[2][0]=o+v.edgeDistance+b+v.labelDistance:g[2][0]=o+n-v.edgeDistance-b-v.labelDistance:(c.x<t?g[2][0]=c.x+v.labelDistance:g[2][0]=c.x-v.labelDistance,g[1][0]=g[2][0]+S),g[1][1]=g[2][1]=c.y}}}function ZS(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var i=r.label,n=i.style,a=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(t<f||e){var h=a.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",o)}else{var c=t-l,v=t<f?c:e?c>r.unconstrainedWidth?null:c:null;i.setStyle("width",v)}var g=i.getBoundingRect();a.width=g.width;var d=(i.style.margin||0)+2.1;a.height=g.height+d,a.y-=(a.height-h)/2}}}function Fv(r){return r.position==="center"}function Vv(r){var t=r.getData(),e=[],i,n,a=!1,o=(r.get("minShowLabelAngle")||0)*EL,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,p=s.height;function c(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}t.each(function(S){var T=t.getItemGraphicEl(S),C=T.shape,A=T.getTextContent(),M=T.getTextGuideLine(),D=t.getItemModel(S),E=D.getModel("label"),L=E.get("position")||D.get(["emphasis","label","position"]),I=E.get("distanceToLabelLine"),O=E.get("alignTo"),k=_t(E.get("edgeDistance"),u),W=E.get("bleedMargin"),B=D.getModel("labelLine"),F=B.get("length");F=_t(F,u);var H=B.get("length2");if(H=_t(H,u),Math.abs(C.endAngle-C.startAngle)<o){w(A.states,c),A.ignore=!0,M&&(w(M.states,c),M.ignore=!0);return}if(v(A)){var Z=(C.startAngle+C.endAngle)/2,j=Math.cos(Z),ct=Math.sin(Z),yt,Vt,bt,ge;i=C.cx,n=C.cy;var Ae=L==="inside"||L==="inner";if(L==="center")yt=C.cx,Vt=C.cy,ge="center";else{var Qt=(Ae?(C.r+C.r0)/2*j:C.r*j)+i,Et=(Ae?(C.r+C.r0)/2*ct:C.r*ct)+n;if(yt=Qt+j*3,Vt=Et+ct*3,!Ae){var nt=Qt+j*(F+l-C.r),ft=Et+ct*(F+l-C.r),pr=nt+(j<0?-1:1)*H,Gt=ft;O==="edge"?yt=j<0?f+k:f+u-k:yt=pr+(j<0?-I:I),Vt=Gt,bt=[[Qt,Et],[nt,ft],[pr,Gt]]}ge=Ae?"center":O==="edge"?j>0?"right":"left":j>0?"left":"right"}var jr=Math.PI,Er=0,Za=E.get("rotate");if(rt(Za))Er=Za*(jr/180);else if(L==="center")Er=0;else if(Za==="radial"||Za===!0){var y1=j<0?-Z+jr:-Z;Er=y1}else if(Za==="tangential"&&L!=="outside"&&L!=="outer"){var Yn=Math.atan2(j,ct);Yn<0&&(Yn=jr*2+Yn);var _1=ct>0;_1&&(Yn=jr+Yn),Er=Yn-jr}if(a=!!Er,A.x=yt,A.y=Vt,A.rotation=Er,A.setStyle({verticalAlign:"middle"}),Ae){A.setStyle({align:ge});var Lf=A.states.select;Lf&&(Lf.x+=A.x,Lf.y+=A.y)}else{var Ka=A.getBoundingRect().clone();Ka.applyTransform(A.getComputedTransform());var Sd=(A.style.margin||0)+2.1;Ka.y-=Sd/2,Ka.height+=Sd,e.push({label:A,labelLine:M,position:L,len:F,len2:H,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new et(j,ct),linePoints:bt,textAlign:ge,labelDistance:I,labelAlignTo:O,edgeDistance:k,bleedMargin:W,rect:Ka,unconstrainedWidth:Ka.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:Ae})}}),!a&&r.get("avoidLabelOverlap")&&LL(e,i,n,l,u,p,f,h);for(var g=0;g<e.length;g++){var d=e[g],m=d.label,y=d.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:d.textAlign}),_&&(w(m.states,c),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(y){var b=d.linePoints;_||!b?(w(y.states,c),y.ignore=!0):(sS(b,d.minTurnAngle),lS(b,d.surfaceNormal,d.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new et(b[0][0],b[0][1])})}}}var PL=(function(r){P(t,r);function t(e,i,n){var a=r.call(this)||this;a.z2=2;var o=new mt;return a.setTextContent(o),a.updateData(e,i,n,!0),a}return t.prototype.updateData=function(e,i,n,a){var o=this,s=e.hostModel,l=e.getItemModel(i),u=l.getModel("emphasis"),f=e.getItemLayout(i),h=R(Vn(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var p=s.getShallow("animationType");s.ecModel.ssr?(kt(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):p==="scale"?(o.shape.r=f.r0,kt(o,{shape:{r:f.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),kt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Tt(o,{shape:{endAngle:f.endAngle}},s,i))}else wa(o),Tt(o,{shape:h},s,i);o.useStyle(e.getItemVisual(i,"style")),vn(o,l);var c=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),g=Math.cos(c)*v,d=Math.sin(c)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,e,i),o.ensureState("emphasis").shape=R({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Vn(u.getModel("itemStyle"),f)),R(o.ensureState("select"),{x:g,y:d,shape:Vn(l.getModel(["select","itemStyle"]),f)}),R(o.ensureState("blur"),{shape:Vn(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&R(y.ensureState("select"),{x:g,y:d}),R(_.ensureState("select"),{x:g,y:d}),Vr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;Tr(a,Cr(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(n,"normal")||i.getName(n)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var p=e.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Gr,this.setTextGuideLine(c)),uS(this,fS(o),{stroke:u,opacity:vr(s.get(["lineStyle","opacity"]),f,1)})}},t})(Le),IL=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,i,n,a){var o=e.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&&e.get("showEmptyCircle")){var p=Bv(e),c=new Le({shape:R(kv(e,n),p)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(v){var g=new PL(o,v,u);o.setItemGraphicEl(v,g),l.add(g)}).update(function(v,g){var d=s.getItemGraphicEl(g);d.updateData(o,v,u),d.off("click"),l.add(d),o.setItemGraphicEl(v,d)}).remove(function(v){var g=s.getItemGraphicEl(v);Sn(g,e,v)}).execute(),Vv(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t})(Ft),KS=IL;function Gv(r,t,e){t=N(t)&&{coordDimensions:t}||R({encodeDefine:r.getEncode()},t);var i=r.getSource(),n=Ha(i,t).dimensions,a=new Ga(n,r);return a.initData(i,e),a}var OL=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},r})(),jS=OL;var RL=ut(),NL=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new jS(lt(this.getData,this),lt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Gv(this,{coordDimensions:["value"],encodeDefaulter:pt(a_,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),n=RL(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=Eh(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){bo(e,"labelLine",["show"]);var i=e.labelLine,n=e.emphasis.labelLine;i.show=i.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"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"},t})(Jt),QS=NL;function Hv(r){return{seriesType:r,reset:function(t,e){var i=t.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(rt(o)&&!isNaN(o)&&o<0)})}}}function Wv(r){r.registerChartView(KS),r.registerSeriesModel(QS),w0("pie",r.registerAction),r.registerLayout(pt(zv,"pie")),r.registerProcessor(Uv("pie")),r.registerProcessor(Hv("pie"))}var kL=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t})(ht),$S=kL;var df=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ie).models[0]},t.type="cartesian2dAxis",t})(ht);Ht(df,rf);var JS={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},zL=at({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},JS),Yv=at({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}}},JS),BL=at({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Yv),UL=q({logBase:10},Yv),tb={category:zL,value:Yv,time:BL,log:UL};var eb={value:1,category:1,time:1,log:1};function mf(r,t,e,i){w(eb,function(n,a){var o=at(at({},tb[a],!0),i,!0),s=(function(l){P(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var p=ci(this),c=p?pi(f):{},v=h.getTheme();at(f,v.get(a+"Axis")),at(f,this.getDefaultOption()),f.type=rb(f),p&&Ar(f,c,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=gs.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=t+"Axis."+a,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",rb)}function rb(r){return r.type||(r.data?"category":"value")}var FL=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return U(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),wt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),ib=FL;var gf=["x","y"];function nb(r){return r.type==="interval"||r.type==="time"}var VL=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=gf,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!nb(e)||!nb(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,p=o[0]-n[0]*f,c=o[1]-a[0]*h,v=this._transform=[f,0,0,h,p,c];this._invTransform=Rr([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var n=this.dataToPoint(e),a=this.dataToPoint(i),o=this.getArea(),s=new J(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,n){n=n||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Pt(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(e[0]),u=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return Pt(n,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(e[0]),i),n[1]=o.coordToData(o.toLocalCoord(e[1]),i),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(i[0],i[1])-a+e,l=Math.max(n[0],n[1])-o+e;return new J(a,o,s,l)},t})(ib),ab=VL;var GL=(function(r){P(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(af),ob=GL;function Ds(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],p={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,v=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));v[p.onZero]=Math.max(Math.min(g,v[1]),v[0])}a.position=[u==="y"?v[p[l]]:h[0],u==="x"?v[p[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[s],a.labelOffset=o?v[p[s]]-v[p.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Qr(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function Xv(r){return r.get("coordinateSystem")==="cartesian2d"}function qv(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,ie).models[0];t[i]=a}),t}var Zv=Math.log;function lb(r,t,e){var i=Zr.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,!0),o=n.length-1,s=i.getInterval.call(e),l=uv(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var p=Zv(r.base);u=[Zv(u[0])/p,Zv(u[1])/p]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=i.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var v=i.getInterval.call(r),g=u[0],d=u[1];if(f&&h)v=(d-g)/o;else if(f)for(d=u[0]+v*o;d<u[1]&&isFinite(d)&&isFinite(u[1]);)v=qu(v),d=u[0]+v*o;else if(h)for(g=u[1]-v*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)v=qu(v),g=u[1]-v*o;else{var m=r.getTicks().length-1;m>o&&(v=qu(v));var y=v*o;d=Math.ceil(u[1]/v)*v,g=St(d-y),g<0&&u[0]>=0?(g=0,d=St(y)):d>0&&u[1]<=0&&(d=0,g=-St(y))}var _=(n[0].value-a[0].value)/s,x=(n[o].value-a[o].value)/s;if(i.setExtent.call(r,g+v*_,d+v*x),i.setInterval.call(r,v),(_||x)&&i.setNiceExtent.call(r,g+v,d-v),0)var b}var HL=(function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gf,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=st(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var p=+l[h],c=o[p],v=c.model,g=c.scale;ys(g)&&v.get("alignTicks")&&v.get("interval")==null?f.push(c):(xs(g,v),ys(g)&&(s=c))}f.length&&(s||(s=f.pop(),xs(s.scale,s.model)),w(f,function(d){lb(d.scale,d.model,s.scale)}))}}n(i.x),n(i.y);var a={};w(i.x,function(o){ub(i,"y",o,a)}),w(i.y,function(o){ub(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),a=!i&&t.get("containLabel"),o=Re(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=Fx(u);if(f){var h=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+p,u.position==="top"?o.y+=f.height+p:u.position==="left"&&(o.x+=f.width+p)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],p=u.inverse?1:0;u.setExtent(h[p],h[1-p]),WL(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}V(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===e)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,i=t.xAxisModel||e&&e.getReferringComponents("xAxis",ie).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",ie).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,it(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(f,h){w(s.y,function(p,c){var v="x"+h+"y"+c,g=new ab(v);g.master=n,g.model=t,n._coordsMap[v]=g,n._coordsList.push(g),g.addAxis(f),g.addAxis(p)})});function u(f){return function(h,p){if(Kv(h,t)){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 v=new ob(f,Ju(h),[0,0],h.get("type"),c),g=v.type==="category";v.onBand=g&&h.get("boundaryGap"),v.inverse=h.get("inverse"),h.axis=v,v.model=h,v.grid=a,v.index=p,a._axesList.push(v),s[f][p]=v,l[f]++}}}},r.prototype._updateScale=function(t,e){w(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var a=n.model.get("categorySortInfo");n.scale.setSortInfo(a)}}),t.eachSeries(function(n){if(Xv(n)){var a=qv(n),o=a.xAxisModel,s=a.yAxisModel;if(!Kv(o,e)||!Kv(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),h=l.getAxis("y");i(u,f),i(u,h)}},this);function i(n,a){w(Vx(n,a.dim),function(o){a.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],i=[];return w(this.getCartesians(),function(n){var a=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);it(e,a)<0&&e.push(a),it(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},r.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,a){var o=new r(n,t,e);o.name="grid_"+a,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(n){if(Xv(n)){var a=qv(n),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=gf,r})();function Kv(r,t){return r.getCoordSysModel()===t}function ub(r,t,e,i){e.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)fb(n[l])&&(a=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&fb(n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function fb(r){return r&&r.type!=="category"&&r.type!=="time"&&Ux(r)}function WL(r,t){var e=r.getExtent(),i=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return i-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return i-n+t}}var hb=HL;var Ei=Math.PI,Gn=(function(){function r(t,e){this.group=new dt,this.opt=e,this.axisModel=t,q(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new dt({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(t){return!!cb[t]},r.prototype.add=function(t){cb[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,i){var n=_o(e-t),a,o;return en(n)?(o=i>0?"top":"bottom",a="center"):en(n-Ei)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<Ei?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),cb={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Pt(s,s,o),Pt(l,l,o));var f=R({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Pe({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});bn(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var p=t.get(["axisLine","symbol"]);if(p!=null){var c=t.get(["axisLine","symbolSize"]);z(p)&&(p=[p,p]),(z(c)||rt(c))&&(c=[c,c]);var v=Au(t.get(["axisLine","symbolOffset"])||0,c),g=c[0],d=c[1];w([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(p[y]!=="none"&&p[y]!=null){var _=ze(p[y],-g/2,-d/2,g,d,f.stroke,!0),x=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+x*Math.cos(r.rotation),y:b[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var n=qL(e,i,t,r),a=KL(e,i,t,r);if(XL(t,a,n),ZL(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=hS(U(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));pS(o)}},axisName:function(r,t,e,i){var n=Qr(r.axisName,t.get("name"));if(n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,vb(a)?r.labelOffset+o*l:0],p,c=t.get("nameRotate");c!=null&&(c=c*Ei/180);var v;vb(a)?p=Gn.innerTextLayout(r.rotation,c??r.rotation,o):(p=YL(r.rotation,a,c||0,u),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(p.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),d=t.get("nameTruncate",!0)||{},m=d.ellipsis,y=Qr(r.nameTruncateMaxWidth,d.maxWidth,v),_=new mt({x:h[0],y:h[1],rotation:p.rotation,silent:Gn.isLabelSilent(t),style:we(s,{text:n,font:g,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(Vo({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var x=Gn.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,ot(_).eventData=x}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function YL(r,t,e,i){var n=_o(e-r),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return en(n-Ei/2)?(o=l?"bottom":"top",a="center"):en(n-Ei*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<Ei*1.5&&n>Ei/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function XL(r,t,e){if(!ef(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],p=e[e.length-2];i===!1?(rr(a),rr(u)):pb(a,o)&&(i?(rr(o),rr(f)):(rr(a),rr(u))),n===!1?(rr(s),rr(h)):pb(l,s)&&(n?(rr(l),rr(p)):(rr(s),rr(h)))}}function rr(r){r&&(r.ignore=!0)}function pb(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=Or([]);return ki(n,n,-r.rotation),e.applyTransform(Ge([],n,r.getLocalTransform())),i.applyTransform(Ge([],n,t.getLocalTransform())),e.intersect(i)}}function vb(r){return r==="middle"||r==="center"}function db(r,t,e,i,n){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Pt(o,o,t),Pt(s,s,t));var f=new Pe({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});bn(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,a.push(f)}return a}function qL(r,t,e,i){var n=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),u=n.getTicksCoords(),f=db(u,t.transform,l,q(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function ZL(r,t,e,i){var n=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),u=q(s.getLineStyle(),q(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=db(o[f],t.transform,l,u,"minorticks_"+f),p=0;p<h.length;p++)r.add(h[p])}}function KL(r,t,e,i){var n=e.axis,a=Qr(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(Qr(i.labelRotate,o.get("rotate"))||0)*Ei/180,f=Gn.innerTextLayout(i.rotation,u,i.labelDirection),h=e.getCategories&&e.getCategories(!0),p=[],c=Gn.isLabelSilent(e),v=e.get("triggerEvent");return w(l,function(g,d){var m=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,y=g.formattedLabel,_=g.rawLabel,x=o;if(h&&h[m]){var b=h[m];V(b)&&b.textStyle&&(x=new gt(b.textStyle,o,e.ecModel))}var S=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),T=n.dataToCoord(m),C=x.getShallow("align",!0)||f.textAlign,A=K(x.getShallow("alignMinLabel",!0),C),M=K(x.getShallow("alignMaxLabel",!0),C),D=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||f.textVerticalAlign,E=K(x.getShallow("verticalAlignMinLabel",!0),D),L=K(x.getShallow("verticalAlignMaxLabel",!0),D),I=new mt({x:T,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(g.level||0),style:we(x,{text:y,align:d===0?A:d===l.length-1?M:C,verticalAlign:d===0?E:d===l.length-1?L:D,fill:G(S)?S(n.type==="category"?_:n.type==="value"?m+"":m,d):S})});if(I.anid="label_"+m,v){var O=Gn.makeAxisEventDataBase(e);O.targetType="axisLabel",O.value=_,O.tickIndex=d,n.type==="category"&&(O.dataIndex=m),ot(I).eventData=O}t.add(I),I.updateTransform(),p.push(I),r.add(I),I.decomposeTransform()}),p}}var yf=Gn;function mb(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return jL(e,r,t),e.seriesInvolved&&$L(e,r),e}function jL(r,t,e){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];w(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Xa(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",i);if(w(s.getAxes(),pt(g,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var p=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(h.get(["axisPointer","axis"]));(p||c)&&w(v.baseAxes,pt(g,c?"cross":!0,p)),c&&w(v.otherAxes,pt(g,"cross",!1))}function g(d,m,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!d&&!Qv(_))){m==null&&(m=_.get("triggerTooltip")),_=d?QL(y,h,n,t,d,m):_;var b=_.get("snap"),S=_.get("triggerEmphasis"),T=Xa(y.model),C=m||b||y.type==="category",A=r.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:S,involveSeries:C,snap:b,useHandle:Qv(_),seriesModels:[],linkGroup:null};u[T]=A,r.seriesInvolved=r.seriesInvolved||C;var M=JL(a,y);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[T]=A,D.mapper=a[M].mapper,A.linkGroup=D}}}})}function QL(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(p){l[p]=$(o.get(p))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&q(u,h.textStyle)}}return r.model.getModel("axisPointer",new gt(l,e,i))}function $L(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!i||n==="none"||n===!1||n==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||w(r.coordSysAxesInfo[Xa(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function JL(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if(jv(a[i+"AxisId"],e.id)||jv(a[i+"AxisIndex"],e.componentIndex)||jv(a[i+"AxisName"],e.name))return n}}function jv(r,t){return r==="all"||N(r)&&it(r,t)>=0||r===t}function gb(r){var t=_f(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=Qv(e);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function _f(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Xa(r)]}function yb(r){var t=_f(r);return t&&t.axisPointerModel}function Qv(r){return!!r.get(["handle","show"])}function Xa(r){return r.type+"||"+r.id}var _b={},tP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.axisPointerClass&&gb(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,i,n,a){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=yb(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){_b[e]=i},t.getAxisPointerClass=function(e){return e&&_b[e]},t.type="axis",t})(Ot),xf=tP;var Jv=ut();function xb(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,h=Jv(r).splitAreaColors,p=Y(),c=0;if(h)for(var v=0;v<u.length;v++){var g=h.get(u[v].tickValue);if(g!=null){c=(g+(f-1)*v)%f;break}}var d=n.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=N(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,b=void 0,S=void 0;n.isHorizontal()?(_=d,x=l.y,b=y-_,S=l.height,d=_+b):(_=l.x,x=d,b=l.width,S=y-x,d=x+S);var T=u[v-1].tickValue;T!=null&&p.set(T,c),t.add(new vt({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:b,height:S},style:q({fill:s[c]},m),autoBatch:!0,silent:!0})),c=(c+1)%f}Jv(r).splitAreaColors=p}}}function Sb(r){Jv(r).splitAreaColors=null}var eP=["axisLine","axisTickLabel","axisName"],rP=["splitArea","splitLine","minorSplitLine"],bb=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new dt,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Ds(s,e),u=new yf(e,R({handleAutoShown:function(h){for(var p=s.coordinateSystem.getCartesians(),c=0;c<p.length;c++)if(ys(p[c].getOtherAxis(e.axis).scale))return!0;return!1}},l));w(eP,u.add,u),this._axisGroup.add(u.getGroup()),w(rP,function(h){e.get([h,"show"])&&iP[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||Cc(o,this._axisGroup,e),r.prototype.render.call(this,e,i,n,a)}},t.prototype.remove=function(){Sb(this)},t.type="cartesianAxis",t})(xf),iP={splitLine:function(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=N(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=n.isHorizontal(),f=0,h=n.getTicksCoords({tickModel:a}),p=[],c=[],v=o.getLineStyle(),g=0;g<h.length;g++){var d=n.toGlobalCoord(h[g].coord);u?(p[0]=d,p[1]=l.y,c[0]=d,c[1]=l.y+l.height):(p[0]=l.x,p[1]=d,c[0]=l.x+l.width,c[1]=d);var m=f++%s.length,y=h[g].tickValue,_=new Pe({anid:y!=null?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]},style:q({stroke:s[m]},v),silent:!0});bn(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,i){var n=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var f=[],h=[],p=o.getLineStyle(),c=0;c<u.length;c++)for(var v=0;v<u[c].length;v++){var g=n.toGlobalCoord(u[c][v].coord);l?(f[0]=g,f[1]=s.y,h[0]=g,h[1]=s.y+s.height):(f[0]=s.x,f[1]=g,h[0]=s.x+s.width,h[1]=g);var d=new Pe({anid:"minor_line_"+u[c][v].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:p,silent:!0});bn(d.shape,p.lineWidth),t.add(d)}},splitArea:function(r,t,e,i){xb(r,t,e,i)}},td=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(bb);var wb=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=td.type,e}return t.type="yAxis",t})(bb);var nP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new vt({shape:e.coordinateSystem.getRect(),style:q({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Ot),Tb={offset:0};function Cb(r){r.registerComponentView(nP),r.registerComponentModel($S),r.registerCoordinateSystem("cartesian2d",hb),mf(r,"x",df,Tb),mf(r,"y",df,Tb),r.registerComponentView(td),r.registerComponentView(wb),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Hn=ut(),Db=$,ed=lt,aP=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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,a,t,e,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new dt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);else{var p=pt(Ab,e,h);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,e)}Eb(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,a=n.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var l=_f(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=Hn(t).pointerEl=new Bt[a.type](Db(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=Hn(t).labelEl=new mt(Db(e.label));t.add(a),Mb(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=Hn(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=Hn(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),Mb(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=wn(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Vs(u.event)},onmousedown:ed(this._onHandleDragMove,this,0,0),drift:ed(this._onHandleDragMove,this),ondragend:ed(this._onHandleDragEnd,this)}),i.add(n)),Eb(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");N(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,wu(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Ab(this._axisPointerModel,!e&&this._moveAnimation,this._handle,rd(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(rd(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(rd(n)),Hn(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),rs(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r})();function Ab(r,t,e,i){Lb(Hn(e).lastProp,i)||(Hn(e).lastProp=i,t?Tt(e,i,r):(e.stopAnimation(),e.attr(i)))}function Lb(r,t){if(V(r)&&V(t)){var e=!0;return w(t,function(i,n){e=e&&Lb(r[n],i)}),!!e}else return r===t}function Mb(r,t){r[t.get(["label","show"])?"show":"hide"]()}function rd(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Eb(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}var Pb=aP;function Ib(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function oP(r,t,e,i,n){var a=e.get("value"),o=id(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Dr(s.get("padding")||0),u=s.getFont(),f=ia(o,u),h=n.position,p=f.width+l[1]+l[3],c=f.height+l[0]+l[2],v=n.align;v==="right"&&(h[0]-=p),v==="center"&&(h[0]-=p/2);var g=n.verticalAlign;g==="bottom"&&(h[1]-=c),g==="middle"&&(h[1]-=c/2),sP(h,p,c,i);var d=s.get("backgroundColor");(!d||d==="auto")&&(d=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:we(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:d}),z2:10}}function sP(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function id(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Ss(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),z(o)?a=o.replace("{value}",a):G(o)&&(a=o(s))}return a}function nd(r,t,e){var i=ar();return ki(i,i,e.rotation),Qn(i,i,e.position),Hl([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function Ob(r,t,e,i,n,a){var o=yf.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),oP(t,i,n,a,{position:nd(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Rb(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function Nb(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var lP=(function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=zb(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=Ib(a),c=uP[u](s,h,f);c.style=p,e.graphicKey=c.type,e.pointer=c}var v=Ds(l.model,n);Ob(i,e,v,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=Ds(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=nd(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=zb(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var p=(u[1]+u[0])/2,c=[p,p];c[f]=h[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:v[f]}},t})(Pb);function zb(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var uP={line:function(r,t,e){var i=Rb([t,e[0]],[t,e[1]],Bb(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:Nb([t-i/2,e[0]],[i,n],Bb(r))}}};function Bb(r){return r.dim==="x"?0:1}var Ub=lP;var fP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#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}},t})(ht),Fb=fP;var Kr=ut(),hP=w;function Sf(r,t,e){if(!X.node){var i=t.getZr();Kr(i).records||(Kr(i).records={}),cP(i,t);var n=Kr(i).records[r]||(Kr(i).records[r]={});n.handler=e}}function cP(r,t){if(Kr(r).initialized)return;Kr(r).initialized=!0,e("click",pt(Vb,"click")),e("mousemove",pt(Vb,"mousemove")),e("globalout",vP);function e(i,n){r.on(i,function(a){var o=dP(t);hP(Kr(r).records,function(s){s&&n(s,a,o.dispatchAction)}),pP(o.pendings,t)})}}function pP(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function vP(r,t,e){r.handler("leave",null,e)}function Vb(r,t,e,i){t.handler(r,e,i)}function dP(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function As(r,t){if(!X.node){var e=t.getZr(),i=(Kr(e).records||{})[r];i&&(Kr(e).records[r]=null)}}var mP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Sf("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){As("axisPointer",i)},t.prototype.dispose=function(e,i){As("axisPointer",i)},t.type="axisPointer",t})(Ot),Hb=mP;function Ms(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=qe(a,r);if(o==null||o<0||N(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,p=u.dim,c=h==="x"||h==="radius"?1:0,v=a.mapDimension(p),g=[];g[c]=a.get(v,o),g[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(a.getValues(U(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var d=s.getBoundingRect().clone();d.applyTransform(s.transform),e=[d.x+d.width/2,d.y+d.height/2]}return{point:e,el:s}}var Wb=ut();function ad(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||lt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){bf(n)&&(n=Ms({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=bf(n),u=a.axesInfo,f=s.axesInfo,h=i==="leave"||bf(n),p={},c={},v={list:[],map:{}},g={showPointer:pt(yP,c),showTooltip:pt(_P,v)};w(s.coordSysMap,function(m,y){var _=l||m.containPoint(n);w(s.coordSysAxesInfo[y],function(x,b){var S=x.axis,T=wP(u,x);if(!h&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=S.pointToData(n)),C!=null&&Yb(x,C,g,!1,p)}})});var d={};return w(f,function(m,y){var _=m.linkGroup;_&&!c[y]&&w(_.axesInfo,function(x,b){var S=c[b];if(x!==m&&S){var T=S.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,Xb(x),Xb(m)))),d[m.key]=T}})}),w(d,function(m,y){Yb(f[y],m,g,!0,p)}),xP(c,f,p),SP(v,n,r,o),bP(f,o,e),p}}function Yb(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=gP(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&R(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function gP(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,p;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,e);p=c.dataIndices,h=c.nestestValue}else{if(p=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!p.length)return;h=l.getData().get(f[0],p[0])}if(!(h==null||!isFinite(h))){var v=r-h,g=Math.abs(v);g<=o&&((g<o||v>=0&&s<0)&&(o=g,s=v,n=h,a.length=0),w(p,function(d){a.push({seriesIndex:l.seriesIndex,dataIndexInside:d,dataIndex:l.getData().getRawIndex(d)})}))}}),{payloadBatch:a,snapToValue:n}}function yP(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function _P(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=Xa(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function xP(r,t,e){var i=e.axesInfo=[];w(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function SP(r,t,e,i){if(bf(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function bP(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=Wb(i)[n]||{},o=Wb(i)[n]={};w(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&w(h.seriesDataIndices,function(p){var c=p.seriesIndex+" | "+p.dataIndex;o[c]=p})});var s=[],l=[];w(a,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function wP(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function Xb(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function bf(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function wf(r){xf.registerAxisPointerClass("CartesianAxisPointer",Ub),r.registerComponentModel(Fb),r.registerComponentView(Hb),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=mb(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ad)}function od(r){de(Cb),de(wf)}function qb(r,t){var e=Dr(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new vt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var TP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t})(ht),Zb=TP;function Tf(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Kb(r){if(X.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var sd=Kb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),jb=Kb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function ld(r,t){if(!r)return t;t=Ea(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function Qb(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var CP=ld(jb,"transition"),ud=ld(sd,"transform"),DP="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(X.transform3dSupported?"will-change:transform;":"");function AP(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function MP(r,t,e){if(!z(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=ur(t);var a=AP(e),o=Math.max(Math.round(n)*1.5,6),s="",l=ud+":",u;it(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,p=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var v=t+" solid "+n+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function EP(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=X.transformSupported?","+ud+i:",left"+i+",top"+i),CP+":"+n}function $b(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!X.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=X.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+ud+":"+o+";":[["top",0],["left",0],[sd,o]]}function LP(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+n),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function PP(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=yu(r,"html"),p=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+p),t&&n&&i.push(EP(n,e)),a&&i.push("background-color:"+a),w(["width","color","radius"],function(c){var v="border-"+c,g=Ea(v),d=r.get(g);d!=null&&i.push(v+":"+d+(c==="color"?"":"px"))}),i.push(LP(f)),h!=null&&i.push("padding:"+Dr(h).join("px ")+"px"),i.join(";")+";"}function Jb(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&Pd(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var IP=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,X.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&(z(a)?document.querySelector(a):Ii(a)?a:G(a)&&a(t.getDom()));Jb(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();ye(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=Qb(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=DP+PP(t,!this._firstShow,this._longHide)+$b(a[0],a[1],!0)+("border-color:"+ur(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(z(a)&&i.get("trigger")==="item"&&!Tf(i)&&(s=MP(i,n,a)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var l=0;l<t.length;l++)Ii(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var i=this._styleCoord;if(Jb(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=$b(i[0],i[1]);w(a,function(o){n[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",X.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(lt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r})(),t1=IP;var OP=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),r1(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,i,n,a){var o=this;V(t)&&Zt(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new mt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:yu(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=e1(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;r1(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=Li(a.borderWidth||0),s=e1(a);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(lt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Li(r){return Math.max(0,r)}function e1(r){var t=Li(r.shadowBlur||0),e=Li(r.shadowOffsetX||0),i=Li(r.shadowOffsetY||0);return{left:Li(t-e),right:Li(t+e),top:Li(t-i),bottom:Li(t+i)}}function r1(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var i1=OP;var RP=new vt({shape:{x:-1,y:-1,width:2,height:2}}),NP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(X.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=Xm(n.get("renderMode"));this._tooltipContent=a==="richText"?new i1(i):new t1(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,i,n){if(!(X.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?wu(this,"_updatePosition",50,"fixRate"):rs(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");Sf("itemTooltip",this._api,lt(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||X.node||!n.getDom())){var o=n1(a,n);this._ticket="";var s=a.dataByCoordSys,l=UP(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=RP;f.x=a.x,f.y=a.y,f.update(),ot(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var h=Ms(a,i),p=h.point[0],c=h.point[1];p!=null&&c!=null&&this._tryShow({offsetX:p,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(n1(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),h=Es([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=ot(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Nn(n,function(f){if(ot(f).dataIndex!=null)return l=f,!0;if(ot(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,i):u?this._showComponentItemTooltip(e,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=lt(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Es([i.tooltipOption],a),l=this._renderMode,u=[],f=In("section",{blocks:[],noHeader:!0}),h=[],p=new _u;w(e,function(y){w(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!x||b==null)){var S=id(b,x.axis,n,_.seriesDataIndices,_.valueLabelOpt),T=In("section",{header:S,noHeader:!Yt(S),sortBlocks:!0,blocks:[]});f.blocks.push(T),w(_.seriesDataIndices,function(C){var A=n.getSeriesByIndex(C.seriesIndex),M=C.dataIndexInside,D=A.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Ss(x.axis,{value:b}),D.axisValueLabel=S,D.marker=p.makeTooltipMarker("item",ur(D.color),l);var E=lp(A.formatTooltip(M,!0,null)),L=E.frag;if(L){var I=Es([A],a).get("valueFormatter");T.blocks.push(I?R({valueFormatter:I},L):L)}E.text&&h.push(E.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=i.position,v=s.get("order"),g=vp(f,p,l,v,n.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var d=l==="richText"?`
|
|
904
|
+
|
|
905
|
+
`:"<br/>",m=h.join(d);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,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,p)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=ot(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,p=u.getData(h),c=this._renderMode,v=e.positionDefault,g=Es([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),d=g.get("trigger");if(!(d!=null&&d!=="item")){var m=u.getDataParams(f,h),y=new _u;m.marker=y.makeTooltipMarker("item",ur(m.color),c);var _=lp(u.formatTooltip(f,!1,h)),x=g.get("order"),b=g.get("valueFormatter"),S=_.frag,T=S?vp(b?R({valueFormatter:b},S):S,y,c,x,a.get("useUTC"),g.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,T,m,C,e.offsetX,e.offsetY,e.position,e.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=ot(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=$(l),l.content=Xt(l.content));var h=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&h.push(p),h.push({formatter:l.content});var c=e.positionDefault,v=Es(h,this._tooltipModel,c?{position:c}:null),g=v.get("content"),d=Math.random()+"",m=new _u;this._showOrMove(v,function(){var y=$(v.get("formatterParams")||{});this._showTooltipContent(v,g,y,d,e.offsetX,e.offsetY,e.position,i,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var p=e.get("formatter");l=l||e.get("position");var c=i,v=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),g=v.color;if(p)if(z(p)){var d=e.ecModel.get("useUTC"),m=N(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;c=p,y&&(c=Hr(m.axisValue,c,d)),c=La(c,n,!0)}else if(G(p)){var _=lt(function(x,b){x===this._ticket&&(h.setContent(b,f,e,g,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=a,c=p(n,a,_)}else c=p;h.setContent(c,f,e,g,l),h.show(e,g),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||N(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!N(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),p=e.get("align"),c=e.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),G(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:h.slice()})),N(i))n=_t(i[0],u),a=_t(i[1],f);else if(V(i)){var g=i;g.width=h[0],g.height=h[1];var d=Re(g,{width:u,height:f});n=d.x,a=d.y,p=null,c=null}else if(z(i)&&l){var m=BP(i,v,h,e.get("borderWidth"));n=m[0],a=m[1]}else{var m=kP(n,a,o,u,f,p?null:20,c?null:20);n=m[0],a=m[1]}if(p&&(n-=a1(p)?h[0]/2:p==="right"?h[0]:0),c&&(a-=a1(c)?h[1]/2:c==="bottom"?h[1]:0),Tf(e)){var m=zP(n,a,o,u,f);n=m[0],a=m[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&w(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&w(u,function(p,c){var v=h[c]||{},g=p.seriesDataIndices||[],d=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&g.length===d.length,o&&w(g,function(m,y){var _=d[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&w(p.seriesDataIndices,function(m){var y=m.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){X.node||!i.getDom()||(rs(this,"_updatePosition"),this._tooltipContent.dispose(),As("itemTooltip",i))},t.type="tooltip",t})(Ot);function Es(r,t,e){var i=t.ecModel,n;e?(n=new gt(e,i,i),n=new gt(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof gt&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(n=new gt(o,n,i)))}return n}function n1(r,t){return r.dispatchAction||lt(t.dispatchAction,t)}function kP(r,t,e,i,n,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function zP(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function BP(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function a1(r){return r==="center"||r==="middle"}function UP(r,t,e){var i=wo(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=ii(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ot(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var o1=NP;function fd(r){de(wf),r.registerComponentModel(Zb),r.registerComponentView(o1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Rt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Rt)}var FP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.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"}},t})(ht),VP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=K(e.get("textBaseline"),e.get("textVerticalAlign")),f=new mt({style:we(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),p=e.get("subtext"),c=new mt({style:we(s,{text:p,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),g=e.get("sublink"),d=e.get("triggerEvent",!0);f.silent=!v&&!d,c.silent=!g&&!d,v&&f.on("click",function(){Zc(v,"_"+e.get("target"))}),g&&c.on("click",function(){Zc(g,"_"+e.get("subtarget"))}),ot(f).eventData=ot(c).eventData=d?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),p&&a.add(c);var m=a.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Re(y,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),c.setStyle(x),m=a.getBoundingRect();var b=_.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var T=new vt({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(T)}},t.type="title",t})(Ot);function hd(r){r.registerComponentModel(FP),r.registerComponentView(VP)}var GP=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},HP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),N(i)&&w(i,function(a,o){z(a)&&(a={type:a}),i[o]=at(a,GP(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<e.length;n++){var a=e[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,p=h.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&ua(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=Y(),s=U(a,function(l){return(z(l)||rt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new gt(l,this,this.ecModel))},this);this._data=wt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;w(a,function(o){i[o.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;w(e,function(n){i[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;w(e,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&it(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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}},t})(ht),Ls=HP;var qa=pt,cd=w,Cf=dt,WP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Cf),this.group.add(this._selectorGroup=new Cf),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,l,s,u);var f=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},p=e.get("padding"),c=Re(f,h,p),v=this.layoutInner(e,o,c,a,l,u),g=Re(q({width:v.width,height:v.height},f),h,p);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=qb(v,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this.getContentGroup(),f=Y(),h=i.get("selectedMode"),p=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&p.push(c.id)}),cd(i.getData(),function(c,v){var g=c.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
906
|
+
`)){var d=new Cf;d.newline=!0,u.add(d);return}var m=n.getSeriesByName(g)[0];if(!f.get(g))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),b=y.getVisual("style"),S=this._createItem(m,g,v,c,i,e,_,b,x,h,a);S.on("click",qa(s1,g,null,a,p)).on("mouseover",qa(pd,m.name,null,a,p)).on("mouseout",qa(vd,m.name,null,a,p)),n.ssr&&S.eachChild(function(T){var C=ot(T);C.seriesIndex=m.seriesIndex,C.dataIndex=v,C.ssrType="legend"}),f.set(g,!0)}else n.eachRawSeries(function(T){if(!f.get(g)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(g))return;var A=C.indexOfName(g),M=C.getItemVisual(A,"style"),D=C.getItemVisual(A,"legendIcon"),E=re(M.fill);E&&E[3]===0&&(E[3]=.2,M=R(R({},M),{fill:mr(E,"rgba")}));var L=this._createItem(T,g,v,c,i,e,{},M,D,h,a);L.on("click",qa(s1,null,g,a,p)).on("mouseover",qa(pd,null,g,a,p)).on("mouseout",qa(vd,null,g,a,p)),n.ssr&&L.eachChild(function(I){var O=ot(I);O.seriesIndex=T.seriesIndex,O.dataIndex=v,O.ssrType="legend"}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();cd(e,function(u){var f=u.type,h=new mt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var p=i.getModel("selectorLabel"),c=i.getModel(["emphasis","selectorLabel"]);Tr(h,{normal:p,emphasis:c},{defaultText:u.title}),ga(h)})},t.prototype._createItem=function(e,i,n,a,o,s,l,u,f,h,p){var c=e.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),d=o.isSelected(i),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=YP(f,a,l,u,c,d,p),b=new Cf,S=a.getModel("textStyle");if(G(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:v,itemHeight:g,icon:f,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;b.add(XP({itemWidth:v,itemHeight:g,icon:f,iconRotate:T,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,A=s,M=o.get("formatter"),D=i;z(M)&&M?D=M.replace("{name}",i??""):G(M)&&(D=M(i));var E=d?S.getTextColor():a.get("inactiveColor");b.add(new mt({style:we(S,{text:D,x:C,y:g/2,fill:E,align:A,verticalAlign:"middle"},{inheritColor:E})}));var L=new vt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&Vo({el:L,componentModel:o,itemName:i,itemTooltipOption:I.option}),b.add(L),b.eachChild(function(O){O.silent=!0}),L.silent=!h,this.getContentGroup().add(b),ga(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Mn(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Mn("horizontal",u,e.get("selectorItemGap",!0));var p=u.getBoundingRect(),c=[-p.x,-p.y],v=e.get("selectorButtonGap",!0),g=e.getOrient().index,d=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?c[g]+=f[d]+v:h[g]+=p[d]+v,c[1-g]+=f[m]/2-p[m]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[d]=f[d]+v+p[d],_[m]=Math.max(f[m],p[m]),_[y]=Math.min(0,p[y]+c[1-g]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Ot);function YP(r,t,e,i,n,a,o){function s(d,m){d.lineWidth==="auto"&&(d.lineWidth=m.lineWidth>0?2:0),cd(d,function(y,_){d[_]==="inherit"&&(d[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:ls(h,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:e).opacity),s(u,i);var p=t.getModel("lineStyle"),c=p.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),!a){var v=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=p.get("inactiveColor"),c.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function XP(r){var t=r.icon||"roundRect",e=ze(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function s1(r,t,e,i){vd(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),pd(r,t,e,i)}function l1(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;i<n&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function pd(r,t,e,i){l1(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function vd(r,t,e,i){l1(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}var Df=WP;function dd(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function Ps(r,t,e){var i={},n=r==="toggleSelected",a;return e.eachComponent("legend",function(o){n&&a!=null?o[a?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),a=o.isSelected(t.name));var s=o.getData();w(s,function(l){var u=l.get("name");if(!(u===`
|
|
907
|
+
`||u==="")){var f=o.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&f:i[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:i}:{name:t.name,selected:i}}function u1(r){r.registerAction("legendToggleSelect","legendselectchanged",pt(Ps,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",pt(Ps,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",pt(Ps,"inverseSelect")),r.registerAction("legendSelect","legendselected",pt(Ps,"select")),r.registerAction("legendUnSelect","legendunselected",pt(Ps,"unSelect"))}function Af(r){r.registerComponentModel(Ls),r.registerComponentView(Df),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,dd),r.registerSubTypeDefaulter("legend",function(){return"plain"}),u1(r)}var qP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,n){var a=pi(e);r.prototype.init.call(this,e,i,n),f1(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),f1(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Yl(Ls.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}),t})(Ls);function f1(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,Ar(t,e,{type:"box",ignoreSize:!!n})}var h1=qP;var c1=dt,md=["width","height"],gd=["x","y"],ZP=(function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new c1),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new c1)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,l);var f=this._controllerGroup,h=i.get("pageIconSize",!0),p=N(h)?h:[h,h];v("pagePrev",0);var c=i.getModel("pageTextStyle");f.add(new mt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,d){var m=g+"DataIndex",y=wn(i.get("pageIcons",!0)[i.getOrient().name][d],{onclick:lt(u._pageGo,u,m,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=g,f.add(y)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=md[u],h=gd[u],p=md[1-u],c=gd[1-u];o&&Mn("horizontal",l,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),d=[-g.x,-g.y],m=$(n);o&&(m[f]=n[f]-g[f]-v);var y=this._layoutContentAndController(e,a,m,u,f,p,c,h);if(o){if(s==="end")d[u]+=y[f]+v;else{var _=g[f]+v;d[u]-=_,y[h]-=_}y[f]+=g[f]+v,d[1-u]+=y[c]+y[p]/2-g[p]/2,y[p]=Math.max(y[p],g[p]),y[c]=Math.min(y[c],g[c]+d[1-u]),l.x=d[0],l.y=d[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,p=this._controllerGroup;Mn(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),Mn("horizontal",p,e.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),v=p.getBoundingRect(),g=this._showController=c[o]>n[o],d=[-c.x,-c.y];i||(d[a]=f[u]);var m=[0,0],y=[-v.x,-v.y],_=K(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var x=e.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=c[s]/2-v[s]/2,f.setPosition(d),h.setPosition(m),p.setPosition(y);var b={x:0,y:0};if(b[o]=g?n[o]:c[o],b[s]=Math.max(c[s],v[s]),b[l]=Math.min(0,v[l]+y[1-a]),h.__rectSize=n[o],g){var S={x:0,y:0};S[o]=Math.max(n[o]-v[o]-_,0),S[s]=b[s],h.setClipPath(new vt({shape:S})),h.__rectSize=S[o]}else p.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(e);return T.pageIndex!=null&&Tt(f,{x:T.contentPosition[0],y:T.contentPosition[1]},g?e:null),this._updatePageInfoView(e,T),b},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",p=i[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",p?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=md[o],l=gd[o],u=this._findTargetItemIndex(i),f=n.children(),h=f[u],p=f.length,c=p?1:0,v={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return v;var g=x(h);v.contentPosition[o]=-g.s;for(var d=u+1,m=g,y=g,_=null;d<=p;++d)_=x(f[d]),(!_&&y.e>m.s+a||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var d=u-1,m=g,y=g,_=null;d>=-1;--d)_=x(f[d]),(!_||!b(y,_.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function x(S){if(S){var T=S.getBoundingRect(),C=T[l]+S[l];return{s:C,e:C+T[s],i:S.__legendDataIndex}}}function b(S,T){return S.e>=T&&S.s<=T+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(i=s)}),i??a},t.type="legend.scroll",t})(Df),p1=ZP;function yd(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function v1(r){de(Af),r.registerComponentModel(h1),r.registerComponentView(p1),yd(r)}function _d(r){de(Af),de(v1)}function d1(r,t,e){var i=le.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var KP=(function(r){P(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||qi,typeof e=="string"?o=d1(e,i,n):V(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(to(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=d1("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new J(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new J(0,0,0,0);_.copy(y),o.push(_)}else{for(var x=!1,b=1/0,S=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(y)){var A=new J(0,0,0,0);A.copy(C),A.union(y),o[T]=A,x=!0;break}else if(l){u.copy(y),u.union(C);var M=y.width*y.height,D=C.width*C.height,E=u.width*u.height,L=E-M-D;L<b&&(b=L,S=T)}}if(l&&(o[S].union(y),x=!0),!x){var _=new J(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var p=e[h];if(p){var c=p.shouldBePainted(n,a,!0,!0),v=p.__isRendered&&(p.__dirty&Nt||!c)?p.getPrevPaintRect():null;v&&f(v);var g=c&&(p.__dirty&Nt||!p.__isRendered)?p.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var p=i[h],c=p&&p.shouldBePainted(n,a,!0,!0);if(p&&(!c||!p.__zr)&&p.__isRendered){var v=p.getPrevPaintRect();v&&f(v)}}var d;do{d=!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])?(d=!0,o[h].union(o[m]),o.splice(m,1)):m++;h++}}while(d);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var c=this.domBack;function v(g,d,m,y){if(o.clearRect(g,d,m,y),i&&i!=="transparent"){var _=void 0;if(Lr(i)){var x=i.global||i.__width===m&&i.__height===y;_=x&&i.__canvasGradient||as(o,i,{x:0,y:0,width:m,height:y}),i.__canvasGradient=_,i.__width=m,i.__height=y}else Nf(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=Pu(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(g,d,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,g,d,m,y),o.restore())}!n||u?v(0,0,s,l):n.length&&w(n,function(g){v(g.x*h,g.y*h,g.width*h,g.height*h)})},t})($t),Mf=KP;var m1=1e5,Wn=314159,Ef=.01,jP=.001;function QP(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function $P(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var JP=(function(){function r(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=R({},i||{}),this.dpr=i.devicePixelRatio||qi,this._singleCanvas=a,this.root=t;var o=t.style;o&&(to(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,h=f.width,p=f.height;i.width!=null&&(h=i.width),i.height!=null&&(p=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=p*this.dpr,this._width=h,this._height=p;var c=new Mf(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[Wn]=c,c.zlevel=Wn,s.push(Wn),this._domRoot=t}else{this._width=os(t,0,i),this._height=os(t,1,i);var u=this._domRoot=$P(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(m1)),a||(a=i.ctx,a.save()),mi(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(m1)},r.prototype.paintOne=function(t,e){Ua(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;lo(function(){l._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Wn).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],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||i)&&a.push(u)}for(var f=!0,h=!1,p=function(g){var d=a[g],m=d.ctx,y=o&&d.createRepaintRects(t,e,c._width,c._height),_=i?d.__startIndex:d.__drawIndex,x=!i&&d.incremental&&Date.now,b=x&&Date.now(),S=d.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(d.__startIndex===d.__endIndex)d.clear(!1,S,y);else if(_===d.__startIndex){var T=t[_];(!T.incremental||!T.notClear||i)&&d.clear(!1,S,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=d.__startIndex);var C,A=function(L){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=_;C<d.__endIndex;C++){var O=t[C];if(O.__inHover&&(h=!0),n._doPaintEl(O,d,o,L,I,C===d.__endIndex-1),x){var k=Date.now()-b;if(k>15)break}}I.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=d.__endIndex;else for(var M=c.dpr,D=0;D<y.length;++D){var E=y[D];m.save(),m.beginPath(),m.rect(E.x*M,E.y*M,E.width*M,E.height*M),m.clip(),A(E),m.restore()}else m.save(),A(),m.restore();d.__drawIndex=C,d.__drawIndex<d.__endIndex&&(f=!1)},c=this,v=0;v<a.length;v++)p(v);return X.wxa&&w(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&(mi(s,t,a,o),t.setPrevPaintRect(l))}else mi(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Wn);var i=this._layers[t];return i||(i=new Mf("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?at(i,this._layerConfig[t],!0):this._layerConfig[t-Ef]&&at(i,this._layerConfig[t-Ef],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,l=-1;if(!i[t]&&QP(e)){if(a>0&&t>n[0]){for(l=0;l<a-1&&!(n[l]<t&&n[l+1]>t);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,p){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var n=t[l],u=n.zlevel,f=void 0;s!==u&&(s=u,o=0),n.incremental?(f=this.getLayer(u+jP,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Ef:0),this._needsManuallyCompositing),f.__builtin__||Oi("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),n.__dirty&Nt&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,p){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,w(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?at(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+Ef){var o=this._layers[a];at(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(it(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=os(a,0,n),e=os(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Wn).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Wn].dom;var e=new Mf("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.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];mi(i,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})(),g1=JP;function xd(r){r.registerPainter("canvas",g1)}de([Lv,Nv,Wv,od,fd,_d,hd,xd]);typeof window<"u"?window.echarts=sf:typeof globalThis<"u"&&(globalThis.echarts=sf);})();
|
|
908
|
+
/*! Bundled license information:
|
|
909
|
+
|
|
910
|
+
tslib/tslib.es6.js:
|
|
911
|
+
(*! *****************************************************************************
|
|
912
|
+
Copyright (c) Microsoft Corporation.
|
|
913
|
+
|
|
914
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
915
|
+
purpose with or without fee is hereby granted.
|
|
916
|
+
|
|
917
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
918
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
919
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
920
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
921
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
922
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
923
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
924
|
+
***************************************************************************** *)
|
|
925
|
+
|
|
926
|
+
zrender/lib/zrender.js:
|
|
927
|
+
(*!
|
|
928
|
+
* ZRender, a high performance 2d drawing library.
|
|
929
|
+
*
|
|
930
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
931
|
+
* All rights reserved.
|
|
932
|
+
*
|
|
933
|
+
* LICENSE
|
|
934
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
935
|
+
*)
|
|
936
|
+
*/
|
|
937
|
+
</script>
|
|
938
|
+
<script>(function(){var O={"chart_metric_0": {"title": {"text": "A类(顶尖人才)补贴上限", "left": "center", "top": 4, "textStyle": {"fontSize": 14}}, "tooltip": {"trigger": "axis", "confine": true}, "grid": {"left": 48, "right": 24, "top": 46, "bottom": 40, "containLabel": true}, "xAxis": {"type": "category", "data": ["杭州市", "宁波市", "温州市"], "axisLabel": {"fontSize": 11}}, "yAxis": {"type": "value", "name": "万元", "axisLabel": {"fontSize": 10}}, "series": [{"name": "A类(顶尖人才)补贴上限", "type": "bar", "data": [{"value": 800.0, "name": "杭州市", "url": "https://www.example.gov.cn/sample/1.html"}, {"value": 600.0, "name": "宁波市", "url": "https://www.example.gov.cn/sample/4.html"}, {"value": 500.0, "name": "温州市", "url": "https://www.example.gov.cn/sample/7.html"}], "barWidth": 42, "label": {"show": true, "position": "top", "fontSize": 10}, "itemStyle": {"color": "#2a78d6"}}]}, "chart_metric_1": {"title": {"text": "B类(领军人才)补贴上限", "left": "center", "top": 4, "textStyle": {"fontSize": 14}}, "tooltip": {"trigger": "axis", "confine": true}, "grid": {"left": 48, "right": 24, "top": 46, "bottom": 40, "containLabel": true}, "xAxis": {"type": "category", "data": ["杭州市", "宁波市", "温州市"], "axisLabel": {"fontSize": 11}}, "yAxis": {"type": "value", "name": "万元", "axisLabel": {"fontSize": 10}}, "series": [{"name": "B类(领军人才)补贴上限", "type": "bar", "data": [{"value": 300.0, "name": "杭州市", "url": "https://www.example.gov.cn/sample/1.html"}, {"value": 240.0, "name": "宁波市", "url": "https://www.example.gov.cn/sample/4.html"}, {"value": 200.0, "name": "温州市", "url": "https://www.example.gov.cn/sample/7.html"}], "barWidth": 42, "label": {"show": true, "position": "top", "fontSize": 10}, "itemStyle": {"color": "#eb6834"}}]}, "chart_metric_2": {"title": {"text": "C类(高级人才)补贴上限", "left": "center", "top": 4, "textStyle": {"fontSize": 14}}, "tooltip": {"trigger": "axis", "confine": true}, "grid": {"left": 48, "right": 24, "top": 46, "bottom": 40, "containLabel": true}, "xAxis": {"type": "category", "data": ["杭州市", "宁波市", "温州市"], "axisLabel": {"fontSize": 11}}, "yAxis": {"type": "value", "name": "万元", "axisLabel": {"fontSize": 10}}, "series": [{"name": "C类(高级人才)补贴上限", "type": "bar", "data": [{"value": 100.0, "name": "杭州市", "url": "https://www.example.gov.cn/sample/1.html"}, {"value": 80.0, "name": "宁波市", "url": "https://www.example.gov.cn/sample/4.html"}, {"value": 60.0, "name": "温州市", "url": "https://www.example.gov.cn/sample/7.html"}], "barWidth": 42, "label": {"show": true, "position": "top", "fontSize": 10}, "itemStyle": {"color": "#1baf7a"}}]}};for(var id in O){var el=document.getElementById(id);if(!el||!window.echarts)continue;var ec=window.echarts.default||window.echarts;try{var ch=ec.init(el);ch.setOption(O[id]);ch.on('click',function(p){if(p&&p.data&&p.data.url)window.open(p.data.url,'_blank');});}catch(e){el.style.display='none';}}})();</script>
|
|
1331
939
|
</body>
|
|
1332
940
|
</html>
|