@akiraka/quark-big-screen-ui 0.1.16 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/components/AlertDialog.vue.d.ts +100 -0
  2. package/dist/components/AlertDialog.vue.d.ts.map +1 -0
  3. package/dist/components/BaseModal.vue.d.ts +45 -0
  4. package/dist/components/BaseModal.vue.d.ts.map +1 -0
  5. package/dist/components/BigScreenAlertRow.vue.d.ts.map +1 -1
  6. package/dist/components/BigScreenTemplateRenderer.vue.d.ts +38 -0
  7. package/dist/components/BigScreenTemplateRenderer.vue.d.ts.map +1 -0
  8. package/dist/components/Collapse.vue.d.ts +24 -0
  9. package/dist/components/Collapse.vue.d.ts.map +1 -0
  10. package/dist/components/CollapseItem.vue.d.ts +25 -0
  11. package/dist/components/CollapseItem.vue.d.ts.map +1 -0
  12. package/dist/components/MetricTrendChart.vue.d.ts +32 -0
  13. package/dist/components/MetricTrendChart.vue.d.ts.map +1 -0
  14. package/dist/components/QuarkTopHeader.vue.d.ts +2 -0
  15. package/dist/components/QuarkTopHeader.vue.d.ts.map +1 -1
  16. package/dist/components/Timeline.vue.d.ts +18 -0
  17. package/dist/components/Timeline.vue.d.ts.map +1 -0
  18. package/dist/components/TimelineItem.vue.d.ts +37 -0
  19. package/dist/components/TimelineItem.vue.d.ts.map +1 -0
  20. package/dist/components/UiButton.vue.d.ts +28 -0
  21. package/dist/components/UiButton.vue.d.ts.map +1 -0
  22. package/dist/components/UiMetricValue.vue.d.ts +11 -0
  23. package/dist/components/UiMetricValue.vue.d.ts.map +1 -0
  24. package/dist/components/UiSegmented.vue.d.ts +21 -0
  25. package/dist/components/UiSegmented.vue.d.ts.map +1 -0
  26. package/dist/index.css +1 -1
  27. package/dist/index.d.ts +11 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +51440 -1415
  30. package/dist/index.umd.cjs +91 -8
  31. package/package.json +4 -1
@@ -1,8 +1,91 @@
1
- (function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.QuarkBigScreenUi={},h.Vue))})(this,(function(h,e){"use strict";const j={key:0,class:"qbs-panel__corner qbs-panel__corner--tl"},U={key:1,class:"qbs-panel__corner qbs-panel__corner--tr"},Q={key:2,class:"qbs-panel__corner qbs-panel__corner--bl"},Y={key:3,class:"qbs-panel__corner qbs-panel__corner--br"},W={key:0,class:"qbs-panel__bar"},J={key:1,class:"qbs-panel__title"},K={key:2,class:"qbs-panel__header-prefix"},X={key:3,class:"qbs-panel__header-center"},v={key:4,class:"qbs-panel__header-extra"},ee={key:0,class:"qbs-panel__live"},te={class:"qbs-panel__body"},le=e.defineComponent({__name:"BigScreenPanel",props:{title:{default:""},accent:{default:"oklch(.82 .13 200)"},liveLabel:{default:""},showBar:{type:Boolean,default:!0},corners:{default:"tl-br"},padding:{default:"md"},bodyLayout:{default:"default"},titleSize:{default:"md"},overflowHidden:{type:Boolean,default:!0}},setup(n){const c=n;function d(m){return c.corners==="all"?!0:c.corners==="none"?!1:m==="tl"||m==="br"}return(m,y)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["qbs-panel",[`qbs-panel--padding-${n.padding}`,`qbs-panel--layout-${n.bodyLayout}`,{"qbs-panel--overflow-hidden":n.overflowHidden}]]),style:e.normalizeStyle({"--qbs-accent":n.accent})},[d("tl")?(e.openBlock(),e.createElementBlock("span",j)):e.createCommentVNode("",!0),d("tr")?(e.openBlock(),e.createElementBlock("span",U)):e.createCommentVNode("",!0),d("bl")?(e.openBlock(),e.createElementBlock("span",Q)):e.createCommentVNode("",!0),d("br")?(e.openBlock(),e.createElementBlock("span",Y)):e.createCommentVNode("",!0),n.title||n.liveLabel||m.$slots["header-center"]||m.$slots["header-extra"]?(e.openBlock(),e.createElementBlock("header",{key:4,class:e.normalizeClass(["qbs-panel__header",`qbs-panel__header--${n.titleSize}`])},[n.showBar?(e.openBlock(),e.createElementBlock("span",W)):e.createCommentVNode("",!0),n.title?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),m.$slots["header-prefix"]?(e.openBlock(),e.createElementBlock("span",K,[e.renderSlot(m.$slots,"header-prefix",{},void 0,!0)])):e.createCommentVNode("",!0),m.$slots["header-center"]?(e.openBlock(),e.createElementBlock("span",X,[e.renderSlot(m.$slots,"header-center",{},void 0,!0)])):e.createCommentVNode("",!0),m.$slots["header-extra"]||n.liveLabel?(e.openBlock(),e.createElementBlock("span",v,[e.renderSlot(m.$slots,"header-extra",{},()=>[n.liveLabel?(e.openBlock(),e.createElementBlock("span",ee,[y[0]||(y[0]=e.createElementVNode("span",{class:"qbs-panel__live-dot"},null,-1)),e.createTextVNode(e.toDisplayString(n.liveLabel),1)])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",te,[e.renderSlot(m.$slots,"default",{},void 0,!0)])],6))}}),_=(n,c)=>{const d=n.__vccOpts||n;for(const[m,y]of c)d[m]=y;return d},I=_(le,[["__scopeId","data-v-749400b6"]]),oe={key:0,class:"qbs-duty-compact"},ae={class:"qbs-duty-compact__avatar"},ne={class:"qbs-duty-compact__info"},re={class:"qbs-duty-compact__name"},se={class:"qbs-duty-compact__phone"},ie={key:0,class:"qbs-duty-compact__tag"},ce={key:1,class:"qbs-duty"},me={class:"qbs-duty__summary"},de={class:"qbs-duty__summary-chip"},ye={class:"qbs-duty__summary-chip"},ke={class:"qbs-duty__summary-chip"},he={class:"qbs-duty__list"},pe={class:"qbs-duty__group-header"},fe={class:"qbs-duty__users"},ge={key:0,class:"qbs-duty__empty"},xe=_(e.defineComponent({__name:"BigScreenDutyContent",props:{compact:{type:Boolean,default:!1},personName:{default:""},personPhone:{default:""},personTag:{default:""},date:{default:""},totalGroups:{default:void 0},totalUsers:{default:void 0},groups:{default:()=>[]}},setup(n){const c=n;return(d,m)=>c.compact?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,e.toDisplayString(c.personName.charAt(0)||"-"),1),e.createElementVNode("div",ne,[e.createElementVNode("span",re,e.toDisplayString(c.personName||"暂未排班"),1),e.createElementVNode("span",se,e.toDisplayString(c.personPhone||"—"),1)]),c.personTag?(e.openBlock(),e.createElementBlock("span",ie,e.toDisplayString(c.personTag),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",me,[e.createElementVNode("div",de,[m[0]||(m[0]=e.createElementVNode("span",null,"日期",-1)),e.createElementVNode("strong",null,e.toDisplayString(c.date||"未同步"),1)]),e.createElementVNode("div",ye,[m[1]||(m[1]=e.createElementVNode("span",null,"值班组",-1)),e.createElementVNode("strong",null,e.toDisplayString(c.totalGroups??c.groups.length),1)]),e.createElementVNode("div",ke,[m[2]||(m[2]=e.createElementVNode("span",null,"值班人数",-1)),e.createElementVNode("strong",null,e.toDisplayString(c.totalUsers??0),1)])]),e.createElementVNode("div",he,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.groups,y=>{var g;return e.openBlock(),e.createElementBlock("article",{key:y.groupId,class:"qbs-duty__group"},[e.createElementVNode("div",pe,[e.createElementVNode("strong",null,e.toDisplayString(y.groupName),1),e.createElementVNode("span",null,e.toDisplayString(((g=y.users)==null?void 0:g.length)||0)+" 人",1)]),e.createElementVNode("div",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.users||[],E=>(e.openBlock(),e.createElementBlock("span",{key:E.userId,class:"qbs-duty__user"},e.toDisplayString(E.nickName||E.username),1))),128))])])}),128)),c.groups.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ge,"暂无值班数据"))])]))}}),[["__scopeId","data-v-f5721bce"]]),_e={class:"qbs-alert-row__main"},be={class:"qbs-alert-row__copy"},ue=["title"],Ee={class:"qbs-alert-row__meta"},Ne={class:"qbs-alert-row__group"},Be={key:0,class:"qbs-alert-row__owner"},Ve={key:1,class:"qbs-alert-row__time"},we={key:2,class:"qbs-alert-row__tag"},Ce={class:"qbs-alert-row__status"},Se={key:0,class:"qbs-alert-row__aside"},$e=_(e.defineComponent({__name:"BigScreenAlertRow",props:{title:{},group:{default:""},owner:{default:""},time:{default:""},tag:{default:""},statusText:{default:""},accent:{default:"#f0a35a"},detailWide:{type:Boolean,default:!1}},emits:["select"],setup(n){const c=n;return(d,m)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["qbs-alert-row",{"qbs-alert-row--detail-wide":c.detailWide}]),style:e.normalizeStyle({"--qbs-alert-accent":c.accent}),type:"button",onClick:m[0]||(m[0]=y=>d.$emit("select"))},[e.createElementVNode("div",_e,[e.createElementVNode("div",be,[e.createElementVNode("div",{class:"qbs-alert-row__title",title:c.title},e.toDisplayString(c.title),9,ue),e.createElementVNode("div",Ee,[e.createElementVNode("span",Ne,e.toDisplayString(c.group),1),c.owner?(e.openBlock(),e.createElementBlock("span",Be,e.toDisplayString(c.owner),1)):e.createCommentVNode("",!0),c.time?(e.openBlock(),e.createElementBlock("span",Ve,e.toDisplayString(c.time),1)):e.createCommentVNode("",!0),c.tag?(e.openBlock(),e.createElementBlock("span",we,e.toDisplayString(c.tag),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ce,[e.renderSlot(d.$slots,"status",{},()=>[e.createTextVNode(e.toDisplayString(c.statusText||"待处理"),1)],!0)])]),d.$slots.aside?(e.openBlock(),e.createElementBlock("aside",Se,[e.renderSlot(d.$slots,"aside",{},void 0,!0)])):e.createCommentVNode("",!0)])],6))}}),[["__scopeId","data-v-83959767"]]),qe={class:"qbs-metric-card__value"},Me={class:"qbs-metric-card__label"},De=_(e.defineComponent({__name:"BigScreenMetricCard",props:{label:{},value:{default:"—"},tone:{default:"#7dd3fc"},compact:{type:Boolean,default:!1}},setup(n){const c=n;return(d,m)=>c.compact?(e.openBlock(),e.createElementBlock("div",{key:0,class:"qbs-metric-card qbs-metric-card--compact",style:e.normalizeStyle({"--qbs-metric-tone":c.tone})},[e.createElementVNode("span",null,e.toDisplayString(c.label),1),e.createElementVNode("strong",null,[e.renderSlot(d.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(c.value),1)],!0)])],4)):(e.openBlock(),e.createBlock(I,{key:1,class:"qbs-metric-card","body-layout":"metric",padding:"tight",accent:c.tone},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default",{},()=>[e.createElementVNode("strong",qe,e.toDisplayString(c.value),1)],!0),e.createElementVNode("span",Me,e.toDisplayString(c.label),1)]),_:3},8,["accent"]))}}),[["__scopeId","data-v-07353599"]]),ze={class:"qbs-header"},Ae={class:"qbs-header__body"},Oe={class:"qbs-header__brand"},Re={key:0,class:"qbs-header__clock"},Te=_(e.defineComponent({__name:"BigScreenHeader",props:{title:{default:"运维监控大屏"},subtitle:{default:"QUARK EAGLE EYE"},timeText:{default:"--:--"},dateText:{default:"--"},weekdayText:{default:""},showClock:{type:Boolean,default:!0}},setup(n){return(c,d)=>(e.openBlock(),e.createElementBlock("section",ze,[d[1]||(d[1]=e.createElementVNode("i",{class:"qbs-header__glow"},null,-1)),e.createElementVNode("div",Ae,[e.createElementVNode("div",Oe,[d[0]||(d[0]=e.createElementVNode("i",{class:"qbs-header__crest"},[e.createElementVNode("b")],-1)),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(n.subtitle),1),e.createElementVNode("h1",null,e.toDisplayString(n.title),1)])]),n.showClock?(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("strong",null,e.toDisplayString(n.timeText),1),e.createElementVNode("span",null,e.toDisplayString(n.dateText)+" "+e.toDisplayString(n.weekdayText),1)])):e.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-cc041333"]]),Ie={class:"qbs-dist"},Le={key:0,class:"qbs-dist__empty"},Pe=_(e.defineComponent({__name:"BigScreenBuildDistribution",props:{items:{default:()=>[]},total:{default:0}},setup(n){const c=n,d=()=>Math.max(1,c.total||c.items.reduce((m,y)=>m+y.count,0));return(m,y)=>(e.openBlock(),e.createElementBlock("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items.slice(0,8),(g,E)=>(e.openBlock(),e.createElementBlock("div",{key:g.name,class:"qbs-dist__row",style:e.normalizeStyle({"--qbs-dist-color":g.tone||["#7dd3fc","#86efac","#fbbf24","#c4b5fd"][E%4]})},[y[0]||(y[0]=e.createElementVNode("i",null,null,-1)),e.createElementVNode("span",null,e.toDisplayString(g.name),1),e.createElementVNode("b",null,[e.createElementVNode("em",{style:e.normalizeStyle({width:`${g.count/d()*100}%`})},null,4)]),e.createElementVNode("strong",null,e.toDisplayString(g.count),1)],4))),128)),n.items.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Le,"暂无构建分布数据"))]))}}),[["__scopeId","data-v-88fc69e4"]]),Fe={class:"qbs-build-projects"},He={class:"qbs-build-projects__summary"},Ge={class:"qbs-build-projects__list"},Ze={key:0,class:"qbs-build-projects__empty"},je=_(e.defineComponent({__name:"BigScreenBuildProjects",props:{buildingCount:{default:0},todayBuilds:{default:0},successRate:{default:0},items:{default:()=>[]}},setup(n){const c=d=>`${Math.max(0,Math.min(100,d||0))}%`;return(d,m)=>(e.openBlock(),e.createElementBlock("div",Fe,[e.createElementVNode("div",He,[e.createElementVNode("span",null,[m[0]||(m[0]=e.createTextVNode("构建中",-1)),e.createElementVNode("strong",null,e.toDisplayString(n.buildingCount),1)]),e.createElementVNode("span",null,[m[1]||(m[1]=e.createTextVNode("今日构建",-1)),e.createElementVNode("strong",null,e.toDisplayString(n.todayBuilds),1)]),e.createElementVNode("span",null,[m[2]||(m[2]=e.createTextVNode("成功率",-1)),e.createElementVNode("strong",null,e.toDisplayString(Number(n.successRate).toFixed(1))+"%",1)])]),e.createElementVNode("div",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items.slice(0,8),(y,g)=>(e.openBlock(),e.createElementBlock("article",{key:`${y.pipelineId}-${y.buildId}`},[e.createElementVNode("i",null,e.toDisplayString(String(g+1).padStart(2,"0")),1),e.createElementVNode("div",null,[e.createElementVNode("strong",null,e.toDisplayString(y.jobName||`Pipeline-${y.pipelineId}`),1),e.createElementVNode("span",null,e.toDisplayString(y.currentStage||"等待阶段信息")+" · "+e.toDisplayString(y.buildUser||"系统触发"),1)]),e.createElementVNode("b",null,[e.createElementVNode("em",{style:e.normalizeStyle({width:c(y.progress)})},null,4)]),e.createElementVNode("small",null,e.toDisplayString(y.statusText),1)]))),128)),n.items.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ze,"当前没有在跑的构建项目"))])]))}}),[["__scopeId","data-v-c9634e0c"]]),Ue={class:"qbs-robot"},Qe={class:"qbs-robot__head"},Ye={class:"qbs-robot__metrics"},We=_(e.defineComponent({__name:"BigScreenRobotSummary",props:{status:{default:"online"},mode:{default:"display_only"},emotion:{default:"neutral"},generatedAt:{default:""},summary:{default:()=>({})},alerts:{default:()=>({})},successRate:{default:0}},setup(n){return(c,d)=>(e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",Qe,[e.createElementVNode("i",{class:e.normalizeClass(`is-${n.emotion}`)},null,2),e.createElementVNode("div",null,[e.createElementVNode("strong",null,e.toDisplayString(n.status),1),e.createElementVNode("span",null,e.toDisplayString(n.mode)+" · "+e.toDisplayString(n.generatedAt),1)])]),e.createElementVNode("div",Ye,[e.createElementVNode("span",null,[d[0]||(d[0]=e.createTextVNode("值班组",-1)),e.createElementVNode("b",null,e.toDisplayString(n.summary.dutyGroups??0),1)]),e.createElementVNode("span",null,[d[1]||(d[1]=e.createTextVNode("今日告警",-1)),e.createElementVNode("b",null,e.toDisplayString(n.summary.todayAlerts??0),1)]),e.createElementVNode("span",null,[d[2]||(d[2]=e.createTextVNode("构建中",-1)),e.createElementVNode("b",null,e.toDisplayString(n.summary.buildingCount??0),1)]),e.createElementVNode("span",null,[d[3]||(d[3]=e.createTextVNode("终端节点",-1)),e.createElementVNode("b",null,e.toDisplayString(n.summary.endpointNodes??0),1)])])]))}}),[["__scopeId","data-v-534c73e7"]]),Je={class:"qbs-endpoints"},Ke={key:0,class:"qbs-endpoints__empty"},Xe=_(e.defineComponent({__name:"BigScreenEndpointDistribution",props:{items:{default:()=>[]}},setup(n){return(c,d)=>(e.openBlock(),e.createElementBlock("div",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,m=>{var y;return e.openBlock(),e.createElementBlock("article",{key:m.id},[e.createElementVNode("div",null,[e.createElementVNode("strong",null,e.toDisplayString(m.nodeName),1),e.createElementVNode("span",{class:e.normalizeClass({offline:!m.nodeStatus})},e.toDisplayString(m.nodeStatus?"在线":"离线"),3)]),e.createElementVNode("small",null,e.toDisplayString(m.nodeIp),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((y=m.heartbeatResults)==null?void 0:y.slice(0,3),g=>{var E;return e.openBlock(),e.createElementBlock("p",{key:g.targetName},e.toDisplayString(g.targetName||g.targetIp)+" · "+e.toDisplayString(((E=g.latencyMs)==null?void 0:E.toFixed(1))??"—")+" ms",1)}),128))])}),128)),n.items.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ke,"暂无终端分布数据"))]))}}),[["__scopeId","data-v-9abd8314"]]),ve={class:"qbs-embed"},et=["src","title"],tt={key:1},lt=_(e.defineComponent({__name:"BigScreenExternalEmbed",props:{url:{default:""},title:{default:"外部仪表盘"}},setup(n){const c=n,d=e.computed(()=>{try{const m=new URL(c.url);return["http:","https:"].includes(m.protocol)?m.toString():""}catch{return""}});return(m,y)=>(e.openBlock(),e.createElementBlock("section",ve,[d.value?(e.openBlock(),e.createElementBlock("iframe",{key:0,src:d.value,title:n.title,loading:"lazy",referrerpolicy:"no-referrer",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups",allow:"fullscreen"},null,8,et)):(e.openBlock(),e.createElementBlock("div",tt,"请在 Props JSON 中配置 http(s) 外部仪表盘 URL。"))]))}}),[["__scopeId","data-v-f20c22f6"]]),ot={width:"300",height:"290",viewBox:"0 0 240 230",class:"overflow-visible drop-shadow-[0_18px_24px_rgba(37,99,235,0.25)]"},at=["stroke"],nt=["fill"],rt=["fill"],st=["rx","ry","opacity"],it=["rx","ry","opacity"],ct=["fill"],mt=["d"],dt=["d"],yt=["d"],kt=["d"],ht={key:5},pt=["d"],ft=["d"],gt=["x","y"],xt=["x","y"],_t=["cx"],bt=["cx"],ut=["x1","y1","x2","y2"],Et=["x1","y1","x2","y2"],Nt=["cy"],Bt=["cy"],Vt=["x1","y1","x2","y2"],wt=["x1","y1","x2","y2"],Ct=["cx","cy"],St=["cx","cy"],$t=["cx","cy"],qt=["cx","cy"],Mt=["cx","cy"],Dt=["cx","cy"],zt=["cx","cy"],At=["cx","cy"],Ot=["cy"],Rt=["cy"],Tt=["cy"],It=["cy"],Lt=["x","y"],Pt=["x","y"],Ft=["x1","x2"],Ht=["x1","x2"],Gt=["cy"],Zt=["cx","cy"],jt=["x","y"],Ut=["cx","cy"],Qt=["cx","cy"],Yt=["cx","cy"],Wt=["cx","cy"],Jt=["cx","cy"],Kt=["cx","cy"],Xt=["cx","cy"],vt=["x1","y1","x2","y2"],el=["x1","y1","x2","y2"],tl=["x1","x2"],ll=["x1","x2"],ol={key:16},al=["cy"],nl=["cy"],rl=["cy"],sl=["cy"],il=["x","y"],cl=["x","y"],ml=["d"],dl=["d"],yl=["cy"],kl=["cy"],hl=["x1","y1","x2","y2"],pl=["x1","y1","x2","y2"],fl={key:19},gl=["cy"],xl=["cy"],_l=["cy"],bl=["cy"],ul=["x","y"],El=["x","y"],Nl=["d"],Bl=["d"],Vl=["d"],wl=["d"],Cl=["x1","x2"],Sl=["x1","x2"],$l=["d"],ql=["d"],Ml=["cy"],Dl=["cy"],zl=["cx","cy"],Al=["cx","cy"],Ol=["cx","cy"],Rl=["cx","cy"],Tl=["x1","y1","x2","y2"],Il=["x1","y1","x2","y2"],Ll=["cx","cy"],Pl=["cx","cy"],Fl=["cx","cy"],Hl=["cx","cy"],Gl=["cx","cy"],Zl=["cx","cy"],jl=["cx","cy"],Ul=["cx","cy"],Ql=["cy"],Yl=["cy"],Wl=["cx","cy"],Jl=["cx","cy"],Kl=["cy"],Xl=["cy"],vl=["x1","y1","x2","y2"],eo=["x1","y1","x2","y2"],to=["d"],lo=["d"],oo=["d"],ao=["d"],no=["cx","cy"],ro=["x1","x2"],so=["x","y"],io=["x","y"],co={key:10},mo={key:16},yo={key:36,d:"M 158 70 q 5 9 0 14 q -5 -5 0 -14 Z",fill:"oklch(0.8 0.12 220)",opacity:"0.9",class:"animate-dot-blink"},ko=["cx","cy"],ho=["cx","cy"],po=["d"],fo=["stroke"],go=["fill"],xo=["fill"],_o=["fill"],bo={key:44},uo=["fill"],Eo=["stroke"],No={key:46,class:"animate-spin-slow",style:{transformOrigin:"168px 62px"}},Bo=["fill"],Vo=["transform"],wo={key:47,transform:"rotate(40 168 62)"},Co=["fill"],So={key:48,class:"animate-wobble",style:{transformOrigin:"168px 60px"}},$o=["fill"],qo=["fill"],Mo={key:49,class:"animate-self-spin",style:{transformOrigin:"168px 60px"}},Do=["stroke"],zo={key:50,class:"animate-alert-flash"},Ao=["fill"],Oo={key:51},Ro={class:"animate-alert-flash"},To=["fill"],Io=["fill"],Lo=["stroke"],Po=["fill"],Fo={key:53,class:"animate-scan-move"},Ho=["stroke"],Go=["stroke"],Zo={key:54},jo=["stroke"],Uo=["fill"],Qo=["fill"],Yo=["fill"],Wo=["stroke"],Jo={key:57,class:"animate-locate-bob",style:{transformOrigin:"168px 60px"}},Ko=["fill"],Xo=["fill"],vo=["stroke"],ea=["fill"],ta={key:59},la=["stroke"],oa={key:60},aa=["fill"],na={key:61},ra=["fill"],sa={key:62,class:"animate-alert-flash",style:{transformOrigin:"168px 60px"}},ia=["fill"],ca={key:63},ma=["fill"],da={key:64,class:"animate-alert-flash"},ya=["fill"],ka={key:65,class:"animate-sparkle",style:{transformOrigin:"168px 58px"}},ha=["fill"],pa=["fill"],fa=["fill"],ga={key:66},xa=["fill"],_a=["fill"],ba=["fill"],ua={key:67,class:"animate-body-glow",style:{transformOrigin:"168px 62px"}},Ea=["fill"],Na={key:68,class:"animate-dot-blink"},Ba={key:69},Va=["stroke"],wa=["fill"],Ca=["fill"],Sa={key:72},$a={key:73,class:"animate-bball-ball",style:{transformOrigin:"120px 148px"}},qa={key:74,class:"animate-traffic-light-pop",style:{transformOrigin:"230px 126px"}},Ma=["fill"],Da=["opacity"],za=["opacity"],Aa=["opacity"],Oa={key:75},Ra=["x","y"],Ta={key:76,class:"animate-breathe",style:{transformBox:"fill-box",transformOrigin:"center"}},Ia=["fill"],La={key:78},Pa=["d","fill"],Fa={key:79},Ha=["fill"],Ga={key:80},Za=["stroke"],ja=["stroke"],Ua={key:81},Qa=["x","y","width","height","rx","fill"],Ya={key:82},Wa=["cx","cy","fill"],Ja=["fill"],Ka=["fill"],Xa=["d"],va=["fill"],en=["fill"],tn=["fill"],ln=["d"],on={key:0,class:"pointer-events-none absolute right-2 top-2 text-robot-blue-dark"},a="var(--robot-eye)",an="var(--robot-blue)",b="oklch(0.6 0.23 22)",q="oklch(0.72 0.19 55)",M="oklch(0.84 0.16 95)",D="oklch(0.62 0.02 260)",N="oklch(0.68 0.16 150)",nn="oklch(0.5 0.12 250)",s=102,i=138,t=108,rn=_(e.defineComponent({__name:"QuarkRobot",props:{emotion:{},action:{default:"idle"},speaking:{type:Boolean,default:!1}},setup(n){const c=n,d={neutral:{eyes:"neutral",mouth:"smileSoft",arms:"handsFold",anim:"animate-robot-float"},bye:{eyes:"happy",mouth:"smileSoft",arms:"waveUp",anim:"animate-robot-float"},happy:{eyes:"happy",mouth:"smile",blush:!0,arms:"joyRaise",anim:"animate-robot-float"},excited:{eyes:"excited",mouth:"open",blush:!0,arms:"waveUp",anim:"animate-robot-bounce"},angry:{eyes:"angry",mouth:"grit",sym:"anger",symColor:b,arms:"akimbo",anim:"animate-robot-shake"},sad:{eyes:"sad",mouth:"frown",tear:!0,arms:"hangsDown",anim:"animate-robot-droop"},surprised:{eyes:"wide",mouth:"o",sym:"exclaim",symColor:"var(--robot-amber)",blush:!0,arms:"alarm",anim:"animate-robot-bounce"},helpless:{eyes:"half",mouth:"wavy",sweat:!0,arms:"facepalm",anim:"animate-robot-float"},shy:{eyes:"happy",mouth:"smileSoft",blushStrong:!0,sym:"heart",symColor:b,arms:"faceCover",anim:"animate-robot-float"},awkward:{eyes:"half",mouth:"wavy",sweat:!0,sym:"ellipsis",symColor:"var(--muted-foreground)",arms:"scratchHead",anim:"animate-robot-float"},scared:{eyes:"wide",mouth:"o",sweat:!0,sym:"exclaim",symColor:b,arms:"headHold",anim:"animate-robot-shake"},wronged:{eyes:"teary",mouth:"frown",tear:!0,tear2:!0,blush:!0,arms:"wipeTear",anim:"animate-robot-droop"},agitated:{eyes:"excited",mouth:"bigopen",blush:!0,arms:"forwardReach",anim:"animate-robot-shake"},smug:{eyes:"smug",mouth:"smile",arms:"oneAkimboThumb",anim:"animate-robot-float"},sleepy:{eyes:"closed",mouth:"dot",anim:"animate-robot-sway"},thinking:{eyes:"lookup",mouth:"flat",sym:"question",symColor:a,anim:"animate-robot-float"},thinkingWait:{eyes:"thinkEyes",mouth:"flat",sym:"loader",symColor:a,arms:"chinRest",signalAnim:"animate-signal-coolblink",signalOverride:"oklch(0.72 0.08 220)",anim:"animate-thinking-tilt"},dazed:{eyes:"blank",mouth:"flat",sym:"ellipsis",symColor:"var(--muted-foreground)",anim:"animate-robot-sway"},tired:{eyes:"half",mouth:"frown",anim:"animate-robot-droop"},confused:{eyes:"confused",mouth:"wavy",sym:"question",symColor:"var(--robot-amber)",anim:"animate-wobble"},eureka:{eyes:"excited",mouth:"open",sym:"bulb",symColor:"var(--robot-amber)",arms:"ahaPoint",anim:"animate-robot-bounce"},yawn:{eyes:"closed",mouth:"bigopen",tear:!0,arms:"stretchYawn",anim:"animate-robot-sway"},spacedout:{eyes:"blank",mouth:"flat",sym:"ellipsis",symColor:"var(--muted-foreground)",anim:"animate-robot-sway"},eurekaClap:{eyes:"excited",mouth:"open",sym:"bulb",symColor:"var(--robot-amber)",arms:"clap",anim:"animate-robot-bounce"},rubEyes:{eyes:"closed",mouth:"frown",arms:"rub",anim:"animate-robot-droop"},zen:{eyes:"closed",mouth:"calm",sym:"lotus",symColor:"var(--robot-amber)",anim:"animate-breathe"},pray:{eyes:"closed",mouth:"calm",sym:"lotus",symColor:"var(--robot-amber)",arms:"pray",anim:"animate-breathe"},devout:{eyes:"closed",mouth:"calm",sym:"lotus",symColor:"var(--robot-amber)",arms:"pray",anim:"animate-breathe"},heal:{eyes:"happy",mouth:"smileSoft",blush:!0,sym:"heart",symColor:b,arms:"hug",anim:"animate-breathe"},coldGuard:{eyes:"lookdown",mouth:"flat",body:nn,anim:"animate-guard-sink"},listenOpen:{eyes:"neutral",mouth:"smileSoft",sym:"soundwave",symColor:a,arms:"attentiveOpen",anim:"animate-listen-tilt"},listenSneaky:{eyes:"half",mouth:"dot",sym:"soundwave",symColor:"var(--robot-amber)",arms:"shh",anim:"animate-listen-sneak"},listenPeek:{eyes:"wide",mouth:"smileSoft",sym:"soundwave",symColor:a,anim:"animate-peek"},busy:{eyes:"thinkEyes",mouth:"flat",sweat:!0,sym:"gear",symColor:"var(--robot-blue-dark)",arms:"overtimeArms",anim:"animate-busy-type"},processing:{eyes:"neutral",mouth:"flat",sym:"gear",symColor:"var(--robot-blue-dark)",arms:"overtimeArms",anim:"animate-nod"},done:{eyes:"happy",mouth:"smile",sym:"check",symColor:N,arms:"approve",anim:"animate-robot-float"},notes:{eyes:"lookdown",mouth:"smileSoft",sym:"pencil",symColor:"var(--robot-blue-dark)",arms:"writeDown",anim:"animate-notes-write"},stuck:{eyes:"dizzy",mouth:"flat",sweat:!0,sym:"question",symColor:"var(--muted-foreground)",arms:"shrug",anim:"animate-robot-shake"},askHumble:{eyes:"lookup",mouth:"smileSoft",sym:"question",symColor:a,arms:"humble",anim:"animate-robot-float"},report:{eyes:"neutral",mouth:"smile",arms:"point",anim:"animate-robot-float"},standby:{eyes:"neutral",mouth:"flat",sym:"bell",symColor:"var(--robot-amber)",arms:"attentiveOpen",anim:"animate-robot-float"},checkData:{eyes:"thinkEyes",mouth:"flat",sym:"target",symColor:"var(--robot-blue-dark)",arms:"scanArmRight",anim:"animate-check-scan"},loading:{eyes:"neutral",mouth:"flat",sym:"loader",symColor:a,arms:"bootStretch",anim:"animate-robot-float"},troubleshoot:{eyes:"confused",mouth:"flat",sweat:!0,sym:"broken",symColor:"var(--muted-foreground)",arms:"ponderHand",anim:"animate-pacing"},warnLow:{eyes:"neutral",mouth:"flat",sym:"warning",symColor:M,arms:"caution",anim:"animate-robot-sway"},warnOrange:{eyes:"wide",mouth:"flat",sym:"warning",symColor:q,body:q,arms:"caution",anim:"animate-wobble"},alertRed:{eyes:"wide",mouth:"o",sym:"siren",symColor:b,body:b,arms:"alarm",anim:"animate-robot-shake"},fault:{eyes:"dizzy",mouth:"wavy",sym:"broken",symColor:D,body:D,arms:"limp",anim:"animate-robot-droop"},alertClear:{eyes:"happy",mouth:"smile",sym:"check",symColor:N,arms:"thumbsUp",anim:"animate-robot-float"},scanning:{eyes:"neutral",mouth:"flat",sym:"scan",symColor:a,arms:"scan",anim:"animate-patrol"},camTurn:{eyes:"wide",mouth:"flat",sym:"scan",symColor:q,arms:"scan",anim:"animate-wobble"},alertVibrate:{eyes:"wide",mouth:"o",sym:"warning",symColor:q,body:q,arms:"alarm",anim:"animate-vibrate"},faultReset:{eyes:"dizzy",mouth:"flat",sym:"broken",symColor:D,body:D,anim:"animate-reset-spin"},investigate:{eyes:"neutral",mouth:"flat",sym:"scan",symColor:a,arms:"scan",anim:"animate-pacing"},clearGreen:{eyes:"happy",mouth:"smile",sym:"check",symColor:N,body:N,arms:"spread",anim:"animate-breathe"},locatePhysical:{eyes:"lookdown",mouth:"smileSoft",sym:"pin",symColor:a,arms:"point",anim:"animate-robot-float"},locateFault:{eyes:"confused",mouth:"flat",sym:"target",symColor:b,arms:"scan",anim:"animate-pacing"},locateProblem:{eyes:"lookup",mouth:"flat",sym:"target",symColor:"var(--robot-amber)",arms:"pointUp",anim:"animate-robot-float"},learning:{eyes:"lookdown",mouth:"smileSoft",sym:"book",symColor:"var(--robot-blue-dark)",arms:"humble",anim:"animate-nod"},msgSending:{eyes:"neutral",mouth:"flat",sym:"plane",symColor:a,arms:"scanArmRight",anim:"animate-robot-float"},msgSent:{eyes:"happy",mouth:"smile",sym:"msgOk",symColor:N,arms:"thumbsUp",anim:"animate-robot-float"},msgFailed:{eyes:"sad",mouth:"frown",sym:"msgFail",symColor:b,sweat:!0,arms:"droopArms",anim:"animate-robot-shake"},msgReceiving:{eyes:"neutral",mouth:"smileSoft",sym:"msgIn",symColor:"var(--robot-amber)",arms:"chinRest",anim:"animate-nod"},joyful:{eyes:"arcHappy",mouth:"bigSmile",blushPink:!0,arms:"joyRaise",signalAnim:"animate-signal-warm",signalOverride:"oklch(0.84 0.16 72)",anim:"animate-joyful"},furious:{eyes:"narrow",mouth:"grit",arms:"akimbo",signalAnim:"animate-signal-red",signalOverride:"oklch(0.58 0.22 22)",anim:"animate-furious"},sorrowful:{eyes:"droopy",mouth:"bigFrown",tear:!0,tear2:!0,arms:"hangsDown",screenTint:"oklch(0.35 0.08 240 / 0.18)",signalAnim:"animate-signal-blue",signalOverride:"oklch(0.55 0.14 240)",anim:"animate-sorrowful"},serene:{eyes:"softRound",mouth:"smileSoft",arms:"handsFold",signalOverride:"oklch(0.82 0.14 72)",anim:"animate-serene"},amazed:{eyes:"bigRound",mouth:"bigopen",blush:!0,sym:"exclaim",symColor:"oklch(0.84 0.16 72)",arms:"alarm",signalAnim:"animate-signal-burst",signalOverride:"oklch(0.9 0.18 90)",anim:"animate-amazed"},excited2:{eyes:"arcHappy",mouth:"bigSmile",blushStrong:!0,arms:"waveUp",signalAnim:"animate-signal-rapid",signalOverride:"oklch(0.84 0.16 72)",anim:"animate-excited-e"},helpless2:{eyes:"halfDroopy",mouth:"bitterSmile",arms:"facepalm",signalAnim:"animate-signal-dim",signalOverride:"oklch(0.58 0.06 250)",anim:"animate-helpless"},shy2:{eyes:"peekSlit",mouth:"heartMouth",blushPink:!0,arms:"faceCover",signalAnim:"animate-signal-pink",signalOverride:"oklch(0.82 0.14 20)",anim:"animate-shy"},awkward2:{eyes:"halfSquint",mouth:"awkwardSmile",blush:!0,arms:"scratchHead",signalAnim:"animate-signal-soft",signalOverride:"oklch(0.88 0.12 85)",anim:"animate-awkward"},scared2:{eyes:"scaredWide",mouth:"o",sweat:!0,arms:"headHold",signalAnim:"animate-signal-panic",signalOverride:"oklch(0.58 0.22 22)",anim:"animate-scared"},grieved:{eyes:"droopy",mouth:"bigFrown",blush:!0,arms:"wipeTear",screenTint:"oklch(0.35 0.08 240 / 0.14)",signalAnim:"animate-signal-cold",signalOverride:"oklch(0.5 0.12 240)",anim:"animate-grieved"},thrilled:{eyes:"bigRound",mouth:"bigopen",arms:"forwardReach",sym:"lightning",symColor:"oklch(0.9 0.18 90)",signalAnim:"animate-signal-bright",signalOverride:"oklch(0.9 0.18 90)",anim:"animate-thrilled"},jealous:{eyes:"narrowSlant",mouth:"poutBig",blush:!0,arms:"crossArms",signalAnim:"animate-signal-purple",signalOverride:"oklch(0.62 0.14 280)",anim:"animate-jealous"},speechless:{eyes:"dashEyes",mouth:"flat",arms:"templePoint",sym:"ellipsis",symColor:"oklch(0.55 0.04 250)",signalAnim:"animate-signal-gray",signalOverride:"oklch(0.45 0.06 250)",anim:"animate-speechless"},proud:{eyes:"smug",mouth:"smile",arms:"oneAkimboThumb",sym:"sparkle2",symColor:"oklch(0.88 0.16 80)",signalAnim:"animate-signal-gold",signalOverride:"oklch(0.84 0.16 72)",anim:"animate-proud"},drowsy:{eyes:"halfClosed",mouth:"open",arms:"armsLoose",sym:"zzz",symColor:"oklch(0.65 0.08 260)",signalAnim:"animate-signal-darkblue",signalOverride:"oklch(0.42 0.10 255)",anim:"animate-drowsy"},thinking2:{eyes:"thinkEyes",mouth:"flat",arms:"chinRest",sym:"bulb",symColor:"oklch(0.84 0.14 90)",signalAnim:"animate-signal-coolblink",signalOverride:"oklch(0.72 0.08 220)",anim:"animate-thinking-tilt"},daydream2:{eyes:"blankDot",mouth:"flat",arms:"clasp",signalAnim:"animate-signal-faint",signalOverride:"oklch(0.5 0.06 230)",anim:"animate-daydream"},exhausted:{eyes:"heavyLid",mouth:"frown",arms:"slump",sym:"lowBattery",symColor:"oklch(0.58 0.22 22)",signalAnim:"animate-signal-rb",signalOverride:"oklch(0.45 0.10 260)",anim:"animate-exhausted"},puzzled:{eyes:"bigRound",mouth:"o",arms:"shrug",sym:"question",symColor:"oklch(0.82 0.14 90)",signalAnim:"animate-signal-paleyellow",signalOverride:"oklch(0.86 0.14 90)",anim:"animate-puzzled"},guarding:{eyes:"narrow",mouth:"flat",arms:"shieldUp",sym:"shield",symColor:"oklch(0.72 0.14 220)",signalAnim:"animate-signal-shield",signalOverride:"oklch(0.55 0.16 230)",anim:"animate-guard-stance"},playBasketball:{eyes:"arcHappy",mouth:"bigSmile",blushPink:!0,sym:"miniBasketball",symColor:"oklch(0.65 0.16 40)",signalAnim:"animate-signal-bball",signalOverride:"oklch(0.75 0.18 72)",anim:"animate-bball-body"},ironMountain:{eyes:"smug",mouth:"smile",blushPink:!0,signalAnim:"animate-signal-iron",signalOverride:"oklch(0.78 0.18 72)",anim:"animate-iron-hip"},trafficRed:{eyes:"wide",mouth:"flat",arms:"trafficGuide",sym:"warning",symColor:b,body:b,signalAnim:"animate-signal-red",signalOverride:b,anim:"animate-traffic-stop"},trafficYellow:{eyes:"thinkEyes",mouth:"flat",arms:"trafficGuide",sym:"warning",symColor:M,body:M,signalAnim:"animate-signal-soft",signalOverride:M,anim:"animate-traffic-wait"},trafficGreen:{eyes:"happy",mouth:"smile",arms:"trafficGuide",sym:"check",symColor:N,body:N,signalAnim:"animate-signal-shield",signalOverride:N,anim:"animate-traffic-go"},singing:{eyes:"arcHappy",mouth:"bigopen",blushPink:!0,arms:"conductMusic",sym:"soundwave",symColor:"oklch(0.82 0.16 72)",signalAnim:"animate-signal-warm",signalOverride:"oklch(0.82 0.16 72)",anim:"animate-sing-body"}},m={nod:"animate-nod-v2",shakeHead:"animate-shakehead-v2",bow:"animate-bow-v2",cheer:"animate-cheer",giggle:"animate-giggle",peek:"animate-peek-v2",patrol:"animate-patrol-v2",pacing:"animate-pacing",patrolScan:"animate-patrol-scan",guardStop:"animate-guard-sink",spinBoot:"animate-spin-boot",spinFault:"animate-spin-fault",spinDone:"animate-spin-done",signalBreathe:"animate-breathe",bodyBreathe:"animate-breathe",cameraScan:"animate-patrol-v2",idleDrift:"animate-idle-drift",idleYawn:"animate-idle-yawn",idleGlance:"animate-idle-glance",idleNod:"animate-idle-nod",twoHandHeart:"animate-heart-lean",celebrate:"animate-celebrate",welcome:"animate-welcome",comfort:"animate-comfort",victoryPose:"animate-victory",trafficRed:"animate-traffic-stop",trafficYellow:"animate-traffic-wait",trafficGreen:"animate-traffic-go",ironMountain:"animate-iron-hip",playBasketball:"animate-bball-body",sing:"animate-sing-body"},y={nod:"approve",shakeHead:"denyPush",blowKiss:"kiss",waveNo:"waveNo",bow:"bow",cheer:"cheer",giggle:"giggle",peek:"point",patrol:"march",pacing:"ponderHand",patrolScan:"scan",spinBoot:"bootStretch",bodyBreathe:"restBreathe",idleDrift:"floatArms",idleYawn:"stretchYawn",idleGlance:"armsLoose",idleNod:"droopArms",twoHandHeart:"heartCenter",fingerSparkle:"sparkle",thumbsUp:"thumbsUp",celebrate:"alarm",welcome:"spread",comfort:"humble",victoryPose:"alarm",trafficRed:"trafficGuide",trafficYellow:"trafficGuide",trafficGreen:"trafficGuide",guardStop:"flagGuard",ironMountain:"shoulderBash",playBasketball:"shootBall",sing:"conductMusic"},g={spinBoot:"oklch(0.7 0.18 200)",spinFault:"oklch(0.6 0.23 22)",spinDone:"oklch(0.75 0.18 145)",guardStop:"oklch(0.58 0.22 22)",twoHandHeart:"oklch(0.72 0.18 340)",patrolScan:"oklch(0.7 0.18 200)",celebrate:"oklch(0.82 0.16 72)",victoryPose:"oklch(0.75 0.18 145)",welcome:"oklch(0.7 0.18 200)",comfort:"oklch(0.78 0.12 340)",idleYawn:"oklch(0.6 0.08 264)",idleGlance:"oklch(0.6 0.08 264)",playBasketball:"oklch(0.75 0.18 72)",ironMountain:"oklch(0.78 0.18 72)",trafficRed:b,trafficYellow:M,trafficGreen:N,sing:"oklch(0.82 0.16 72)"},E={celebrate:"confetti",victoryPose:"confetti",fingerSparkle:"particles",twoHandHeart:"heart-particles",welcome:"glow",spinBoot:"scan-ring",spinFault:"scan-ring",spinDone:"scan-ring",patrolScan:"scan-ring",guardStop:"flag",trafficRed:"traffic-light",trafficYellow:"traffic-light",trafficGreen:"traffic-light",sing:"music-notes"},pn={down:{l:-8,r:8},waveNo:{l:-8,r:95,ra:"animate-arm-wave"},cheer:{l:-120,r:120,la:"animate-arm-pump",ra:"animate-arm-pump"},kiss:{l:-8,r:120},heart:{l:-120,r:120},bow:{l:35,r:-35},giggle:{l:-145,r:145},pray:{l:-55,r:55},thumbsUp:{l:-8,r:65},point:{l:-8,r:30},sparkle:{l:-35,r:35},hug:{l:-45,r:45},clap:{l:55,r:-55,la:"animate-arm-wave",ra:"animate-arm-wave"},rub:{l:-8,r:125},humble:{l:-8,r:50},shh:{l:-8,r:135},alarm:{l:130,r:-130,la:"animate-arm-pump",ra:"animate-arm-pump"},limp:{l:-85,r:85},caution:{l:-8,r:-105,ra:"animate-arm-wave"},scan:{l:-8,r:-45,ra:"animate-arm-scan"},spread:{l:-35,r:35},pointUp:{l:-8,r:-130},heartCenter:{l:55,r:-55},flagGuard:{l:30,r:-30},akimbo:{l:-42,r:42},hangsDown:{l:-95,r:95},waveUp:{l:72,r:-72,la:"animate-arm-pump",ra:"animate-arm-pump"},facepalm:{l:108,r:80},faceCover:{l:92,r:-92},scratchHead:{l:-82,r:-128},headHold:{l:125,r:-125},forwardReach:{l:34,r:-34},crossArms:{l:58,r:-58},templePoint:{l:-105,r:8},oneAkimboThumb:{l:-52,r:65},chinRest:{l:42,r:-75},overtimeArms:{l:68,r:-68},writeDown:{l:38,r:-55},scanArmRight:{l:-70,r:-40},shieldUp:{l:72,r:-72},approve:{l:44,r:-44,la:"animate-arm-nod",ra:"animate-arm-nod"},denyPush:{l:66,r:-66,la:"animate-arm-shake-x",ra:"animate-arm-shake-x"},march:{l:-8,r:8,la:"animate-arm-march-a",ra:"animate-arm-march-b"},ponderHand:{l:-8,r:-66},bootStretch:{l:-34,r:34},restBreathe:{l:-22,r:22,la:"animate-arm-breathe",ra:"animate-arm-breathe"},floatArms:{l:-45,r:45,la:"animate-arm-breathe",ra:"animate-arm-breathe"},stretchYawn:{l:-108,r:22},clasp:{l:34,r:-34},droopArms:{l:-86,r:86},joyRaise:{l:82,r:-82},handsFold:{l:-68,r:68},wipeTear:{l:-90,r:-95},slump:{l:-104,r:104},shrug:{l:56,r:-56},ahaPoint:{l:-8,r:-95},attentiveOpen:{l:-40,r:40},armsLoose:{l:-16,r:16},shoulderBash:{l:-88,r:88,la:"animate-iron-arm",ra:"animate-iron-arm"},shootBall:{l:-8,r:8,la:"animate-bball-arm-l",ra:"animate-bball-arm-r"},trafficGuide:{l:-36,r:0,ra:"animate-traffic-arm"},conductMusic:{l:54,r:-54,la:"animate-conduct-arm-l",ra:"animate-conduct-arm-r"}},o=e.computed(()=>d[c.emotion]),B=e.computed(()=>o.value.body??an),fn=e.computed(()=>m[c.action]??o.value.anim),w=e.computed(()=>y[c.action]??o.value.arms??"down"),V=e.computed(()=>pn[w.value]),$=e.computed(()=>g[c.action]??o.value.signalOverride??"var(--robot-amber)"),gn=e.computed(()=>o.value.signalAnim&&c.action==="idle"?o.value.signalAnim:""),C=e.computed(()=>E[c.action]??"none"),S=e.computed(()=>c.action==="trafficRed"||c.emotion==="trafficRed"?"red":c.action==="trafficYellow"||c.emotion==="trafficYellow"?"yellow":c.action==="trafficGreen"||c.emotion==="trafficGreen"?"green":null),xn=e.computed(()=>c.action==="sing"||c.emotion==="singing"),_n=[{x:62,y:64,note:"♪",delay:0},{x:184,y:76,note:"♫",delay:.22},{x:48,y:116,note:"♬",delay:.44},{x:194,y:128,note:"♪",delay:.66}],bn=[{x:90,y:30,cx:-40,cy:-55,cr:"160deg",color:"oklch(0.75 0.18 145)",size:5},{x:120,y:22,cx:0,cy:-62,cr:"20deg",color:"oklch(0.82 0.16 72)",size:4},{x:150,y:30,cx:44,cy:-50,cr:"-140deg",color:"oklch(0.6 0.23 22)",size:5},{x:75,y:50,cx:-52,cy:-30,cr:"200deg",color:"oklch(0.7 0.18 200)",size:3},{x:168,y:48,cx:50,cy:-28,cr:"-200deg",color:"oklch(0.78 0.12 340)",size:3},{x:60,y:75,cx:-38,cy:-18,cr:"90deg",color:"oklch(0.82 0.16 72)",size:4},{x:182,y:72,cx:36,cy:-16,cr:"-90deg",color:"oklch(0.75 0.18 145)",size:4}],un=[{x:114,y:182,hx:"-10px",delay:0,size:9,color:"oklch(0.72 0.22 0)"},{x:126,y:180,hx:"10px",delay:.18,size:7,color:"oklch(0.72 0.18 340)"},{x:108,y:176,hx:"-18px",delay:.34,size:5,color:"oklch(0.8 0.14 0)"},{x:132,y:174,hx:"16px",delay:.5,size:5,color:"oklch(0.78 0.20 340)"},{x:120,y:170,hx:"0px",delay:.66,size:6,color:"oklch(0.72 0.22 0)"}],En=[...Array.from({length:6},(p,l)=>({x:20+Math.cos(l/6*Math.PI*2)*18,y:128+Math.sin(l/6*Math.PI*2)*18,delay:l*.18,color:l%2===0?"var(--robot-amber)":"oklch(0.7 0.18 200)"})),...Array.from({length:6},(p,l)=>({x:220+Math.cos(l/6*Math.PI*2)*18,y:128+Math.sin(l/6*Math.PI*2)*18,delay:l*.18+.09,color:l%2===0?"var(--robot-amber)":"oklch(0.7 0.18 200)"}))],P=e.ref(null),z=e.ref({x:0,y:0}),F=e.ref(0),A=e.ref(!1);let O;function H(p){const l=P.value;if(!l)return;const r=l.getBoundingClientRect(),x=r.left+r.width/2,qn=r.top+r.height/2,Z=(p.clientX-x)/(r.width/2),Mn=(p.clientY-qn)/(r.height/2),T=Dn=>Math.max(-1,Math.min(1,Dn));z.value={x:T(Z)*6,y:T(Mn)*5},F.value=T(Z)*6}function G(){O=setTimeout(()=>{A.value=!0,setTimeout(()=>A.value=!1,130),G()},2200+Math.random()*2600)}e.onMounted(()=>{window.addEventListener("mousemove",H),G()}),e.onBeforeUnmount(()=>{window.removeEventListener("mousemove",H),O&&clearTimeout(O)});const f=e.computed(()=>z.value.x),u=e.computed(()=>z.value.y),Nn=e.computed(()=>c.emotion==="excited"||c.emotion==="eureka"||c.emotion==="eurekaClap"),Bn=e.computed(()=>({transform:`rotate(${F.value*.4}deg)`})),Vn=e.computed(()=>{const p={transformBox:"fill-box",transformOrigin:"right center",transition:"transform 0.35s ease","--arm-base":`${V.value.l}deg`};return V.value.la||(p.transform=`rotate(${V.value.l}deg)`),p}),wn=e.computed(()=>{const p={transformBox:"fill-box",transformOrigin:"left center",transition:"transform 0.35s ease","--arm-base":`${V.value.r}deg`};return V.value.ra||(p.transform=`rotate(${V.value.r}deg)`),p}),Cn=["closed","happy","sad","angry","dizzy","smug"],k=e.computed(()=>A.value&&!Cn.includes(o.value.eyes)?"closed":o.value.eyes),Sn=[{x:70,y:78,delay:0},{x:172,y:84,delay:.4},{x:160,y:150,delay:.8}];function R(p,l){return`M ${p} ${l-7} L ${p+2} ${l-2} L ${p+7} ${l} L ${p+2} ${l+2} L ${p} ${l+7} L ${p-2} ${l+2} L ${p-7} ${l} L ${p-2} ${l-2} Z`}const $n=[0,45,90,135,180,225,270,315];return(p,l)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:P,class:"relative flex w-full max-w-[300px] items-center justify-center","aria-hidden":"true"},[e.createElementVNode("div",{style:e.normalizeStyle(Bn.value)},[e.createElementVNode("div",{class:e.normalizeClass(fn.value)},[(e.openBlock(),e.createElementBlock("svg",ot,[e.createElementVNode("line",{x1:"120",y1:"42",x2:"120",y2:"30",stroke:B.value,"stroke-width":"6","stroke-linecap":"round"},null,8,at),e.createElementVNode("circle",{cx:"120",cy:"22",r:"11",fill:$.value,style:e.normalizeStyle({transition:"fill 0.6s ease",filter:`drop-shadow(0 0 5px ${$.value})`}),class:e.normalizeClass(["animate-antenna-pulse",C.value==="scan-ring"||n.action==="signalBreathe"?"animate-signal-breathe":"",gn.value])},null,14,nt),e.createElementVNode("rect",{x:"44",y:"40",width:"152",height:"152",rx:"54",fill:B.value,style:{transition:"fill 0.3s ease"}},null,8,rt),l[46]||(l[46]=e.createElementVNode("rect",{x:"44",y:"40",width:"152",height:"152",rx:"54",fill:"oklch(1 0 0 / 0.08)"},null,-1)),o.value.blush||o.value.blushStrong?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("ellipse",{cx:"72",cy:"128",rx:o.value.blushStrong?14:11,ry:o.value.blushStrong?10:8,fill:"var(--robot-amber)",opacity:o.value.blushStrong?.95:.85},null,8,st),e.createElementVNode("ellipse",{cx:"168",cy:"128",rx:o.value.blushStrong?14:11,ry:o.value.blushStrong?10:8,fill:"var(--robot-amber)",opacity:o.value.blushStrong?.95:.85},null,8,it)],64)):e.createCommentVNode("",!0),o.value.blushPink?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l[0]||(l[0]=e.createElementVNode("ellipse",{cx:"73",cy:"129",rx:"13",ry:"9",fill:"oklch(0.72 0.22 0)",opacity:"0.72"},null,-1)),l[1]||(l[1]=e.createElementVNode("ellipse",{cx:"167",cy:"129",rx:"13",ry:"9",fill:"oklch(0.72 0.22 0)",opacity:"0.72"},null,-1))],64)):e.createCommentVNode("",!0),l[47]||(l[47]=e.createElementVNode("rect",{x:"66",y:"66",width:"108",height:"92",rx:"32",fill:"var(--robot-screen)"},null,-1)),o.value.screenTint?(e.openBlock(),e.createElementBlock("rect",{key:2,x:"66",y:"66",width:"108",height:"92",rx:"32",fill:o.value.screenTint},null,8,ct)):e.createCommentVNode("",!0),l[48]||(l[48]=e.createElementVNode("rect",{x:"66",y:"66",width:"108",height:"40",rx:"20",fill:"oklch(1 0 0 / 0.06)"},null,-1)),k.value==="closed"?(e.openBlock(),e.createElementBlock("g",{key:3,stroke:a,"stroke-width":"5","stroke-linecap":"round",fill:"none"},[e.createElementVNode("path",{d:`M ${s-11} ${t} q 11 7 22 0`},null,8,mt),e.createElementVNode("path",{d:`M ${i-11} ${t} q 11 7 22 0`},null,8,dt)])):k.value==="happy"?(e.openBlock(),e.createElementBlock("g",{key:4,stroke:a,"stroke-width":"6","stroke-linecap":"round",fill:"none"},[e.createElementVNode("path",{d:`M ${s-11} ${t+3} q 11 -16 22 0`},null,8,yt),e.createElementVNode("path",{d:`M ${i-11} ${t+3} q 11 -16 22 0`},null,8,kt)])):k.value==="arcHappy"?(e.openBlock(),e.createElementBlock("g",ht,[e.createElementVNode("path",{d:`M ${s-13} ${t+4} q 13 -20 26 0`,stroke:a,"stroke-width":"7","stroke-linecap":"round",fill:"none"},null,8,pt),e.createElementVNode("path",{d:`M ${i-13} ${t+4} q 13 -20 26 0`,stroke:a,"stroke-width":"7","stroke-linecap":"round",fill:"none"},null,8,ft),e.createElementVNode("rect",{x:s-14,y:t-14,width:"28",height:"18",fill:"var(--robot-screen)"},null,8,gt),e.createElementVNode("rect",{x:i-14,y:t-14,width:"28",height:"18",fill:"var(--robot-screen)"},null,8,xt)])):k.value==="narrow"?(e.openBlock(),e.createElementBlock("g",{key:6,fill:a},[e.createElementVNode("ellipse",{cx:s+f.value*.4,cy:t,rx:"5",ry:"11"},null,8,_t),e.createElementVNode("ellipse",{cx:i+f.value*.4,cy:t,rx:"5",ry:"11"},null,8,bt),e.createElementVNode("line",{x1:s-11,y1:t-12,x2:s+9,y2:t-6,stroke:a,"stroke-width":"5","stroke-linecap":"round"},null,8,ut),e.createElementVNode("line",{x1:i+11,y1:t-12,x2:i-9,y2:t-6,stroke:a,"stroke-width":"5","stroke-linecap":"round"},null,8,Et)])):k.value==="droopy"?(e.openBlock(),e.createElementBlock("g",{key:7,fill:a},[e.createElementVNode("ellipse",{cx:s,cy:t+3,rx:"8",ry:"10"},null,8,Nt),e.createElementVNode("ellipse",{cx:i,cy:t+3,rx:"8",ry:"10"},null,8,Bt),e.createElementVNode("line",{x1:s+5,y1:t-8,x2:s+12,y2:t-2,stroke:a,"stroke-width":"4","stroke-linecap":"round"},null,8,Vt),e.createElementVNode("line",{x1:i-5,y1:t-8,x2:i-12,y2:t-2,stroke:a,"stroke-width":"4","stroke-linecap":"round"},null,8,wt)])):k.value==="softRound"?(e.openBlock(),e.createElementBlock("g",{key:8,fill:a},[e.createElementVNode("circle",{cx:s+f.value*.2,cy:t+u.value*.2,r:"9"},null,8,Ct),e.createElementVNode("circle",{cx:i+f.value*.2,cy:t+u.value*.2,r:"9"},null,8,St),e.createElementVNode("circle",{cx:s+3,cy:t-3,r:"2.5",fill:"var(--robot-screen)"},null,8,$t),e.createElementVNode("circle",{cx:i+3,cy:t-3,r:"2.5",fill:"var(--robot-screen)"},null,8,qt)])):k.value==="bigRound"?(e.openBlock(),e.createElementBlock("g",{key:9,fill:a},[e.createElementVNode("circle",{cx:s,cy:t,r:"15",fill:"oklch(1 0 0 / 0.96)"}),e.createElementVNode("circle",{cx:i,cy:t,r:"15",fill:"oklch(1 0 0 / 0.96)"}),e.createElementVNode("circle",{cx:s+f.value*.5,cy:t+u.value*.5,r:"8",fill:a},null,8,Mt),e.createElementVNode("circle",{cx:i+f.value*.5,cy:t+u.value*.5,r:"8",fill:a},null,8,Dt),e.createElementVNode("circle",{cx:s+5,cy:t-5,r:"3",fill:"oklch(1 0 0 / 0.9)"},null,8,zt),e.createElementVNode("circle",{cx:i+5,cy:t-5,r:"3",fill:"oklch(1 0 0 / 0.9)"},null,8,At)])):k.value==="halfDroopy"?(e.openBlock(),e.createElementBlock("g",{key:10,fill:a},[e.createElementVNode("ellipse",{cx:s,cy:t+2,rx:"10",ry:"11",fill:"oklch(1 0 0 / 0.9)"},null,8,Ot),e.createElementVNode("ellipse",{cx:i,cy:t+2,rx:"10",ry:"11",fill:"oklch(1 0 0 / 0.9)"},null,8,Rt),e.createElementVNode("ellipse",{cx:s,cy:t+5,rx:"6",ry:"7",fill:a},null,8,Tt),e.createElementVNode("ellipse",{cx:i,cy:t+5,rx:"6",ry:"7",fill:a},null,8,It),e.createElementVNode("rect",{x:s-12,y:t-12,width:"24",height:"12",fill:"var(--robot-screen)"},null,8,Lt),e.createElementVNode("rect",{x:i-12,y:t-12,width:"24",height:"12",fill:"var(--robot-screen)"},null,8,Pt)])):k.value==="peekSlit"?(e.openBlock(),e.createElementBlock("g",{key:11,stroke:a,"stroke-width":"4","stroke-linecap":"round",fill:"none"},[e.createElementVNode("line",{x1:s-9,y1:t,x2:s+9,y2:t},null,8,Ft),e.createElementVNode("line",{x1:i-9,y1:t,x2:i+9,y2:t},null,8,Ht)])):k.value==="halfSquint"?(e.openBlock(),e.createElementBlock("g",{key:12,fill:a},[e.createElementVNode("ellipse",{cx:s,cy:t+1,rx:"7",ry:"9",fill:"oklch(1 0 0 / 0.9)"},null,8,Gt),e.createElementVNode("ellipse",{cx:s+2,cy:t+2,rx:"4.5",ry:"6",fill:a},null,8,Zt),e.createElementVNode("rect",{x:s-9,y:t-10,width:"18",height:"9",fill:"var(--robot-screen)"},null,8,jt),e.createElementVNode("ellipse",{cx:i,cy:t,rx:"9",ry:"11",fill:"oklch(1 0 0 / 0.9)"}),e.createElementVNode("ellipse",{cx:i+3,cy:t+1,rx:"6",ry:"7",fill:a},null,8,Ut)])):k.value==="scaredWide"?(e.openBlock(),e.createElementBlock("g",{key:13,fill:a},[e.createElementVNode("circle",{cx:s,cy:t,r:"14",fill:"oklch(1 0 0 / 0.98)"}),e.createElementVNode("circle",{cx:i,cy:t,r:"14",fill:"oklch(1 0 0 / 0.98)"}),e.createElementVNode("circle",{cx:s+3,cy:t+2,r:"7",fill:a},null,8,Qt),e.createElementVNode("circle",{cx:i-3,cy:t+2,r:"7",fill:a},null,8,Yt),e.createElementVNode("circle",{cx:s+6,cy:t-3,r:"2.5",fill:"oklch(1 0 0 / 0.95)"},null,8,Wt),e.createElementVNode("circle",{cx:i-1,cy:t-3,r:"2.5",fill:"oklch(1 0 0 / 0.95)"},null,8,Jt)])):k.value==="narrowSlant"?(e.openBlock(),e.createElementBlock("g",{key:14,fill:a},[e.createElementVNode("ellipse",{cx:s,cy:t,rx:"11",ry:"8",fill:"oklch(1 0 0 / 0.92)"}),e.createElementVNode("ellipse",{cx:i,cy:t,rx:"11",ry:"8",fill:"oklch(1 0 0 / 0.92)"}),e.createElementVNode("ellipse",{cx:s+2,cy:t+1,rx:"5",ry:"6",fill:a},null,8,Kt),e.createElementVNode("ellipse",{cx:i-2,cy:t+1,rx:"5",ry:"6",fill:a},null,8,Xt),e.createElementVNode("line",{x1:s-12,y1:t-7,x2:s+10,y2:t-4,stroke:a,"stroke-width":"5","stroke-linecap":"round"},null,8,vt),e.createElementVNode("line",{x1:i-10,y1:t-4,x2:i+12,y2:t-7,stroke:a,"stroke-width":"5","stroke-linecap":"round"},null,8,el)])):k.value==="dashEyes"?(e.openBlock(),e.createElementBlock("g",{key:15,stroke:a,"stroke-width":"6","stroke-linecap":"round"},[e.createElementVNode("line",{x1:s-10,y1:t,x2:s+10,y2:t},null,8,tl),e.createElementVNode("line",{x1:i-10,y1:t,x2:i+10,y2:t},null,8,ll)])):k.value==="halfClosed"?(e.openBlock(),e.createElementBlock("g",ol,[e.createElementVNode("ellipse",{cx:s,cy:t+2,rx:"11",ry:"12",fill:"oklch(1 0 0 / 0.88)"},null,8,al),e.createElementVNode("ellipse",{cx:i,cy:t+2,rx:"11",ry:"12",fill:"oklch(1 0 0 / 0.88)"},null,8,nl),e.createElementVNode("ellipse",{cx:s,cy:t+5,rx:"6",ry:"7",fill:a},null,8,rl),e.createElementVNode("ellipse",{cx:i,cy:t+5,rx:"6",ry:"7",fill:a},null,8,sl),e.createElementVNode("rect",{x:s-13,y:t-13,width:"26",height:"16",fill:"var(--robot-screen)"},null,8,il),e.createElementVNode("rect",{x:i-13,y:t-13,width:"26",height:"16",fill:"var(--robot-screen)"},null,8,cl),e.createElementVNode("path",{d:`M ${s-11} ${t+3} q 11 -6 22 0`,stroke:a,"stroke-width":"4.5","stroke-linecap":"round",fill:"none"},null,8,ml),e.createElementVNode("path",{d:`M ${i-11} ${t+3} q 11 -6 22 0`,stroke:a,"stroke-width":"4.5","stroke-linecap":"round",fill:"none"},null,8,dl)])):k.value==="thinkEyes"?(e.openBlock(),e.createElementBlock("g",{key:17,fill:a},[e.createElementVNode("ellipse",{cx:s,cy:t,rx:"9",ry:"10",fill:"oklch(1 0 0 / 0.9)"}),e.createElementVNode("ellipse",{cx:i,cy:t,rx:"9",ry:"10",fill:"oklch(1 0 0 / 0.9)"}),e.createElementVNode("ellipse",{cx:s,cy:t-2,rx:"5.5",ry:"6.5",fill:a},null,8,yl),e.createElementVNode("ellipse",{cx:i,cy:t-2,rx:"5.5",ry:"6.5",fill:a},null,8,kl),e.createElementVNode("line",{x1:s-8,y1:t-12,x2:s+6,y2:t-9,stroke:a,"stroke-width":"3.5","stroke-linecap":"round"},null,8,hl),e.createElementVNode("line",{x1:i-6,y1:t-9,x2:i+8,y2:t-12,stroke:a,"stroke-width":"3.5","stroke-linecap":"round"},null,8,pl)])):k.value==="blankDot"?(e.openBlock(),e.createElementBlock("g",{key:18,fill:a},[e.createElementVNode("circle",{cx:s,cy:t,r:"10",fill:"oklch(1 0 0 / 0.9)"}),e.createElementVNode("circle",{cx:i,cy:t,r:"10",fill:"oklch(1 0 0 / 0.9)"}),e.createElementVNode("circle",{cx:s,cy:t,r:"4",fill:a}),e.createElementVNode("circle",{cx:i,cy:t,r:"4",fill:a})])):k.value==="heavyLid"?(e.openBlock(),e.createElementBlock("g",fl,[e.createElementVNode("ellipse",{cx:s,cy:t+3,rx:"11",ry:"12",fill:"oklch(1 0 0 / 0.85)"},null,8,gl),e.createElementVNode("ellipse",{cx:i,cy:t+3,rx:"11",ry:"12",fill:"oklch(1 0 0 / 0.85)"},null,8,xl),e.createElementVNode("ellipse",{cx:s,cy:t+7,rx:"5",ry:"6",fill:a},null,8,_l),e.createElementVNode("ellipse",{cx:i,cy:t+7,rx:"5",ry:"6",fill:a},null,8,bl),e.createElementVNode("rect",{x:s-13,y:t-14,width:"26",height:"20",fill:"var(--robot-screen)"},null,8,ul),e.createElementVNode("rect",{x:i-13,y:t-14,width:"26",height:"20",fill:"var(--robot-screen)"},null,8,El),e.createElementVNode("path",{d:`M ${s-11} ${t+6} q 11 -4 22 0`,stroke:a,"stroke-width":"5","stroke-linecap":"round",fill:"none"},null,8,Nl),e.createElementVNode("path",{d:`M ${i-11} ${t+6} q 11 -4 22 0`,stroke:a,"stroke-width":"5","stroke-linecap":"round",fill:"none"},null,8,Bl)])):k.value==="smug"?(e.openBlock(),e.createElementBlock("g",{key:20,stroke:a,"stroke-width":"5","stroke-linecap":"round",fill:"none"},[e.createElementVNode("path",{d:`M ${s-11} ${t-2} q 11 9 22 2`},null,8,Vl),e.createElementVNode("path",{d:`M ${i-11} ${t-2} q 11 9 22 2`},null,8,wl)])):k.value==="cool"?(e.openBlock(),e.createElementBlock("g",{key:21,stroke:a,"stroke-width":"5","stroke-linecap":"round"},[e.createElementVNode("line",{x1:s-11,y1:t,x2:s+11,y2:t},null,8,Cl),e.createElementVNode("line",{x1:i-11,y1:t,x2:i+11,y2:t},null,8,Sl)])):k.value==="sad"?(e.openBlock(),e.createElementBlock("g",{key:22,stroke:a,"stroke-width":"6","stroke-linecap":"round",fill:"none"},[e.createElementVNode("path",{d:`M ${s-11} ${t-1} q 11 14 22 0`},null,8,$l),e.createElementVNode("path",{d:`M ${i-11} ${t-1} q 11 14 22 0`},null,8,ql)])):k.value==="teary"?(e.openBlock(),e.createElementBlock("g",{key:23,fill:a},[e.createElementVNode("circle",{cx:s,cy:t+1,r:"11",fill:"oklch(1 0 0 / 0.95)"},null,8,Ml),e.createElementVNode("circle",{cx:i,cy:t+1,r:"11",fill:"oklch(1 0 0 / 0.95)"},null,8,Dl),e.createElementVNode("circle",{cx:s+f.value*.3,cy:t+3+u.value*.3,r:"6.5",fill:a},null,8,zl),e.createElementVNode("circle",{cx:i+f.value*.3,cy:t+3+u.value*.3,r:"6.5",fill:a},null,8,Al),e.createElementVNode("circle",{cx:s+3,cy:t-3,r:"2.5",fill:"oklch(1 0 0 / 0.95)"},null,8,Ol),e.createElementVNode("circle",{cx:i+3,cy:t-3,r:"2.5",fill:"oklch(1 0 0 / 0.95)"},null,8,Rl)])):k.value==="angry"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:24},[e.createElementVNode("g",{stroke:a,"stroke-width":"5","stroke-linecap":"round"},[e.createElementVNode("line",{x1:s-12,y1:t-13,x2:s+8,y2:t-6},null,8,Tl),e.createElementVNode("line",{x1:i+12,y1:t-13,x2:i-8,y2:t-6},null,8,Il)]),e.createElementVNode("g",{fill:a},[e.createElementVNode("ellipse",{cx:s+f.value*.4,cy:t+2,rx:"7",ry:"8"},null,8,Ll),e.createElementVNode("ellipse",{cx:i+f.value*.4,cy:t+2,rx:"7",ry:"8"},null,8,Pl)])],64)):k.value==="excited"?(e.openBlock(),e.createElementBlock("g",{key:25,fill:a},[e.createElementVNode("circle",{cx:s+f.value*.3,cy:t+u.value*.3,r:"13"},null,8,Fl),e.createElementVNode("circle",{cx:i+f.value*.3,cy:t+u.value*.3,r:"13"},null,8,Hl),e.createElementVNode("circle",{cx:s+4,cy:t-4,r:"3",fill:"var(--robot-screen)"},null,8,Gl),e.createElementVNode("circle",{cx:i+4,cy:t-4,r:"3",fill:"var(--robot-screen)"},null,8,Zl)])):k.value==="lookup"?(e.openBlock(),e.createElementBlock("g",{key:26,fill:a},[e.createElementVNode("ellipse",{cx:s+f.value*.4,cy:t-4,rx:"7",ry:"9"},null,8,jl),e.createElementVNode("ellipse",{cx:i+f.value*.4,cy:t-4,rx:"7",ry:"9"},null,8,Ul)])):k.value==="lookdown"?(e.openBlock(),e.createElementBlock("g",{key:27,fill:a},[e.createElementVNode("ellipse",{cx:s,cy:t+5,rx:"7",ry:"9"},null,8,Ql),e.createElementVNode("ellipse",{cx:i,cy:t+5,rx:"7",ry:"9"},null,8,Yl)])):k.value==="wide"?(e.openBlock(),e.createElementBlock("g",{key:28,fill:a},[e.createElementVNode("circle",{cx:s,cy:t,r:"13",fill:"oklch(1 0 0 / 0.95)"}),e.createElementVNode("circle",{cx:i,cy:t,r:"13",fill:"oklch(1 0 0 / 0.95)"}),e.createElementVNode("circle",{cx:s+f.value*.5,cy:t+u.value*.5,r:"6",fill:a},null,8,Wl),e.createElementVNode("circle",{cx:i+f.value*.5,cy:t+u.value*.5,r:"6",fill:a},null,8,Jl)])):k.value==="half"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:29},[e.createElementVNode("g",{fill:a},[e.createElementVNode("ellipse",{cx:s,cy:t+3,rx:"7",ry:"5"},null,8,Kl),e.createElementVNode("ellipse",{cx:i,cy:t+3,rx:"7",ry:"5"},null,8,Xl)]),e.createElementVNode("g",{stroke:a,"stroke-width":"5","stroke-linecap":"round"},[e.createElementVNode("line",{x1:s-11,y1:t-4,x2:s+11,y2:t-4},null,8,vl),e.createElementVNode("line",{x1:i-11,y1:t-4,x2:i+11,y2:t-4},null,8,eo)]),n.emotion==="tired"?(e.openBlock(),e.createElementBlock("g",{key:0,stroke:a,"stroke-width":"2.5","stroke-linecap":"round",fill:"none",opacity:"0.6"},[e.createElementVNode("path",{d:`M ${s-9} ${t+12} q 9 5 18 0`},null,8,to),e.createElementVNode("path",{d:`M ${i-9} ${t+12} q 9 5 18 0`},null,8,lo)])):e.createCommentVNode("",!0)],64)):k.value==="dizzy"?(e.openBlock(),e.createElementBlock("g",{key:30,stroke:a,"stroke-width":"3",fill:"none","stroke-linecap":"round"},[e.createElementVNode("path",{d:`M ${s} ${t} m -8 0 a 8 8 0 1 1 5 7`},null,8,oo),e.createElementVNode("path",{d:`M ${i} ${t} m -8 0 a 8 8 0 1 1 5 7`},null,8,ao)])):k.value==="confused"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:31},[e.createElementVNode("circle",{cx:s,cy:t,r:"10",fill:"oklch(1 0 0 / 0.95)"}),e.createElementVNode("circle",{cx:s+f.value*.4,cy:t+u.value*.4,r:"5",fill:a},null,8,no),e.createElementVNode("line",{x1:i-9,y1:t,x2:i+9,y2:t,stroke:a,"stroke-width":"5","stroke-linecap":"round"},null,8,ro)],64)):k.value==="blank"?(e.openBlock(),e.createElementBlock("g",{key:32,fill:a,opacity:"0.55"},[e.createElementVNode("circle",{cx:s,cy:t,r:"5"}),e.createElementVNode("circle",{cx:i,cy:t,r:"5"})])):(e.openBlock(),e.createElementBlock("g",{key:33,fill:a},[e.createElementVNode("rect",{x:s-8+f.value,y:t-12+u.value,width:"16",height:"24",rx:"8"},null,8,so),e.createElementVNode("rect",{x:i-8+f.value,y:t-12+u.value,width:"16",height:"24",rx:"8"},null,8,io)])),n.speaking?(e.openBlock(),e.createElementBlock("ellipse",{key:34,cx:"120",cy:"138",rx:"13",ry:"10",fill:a,class:"origin-center animate-wave",style:{transformBox:"fill-box",transformOrigin:"center"}})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:35},[o.value.mouth==="smile"?(e.openBlock(),e.createElementBlock("path",{key:0,d:"M 104 134 q 16 16 32 0",stroke:a,"stroke-width":"5","stroke-linecap":"round",fill:"none"})):o.value.mouth==="open"?(e.openBlock(),e.createElementBlock("path",{key:1,d:"M 104 132 q 16 22 32 0 q -16 6 -32 0 Z",fill:a})):o.value.mouth==="bigopen"?(e.openBlock(),e.createElementBlock("ellipse",{key:2,cx:"120",cy:"140",rx:"11",ry:"14",fill:a})):o.value.mouth==="frown"?(e.openBlock(),e.createElementBlock("path",{key:3,d:"M 106 142 q 14 -12 28 0",stroke:a,"stroke-width":"5","stroke-linecap":"round",fill:"none"})):o.value.mouth==="dot"?(e.openBlock(),e.createElementBlock("ellipse",{key:4,cx:"120",cy:"138",rx:"7",ry:"6",fill:a,opacity:"0.85"})):o.value.mouth==="flat"?(e.openBlock(),e.createElementBlock("line",{key:5,x1:"110",y1:"138",x2:"130",y2:"138",stroke:a,"stroke-width":"5","stroke-linecap":"round"})):o.value.mouth==="o"?(e.openBlock(),e.createElementBlock("ellipse",{key:6,cx:"120",cy:"139",rx:"7",ry:"9",fill:a})):o.value.mouth==="pout"?(e.openBlock(),e.createElementBlock("ellipse",{key:7,cx:"120",cy:"140",rx:"6",ry:"5",fill:a})):o.value.mouth==="wavy"?(e.openBlock(),e.createElementBlock("path",{key:8,d:"M 106 138 q 6 -7 12 0 q 6 7 12 0",stroke:a,"stroke-width":"4","stroke-linecap":"round",fill:"none"})):o.value.mouth==="calm"?(e.openBlock(),e.createElementBlock("path",{key:9,d:"M 110 138 q 10 5 20 0",stroke:a,"stroke-width":"4","stroke-linecap":"round",fill:"none"})):o.value.mouth==="grit"?(e.openBlock(),e.createElementBlock("g",co,[e.createElementVNode("rect",{x:"106",y:"134",width:"28",height:"10",rx:"3",fill:a}),l[2]||(l[2]=e.createElementVNode("line",{x1:"115",y1:"134",x2:"115",y2:"144",stroke:"var(--robot-screen)","stroke-width":"2"},null,-1)),l[3]||(l[3]=e.createElementVNode("line",{x1:"125",y1:"134",x2:"125",y2:"144",stroke:"var(--robot-screen)","stroke-width":"2"},null,-1))])):o.value.mouth==="bigSmile"?(e.openBlock(),e.createElementBlock("path",{key:11,d:"M 100 132 q 20 22 40 0",stroke:a,"stroke-width":"6","stroke-linecap":"round",fill:"none"})):o.value.mouth==="bigFrown"?(e.openBlock(),e.createElementBlock("path",{key:12,d:"M 100 146 q 20 -20 40 0",stroke:a,"stroke-width":"6","stroke-linecap":"round",fill:"none"})):o.value.mouth==="bitterSmile"?(e.openBlock(),e.createElementBlock("path",{key:13,d:"M 106 140 q 8 -4 14 2 q 6 4 14 -4",stroke:a,"stroke-width":"5","stroke-linecap":"round",fill:"none"})):o.value.mouth==="heartMouth"?(e.openBlock(),e.createElementBlock("path",{key:14,d:"M 120 142 C 114 135, 108 132, 108 128 C 108 122, 116 122, 120 128 C 124 122, 132 122, 132 128 C 132 132, 126 135, 120 142 Z",fill:a,opacity:"0.9"})):o.value.mouth==="awkwardSmile"?(e.openBlock(),e.createElementBlock("path",{key:15,d:"M 108 140 q 6 -6 12 0 q 7 6 12 -3",stroke:a,"stroke-width":"5","stroke-linecap":"round",fill:"none"})):o.value.mouth==="poutBig"?(e.openBlock(),e.createElementBlock("g",mo,[e.createElementVNode("ellipse",{cx:"120",cy:"141",rx:"12",ry:"8",fill:a,opacity:"0.85"}),l[4]||(l[4]=e.createElementVNode("ellipse",{cx:"120",cy:"137",rx:"10",ry:"5",fill:"oklch(1 0 0 / 0.25)"},null,-1))])):(e.openBlock(),e.createElementBlock("path",{key:17,d:"M 108 136 q 12 8 24 0",stroke:a,"stroke-width":"5","stroke-linecap":"round",fill:"none"}))],64)),o.value.sweat?(e.openBlock(),e.createElementBlock("path",yo)):e.createCommentVNode("",!0),o.value.tear?(e.openBlock(),e.createElementBlock("ellipse",{key:37,cx:i+11,cy:t+14,rx:"4",ry:"6",fill:a,opacity:"0.9"},null,8,ko)):e.createCommentVNode("",!0),o.value.tear2?(e.openBlock(),e.createElementBlock("ellipse",{key:38,cx:s-11,cy:t+14,rx:"4",ry:"6",fill:a,opacity:"0.9"},null,8,ho)):e.createCommentVNode("",!0),Nn.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:39},e.renderList(Sn,(r,x)=>e.createElementVNode("path",{key:x,d:R(r.x,r.y),fill:"var(--robot-amber)",class:"animate-sparkle",style:e.normalizeStyle({animationDelay:`${r.delay}s`,transformBox:"fill-box",transformOrigin:"center"})},null,12,po)),64)):e.createCommentVNode("",!0),o.value.sym==="anger"?(e.openBlock(),e.createElementBlock("g",{key:40,stroke:o.value.symColor,"stroke-width":"3.5","stroke-linecap":"round",class:"animate-alert-flash"},[...l[5]||(l[5]=[e.createElementVNode("path",{d:"M 160 60 l 8 0 M 164 56 l 0 8"},null,-1),e.createElementVNode("path",{d:"M 174 70 l 6 4 M 180 70 l -6 4"},null,-1)])],8,fo)):o.value.sym==="question"?(e.openBlock(),e.createElementBlock("text",{key:41,x:"160",y:"74","font-size":"26",fill:o.value.symColor,"font-weight":"bold"},"?",8,go)):o.value.sym==="exclaim"?(e.openBlock(),e.createElementBlock("text",{key:42,x:"162",y:"74","font-size":"26",fill:o.value.symColor,"font-weight":"bold"},"!",8,xo)):o.value.sym==="ellipsis"?(e.openBlock(),e.createElementBlock("g",{key:43,fill:o.value.symColor},[...l[6]||(l[6]=[e.createElementVNode("circle",{cx:"156",cy:"66",r:"3",class:"animate-dot-blink",style:{"animation-delay":"0s"}},null,-1),e.createElementVNode("circle",{cx:"166",cy:"66",r:"3",class:"animate-dot-blink",style:{"animation-delay":"0.2s"}},null,-1),e.createElementVNode("circle",{cx:"176",cy:"66",r:"3",class:"animate-dot-blink",style:{"animation-delay":"0.4s"}},null,-1)])],8,_o)):o.value.sym==="bulb"?(e.openBlock(),e.createElementBlock("g",bo,[e.createElementVNode("circle",{cx:"166",cy:"58",r:"11",fill:o.value.symColor,class:"animate-antenna-pulse origin-center"},null,8,uo),l[7]||(l[7]=e.createStaticVNode('<rect x="161" y="68" width="10" height="6" rx="2" fill="var(--robot-blue-dark)" data-v-c1f1f037></rect><g stroke="var(--robot-amber)" stroke-width="2" stroke-linecap="round" data-v-c1f1f037><line x1="166" y1="40" x2="166" y2="44" data-v-c1f1f037></line><line x1="182" y1="50" x2="179" y2="52" data-v-c1f1f037></line><line x1="150" y1="50" x2="153" y2="52" data-v-c1f1f037></line></g>',2))])):o.value.sym==="check"?(e.openBlock(),e.createElementBlock("path",{key:45,d:"M 156 64 l 6 7 l 12 -15",stroke:o.value.symColor,"stroke-width":"5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Eo)):o.value.sym==="gear"?(e.openBlock(),e.createElementBlock("g",No,[e.createElementVNode("g",{fill:o.value.symColor},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList($n,r=>e.createElementVNode("rect",{key:r,x:"165",y:"46",width:"6",height:"8",rx:"1.5",transform:`rotate(${r} 168 62)`},null,8,Vo)),64)),l[8]||(l[8]=e.createElementVNode("circle",{cx:"168",cy:"62",r:"11"},null,-1))],8,Bo),l[9]||(l[9]=e.createElementVNode("circle",{cx:"168",cy:"62",r:"4.5",fill:"var(--robot-screen)"},null,-1))])):o.value.sym==="pencil"?(e.openBlock(),e.createElementBlock("g",wo,[e.createElementVNode("rect",{x:"164",y:"46",width:"8",height:"22",rx:"2",fill:o.value.symColor},null,8,Co),l[10]||(l[10]=e.createElementVNode("rect",{x:"164",y:"44",width:"8",height:"6",fill:"var(--robot-amber)"},null,-1)),l[11]||(l[11]=e.createElementVNode("path",{d:"M 164 68 l 4 8 l 4 -8 Z",fill:"var(--robot-screen)"},null,-1))])):o.value.sym==="bell"?(e.openBlock(),e.createElementBlock("g",So,[e.createElementVNode("path",{d:"M 168 46 a 11 11 0 0 1 11 11 v 6 l 3 4 h -28 l 3 -4 v -6 a 11 11 0 0 1 11 -11 Z",fill:o.value.symColor},null,8,$o),e.createElementVNode("circle",{cx:"168",cy:"73",r:"3",fill:o.value.symColor},null,8,qo)])):o.value.sym==="loader"?(e.openBlock(),e.createElementBlock("g",Mo,[e.createElementVNode("path",{d:"M 168 48 a 12 12 0 1 1 -8.5 3.5",fill:"none",stroke:o.value.symColor,"stroke-width":"4","stroke-linecap":"round"},null,8,Do)])):o.value.sym==="warning"?(e.openBlock(),e.createElementBlock("g",zo,[e.createElementVNode("path",{d:"M 168 46 l 14 26 l -28 0 Z",fill:o.value.symColor,stroke:"var(--robot-screen)","stroke-width":"1.5","stroke-linejoin":"round"},null,8,Ao),l[12]||(l[12]=e.createElementVNode("line",{x1:"168",y1:"56",x2:"168",y2:"64",stroke:"var(--robot-screen)","stroke-width":"3","stroke-linecap":"round"},null,-1)),l[13]||(l[13]=e.createElementVNode("circle",{cx:"168",cy:"69",r:"1.8",fill:"var(--robot-screen)"},null,-1))])):o.value.sym==="siren"?(e.openBlock(),e.createElementBlock("g",Oo,[e.createElementVNode("g",Ro,[e.createElementVNode("path",{d:"M 156 70 a 12 12 0 0 1 24 0 Z",fill:o.value.symColor},null,8,To),e.createElementVNode("rect",{x:"152",y:"70",width:"32",height:"5",rx:"2",fill:o.value.symColor},null,8,Io)]),e.createElementVNode("g",{stroke:o.value.symColor,"stroke-width":"2.5","stroke-linecap":"round",class:"animate-alert-flash",opacity:"0.7"},[...l[14]||(l[14]=[e.createElementVNode("line",{x1:"146",y1:"56",x2:"150",y2:"60"},null,-1),e.createElementVNode("line",{x1:"190",y1:"56",x2:"186",y2:"60"},null,-1),e.createElementVNode("line",{x1:"168",y1:"44",x2:"168",y2:"49"},null,-1)])],8,Lo)])):o.value.sym==="broken"?(e.openBlock(),e.createElementBlock("path",{key:52,d:"M 170 46 l -10 16 l 7 0 l -5 14 l 14 -20 l -8 0 l 6 -10 Z",fill:o.value.symColor,class:"animate-alert-flash",stroke:"var(--robot-screen)","stroke-width":"1","stroke-linejoin":"round"},null,8,Po)):o.value.sym==="scan"?(e.openBlock(),e.createElementBlock("g",Fo,[e.createElementVNode("circle",{cx:"166",cy:"60",r:"9",fill:"none",stroke:o.value.symColor,"stroke-width":"3"},null,8,Ho),e.createElementVNode("line",{x1:"173",y1:"67",x2:"180",y2:"74",stroke:o.value.symColor,"stroke-width":"3.5","stroke-linecap":"round"},null,8,Go)])):o.value.sym==="lotus"?(e.openBlock(),e.createElementBlock("g",Zo,[e.createElementVNode("ellipse",{cx:"120",cy:"34",rx:"40",ry:"9",fill:"none",stroke:o.value.symColor,"stroke-width":"3",opacity:"0.8",class:"animate-antenna-pulse origin-center",style:{transformOrigin:"120px 34px"}},null,8,jo),e.createElementVNode("circle",{cx:"92",cy:"34",r:"2",fill:o.value.symColor},null,8,Uo),e.createElementVNode("circle",{cx:"148",cy:"34",r:"2",fill:o.value.symColor},null,8,Qo)])):o.value.sym==="heart"?(e.openBlock(),e.createElementBlock("path",{key:55,d:"M 170 56 c -4 -6 -13 -2 -8 5 c 2 3 8 7 8 7 c 0 0 6 -4 8 -7 c 5 -7 -4 -11 -8 -5 Z",fill:o.value.symColor,class:"animate-antenna-pulse origin-center",style:{transformOrigin:"170px 60px"}},null,8,Yo)):o.value.sym==="soundwave"?(e.openBlock(),e.createElementBlock("g",{key:56,stroke:o.value.symColor,"stroke-width":"3","stroke-linecap":"round",fill:"none"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,.5,1],(r,x)=>e.createElementVNode("path",{key:x,d:"M 188 52 q 9 10 0 20",class:"animate-sound-ripple",style:e.normalizeStyle({transformOrigin:"188px 62px",animationDelay:`${r}s`})},null,4)),64))],8,Wo)):o.value.sym==="pin"?(e.openBlock(),e.createElementBlock("g",Jo,[e.createElementVNode("path",{d:"M 168 44 a 11 11 0 0 1 11 11 c 0 8 -11 19 -11 19 c 0 0 -11 -11 -11 -19 a 11 11 0 0 1 11 -11 Z",fill:o.value.symColor},null,8,Ko),l[15]||(l[15]=e.createElementVNode("circle",{cx:"168",cy:"55",r:"4",fill:"var(--robot-screen)"},null,-1)),e.createElementVNode("ellipse",{cx:"168",cy:"77",rx:"8",ry:"2.5",fill:o.value.symColor,opacity:"0.3"},null,8,Xo)])):o.value.sym==="target"?(e.openBlock(),e.createElementBlock("g",{key:58,stroke:o.value.symColor,"stroke-width":"2.5",fill:"none"},[l[16]||(l[16]=e.createElementVNode("circle",{cx:"168",cy:"60",r:"13",class:"animate-target-pulse",style:{transformOrigin:"168px 60px"}},null,-1)),l[17]||(l[17]=e.createElementVNode("circle",{cx:"168",cy:"60",r:"6"},null,-1)),e.createElementVNode("circle",{cx:"168",cy:"60",r:"1.8",fill:o.value.symColor,stroke:"none"},null,8,ea),l[18]||(l[18]=e.createStaticVNode('<g stroke-linecap="round" data-v-c1f1f037><line x1="168" y1="42" x2="168" y2="49" data-v-c1f1f037></line><line x1="168" y1="71" x2="168" y2="78" data-v-c1f1f037></line><line x1="150" y1="60" x2="157" y2="60" data-v-c1f1f037></line><line x1="179" y1="60" x2="186" y2="60" data-v-c1f1f037></line></g>',1))],8,vo)):o.value.sym==="book"?(e.openBlock(),e.createElementBlock("g",ta,[l[19]||(l[19]=e.createElementVNode("path",{d:"M 168 50 c -6 -4 -14 -4 -18 0 v 18 c 4 -4 12 -4 18 0 Z",fill:"oklch(0.96 0.02 95)",stroke:"var(--robot-amber)","stroke-width":"1.5"},null,-1)),l[20]||(l[20]=e.createElementVNode("path",{d:"M 168 50 c 6 -4 14 -4 18 0 v 18 c -4 -4 -12 -4 -18 0 Z",fill:"oklch(0.96 0.02 95)",stroke:"var(--robot-amber)","stroke-width":"1.5"},null,-1)),e.createElementVNode("line",{x1:"168",y1:"50",x2:"168",y2:"68",stroke:o.value.symColor,"stroke-width":"2"},null,8,la),l[21]||(l[21]=e.createElementVNode("line",{x1:"154",y1:"57",x2:"163",y2:"56",stroke:"var(--robot-amber)","stroke-width":"1.2","stroke-linecap":"round"},null,-1)),l[22]||(l[22]=e.createElementVNode("line",{x1:"154",y1:"62",x2:"163",y2:"61",stroke:"var(--robot-amber)","stroke-width":"1.2","stroke-linecap":"round"},null,-1)),l[23]||(l[23]=e.createElementVNode("line",{x1:"173",y1:"56",x2:"182",y2:"57",stroke:"var(--robot-amber)","stroke-width":"1.2","stroke-linecap":"round"},null,-1)),l[24]||(l[24]=e.createElementVNode("line",{x1:"173",y1:"61",x2:"182",y2:"62",stroke:"var(--robot-amber)","stroke-width":"1.2","stroke-linecap":"round"},null,-1))])):o.value.sym==="plane"?(e.openBlock(),e.createElementBlock("g",oa,[e.createElementVNode("path",{d:"M 150 46 h 36 a 6 6 0 0 1 6 6 v 14 a 6 6 0 0 1 -6 6 h -20 l -8 8 v -8 h -2 a 6 6 0 0 1 -6 -6 v -14 a 6 6 0 0 1 6 -6 Z",fill:o.value.symColor},null,8,aa),l[25]||(l[25]=e.createElementVNode("circle",{cx:"160",cy:"59",r:"2.6",fill:"oklch(1 0 0)",class:"animate-dot-blink",style:{animationDelay:"0s"}},null,-1)),l[26]||(l[26]=e.createElementVNode("circle",{cx:"168",cy:"59",r:"2.6",fill:"oklch(1 0 0)",class:"animate-dot-blink",style:{animationDelay:"0.2s"}},null,-1)),l[27]||(l[27]=e.createElementVNode("circle",{cx:"176",cy:"59",r:"2.6",fill:"oklch(1 0 0)",class:"animate-dot-blink",style:{animationDelay:"0.4s"}},null,-1))])):o.value.sym==="msgOk"?(e.openBlock(),e.createElementBlock("g",na,[e.createElementVNode("path",{d:"M 150 46 h 36 a 6 6 0 0 1 6 6 v 14 a 6 6 0 0 1 -6 6 h -20 l -8 8 v -8 h -2 a 6 6 0 0 1 -6 -6 v -14 a 6 6 0 0 1 6 -6 Z",fill:o.value.symColor},null,8,ra),l[28]||(l[28]=e.createElementVNode("path",{d:"M 161 59 l 4 5 l 9 -10",stroke:"oklch(1 0 0)","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,-1))])):o.value.sym==="msgFail"?(e.openBlock(),e.createElementBlock("g",sa,[e.createElementVNode("path",{d:"M 150 46 h 36 a 6 6 0 0 1 6 6 v 14 a 6 6 0 0 1 -6 6 h -20 l -8 8 v -8 h -2 a 6 6 0 0 1 -6 -6 v -14 a 6 6 0 0 1 6 -6 Z",fill:o.value.symColor},null,8,ia),l[29]||(l[29]=e.createElementVNode("line",{x1:"168",y1:"52",x2:"168",y2:"62",stroke:"oklch(1 0 0)","stroke-width":"3","stroke-linecap":"round"},null,-1)),l[30]||(l[30]=e.createElementVNode("circle",{cx:"168",cy:"68",r:"2",fill:"oklch(1 0 0)"},null,-1))])):o.value.sym==="msgIn"?(e.openBlock(),e.createElementBlock("g",ca,[e.createElementVNode("path",{d:"M 150 46 h 36 a 6 6 0 0 1 6 6 v 14 a 6 6 0 0 1 -6 6 h -20 l -8 8 v -8 h -2 a 6 6 0 0 1 -6 -6 v -14 a 6 6 0 0 1 6 -6 Z",fill:o.value.symColor},null,8,ma),l[31]||(l[31]=e.createElementVNode("path",{d:"M 168 53 v 10 m 0 0 l -4 -4 m 4 4 l 4 -4",stroke:"oklch(1 0 0)","stroke-width":"2.6","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"animate-locate-bob",style:{transformOrigin:"168px 58px"}},null,-1))])):o.value.sym==="lightning"?(e.openBlock(),e.createElementBlock("g",da,[e.createElementVNode("path",{d:"M 172 44 l -9 14 h 6 l -5 13 l 14 -18 h -7 l 6 -9 Z",fill:o.value.symColor,stroke:"oklch(1 0 0 / 0.3)","stroke-width":"0.8","stroke-linejoin":"round"},null,8,ya)])):o.value.sym==="sparkle2"?(e.openBlock(),e.createElementBlock("g",ka,[e.createElementVNode("path",{d:"M 168 46 l 2.5 8 l 8 0 l -6.5 5 l 2.5 8 l -6.5 -5 l -6.5 5 l 2.5 -8 l -6.5 -5 l 8 0 Z",fill:o.value.symColor},null,8,ha),e.createElementVNode("circle",{cx:"160",cy:"75",r:"2.5",fill:o.value.symColor,opacity:"0.7",class:"animate-dot-blink",style:{animationDelay:"0.3s"}},null,8,pa),e.createElementVNode("circle",{cx:"176",cy:"77",r:"1.8",fill:o.value.symColor,opacity:"0.6",class:"animate-dot-blink",style:{animationDelay:"0.6s"}},null,8,fa)])):o.value.sym==="zzz"?(e.openBlock(),e.createElementBlock("g",ga,[e.createElementVNode("text",{x:"158",y:"82","font-size":"8","font-weight":"700","font-family":"monospace",fill:o.value.symColor,class:"animate-dot-blink",style:{animationDelay:"0s"}},"Z",8,xa),e.createElementVNode("text",{x:"165",y:"73","font-size":"11","font-weight":"700","font-family":"monospace",fill:o.value.symColor,class:"animate-dot-blink",style:{animationDelay:"0.4s"}},"Z",8,_a),e.createElementVNode("text",{x:"174",y:"62","font-size":"14","font-weight":"700","font-family":"monospace",fill:o.value.symColor,class:"animate-dot-blink",style:{animationDelay:"0.8s"}},"Z",8,ba)])):o.value.sym==="shield"?(e.openBlock(),e.createElementBlock("g",ua,[e.createElementVNode("path",{d:"M 156 46 C 156 43, 158 42, 162 42 L 174 42 C 178 42, 180 43, 180 46 L 180 62 C 180 70, 168 78, 168 78 C 168 78, 156 70, 156 62 Z",fill:o.value.symColor,opacity:"0.92"},null,8,Ea),l[32]||(l[32]=e.createElementVNode("path",{d:"M 158 47 C 158 45, 160 44, 163 44 L 173 44 L 173 60 C 173 65, 168 70, 168 70 C 162 66, 158 61, 158 57 Z",fill:"oklch(1 0 0 / 0.22)"},null,-1)),l[33]||(l[33]=e.createElementVNode("line",{x1:"168",y1:"44",x2:"168",y2:"76",stroke:"oklch(1 0 0 / 0.35)","stroke-width":"1.5","stroke-linecap":"round"},null,-1)),l[34]||(l[34]=e.createElementVNode("line",{x1:"158",y1:"58",x2:"178",y2:"58",stroke:"oklch(1 0 0 / 0.35)","stroke-width":"1.5","stroke-linecap":"round"},null,-1))])):o.value.sym==="miniBasketball"?(e.openBlock(),e.createElementBlock("g",Na,[...l[35]||(l[35]=[e.createStaticVNode('<circle cx="168" cy="62" r="14" fill="oklch(0.65 0.16 40)" data-v-c1f1f037></circle><path d="M 168 48 A 14 14 0 0 1 182 62 A 14 14 0 0 1 168 76 Q 177 70 177 62 Q 177 54 168 48 Z" fill="oklch(0.52 0.14 36)" data-v-c1f1f037></path><ellipse cx="162" cy="55" rx="3.5" ry="2.5" fill="oklch(0.84 0.10 55)" opacity="0.55" transform="rotate(-15,162,55)" data-v-c1f1f037></ellipse><line x1="154" y1="62" x2="182" y2="62" stroke="oklch(0.25 0.05 30)" stroke-width="1.6" stroke-linecap="round" data-v-c1f1f037></line><path d="M 161 48 Q 155 62 161 76" stroke="oklch(0.25 0.05 30)" stroke-width="1.6" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 175 48 Q 181 62 175 76" stroke="oklch(0.25 0.05 30)" stroke-width="1.6" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 154 56 Q 168 50 182 56" stroke="oklch(0.25 0.05 30)" stroke-width="1.6" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 154 68 Q 168 74 182 68" stroke="oklch(0.25 0.05 30)" stroke-width="1.6" fill="none" stroke-linecap="round" data-v-c1f1f037></path>',8)])])):o.value.sym==="lowBattery"?(e.openBlock(),e.createElementBlock("g",Ba,[e.createElementVNode("rect",{x:"152",y:"50",width:"28",height:"16",rx:"3",fill:"none",stroke:o.value.symColor,"stroke-width":"2.5"},null,8,Va),e.createElementVNode("rect",{x:"180",y:"54",width:"4",height:"8",rx:"1.5",fill:o.value.symColor,opacity:"0.7"},null,8,wa),e.createElementVNode("rect",{x:"154.5",y:"52.5",width:"5",height:"11",rx:"1.5",fill:o.value.symColor},null,8,Ca),l[36]||(l[36]=e.createElementVNode("text",{x:"161",y:"64","font-size":"10","font-weight":"700","font-family":"monospace",fill:"oklch(1 0 0 / 0.9)",class:"animate-dot-blink",style:{animationDelay:"0.2s"}},"!",-1))])):e.createCommentVNode("",!0),w.value==="heart"?(e.openBlock(),e.createElementBlock("path",{key:70,d:"M 120 36 c -9 -13 -28 -4 -17 10 c 4 6 17 15 17 15 c 0 0 13 -9 17 -15 c 11 -14 -8 -23 -17 -10 Z",fill:b,class:"animate-heart-beat",style:{transformBox:"fill-box",transformOrigin:"center"}})):e.createCommentVNode("",!0),w.value==="kiss"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:71},e.renderList([0,.7,1.4],(r,x)=>e.createElementVNode("path",{key:x,d:"M 196 96 c -4 -6 -13 -2 -8 5 c 2 3 8 7 8 7 c 0 0 6 -4 8 -7 c 5 -7 -4 -11 -8 -5 Z",fill:b,class:"animate-heart-fly",style:e.normalizeStyle({animationDelay:`${r}s`})},null,4)),64)):e.createCommentVNode("",!0),n.action==="ironMountain"?(e.openBlock(),e.createElementBlock("g",Sa,[...l[37]||(l[37]=[e.createStaticVNode('<rect x="56" y="188" width="128" height="14" rx="7" fill="oklch(0.32 0.10 248)" data-v-c1f1f037></rect><rect x="60" y="200" width="50" height="26" rx="8" fill="oklch(0.32 0.10 248)" data-v-c1f1f037></rect><rect x="130" y="200" width="50" height="26" rx="8" fill="oklch(0.32 0.10 248)" data-v-c1f1f037></rect><line x1="120" y1="200" x2="120" y2="226" stroke="oklch(0.42 0.08 248)" stroke-width="2.5" stroke-linecap="round" data-v-c1f1f037></line><path d="M 86 48 L 86 188" stroke="oklch(0.32 0.10 248)" stroke-width="11" stroke-linecap="round" data-v-c1f1f037></path><path d="M 154 48 L 154 188" stroke="oklch(0.32 0.10 248)" stroke-width="11" stroke-linecap="round" data-v-c1f1f037></path><rect x="79" y="43" width="14" height="11" rx="3" fill="oklch(0.72 0.18 80)" stroke="oklch(0.55 0.12 72)" stroke-width="1.5" data-v-c1f1f037></rect><line x1="86" y1="43" x2="86" y2="54" stroke="oklch(0.48 0.10 72)" stroke-width="2" stroke-linecap="round" data-v-c1f1f037></line><rect x="147" y="43" width="14" height="11" rx="3" fill="oklch(0.72 0.18 80)" stroke="oklch(0.55 0.12 72)" stroke-width="1.5" data-v-c1f1f037></rect><line x1="154" y1="43" x2="154" y2="54" stroke="oklch(0.48 0.10 72)" stroke-width="2" stroke-linecap="round" data-v-c1f1f037></line><rect x="106" y="136" width="28" height="24" rx="5" fill="oklch(0.36 0.10 248)" stroke="oklch(0.45 0.08 248)" stroke-width="2" data-v-c1f1f037></rect><line x1="106" y1="148" x2="134" y2="148" stroke="oklch(0.45 0.08 248)" stroke-width="1.8" stroke-linecap="round" data-v-c1f1f037></line><rect x="115" y="144" width="10" height="8" rx="2" fill="oklch(0.72 0.18 80)" data-v-c1f1f037></rect>',13)])])):e.createCommentVNode("",!0),n.action==="playBasketball"?(e.openBlock(),e.createElementBlock("g",$a,[...l[38]||(l[38]=[e.createStaticVNode('<circle cx="120" cy="148" r="22" fill="oklch(0.65 0.16 40)" data-v-c1f1f037></circle><path d="M 120 126 A 22 22 0 0 1 142 148 A 22 22 0 0 1 120 170 Q 134 162 134 148 Q 134 134 120 126 Z" fill="oklch(0.52 0.14 36)" data-v-c1f1f037></path><ellipse cx="112" cy="136" rx="6" ry="4.5" fill="oklch(0.85 0.10 55)" opacity="0.55" transform="rotate(-20,112,136)" data-v-c1f1f037></ellipse><line x1="98" y1="148" x2="142" y2="148" stroke="oklch(0.24 0.04 28)" stroke-width="2.2" stroke-linecap="round" data-v-c1f1f037></line><path d="M 109 126 Q 101 148 109 170" stroke="oklch(0.24 0.04 28)" stroke-width="2.2" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 131 126 Q 139 148 131 170" stroke="oklch(0.24 0.04 28)" stroke-width="2.2" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 98 140 Q 120 131 142 140" stroke="oklch(0.24 0.04 28)" stroke-width="2.2" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 98 156 Q 120 165 142 156" stroke="oklch(0.24 0.04 28)" stroke-width="2.2" fill="none" stroke-linecap="round" data-v-c1f1f037></path>',8)])])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("g",qa,[l[39]||(l[39]=e.createElementVNode("line",{x1:"230",y1:"72",x2:"230",y2:"180",stroke:"var(--robot-blue-dark)","stroke-width":"5","stroke-linecap":"round"},null,-1)),e.createElementVNode("circle",{cx:"230",cy:"128",r:"7",fill:B.value,stroke:"oklch(1 0 0 / 0.35)","stroke-width":"1.5"},null,8,Ma),l[40]||(l[40]=e.createElementVNode("rect",{x:"211",y:"76",width:"38",height:"78",rx:"14",fill:"oklch(0.18 0.04 250)",stroke:"oklch(1 0 0 / 0.42)","stroke-width":"2"},null,-1)),l[41]||(l[41]=e.createElementVNode("rect",{x:"216",y:"82",width:"28",height:"66",rx:"10",fill:"oklch(0.08 0.03 250 / 0.82)"},null,-1)),e.createElementVNode("circle",{cx:"230",cy:"95",r:"8.5",fill:"oklch(0.6 0.23 22)",opacity:S.value==="red"?1:.22,class:e.normalizeClass(S.value==="red"?"animate-traffic-light-active":"")},null,10,Da),e.createElementVNode("circle",{cx:"230",cy:"115",r:"8.5",fill:"oklch(0.84 0.16 95)",opacity:S.value==="yellow"?1:.22,class:e.normalizeClass(S.value==="yellow"?"animate-traffic-light-active":"")},null,10,za),e.createElementVNode("circle",{cx:"230",cy:"135",r:"8.5",fill:"oklch(0.68 0.16 150)",opacity:S.value==="green"?1:.22,class:e.normalizeClass(S.value==="green"?"animate-traffic-light-active":"")},null,10,Aa)])):e.createCommentVNode("",!0),xn.value?(e.openBlock(),e.createElementBlock("g",Oa,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_n,(r,x)=>e.createElementVNode("text",{key:x,x:r.x,y:r.y,"font-size":"20","font-weight":"800",fill:"oklch(0.82 0.16 72)",class:"animate-music-note",style:e.normalizeStyle({animationDelay:`${r.delay}s`,transformOrigin:`${r.x}px ${r.y}px`})},e.toDisplayString(r.note),13,Ra)),64))])):e.createCommentVNode("",!0),w.value==="pray"?(e.openBlock(),e.createElementBlock("g",Ta,[...l[42]||(l[42]=[e.createElementVNode("path",{d:"M 120 150 l -10 30 q 10 6 20 0 Z",fill:"oklch(1 0 0 / 0.92)",stroke:"var(--robot-blue-dark)","stroke-width":"1.5"},null,-1),e.createElementVNode("line",{x1:"120",y1:"152",x2:"120",y2:"178",stroke:"var(--robot-blue-dark)","stroke-width":"1.5"},null,-1)])])):e.createCommentVNode("",!0),C.value==="glow"?(e.openBlock(),e.createElementBlock("ellipse",{key:77,cx:"120",cy:"115",rx:"82",ry:"78",fill:$.value,opacity:"0",class:"animate-body-glow"},null,8,Ia)):e.createCommentVNode("",!0),C.value==="heart-particles"?(e.openBlock(),e.createElementBlock("g",La,[l[43]||(l[43]=e.createElementVNode("path",{d:`M 120 192 C 100 180, 98 162, 110 158 C 116 155, 120 159, 120 162
2
- C 120 159, 124 155, 130 158 C 142 162, 140 180, 120 192 Z`,fill:"oklch(0.72 0.22 0)",class:"animate-body-glow",style:{transformBox:"fill-box",transformOrigin:"120px 175px"}},null,-1)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(un,(r,x)=>e.createElementVNode("g",{key:x},[e.createElementVNode("path",{d:`M ${r.x} ${r.y+r.size*.9}
3
- C ${r.x-r.size*.85} ${r.y+r.size*.4},
4
- ${r.x-r.size*.85} ${r.y-r.size*.5},
5
- ${r.x} ${r.y-r.size*.15}
6
- C ${r.x+r.size*.85} ${r.y-r.size*.5},
7
- ${r.x+r.size*.85} ${r.y+r.size*.4},
8
- ${r.x} ${r.y+r.size*.9} Z`,fill:r.color,class:"animate-heart-rise",style:e.normalizeStyle({"--hx":r.hx,animationDelay:`${r.delay}s`,transformOrigin:`${r.x}px ${r.y}px`})},null,12,Pa)])),64))])):e.createCommentVNode("",!0),C.value==="flag"?(e.openBlock(),e.createElementBlock("g",Fa,[l[44]||(l[44]=e.createElementVNode("line",{x1:"120",y1:"155",x2:"120",y2:"225",stroke:"var(--robot-blue-dark)","stroke-width":"4","stroke-linecap":"round"},null,-1)),e.createElementVNode("rect",{x:"120",y:"155",width:"32",height:"20",rx:"3",fill:$.value,class:"animate-flag-wave"},null,8,Ha),l[45]||(l[45]=e.createElementVNode("rect",{x:"120",y:"155",width:"32",height:"8",rx:"3",fill:"oklch(1 0 0 / 0.22)",class:"animate-flag-wave"},null,-1))])):e.createCommentVNode("",!0),C.value==="scan-ring"?(e.openBlock(),e.createElementBlock("g",Ga,[e.createElementVNode("circle",{cx:"120",cy:"115",r:"88",fill:"none",stroke:$.value,"stroke-width":"2.5","stroke-dasharray":"18 12",class:"animate-self-spin",style:{transformBox:"fill-box",transformOrigin:"center"}},null,8,Za),e.createElementVNode("circle",{cx:"120",cy:"115",r:"70",fill:"none",stroke:$.value,"stroke-width":"1.5","stroke-dasharray":"8 18",opacity:"0.6",class:"animate-reset-spin",style:{transformBox:"fill-box",transformOrigin:"center"}},null,8,ja)])):e.createCommentVNode("",!0),C.value==="confetti"?(e.openBlock(),e.createElementBlock("g",Ua,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(bn,(r,x)=>e.createElementVNode("rect",{key:x,x:r.x-r.size/2,y:r.y-r.size/2,width:r.size,height:r.size,rx:r.size*.3,fill:r.color,class:"animate-confetti",style:e.normalizeStyle({"--cx":`${r.cx}px`,"--cy":`${r.cy}px`,"--cr":r.cr,animationDelay:`${x*.18}s`,transformOrigin:`${r.x}px ${r.y}px`})},null,12,Qa)),64))])):e.createCommentVNode("",!0),C.value==="particles"?(e.openBlock(),e.createElementBlock("g",Ya,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(En,(r,x)=>e.createElementVNode("circle",{key:x,cx:r.x,cy:r.y,r:"3",fill:r.color,class:"animate-sparkle",style:e.normalizeStyle({transformBox:"fill-box",transformOrigin:"center",animationDelay:`${r.delay}s`})},null,12,Wa)),64))])):e.createCommentVNode("",!0),e.createElementVNode("g",{style:e.normalizeStyle(Vn.value),class:e.normalizeClass(V.value.la)},[e.createElementVNode("rect",{x:"16",y:"121",width:"30",height:"14",rx:"7",fill:B.value},null,8,Ja),e.createElementVNode("circle",{cx:"12",cy:"128",r:"9",fill:B.value},null,8,Ka),w.value==="sparkle"?(e.openBlock(),e.createElementBlock("path",{key:0,d:R(12,128),fill:"var(--robot-amber)",class:"animate-sparkle origin-center",style:{transformBox:"fill-box",transformOrigin:"center"}},null,8,Xa)):e.createCommentVNode("",!0)],6),e.createElementVNode("g",{style:e.normalizeStyle(wn.value),class:e.normalizeClass(V.value.ra)},[e.createElementVNode("rect",{x:"194",y:"121",width:"30",height:"14",rx:"7",fill:B.value},null,8,va),e.createElementVNode("circle",{cx:"228",cy:"128",r:"9",fill:B.value},null,8,en),w.value==="thumbsUp"?(e.openBlock(),e.createElementBlock("rect",{key:0,x:"225",y:"113",width:"6",height:"11",rx:"3",fill:B.value},null,8,tn)):e.createCommentVNode("",!0),w.value==="sparkle"?(e.openBlock(),e.createElementBlock("path",{key:1,d:R(228,128),fill:"var(--robot-amber)",class:"animate-sparkle origin-center",style:{transformBox:"fill-box",transformOrigin:"center",animationDelay:"0.3s"}},null,8,ln)):e.createCommentVNode("",!0)],6)])),n.emotion==="sleepy"||n.emotion==="yawn"?(e.openBlock(),e.createElementBlock("div",on,[...l[49]||(l[49]=[e.createElementVNode("span",{class:"animate-float-up inline-block text-lg font-bold"},"z",-1),e.createElementVNode("span",{class:"animate-float-up inline-block text-2xl font-bold",style:{animationDelay:"0.8s"}}," Z ",-1)])])):e.createCommentVNode("",!0)],2)],4)],512))}}),[["__scopeId","data-v-c1f1f037"]]),sn=_(e.defineComponent({__name:"QuarkRobotHalo",props:{width:{default:220}},setup(n){return(c,d)=>(e.openBlock(),e.createElementBlock("div",{class:"halo",style:e.normalizeStyle({width:n.width+"px",height:n.width*.27+"px"}),"aria-hidden":"true"},[...d[0]||(d[0]=[e.createElementVNode("span",{class:"halo-ring r1"},null,-1),e.createElementVNode("span",{class:"halo-ring r2"},null,-1),e.createElementVNode("span",{class:"halo-core"},null,-1)])],4))}}),[["__scopeId","data-v-6fd8ca14"]]),cn={class:"qbs-top-header"},mn=_(e.defineComponent({__name:"QuarkTopHeader",props:{title:{default:"智能运维监控大屏"},time:{default:"--:--"},date:{default:"--"},armed:{type:Boolean,default:!1}},emits:["titleClick","clockClick"],setup(n){return(c,d)=>(e.openBlock(),e.createElementBlock("header",cn,[e.createElementVNode("div",{class:"qbs-top-header__brand",onClick:d[0]||(d[0]=m=>c.$emit("titleClick"))},[d[2]||(d[2]=e.createElementVNode("span",null,null,-1)),e.createElementVNode("h1",null,e.toDisplayString(n.title),1)]),e.createElementVNode("div",{class:e.normalizeClass(["qbs-top-header__deco",{"is-armed":n.armed}])},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,m=>e.createElementVNode("i",{key:m,style:e.normalizeStyle({animationDelay:`${m*.12}s`})},null,4)),64))],2),e.createElementVNode("div",{class:"qbs-top-header__clock",onClick:d[1]||(d[1]=m=>c.$emit("clockClick"))},[e.createElementVNode("b",null,e.toDisplayString(n.time),1),e.createElementVNode("small",null,e.toDisplayString(n.date),1)])]))}}),[["__scopeId","data-v-6df12854"]]),dn={class:"qbs-duty-compact"},yn={key:0},kn=_(e.defineComponent({__name:"QuarkDutyCompact",props:{name:{default:""},phone:{default:""},tag:{default:""}},setup(n){return(c,d)=>(e.openBlock(),e.createElementBlock("div",dn,[e.createElementVNode("div",null,e.toDisplayString(n.name.charAt(0)||"-"),1),e.createElementVNode("section",null,[e.createElementVNode("strong",null,e.toDisplayString(n.name||"暂未排班"),1),e.createElementVNode("span",null,e.toDisplayString(n.phone||"—"),1)]),n.tag?(e.openBlock(),e.createElementBlock("em",yn,e.toDisplayString(n.tag),1)):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-cd7cff86"]]),L={screen_header:{dateText:"2026-07-27",timeText:"14:30",weekdayText:"星期一"},robot:{status:"online",mode:"guard",emotion:"neutral",generatedAt:"2026-07-27 14:30:00",summary:{dutyGroups:3,todayAlerts:12,buildingCount:4,endpointNodes:86},alerts:{todayTotal:12,todayPending:3,criticalCount:1,warningCount:5},builds:{buildingCount:4,todayBuilds:28,successRate:98.6}},duty_today:{date:"2026-07-27",totalGroups:3,totalUsers:8,groups:[{groupId:1,groupName:"平台组",users:[{userId:101,nickName:"张工",username:"zhang"},{userId:102,nickName:"李工",username:"li"}]},{groupId:2,groupName:"网络组",users:[{userId:103,nickName:"王工",username:"wang"}]}]},alert_overview:{stats:{todayTotal:12,todayPending:3,todayResolved:8,overdueTotal:1}},alert_latest:{total:3,stats:{todayTotal:12,todayPending:3,overdueTotal:1,criticalCount:1,warningCount:5,infoCount:6},items:[{id:1,alertId:"AL-20260727-001",title:"边缘节点延迟升高",severity:"WARN",severityText:"警告",status:"pending",statusText:"待处理",source:"edge-01",firedAt:"14:20",groupNames:["网络组"]},{id:2,alertId:"AL-20260727-002",title:"构建队列等待时间过长",severity:"CRITICAL",severityText:"严重",status:"processing",statusText:"处理中",source:"CI/CD",firedAt:"14:08",groupNames:["平台组"]},{id:3,alertId:"AL-20260727-003",title:"磁盘使用率接近阈值",severity:"INFO",severityText:"提示",status:"pending",statusText:"待处理",source:"node-03",firedAt:"13:56",groupNames:["运维组"]}]},build_projects:{summary:{buildingCount:4,todayBuilds:28,successRate:98.6},items:[{pipelineId:1,buildId:101,jobName:"eagle-eye-web",statusText:"构建中",currentStage:"测试",buildUser:"system",progress:68},{pipelineId:2,buildId:102,jobName:"quark-api",statusText:"构建中",currentStage:"镜像打包",buildUser:"李工",progress:42}]},build_distribution:{total:100,items:[{name:"应用构建",count:42},{name:"镜像构建",count:27},{name:"基础设施",count:18},{name:"其他任务",count:13}]},endpoint_distribution:{summary:{total:3},items:[{id:1,nodeName:"edge-01",nodeIp:"10.10.2.11",nodeStatus:!0,heartbeatResults:[{targetName:"API Gateway",targetIp:"10.10.1.10",latencyMs:12.4}]},{id:2,nodeName:"edge-02",nodeIp:"10.10.2.12",nodeStatus:!0,heartbeatResults:[{targetName:"API Gateway",targetIp:"10.10.1.10",latencyMs:18.7}]},{id:3,nodeName:"edge-03",nodeIp:"10.10.2.13",nodeStatus:!1,heartbeatResults:[]}]}};function hn(n){return JSON.parse(JSON.stringify(L[n]))}h.BigScreenAlertRow=$e,h.BigScreenBuildDistribution=Pe,h.BigScreenBuildProjects=je,h.BigScreenDutyContent=xe,h.BigScreenEndpointDistribution=Xe,h.BigScreenExternalEmbed=lt,h.BigScreenHeader=Te,h.BigScreenMetricCard=De,h.BigScreenPanel=I,h.BigScreenRobotSummary=We,h.QuarkDutyCompact=kn,h.QuarkRobot=rn,h.QuarkRobotHalo=sn,h.QuarkTopHeader=mn,h.bigScreenPreviewFixtures=L,h.getBigScreenPreviewData=hn,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(Je,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],y):(Je=typeof globalThis<"u"?globalThis:Je||self,y(Je.QuarkBigScreenUi={},Je.Vue))})(this,(function(Je,y){"use strict";const QO={key:0,class:"qbs-panel__corner qbs-panel__corner--tl"},JO={key:1,class:"qbs-panel__corner qbs-panel__corner--tr"},eV={key:2,class:"qbs-panel__corner qbs-panel__corner--bl"},tV={key:3,class:"qbs-panel__corner qbs-panel__corner--br"},rV={key:0,class:"qbs-panel__bar"},aV={key:1,class:"qbs-panel__title"},nV={key:2,class:"qbs-panel__header-prefix"},iV={key:3,class:"qbs-panel__header-center"},oV={key:4,class:"qbs-panel__header-extra"},sV={key:0,class:"qbs-panel__live"},lV={class:"qbs-panel__body"},uV=y.defineComponent({__name:"BigScreenPanel",props:{title:{default:""},accent:{default:"oklch(.82 .13 200)"},liveLabel:{default:""},showBar:{type:Boolean,default:!0},corners:{default:"tl-br"},padding:{default:"md"},bodyLayout:{default:"default"},titleSize:{default:"md"},overflowHidden:{type:Boolean,default:!0}},setup(r){const e=r;function t(a){return e.corners==="all"?!0:e.corners==="none"?!1:a==="tl"||a==="br"}return(a,n)=>(y.openBlock(),y.createElementBlock("section",{class:y.normalizeClass(["qbs-panel",[`qbs-panel--padding-${r.padding}`,`qbs-panel--layout-${r.bodyLayout}`,{"qbs-panel--overflow-hidden":r.overflowHidden}]]),style:y.normalizeStyle({"--qbs-accent":r.accent})},[t("tl")?(y.openBlock(),y.createElementBlock("span",QO)):y.createCommentVNode("",!0),t("tr")?(y.openBlock(),y.createElementBlock("span",JO)):y.createCommentVNode("",!0),t("bl")?(y.openBlock(),y.createElementBlock("span",eV)):y.createCommentVNode("",!0),t("br")?(y.openBlock(),y.createElementBlock("span",tV)):y.createCommentVNode("",!0),r.title||r.liveLabel||a.$slots["header-center"]||a.$slots["header-extra"]?(y.openBlock(),y.createElementBlock("header",{key:4,class:y.normalizeClass(["qbs-panel__header",`qbs-panel__header--${r.titleSize}`])},[r.showBar?(y.openBlock(),y.createElementBlock("span",rV)):y.createCommentVNode("",!0),r.title?(y.openBlock(),y.createElementBlock("span",aV,y.toDisplayString(r.title),1)):y.createCommentVNode("",!0),a.$slots["header-prefix"]?(y.openBlock(),y.createElementBlock("span",nV,[y.renderSlot(a.$slots,"header-prefix",{},void 0,!0)])):y.createCommentVNode("",!0),a.$slots["header-center"]?(y.openBlock(),y.createElementBlock("span",iV,[y.renderSlot(a.$slots,"header-center",{},void 0,!0)])):y.createCommentVNode("",!0),a.$slots["header-extra"]||r.liveLabel?(y.openBlock(),y.createElementBlock("span",oV,[y.renderSlot(a.$slots,"header-extra",{},()=>[r.liveLabel?(y.openBlock(),y.createElementBlock("span",sV,[n[0]||(n[0]=y.createElementVNode("span",{class:"qbs-panel__live-dot"},null,-1)),y.createTextVNode(y.toDisplayString(r.liveLabel),1)])):y.createCommentVNode("",!0)],!0)])):y.createCommentVNode("",!0)],2)):y.createCommentVNode("",!0),y.createElementVNode("div",lV,[y.renderSlot(a.$slots,"default",{},void 0,!0)])],6))}}),vt=(r,e)=>{const t=r.__vccOpts||r;for(const[a,n]of e)t[a]=n;return t},Jl=vt(uV,[["__scopeId","data-v-749400b6"]]),cV={key:0,class:"qbs-duty-compact"},fV={class:"qbs-duty-compact__avatar"},hV={class:"qbs-duty-compact__info"},vV={class:"qbs-duty-compact__name"},dV={class:"qbs-duty-compact__phone"},pV={key:0,class:"qbs-duty-compact__tag"},gV={key:1,class:"qbs-duty"},mV={class:"qbs-duty__summary"},yV={class:"qbs-duty__summary-chip"},_V={class:"qbs-duty__summary-chip"},SV={class:"qbs-duty__summary-chip"},xV={class:"qbs-duty__list"},bV={class:"qbs-duty__group-header"},wV={class:"qbs-duty__users"},CV={key:0,class:"qbs-duty__empty"},Mx=vt(y.defineComponent({__name:"BigScreenDutyContent",props:{compact:{type:Boolean,default:!1},personName:{default:""},personPhone:{default:""},personTag:{default:""},date:{default:""},totalGroups:{default:void 0},totalUsers:{default:void 0},groups:{default:()=>[]}},setup(r){const e=r;return(t,a)=>e.compact?(y.openBlock(),y.createElementBlock("div",cV,[y.createElementVNode("div",fV,y.toDisplayString(e.personName.charAt(0)||"-"),1),y.createElementVNode("div",hV,[y.createElementVNode("span",vV,y.toDisplayString(e.personName||"暂未排班"),1),y.createElementVNode("span",dV,y.toDisplayString(e.personPhone||"—"),1)]),e.personTag?(y.openBlock(),y.createElementBlock("span",pV,y.toDisplayString(e.personTag),1)):y.createCommentVNode("",!0)])):(y.openBlock(),y.createElementBlock("div",gV,[y.createElementVNode("div",mV,[y.createElementVNode("div",yV,[a[0]||(a[0]=y.createElementVNode("span",null,"日期",-1)),y.createElementVNode("strong",null,y.toDisplayString(e.date||"未同步"),1)]),y.createElementVNode("div",_V,[a[1]||(a[1]=y.createElementVNode("span",null,"值班组",-1)),y.createElementVNode("strong",null,y.toDisplayString(e.totalGroups??e.groups.length),1)]),y.createElementVNode("div",SV,[a[2]||(a[2]=y.createElementVNode("span",null,"值班人数",-1)),y.createElementVNode("strong",null,y.toDisplayString(e.totalUsers??0),1)])]),y.createElementVNode("div",xV,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(e.groups,n=>{var i;return y.openBlock(),y.createElementBlock("article",{key:n.groupId,class:"qbs-duty__group"},[y.createElementVNode("div",bV,[y.createElementVNode("strong",null,y.toDisplayString(n.groupName),1),y.createElementVNode("span",null,y.toDisplayString(((i=n.users)==null?void 0:i.length)||0)+" 人",1)]),y.createElementVNode("div",wV,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(n.users||[],o=>(y.openBlock(),y.createElementBlock("span",{key:o.userId,class:"qbs-duty__user"},y.toDisplayString(o.nickName||o.username),1))),128))])])}),128)),e.groups.length?y.createCommentVNode("",!0):(y.openBlock(),y.createElementBlock("div",CV,"暂无值班数据"))])]))}}),[["__scopeId","data-v-f5721bce"]]),TV={class:"qbs-alert-row__main"},EV={class:"qbs-alert-row__copy"},DV=["title"],kV={class:"qbs-alert-row__meta"},AV={class:"qbs-alert-row__group"},MV={key:0,class:"qbs-alert-row__owner"},IV={key:1,class:"qbs-alert-row__time"},LV={key:2,class:"qbs-alert-row__tag"},NV={class:"qbs-alert-row__status"},PV={key:0,class:"qbs-alert-row__aside"},Ix=vt(y.defineComponent({__name:"BigScreenAlertRow",props:{title:{},group:{default:""},owner:{default:""},time:{default:""},tag:{default:""},statusText:{default:""},accent:{default:"#f0a35a"},detailWide:{type:Boolean,default:!1}},emits:["select"],setup(r){const e=r;return(t,a)=>(y.openBlock(),y.createElementBlock("button",{class:y.normalizeClass(["qbs-alert-row",{"qbs-alert-row--detail-wide":e.detailWide}]),style:y.normalizeStyle({"--qbs-alert-accent":e.accent}),type:"button",onClick:a[0]||(a[0]=n=>t.$emit("select"))},[y.createElementVNode("div",TV,[y.createElementVNode("div",EV,[y.createElementVNode("div",{class:"qbs-alert-row__title",title:e.title},y.toDisplayString(e.title),9,DV),y.createElementVNode("div",kV,[y.createElementVNode("span",AV,y.toDisplayString(e.group),1),e.owner?(y.openBlock(),y.createElementBlock("span",MV,y.toDisplayString(e.owner),1)):y.createCommentVNode("",!0),e.time?(y.openBlock(),y.createElementBlock("span",IV,y.toDisplayString(e.time),1)):y.createCommentVNode("",!0),e.tag?(y.openBlock(),y.createElementBlock("span",LV,y.toDisplayString(e.tag),1)):y.createCommentVNode("",!0)]),y.createElementVNode("div",NV,[y.renderSlot(t.$slots,"status",{},()=>[y.createTextVNode(y.toDisplayString(e.statusText||"待处理"),1)],!0)])]),t.$slots.aside?(y.openBlock(),y.createElementBlock("aside",PV,[y.renderSlot(t.$slots,"aside",{},void 0,!0)])):y.createCommentVNode("",!0)])],6))}}),[["__scopeId","data-v-83959767"]]),RV={class:"qbs-metric-card__value"},OV={class:"qbs-metric-card__label"},Lx=vt(y.defineComponent({__name:"BigScreenMetricCard",props:{label:{},value:{default:"—"},tone:{default:"#7dd3fc"},compact:{type:Boolean,default:!1}},setup(r){const e=r;return(t,a)=>e.compact?(y.openBlock(),y.createElementBlock("div",{key:0,class:"qbs-metric-card qbs-metric-card--compact",style:y.normalizeStyle({"--qbs-metric-tone":e.tone})},[y.createElementVNode("span",null,y.toDisplayString(e.label),1),y.createElementVNode("strong",null,[y.renderSlot(t.$slots,"default",{},()=>[y.createTextVNode(y.toDisplayString(e.value),1)],!0)])],4)):(y.openBlock(),y.createBlock(Jl,{key:1,class:"qbs-metric-card","body-layout":"metric",padding:"tight",accent:e.tone},{default:y.withCtx(()=>[y.renderSlot(t.$slots,"default",{},()=>[y.createElementVNode("strong",RV,y.toDisplayString(e.value),1)],!0),y.createElementVNode("span",OV,y.toDisplayString(e.label),1)]),_:3},8,["accent"]))}}),[["__scopeId","data-v-07353599"]]),VV={class:"qbs-header"},BV={class:"qbs-header__body"},zV={class:"qbs-header__brand"},GV={key:0,class:"qbs-header__clock"},FV=vt(y.defineComponent({__name:"BigScreenHeader",props:{title:{default:"运维监控大屏"},subtitle:{default:"QUARK EAGLE EYE"},timeText:{default:"--:--"},dateText:{default:"--"},weekdayText:{default:""},showClock:{type:Boolean,default:!0}},setup(r){return(e,t)=>(y.openBlock(),y.createElementBlock("section",VV,[t[1]||(t[1]=y.createElementVNode("i",{class:"qbs-header__glow"},null,-1)),y.createElementVNode("div",BV,[y.createElementVNode("div",zV,[t[0]||(t[0]=y.createElementVNode("i",{class:"qbs-header__crest"},[y.createElementVNode("b")],-1)),y.createElementVNode("div",null,[y.createElementVNode("p",null,y.toDisplayString(r.subtitle),1),y.createElementVNode("h1",null,y.toDisplayString(r.title),1)])]),r.showClock?(y.openBlock(),y.createElementBlock("div",GV,[y.createElementVNode("strong",null,y.toDisplayString(r.timeText),1),y.createElementVNode("span",null,y.toDisplayString(r.dateText)+" "+y.toDisplayString(r.weekdayText),1)])):y.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-cc041333"]]),HV={class:"qbs-dist"},$V={key:0,class:"qbs-dist__empty"},Nx=vt(y.defineComponent({__name:"BigScreenBuildDistribution",props:{items:{default:()=>[]},total:{default:0}},setup(r){const e=r,t=()=>Math.max(1,e.total||e.items.reduce((a,n)=>a+n.count,0));return(a,n)=>(y.openBlock(),y.createElementBlock("div",HV,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(r.items.slice(0,8),(i,o)=>(y.openBlock(),y.createElementBlock("div",{key:i.name,class:"qbs-dist__row",style:y.normalizeStyle({"--qbs-dist-color":i.tone||["#7dd3fc","#86efac","#fbbf24","#c4b5fd"][o%4]})},[n[0]||(n[0]=y.createElementVNode("i",null,null,-1)),y.createElementVNode("span",null,y.toDisplayString(i.name),1),y.createElementVNode("b",null,[y.createElementVNode("em",{style:y.normalizeStyle({width:`${i.count/t()*100}%`})},null,4)]),y.createElementVNode("strong",null,y.toDisplayString(i.count),1)],4))),128)),r.items.length?y.createCommentVNode("",!0):(y.openBlock(),y.createElementBlock("div",$V,"暂无构建分布数据"))]))}}),[["__scopeId","data-v-88fc69e4"]]),UV={class:"qbs-build-projects"},WV={class:"qbs-build-projects__summary"},YV={class:"qbs-build-projects__list"},XV={key:0,class:"qbs-build-projects__empty"},Px=vt(y.defineComponent({__name:"BigScreenBuildProjects",props:{buildingCount:{default:0},todayBuilds:{default:0},successRate:{default:0},items:{default:()=>[]}},setup(r){const e=t=>`${Math.max(0,Math.min(100,t||0))}%`;return(t,a)=>(y.openBlock(),y.createElementBlock("div",UV,[y.createElementVNode("div",WV,[y.createElementVNode("span",null,[a[0]||(a[0]=y.createTextVNode("构建中",-1)),y.createElementVNode("strong",null,y.toDisplayString(r.buildingCount),1)]),y.createElementVNode("span",null,[a[1]||(a[1]=y.createTextVNode("今日构建",-1)),y.createElementVNode("strong",null,y.toDisplayString(r.todayBuilds),1)]),y.createElementVNode("span",null,[a[2]||(a[2]=y.createTextVNode("成功率",-1)),y.createElementVNode("strong",null,y.toDisplayString(Number(r.successRate).toFixed(1))+"%",1)])]),y.createElementVNode("div",YV,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(r.items.slice(0,8),(n,i)=>(y.openBlock(),y.createElementBlock("article",{key:`${n.pipelineId}-${n.buildId}`},[y.createElementVNode("i",null,y.toDisplayString(String(i+1).padStart(2,"0")),1),y.createElementVNode("div",null,[y.createElementVNode("strong",null,y.toDisplayString(n.jobName||`Pipeline-${n.pipelineId}`),1),y.createElementVNode("span",null,y.toDisplayString(n.currentStage||"等待阶段信息")+" · "+y.toDisplayString(n.buildUser||"系统触发"),1)]),y.createElementVNode("b",null,[y.createElementVNode("em",{style:y.normalizeStyle({width:e(n.progress)})},null,4)]),y.createElementVNode("small",null,y.toDisplayString(n.statusText),1)]))),128)),r.items.length?y.createCommentVNode("",!0):(y.openBlock(),y.createElementBlock("div",XV,"当前没有在跑的构建项目"))])]))}}),[["__scopeId","data-v-c9634e0c"]]),ZV={class:"qbs-robot"},qV={class:"qbs-robot__head"},KV={class:"qbs-robot__metrics"},jV=vt(y.defineComponent({__name:"BigScreenRobotSummary",props:{status:{default:"online"},mode:{default:"display_only"},emotion:{default:"neutral"},generatedAt:{default:""},summary:{default:()=>({})},alerts:{default:()=>({})},successRate:{default:0}},setup(r){return(e,t)=>(y.openBlock(),y.createElementBlock("div",ZV,[y.createElementVNode("div",qV,[y.createElementVNode("i",{class:y.normalizeClass(`is-${r.emotion}`)},null,2),y.createElementVNode("div",null,[y.createElementVNode("strong",null,y.toDisplayString(r.status),1),y.createElementVNode("span",null,y.toDisplayString(r.mode)+" · "+y.toDisplayString(r.generatedAt),1)])]),y.createElementVNode("div",KV,[y.createElementVNode("span",null,[t[0]||(t[0]=y.createTextVNode("值班组",-1)),y.createElementVNode("b",null,y.toDisplayString(r.summary.dutyGroups??0),1)]),y.createElementVNode("span",null,[t[1]||(t[1]=y.createTextVNode("今日告警",-1)),y.createElementVNode("b",null,y.toDisplayString(r.summary.todayAlerts??0),1)]),y.createElementVNode("span",null,[t[2]||(t[2]=y.createTextVNode("构建中",-1)),y.createElementVNode("b",null,y.toDisplayString(r.summary.buildingCount??0),1)]),y.createElementVNode("span",null,[t[3]||(t[3]=y.createTextVNode("终端节点",-1)),y.createElementVNode("b",null,y.toDisplayString(r.summary.endpointNodes??0),1)])])]))}}),[["__scopeId","data-v-534c73e7"]]),QV={class:"qbs-endpoints"},JV={key:0,class:"qbs-endpoints__empty"},Rx=vt(y.defineComponent({__name:"BigScreenEndpointDistribution",props:{items:{default:()=>[]}},setup(r){return(e,t)=>(y.openBlock(),y.createElementBlock("div",QV,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(r.items,a=>{var n;return y.openBlock(),y.createElementBlock("article",{key:a.id},[y.createElementVNode("div",null,[y.createElementVNode("strong",null,y.toDisplayString(a.nodeName),1),y.createElementVNode("span",{class:y.normalizeClass({offline:!a.nodeStatus})},y.toDisplayString(a.nodeStatus?"在线":"离线"),3)]),y.createElementVNode("small",null,y.toDisplayString(a.nodeIp),1),(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList((n=a.heartbeatResults)==null?void 0:n.slice(0,3),i=>{var o;return y.openBlock(),y.createElementBlock("p",{key:i.targetName},y.toDisplayString(i.targetName||i.targetIp)+" · "+y.toDisplayString(((o=i.latencyMs)==null?void 0:o.toFixed(1))??"—")+" ms",1)}),128))])}),128)),r.items.length?y.createCommentVNode("",!0):(y.openBlock(),y.createElementBlock("div",JV,"暂无终端分布数据"))]))}}),[["__scopeId","data-v-9abd8314"]]),eB={class:"qbs-embed"},tB=["src","title"],rB={key:1},Ox=vt(y.defineComponent({__name:"BigScreenExternalEmbed",props:{url:{default:""},title:{default:"外部仪表盘"}},setup(r){const e=r,t=y.computed(()=>{try{const a=new URL(e.url);return["http:","https:"].includes(a.protocol)?a.toString():""}catch{return""}});return(a,n)=>(y.openBlock(),y.createElementBlock("section",eB,[t.value?(y.openBlock(),y.createElementBlock("iframe",{key:0,src:t.value,title:r.title,loading:"lazy",referrerpolicy:"no-referrer",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups",allow:"fullscreen"},null,8,tB)):(y.openBlock(),y.createElementBlock("div",rB,"请在 Props JSON 中配置 http(s) 外部仪表盘 URL。"))]))}}),[["__scopeId","data-v-f20c22f6"]]),aB={width:"300",height:"290",viewBox:"0 0 240 230",class:"overflow-visible drop-shadow-[0_18px_24px_rgba(37,99,235,0.25)]"},nB=["stroke"],iB=["fill"],oB=["fill"],sB=["rx","ry","opacity"],lB=["rx","ry","opacity"],uB=["fill"],cB=["d"],fB=["d"],hB=["d"],vB=["d"],dB={key:5},pB=["d"],gB=["d"],mB=["x","y"],yB=["x","y"],_B=["cx"],SB=["cx"],xB=["x1","y1","x2","y2"],bB=["x1","y1","x2","y2"],wB=["cy"],CB=["cy"],TB=["x1","y1","x2","y2"],EB=["x1","y1","x2","y2"],DB=["cx","cy"],kB=["cx","cy"],AB=["cx","cy"],MB=["cx","cy"],IB=["cx","cy"],LB=["cx","cy"],NB=["cx","cy"],PB=["cx","cy"],RB=["cy"],OB=["cy"],VB=["cy"],BB=["cy"],zB=["x","y"],GB=["x","y"],FB=["x1","x2"],HB=["x1","x2"],$B=["cy"],UB=["cx","cy"],WB=["x","y"],YB=["cx","cy"],XB=["cx","cy"],ZB=["cx","cy"],qB=["cx","cy"],KB=["cx","cy"],jB=["cx","cy"],QB=["cx","cy"],JB=["x1","y1","x2","y2"],e5=["x1","y1","x2","y2"],t5=["x1","x2"],r5=["x1","x2"],a5={key:16},n5=["cy"],i5=["cy"],o5=["cy"],s5=["cy"],l5=["x","y"],u5=["x","y"],c5=["d"],f5=["d"],h5=["cy"],v5=["cy"],d5=["x1","y1","x2","y2"],p5=["x1","y1","x2","y2"],g5={key:19},m5=["cy"],y5=["cy"],_5=["cy"],S5=["cy"],x5=["x","y"],b5=["x","y"],w5=["d"],C5=["d"],T5=["d"],E5=["d"],D5=["x1","x2"],k5=["x1","x2"],A5=["d"],M5=["d"],I5=["cy"],L5=["cy"],N5=["cx","cy"],P5=["cx","cy"],R5=["cx","cy"],O5=["cx","cy"],V5=["x1","y1","x2","y2"],B5=["x1","y1","x2","y2"],z5=["cx","cy"],G5=["cx","cy"],F5=["cx","cy"],H5=["cx","cy"],$5=["cx","cy"],U5=["cx","cy"],W5=["cx","cy"],Y5=["cx","cy"],X5=["cy"],Z5=["cy"],q5=["cx","cy"],K5=["cx","cy"],j5=["cy"],Q5=["cy"],J5=["x1","y1","x2","y2"],e3=["x1","y1","x2","y2"],t3=["d"],r3=["d"],a3=["d"],n3=["d"],i3=["cx","cy"],o3=["x1","x2"],s3=["x","y"],l3=["x","y"],u3={key:10},c3={key:16},f3={key:36,d:"M 158 70 q 5 9 0 14 q -5 -5 0 -14 Z",fill:"oklch(0.8 0.12 220)",opacity:"0.9",class:"animate-dot-blink"},h3=["cx","cy"],v3=["cx","cy"],d3=["d"],p3=["stroke"],g3=["fill"],m3=["fill"],y3=["fill"],_3={key:44},S3=["fill"],x3=["stroke"],b3={key:46,class:"animate-spin-slow",style:{transformOrigin:"168px 62px"}},w3=["fill"],C3=["transform"],T3={key:47,transform:"rotate(40 168 62)"},E3=["fill"],D3={key:48,class:"animate-wobble",style:{transformOrigin:"168px 60px"}},k3=["fill"],A3=["fill"],M3={key:49,class:"animate-self-spin",style:{transformOrigin:"168px 60px"}},I3=["stroke"],L3={key:50,class:"animate-alert-flash"},N3=["fill"],P3={key:51},R3={class:"animate-alert-flash"},O3=["fill"],V3=["fill"],B3=["stroke"],z3=["fill"],G3={key:53,class:"animate-scan-move"},F3=["stroke"],H3=["stroke"],$3={key:54},U3=["stroke"],W3=["fill"],Y3=["fill"],X3=["fill"],Z3=["stroke"],q3={key:57,class:"animate-locate-bob",style:{transformOrigin:"168px 60px"}},K3=["fill"],j3=["fill"],Q3=["stroke"],J3=["fill"],ez={key:59},tz=["stroke"],rz={key:60},az=["fill"],nz={key:61},iz=["fill"],oz={key:62,class:"animate-alert-flash",style:{transformOrigin:"168px 60px"}},sz=["fill"],lz={key:63},uz=["fill"],cz={key:64,class:"animate-alert-flash"},fz=["fill"],hz={key:65,class:"animate-sparkle",style:{transformOrigin:"168px 58px"}},vz=["fill"],dz=["fill"],pz=["fill"],gz={key:66},mz=["fill"],yz=["fill"],_z=["fill"],Sz={key:67,class:"animate-body-glow",style:{transformOrigin:"168px 62px"}},xz=["fill"],bz={key:68,class:"animate-dot-blink"},wz={key:69},Cz=["stroke"],Tz=["fill"],Ez=["fill"],Dz={key:72},kz={key:73,class:"animate-bball-ball",style:{transformOrigin:"120px 148px"}},Az={key:74,class:"animate-traffic-light-pop",style:{transformOrigin:"230px 126px"}},Mz=["fill"],Iz=["opacity"],Lz=["opacity"],Nz=["opacity"],Pz={key:75},Rz=["x","y"],Oz={key:76,class:"animate-breathe",style:{transformBox:"fill-box",transformOrigin:"center"}},Vz=["fill"],Bz={key:78},zz=["d","fill"],Gz={key:79},Fz=["fill"],Hz={key:80},$z=["stroke"],Uz=["stroke"],Wz={key:81},Yz=["x","y","width","height","rx","fill"],Xz={key:82},Zz=["cx","cy","fill"],qz=["fill"],Kz=["fill"],jz=["d"],Qz=["fill"],Jz=["fill"],e4=["fill"],t4=["d"],r4={key:0,class:"pointer-events-none absolute right-2 top-2 text-robot-blue-dark"},te="var(--robot-eye)",a4="var(--robot-blue)",br="oklch(0.6 0.23 22)",eu="oklch(0.72 0.19 55)",tu="oklch(0.84 0.16 95)",_f="oklch(0.62 0.02 260)",un="oklch(0.68 0.16 150)",n4="oklch(0.5 0.12 250)",ye=102,Se=138,X=108,Vx=vt(y.defineComponent({__name:"QuarkRobot",props:{emotion:{},action:{default:"idle"},speaking:{type:Boolean,default:!1}},setup(r){const e=r,t={neutral:{eyes:"neutral",mouth:"smileSoft",arms:"handsFold",anim:"animate-robot-float"},bye:{eyes:"happy",mouth:"smileSoft",arms:"waveUp",anim:"animate-robot-float"},happy:{eyes:"happy",mouth:"smile",blush:!0,arms:"joyRaise",anim:"animate-robot-float"},excited:{eyes:"excited",mouth:"open",blush:!0,arms:"waveUp",anim:"animate-robot-bounce"},angry:{eyes:"angry",mouth:"grit",sym:"anger",symColor:br,arms:"akimbo",anim:"animate-robot-shake"},sad:{eyes:"sad",mouth:"frown",tear:!0,arms:"hangsDown",anim:"animate-robot-droop"},surprised:{eyes:"wide",mouth:"o",sym:"exclaim",symColor:"var(--robot-amber)",blush:!0,arms:"alarm",anim:"animate-robot-bounce"},helpless:{eyes:"half",mouth:"wavy",sweat:!0,arms:"facepalm",anim:"animate-robot-float"},shy:{eyes:"happy",mouth:"smileSoft",blushStrong:!0,sym:"heart",symColor:br,arms:"faceCover",anim:"animate-robot-float"},awkward:{eyes:"half",mouth:"wavy",sweat:!0,sym:"ellipsis",symColor:"var(--muted-foreground)",arms:"scratchHead",anim:"animate-robot-float"},scared:{eyes:"wide",mouth:"o",sweat:!0,sym:"exclaim",symColor:br,arms:"headHold",anim:"animate-robot-shake"},wronged:{eyes:"teary",mouth:"frown",tear:!0,tear2:!0,blush:!0,arms:"wipeTear",anim:"animate-robot-droop"},agitated:{eyes:"excited",mouth:"bigopen",blush:!0,arms:"forwardReach",anim:"animate-robot-shake"},smug:{eyes:"smug",mouth:"smile",arms:"oneAkimboThumb",anim:"animate-robot-float"},sleepy:{eyes:"closed",mouth:"dot",anim:"animate-robot-sway"},thinking:{eyes:"lookup",mouth:"flat",sym:"question",symColor:te,anim:"animate-robot-float"},thinkingWait:{eyes:"thinkEyes",mouth:"flat",sym:"loader",symColor:te,arms:"chinRest",signalAnim:"animate-signal-coolblink",signalOverride:"oklch(0.72 0.08 220)",anim:"animate-thinking-tilt"},dazed:{eyes:"blank",mouth:"flat",sym:"ellipsis",symColor:"var(--muted-foreground)",anim:"animate-robot-sway"},tired:{eyes:"half",mouth:"frown",anim:"animate-robot-droop"},confused:{eyes:"confused",mouth:"wavy",sym:"question",symColor:"var(--robot-amber)",anim:"animate-wobble"},eureka:{eyes:"excited",mouth:"open",sym:"bulb",symColor:"var(--robot-amber)",arms:"ahaPoint",anim:"animate-robot-bounce"},yawn:{eyes:"closed",mouth:"bigopen",tear:!0,arms:"stretchYawn",anim:"animate-robot-sway"},spacedout:{eyes:"blank",mouth:"flat",sym:"ellipsis",symColor:"var(--muted-foreground)",anim:"animate-robot-sway"},eurekaClap:{eyes:"excited",mouth:"open",sym:"bulb",symColor:"var(--robot-amber)",arms:"clap",anim:"animate-robot-bounce"},rubEyes:{eyes:"closed",mouth:"frown",arms:"rub",anim:"animate-robot-droop"},zen:{eyes:"closed",mouth:"calm",sym:"lotus",symColor:"var(--robot-amber)",anim:"animate-breathe"},pray:{eyes:"closed",mouth:"calm",sym:"lotus",symColor:"var(--robot-amber)",arms:"pray",anim:"animate-breathe"},devout:{eyes:"closed",mouth:"calm",sym:"lotus",symColor:"var(--robot-amber)",arms:"pray",anim:"animate-breathe"},heal:{eyes:"happy",mouth:"smileSoft",blush:!0,sym:"heart",symColor:br,arms:"hug",anim:"animate-breathe"},coldGuard:{eyes:"lookdown",mouth:"flat",body:n4,anim:"animate-guard-sink"},listenOpen:{eyes:"neutral",mouth:"smileSoft",sym:"soundwave",symColor:te,arms:"attentiveOpen",anim:"animate-listen-tilt"},listenSneaky:{eyes:"half",mouth:"dot",sym:"soundwave",symColor:"var(--robot-amber)",arms:"shh",anim:"animate-listen-sneak"},listenPeek:{eyes:"wide",mouth:"smileSoft",sym:"soundwave",symColor:te,anim:"animate-peek"},busy:{eyes:"thinkEyes",mouth:"flat",sweat:!0,sym:"gear",symColor:"var(--robot-blue-dark)",arms:"overtimeArms",anim:"animate-busy-type"},processing:{eyes:"neutral",mouth:"flat",sym:"gear",symColor:"var(--robot-blue-dark)",arms:"overtimeArms",anim:"animate-nod"},done:{eyes:"happy",mouth:"smile",sym:"check",symColor:un,arms:"approve",anim:"animate-robot-float"},notes:{eyes:"lookdown",mouth:"smileSoft",sym:"pencil",symColor:"var(--robot-blue-dark)",arms:"writeDown",anim:"animate-notes-write"},stuck:{eyes:"dizzy",mouth:"flat",sweat:!0,sym:"question",symColor:"var(--muted-foreground)",arms:"shrug",anim:"animate-robot-shake"},askHumble:{eyes:"lookup",mouth:"smileSoft",sym:"question",symColor:te,arms:"humble",anim:"animate-robot-float"},report:{eyes:"neutral",mouth:"smile",arms:"point",anim:"animate-robot-float"},standby:{eyes:"neutral",mouth:"flat",sym:"bell",symColor:"var(--robot-amber)",arms:"attentiveOpen",anim:"animate-robot-float"},checkData:{eyes:"thinkEyes",mouth:"flat",sym:"target",symColor:"var(--robot-blue-dark)",arms:"scanArmRight",anim:"animate-check-scan"},loading:{eyes:"neutral",mouth:"flat",sym:"loader",symColor:te,arms:"bootStretch",anim:"animate-robot-float"},troubleshoot:{eyes:"confused",mouth:"flat",sweat:!0,sym:"broken",symColor:"var(--muted-foreground)",arms:"ponderHand",anim:"animate-pacing"},warnLow:{eyes:"neutral",mouth:"flat",sym:"warning",symColor:tu,arms:"caution",anim:"animate-robot-sway"},warnOrange:{eyes:"wide",mouth:"flat",sym:"warning",symColor:eu,body:eu,arms:"caution",anim:"animate-wobble"},alertRed:{eyes:"wide",mouth:"o",sym:"siren",symColor:br,body:br,arms:"alarm",anim:"animate-robot-shake"},fault:{eyes:"dizzy",mouth:"wavy",sym:"broken",symColor:_f,body:_f,arms:"limp",anim:"animate-robot-droop"},alertClear:{eyes:"happy",mouth:"smile",sym:"check",symColor:un,arms:"thumbsUp",anim:"animate-robot-float"},scanning:{eyes:"neutral",mouth:"flat",sym:"scan",symColor:te,arms:"scan",anim:"animate-patrol"},camTurn:{eyes:"wide",mouth:"flat",sym:"scan",symColor:eu,arms:"scan",anim:"animate-wobble"},alertVibrate:{eyes:"wide",mouth:"o",sym:"warning",symColor:eu,body:eu,arms:"alarm",anim:"animate-vibrate"},faultReset:{eyes:"dizzy",mouth:"flat",sym:"broken",symColor:_f,body:_f,anim:"animate-reset-spin"},investigate:{eyes:"neutral",mouth:"flat",sym:"scan",symColor:te,arms:"scan",anim:"animate-pacing"},clearGreen:{eyes:"happy",mouth:"smile",sym:"check",symColor:un,body:un,arms:"spread",anim:"animate-breathe"},locatePhysical:{eyes:"lookdown",mouth:"smileSoft",sym:"pin",symColor:te,arms:"point",anim:"animate-robot-float"},locateFault:{eyes:"confused",mouth:"flat",sym:"target",symColor:br,arms:"scan",anim:"animate-pacing"},locateProblem:{eyes:"lookup",mouth:"flat",sym:"target",symColor:"var(--robot-amber)",arms:"pointUp",anim:"animate-robot-float"},learning:{eyes:"lookdown",mouth:"smileSoft",sym:"book",symColor:"var(--robot-blue-dark)",arms:"humble",anim:"animate-nod"},msgSending:{eyes:"neutral",mouth:"flat",sym:"plane",symColor:te,arms:"scanArmRight",anim:"animate-robot-float"},msgSent:{eyes:"happy",mouth:"smile",sym:"msgOk",symColor:un,arms:"thumbsUp",anim:"animate-robot-float"},msgFailed:{eyes:"sad",mouth:"frown",sym:"msgFail",symColor:br,sweat:!0,arms:"droopArms",anim:"animate-robot-shake"},msgReceiving:{eyes:"neutral",mouth:"smileSoft",sym:"msgIn",symColor:"var(--robot-amber)",arms:"chinRest",anim:"animate-nod"},joyful:{eyes:"arcHappy",mouth:"bigSmile",blushPink:!0,arms:"joyRaise",signalAnim:"animate-signal-warm",signalOverride:"oklch(0.84 0.16 72)",anim:"animate-joyful"},furious:{eyes:"narrow",mouth:"grit",arms:"akimbo",signalAnim:"animate-signal-red",signalOverride:"oklch(0.58 0.22 22)",anim:"animate-furious"},sorrowful:{eyes:"droopy",mouth:"bigFrown",tear:!0,tear2:!0,arms:"hangsDown",screenTint:"oklch(0.35 0.08 240 / 0.18)",signalAnim:"animate-signal-blue",signalOverride:"oklch(0.55 0.14 240)",anim:"animate-sorrowful"},serene:{eyes:"softRound",mouth:"smileSoft",arms:"handsFold",signalOverride:"oklch(0.82 0.14 72)",anim:"animate-serene"},amazed:{eyes:"bigRound",mouth:"bigopen",blush:!0,sym:"exclaim",symColor:"oklch(0.84 0.16 72)",arms:"alarm",signalAnim:"animate-signal-burst",signalOverride:"oklch(0.9 0.18 90)",anim:"animate-amazed"},excited2:{eyes:"arcHappy",mouth:"bigSmile",blushStrong:!0,arms:"waveUp",signalAnim:"animate-signal-rapid",signalOverride:"oklch(0.84 0.16 72)",anim:"animate-excited-e"},helpless2:{eyes:"halfDroopy",mouth:"bitterSmile",arms:"facepalm",signalAnim:"animate-signal-dim",signalOverride:"oklch(0.58 0.06 250)",anim:"animate-helpless"},shy2:{eyes:"peekSlit",mouth:"heartMouth",blushPink:!0,arms:"faceCover",signalAnim:"animate-signal-pink",signalOverride:"oklch(0.82 0.14 20)",anim:"animate-shy"},awkward2:{eyes:"halfSquint",mouth:"awkwardSmile",blush:!0,arms:"scratchHead",signalAnim:"animate-signal-soft",signalOverride:"oklch(0.88 0.12 85)",anim:"animate-awkward"},scared2:{eyes:"scaredWide",mouth:"o",sweat:!0,arms:"headHold",signalAnim:"animate-signal-panic",signalOverride:"oklch(0.58 0.22 22)",anim:"animate-scared"},grieved:{eyes:"droopy",mouth:"bigFrown",blush:!0,arms:"wipeTear",screenTint:"oklch(0.35 0.08 240 / 0.14)",signalAnim:"animate-signal-cold",signalOverride:"oklch(0.5 0.12 240)",anim:"animate-grieved"},thrilled:{eyes:"bigRound",mouth:"bigopen",arms:"forwardReach",sym:"lightning",symColor:"oklch(0.9 0.18 90)",signalAnim:"animate-signal-bright",signalOverride:"oklch(0.9 0.18 90)",anim:"animate-thrilled"},jealous:{eyes:"narrowSlant",mouth:"poutBig",blush:!0,arms:"crossArms",signalAnim:"animate-signal-purple",signalOverride:"oklch(0.62 0.14 280)",anim:"animate-jealous"},speechless:{eyes:"dashEyes",mouth:"flat",arms:"templePoint",sym:"ellipsis",symColor:"oklch(0.55 0.04 250)",signalAnim:"animate-signal-gray",signalOverride:"oklch(0.45 0.06 250)",anim:"animate-speechless"},proud:{eyes:"smug",mouth:"smile",arms:"oneAkimboThumb",sym:"sparkle2",symColor:"oklch(0.88 0.16 80)",signalAnim:"animate-signal-gold",signalOverride:"oklch(0.84 0.16 72)",anim:"animate-proud"},drowsy:{eyes:"halfClosed",mouth:"open",arms:"armsLoose",sym:"zzz",symColor:"oklch(0.65 0.08 260)",signalAnim:"animate-signal-darkblue",signalOverride:"oklch(0.42 0.10 255)",anim:"animate-drowsy"},thinking2:{eyes:"thinkEyes",mouth:"flat",arms:"chinRest",sym:"bulb",symColor:"oklch(0.84 0.14 90)",signalAnim:"animate-signal-coolblink",signalOverride:"oklch(0.72 0.08 220)",anim:"animate-thinking-tilt"},daydream2:{eyes:"blankDot",mouth:"flat",arms:"clasp",signalAnim:"animate-signal-faint",signalOverride:"oklch(0.5 0.06 230)",anim:"animate-daydream"},exhausted:{eyes:"heavyLid",mouth:"frown",arms:"slump",sym:"lowBattery",symColor:"oklch(0.58 0.22 22)",signalAnim:"animate-signal-rb",signalOverride:"oklch(0.45 0.10 260)",anim:"animate-exhausted"},puzzled:{eyes:"bigRound",mouth:"o",arms:"shrug",sym:"question",symColor:"oklch(0.82 0.14 90)",signalAnim:"animate-signal-paleyellow",signalOverride:"oklch(0.86 0.14 90)",anim:"animate-puzzled"},guarding:{eyes:"narrow",mouth:"flat",arms:"shieldUp",sym:"shield",symColor:"oklch(0.72 0.14 220)",signalAnim:"animate-signal-shield",signalOverride:"oklch(0.55 0.16 230)",anim:"animate-guard-stance"},playBasketball:{eyes:"arcHappy",mouth:"bigSmile",blushPink:!0,sym:"miniBasketball",symColor:"oklch(0.65 0.16 40)",signalAnim:"animate-signal-bball",signalOverride:"oklch(0.75 0.18 72)",anim:"animate-bball-body"},ironMountain:{eyes:"smug",mouth:"smile",blushPink:!0,signalAnim:"animate-signal-iron",signalOverride:"oklch(0.78 0.18 72)",anim:"animate-iron-hip"},trafficRed:{eyes:"wide",mouth:"flat",arms:"trafficGuide",sym:"warning",symColor:br,body:br,signalAnim:"animate-signal-red",signalOverride:br,anim:"animate-traffic-stop"},trafficYellow:{eyes:"thinkEyes",mouth:"flat",arms:"trafficGuide",sym:"warning",symColor:tu,body:tu,signalAnim:"animate-signal-soft",signalOverride:tu,anim:"animate-traffic-wait"},trafficGreen:{eyes:"happy",mouth:"smile",arms:"trafficGuide",sym:"check",symColor:un,body:un,signalAnim:"animate-signal-shield",signalOverride:un,anim:"animate-traffic-go"},singing:{eyes:"arcHappy",mouth:"bigopen",blushPink:!0,arms:"conductMusic",sym:"soundwave",symColor:"oklch(0.82 0.16 72)",signalAnim:"animate-signal-warm",signalOverride:"oklch(0.82 0.16 72)",anim:"animate-sing-body"}},a={nod:"animate-nod-v2",shakeHead:"animate-shakehead-v2",bow:"animate-bow-v2",cheer:"animate-cheer",giggle:"animate-giggle",peek:"animate-peek-v2",patrol:"animate-patrol-v2",pacing:"animate-pacing",patrolScan:"animate-patrol-scan",guardStop:"animate-guard-sink",spinBoot:"animate-spin-boot",spinFault:"animate-spin-fault",spinDone:"animate-spin-done",signalBreathe:"animate-breathe",bodyBreathe:"animate-breathe",cameraScan:"animate-patrol-v2",idleDrift:"animate-idle-drift",idleYawn:"animate-idle-yawn",idleGlance:"animate-idle-glance",idleNod:"animate-idle-nod",twoHandHeart:"animate-heart-lean",celebrate:"animate-celebrate",welcome:"animate-welcome",comfort:"animate-comfort",victoryPose:"animate-victory",trafficRed:"animate-traffic-stop",trafficYellow:"animate-traffic-wait",trafficGreen:"animate-traffic-go",ironMountain:"animate-iron-hip",playBasketball:"animate-bball-body",sing:"animate-sing-body"},n={nod:"approve",shakeHead:"denyPush",blowKiss:"kiss",waveNo:"waveNo",bow:"bow",cheer:"cheer",giggle:"giggle",peek:"point",patrol:"march",pacing:"ponderHand",patrolScan:"scan",spinBoot:"bootStretch",bodyBreathe:"restBreathe",idleDrift:"floatArms",idleYawn:"stretchYawn",idleGlance:"armsLoose",idleNod:"droopArms",twoHandHeart:"heartCenter",fingerSparkle:"sparkle",thumbsUp:"thumbsUp",celebrate:"alarm",welcome:"spread",comfort:"humble",victoryPose:"alarm",trafficRed:"trafficGuide",trafficYellow:"trafficGuide",trafficGreen:"trafficGuide",guardStop:"flagGuard",ironMountain:"shoulderBash",playBasketball:"shootBall",sing:"conductMusic"},i={spinBoot:"oklch(0.7 0.18 200)",spinFault:"oklch(0.6 0.23 22)",spinDone:"oklch(0.75 0.18 145)",guardStop:"oklch(0.58 0.22 22)",twoHandHeart:"oklch(0.72 0.18 340)",patrolScan:"oklch(0.7 0.18 200)",celebrate:"oklch(0.82 0.16 72)",victoryPose:"oklch(0.75 0.18 145)",welcome:"oklch(0.7 0.18 200)",comfort:"oklch(0.78 0.12 340)",idleYawn:"oklch(0.6 0.08 264)",idleGlance:"oklch(0.6 0.08 264)",playBasketball:"oklch(0.75 0.18 72)",ironMountain:"oklch(0.78 0.18 72)",trafficRed:br,trafficYellow:tu,trafficGreen:un,sing:"oklch(0.82 0.16 72)"},o={celebrate:"confetti",victoryPose:"confetti",fingerSparkle:"particles",twoHandHeart:"heart-particles",welcome:"glow",spinBoot:"scan-ring",spinFault:"scan-ring",spinDone:"scan-ring",patrolScan:"scan-ring",guardStop:"flag",trafficRed:"traffic-light",trafficYellow:"traffic-light",trafficGreen:"traffic-light",sing:"music-notes"},s={down:{l:-8,r:8},waveNo:{l:-8,r:95,ra:"animate-arm-wave"},cheer:{l:-120,r:120,la:"animate-arm-pump",ra:"animate-arm-pump"},kiss:{l:-8,r:120},heart:{l:-120,r:120},bow:{l:35,r:-35},giggle:{l:-145,r:145},pray:{l:-55,r:55},thumbsUp:{l:-8,r:65},point:{l:-8,r:30},sparkle:{l:-35,r:35},hug:{l:-45,r:45},clap:{l:55,r:-55,la:"animate-arm-wave",ra:"animate-arm-wave"},rub:{l:-8,r:125},humble:{l:-8,r:50},shh:{l:-8,r:135},alarm:{l:130,r:-130,la:"animate-arm-pump",ra:"animate-arm-pump"},limp:{l:-85,r:85},caution:{l:-8,r:-105,ra:"animate-arm-wave"},scan:{l:-8,r:-45,ra:"animate-arm-scan"},spread:{l:-35,r:35},pointUp:{l:-8,r:-130},heartCenter:{l:55,r:-55},flagGuard:{l:30,r:-30},akimbo:{l:-42,r:42},hangsDown:{l:-95,r:95},waveUp:{l:72,r:-72,la:"animate-arm-pump",ra:"animate-arm-pump"},facepalm:{l:108,r:80},faceCover:{l:92,r:-92},scratchHead:{l:-82,r:-128},headHold:{l:125,r:-125},forwardReach:{l:34,r:-34},crossArms:{l:58,r:-58},templePoint:{l:-105,r:8},oneAkimboThumb:{l:-52,r:65},chinRest:{l:42,r:-75},overtimeArms:{l:68,r:-68},writeDown:{l:38,r:-55},scanArmRight:{l:-70,r:-40},shieldUp:{l:72,r:-72},approve:{l:44,r:-44,la:"animate-arm-nod",ra:"animate-arm-nod"},denyPush:{l:66,r:-66,la:"animate-arm-shake-x",ra:"animate-arm-shake-x"},march:{l:-8,r:8,la:"animate-arm-march-a",ra:"animate-arm-march-b"},ponderHand:{l:-8,r:-66},bootStretch:{l:-34,r:34},restBreathe:{l:-22,r:22,la:"animate-arm-breathe",ra:"animate-arm-breathe"},floatArms:{l:-45,r:45,la:"animate-arm-breathe",ra:"animate-arm-breathe"},stretchYawn:{l:-108,r:22},clasp:{l:34,r:-34},droopArms:{l:-86,r:86},joyRaise:{l:82,r:-82},handsFold:{l:-68,r:68},wipeTear:{l:-90,r:-95},slump:{l:-104,r:104},shrug:{l:56,r:-56},ahaPoint:{l:-8,r:-95},attentiveOpen:{l:-40,r:40},armsLoose:{l:-16,r:16},shoulderBash:{l:-88,r:88,la:"animate-iron-arm",ra:"animate-iron-arm"},shootBall:{l:-8,r:8,la:"animate-bball-arm-l",ra:"animate-bball-arm-r"},trafficGuide:{l:-36,r:0,ra:"animate-traffic-arm"},conductMusic:{l:54,r:-54,la:"animate-conduct-arm-l",ra:"animate-conduct-arm-r"}},l=y.computed(()=>t[e.emotion]),u=y.computed(()=>l.value.body??a4),c=y.computed(()=>a[e.action]??l.value.anim),f=y.computed(()=>n[e.action]??l.value.arms??"down"),h=y.computed(()=>s[f.value]),v=y.computed(()=>i[e.action]??l.value.signalOverride??"var(--robot-amber)"),d=y.computed(()=>l.value.signalAnim&&e.action==="idle"?l.value.signalAnim:""),p=y.computed(()=>o[e.action]??"none"),g=y.computed(()=>e.action==="trafficRed"||e.emotion==="trafficRed"?"red":e.action==="trafficYellow"||e.emotion==="trafficYellow"?"yellow":e.action==="trafficGreen"||e.emotion==="trafficGreen"?"green":null),m=y.computed(()=>e.action==="sing"||e.emotion==="singing"),_=[{x:62,y:64,note:"♪",delay:0},{x:184,y:76,note:"♫",delay:.22},{x:48,y:116,note:"♬",delay:.44},{x:194,y:128,note:"♪",delay:.66}],S=[{x:90,y:30,cx:-40,cy:-55,cr:"160deg",color:"oklch(0.75 0.18 145)",size:5},{x:120,y:22,cx:0,cy:-62,cr:"20deg",color:"oklch(0.82 0.16 72)",size:4},{x:150,y:30,cx:44,cy:-50,cr:"-140deg",color:"oklch(0.6 0.23 22)",size:5},{x:75,y:50,cx:-52,cy:-30,cr:"200deg",color:"oklch(0.7 0.18 200)",size:3},{x:168,y:48,cx:50,cy:-28,cr:"-200deg",color:"oklch(0.78 0.12 340)",size:3},{x:60,y:75,cx:-38,cy:-18,cr:"90deg",color:"oklch(0.82 0.16 72)",size:4},{x:182,y:72,cx:36,cy:-16,cr:"-90deg",color:"oklch(0.75 0.18 145)",size:4}],x=[{x:114,y:182,hx:"-10px",delay:0,size:9,color:"oklch(0.72 0.22 0)"},{x:126,y:180,hx:"10px",delay:.18,size:7,color:"oklch(0.72 0.18 340)"},{x:108,y:176,hx:"-18px",delay:.34,size:5,color:"oklch(0.8 0.14 0)"},{x:132,y:174,hx:"16px",delay:.5,size:5,color:"oklch(0.78 0.20 340)"},{x:120,y:170,hx:"0px",delay:.66,size:6,color:"oklch(0.72 0.22 0)"}],b=[...Array.from({length:6},(W,V)=>({x:20+Math.cos(V/6*Math.PI*2)*18,y:128+Math.sin(V/6*Math.PI*2)*18,delay:V*.18,color:V%2===0?"var(--robot-amber)":"oklch(0.7 0.18 200)"})),...Array.from({length:6},(W,V)=>({x:220+Math.cos(V/6*Math.PI*2)*18,y:128+Math.sin(V/6*Math.PI*2)*18,delay:V*.18+.09,color:V%2===0?"var(--robot-amber)":"oklch(0.7 0.18 200)"}))],w=y.ref(null),C=y.ref({x:0,y:0}),E=y.ref(0),T=y.ref(!1);let D;function A(W){const V=w.value;if(!V)return;const q=V.getBoundingClientRect(),Ce=q.left+q.width/2,fe=q.top+q.height/2,ne=(W.clientX-Ce)/(q.width/2),we=(W.clientY-fe)/(q.height/2),se=xe=>Math.max(-1,Math.min(1,xe));C.value={x:se(ne)*6,y:se(we)*5},E.value=se(ne)*6}function I(){D=setTimeout(()=>{T.value=!0,setTimeout(()=>T.value=!1,130),I()},2200+Math.random()*2600)}y.onMounted(()=>{window.addEventListener("mousemove",A),I()}),y.onBeforeUnmount(()=>{window.removeEventListener("mousemove",A),D&&clearTimeout(D)});const M=y.computed(()=>C.value.x),L=y.computed(()=>C.value.y),N=y.computed(()=>e.emotion==="excited"||e.emotion==="eureka"||e.emotion==="eurekaClap"),R=y.computed(()=>({transform:`rotate(${E.value*.4}deg)`})),P=y.computed(()=>{const W={transformBox:"fill-box",transformOrigin:"right center",transition:"transform 0.35s ease","--arm-base":`${h.value.l}deg`};return h.value.la||(W.transform=`rotate(${h.value.l}deg)`),W}),O=y.computed(()=>{const W={transformBox:"fill-box",transformOrigin:"left center",transition:"transform 0.35s ease","--arm-base":`${h.value.r}deg`};return h.value.ra||(W.transform=`rotate(${h.value.r}deg)`),W}),G=["closed","happy","sad","angry","dizzy","smug"],F=y.computed(()=>T.value&&!G.includes(l.value.eyes)?"closed":l.value.eyes),B=[{x:70,y:78,delay:0},{x:172,y:84,delay:.4},{x:160,y:150,delay:.8}];function $(W,V){return`M ${W} ${V-7} L ${W+2} ${V-2} L ${W+7} ${V} L ${W+2} ${V+2} L ${W} ${V+7} L ${W-2} ${V+2} L ${W-7} ${V} L ${W-2} ${V-2} Z`}const j=[0,45,90,135,180,225,270,315];return(W,V)=>(y.openBlock(),y.createElementBlock("div",{ref_key:"wrapRef",ref:w,class:"relative flex w-full max-w-[300px] items-center justify-center","aria-hidden":"true"},[y.createElementVNode("div",{style:y.normalizeStyle(R.value)},[y.createElementVNode("div",{class:y.normalizeClass(c.value)},[(y.openBlock(),y.createElementBlock("svg",aB,[y.createElementVNode("line",{x1:"120",y1:"42",x2:"120",y2:"30",stroke:u.value,"stroke-width":"6","stroke-linecap":"round"},null,8,nB),y.createElementVNode("circle",{cx:"120",cy:"22",r:"11",fill:v.value,style:y.normalizeStyle({transition:"fill 0.6s ease",filter:`drop-shadow(0 0 5px ${v.value})`}),class:y.normalizeClass(["animate-antenna-pulse",p.value==="scan-ring"||r.action==="signalBreathe"?"animate-signal-breathe":"",d.value])},null,14,iB),y.createElementVNode("rect",{x:"44",y:"40",width:"152",height:"152",rx:"54",fill:u.value,style:{transition:"fill 0.3s ease"}},null,8,oB),V[46]||(V[46]=y.createElementVNode("rect",{x:"44",y:"40",width:"152",height:"152",rx:"54",fill:"oklch(1 0 0 / 0.08)"},null,-1)),l.value.blush||l.value.blushStrong?(y.openBlock(),y.createElementBlock(y.Fragment,{key:0},[y.createElementVNode("ellipse",{cx:"72",cy:"128",rx:l.value.blushStrong?14:11,ry:l.value.blushStrong?10:8,fill:"var(--robot-amber)",opacity:l.value.blushStrong?.95:.85},null,8,sB),y.createElementVNode("ellipse",{cx:"168",cy:"128",rx:l.value.blushStrong?14:11,ry:l.value.blushStrong?10:8,fill:"var(--robot-amber)",opacity:l.value.blushStrong?.95:.85},null,8,lB)],64)):y.createCommentVNode("",!0),l.value.blushPink?(y.openBlock(),y.createElementBlock(y.Fragment,{key:1},[V[0]||(V[0]=y.createElementVNode("ellipse",{cx:"73",cy:"129",rx:"13",ry:"9",fill:"oklch(0.72 0.22 0)",opacity:"0.72"},null,-1)),V[1]||(V[1]=y.createElementVNode("ellipse",{cx:"167",cy:"129",rx:"13",ry:"9",fill:"oklch(0.72 0.22 0)",opacity:"0.72"},null,-1))],64)):y.createCommentVNode("",!0),V[47]||(V[47]=y.createElementVNode("rect",{x:"66",y:"66",width:"108",height:"92",rx:"32",fill:"var(--robot-screen)"},null,-1)),l.value.screenTint?(y.openBlock(),y.createElementBlock("rect",{key:2,x:"66",y:"66",width:"108",height:"92",rx:"32",fill:l.value.screenTint},null,8,uB)):y.createCommentVNode("",!0),V[48]||(V[48]=y.createElementVNode("rect",{x:"66",y:"66",width:"108",height:"40",rx:"20",fill:"oklch(1 0 0 / 0.06)"},null,-1)),F.value==="closed"?(y.openBlock(),y.createElementBlock("g",{key:3,stroke:te,"stroke-width":"5","stroke-linecap":"round",fill:"none"},[y.createElementVNode("path",{d:`M ${ye-11} ${X} q 11 7 22 0`},null,8,cB),y.createElementVNode("path",{d:`M ${Se-11} ${X} q 11 7 22 0`},null,8,fB)])):F.value==="happy"?(y.openBlock(),y.createElementBlock("g",{key:4,stroke:te,"stroke-width":"6","stroke-linecap":"round",fill:"none"},[y.createElementVNode("path",{d:`M ${ye-11} ${X+3} q 11 -16 22 0`},null,8,hB),y.createElementVNode("path",{d:`M ${Se-11} ${X+3} q 11 -16 22 0`},null,8,vB)])):F.value==="arcHappy"?(y.openBlock(),y.createElementBlock("g",dB,[y.createElementVNode("path",{d:`M ${ye-13} ${X+4} q 13 -20 26 0`,stroke:te,"stroke-width":"7","stroke-linecap":"round",fill:"none"},null,8,pB),y.createElementVNode("path",{d:`M ${Se-13} ${X+4} q 13 -20 26 0`,stroke:te,"stroke-width":"7","stroke-linecap":"round",fill:"none"},null,8,gB),y.createElementVNode("rect",{x:ye-14,y:X-14,width:"28",height:"18",fill:"var(--robot-screen)"},null,8,mB),y.createElementVNode("rect",{x:Se-14,y:X-14,width:"28",height:"18",fill:"var(--robot-screen)"},null,8,yB)])):F.value==="narrow"?(y.openBlock(),y.createElementBlock("g",{key:6,fill:te},[y.createElementVNode("ellipse",{cx:ye+M.value*.4,cy:X,rx:"5",ry:"11"},null,8,_B),y.createElementVNode("ellipse",{cx:Se+M.value*.4,cy:X,rx:"5",ry:"11"},null,8,SB),y.createElementVNode("line",{x1:ye-11,y1:X-12,x2:ye+9,y2:X-6,stroke:te,"stroke-width":"5","stroke-linecap":"round"},null,8,xB),y.createElementVNode("line",{x1:Se+11,y1:X-12,x2:Se-9,y2:X-6,stroke:te,"stroke-width":"5","stroke-linecap":"round"},null,8,bB)])):F.value==="droopy"?(y.openBlock(),y.createElementBlock("g",{key:7,fill:te},[y.createElementVNode("ellipse",{cx:ye,cy:X+3,rx:"8",ry:"10"},null,8,wB),y.createElementVNode("ellipse",{cx:Se,cy:X+3,rx:"8",ry:"10"},null,8,CB),y.createElementVNode("line",{x1:ye+5,y1:X-8,x2:ye+12,y2:X-2,stroke:te,"stroke-width":"4","stroke-linecap":"round"},null,8,TB),y.createElementVNode("line",{x1:Se-5,y1:X-8,x2:Se-12,y2:X-2,stroke:te,"stroke-width":"4","stroke-linecap":"round"},null,8,EB)])):F.value==="softRound"?(y.openBlock(),y.createElementBlock("g",{key:8,fill:te},[y.createElementVNode("circle",{cx:ye+M.value*.2,cy:X+L.value*.2,r:"9"},null,8,DB),y.createElementVNode("circle",{cx:Se+M.value*.2,cy:X+L.value*.2,r:"9"},null,8,kB),y.createElementVNode("circle",{cx:ye+3,cy:X-3,r:"2.5",fill:"var(--robot-screen)"},null,8,AB),y.createElementVNode("circle",{cx:Se+3,cy:X-3,r:"2.5",fill:"var(--robot-screen)"},null,8,MB)])):F.value==="bigRound"?(y.openBlock(),y.createElementBlock("g",{key:9,fill:te},[y.createElementVNode("circle",{cx:ye,cy:X,r:"15",fill:"oklch(1 0 0 / 0.96)"}),y.createElementVNode("circle",{cx:Se,cy:X,r:"15",fill:"oklch(1 0 0 / 0.96)"}),y.createElementVNode("circle",{cx:ye+M.value*.5,cy:X+L.value*.5,r:"8",fill:te},null,8,IB),y.createElementVNode("circle",{cx:Se+M.value*.5,cy:X+L.value*.5,r:"8",fill:te},null,8,LB),y.createElementVNode("circle",{cx:ye+5,cy:X-5,r:"3",fill:"oklch(1 0 0 / 0.9)"},null,8,NB),y.createElementVNode("circle",{cx:Se+5,cy:X-5,r:"3",fill:"oklch(1 0 0 / 0.9)"},null,8,PB)])):F.value==="halfDroopy"?(y.openBlock(),y.createElementBlock("g",{key:10,fill:te},[y.createElementVNode("ellipse",{cx:ye,cy:X+2,rx:"10",ry:"11",fill:"oklch(1 0 0 / 0.9)"},null,8,RB),y.createElementVNode("ellipse",{cx:Se,cy:X+2,rx:"10",ry:"11",fill:"oklch(1 0 0 / 0.9)"},null,8,OB),y.createElementVNode("ellipse",{cx:ye,cy:X+5,rx:"6",ry:"7",fill:te},null,8,VB),y.createElementVNode("ellipse",{cx:Se,cy:X+5,rx:"6",ry:"7",fill:te},null,8,BB),y.createElementVNode("rect",{x:ye-12,y:X-12,width:"24",height:"12",fill:"var(--robot-screen)"},null,8,zB),y.createElementVNode("rect",{x:Se-12,y:X-12,width:"24",height:"12",fill:"var(--robot-screen)"},null,8,GB)])):F.value==="peekSlit"?(y.openBlock(),y.createElementBlock("g",{key:11,stroke:te,"stroke-width":"4","stroke-linecap":"round",fill:"none"},[y.createElementVNode("line",{x1:ye-9,y1:X,x2:ye+9,y2:X},null,8,FB),y.createElementVNode("line",{x1:Se-9,y1:X,x2:Se+9,y2:X},null,8,HB)])):F.value==="halfSquint"?(y.openBlock(),y.createElementBlock("g",{key:12,fill:te},[y.createElementVNode("ellipse",{cx:ye,cy:X+1,rx:"7",ry:"9",fill:"oklch(1 0 0 / 0.9)"},null,8,$B),y.createElementVNode("ellipse",{cx:ye+2,cy:X+2,rx:"4.5",ry:"6",fill:te},null,8,UB),y.createElementVNode("rect",{x:ye-9,y:X-10,width:"18",height:"9",fill:"var(--robot-screen)"},null,8,WB),y.createElementVNode("ellipse",{cx:Se,cy:X,rx:"9",ry:"11",fill:"oklch(1 0 0 / 0.9)"}),y.createElementVNode("ellipse",{cx:Se+3,cy:X+1,rx:"6",ry:"7",fill:te},null,8,YB)])):F.value==="scaredWide"?(y.openBlock(),y.createElementBlock("g",{key:13,fill:te},[y.createElementVNode("circle",{cx:ye,cy:X,r:"14",fill:"oklch(1 0 0 / 0.98)"}),y.createElementVNode("circle",{cx:Se,cy:X,r:"14",fill:"oklch(1 0 0 / 0.98)"}),y.createElementVNode("circle",{cx:ye+3,cy:X+2,r:"7",fill:te},null,8,XB),y.createElementVNode("circle",{cx:Se-3,cy:X+2,r:"7",fill:te},null,8,ZB),y.createElementVNode("circle",{cx:ye+6,cy:X-3,r:"2.5",fill:"oklch(1 0 0 / 0.95)"},null,8,qB),y.createElementVNode("circle",{cx:Se-1,cy:X-3,r:"2.5",fill:"oklch(1 0 0 / 0.95)"},null,8,KB)])):F.value==="narrowSlant"?(y.openBlock(),y.createElementBlock("g",{key:14,fill:te},[y.createElementVNode("ellipse",{cx:ye,cy:X,rx:"11",ry:"8",fill:"oklch(1 0 0 / 0.92)"}),y.createElementVNode("ellipse",{cx:Se,cy:X,rx:"11",ry:"8",fill:"oklch(1 0 0 / 0.92)"}),y.createElementVNode("ellipse",{cx:ye+2,cy:X+1,rx:"5",ry:"6",fill:te},null,8,jB),y.createElementVNode("ellipse",{cx:Se-2,cy:X+1,rx:"5",ry:"6",fill:te},null,8,QB),y.createElementVNode("line",{x1:ye-12,y1:X-7,x2:ye+10,y2:X-4,stroke:te,"stroke-width":"5","stroke-linecap":"round"},null,8,JB),y.createElementVNode("line",{x1:Se-10,y1:X-4,x2:Se+12,y2:X-7,stroke:te,"stroke-width":"5","stroke-linecap":"round"},null,8,e5)])):F.value==="dashEyes"?(y.openBlock(),y.createElementBlock("g",{key:15,stroke:te,"stroke-width":"6","stroke-linecap":"round"},[y.createElementVNode("line",{x1:ye-10,y1:X,x2:ye+10,y2:X},null,8,t5),y.createElementVNode("line",{x1:Se-10,y1:X,x2:Se+10,y2:X},null,8,r5)])):F.value==="halfClosed"?(y.openBlock(),y.createElementBlock("g",a5,[y.createElementVNode("ellipse",{cx:ye,cy:X+2,rx:"11",ry:"12",fill:"oklch(1 0 0 / 0.88)"},null,8,n5),y.createElementVNode("ellipse",{cx:Se,cy:X+2,rx:"11",ry:"12",fill:"oklch(1 0 0 / 0.88)"},null,8,i5),y.createElementVNode("ellipse",{cx:ye,cy:X+5,rx:"6",ry:"7",fill:te},null,8,o5),y.createElementVNode("ellipse",{cx:Se,cy:X+5,rx:"6",ry:"7",fill:te},null,8,s5),y.createElementVNode("rect",{x:ye-13,y:X-13,width:"26",height:"16",fill:"var(--robot-screen)"},null,8,l5),y.createElementVNode("rect",{x:Se-13,y:X-13,width:"26",height:"16",fill:"var(--robot-screen)"},null,8,u5),y.createElementVNode("path",{d:`M ${ye-11} ${X+3} q 11 -6 22 0`,stroke:te,"stroke-width":"4.5","stroke-linecap":"round",fill:"none"},null,8,c5),y.createElementVNode("path",{d:`M ${Se-11} ${X+3} q 11 -6 22 0`,stroke:te,"stroke-width":"4.5","stroke-linecap":"round",fill:"none"},null,8,f5)])):F.value==="thinkEyes"?(y.openBlock(),y.createElementBlock("g",{key:17,fill:te},[y.createElementVNode("ellipse",{cx:ye,cy:X,rx:"9",ry:"10",fill:"oklch(1 0 0 / 0.9)"}),y.createElementVNode("ellipse",{cx:Se,cy:X,rx:"9",ry:"10",fill:"oklch(1 0 0 / 0.9)"}),y.createElementVNode("ellipse",{cx:ye,cy:X-2,rx:"5.5",ry:"6.5",fill:te},null,8,h5),y.createElementVNode("ellipse",{cx:Se,cy:X-2,rx:"5.5",ry:"6.5",fill:te},null,8,v5),y.createElementVNode("line",{x1:ye-8,y1:X-12,x2:ye+6,y2:X-9,stroke:te,"stroke-width":"3.5","stroke-linecap":"round"},null,8,d5),y.createElementVNode("line",{x1:Se-6,y1:X-9,x2:Se+8,y2:X-12,stroke:te,"stroke-width":"3.5","stroke-linecap":"round"},null,8,p5)])):F.value==="blankDot"?(y.openBlock(),y.createElementBlock("g",{key:18,fill:te},[y.createElementVNode("circle",{cx:ye,cy:X,r:"10",fill:"oklch(1 0 0 / 0.9)"}),y.createElementVNode("circle",{cx:Se,cy:X,r:"10",fill:"oklch(1 0 0 / 0.9)"}),y.createElementVNode("circle",{cx:ye,cy:X,r:"4",fill:te}),y.createElementVNode("circle",{cx:Se,cy:X,r:"4",fill:te})])):F.value==="heavyLid"?(y.openBlock(),y.createElementBlock("g",g5,[y.createElementVNode("ellipse",{cx:ye,cy:X+3,rx:"11",ry:"12",fill:"oklch(1 0 0 / 0.85)"},null,8,m5),y.createElementVNode("ellipse",{cx:Se,cy:X+3,rx:"11",ry:"12",fill:"oklch(1 0 0 / 0.85)"},null,8,y5),y.createElementVNode("ellipse",{cx:ye,cy:X+7,rx:"5",ry:"6",fill:te},null,8,_5),y.createElementVNode("ellipse",{cx:Se,cy:X+7,rx:"5",ry:"6",fill:te},null,8,S5),y.createElementVNode("rect",{x:ye-13,y:X-14,width:"26",height:"20",fill:"var(--robot-screen)"},null,8,x5),y.createElementVNode("rect",{x:Se-13,y:X-14,width:"26",height:"20",fill:"var(--robot-screen)"},null,8,b5),y.createElementVNode("path",{d:`M ${ye-11} ${X+6} q 11 -4 22 0`,stroke:te,"stroke-width":"5","stroke-linecap":"round",fill:"none"},null,8,w5),y.createElementVNode("path",{d:`M ${Se-11} ${X+6} q 11 -4 22 0`,stroke:te,"stroke-width":"5","stroke-linecap":"round",fill:"none"},null,8,C5)])):F.value==="smug"?(y.openBlock(),y.createElementBlock("g",{key:20,stroke:te,"stroke-width":"5","stroke-linecap":"round",fill:"none"},[y.createElementVNode("path",{d:`M ${ye-11} ${X-2} q 11 9 22 2`},null,8,T5),y.createElementVNode("path",{d:`M ${Se-11} ${X-2} q 11 9 22 2`},null,8,E5)])):F.value==="cool"?(y.openBlock(),y.createElementBlock("g",{key:21,stroke:te,"stroke-width":"5","stroke-linecap":"round"},[y.createElementVNode("line",{x1:ye-11,y1:X,x2:ye+11,y2:X},null,8,D5),y.createElementVNode("line",{x1:Se-11,y1:X,x2:Se+11,y2:X},null,8,k5)])):F.value==="sad"?(y.openBlock(),y.createElementBlock("g",{key:22,stroke:te,"stroke-width":"6","stroke-linecap":"round",fill:"none"},[y.createElementVNode("path",{d:`M ${ye-11} ${X-1} q 11 14 22 0`},null,8,A5),y.createElementVNode("path",{d:`M ${Se-11} ${X-1} q 11 14 22 0`},null,8,M5)])):F.value==="teary"?(y.openBlock(),y.createElementBlock("g",{key:23,fill:te},[y.createElementVNode("circle",{cx:ye,cy:X+1,r:"11",fill:"oklch(1 0 0 / 0.95)"},null,8,I5),y.createElementVNode("circle",{cx:Se,cy:X+1,r:"11",fill:"oklch(1 0 0 / 0.95)"},null,8,L5),y.createElementVNode("circle",{cx:ye+M.value*.3,cy:X+3+L.value*.3,r:"6.5",fill:te},null,8,N5),y.createElementVNode("circle",{cx:Se+M.value*.3,cy:X+3+L.value*.3,r:"6.5",fill:te},null,8,P5),y.createElementVNode("circle",{cx:ye+3,cy:X-3,r:"2.5",fill:"oklch(1 0 0 / 0.95)"},null,8,R5),y.createElementVNode("circle",{cx:Se+3,cy:X-3,r:"2.5",fill:"oklch(1 0 0 / 0.95)"},null,8,O5)])):F.value==="angry"?(y.openBlock(),y.createElementBlock(y.Fragment,{key:24},[y.createElementVNode("g",{stroke:te,"stroke-width":"5","stroke-linecap":"round"},[y.createElementVNode("line",{x1:ye-12,y1:X-13,x2:ye+8,y2:X-6},null,8,V5),y.createElementVNode("line",{x1:Se+12,y1:X-13,x2:Se-8,y2:X-6},null,8,B5)]),y.createElementVNode("g",{fill:te},[y.createElementVNode("ellipse",{cx:ye+M.value*.4,cy:X+2,rx:"7",ry:"8"},null,8,z5),y.createElementVNode("ellipse",{cx:Se+M.value*.4,cy:X+2,rx:"7",ry:"8"},null,8,G5)])],64)):F.value==="excited"?(y.openBlock(),y.createElementBlock("g",{key:25,fill:te},[y.createElementVNode("circle",{cx:ye+M.value*.3,cy:X+L.value*.3,r:"13"},null,8,F5),y.createElementVNode("circle",{cx:Se+M.value*.3,cy:X+L.value*.3,r:"13"},null,8,H5),y.createElementVNode("circle",{cx:ye+4,cy:X-4,r:"3",fill:"var(--robot-screen)"},null,8,$5),y.createElementVNode("circle",{cx:Se+4,cy:X-4,r:"3",fill:"var(--robot-screen)"},null,8,U5)])):F.value==="lookup"?(y.openBlock(),y.createElementBlock("g",{key:26,fill:te},[y.createElementVNode("ellipse",{cx:ye+M.value*.4,cy:X-4,rx:"7",ry:"9"},null,8,W5),y.createElementVNode("ellipse",{cx:Se+M.value*.4,cy:X-4,rx:"7",ry:"9"},null,8,Y5)])):F.value==="lookdown"?(y.openBlock(),y.createElementBlock("g",{key:27,fill:te},[y.createElementVNode("ellipse",{cx:ye,cy:X+5,rx:"7",ry:"9"},null,8,X5),y.createElementVNode("ellipse",{cx:Se,cy:X+5,rx:"7",ry:"9"},null,8,Z5)])):F.value==="wide"?(y.openBlock(),y.createElementBlock("g",{key:28,fill:te},[y.createElementVNode("circle",{cx:ye,cy:X,r:"13",fill:"oklch(1 0 0 / 0.95)"}),y.createElementVNode("circle",{cx:Se,cy:X,r:"13",fill:"oklch(1 0 0 / 0.95)"}),y.createElementVNode("circle",{cx:ye+M.value*.5,cy:X+L.value*.5,r:"6",fill:te},null,8,q5),y.createElementVNode("circle",{cx:Se+M.value*.5,cy:X+L.value*.5,r:"6",fill:te},null,8,K5)])):F.value==="half"?(y.openBlock(),y.createElementBlock(y.Fragment,{key:29},[y.createElementVNode("g",{fill:te},[y.createElementVNode("ellipse",{cx:ye,cy:X+3,rx:"7",ry:"5"},null,8,j5),y.createElementVNode("ellipse",{cx:Se,cy:X+3,rx:"7",ry:"5"},null,8,Q5)]),y.createElementVNode("g",{stroke:te,"stroke-width":"5","stroke-linecap":"round"},[y.createElementVNode("line",{x1:ye-11,y1:X-4,x2:ye+11,y2:X-4},null,8,J5),y.createElementVNode("line",{x1:Se-11,y1:X-4,x2:Se+11,y2:X-4},null,8,e3)]),r.emotion==="tired"?(y.openBlock(),y.createElementBlock("g",{key:0,stroke:te,"stroke-width":"2.5","stroke-linecap":"round",fill:"none",opacity:"0.6"},[y.createElementVNode("path",{d:`M ${ye-9} ${X+12} q 9 5 18 0`},null,8,t3),y.createElementVNode("path",{d:`M ${Se-9} ${X+12} q 9 5 18 0`},null,8,r3)])):y.createCommentVNode("",!0)],64)):F.value==="dizzy"?(y.openBlock(),y.createElementBlock("g",{key:30,stroke:te,"stroke-width":"3",fill:"none","stroke-linecap":"round"},[y.createElementVNode("path",{d:`M ${ye} ${X} m -8 0 a 8 8 0 1 1 5 7`},null,8,a3),y.createElementVNode("path",{d:`M ${Se} ${X} m -8 0 a 8 8 0 1 1 5 7`},null,8,n3)])):F.value==="confused"?(y.openBlock(),y.createElementBlock(y.Fragment,{key:31},[y.createElementVNode("circle",{cx:ye,cy:X,r:"10",fill:"oklch(1 0 0 / 0.95)"}),y.createElementVNode("circle",{cx:ye+M.value*.4,cy:X+L.value*.4,r:"5",fill:te},null,8,i3),y.createElementVNode("line",{x1:Se-9,y1:X,x2:Se+9,y2:X,stroke:te,"stroke-width":"5","stroke-linecap":"round"},null,8,o3)],64)):F.value==="blank"?(y.openBlock(),y.createElementBlock("g",{key:32,fill:te,opacity:"0.55"},[y.createElementVNode("circle",{cx:ye,cy:X,r:"5"}),y.createElementVNode("circle",{cx:Se,cy:X,r:"5"})])):(y.openBlock(),y.createElementBlock("g",{key:33,fill:te},[y.createElementVNode("rect",{x:ye-8+M.value,y:X-12+L.value,width:"16",height:"24",rx:"8"},null,8,s3),y.createElementVNode("rect",{x:Se-8+M.value,y:X-12+L.value,width:"16",height:"24",rx:"8"},null,8,l3)])),r.speaking?(y.openBlock(),y.createElementBlock("ellipse",{key:34,cx:"120",cy:"138",rx:"13",ry:"10",fill:te,class:"origin-center animate-wave",style:{transformBox:"fill-box",transformOrigin:"center"}})):(y.openBlock(),y.createElementBlock(y.Fragment,{key:35},[l.value.mouth==="smile"?(y.openBlock(),y.createElementBlock("path",{key:0,d:"M 104 134 q 16 16 32 0",stroke:te,"stroke-width":"5","stroke-linecap":"round",fill:"none"})):l.value.mouth==="open"?(y.openBlock(),y.createElementBlock("path",{key:1,d:"M 104 132 q 16 22 32 0 q -16 6 -32 0 Z",fill:te})):l.value.mouth==="bigopen"?(y.openBlock(),y.createElementBlock("ellipse",{key:2,cx:"120",cy:"140",rx:"11",ry:"14",fill:te})):l.value.mouth==="frown"?(y.openBlock(),y.createElementBlock("path",{key:3,d:"M 106 142 q 14 -12 28 0",stroke:te,"stroke-width":"5","stroke-linecap":"round",fill:"none"})):l.value.mouth==="dot"?(y.openBlock(),y.createElementBlock("ellipse",{key:4,cx:"120",cy:"138",rx:"7",ry:"6",fill:te,opacity:"0.85"})):l.value.mouth==="flat"?(y.openBlock(),y.createElementBlock("line",{key:5,x1:"110",y1:"138",x2:"130",y2:"138",stroke:te,"stroke-width":"5","stroke-linecap":"round"})):l.value.mouth==="o"?(y.openBlock(),y.createElementBlock("ellipse",{key:6,cx:"120",cy:"139",rx:"7",ry:"9",fill:te})):l.value.mouth==="pout"?(y.openBlock(),y.createElementBlock("ellipse",{key:7,cx:"120",cy:"140",rx:"6",ry:"5",fill:te})):l.value.mouth==="wavy"?(y.openBlock(),y.createElementBlock("path",{key:8,d:"M 106 138 q 6 -7 12 0 q 6 7 12 0",stroke:te,"stroke-width":"4","stroke-linecap":"round",fill:"none"})):l.value.mouth==="calm"?(y.openBlock(),y.createElementBlock("path",{key:9,d:"M 110 138 q 10 5 20 0",stroke:te,"stroke-width":"4","stroke-linecap":"round",fill:"none"})):l.value.mouth==="grit"?(y.openBlock(),y.createElementBlock("g",u3,[y.createElementVNode("rect",{x:"106",y:"134",width:"28",height:"10",rx:"3",fill:te}),V[2]||(V[2]=y.createElementVNode("line",{x1:"115",y1:"134",x2:"115",y2:"144",stroke:"var(--robot-screen)","stroke-width":"2"},null,-1)),V[3]||(V[3]=y.createElementVNode("line",{x1:"125",y1:"134",x2:"125",y2:"144",stroke:"var(--robot-screen)","stroke-width":"2"},null,-1))])):l.value.mouth==="bigSmile"?(y.openBlock(),y.createElementBlock("path",{key:11,d:"M 100 132 q 20 22 40 0",stroke:te,"stroke-width":"6","stroke-linecap":"round",fill:"none"})):l.value.mouth==="bigFrown"?(y.openBlock(),y.createElementBlock("path",{key:12,d:"M 100 146 q 20 -20 40 0",stroke:te,"stroke-width":"6","stroke-linecap":"round",fill:"none"})):l.value.mouth==="bitterSmile"?(y.openBlock(),y.createElementBlock("path",{key:13,d:"M 106 140 q 8 -4 14 2 q 6 4 14 -4",stroke:te,"stroke-width":"5","stroke-linecap":"round",fill:"none"})):l.value.mouth==="heartMouth"?(y.openBlock(),y.createElementBlock("path",{key:14,d:"M 120 142 C 114 135, 108 132, 108 128 C 108 122, 116 122, 120 128 C 124 122, 132 122, 132 128 C 132 132, 126 135, 120 142 Z",fill:te,opacity:"0.9"})):l.value.mouth==="awkwardSmile"?(y.openBlock(),y.createElementBlock("path",{key:15,d:"M 108 140 q 6 -6 12 0 q 7 6 12 -3",stroke:te,"stroke-width":"5","stroke-linecap":"round",fill:"none"})):l.value.mouth==="poutBig"?(y.openBlock(),y.createElementBlock("g",c3,[y.createElementVNode("ellipse",{cx:"120",cy:"141",rx:"12",ry:"8",fill:te,opacity:"0.85"}),V[4]||(V[4]=y.createElementVNode("ellipse",{cx:"120",cy:"137",rx:"10",ry:"5",fill:"oklch(1 0 0 / 0.25)"},null,-1))])):(y.openBlock(),y.createElementBlock("path",{key:17,d:"M 108 136 q 12 8 24 0",stroke:te,"stroke-width":"5","stroke-linecap":"round",fill:"none"}))],64)),l.value.sweat?(y.openBlock(),y.createElementBlock("path",f3)):y.createCommentVNode("",!0),l.value.tear?(y.openBlock(),y.createElementBlock("ellipse",{key:37,cx:Se+11,cy:X+14,rx:"4",ry:"6",fill:te,opacity:"0.9"},null,8,h3)):y.createCommentVNode("",!0),l.value.tear2?(y.openBlock(),y.createElementBlock("ellipse",{key:38,cx:ye-11,cy:X+14,rx:"4",ry:"6",fill:te,opacity:"0.9"},null,8,v3)):y.createCommentVNode("",!0),N.value?(y.openBlock(),y.createElementBlock(y.Fragment,{key:39},y.renderList(B,(q,Ce)=>y.createElementVNode("path",{key:Ce,d:$(q.x,q.y),fill:"var(--robot-amber)",class:"animate-sparkle",style:y.normalizeStyle({animationDelay:`${q.delay}s`,transformBox:"fill-box",transformOrigin:"center"})},null,12,d3)),64)):y.createCommentVNode("",!0),l.value.sym==="anger"?(y.openBlock(),y.createElementBlock("g",{key:40,stroke:l.value.symColor,"stroke-width":"3.5","stroke-linecap":"round",class:"animate-alert-flash"},[...V[5]||(V[5]=[y.createElementVNode("path",{d:"M 160 60 l 8 0 M 164 56 l 0 8"},null,-1),y.createElementVNode("path",{d:"M 174 70 l 6 4 M 180 70 l -6 4"},null,-1)])],8,p3)):l.value.sym==="question"?(y.openBlock(),y.createElementBlock("text",{key:41,x:"160",y:"74","font-size":"26",fill:l.value.symColor,"font-weight":"bold"},"?",8,g3)):l.value.sym==="exclaim"?(y.openBlock(),y.createElementBlock("text",{key:42,x:"162",y:"74","font-size":"26",fill:l.value.symColor,"font-weight":"bold"},"!",8,m3)):l.value.sym==="ellipsis"?(y.openBlock(),y.createElementBlock("g",{key:43,fill:l.value.symColor},[...V[6]||(V[6]=[y.createElementVNode("circle",{cx:"156",cy:"66",r:"3",class:"animate-dot-blink",style:{"animation-delay":"0s"}},null,-1),y.createElementVNode("circle",{cx:"166",cy:"66",r:"3",class:"animate-dot-blink",style:{"animation-delay":"0.2s"}},null,-1),y.createElementVNode("circle",{cx:"176",cy:"66",r:"3",class:"animate-dot-blink",style:{"animation-delay":"0.4s"}},null,-1)])],8,y3)):l.value.sym==="bulb"?(y.openBlock(),y.createElementBlock("g",_3,[y.createElementVNode("circle",{cx:"166",cy:"58",r:"11",fill:l.value.symColor,class:"animate-antenna-pulse origin-center"},null,8,S3),V[7]||(V[7]=y.createStaticVNode('<rect x="161" y="68" width="10" height="6" rx="2" fill="var(--robot-blue-dark)" data-v-c1f1f037></rect><g stroke="var(--robot-amber)" stroke-width="2" stroke-linecap="round" data-v-c1f1f037><line x1="166" y1="40" x2="166" y2="44" data-v-c1f1f037></line><line x1="182" y1="50" x2="179" y2="52" data-v-c1f1f037></line><line x1="150" y1="50" x2="153" y2="52" data-v-c1f1f037></line></g>',2))])):l.value.sym==="check"?(y.openBlock(),y.createElementBlock("path",{key:45,d:"M 156 64 l 6 7 l 12 -15",stroke:l.value.symColor,"stroke-width":"5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,x3)):l.value.sym==="gear"?(y.openBlock(),y.createElementBlock("g",b3,[y.createElementVNode("g",{fill:l.value.symColor},[(y.openBlock(),y.createElementBlock(y.Fragment,null,y.renderList(j,q=>y.createElementVNode("rect",{key:q,x:"165",y:"46",width:"6",height:"8",rx:"1.5",transform:`rotate(${q} 168 62)`},null,8,C3)),64)),V[8]||(V[8]=y.createElementVNode("circle",{cx:"168",cy:"62",r:"11"},null,-1))],8,w3),V[9]||(V[9]=y.createElementVNode("circle",{cx:"168",cy:"62",r:"4.5",fill:"var(--robot-screen)"},null,-1))])):l.value.sym==="pencil"?(y.openBlock(),y.createElementBlock("g",T3,[y.createElementVNode("rect",{x:"164",y:"46",width:"8",height:"22",rx:"2",fill:l.value.symColor},null,8,E3),V[10]||(V[10]=y.createElementVNode("rect",{x:"164",y:"44",width:"8",height:"6",fill:"var(--robot-amber)"},null,-1)),V[11]||(V[11]=y.createElementVNode("path",{d:"M 164 68 l 4 8 l 4 -8 Z",fill:"var(--robot-screen)"},null,-1))])):l.value.sym==="bell"?(y.openBlock(),y.createElementBlock("g",D3,[y.createElementVNode("path",{d:"M 168 46 a 11 11 0 0 1 11 11 v 6 l 3 4 h -28 l 3 -4 v -6 a 11 11 0 0 1 11 -11 Z",fill:l.value.symColor},null,8,k3),y.createElementVNode("circle",{cx:"168",cy:"73",r:"3",fill:l.value.symColor},null,8,A3)])):l.value.sym==="loader"?(y.openBlock(),y.createElementBlock("g",M3,[y.createElementVNode("path",{d:"M 168 48 a 12 12 0 1 1 -8.5 3.5",fill:"none",stroke:l.value.symColor,"stroke-width":"4","stroke-linecap":"round"},null,8,I3)])):l.value.sym==="warning"?(y.openBlock(),y.createElementBlock("g",L3,[y.createElementVNode("path",{d:"M 168 46 l 14 26 l -28 0 Z",fill:l.value.symColor,stroke:"var(--robot-screen)","stroke-width":"1.5","stroke-linejoin":"round"},null,8,N3),V[12]||(V[12]=y.createElementVNode("line",{x1:"168",y1:"56",x2:"168",y2:"64",stroke:"var(--robot-screen)","stroke-width":"3","stroke-linecap":"round"},null,-1)),V[13]||(V[13]=y.createElementVNode("circle",{cx:"168",cy:"69",r:"1.8",fill:"var(--robot-screen)"},null,-1))])):l.value.sym==="siren"?(y.openBlock(),y.createElementBlock("g",P3,[y.createElementVNode("g",R3,[y.createElementVNode("path",{d:"M 156 70 a 12 12 0 0 1 24 0 Z",fill:l.value.symColor},null,8,O3),y.createElementVNode("rect",{x:"152",y:"70",width:"32",height:"5",rx:"2",fill:l.value.symColor},null,8,V3)]),y.createElementVNode("g",{stroke:l.value.symColor,"stroke-width":"2.5","stroke-linecap":"round",class:"animate-alert-flash",opacity:"0.7"},[...V[14]||(V[14]=[y.createElementVNode("line",{x1:"146",y1:"56",x2:"150",y2:"60"},null,-1),y.createElementVNode("line",{x1:"190",y1:"56",x2:"186",y2:"60"},null,-1),y.createElementVNode("line",{x1:"168",y1:"44",x2:"168",y2:"49"},null,-1)])],8,B3)])):l.value.sym==="broken"?(y.openBlock(),y.createElementBlock("path",{key:52,d:"M 170 46 l -10 16 l 7 0 l -5 14 l 14 -20 l -8 0 l 6 -10 Z",fill:l.value.symColor,class:"animate-alert-flash",stroke:"var(--robot-screen)","stroke-width":"1","stroke-linejoin":"round"},null,8,z3)):l.value.sym==="scan"?(y.openBlock(),y.createElementBlock("g",G3,[y.createElementVNode("circle",{cx:"166",cy:"60",r:"9",fill:"none",stroke:l.value.symColor,"stroke-width":"3"},null,8,F3),y.createElementVNode("line",{x1:"173",y1:"67",x2:"180",y2:"74",stroke:l.value.symColor,"stroke-width":"3.5","stroke-linecap":"round"},null,8,H3)])):l.value.sym==="lotus"?(y.openBlock(),y.createElementBlock("g",$3,[y.createElementVNode("ellipse",{cx:"120",cy:"34",rx:"40",ry:"9",fill:"none",stroke:l.value.symColor,"stroke-width":"3",opacity:"0.8",class:"animate-antenna-pulse origin-center",style:{transformOrigin:"120px 34px"}},null,8,U3),y.createElementVNode("circle",{cx:"92",cy:"34",r:"2",fill:l.value.symColor},null,8,W3),y.createElementVNode("circle",{cx:"148",cy:"34",r:"2",fill:l.value.symColor},null,8,Y3)])):l.value.sym==="heart"?(y.openBlock(),y.createElementBlock("path",{key:55,d:"M 170 56 c -4 -6 -13 -2 -8 5 c 2 3 8 7 8 7 c 0 0 6 -4 8 -7 c 5 -7 -4 -11 -8 -5 Z",fill:l.value.symColor,class:"animate-antenna-pulse origin-center",style:{transformOrigin:"170px 60px"}},null,8,X3)):l.value.sym==="soundwave"?(y.openBlock(),y.createElementBlock("g",{key:56,stroke:l.value.symColor,"stroke-width":"3","stroke-linecap":"round",fill:"none"},[(y.openBlock(),y.createElementBlock(y.Fragment,null,y.renderList([0,.5,1],(q,Ce)=>y.createElementVNode("path",{key:Ce,d:"M 188 52 q 9 10 0 20",class:"animate-sound-ripple",style:y.normalizeStyle({transformOrigin:"188px 62px",animationDelay:`${q}s`})},null,4)),64))],8,Z3)):l.value.sym==="pin"?(y.openBlock(),y.createElementBlock("g",q3,[y.createElementVNode("path",{d:"M 168 44 a 11 11 0 0 1 11 11 c 0 8 -11 19 -11 19 c 0 0 -11 -11 -11 -19 a 11 11 0 0 1 11 -11 Z",fill:l.value.symColor},null,8,K3),V[15]||(V[15]=y.createElementVNode("circle",{cx:"168",cy:"55",r:"4",fill:"var(--robot-screen)"},null,-1)),y.createElementVNode("ellipse",{cx:"168",cy:"77",rx:"8",ry:"2.5",fill:l.value.symColor,opacity:"0.3"},null,8,j3)])):l.value.sym==="target"?(y.openBlock(),y.createElementBlock("g",{key:58,stroke:l.value.symColor,"stroke-width":"2.5",fill:"none"},[V[16]||(V[16]=y.createElementVNode("circle",{cx:"168",cy:"60",r:"13",class:"animate-target-pulse",style:{transformOrigin:"168px 60px"}},null,-1)),V[17]||(V[17]=y.createElementVNode("circle",{cx:"168",cy:"60",r:"6"},null,-1)),y.createElementVNode("circle",{cx:"168",cy:"60",r:"1.8",fill:l.value.symColor,stroke:"none"},null,8,J3),V[18]||(V[18]=y.createStaticVNode('<g stroke-linecap="round" data-v-c1f1f037><line x1="168" y1="42" x2="168" y2="49" data-v-c1f1f037></line><line x1="168" y1="71" x2="168" y2="78" data-v-c1f1f037></line><line x1="150" y1="60" x2="157" y2="60" data-v-c1f1f037></line><line x1="179" y1="60" x2="186" y2="60" data-v-c1f1f037></line></g>',1))],8,Q3)):l.value.sym==="book"?(y.openBlock(),y.createElementBlock("g",ez,[V[19]||(V[19]=y.createElementVNode("path",{d:"M 168 50 c -6 -4 -14 -4 -18 0 v 18 c 4 -4 12 -4 18 0 Z",fill:"oklch(0.96 0.02 95)",stroke:"var(--robot-amber)","stroke-width":"1.5"},null,-1)),V[20]||(V[20]=y.createElementVNode("path",{d:"M 168 50 c 6 -4 14 -4 18 0 v 18 c -4 -4 -12 -4 -18 0 Z",fill:"oklch(0.96 0.02 95)",stroke:"var(--robot-amber)","stroke-width":"1.5"},null,-1)),y.createElementVNode("line",{x1:"168",y1:"50",x2:"168",y2:"68",stroke:l.value.symColor,"stroke-width":"2"},null,8,tz),V[21]||(V[21]=y.createElementVNode("line",{x1:"154",y1:"57",x2:"163",y2:"56",stroke:"var(--robot-amber)","stroke-width":"1.2","stroke-linecap":"round"},null,-1)),V[22]||(V[22]=y.createElementVNode("line",{x1:"154",y1:"62",x2:"163",y2:"61",stroke:"var(--robot-amber)","stroke-width":"1.2","stroke-linecap":"round"},null,-1)),V[23]||(V[23]=y.createElementVNode("line",{x1:"173",y1:"56",x2:"182",y2:"57",stroke:"var(--robot-amber)","stroke-width":"1.2","stroke-linecap":"round"},null,-1)),V[24]||(V[24]=y.createElementVNode("line",{x1:"173",y1:"61",x2:"182",y2:"62",stroke:"var(--robot-amber)","stroke-width":"1.2","stroke-linecap":"round"},null,-1))])):l.value.sym==="plane"?(y.openBlock(),y.createElementBlock("g",rz,[y.createElementVNode("path",{d:"M 150 46 h 36 a 6 6 0 0 1 6 6 v 14 a 6 6 0 0 1 -6 6 h -20 l -8 8 v -8 h -2 a 6 6 0 0 1 -6 -6 v -14 a 6 6 0 0 1 6 -6 Z",fill:l.value.symColor},null,8,az),V[25]||(V[25]=y.createElementVNode("circle",{cx:"160",cy:"59",r:"2.6",fill:"oklch(1 0 0)",class:"animate-dot-blink",style:{animationDelay:"0s"}},null,-1)),V[26]||(V[26]=y.createElementVNode("circle",{cx:"168",cy:"59",r:"2.6",fill:"oklch(1 0 0)",class:"animate-dot-blink",style:{animationDelay:"0.2s"}},null,-1)),V[27]||(V[27]=y.createElementVNode("circle",{cx:"176",cy:"59",r:"2.6",fill:"oklch(1 0 0)",class:"animate-dot-blink",style:{animationDelay:"0.4s"}},null,-1))])):l.value.sym==="msgOk"?(y.openBlock(),y.createElementBlock("g",nz,[y.createElementVNode("path",{d:"M 150 46 h 36 a 6 6 0 0 1 6 6 v 14 a 6 6 0 0 1 -6 6 h -20 l -8 8 v -8 h -2 a 6 6 0 0 1 -6 -6 v -14 a 6 6 0 0 1 6 -6 Z",fill:l.value.symColor},null,8,iz),V[28]||(V[28]=y.createElementVNode("path",{d:"M 161 59 l 4 5 l 9 -10",stroke:"oklch(1 0 0)","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,-1))])):l.value.sym==="msgFail"?(y.openBlock(),y.createElementBlock("g",oz,[y.createElementVNode("path",{d:"M 150 46 h 36 a 6 6 0 0 1 6 6 v 14 a 6 6 0 0 1 -6 6 h -20 l -8 8 v -8 h -2 a 6 6 0 0 1 -6 -6 v -14 a 6 6 0 0 1 6 -6 Z",fill:l.value.symColor},null,8,sz),V[29]||(V[29]=y.createElementVNode("line",{x1:"168",y1:"52",x2:"168",y2:"62",stroke:"oklch(1 0 0)","stroke-width":"3","stroke-linecap":"round"},null,-1)),V[30]||(V[30]=y.createElementVNode("circle",{cx:"168",cy:"68",r:"2",fill:"oklch(1 0 0)"},null,-1))])):l.value.sym==="msgIn"?(y.openBlock(),y.createElementBlock("g",lz,[y.createElementVNode("path",{d:"M 150 46 h 36 a 6 6 0 0 1 6 6 v 14 a 6 6 0 0 1 -6 6 h -20 l -8 8 v -8 h -2 a 6 6 0 0 1 -6 -6 v -14 a 6 6 0 0 1 6 -6 Z",fill:l.value.symColor},null,8,uz),V[31]||(V[31]=y.createElementVNode("path",{d:"M 168 53 v 10 m 0 0 l -4 -4 m 4 4 l 4 -4",stroke:"oklch(1 0 0)","stroke-width":"2.6","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"animate-locate-bob",style:{transformOrigin:"168px 58px"}},null,-1))])):l.value.sym==="lightning"?(y.openBlock(),y.createElementBlock("g",cz,[y.createElementVNode("path",{d:"M 172 44 l -9 14 h 6 l -5 13 l 14 -18 h -7 l 6 -9 Z",fill:l.value.symColor,stroke:"oklch(1 0 0 / 0.3)","stroke-width":"0.8","stroke-linejoin":"round"},null,8,fz)])):l.value.sym==="sparkle2"?(y.openBlock(),y.createElementBlock("g",hz,[y.createElementVNode("path",{d:"M 168 46 l 2.5 8 l 8 0 l -6.5 5 l 2.5 8 l -6.5 -5 l -6.5 5 l 2.5 -8 l -6.5 -5 l 8 0 Z",fill:l.value.symColor},null,8,vz),y.createElementVNode("circle",{cx:"160",cy:"75",r:"2.5",fill:l.value.symColor,opacity:"0.7",class:"animate-dot-blink",style:{animationDelay:"0.3s"}},null,8,dz),y.createElementVNode("circle",{cx:"176",cy:"77",r:"1.8",fill:l.value.symColor,opacity:"0.6",class:"animate-dot-blink",style:{animationDelay:"0.6s"}},null,8,pz)])):l.value.sym==="zzz"?(y.openBlock(),y.createElementBlock("g",gz,[y.createElementVNode("text",{x:"158",y:"82","font-size":"8","font-weight":"700","font-family":"monospace",fill:l.value.symColor,class:"animate-dot-blink",style:{animationDelay:"0s"}},"Z",8,mz),y.createElementVNode("text",{x:"165",y:"73","font-size":"11","font-weight":"700","font-family":"monospace",fill:l.value.symColor,class:"animate-dot-blink",style:{animationDelay:"0.4s"}},"Z",8,yz),y.createElementVNode("text",{x:"174",y:"62","font-size":"14","font-weight":"700","font-family":"monospace",fill:l.value.symColor,class:"animate-dot-blink",style:{animationDelay:"0.8s"}},"Z",8,_z)])):l.value.sym==="shield"?(y.openBlock(),y.createElementBlock("g",Sz,[y.createElementVNode("path",{d:"M 156 46 C 156 43, 158 42, 162 42 L 174 42 C 178 42, 180 43, 180 46 L 180 62 C 180 70, 168 78, 168 78 C 168 78, 156 70, 156 62 Z",fill:l.value.symColor,opacity:"0.92"},null,8,xz),V[32]||(V[32]=y.createElementVNode("path",{d:"M 158 47 C 158 45, 160 44, 163 44 L 173 44 L 173 60 C 173 65, 168 70, 168 70 C 162 66, 158 61, 158 57 Z",fill:"oklch(1 0 0 / 0.22)"},null,-1)),V[33]||(V[33]=y.createElementVNode("line",{x1:"168",y1:"44",x2:"168",y2:"76",stroke:"oklch(1 0 0 / 0.35)","stroke-width":"1.5","stroke-linecap":"round"},null,-1)),V[34]||(V[34]=y.createElementVNode("line",{x1:"158",y1:"58",x2:"178",y2:"58",stroke:"oklch(1 0 0 / 0.35)","stroke-width":"1.5","stroke-linecap":"round"},null,-1))])):l.value.sym==="miniBasketball"?(y.openBlock(),y.createElementBlock("g",bz,[...V[35]||(V[35]=[y.createStaticVNode('<circle cx="168" cy="62" r="14" fill="oklch(0.65 0.16 40)" data-v-c1f1f037></circle><path d="M 168 48 A 14 14 0 0 1 182 62 A 14 14 0 0 1 168 76 Q 177 70 177 62 Q 177 54 168 48 Z" fill="oklch(0.52 0.14 36)" data-v-c1f1f037></path><ellipse cx="162" cy="55" rx="3.5" ry="2.5" fill="oklch(0.84 0.10 55)" opacity="0.55" transform="rotate(-15,162,55)" data-v-c1f1f037></ellipse><line x1="154" y1="62" x2="182" y2="62" stroke="oklch(0.25 0.05 30)" stroke-width="1.6" stroke-linecap="round" data-v-c1f1f037></line><path d="M 161 48 Q 155 62 161 76" stroke="oklch(0.25 0.05 30)" stroke-width="1.6" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 175 48 Q 181 62 175 76" stroke="oklch(0.25 0.05 30)" stroke-width="1.6" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 154 56 Q 168 50 182 56" stroke="oklch(0.25 0.05 30)" stroke-width="1.6" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 154 68 Q 168 74 182 68" stroke="oklch(0.25 0.05 30)" stroke-width="1.6" fill="none" stroke-linecap="round" data-v-c1f1f037></path>',8)])])):l.value.sym==="lowBattery"?(y.openBlock(),y.createElementBlock("g",wz,[y.createElementVNode("rect",{x:"152",y:"50",width:"28",height:"16",rx:"3",fill:"none",stroke:l.value.symColor,"stroke-width":"2.5"},null,8,Cz),y.createElementVNode("rect",{x:"180",y:"54",width:"4",height:"8",rx:"1.5",fill:l.value.symColor,opacity:"0.7"},null,8,Tz),y.createElementVNode("rect",{x:"154.5",y:"52.5",width:"5",height:"11",rx:"1.5",fill:l.value.symColor},null,8,Ez),V[36]||(V[36]=y.createElementVNode("text",{x:"161",y:"64","font-size":"10","font-weight":"700","font-family":"monospace",fill:"oklch(1 0 0 / 0.9)",class:"animate-dot-blink",style:{animationDelay:"0.2s"}},"!",-1))])):y.createCommentVNode("",!0),f.value==="heart"?(y.openBlock(),y.createElementBlock("path",{key:70,d:"M 120 36 c -9 -13 -28 -4 -17 10 c 4 6 17 15 17 15 c 0 0 13 -9 17 -15 c 11 -14 -8 -23 -17 -10 Z",fill:br,class:"animate-heart-beat",style:{transformBox:"fill-box",transformOrigin:"center"}})):y.createCommentVNode("",!0),f.value==="kiss"?(y.openBlock(),y.createElementBlock(y.Fragment,{key:71},y.renderList([0,.7,1.4],(q,Ce)=>y.createElementVNode("path",{key:Ce,d:"M 196 96 c -4 -6 -13 -2 -8 5 c 2 3 8 7 8 7 c 0 0 6 -4 8 -7 c 5 -7 -4 -11 -8 -5 Z",fill:br,class:"animate-heart-fly",style:y.normalizeStyle({animationDelay:`${q}s`})},null,4)),64)):y.createCommentVNode("",!0),r.action==="ironMountain"?(y.openBlock(),y.createElementBlock("g",Dz,[...V[37]||(V[37]=[y.createStaticVNode('<rect x="56" y="188" width="128" height="14" rx="7" fill="oklch(0.32 0.10 248)" data-v-c1f1f037></rect><rect x="60" y="200" width="50" height="26" rx="8" fill="oklch(0.32 0.10 248)" data-v-c1f1f037></rect><rect x="130" y="200" width="50" height="26" rx="8" fill="oklch(0.32 0.10 248)" data-v-c1f1f037></rect><line x1="120" y1="200" x2="120" y2="226" stroke="oklch(0.42 0.08 248)" stroke-width="2.5" stroke-linecap="round" data-v-c1f1f037></line><path d="M 86 48 L 86 188" stroke="oklch(0.32 0.10 248)" stroke-width="11" stroke-linecap="round" data-v-c1f1f037></path><path d="M 154 48 L 154 188" stroke="oklch(0.32 0.10 248)" stroke-width="11" stroke-linecap="round" data-v-c1f1f037></path><rect x="79" y="43" width="14" height="11" rx="3" fill="oklch(0.72 0.18 80)" stroke="oklch(0.55 0.12 72)" stroke-width="1.5" data-v-c1f1f037></rect><line x1="86" y1="43" x2="86" y2="54" stroke="oklch(0.48 0.10 72)" stroke-width="2" stroke-linecap="round" data-v-c1f1f037></line><rect x="147" y="43" width="14" height="11" rx="3" fill="oklch(0.72 0.18 80)" stroke="oklch(0.55 0.12 72)" stroke-width="1.5" data-v-c1f1f037></rect><line x1="154" y1="43" x2="154" y2="54" stroke="oklch(0.48 0.10 72)" stroke-width="2" stroke-linecap="round" data-v-c1f1f037></line><rect x="106" y="136" width="28" height="24" rx="5" fill="oklch(0.36 0.10 248)" stroke="oklch(0.45 0.08 248)" stroke-width="2" data-v-c1f1f037></rect><line x1="106" y1="148" x2="134" y2="148" stroke="oklch(0.45 0.08 248)" stroke-width="1.8" stroke-linecap="round" data-v-c1f1f037></line><rect x="115" y="144" width="10" height="8" rx="2" fill="oklch(0.72 0.18 80)" data-v-c1f1f037></rect>',13)])])):y.createCommentVNode("",!0),r.action==="playBasketball"?(y.openBlock(),y.createElementBlock("g",kz,[...V[38]||(V[38]=[y.createStaticVNode('<circle cx="120" cy="148" r="22" fill="oklch(0.65 0.16 40)" data-v-c1f1f037></circle><path d="M 120 126 A 22 22 0 0 1 142 148 A 22 22 0 0 1 120 170 Q 134 162 134 148 Q 134 134 120 126 Z" fill="oklch(0.52 0.14 36)" data-v-c1f1f037></path><ellipse cx="112" cy="136" rx="6" ry="4.5" fill="oklch(0.85 0.10 55)" opacity="0.55" transform="rotate(-20,112,136)" data-v-c1f1f037></ellipse><line x1="98" y1="148" x2="142" y2="148" stroke="oklch(0.24 0.04 28)" stroke-width="2.2" stroke-linecap="round" data-v-c1f1f037></line><path d="M 109 126 Q 101 148 109 170" stroke="oklch(0.24 0.04 28)" stroke-width="2.2" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 131 126 Q 139 148 131 170" stroke="oklch(0.24 0.04 28)" stroke-width="2.2" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 98 140 Q 120 131 142 140" stroke="oklch(0.24 0.04 28)" stroke-width="2.2" fill="none" stroke-linecap="round" data-v-c1f1f037></path><path d="M 98 156 Q 120 165 142 156" stroke="oklch(0.24 0.04 28)" stroke-width="2.2" fill="none" stroke-linecap="round" data-v-c1f1f037></path>',8)])])):y.createCommentVNode("",!0),g.value?(y.openBlock(),y.createElementBlock("g",Az,[V[39]||(V[39]=y.createElementVNode("line",{x1:"230",y1:"72",x2:"230",y2:"180",stroke:"var(--robot-blue-dark)","stroke-width":"5","stroke-linecap":"round"},null,-1)),y.createElementVNode("circle",{cx:"230",cy:"128",r:"7",fill:u.value,stroke:"oklch(1 0 0 / 0.35)","stroke-width":"1.5"},null,8,Mz),V[40]||(V[40]=y.createElementVNode("rect",{x:"211",y:"76",width:"38",height:"78",rx:"14",fill:"oklch(0.18 0.04 250)",stroke:"oklch(1 0 0 / 0.42)","stroke-width":"2"},null,-1)),V[41]||(V[41]=y.createElementVNode("rect",{x:"216",y:"82",width:"28",height:"66",rx:"10",fill:"oklch(0.08 0.03 250 / 0.82)"},null,-1)),y.createElementVNode("circle",{cx:"230",cy:"95",r:"8.5",fill:"oklch(0.6 0.23 22)",opacity:g.value==="red"?1:.22,class:y.normalizeClass(g.value==="red"?"animate-traffic-light-active":"")},null,10,Iz),y.createElementVNode("circle",{cx:"230",cy:"115",r:"8.5",fill:"oklch(0.84 0.16 95)",opacity:g.value==="yellow"?1:.22,class:y.normalizeClass(g.value==="yellow"?"animate-traffic-light-active":"")},null,10,Lz),y.createElementVNode("circle",{cx:"230",cy:"135",r:"8.5",fill:"oklch(0.68 0.16 150)",opacity:g.value==="green"?1:.22,class:y.normalizeClass(g.value==="green"?"animate-traffic-light-active":"")},null,10,Nz)])):y.createCommentVNode("",!0),m.value?(y.openBlock(),y.createElementBlock("g",Pz,[(y.openBlock(),y.createElementBlock(y.Fragment,null,y.renderList(_,(q,Ce)=>y.createElementVNode("text",{key:Ce,x:q.x,y:q.y,"font-size":"20","font-weight":"800",fill:"oklch(0.82 0.16 72)",class:"animate-music-note",style:y.normalizeStyle({animationDelay:`${q.delay}s`,transformOrigin:`${q.x}px ${q.y}px`})},y.toDisplayString(q.note),13,Rz)),64))])):y.createCommentVNode("",!0),f.value==="pray"?(y.openBlock(),y.createElementBlock("g",Oz,[...V[42]||(V[42]=[y.createElementVNode("path",{d:"M 120 150 l -10 30 q 10 6 20 0 Z",fill:"oklch(1 0 0 / 0.92)",stroke:"var(--robot-blue-dark)","stroke-width":"1.5"},null,-1),y.createElementVNode("line",{x1:"120",y1:"152",x2:"120",y2:"178",stroke:"var(--robot-blue-dark)","stroke-width":"1.5"},null,-1)])])):y.createCommentVNode("",!0),p.value==="glow"?(y.openBlock(),y.createElementBlock("ellipse",{key:77,cx:"120",cy:"115",rx:"82",ry:"78",fill:v.value,opacity:"0",class:"animate-body-glow"},null,8,Vz)):y.createCommentVNode("",!0),p.value==="heart-particles"?(y.openBlock(),y.createElementBlock("g",Bz,[V[43]||(V[43]=y.createElementVNode("path",{d:`M 120 192 C 100 180, 98 162, 110 158 C 116 155, 120 159, 120 162
2
+ C 120 159, 124 155, 130 158 C 142 162, 140 180, 120 192 Z`,fill:"oklch(0.72 0.22 0)",class:"animate-body-glow",style:{transformBox:"fill-box",transformOrigin:"120px 175px"}},null,-1)),(y.openBlock(),y.createElementBlock(y.Fragment,null,y.renderList(x,(q,Ce)=>y.createElementVNode("g",{key:Ce},[y.createElementVNode("path",{d:`M ${q.x} ${q.y+q.size*.9}
3
+ C ${q.x-q.size*.85} ${q.y+q.size*.4},
4
+ ${q.x-q.size*.85} ${q.y-q.size*.5},
5
+ ${q.x} ${q.y-q.size*.15}
6
+ C ${q.x+q.size*.85} ${q.y-q.size*.5},
7
+ ${q.x+q.size*.85} ${q.y+q.size*.4},
8
+ ${q.x} ${q.y+q.size*.9} Z`,fill:q.color,class:"animate-heart-rise",style:y.normalizeStyle({"--hx":q.hx,animationDelay:`${q.delay}s`,transformOrigin:`${q.x}px ${q.y}px`})},null,12,zz)])),64))])):y.createCommentVNode("",!0),p.value==="flag"?(y.openBlock(),y.createElementBlock("g",Gz,[V[44]||(V[44]=y.createElementVNode("line",{x1:"120",y1:"155",x2:"120",y2:"225",stroke:"var(--robot-blue-dark)","stroke-width":"4","stroke-linecap":"round"},null,-1)),y.createElementVNode("rect",{x:"120",y:"155",width:"32",height:"20",rx:"3",fill:v.value,class:"animate-flag-wave"},null,8,Fz),V[45]||(V[45]=y.createElementVNode("rect",{x:"120",y:"155",width:"32",height:"8",rx:"3",fill:"oklch(1 0 0 / 0.22)",class:"animate-flag-wave"},null,-1))])):y.createCommentVNode("",!0),p.value==="scan-ring"?(y.openBlock(),y.createElementBlock("g",Hz,[y.createElementVNode("circle",{cx:"120",cy:"115",r:"88",fill:"none",stroke:v.value,"stroke-width":"2.5","stroke-dasharray":"18 12",class:"animate-self-spin",style:{transformBox:"fill-box",transformOrigin:"center"}},null,8,$z),y.createElementVNode("circle",{cx:"120",cy:"115",r:"70",fill:"none",stroke:v.value,"stroke-width":"1.5","stroke-dasharray":"8 18",opacity:"0.6",class:"animate-reset-spin",style:{transformBox:"fill-box",transformOrigin:"center"}},null,8,Uz)])):y.createCommentVNode("",!0),p.value==="confetti"?(y.openBlock(),y.createElementBlock("g",Wz,[(y.openBlock(),y.createElementBlock(y.Fragment,null,y.renderList(S,(q,Ce)=>y.createElementVNode("rect",{key:Ce,x:q.x-q.size/2,y:q.y-q.size/2,width:q.size,height:q.size,rx:q.size*.3,fill:q.color,class:"animate-confetti",style:y.normalizeStyle({"--cx":`${q.cx}px`,"--cy":`${q.cy}px`,"--cr":q.cr,animationDelay:`${Ce*.18}s`,transformOrigin:`${q.x}px ${q.y}px`})},null,12,Yz)),64))])):y.createCommentVNode("",!0),p.value==="particles"?(y.openBlock(),y.createElementBlock("g",Xz,[(y.openBlock(),y.createElementBlock(y.Fragment,null,y.renderList(b,(q,Ce)=>y.createElementVNode("circle",{key:Ce,cx:q.x,cy:q.y,r:"3",fill:q.color,class:"animate-sparkle",style:y.normalizeStyle({transformBox:"fill-box",transformOrigin:"center",animationDelay:`${q.delay}s`})},null,12,Zz)),64))])):y.createCommentVNode("",!0),y.createElementVNode("g",{style:y.normalizeStyle(P.value),class:y.normalizeClass(h.value.la)},[y.createElementVNode("rect",{x:"16",y:"121",width:"30",height:"14",rx:"7",fill:u.value},null,8,qz),y.createElementVNode("circle",{cx:"12",cy:"128",r:"9",fill:u.value},null,8,Kz),f.value==="sparkle"?(y.openBlock(),y.createElementBlock("path",{key:0,d:$(12,128),fill:"var(--robot-amber)",class:"animate-sparkle origin-center",style:{transformBox:"fill-box",transformOrigin:"center"}},null,8,jz)):y.createCommentVNode("",!0)],6),y.createElementVNode("g",{style:y.normalizeStyle(O.value),class:y.normalizeClass(h.value.ra)},[y.createElementVNode("rect",{x:"194",y:"121",width:"30",height:"14",rx:"7",fill:u.value},null,8,Qz),y.createElementVNode("circle",{cx:"228",cy:"128",r:"9",fill:u.value},null,8,Jz),f.value==="thumbsUp"?(y.openBlock(),y.createElementBlock("rect",{key:0,x:"225",y:"113",width:"6",height:"11",rx:"3",fill:u.value},null,8,e4)):y.createCommentVNode("",!0),f.value==="sparkle"?(y.openBlock(),y.createElementBlock("path",{key:1,d:$(228,128),fill:"var(--robot-amber)",class:"animate-sparkle origin-center",style:{transformBox:"fill-box",transformOrigin:"center",animationDelay:"0.3s"}},null,8,t4)):y.createCommentVNode("",!0)],6)])),r.emotion==="sleepy"||r.emotion==="yawn"?(y.openBlock(),y.createElementBlock("div",r4,[...V[49]||(V[49]=[y.createElementVNode("span",{class:"animate-float-up inline-block text-lg font-bold"},"z",-1),y.createElementVNode("span",{class:"animate-float-up inline-block text-2xl font-bold",style:{animationDelay:"0.8s"}}," Z ",-1)])])):y.createCommentVNode("",!0)],2)],4)],512))}}),[["__scopeId","data-v-c1f1f037"]]),Bx=vt(y.defineComponent({__name:"QuarkRobotHalo",props:{width:{default:220}},setup(r){return(e,t)=>(y.openBlock(),y.createElementBlock("div",{class:"halo",style:y.normalizeStyle({width:r.width+"px",height:r.width*.27+"px"}),"aria-hidden":"true"},[...t[0]||(t[0]=[y.createElementVNode("span",{class:"halo-ring r1"},null,-1),y.createElementVNode("span",{class:"halo-ring r2"},null,-1),y.createElementVNode("span",{class:"halo-core"},null,-1)])],4))}}),[["__scopeId","data-v-6fd8ca14"]]),i4={class:"qbs-top-header"},zx=vt(y.defineComponent({__name:"QuarkTopHeader",props:{title:{default:"智能运维监控大屏"},time:{default:"--:--"},date:{default:"--"},armed:{type:Boolean,default:!1}},emits:["titleClick","titleDoubleClick","clockClick"],setup(r){return(e,t)=>(y.openBlock(),y.createElementBlock("header",i4,[y.createElementVNode("div",{class:"qbs-top-header__brand",onClick:t[0]||(t[0]=a=>e.$emit("titleClick")),onDblclick:t[1]||(t[1]=y.withModifiers(a=>e.$emit("titleDoubleClick"),["stop"]))},[t[3]||(t[3]=y.createElementVNode("span",null,null,-1)),y.createElementVNode("h1",null,y.toDisplayString(r.title),1)],32),y.createElementVNode("div",{class:y.normalizeClass(["qbs-top-header__deco",{"is-armed":r.armed}])},[(y.openBlock(),y.createElementBlock(y.Fragment,null,y.renderList(5,a=>y.createElementVNode("i",{key:a,style:y.normalizeStyle({animationDelay:`${a*.12}s`})},null,4)),64))],2),y.createElementVNode("div",{class:"qbs-top-header__clock",onClick:t[2]||(t[2]=a=>e.$emit("clockClick"))},[y.createElementVNode("b",null,y.toDisplayString(r.time),1),y.createElementVNode("small",null,y.toDisplayString(r.date),1)])]))}}),[["__scopeId","data-v-20d5fb13"]]),o4={class:"qbs-duty-compact"},s4={key:0},l4=vt(y.defineComponent({__name:"QuarkDutyCompact",props:{name:{default:""},phone:{default:""},tag:{default:""}},setup(r){return(e,t)=>(y.openBlock(),y.createElementBlock("div",o4,[y.createElementVNode("div",null,y.toDisplayString(r.name.charAt(0)||"-"),1),y.createElementVNode("section",null,[y.createElementVNode("strong",null,y.toDisplayString(r.name||"暂未排班"),1),y.createElementVNode("span",null,y.toDisplayString(r.phone||"—"),1)]),r.tag?(y.openBlock(),y.createElementBlock("em",s4,y.toDisplayString(r.tag),1)):y.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-cd7cff86"]]),u4={key:0,class:"base-modal-header"},c4={class:"base-modal-title-wrap"},f4={key:0,class:"base-modal-eyebrow"},h4={key:1,class:"base-modal-title"},v4={class:"base-modal-body"},d4={key:1,class:"base-modal-footer"},Gx=vt(y.defineComponent({__name:"BaseModal",props:{modelValue:{type:Boolean},title:{default:""},eyebrow:{default:""},showCloseButton:{type:Boolean,default:!0},closeOnMask:{type:Boolean,default:!0},padded:{type:Boolean,default:!0},titleAlign:{default:"center"},width:{default:"min(92vw, 960px)"},maskClass:{default:""},panelClass:{default:""}},emits:["update:modelValue","close"],setup(r,{emit:e}){const t=r,a=e,n=y.computed(()=>({width:t.width}));function i(){a("update:modelValue",!1),a("close")}function o(){t.closeOnMask&&i()}return(s,l)=>(y.openBlock(),y.createBlock(y.Teleport,{to:"body"},[y.createVNode(y.Transition,{name:"base-modal-fade"},{default:y.withCtx(()=>[r.modelValue?(y.openBlock(),y.createElementBlock("div",{key:0,class:y.normalizeClass(["base-modal-mask",r.maskClass]),onClick:y.withModifiers(o,["self"])},[y.createElementVNode("div",{class:y.normalizeClass(["base-modal-panel",[r.panelClass,{"base-modal-panel--padded":r.padded,"base-modal-panel--title-left":r.titleAlign==="left","base-modal-panel--title-center":r.titleAlign==="center"}]]),style:y.normalizeStyle(n.value)},[r.title||s.$slots.header||r.showCloseButton?(y.openBlock(),y.createElementBlock("header",u4,[y.renderSlot(s.$slots,"header",{},()=>[y.createElementVNode("div",c4,[r.eyebrow?(y.openBlock(),y.createElementBlock("p",f4,y.toDisplayString(r.eyebrow),1)):y.createCommentVNode("",!0),r.title?(y.openBlock(),y.createElementBlock("h2",h4,y.toDisplayString(r.title),1)):y.createCommentVNode("",!0)])],!0),r.showCloseButton?(y.openBlock(),y.createElementBlock("button",{key:0,class:"base-modal-close",type:"button","aria-label":"关闭弹窗",onClick:i}," × ")):y.createCommentVNode("",!0)])):y.createCommentVNode("",!0),y.createElementVNode("div",v4,[y.renderSlot(s.$slots,"default",{},void 0,!0)]),s.$slots.footer?(y.openBlock(),y.createElementBlock("footer",d4,[y.renderSlot(s.$slots,"footer",{},void 0,!0)])):y.createCommentVNode("",!0)],6)],2)):y.createCommentVNode("",!0)]),_:3})]))}}),[["__scopeId","data-v-e3bfd45f"]]);/*! *****************************************************************************
9
+ Copyright (c) Microsoft Corporation.
10
+
11
+ Permission to use, copy, modify, and/or distribute this software for any
12
+ purpose with or without fee is hereby granted.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
15
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
16
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
17
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
18
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20
+ PERFORMANCE OF THIS SOFTWARE.
21
+ ***************************************************************************** */var Hp=function(r,e){return Hp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Hp(r,e)};function z(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Hp(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var p4=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),g4=(function(){function r(){this.browser=new p4,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})(),Ve=new g4;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ve.wxa=!0,Ve.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ve.worker=!0:!Ve.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ve.node=!0,Ve.svgSupported=!0):m4(navigator.userAgent,Ve);function m4(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var $p=12,Fx="sans-serif",cn=$p+"px "+Fx,y4=20,_4=100,S4="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function x4(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-y4)/_4;e[a]=n}return e}var b4=x4(S4),ur={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=ur.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||cn),r.measureText(t);t=t||"",a=a||cn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||$p,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=b4[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a},getTime:function(){return Date.now?Date.now():+new Date}},Hx=wa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),$x=wa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),_s=Object.prototype.toString,Sf=Array.prototype,w4=Sf.forEach,C4=Sf.filter,Up=Sf.slice,T4=Sf.map,Ux=(function(){}).constructor,xf=Ux?Ux.prototype:null,Wp="__proto__",Yp=2311,E4=Math.pow(2,53)-1;function Wx(){return Yp>=E4&&(Yp=0),Yp++}function oa(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function he(r){if(r==null||typeof r!="object")return r;var e=r,t=_s.call(r);if(t==="[object Array]"){if(!ru(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=he(r[a])}}else if($x[t]){if(!ru(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!Hx[t]&&!ru(r)&&!Li(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Wp&&(e[o]=he(r[o]))}return e}function ke(r,e,t){if(!de(e)||!de(r))return t?he(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==Wp){var n=r[a],i=e[a];de(i)&&de(n)&&!Y(i)&&!Y(n)&&!Li(i)&&!Li(n)&&!Yx(i)&&!Yx(n)&&!ru(i)&&!ru(n)?ke(n,i,t):(t||!(a in r))&&(r[a]=he(e[a]))}return r}function Xp(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ke(t,r[a],e);return t}function U(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Wp&&(r[t]=e[t]);return r}function D4(r,e,t){r=r||{};for(var a=0;a<t.length;a++){var n=t[a];r[n]=e[n]}return r}function me(r,e,t){for(var a=Oe(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function Ee(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function k4(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function kt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else me(r,e,t)}function er(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function k(r,e,t){if(r&&e)if(r.forEach&&r.forEach===w4)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function K(r,e,t){if(!r)return[];if(!e)return Zp(r);if(r.map&&r.map===T4)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function wa(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function Ze(r,e,t){if(!r)return[];if(!e)return Zp(r);if(r.filter&&r.filter===C4)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Fn(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Oe(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function A4(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(Up.call(arguments)))}}var ie=xf&&ce(xf.bind)?xf.call.bind(xf.bind):A4;function Me(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Up.call(arguments)))}}function Y(r){return Array.isArray?Array.isArray(r):_s.call(r)==="[object Array]"}function ce(r){return typeof r=="function"}function Q(r){return typeof r=="string"}function bf(r){return _s.call(r)==="[object String]"}function Ge(r){return typeof r=="number"}function de(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Yx(r){return!!Hx[_s.call(r)]}function cr(r){return!!$x[_s.call(r)]}function Li(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function wf(r){return r.colorStops!=null}function M4(r){return r.image!=null}function Xx(r){return _s.call(r)==="[object RegExp]"}function Gt(r){return r!==r}function Ft(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function oe(r,e){return r??e}function fr(r,e,t){return r??e??t}function Zp(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Up.apply(r,e)}function Cf(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Z(r,e){if(!r)throw new Error(e)}function Br(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Zx="__ec_primitive__";function Tf(r){r[Zx]=!0}function ru(r){return r[Zx]}var I4=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Oe(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),qx=typeof Map=="function";function L4(){return qx?new Map:new I4}var N4=(function(){function r(e){var t=Y(e);this.data=L4();var a=this;e instanceof r?e.each(n):e&&k(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return qx?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function re(r){return new N4(r)}function au(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Ef(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&U(t,e),t}function Kx(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ae(r,e){return r.hasOwnProperty(e)}function pt(){}var Df=180/Math.PI;function Ni(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function tr(r,e){return r[0]=e[0],r[1]=e[1],r}function fn(r){return[r[0],r[1]]}function Hn(r,e,t){return r[0]=e,r[1]=t,r}function jx(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function qp(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function Pi(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Kp(r){return Math.sqrt(P4(r))}function P4(r){return r[0]*r[0]+r[1]*r[1]}function kf(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Ss(r,e){var t=Kp(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function jp(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var $n=jp;function R4(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Ri=R4;function Af(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function gt(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Un(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Wn(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var xs=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),O4=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new xs(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new xs(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new xs(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new xs(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new xs(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new xs(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),zr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var c=n[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),V4=Math.log(2);function Qp(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/V4);return r[t][l]}for(var u=a|1<<t,c=t+1;a&1<<c;)c++;for(var f=0,h=0,v=0;h<s;h++){var d=1<<h;d&n||(f+=(v%2?-1:1)*r[t][h]*Qp(r,e-1,c,u,n|d,i),v++)}return i[o]=f,f}function Qx(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=Qp(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Qp(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var Mf="___zrEVENTSAVED",Jp=[];function B4(r,e,t,a,n){return eg(Jp,e,a,n,!0)&&eg(r,t,Jp[0],Jp[1])}function z4(r,e){r&&t(r),e&&t(e);function t(a){var n=a[Mf];n&&(n.clearMarkers&&n.clearMarkers(),delete a[Mf])}}function eg(r,e,t,a,n){if(e.getBoundingClientRect&&Ve.domSupported&&!Jx(e)){var i=e[Mf]||(e[Mf]={}),o=G4(e,i),s=F4(o,i,n);if(s)return s(r,t,a),!0}return!1}function G4(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){k(t,function(c){c.parentNode&&c.parentNode.removeChild(c)})},t}function F4(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,h=c.left,v=c.top;o.push(h,v),l=l&&i&&h===i[f]&&v===i[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?Qx(s,o):Qx(o,s))}function Jx(r){return r.nodeName.toUpperCase()==="CANVAS"}var H4=/([&<>"'])/g,$4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function hr(r){return r==null?"":(r+"").replace(H4,function(e,t){return $4[t]})}var U4=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tg=[],W4=Ve.browser.firefox&&+Ve.browser.version.split(".")[0]<39;function rg(r,e,t,a){return t=t||{},a?eb(r,e,t):W4&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):eb(r,e,t),t}function eb(r,e,t){if(Ve.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(Jx(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(eg(tg,r,a,n)){t.zrX=tg[0],t.zrY=tg[1];return}}t.zrX=t.zrY=0}function ag(r){return r||window.event}function Gr(r,e,t){if(e=ag(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&rg(r,o,e,t)}else{rg(r,e,e,t);var i=Y4(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&U4.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Y4(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function ng(r,e,t,a){r.addEventListener(e,t,a)}function X4(r,e,t,a){r.removeEventListener(e,t,a)}var hn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function tb(r){return r.which===2||r.which===3}var Z4=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=rg(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in ig)if(ig.hasOwnProperty(t)){var a=ig[t](this._track,e);if(a)return a}},r})();function rb(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function q4(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var ig={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=rb(a)/rb(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=q4(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function ft(){return[1,0,0,1,0,0]}function bs(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Oi(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Fr(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Ca(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Yn(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=n*f+s*c,r[1]=-n*c+s*f,r[2]=i*f+l*c,r[3]=-i*c+f*l,r[4]=f*(o-a[0])+c*(u-a[1])+a[0],r[5]=f*(u-a[1])-c*(o-a[0])+a[1],r}function og(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function Hr(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function K4(r){var e=ft();return Oi(e,r),e}var _e=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),Vi=Math.min,ws=Math.max,sg=Math.abs,ab=["x","y"],j4=["width","height"],Bi=new _e,zi=new _e,Gi=new _e,Fi=new _e,Mr=sb(),nu=Mr.minTv,lg=Mr.maxTv,iu=[0,0],pe=(function(){function r(e,t,a,n){ug(this,e,t,a,n)}return r.set=function(e,t,a,n,i){return n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),e.x=t,e.y=a,e.width=n,e.height=i,e},r.prototype.union=function(e){var t=Vi(e.x,this.x),a=Vi(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ws(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ws(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return nb(ft(),this,e)},r.prototype.intersect=function(e,t,a){return r.intersect(this,e,t,a)},r.intersect=function(e,t,a,n){a&&_e.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=ug(J4,e.x,e.y,e.width,e.height)),t instanceof r||(t=ug(e8,t.x,t.y,t.width,t.height));var s=!!a;Mr.reset(n,s);var l=Mr.touchThreshold,u=e.x+l,c=e.x+e.width-l,f=e.y+l,h=e.y+e.height-l,v=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>c||f>h||v>d||p>g)return!1;var m=!(c<v||d<u||h<p||g<f);return(s||i)&&(iu[0]=1/0,iu[1]=0,ob(u,c,v,d,0,s,i,o),ob(f,h,p,g,1,s,i,o),s&&_e.copy(a,m?Mr.useDir?Mr.dirMinTv:nu:lg)),m},r.contain=function(e,t,a){return t>=e.x&&t<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){Cs(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,a){if(!a){e!==t&&Cs(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Bi.x=Gi.x=t.x,Bi.y=Fi.y=t.y,zi.x=Fi.x=t.x+t.width,zi.y=Gi.y=t.y+t.height,Bi.transform(a),Fi.transform(a),zi.transform(a),Gi.transform(a),e.x=Vi(Bi.x,zi.x,Gi.x,Fi.x),e.y=Vi(Bi.y,zi.y,Gi.y,Fi.y);var l=ws(Bi.x,zi.x,Gi.x,Fi.x),u=ws(Bi.y,zi.y,Gi.y,Fi.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,a){var n=a.width/t.width,i=a.height/t.height;return e=bs(e||[]),Ca(e,e,Hn(cg,-t.x,-t.y)),og(e,e,Hn(cg,n,i)),Ca(e,e,Hn(cg,a.x,a.y)),e},r})(),If=pe.create,ug=pe.set,Cs=pe.copy,nb=pe.calculateTransform,ib=pe.applyTransform,Q4=pe.contain,J4=new pe(0,0,0,0),e8=new pe(0,0,0,0),cg=[];function ob(r,e,t,a,n,i,o,s){var l=sg(e-t),u=sg(a-r),c=Vi(l,u),f=ab[n],h=ab[1-n],v=j4[n];e<t||a<r?l<u?(i&&(lg[f]=-l),s&&(o[f]=e,o[v]=0)):(i&&(lg[f]=u),s&&(o[f]=r,o[v]=0)):(o&&(o[f]=ws(r,t),o[v]=Vi(e,a)-o[f]),i&&(c<iu[0]||Mr.useDir)&&(iu[0]=Vi(c,iu[0]),(l<u||!Mr.bidirectional)&&(nu[f]=l,nu[h]=0,Mr.useDir&&Mr.calcDirMTV()),(l>=u||!Mr.bidirectional)&&(nu[f]=-u,nu[h]=0,Mr.useDir&&Mr.calcDirMTV())))}function sb(){var r=0,e=new _e,t=new _e,a={minTv:new _e,maxTv:new _e,useDir:!1,dirMinTv:new _e,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=ws(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),t.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),c=l*i.y+u*i.x;if(n(c)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(t.x=s*u/c,t.y=s*l/c,n(t.x)&&n(t.y)){o.set(0,0);return}(a.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function n(i){return sg(i)<1e-10}return a}var lb="silent";function t8(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:r8}}function r8(){hn(this.event)}var a8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(zr),ou=(function(){function r(e,t){this.x=e,this.y=t}return r})(),n8=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fg=new pe(0,0,0,0),ub=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new ou(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new a8,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new O4(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(k(n8,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=fb(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new ou(a,n):this.findHover(a,n),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ou(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=t8(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new ou(t,a);if(cb(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new pe(t-u,a-u,l,l),f=i.length-1;f>=0;f--){var h=i[f];h!==n&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(fg.copy(h.getBoundingRect()),h.transform&&fg.applyTransform(h.transform),fg.intersect(c)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var m=0;m<p;m+=d){var _=t+g*Math.cos(m),S=a+g*Math.sin(m);if(cb(s,o,_,S,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new Z4);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new ou;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(zr);k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){ub.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=fb(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||$n(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function i8(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?lb:!0}return!1}function cb(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=i8(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==lb)){e.target=o;break}}}function fb(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var hb=32,su=7;function o8(r){for(var e=0;r>=hb;)e|=r&1,r>>=1;return r+e}function vb(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;s8(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function s8(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function db(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function hg(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+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&&i(r,e[t+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 c=o+(l-o>>>1);i(r,e[t+c])>0?o=c+1:l=c}return l}function vg(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+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=a-n;l<s&&i(r,e[t+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 c=o+(l-o>>>1);i(r,e[t+c])<0?l=c:o=c+1}return l}function l8(r,e){var t=su,a,n,i=0,o=[];a=[],n=[];function s(v,d){a[i]=v,n[i]=d,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&n[v-1]<n[v+1]&&v--,c(v)}}function c(v){var d=a[v],p=n[v],g=a[v+1],m=n[v+1];n[v]=p+m,v===i-3&&(a[v+1]=a[v+2],n[v+1]=n[v+2]),i--;var _=vg(r[g],r,d,p,0,e);d+=_,p-=_,p!==0&&(m=hg(r[d+p-1],r,g,m,m-1,e),m!==0&&(p<=m?f(d,p,g,m):h(d,p,g,m)))}function f(v,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[v+m];var _=0,S=p,x=v;if(r[x++]=r[S++],--g===0){for(m=0;m<d;m++)r[x+m]=o[_+m];return}if(d===1){for(m=0;m<g;m++)r[x+m]=r[S+m];r[x+g]=o[_];return}for(var b=t,w,C,E;;){w=0,C=0,E=!1;do if(e(r[S],o[_])<0){if(r[x++]=r[S++],C++,w=0,--g===0){E=!0;break}}else if(r[x++]=o[_++],w++,C=0,--d===1){E=!0;break}while((w|C)<b);if(E)break;do{if(w=vg(r[S],o,_,d,0,e),w!==0){for(m=0;m<w;m++)r[x+m]=o[_+m];if(x+=w,_+=w,d-=w,d<=1){E=!0;break}}if(r[x++]=r[S++],--g===0){E=!0;break}if(C=hg(o[_],r,S,g,0,e),C!==0){for(m=0;m<C;m++)r[x+m]=r[S+m];if(x+=C,S+=C,g-=C,g===0){E=!0;break}}if(r[x++]=o[_++],--d===1){E=!0;break}b--}while(w>=su||C>=su);if(E)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(m=0;m<g;m++)r[x+m]=r[S+m];r[x+g]=o[_]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[x+m]=o[_+m]}}function h(v,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var _=v+d-1,S=g-1,x=p+g-1,b=0,w=0;if(r[x--]=r[_--],--d===0){for(b=x-(g-1),m=0;m<g;m++)r[b+m]=o[m];return}if(g===1){for(x-=d,_-=d,w=x+1,b=_+1,m=d-1;m>=0;m--)r[w+m]=r[b+m];r[x]=o[S];return}for(var C=t;;){var E=0,T=0,D=!1;do if(e(o[S],r[_])<0){if(r[x--]=r[_--],E++,T=0,--d===0){D=!0;break}}else if(r[x--]=o[S--],T++,E=0,--g===1){D=!0;break}while((E|T)<C);if(D)break;do{if(E=d-vg(o[S],r,v,d,d-1,e),E!==0){for(x-=E,_-=E,d-=E,w=x+1,b=_+1,m=E-1;m>=0;m--)r[w+m]=r[b+m];if(d===0){D=!0;break}}if(r[x--]=o[S--],--g===1){D=!0;break}if(T=g-hg(r[_],o,0,g,g-1,e),T!==0){for(x-=T,S-=T,g-=T,w=x+1,b=S+1,m=0;m<T;m++)r[w+m]=o[b+m];if(g<=1){D=!0;break}}if(r[x--]=r[_--],--d===0){D=!0;break}C--}while(E>=su||T>=su);if(D)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),g===1){for(x-=d,_-=d,w=x+1,b=_+1,m=d-1;m>=0;m--)r[w+m]=r[b+m];r[x]=o[S]}else{if(g===0)throw new Error;for(b=x-(g-1),m=0;m<g;m++)r[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Lf(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<hb){i=vb(r,t,a,e),db(r,t,a,t+i,e);return}var o=l8(r,e),s=o8(n);do{if(i=vb(r,t,a,e),i<s){var l=n;l>s&&(l=s),db(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var wr=1,lu=2,Ts=4,pb=!1;function dg(){pb||(pb=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gb(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var u8=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gb}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,Lf(a,gb)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,c=e;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),h=0;h<f.length;h++){var v=f[h];e.__dirty&&(v.__dirty|=wr),this._updateAndAddDisplayable(v,s,a)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(dg(),d.z=0),isNaN(d.z2)&&(dg(),d.z2=0),isNaN(d.zlevel)&&(dg(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,a);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,a);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=Ee(this._roots,e);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})(),Nf;Nf=Ve.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var uu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-uu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?uu.bounceIn(r*2)*.5:uu.bounceOut(r*2-1)*.5+.5}},Pf=Math.pow,Xn=Math.sqrt,Rf=1e-8,mb=1e-4,yb=Xn(3),Of=1/3,Ta=Ni(),$r=Ni(),Es=Ni();function Zn(r){return r>-Rf&&r<Rf}function _b(r){return r>Rf||r<-Rf}function Ot(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function Sb(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Vf(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Zn(c)&&Zn(f))if(Zn(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var p=f*f-4*c*h;if(Zn(p)){var g=f/c,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m)}else if(p>0){var _=Xn(p),S=c*s+1.5*o*(-f+_),x=c*s+1.5*o*(-f-_);S<0?S=-Pf(-S,Of):S=Pf(S,Of),x<0?x=-Pf(-x,Of):x=Pf(x,Of);var d=(-s-(S+x))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var b=(2*c*s-3*o*f)/(2*Xn(c*c*c)),w=Math.acos(b)/3,C=Xn(c),E=Math.cos(w),d=(-s-2*C*E)/(3*o),m=(-s+C*(E+yb*Math.sin(w)))/(3*o),T=(-s+C*(E-yb*Math.sin(w)))/(3*o);d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m),T>=0&&T<=1&&(i[v++]=T)}}return v}function xb(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Zn(o)){if(_b(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var c=i*i-4*o*s;if(Zn(c))n[0]=-i/(2*o);else if(c>0){var f=Xn(c),u=(-i+f)/(2*o),h=(-i-f)/(2*o);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function qn(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,c=(l-s)*n+s,f=(c-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=a}function bb(r,e,t,a,n,i,o,s,l,u,c){var f,h=.005,v=1/0,d,p,g,m;Ta[0]=l,Ta[1]=u;for(var _=0;_<1;_+=.05)$r[0]=Ot(r,t,n,o,_),$r[1]=Ot(e,a,i,s,_),g=Ri(Ta,$r),g<v&&(f=_,v=g);v=1/0;for(var S=0;S<32&&!(h<mb);S++)d=f-h,p=f+h,$r[0]=Ot(r,t,n,o,d),$r[1]=Ot(e,a,i,s,d),g=Ri($r,Ta),d>=0&&g<v?(f=d,v=g):(Es[0]=Ot(r,t,n,o,p),Es[1]=Ot(e,a,i,s,p),m=Ri(Es,Ta),p<=1&&m<v?(f=p,v=m):h*=.5);return c&&(c[0]=Ot(r,t,n,o,f),c[1]=Ot(e,a,i,s,f)),Xn(v)}function c8(r,e,t,a,n,i,o,s,l){for(var u=r,c=e,f=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=Ot(r,t,n,o,d),g=Ot(e,a,i,s,d),m=p-u,_=g-c;f+=Math.sqrt(m*m+_*_),u=p,c=g}return f}function Ht(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function pg(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function f8(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(Zn(i)){if(_b(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var c=o*o-4*i*s;if(Zn(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(c>0){var f=Xn(c),u=(-o+f)/(2*i),h=(-o-f)/(2*i);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function wb(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function cu(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Cb(r,e,t,a,n,i,o,s,l){var u,c=.005,f=1/0;Ta[0]=o,Ta[1]=s;for(var h=0;h<1;h+=.05){$r[0]=Ht(r,t,n,h),$r[1]=Ht(e,a,i,h);var v=Ri(Ta,$r);v<f&&(u=h,f=v)}f=1/0;for(var d=0;d<32&&!(c<mb);d++){var p=u-c,g=u+c;$r[0]=Ht(r,t,n,p),$r[1]=Ht(e,a,i,p);var v=Ri($r,Ta);if(p>=0&&v<f)u=p,f=v;else{Es[0]=Ht(r,t,n,g),Es[1]=Ht(e,a,i,g);var m=Ri(Es,Ta);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Ht(r,t,n,u),l[1]=Ht(e,a,i,u)),Xn(f)}function h8(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,v=Ht(r,t,n,h),d=Ht(e,a,i,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var v8=/cubic-bezier\(([0-9,\.e ]+)\)/;function gg(r){var e=r&&v8.exec(r);if(e){var t=e[1].split(","),a=+Br(t[0]),n=+Br(t[1]),i=+Br(t[2]),o=+Br(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Vf(0,a,i,1,l,s)&&Ot(0,n,o,1,s[0])}}}var d8=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||pt,this.ondestroy=e.ondestroy||pt,this.onrestart=e.onrestart||pt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ce(e)?e:uu[e]||gg(e)},r})(),Tb=(function(){function r(e){this.value=e}return r})(),p8=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Tb(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Ds=(function(){function r(e){this._list=new p8,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Tb(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),Eb={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 sa(r){return r=Math.round(r),r<0?0:r>255?255:r}function g8(r){return r=Math.round(r),r<0?0:r>360?360:r}function fu(r){return r<0?0:r>1?1:r}function mg(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?sa(parseFloat(e)/100*255):sa(parseInt(e,10))}function Kn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?fu(parseFloat(e)/100):fu(parseFloat(e))}function yg(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function jn(r,e,t){return r+(e-r)*t}function Ur(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function _g(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Db=new Ds(20),Bf=null;function ks(r,e){Bf&&_g(Bf,e),Bf=Db.put(r,Bf||e.slice())}function Cr(r,e){if(r){e=e||[];var t=Db.get(r);if(t)return _g(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Eb)return _g(e,Eb[a]),ks(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Ur(e,0,0,0,1);return}return Ur(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),ks(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Ur(e,0,0,0,1);return}return Ur(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),ks(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ur(e,+u[0],+u[1],+u[2],1):Ur(e,0,0,0,1);c=Kn(u.pop());case"rgb":if(u.length>=3)return Ur(e,mg(u[0]),mg(u[1]),mg(u[2]),u.length===3?c:Kn(u[3])),ks(r,e),e;Ur(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ur(e,0,0,0,1);return}return u[3]=Kn(u[3]),Sg(u,e),ks(r,e),e;case"hsl":if(u.length!==3){Ur(e,0,0,0,1);return}return Sg(u,e),ks(r,e),e;default:return}}Ur(e,0,0,0,1)}}function Sg(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Kn(r[1]),n=Kn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Ur(e,sa(yg(o,i,t+1/3)*255),sa(yg(o,i,t)*255),sa(yg(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function m8(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var c=((i-e)/6+o/2)/o,f=((i-t)/6+o/2)/o,h=((i-a)/6+o/2)/o;e===i?l=h-f:t===i?l=1/3+c-h:a===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function xg(r,e){var t=Cr(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Ea(t,t.length===4?"rgba":"rgb")}}function bg(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=sa(jn(o[0],s[0],l)),t[1]=sa(jn(o[1],s[1],l)),t[2]=sa(jn(o[2],s[2],l)),t[3]=fu(jn(o[3],s[3],l)),t}}function y8(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Cr(e[n]),s=Cr(e[i]),l=a-n,u=Ea([sa(jn(o[0],s[0],l)),sa(jn(o[1],s[1],l)),sa(jn(o[2],s[2],l)),fu(jn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Qn(r,e,t,a){var n=Cr(r);if(r)return n=m8(n),e!=null&&(n[0]=g8(ce(e)?e(n[0]):e)),t!=null&&(n[1]=Kn(ce(t)?t(n[1]):t)),a!=null&&(n[2]=Kn(ce(a)?a(n[2]):a)),Ea(Sg(n),"rgba")}function zf(r,e){var t=Cr(r);if(t&&e!=null)return t[3]=fu(e),Ea(t,"rgba")}function Ea(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Gf(r,e){var t=Cr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var kb=new Ds(100);function wg(r){if(Q(r)){var e=kb.get(r);return e||(e=xg(r,-.1),kb.put(r,e)),e}else if(wf(r)){var t=U({},r);return t.colorStops=K(r.colorStops,function(a){return{offset:a.offset,color:xg(a.color,-.1)}}),t}return r}var Ff=Math.round;function hu(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Cr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Ab=1e-4;function Jn(r){return r<Ab&&r>-Ab}function Hf(r){return Ff(r*1e3)/1e3}function Cg(r){return Ff(r*1e4)/1e4}function _8(r){return"matrix("+Hf(r[0])+","+Hf(r[1])+","+Hf(r[2])+","+Hf(r[3])+","+Cg(r[4])+","+Cg(r[5])+")"}var S8={left:"start",right:"end",center:"middle",middle:"middle"};function x8(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function b8(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function w8(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Mb(r){return r&&!!r.image}function C8(r){return r&&!!r.svgElement}function Tg(r){return Mb(r)||C8(r)}function Ib(r){return r.type==="linear"}function Lb(r){return r.type==="radial"}function Nb(r){return r&&(r.type==="linear"||r.type==="radial")}function $f(r){return"url(#"+r+")"}function Pb(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Rb(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Df,n=oe(r.scaleX,1),i=oe(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Ff(o*Df)+"deg, "+Ff(s*Df)+"deg)"),l.join(" ")}var T8=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return process.env.NODE_ENV!=="production"&&oa("Base64 isn't natively supported in the current environment."),null}})(),Eg=Array.prototype.slice;function vn(r,e,t){return(e-r)*t+r}function Dg(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=vn(e[i],t[i],a);return r}function E8(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=vn(e[o][s],t[o][s],a)}return r}function Uf(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function Ob(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function D8(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function k8(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:Eg.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var c=0;c<u;c++)isNaN(a[l][c])&&(a[l][c]=n[l][c])}}function vu(r){if(er(r)){var e=r.length;if(er(r[0])){for(var t=[],a=0;a<e;a++)t.push(Eg.call(r[a]));return t}return Eg.call(r)}return r}function Wf(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 A8(r){return er(r&&r[0])?2:1}var Yf=0,Xf=1,Vb=2,du=3,kg=4,Ag=5,Bb=6;function zb(r){return r===kg||r===Ag}function Zf(r){return r===Xf||r===Vb}var pu=[0,0,0,0],M8=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=Bb,l=t;if(er(t)){var u=A8(t);s=u,(u===1&&!Ge(t[0])||u===2&&!Ge(t[0][0]))&&(o=!0)}else if(Ge(t)&&!Gt(t))s=Yf;else if(Q(t))if(!isNaN(+t))s=Yf;else{var c=Cr(t);c&&(l=c,s=du)}else if(wf(t)){var f=U({},l);f.colorStops=K(t.colorStops,function(v){return{offset:v.offset,color:Cr(v.color)}}),Ib(t)?s=kg:Lb(t)&&(s=Ag),l=f}i===0?this.valType=s:(s!==this.valType||s===Bb)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return a&&(h.easing=a,h.easingFunc=ce(a)?a:uu[a]||gg(a)),n.push(h),h},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Zf(n),u=zb(n),c=0;c<i;c++){var f=a[c],h=f.value,v=o.value;f.percent=f.time/e,s||(l&&c!==i-1?k8(h,v,n):u&&D8(h.colorStops,v.colorStops))}if(!s&&n!==Ag&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,c=0;c<i;c++)n===Yf?a[c].additiveValue=a[c].value-d:n===du?a[c].additiveValue=Uf([],a[c].value,d,-1):Zf(n)&&(a[c].additiveValue=n===Xf?Uf([],a[c].value,d,-1):Ob([],a[c].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===du,c,f=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var p=h(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=t);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);c++);c=h(c-1,s-2)}d=o[c+1],v=o[c]}if(v&&d){this._lastFr=c,this._lastFrP=t;var g=d.percent-v.percent,m=g===0?1:h((t-v.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var _=a?this._additiveValue:u?pu:e[l];if((Zf(i)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)e[l]=m<1?v.rawValue:d.rawValue;else if(Zf(i))i===Xf?Dg(_,v[n],d[n],m):E8(_,v[n],d[n],m);else if(zb(i)){var S=v[n],x=d[n],b=i===kg;e[l]={type:b?"linear":"radial",x:vn(S.x,x.x,m),y:vn(S.y,x.y,m),colorStops:K(S.colorStops,function(C,E){var T=x.colorStops[E];return{offset:vn(C.offset,T.offset,m),color:Wf(Dg([],C.color,T.color,m))}}),global:x.global},b?(e[l].x2=vn(S.x2,x.x2,m),e[l].y2=vn(S.y2,x.y2,m)):e[l].r=vn(S.r,x.r,m)}else if(u)Dg(_,v[n],d[n],m),a||(e[l]=Wf(_));else{var w=vn(v[n],d[n],m);a?this._additiveValue=w:e[l]=w}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Yf?e[a]=e[a]+n:t===du?(Cr(e[a],pu),Uf(pu,pu,n,1),e[a]=Wf(pu)):t===Xf?Uf(e[a],e[a],n,1):t===Vb&&Ob(e[a],e[a],n,1)},r})(),Mg=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){oa("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Oe(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new M8(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===du&&u&&(u=Wf(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,vu(u),n),this._trackKeys.push(s)}l.addKeyframe(e,vu(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var h=new d8({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,v);var m=t._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return K(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=vu(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Oe(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function As(){return new Date().getTime()}var I8=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=As()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(Nf(a),!t._paused&&t.update())}Nf(a)},e.prototype.start=function(){this._running||(this._time=As(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=As(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=As()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new Mg(t,a.loop);return this.addAnimator(n),n},e})(zr),L8=300,Ig=Ve.domSupported,Lg=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=K(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),Gb={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Fb=!1;function Ng(r){var e=r.pointerType;return e==="pen"||e==="touch"}function N8(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 Pg(r){r&&(r.zrByTouch=!0)}function P8(r,e){return Gr(r.dom,new R8(r,e),!0)}function Hb(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var R8=(function(){function r(e,t){this.stopPropagation=pt,this.stopImmediatePropagation=pt,this.preventDefault=pt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),la={mousedown:function(r){r=Gr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Gr(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Gr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Gr(this.dom,r);var e=r.toElement||r.relatedTarget;Hb(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Fb=!0,r=Gr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Fb||(r=Gr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Gr(this.dom,r),Pg(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),la.mousemove.call(this,r),la.mousedown.call(this,r)},touchmove:function(r){r=Gr(this.dom,r),Pg(r),this.handler.processGesture(r,"change"),la.mousemove.call(this,r)},touchend:function(r){r=Gr(this.dom,r),Pg(r),this.handler.processGesture(r,"end"),la.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<L8&&la.click.call(this,r)},pointerdown:function(r){la.mousedown.call(this,r)},pointermove:function(r){Ng(r)||la.mousemove.call(this,r)},pointerup:function(r){la.mouseup.call(this,r)},pointerout:function(r){Ng(r)||la.mouseout.call(this,r)}};k(["click","dblclick","contextmenu"],function(r){la[r]=function(e){e=Gr(this.dom,e),this.trigger(r,e)}});var Rg={pointermove:function(r){Ng(r)||Rg.mousemove.call(this,r)},pointerup:function(r){Rg.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function O8(r,e){var t=e.domHandlers;Ve.pointerEventsSupported?k(Lg.pointer,function(a){qf(e,a,function(n){t[a].call(r,n)})}):(Ve.touchEventsSupported&&k(Lg.touch,function(a){qf(e,a,function(n){t[a].call(r,n),N8(e)})}),k(Lg.mouse,function(a){qf(e,a,function(n){n=ag(n),e.touching||t[a].call(r,n)})}))}function V8(r,e){Ve.pointerEventsSupported?k(Gb.pointer,t):Ve.touchEventsSupported||k(Gb.mouse,t);function t(a){function n(i){i=ag(i),Hb(r,i.target)||(i=P8(r,i),e.domHandlers[a].call(r,i))}qf(e,a,n,{capture:!0})}}function qf(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,ng(r.domTarget,e,t,a)}function Og(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&X4(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var $b=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),B8=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new $b(t,la),Ig&&(n._globalHandlerScope=new $b(document,Rg)),O8(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Og(this._localHandlerScope),Ig&&Og(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Ig&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?V8(this,a):Og(a)}},e})(zr),Ub=1;Ve.hasGlobalWindow&&(Ub=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Kf=Ub,Vg=.4,Bg="#333",zg="#ccc",z8="#eee",Wb=bs,Yb=5e-5;function Hi(r){return r>Yb||r<-Yb}var $i=[],Ms=[],Gg=ft(),Fg=Math.abs,Da=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return ei(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Hi(this.rotation)||Hi(this.x)||Hi(this.y)||Hi(this.scaleX-1)||Hi(this.scaleY-1)||Hi(this.skewX)||Hi(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(Wb(a),this.invTransform=null);return}a=a||ft(),t?this.getLocalTransform(a):Wb(a),e&&(t?Fr(a,e,a):Oi(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a),this.invTransform=this.invTransform||ft(),Hr(this.invTransform,a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale($i);var a=$i[0]<0?-1:1,n=$i[1]<0?-1:1,i=(($i[0]-a)*t+a)/$i[0]||0,o=(($i[1]-n)*t+n)/$i[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ft(),Fr(Ms,e.invTransform,t),t=Ms);var a=this.originX,n=this.originY;(a||n)&&(Gg[4]=a,Gg[5]=n,Fr(Ms,t,Gg),Ms[4]-=a,Ms[5]-=n,t=Ms),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&gt(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&gt(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Fg(e[0]-1)>1e-10&&Fg(e[3]-1)>1e-10?Math.sqrt(Fg(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){ka(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-h*p*o,t[5]=-p*o-v*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=v*i,t[2]=h*o,u&&Yn(t,t,u),t[4]+=a+c,t[5]+=n+f,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),ei=Da.getLocalTransform;function Is(){return new Da}var dn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ka(r,e){return D4(r,e,dn)}function Aa(r){jf||(jf=new Ds(100)),r=r||cn;var e=jf.get(r);return e||(e={font:r,strWidthCache:new Ds(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ur.measureText("国",r).width,asciiCharWidth:ur.measureText("a",r).width},jf.put(r,e)),e}var jf;function G8(r){if(!(Hg>=Xb)){r=r||cn;for(var e=[],t=+new Date,a=0;a<=127;a++)e[a]=ur.measureText(String.fromCharCode(a),r).width;var n=+new Date-t;return n>16?Hg=Xb:n>2&&Hg++,e}}var Hg=0,Xb=5;function Zb(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=G8(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Ma(r,e){var t=r.strWidthCache,a=t.get(e);return a==null&&(a=ur.measureText(e,r.font).width,t.put(e,a)),a}function qb(r,e,t,a){var n=Ma(Aa(e),r),i=gu(e),o=Ls(0,n,t),s=Ui(0,i,a),l=new pe(o,s,n,i);return l}function Qf(r,e,t,a){var n=((r||"")+"").split(`
22
+ `),i=n.length;if(i===1)return qb(n[0],e,t,a);for(var o=new pe(0,0,0,0),s=0;s<n.length;s++){var l=qb(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Ls(r,e,t,a){return t==="right"?a?r+=e:r-=e:t==="center"&&(a?r+=e/2:r-=e/2),r}function Ui(r,e,t,a){return t==="middle"?a?r+=e/2:r-=e/2:t==="bottom"&&(a?r+=e:r-=e),r}function gu(r){return Aa(r).stWideCharWidth}function Ia(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Jf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",f="top";if(a instanceof Array)l+=Ia(a[0],t.width),u+=Ia(a[1],t.height),c=null,f=null;else switch(a){case"left":l-=n,u+=s,c="right",f="middle";break;case"right":l+=n+o,u+=s,f="middle";break;case"top":l+=o/2,u-=n,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+n,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=n,u+=s,f="middle";break;case"insideRight":l+=o-n,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=n,c="center";break;case"insideBottom":l+=o/2,u+=i-n,c="center",f="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=i-n,f="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var $g="__zr_normal__",Ug=dn.concat(["ignore"]),F8=wa(dn,function(r,e){return r[e]=!0,r},{ignore:!1}),Ns={},H8=new pe(0,0,0,0),eh=[],th=0,rh=1,ah=(function(){function r(e){this.id=Wx(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(t);var c=a.position!=null,f=a.autoOverflowArea,h=void 0;if((f||c)&&(h=H8,a.layoutRect?h.copy(a.layoutRect):h.copy(this.getBoundingRect()),n||h.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(Ns,a,h):Jf(Ns,a,h),i.x=Ns.x,i.y=Ns.y,o=Ns.align,s=Ns.verticalAlign;var v=a.origin;if(v&&a.rotation!=null){var d=void 0,p=void 0;v==="center"?(d=h.width*.5,p=h.height*.5):(d=Ia(v[0],h.width),p=Ia(v[1],h.height)),u=!0,i.originX=-i.x+d+(n?0:h.x),i.originY=-i.y+p+(n?0:h.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var _=m.overflowRect=m.overflowRect||new pe(0,0,0,0);i.getLocalTransform(eh),Hr(eh,eh),pe.copy(_,h),_.applyTransform(eh)}else m.overflowRect=null;var S=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,x=void 0,b=void 0,w=void 0;S&&this.canBeInsideText()?(x=a.insideFill,b=a.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(x),w=!0)):(x=a.outsideFill,b=a.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(x),w=!0)),x=x||"#000",(x!==m.fill||b!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=x,m.stroke=b,m.autoStroke=w,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=wr,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zg:Bg},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Cr(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Ea(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},U(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(de(e))for(var a=e,n=Oe(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==$g)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Ug)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState($g,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===$g,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Ee(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){oa("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=this._textContent,f=jb(this,c,u,n);f&&!this.__inHover&&(this.__inHover=f),this._applyStateObj(e,u,this._normalState,t,Jb(this,a,l),l);var h=this._textGuide;return c&&c.useState(e,t,a,!!f),h&&h.useState(e,t,a,!!f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=th,this.__dirty&=~wr),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&n.push(c)}var f=n[o-1],h=this._textContent,v=jb(this,h,f,a);v&&!this.__inHover&&(this.__inHover=v);var d=this._mergeStates(n),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Jb(this,t,p),p);var g=this._textGuide;h&&h.useStates(e,t,!!v),g&&g.useStates(e,t,!!v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=th,this.__dirty&=~wr)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=Ee(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=Ee(n,e),o=Ee(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];U(t,i),i.textConfig&&(a=a||{},U(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){if(this.__inHover!==rh){var s=!(t&&n);t&&t.textConfig?(this.textConfig=U({},n?this.textConfig:a.textConfig),U(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,c=0;c<Ug.length;c++){var f=Ug[c],h=i&&F8[f];t&&t[f]!=null?h?(u=!0,l[f]=t[f]):this[f]=t[f]:s&&a[f]!=null&&(h?(u=!0,l[f]=a[f]):this[f]=a[f])}if(!i)for(var c=0;c<this.animators.length;c++){var v=this.animators[c],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)}},r.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Da,this._attachComponent(e),this._textContent=e,this.markRedraw()}},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),U(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=wr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!n){oa('Property "'+e+'" is not existed in element '+this.id);return}var i=new Mg(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=Ee(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){Wg(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Wg(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=Wg(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=th,e.__dirty=wr;var t={};function a(i,o,s){t[i+o+s]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[i+o+s]=!0)}function n(i,o,s,l){Object.defineProperty(e,i,{get:function(){if(process.env.NODE_ENV!=="production"&&a(i,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){process.env.NODE_ENV!=="production"&&a(i,s,l),this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(h){c[s]=h}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(h){c[l]=h}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),r})();kt(ah,zr),kt(ah,Da);function Wg(r,e,t,a,n){t=t||{};var i=[];Kb(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var h=0;h<i.length;h++){var v=i[h];c&&v.done(c),f&&v.aborted(f),t.force&&v.duration(t.duration),v.start(t.easing)}return i}function Yg(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function $8(r){return er(r[0])}function U8(r,e,t){if(er(e[t]))if(er(r[t])||(r[t]=[]),cr(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Yg(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if($8(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Yg(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Yg(i,n,o);i.length=n.length}else r[t]=e[t]}function W8(r,e){return r===e||er(r)&&er(e)&&Y8(r,e)}function Y8(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function Kb(r,e,t,a,n,i,o,s){for(var l=Oe(a),u=n.duration,c=n.delay,f=n.additive,h=n.setToFinal,v=!de(i),d=r.animators,p=[],g=0;g<l.length;g++){var m=l[g],_=a[m];if(_!=null&&t[m]!=null&&(v||i[m]))if(de(_)&&!er(_)&&!wf(_)){if(e){s||(t[m]=_,r.updateDuringAnimation(e));continue}Kb(r,m,t[m],_,n,i&&i[m],o,s)}else p.push(m);else s||(t[m]=_,r.updateDuringAnimation(e),p.push(m))}var S=p.length;if(!f&&S)for(var x=0;x<d.length;x++){var b=d[x];if(b.targetName===e){var w=b.stopTracks(p);if(w){var C=Ee(d,b);d.splice(C,1)}}}if(n.force||(p=Ze(p,function(A){return!W8(a[A],t[A])}),S=p.length),S>0||n.force&&!o.length){var E=void 0,T=void 0,D=void 0;if(s){T={},h&&(E={});for(var x=0;x<S;x++){var m=p[x];T[m]=t[m],h?E[m]=a[m]:t[m]=a[m]}}else if(h){D={};for(var x=0;x<S;x++){var m=p[x];D[m]=vu(t[m]),U8(t,a,m)}}var b=new Mg(t,!1,!1,f?Ze(d,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),h&&E&&b.whenWithKeys(0,E,p),D&&b.whenWithKeys(0,D,p),b.whenWithKeys(u??500,s?T:a,p).delay(c||0),r.addAnimator(b,e),o.push(b)}}function jb(r,e,t,a){return!(t&&t.hoverLayer||a)||Qb(r)||e&&Qb(e)?th:rh}function Qb(r){return r.type==="text"||r.type==="tspan"}function Jb(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var ge=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),process.env.NODE_ENV!=="production"&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=Ee(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=Ee(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new pe(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(pe.applyTransform(a,u,c),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(ah);ge.prototype.type="group";/*!
23
+ * ZRender, a high performance 2d drawing library.
24
+ *
25
+ * Copyright (c) 2013, Baidu Inc.
26
+ * All rights reserved.
27
+ *
28
+ * LICENSE
29
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
30
+ */var mu={},ew={};function X8(r){delete ew[r]}function Z8(r){if(!r)return!1;if(typeof r=="string")return Gf(r,1)<Vg;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=Gf(e[n].color,1);return t/=a,t<Vg}return!1}var q8=(function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new u8,o=a.renderer||"canvas";if(mu[o]||(o=Oe(mu)[0]),process.env.NODE_ENV!=="production"&&!mu[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new mu[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Ve.node&&!Ve.worker&&!l?new B8(s.getViewportRoot(),s.root):null,c=a.useCoarsePointer,f=c==null||c==="auto"?Ve.touchEventsSupported:!!c,h=44,v;f&&(v=oe(a.pointerSize,h)),this.handler=new ub(i,s,u,s.root,v),this.animation=new I8({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Z8(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(e){var t,a=As(),n=this._needsRefresh,i=this._needsRefreshHover;(n||i)&&(t=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:i}));var o=As();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ge&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,X8(this.id))},r})();function tw(r,e){var t=new q8(Wx(),r,e);return ew[t.id]=t,t}function K8(r,e){mu[r]=e}var Xg;function j8(r){if(typeof Xg=="function")return Xg(r)}function Q8(r){Xg=r}var rw=1e-4,aw=20,J8=14;function e6(r){return r.replace(/^\s+|\s+$/g,"")}var Ke=Math.min,Ie=Math.max,dt=Math.abs,La=Math.round,ua=Math.floor,Wi=Math.ceil,Yi=Math.pow,yu=Math.log,Zg=Math.LN10,nh=Math.PI,t6=Math.random;function Ue(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var ee=r6;function r6(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return ih(r,e,t)}function ih(r,e,t){return Q(r)?nw(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function a6(r){return Q(r)&&nw(r)}function nw(r){return!!e6(r).match(/%$/)}function He(r,e,t){return process.env.NODE_ENV!=="production"&&Z(e!=null),isNaN(e)?t?""+r:+r:(e=Ke(Ie(0,e),aw),r=(+r).toFixed(e),t?r:+r)}function Zt(r){return r.sort(function(e,t){return e-t}),r}function Na(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(La(r*e)/e===r)return t}return n6(r)}function n6(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Ie(0,o-a)}function qg(r,e,t){var a=dt(r[1]-r[0]);if(!isFinite(a)||a===0)return NaN;var n=yu(2*dt(t||1)*dt(a))/Zg,i=yu(dt(e))/Zg,o=Ie(0,Wi(-n+i));return isFinite(o)||(o=NaN),o}function i6(r,e){var t=wa(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Yi(10,e),n=K(r,function(v){return(isNaN(v)?0:v)/t*a*100}),i=a*100,o=K(n,function(v){return ua(v)}),s=wa(o,function(v,d){return v+d},0),l=K(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return K(o,function(v){return v/a})}function Xi(r,e){var t=Ie(Na(r),Na(e)),a=r+e;return t>aw?a:He(a,t)}var oh=Yi(2,53)-1;function iw(r){var e=nh*2;return(r%e+e)%e}function Ps(r){return r>-rw&&r<rw}var o6=/^(?:(\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 Zi(r){if(r instanceof Date)return r;if(Q(r)){var e=o6.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(La(r))}function ow(r){return Yi(10,Kg(r))}function Kg(r){if(r===0)return 0;var e=ua(yu(r)/Zg);return r/Yi(10,e)>=10&&e++,e}var sw=2;function jg(r,e){var t=Kg(r),a=Yi(10,t),n=r/a,i;return e===sw?i=1:e?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,He(r,-t)}function Qg(r,e){var t=(r.length-1)*e+1,a=ua(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function lw(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function pn(r){var e=parseFloat(r);return e==r&&(e!==0||!Q(r)||r.indexOf("x")<=0)?e:NaN}function Jg(r){return!isNaN(pn(r))}function em(){return La(t6()*9)}function uw(r,e){return e===0?r:uw(e,r%e)}function cw(r,e){return r==null?e:e==null?r:r*e/uw(r,e)}function Ir(r){return r!=null&&isFinite(r)}var s6="[ECharts] ",fw={},l6=typeof console<"u"&&console.warn&&console.log;function sh(r,e,t){if(l6){if(t){if(fw[e])return;fw[e]=!0}console[r](s6+e)}}function hw(r,e){sh("log",r,e)}function lt(r,e){sh("warn",r,e)}function Be(r,e){sh("error",r,e)}function Pa(r){process.env.NODE_ENV!=="production"&&sh("warn","DEPRECATED: "+r,!0)}function wt(r,e,t){process.env.NODE_ENV!=="production"&&Pa((t?"["+t+"]":"")+(r+" is deprecated; use "+e+" instead."))}function vr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t="";if(process.env.NODE_ENV!=="production"){var a=function(n){return n===void 0?"undefined":n===1/0?"Infinity":n===-1/0?"-Infinity":Gt(n)?"NaN":n instanceof Date?"Date("+n.toISOString()+")":ce(n)?"function () { ... }":Xx(n)?n+"":null};t=K(r,function(n){if(Q(n))return n;var i=a(n);if(i!=null)return i;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(n,function(o,s){var l=a(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return t}function Ye(r){throw new Error(r)}function vw(r,e,t){return(e-r)*t+r}var dw="series\0",pw="\0_ec_\0";function tt(r){return r instanceof Array?r:r==null?[]:[r]}function qi(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var gw=["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 Rs(r){return de(r)&&!Y(r)&&!(r instanceof Date)?r.value:r}function u6(r){return de(r)&&!(r instanceof Array)}function mw(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=re();k(e,function(l,u){if(!de(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Sw(l.id)&&_w(l.id),l.name!=null&&!Sw(l.name)&&_w(l.name))});var s=c6(r,o,t);return(a||n)&&f6(s,r,o,e),a&&h6(s,e),a||n?v6(s,e,n):i&&d6(s,e),p6(s),s}function c6(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||Os(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function f6(r,e,t,a){k(a,function(n,i){if(!(!n||n.id==null)){var o=_u(n.id),s=t.get(o);if(s!=null){var l=r[s];Z(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function h6(r,e){k(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!Os(t)&&!Os(i)&&yw("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function v6(r,e,t){k(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||Os(n.existing)||n.existing&&a.id!=null&&!yw("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function d6(r,e){k(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function p6(r){var e=re();k(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),k(r,function(t){var a=t.newOption;Z(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),k(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(de(i)){if(o.name=i.name!=null?_u(i.name):n?n.name:dw+a,n)o.id=_u(n.id);else if(i.id!=null)o.id=_u(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function yw(r,e,t){var a=At(e[r],null),n=At(t[r],null);return a!=null&&n!=null&&a===n}function _u(r){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;return At(r,"")}function At(r,e){return r==null?e:Q(r)?r:Ge(r)||bf(r)?r+"":e}function _w(r){process.env.NODE_ENV!=="production"&&lt("`"+r+"` is invalid id or name. Must be a string or number.")}function Sw(r){return bf(r)||Jg(r)}function tm(r){var e=r.name;return!!(e&&e.indexOf(dw))}function Os(r){return r&&r.id!=null&&_u(r.id).indexOf(pw)===0}function g6(r){return pw+r}function m6(r,e,t){k(r,function(a){var n=a.newOption;de(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=y6(e,n,a.existing,t))})}function y6(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function _6(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=At(o[u].seriesId,null);if(f==null)return;for(var h=tt(o[u].dataIndex),v=l&&l[f],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[g]=null:(s[f]||(s[f]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Ki(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return Y(e.dataIndex)?K(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return Y(e.name)?K(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function De(){var r="__ec_inner_"+S6++;return function(e){return e[r]||(e[r]={})}}var S6=em();function Vs(r,e,t){var a=rm(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var f=Bs(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function rm(r,e){var t;if(Q(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=re(),i={},o=!1;return k(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&Ee(e.includeMainTypes,c)<0)){o=o||!!c;var h=n.get(c)||n.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var mt={useDefault:!0,enableAll:!1,enableNone:!1},x6={useDefault:!1,enableAll:!0,enableNone:!0};function Bs(r,e,t,a){a=a||mt;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;process.env.NODE_ENV!=="production"&&Be('`"none"` or `false` is not a valid value on index option.'),n=-1}return n==="all"&&(a.enableAll?n=i=o=null:(process.env.NODE_ENV!=="production"&&Be('`"all"` is not a valid value on index option.'),n=-1)),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s}function am(r,e,t){process.env.NODE_ENV!=="production"&&Z(e);var a={};a[e+"Id"]=r[e+"Id"],a[e+"Index"]=r[e+"Index"],a[e+"Name"]=r[e+"Name"];var n={mainType:e,query:a};return t&&(n.subType=t),n}function xw(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function b6(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function w6(r){return r==="auto"?Ve.domSupported?"html":"richText":r||"html"}function nm(r,e){var t=re(),a=[];return k(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function bw(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(Ge(a)){var o=vw(t||0,a,n);return He(o,i?Math.max(Na(t||0),Na(a)):e)}else{if(Q(a))return n<1?t:a;for(var s=[],l=t,u=a,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=r.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var v=l&&l[f]?l[f]:0,d=u[f],o=vw(v,d,n);s[f]=He(o,i?Math.max(Na(v),Na(d)):e)}}return s}}var ti=(function(){function r(){}return r.prototype.reset=function(e,t,a,n){return this._list=e,this._step=n=n||1,this._idx=t,this._end=a??(n>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function im(r){r.option=r.parentModel=r.ecModel=null}function qt(){return[1/0,-1/0]}function om(r,e){gn(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function ww(r,e){gn(e)&&e<r[0]&&(r[0]=e)}function Cw(r,e){gn(e)&&e>r[1]&&(r[1]=e)}function C6(r,e){ji(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function gn(r){return r!=null&&isFinite(r)}function ji(r,e){return gn(r)&&gn(e)&&r<=e}function T6(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function lh(r){ji(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function zs(){var r="__ec_once_"+E6++;return function(e,t){process.env.NODE_ENV!=="production"&&Z(e),ae(e,r)||(e[r]=1,t())}}var E6=em();function uh(r,e,t){var a=re(),n=0;k(r,function(i){var o=e(i);process.env.NODE_ENV!=="production"&&Z(Q(o));var s=a.get(o)||0;t&&t(i,s),!s&&!t&&(r[n++]=i),a.set(o,s+1)}),t||(r.length=n)}function D6(r){return process.env.NODE_ENV!=="production"&&Z(r.value!=null),r.value+""}function k6(r){return process.env.NODE_ENV!=="production"&&Z(r!=null),r+""}function Ra(r,e){return oe(e,!0)?r.seriesIndex+2:0}function Tw(r,e,t){var a=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&a>=t.threshold,large:r.get("large")&&a>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function Ew(r,e){Z(r.start===e.start&&r.end===e.end)}function Mt(r,e){return{seriesType:r,overallReset:e}}function Su(r){return{overallReset:r}}var A6=".",Qi="___EC__COMPONENT__CONTAINER___",Dw="___EC__EXTENDED_CLASS___";function Oa(r){var e={main:"",sub:""};if(r){var t=r.split(A6);e.main=t[0]||"",e.sub=t[1]||""}return e}function M6(r){Z(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function I6(r){return!!(r&&r[Dw])}function sm(r,e){r.$constructor=r,r.extend=function(t){process.env.NODE_ENV!=="production"&&k(e,function(i){t[i]||console.warn("Method `"+i+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var a=this,n;return L6(a)?n=(function(i){z(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},k4(n,this)),U(n.prototype,t),n[Dw]=!0,n.extend=this.extend,n.superCall=R6,n.superApply=O6,n.superClass=a,n}}function L6(r){return ce(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function kw(r,e){r.extend=e.extend}var N6=Math.round(Math.random()*10);function P6(r){var e=["__\0is_clz",N6++].join("_");r.prototype[e]=!0,process.env.NODE_ENV!=="production"&&Z(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(t){return!!(t&&t[e])}}function R6(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function O6(r,e,t){return this.superClass.prototype[e].apply(r,t)}function ch(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){M6(n),a.prototype.type=n;var i=Oa(n);if(!i.sub)process.env.NODE_ENV!=="production"&&e[i.main]&&console.warn(i.main+" exists."),e[i.main]=a;else if(i.sub!==Qi){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Qi]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Oa(a),i=[],o=e[n.main];return o&&o[Qi]?k(o,function(s,l){l!==Qi&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Oa(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return k(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Oa(a),i=e[n.main];return i&&i[Qi]};function t(a){var n=e[a.main];return(!n||!n[Qi])&&(n=e[a.main]={},n[Qi]=!0),n}}function Ji(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&Ee(n,l)>=0||i&&Ee(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var V6=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],B6=Ji(V6),z6=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return B6(this,e,t)},r})(),lm=new Ds(50);function G6(r){if(typeof r=="string"){var e=lm.get(r);return e&&e.image}else return r}function um(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=lm.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!fh(e)&&i.pending.push(o)):(e=ur.loadImage(r,Aw,Aw),e.__zrImageSrc=r,lm.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Aw(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function fh(r){return r&&r.width&&r.height}var cm=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function F6(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
31
+ `);i=Mw(t,a,n,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)Iw(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
32
+ `),r.isTruncated=s}function Mw(r,e,t,a){a=a||{};var n=U({},a);t=oe(t,"..."),n.maxIterations=oe(a.maxIterations,2);var i=n.minChar=oe(a.minChar,0),o=n.fontMeasureInfo=Aa(e),s=o.asciiCharWidth;n.placeholder=oe(a.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var c=Ma(o,t);return c>l&&(t="",c=0),l=r-c,n.ellipsis=t,n.ellipsisWidth=c,n.contentWidth=l,n.containerWidth=r,n}function Iw(r,e,t){var a=t.containerWidth,n=t.contentWidth,i=t.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ma(i,e);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?H6(e,n,i):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Ma(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function H6(r,e,t){for(var a=0,n=0,i=r.length;n<i&&a<e;n++)a+=Zb(t,r.charCodeAt(n));return n}function $6(r,e,t,a){var n=hm(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c=i==="truncate",f=gu(u),h=oe(e.lineHeight,f),v=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&t!=null&&(p=t-s);var g=e.height;g==null&&a!=null&&(g=a-l);var m;p!=null&&(i==="break"||i==="breakAll")?m=n?Nw(n,e.font,p,i==="breakAll",0).lines:[]:m=n?n.split(`
33
+ `):[];var _=m.length*h;if(g==null&&(g=_),_>g&&v){var S=Math.floor(g/h);d=d||m.length>S,m=m.slice(0,S),_=m.length*h}if(n&&c&&p!=null)for(var x=Mw(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<m.length;w++)Iw(b,m[w],x),m[w]=b.textLine,d=d||b.isTruncated;for(var C=g,E=0,T=Aa(u),w=0;w<m.length;w++)E=Math.max(Ma(T,m[w]),E);p==null&&(p=E);var D=p;return C+=l,D+=s,{lines:m,height:g,outerWidth:D,outerHeight:C,lineHeight:h,calculatedLineHeight:f,contentWidth:E,contentHeight:_,width:p,isTruncated:d}}var U6=(function(){function r(){}return r})(),Lw=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),W6=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function Y6(r,e,t,a,n){var i=new W6,o=hm(r);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;c==null&&t!=null&&(c=t-l);var f=e.height;f==null&&a!=null&&(f=a-u);for(var h=e.overflow,v=(h==="break"||h==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:h==="breakAll"}:null,d=cm.lastIndex=0,p;(p=cm.exec(o))!=null;){var g=p.index;g>d&&fm(i,o.substring(d,g),e,v),fm(i,p[2],e,v,p[1]),d=cm.lastIndex}d<o.length&&fm(i,o.substring(d,o.length),e,v);var m=[],_=0,S=0,x=h==="truncate",b=e.lineOverflow==="truncate",w={};function C(q,Ce,fe){q.width=Ce,q.lineHeight=fe,_+=fe,S=Math.max(S,Ce)}e:for(var E=0;E<i.lines.length;E++){for(var T=i.lines[E],D=0,A=0,I=0;I<T.tokens.length;I++){var M=T.tokens[I],L=M.styleName&&e.rich[M.styleName]||{},N=M.textPadding=L.padding,R=N?N[1]+N[3]:0,P=M.font=L.font||e.font;M.contentHeight=gu(P);var O=oe(L.height,M.contentHeight);if(M.innerHeight=O,N&&(O+=N[0]+N[2]),M.height=O,M.lineHeight=fr(L.lineHeight,e.lineHeight,O),M.align=L&&L.align||n,M.verticalAlign=L&&L.verticalAlign||"middle",b&&f!=null&&_+M.lineHeight>f){var G=i.lines.length;I>0?(T.tokens=T.tokens.slice(0,I),C(T,A,D),i.lines=i.lines.slice(0,E+1)):i.lines=i.lines.slice(0,E),i.isTruncated=i.isTruncated||i.lines.length<G;break e}var F=L.width,B=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")M.percentWidth=F,m.push(M),M.contentWidth=Ma(Aa(P),M.text);else{if(B){var $=L.backgroundColor,j=$&&$.image;j&&(j=G6(j),fh(j)&&(M.width=Math.max(M.width,j.width*O/j.height)))}var W=x&&c!=null?c-A:null;W!=null&&W<M.width?!B||W<R?(M.text="",M.width=M.contentWidth=0):(F6(w,M.text,W-R,P,e.ellipsis,{minChar:e.truncateMinChar}),M.text=w.text,i.isTruncated=i.isTruncated||w.isTruncated,M.width=M.contentWidth=Ma(Aa(P),M.text)):M.contentWidth=Ma(Aa(P),M.text)}M.width+=R,A+=M.width,L&&(D=Math.max(D,M.lineHeight))}C(T,A,D)}i.outerWidth=i.width=oe(c,S),i.outerHeight=i.height=oe(f,_),i.contentHeight=_,i.contentWidth=S,i.outerWidth+=l,i.outerHeight+=u;for(var E=0;E<m.length;E++){var M=m[E],V=M.percentWidth;M.width=parseInt(V,10)/100*i.width}return i}function fm(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,c,f;if(a){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Ia(o.width,a.width)+v;s.length>0&&d+a.accumWidth>a.width&&(c=e.split(`
34
+ `),u=!0),a.accumWidth=d}else{var p=Nw(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+v,f=p.linesWidths,c=p.lines}}c||(c=e.split(`
35
+ `));for(var g=Aa(l),m=0;m<c.length;m++){var _=c[m],S=new U6;if(S.styleName=n,S.text=_,S.isLineHolder=!_&&!i,typeof o.width=="number"?S.width=o.width:S.width=f?f[m]:Ma(g,_),!m&&!u){var x=(s[s.length-1]||(s[0]=new Lw)).tokens,b=x.length;b===1&&x[0].isLineHolder?x[0]=S:(_||!b||i)&&x.push(S)}else s.push(new Lw([S]))}}function X6(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Z6=wa(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function q6(r){return X6(r)?!!Z6[r]:!0}function Nw(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,c=0,f=Aa(e),h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
36
+ `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var d=Zb(f,v.charCodeAt(0)),p=a?!1:!q6(v);if(i.length?c+d>t:n+c+d>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=v,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=v,c=d)):p?(i.push(l),o.push(u),l=v,u=d):(i.push(v),o.push(d));continue}c+=d,p?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=n),{accumWidth:c,lines:i,linesWidths:o}}function Pw(r,e,t,a,n,i){if(r.baseX=t,r.baseY=a,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;pe.set(Rw,Ls(t,o,n),Ui(a,s,i),o,s),pe.intersect(e,Rw,null,Ow);var l=Ow.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Ls(l.x,l.width,n,!0),r.baseY=Ui(l.y,l.height,i,!0)}}var Rw=new pe(0,0,0,0),Ow={outIntersectRect:{},clamp:!0};function hm(r){return r!=null?r+="":r=""}function K6(r){var e=hm(r.text),t=r.font,a=Ma(Aa(t),e),n=gu(t);return vm(r,a,n,null)}function vm(r,e,t,a){var n=new pe(Ls(r.x||0,e,r.textAlign),Ui(r.y||0,t,r.textBaseline),e,t),i=a??(Vw(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function Vw(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var dm="__zr_style_"+Math.round(Math.random()*10),eo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},hh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eo[dm]=!0;var Bw=["z","z2","invisible"],j6=["invisible"],Wr=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=Oe(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Q6(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new pe(0,0,0,0)),a?pe.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new pe(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:U(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=lu,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&lu)},e.prototype.styleUpdated=function(){this.__dirty&=~lu},e.prototype.createStyle=function(t){return Ef(eo,t)},e.prototype.useStyle=function(t){t[dm]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[dm]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,Bw)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u=this.__inHover===rh,c;if(a&&a.style?o?i?c=a.style:(c=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(c,a.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(c,a.style)):l&&(c=n.style),c)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=Oe(f),v=0;v<h.length;v++){var d=h[v];d in c&&(c[d]=c[d],this.style[d]=f[d])}for(var p=Oe(c),v=0;v<p.length;v++){var d=p[v];this.style[d]=this.style[d]}this._transitionState(t,{style:c},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(c):this.useStyle(c);if(!u)for(var g=this.__inHover?j6:Bw,v=0;v<g.length;v++){var d=g[v];a&&a[d]!=null?this[d]=a[d]:l&&n[d]!=null&&(this[d]=n[d])}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return U(t,a),t},e.prototype.getAnimationStyleProps=function(){return hh},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=wr|lu})(),e})(ah),pm=new pe(0,0,0,0),gm=new pe(0,0,0,0);function Q6(r,e,t){return pm.copy(r.getBoundingRect()),r.transform&&pm.applyTransform(r.transform),gm.width=e,gm.height=t,!pm.intersect(gm)}var Tr=Math.min,Er=Math.max,mm=Math.sin,ym=Math.cos,to=Math.PI*2,vh=Ni(),dh=Ni(),ph=Ni();function gh(r,e,t){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],n=Tr(n,a[0]),i=Er(i,a[0]),o=Tr(o,a[1]),s=Er(s,a[1]);e[0]=n,e[1]=o,t[0]=i,t[1]=s}}function zw(r,e,t,a,n,i){n[0]=Tr(r,t),n[1]=Tr(e,a),i[0]=Er(r,t),i[1]=Er(e,a)}var Gw=[],Fw=[];function J6(r,e,t,a,n,i,o,s,l,u){var c=xb,f=Ot,h=c(r,t,n,o,Gw);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=f(r,t,n,o,Gw[v]);l[0]=Tr(d,l[0]),u[0]=Er(d,u[0])}h=c(e,a,i,s,Fw);for(var v=0;v<h;v++){var p=f(e,a,i,s,Fw[v]);l[1]=Tr(p,l[1]),u[1]=Er(p,u[1])}l[0]=Tr(r,l[0]),u[0]=Er(r,u[0]),l[0]=Tr(o,l[0]),u[0]=Er(o,u[0]),l[1]=Tr(e,l[1]),u[1]=Er(e,u[1]),l[1]=Tr(s,l[1]),u[1]=Er(s,u[1])}function eG(r,e,t,a,n,i,o,s){var l=wb,u=Ht,c=Er(Tr(l(r,t,n),1),0),f=Er(Tr(l(e,a,i),1),0),h=u(r,t,n,c),v=u(e,a,i,f);o[0]=Tr(r,n,h),o[1]=Tr(e,i,v),s[0]=Er(r,n,h),s[1]=Er(e,i,v)}function tG(r,e,t,a,n,i,o,s,l){var u=Un,c=Wn,f=Math.abs(n-i);if(f%to<1e-4&&f>1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(vh[0]=ym(n)*t+r,vh[1]=mm(n)*a+e,dh[0]=ym(i)*t+r,dh[1]=mm(i)*a+e,u(s,vh,dh),c(l,vh,dh),n=n%to,n<0&&(n=n+to),i=i%to,i<0&&(i=i+to),n>i&&!o?i+=to:n<i&&o&&(n+=to),o){var h=i;i=n,n=h}for(var v=0;v<i;v+=Math.PI/2)v>n&&(ph[0]=ym(v)*t+r,ph[1]=mm(v)*a+e,u(s,ph,s),c(l,ph,l))}var rt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ro=[],ao=[],Va=[],ri=[],Ba=[],za=[],_m=Math.min,Sm=Math.max,no=Math.cos,io=Math.sin,mn=Math.abs,xm=Math.PI,ai=xm*2,bm=typeof Float32Array<"u",xu=[];function wm(r){var e=Math.round(r/xm*1e8)/1e8;return e%2*xm}function mh(r,e){var t=wm(r[0]);t<0&&(t+=ai);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=ai?n=t+ai:e&&t-n>=ai?n=t-ai:!e&&t>n?n=t+(ai-wm(t-n)):e&&t<n&&(n=t-(ai-wm(n-t))),r[0]=t,r[1]=n}var Ga=(function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,a){a=a||0,a>0&&(this._ux=mn(a/Kf/e)||0,this._uy=mn(a/Kf/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(rt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=mn(e-this._xi),n=mn(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(rt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(rt.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(rt.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),xu[0]=n,xu[1]=i,mh(xu,o),n=xu[0],i=xu[1];var s=i-n;return this.addData(rt.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=no(i)*a+e,this._yi=io(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(rt.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(rt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&bm&&(this.data=new Float32Array(t));for(var a=0;a<t;a++)this.data[a]=e[a];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,a=0,n=this._len,i=0;i<t;i++)a+=e[i].len();var o=this.data;if(bm&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+a),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var i=0;i<t;i++)for(var l=e[i].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},r.prototype.addData=function(e,t,a,n,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,bm&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Va[0]=Va[1]=Ba[0]=Ba[1]=Number.MAX_VALUE,ri[0]=ri[1]=za[0]=za[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],a=e[o+1],n=t,i=a),s){case rt.M:t=n=e[o++],a=i=e[o++],Ba[0]=n,Ba[1]=i,za[0]=n,za[1]=i;break;case rt.L:zw(t,a,e[o],e[o+1],Ba,za),t=e[o++],a=e[o++];break;case rt.C:J6(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ba,za),t=e[o++],a=e[o++];break;case rt.Q:eG(t,a,e[o++],e[o++],e[o],e[o+1],Ba,za),t=e[o++],a=e[o++];break;case rt.A:var u=e[o++],c=e[o++],f=e[o++],h=e[o++],v=e[o++],d=e[o++]+v;o+=1;var p=!e[o++];l&&(n=no(v)*f+u,i=io(v)*h+c),tG(u,c,f,h,v,d,p,Ba,za),t=no(d)*f+u,a=io(d)*h+c;break;case rt.R:n=t=e[o++],i=a=e[o++];var g=e[o++],m=e[o++];zw(n,i,n+g,i+m,Ba,za);break;case rt.Z:t=n,a=i;break}Un(Va,Va,Ba),Wn(ri,ri,za)}return o===0&&(Va[0]=Va[1]=ri[0]=ri[1]=0),new pe(Va[0],Va[1],ri[0]-Va[0],ri[1]-Va[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,h=0;h<t;){var v=e[h++],d=h===1;d&&(i=e[h],o=e[h+1],s=i,l=o);var p=-1;switch(v){case rt.M:i=s=e[h++],o=l=e[h++];break;case rt.L:{var g=e[h++],m=e[h++],_=g-i,S=m-o;(mn(_)>a||mn(S)>n||h===t-1)&&(p=Math.sqrt(_*_+S*S),i=g,o=m);break}case rt.C:{var x=e[h++],b=e[h++],g=e[h++],m=e[h++],w=e[h++],C=e[h++];p=c8(i,o,x,b,g,m,w,C,10),i=w,o=C;break}case rt.Q:{var x=e[h++],b=e[h++],g=e[h++],m=e[h++];p=h8(i,o,x,b,g,m,10),i=g,o=m;break}case rt.A:var E=e[h++],T=e[h++],D=e[h++],A=e[h++],I=e[h++],M=e[h++],L=M+I;h+=1,d&&(s=no(I)*D+E,l=io(I)*A+T),p=Sm(D,A)*_m(ai,Math.abs(M)),i=no(L)*D+E,o=io(L)*A+T;break;case rt.R:{s=i=e[h++],l=o=e[h++];var N=e[h++],R=e[h++];p=N*2+R*2;break}case rt.Z:{var _=s-i,S=l-o;p=Math.sqrt(_*_+S*S),i=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,c,f,h,v=t<1,d,p,g=0,m=0,_,S=0,x,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,_=t*p,!_)))e:for(var w=0;w<o;){var C=a[w++],E=w===1;switch(E&&(u=a[w],c=a[w+1],s=u,l=c),C!==rt.L&&S>0&&(e.lineTo(x,b),S=0),C){case rt.M:s=u=a[w++],l=c=a[w++],e.moveTo(u,c);break;case rt.L:{f=a[w++],h=a[w++];var T=mn(f-u),D=mn(h-c);if(T>n||D>i){if(v){var A=d[m++];if(g+A>_){var I=(_-g)/A;e.lineTo(u*(1-I)+f*I,c*(1-I)+h*I);break e}g+=A}e.lineTo(f,h),u=f,c=h,S=0}else{var M=T*T+D*D;M>S&&(x=f,b=h,S=M)}break}case rt.C:{var L=a[w++],N=a[w++],R=a[w++],P=a[w++],O=a[w++],G=a[w++];if(v){var A=d[m++];if(g+A>_){var I=(_-g)/A;qn(u,L,R,O,I,ro),qn(c,N,P,G,I,ao),e.bezierCurveTo(ro[1],ao[1],ro[2],ao[2],ro[3],ao[3]);break e}g+=A}e.bezierCurveTo(L,N,R,P,O,G),u=O,c=G;break}case rt.Q:{var L=a[w++],N=a[w++],R=a[w++],P=a[w++];if(v){var A=d[m++];if(g+A>_){var I=(_-g)/A;cu(u,L,R,I,ro),cu(c,N,P,I,ao),e.quadraticCurveTo(ro[1],ao[1],ro[2],ao[2]);break e}g+=A}e.quadraticCurveTo(L,N,R,P),u=R,c=P;break}case rt.A:var F=a[w++],B=a[w++],$=a[w++],j=a[w++],W=a[w++],V=a[w++],q=a[w++],Ce=!a[w++],fe=$>j?$:j,ne=mn($-j)>.001,we=W+V,se=!1;if(v){var A=d[m++];g+A>_&&(we=W+V*(_-g)/A,se=!0),g+=A}if(ne&&e.ellipse?e.ellipse(F,B,$,j,q,W,we,Ce):e.arc(F,B,fe,W,we,Ce),se)break e;E&&(s=no(W)*$+F,l=io(W)*j+B),u=no(we)*$+F,c=io(we)*j+B;break;case rt.R:s=u=a[w],l=c=a[w+1],f=a[w++],h=a[w++];var xe=a[w++],qe=a[w++];if(v){var A=d[m++];if(g+A>_){var Pe=_-g;e.moveTo(f,h),e.lineTo(f+_m(Pe,xe),h),Pe-=xe,Pe>0&&e.lineTo(f+xe,h+_m(Pe,qe)),Pe-=qe,Pe>0&&e.lineTo(f+Sm(xe-Pe,0),h+qe),Pe-=xe,Pe>0&&e.lineTo(f,h+Sm(qe-Pe,0));break e}g+=A}e.rect(f,h,xe,qe);break;case rt.Z:if(v){var A=d[m++];if(g+A>_){var I=(_-g)/A;e.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}g+=A}e.closePath(),u=s,c=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=rt,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function ni(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||o<e-s&&o<a-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-a)/(r-t),u=(r*a-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function rG(r,e,t,a,n,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>a+f&&c>i+f&&c>s+f||c<e-f&&c<a-f&&c<i-f&&c<s-f||u>r+f&&u>t+f&&u>n+f&&u>o+f||u<r-f&&u<t-f&&u<n-f&&u<o-f)return!1;var h=bb(r,e,t,a,n,i,o,s,u,c,null);return h<=f/2}function Hw(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>a+u&&l>i+u||l<e-u&&l<a-u&&l<i-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)return!1;var c=Cb(r,e,t,a,n,i,s,l,null);return c<=u/2}var $w=Math.PI*2;function Lr(r){return r%=$w,r<0&&(r+=$w),r}var bu=Math.PI*2;function aG(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(a-n)%bu<1e-4)return!0;if(i){var f=a;a=Lr(n),n=Lr(f)}else a=Lr(a),n=Lr(n);a>n&&(n+=bu);var h=Math.atan2(l,s);return h<0&&(h+=bu),h>=a&&h<=n||h+bu>=a&&h+bu<=n}function yn(r,e,t,a,n,i){if(i>e&&i>a||i<e&&i<a||a===e)return 0;var o=(i-e)/(a-e),s=a<e?1:-1;(o===1||o===0)&&(s=a<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var ii=Ga.CMD,oo=Math.PI*2,nG=1e-4;function iG(r,e){return Math.abs(r-e)<nG}var dr=[-1,-1,-1],Yr=[-1,-1];function oG(){var r=Yr[0];Yr[0]=Yr[1],Yr[1]=r}function sG(r,e,t,a,n,i,o,s,l,u){if(u>e&&u>a&&u>i&&u>s||u<e&&u<a&&u<i&&u<s)return 0;var c=Vf(e,a,i,s,u,dr);if(c===0)return 0;for(var f=0,h=-1,v=void 0,d=void 0,p=0;p<c;p++){var g=dr[p],m=g===0||g===1?.5:1,_=Ot(r,t,n,o,g);_<l||(h<0&&(h=xb(e,a,i,s,Yr),Yr[1]<Yr[0]&&h>1&&oG(),v=Ot(e,a,i,s,Yr[0]),h>1&&(d=Ot(e,a,i,s,Yr[1]))),h===2?g<Yr[0]?f+=v<e?m:-m:g<Yr[1]?f+=d<v?m:-m:f+=s<d?m:-m:g<Yr[0]?f+=v<e?m:-m:f+=s<v?m:-m)}return f}function lG(r,e,t,a,n,i,o,s){if(s>e&&s>a&&s>i||s<e&&s<a&&s<i)return 0;var l=f8(e,a,i,s,dr);if(l===0)return 0;var u=wb(e,a,i);if(u>=0&&u<=1){for(var c=0,f=Ht(e,a,i,u),h=0;h<l;h++){var v=dr[h]===0||dr[h]===1?.5:1,d=Ht(r,t,n,dr[h]);d<o||(dr[h]<u?c+=f<e?v:-v:c+=i<f?v:-v)}return c}else{var v=dr[0]===0||dr[0]===1?.5:1,d=Ht(r,t,n,dr[0]);return d<o?0:i<e?v:-v}}function uG(r,e,t,a,n,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);dr[0]=-l,dr[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=oo-1e-4){a=0,n=oo;var c=i?1:-1;return o>=dr[0]+r&&o<=dr[1]+r?c:0}if(a>n){var f=a;a=n,n=f}a<0&&(a+=oo,n+=oo);for(var h=0,v=0;v<2;v++){var d=dr[v];if(d+r>o){var p=Math.atan2(s,d),c=i?1:-1;p<0&&(p=oo+p),(p>=a&&p<=n||p+oo>=a&&p+oo<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),h+=c)}}return h}function Uw(r,e,t,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,c=0,f=0,h,v,d=0;d<o;){var p=i[d++],g=d===1;switch(p===ii.M&&d>1&&(t||(s+=yn(l,u,c,f,a,n))),g&&(l=i[d],u=i[d+1],c=l,f=u),p){case ii.M:c=i[d++],f=i[d++],l=c,u=f;break;case ii.L:if(t){if(ni(l,u,i[d],i[d+1],e,a,n))return!0}else s+=yn(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case ii.C:if(t){if(rG(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=sG(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case ii.Q:if(t){if(Hw(l,u,i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=lG(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case ii.A:var m=i[d++],_=i[d++],S=i[d++],x=i[d++],b=i[d++],w=i[d++];d+=1;var C=!!(1-i[d++]);h=Math.cos(b)*S+m,v=Math.sin(b)*x+_,g?(c=h,f=v):s+=yn(l,u,h,v,a,n);var E=(a-m)*x/S+m;if(t){if(aG(m,_,x,b,b+w,C,e,E,n))return!0}else s+=uG(m,_,x,b,b+w,C,E,n);l=Math.cos(b+w)*S+m,u=Math.sin(b+w)*x+_;break;case ii.R:c=l=i[d++],f=u=i[d++];var T=i[d++],D=i[d++];if(h=c+T,v=f+D,t){if(ni(c,f,h,f,e,a,n)||ni(h,f,h,v,e,a,n)||ni(h,v,c,v,e,a,n)||ni(c,v,c,f,e,a,n))return!0}else s+=yn(h,f,h,v,a,n),s+=yn(c,v,c,f,a,n);break;case ii.Z:if(t){if(ni(l,u,c,f,e,a,n))return!0}else s+=yn(l,u,c,f,a,n);l=c,u=f;break}}return!t&&!iG(u,f)&&(s+=yn(l,u,c,f,a,n)||0),s!==0}function cG(r,e,t){return Uw(r,0,!1,e,t)}function fG(r,e,t,a){return Uw(r,e,!0,t,a)}var yh=me({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eo),hG={style:me({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hh.style)},Cm=dn.concat(["invisible","culling","z","z2","zlevel","parent"]),Re=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<Cm.length;++s)n[Cm[s]]=this[Cm[s]];n.__dirty|=wr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=Oe(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=t[o];o==="style"?this.style?U(this.style,s):this.useStyle(s):o==="shape"?U(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(Q(t)){var a=Gf(t,0);return a>.5?Bg:a>.2?z8:zg}else if(t)return zg}return Bg},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(Q(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Gf(t,0)<Vg;if(i===o)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Ts},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Ga(!1)},e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return!(a==null||a==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Ts)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){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)),fG(s,l/u,t,a)))return!0}if(this.hasFill())return cG(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ts,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:U(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ts)},e.prototype.createStyle=function(t){return Ef(yh,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=U({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){if(r.prototype._applyStateObj.call(this,t,a,n,i,o,s),this.__inHover!==rh){var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=U({},n.shape),U(u,a.shape)):(u=U({},i?this.shape:n.shape),U(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=U({},this.shape);for(var c={},f=Oe(u),h=0;h<f.length;h++){var v=f[h];typeof u[v]=="object"?this.shape[v]=u[v]:c[v]=u[v]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},e.prototype.getAnimationStyleProps=function(){return hG},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=(function(i){z(o,i);function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return he(t.style)},o.prototype.getDefaultShape=function(){return he(t.shape)},o})(e);for(var n in t)typeof t[n]=="function"&&(a.prototype[n]=t[n]);return a},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=wr|lu|Ts})(),e})(Wr),vG=me({strokeFirst:!0,font:cn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},yh),Gs=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Vw(this.style)},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return Ef(vG,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=K6(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Wr);Gs.prototype.type="tspan";var dG=me({x:0,y:0},eo),pG={style:me({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hh.style)};function gG(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var $t=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Ef(dG,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=gG(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return pG},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new pe(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Wr);$t.prototype.type="image";function mG(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,c;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>n&&(f=s+l,s*=n/f,l*=n/f),u+c>n&&(f=u+c,u*=n/f,c*=n/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+c,a+i),c!==0&&r.arc(t+c,a+i-c,c,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5),r.closePath()}var Fs=Math.round;function _h(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Fs(a*2)===Fs(n*2)&&(r.x1=r.x2=Nr(a,s,!0)),Fs(i*2)===Fs(o*2)&&(r.y1=r.y2=Nr(i,s,!0))),r}}function Ww(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Nr(a,s,!0),r.y=Nr(n,s,!0),r.width=Math.max(Nr(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Nr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Nr(r,e,t){if(!e)return r;var a=Fs(r*2);return(a+Fs(e))%2===0?a/2:(a+(t?1:-1))/2}var yG=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),_G={},Le=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new yG},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=Ww(_G,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?mG(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Re);Le.prototype.type="rect";var Yw={fill:"#000"},Xw=2,Fa={},SG={style:me({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},hh.style)},Fe=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Yw,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var a=this._children[t];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var a=this.innerTransformable;return a?a.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,wG(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new pe(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Yw},e.prototype.setTextContent=function(t){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,a){if(!a)return t;var n=a.rich,i=t.rich||n&&{};return U(t,a),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,a){for(var n=Oe(a),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},U(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return SG},e.prototype._getOrCreateChild=function(t){var a=this._children[this._childCursor];return(!a||!(a instanceof t))&&(a=new t),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},e.prototype._updatePlainTexts=function(){var t=this.style,a=t.font||cn,n=t.padding,i=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||i.align||"left",u=t.verticalAlign||i.verticalAlign||"top";Pw(Fa,i.overflowRect,o,s,l,u),o=Fa.baseX,s=Fa.baseY;var c=rC(t),f=$6(c,t,Fa.outerWidth,Fa.outerHeight),h=Tm(t),v=!!t.backgroundColor,d=f.outerHeight,p=f.outerWidth,g=f.lines,m=f.lineHeight;this.isTruncated=!!f.isTruncated;var _=o,S=Ui(s,f.contentHeight,u);if(h||n){var x=Ls(o,p,l),b=Ui(s,d,u);h&&this._renderBackground(t,t,x,b,p,d)}S+=m/2,n&&(_=tC(o,l,n),u==="top"?S+=n[0]:u==="bottom"&&(S-=n[2]));for(var w=0,C=!1,E=!1,T=eC("fill"in t?t.fill:(E=!0,i.fill)),D=Jw("stroke"in t?t.stroke:!v&&(!i.autoStroke||E)?(w=Xw,C=!0,i.stroke):null),A=t.textShadowBlur>0,I=0;I<g.length;I++){var M=this._getOrCreateChild(Gs),L=M.createStyle();M.useStyle(L),L.text=g[I],L.x=_,L.y=S,L.textAlign=l,L.textBaseline="middle",L.opacity=t.opacity,L.strokeFirst=!0,A&&(L.shadowBlur=t.textShadowBlur||0,L.shadowColor=t.textShadowColor||"transparent",L.shadowOffsetX=t.textShadowOffsetX||0,L.shadowOffsetY=t.textShadowOffsetY||0),L.stroke=D,L.fill=T,D&&(L.lineWidth=t.lineWidth||w,L.lineDash=t.lineDash,L.lineDashOffset=t.lineDashOffset||0),L.font=a,Kw(L,t),S+=m,M.setBoundingRect(vm(L,f.contentWidth,f.calculatedLineHeight,C?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,a=this._defaultStyle,n=t.align||a.align,i=t.verticalAlign||a.verticalAlign,o=t.x||0,s=t.y||0;Pw(Fa,a.overflowRect,o,s,n,i),o=Fa.baseX,s=Fa.baseY;var l=rC(t),u=Y6(l,t,Fa.outerWidth,Fa.outerHeight,n),c=u.width,f=u.outerWidth,h=u.outerHeight,v=t.padding;this.isTruncated=!!u.isTruncated;var d=Ls(o,f,n),p=Ui(s,h,i),g=d,m=p;v&&(g+=v[3],m+=v[0]);var _=g+c;Tm(t)&&this._renderBackground(t,t,d,p,f,h);for(var S=!!t.backgroundColor,x=0;x<u.lines.length;x++){for(var b=u.lines[x],w=b.tokens,C=w.length,E=b.lineHeight,T=b.width,D=0,A=g,I=_,M=C-1,L=void 0;D<C&&(L=w[D],!L.align||L.align==="left");)this._placeToken(L,t,E,m,A,"left",S),T-=L.width,A+=L.width,D++;for(;M>=0&&(L=w[M],L.align==="right");)this._placeToken(L,t,E,m,I,"right",S),T-=L.width,I-=L.width,M--;for(A+=(c-(A-g)-(_-I)-T)/2;D<=M;)L=w[D],this._placeToken(L,t,E,m,A+L.width/2,"center",S),A+=L.width,D++;m+=E}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,f=i+n/2;c==="top"?f=i+t.height/2:c==="bottom"&&(f=i+n-t.height/2);var h=!t.isLineHolder&&Tm(u);h&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,f-t.height/2,t.width,t.height);var v=!!u.backgroundColor,d=t.textPadding;d&&(o=tC(o,s,d),f-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Gs),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,_=!1,S=0,x=!1,b=eC("fill"in u?u.fill:"fill"in a?a.fill:(_=!0,m.fill)),w=Jw("stroke"in u?u.stroke:"stroke"in a?a.stroke:!v&&!l&&(!m.autoStroke||_)?(S=Xw,x=!0,m.stroke):null),C=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=f,C&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||cn,g.opacity=fr(u.opacity,a.opacity,1),Kw(g,u),w&&(g.lineWidth=fr(u.lineWidth,a.lineWidth,S),g.lineDash=oe(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=w),b&&(g.fill=b),p.setBoundingRect(vm(g,t.contentWidth,t.contentHeight,x?0:null))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,f=l&&l.image,h=l&&!f,v=t.borderRadius,d=this,p,g;if(h||t.lineHeight||u&&c){p=this._getOrCreateChild(Le),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=n,m.y=i,m.width=o,m.height=s,m.r=v,p.dirtyShape()}if(h){var _=p.style;_.fill=l||null,_.fillOpacity=oe(t.fillOpacity,1)}else if(f){g=this._getOrCreateChild($t),g.onload=function(){d.dirtyStyle()};var S=g.style;S.image=l.image,S.x=n,S.y=i,S.width=o,S.height=s}if(u&&c){var _=p.style;_.lineWidth=u,_.stroke=c,_.strokeOpacity=oe(t.strokeOpacity,1),_.lineDash=t.borderDash,_.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var x=(p||g).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=fr(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return jw(t)&&(a=[t.fontStyle,t.fontWeight,qw(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Br(a)||t.textFont||t.font},e})(Wr),xG={left:!0,right:1,center:1},bG={top:1,bottom:1,middle:1},Zw=["fontStyle","fontWeight","fontSize","fontFamily"];function qw(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?$p+"px":r+"px"}function Kw(r,e){for(var t=0;t<Zw.length;t++){var a=Zw[t],n=e[a];n!=null&&(r[a]=n)}}function jw(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function wG(r){return Qw(r),k(r.rich,Qw),r}function Qw(r){if(r){r.font=Fe.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||xG[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||bG[t]?t:"top";var a=r.padding;a&&(r.padding=Cf(r.padding))}}function Jw(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function eC(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function tC(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function rC(r){var e=r.text;return e!=null&&(e+=""),e}function Tm(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var be=De(),Em=function(r,e,t,a){if(a){var n=be(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=be(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},Hs="undefined",Ha="series",Dm=re(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Pr="original",Ut="arrayRows",Rr="objectRows",ca="keyedColumns",_n="typedArray",aC="unknown",fa="column",so="row",nC="Roam",CG=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],iC=(function(){function r(e){k(CG,function(t){this[t]=ie(e[t],e)},this)}return r})();function oC(r,e){return e.mainType===Ha?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var sC=1,lC={},uC=De(),km=De(),Am=0,wu=1,Sh=2,pr=["emphasis","blur","select"],Cu=["normal","emphasis","blur","select"],$s=10,TG=9,lo="highlight",xh="downplay",bh="select",Mm="unselect",wh="toggleSelect",Im="selectchanged";function Us(r){return r!=null&&r!=="none"}function Ch(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function cC(r){Ch(r,"emphasis",Sh)}function fC(r){r.hoverState===Sh&&Ch(r,"normal",Am)}function Lm(r){Ch(r,"blur",wu)}function hC(r){r.hoverState===wu&&Ch(r,"normal",Am)}function EG(r){r.selected=!0}function DG(r){r.selected=!1}function vC(r,e,t){e(r,t)}function Sn(r,e,t){vC(r,e,t),r.isGroup&&r.traverse(function(a){vC(a,e,t)})}function Th(r,e){switch(e){case"emphasis":r.hoverState=Sh;break;case"normal":r.hoverState=Am;break;case"blur":r.hoverState=wu;break;case"select":r.selected=!0}}function kG(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function AG(r,e,t,a){var n=t&&Ee(t,"select")>=0,i=!1;if(r instanceof Re){var o=uC(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Us(s)||Us(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=U({},a),u=U({},u),u.fill=s):!Us(u.fill)&&Us(s)?(i=!0,a=U({},a),u=U({},u),u.fill=wg(s)):!Us(u.stroke)&&Us(l)&&(i||(a=U({},a),u=U({},u)),u.stroke=wg(l)),a.style=u}}if(a&&a.z2==null){i||(a=U({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??$s)}return a}function MG(r,e,t){if(t&&t.z2==null){t=U({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??TG)}return t}function IG(r,e,t){var a=Ee(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:kG(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=U({},t),o=U({opacity:a?n:i.opacity*.1},o),t.style=o),t}function Nm(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return AG(this,r,e,t);if(r==="blur")return IG(this,r,t);if(r==="select")return MG(this,r,t)}return t}function uo(r){r.stateProxy=Nm;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Nm),t&&(t.stateProxy=Nm)}function dC(r,e){!_C(r,e)&&!r.__highByOuter&&Sn(r,cC)}function pC(r,e){!_C(r,e)&&!r.__highByOuter&&Sn(r,fC)}function xn(r,e){r.__highByOuter|=1<<(e||0),Sn(r,cC)}function bn(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Sn(r,fC)}function gC(r){Sn(r,Lm)}function Pm(r){Sn(r,hC)}function mC(r){Sn(r,EG)}function yC(r){Sn(r,DG)}function _C(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function SC(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=km(i),s=oC(r,i),l=n==="series";!l&&a.push(s),o.isBlured&&(s.group.traverse(function(u){hC(u)}),l&&t.push(i)),o.isBlured=!1}),k(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Rm(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&Pm(h)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var h=f&&s?f===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!h||e==="series"&&c)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&c&&e==="self"||Lm(g)}),er(e))i(u.getData(),e);else if(de(e))for(var d=Oe(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),km(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var f=a.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,n)}})}}function Om(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(a){km(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Lm(i)})}}}function LG(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(!n){process.env.NODE_ENV!=="production"&&Be("Unknown dataType "+e.dataType);return}var i=Ki(n,e);i=(Y(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=be(o);Rm(a,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&Rm(a,c,f,t)}}function Vm(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!oi(s[u])&&Be("param should be highDownDispatcher"),be(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function NG(r,e,t){process.env.NODE_ENV!=="production"&&!oi(r)&&Be("param should be highDownDispatcher");var a=be(r),n=Vm(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&Om(a.componentMainType,a.componentIndex,t),k(i,function(s){return dC(s,e)})):(Rm(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&Om(a.componentMainType,a.componentIndex,t),dC(r,e))}function PG(r,e,t){process.env.NODE_ENV!=="production"&&!oi(r)&&Be("param should be highDownDispatcher"),SC(t);var a=be(r),n=Vm(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?k(n,function(i){return pC(i,e)}):pC(r,e)}function RG(r,e,t){if(zm(e)){var a=e.dataType,n=r.getData(a),i=Ki(n,e);Y(i)||(i=[i]),r[e.type===wh?"toggleSelect":e.type===bh?"select":"unselect"](i,a)}}function xC(r){var e=r.getAllData();k(e,function(t){var a=t.data,n=t.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?mC(i):yC(i)})})}function OG(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();k(a,function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function co(r,e,t){fo(r,!0),Sn(r,uo),Bm(r,e,t)}function VG(r){fo(r,!1)}function ut(r,e,t,a){a?VG(r):co(r,e,t)}function Bm(r,e,t){var a=be(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var bC=["emphasis","blur","select"],BG={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function It(r,e,t,a){t=t||"itemStyle";for(var n=0;n<bC.length;n++){var i=bC[n],o=e.getModel([i,t]),s=r.ensureState(i);s.style=a?a(o):o[BG[t]]()}}function fo(r,e){var t=e===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function oi(r){return!!(r&&r.__highDownDispatcher)}function zG(r,e,t){var a=be(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function GG(r){var e=lC[r];return e==null&&sC<=32&&(e=lC[r]=sC++),e}function zm(r){var e=r.type;return e===bh||e===Mm||e===wh}function wC(r){var e=r.type;return e===lo||e===xh}function FG(r){var e=uC(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Ws=Ga.CMD,HG=[[],[],[]],CC=Math.sqrt,$G=Math.atan2;function TC(r,e){if(e){var t=r.data,a=r.len(),n,i,o,s,l,u,c=Ws.M,f=Ws.C,h=Ws.L,v=Ws.R,d=Ws.A,p=Ws.Q;for(o=0,s=0;o<a;){switch(n=t[o++],s=o,i=0,n){case c:i=1;break;case h:i=1;break;case f:i=3;break;case p:i=2;break;case d:var g=e[4],m=e[5],_=CC(e[0]*e[0]+e[1]*e[1]),S=CC(e[2]*e[2]+e[3]*e[3]),x=$G(-e[1]/S,e[0]/_);t[o]*=_,t[o++]+=g,t[o]*=S,t[o++]+=m,t[o++]*=_,t[o++]*=S,t[o++]+=x,t[o++]+=x,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],gt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],gt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var b=HG[l];b[0]=t[o++],b[1]=t[o++],gt(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var Gm=Math.sqrt,Eh=Math.sin,Dh=Math.cos,Tu=Math.PI;function EC(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Fm(r,e){return(r[0]*e[0]+r[1]*e[1])/(EC(r)*EC(e))}function DC(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Fm(r,e))}function kC(r,e,t,a,n,i,o,s,l,u,c){var f=l*(Tu/180),h=Dh(f)*(r-t)/2+Eh(f)*(e-a)/2,v=-1*Eh(f)*(r-t)/2+Dh(f)*(e-a)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=Gm(d),s*=Gm(d));var p=(n===i?-1:1)*Gm((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,m=p*-s*h/o,_=(r+t)/2+Dh(f)*g-Eh(f)*m,S=(e+a)/2+Eh(f)*g+Dh(f)*m,x=DC([1,0],[(h-g)/o,(v-m)/s]),b=[(h-g)/o,(v-m)/s],w=[(-1*h-g)/o,(-1*v-m)/s],C=DC(b,w);if(Fm(b,w)<=-1&&(C=Tu),Fm(b,w)>=1&&(C=0),C<0){var E=Math.round(C/Tu*1e6)/1e6;C=Tu*2+E%2*Tu}c.addData(u,_,S,o,s,x,C,f,i)}var UG=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,WG=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function YG(r){var e=new Ga;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=Ga.CMD,l=r.match(UG);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),h=void 0,v=c.match(WG)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=void 0,E=t,T=a,D=void 0,A=void 0;switch(f){case"l":t+=v[g++],a+=v[g++],h=s.L,e.addData(h,t,a);break;case"L":t=v[g++],a=v[g++],h=s.L,e.addData(h,t,a);break;case"m":t+=v[g++],a+=v[g++],h=s.M,e.addData(h,t,a),n=t,i=a,f="l";break;case"M":t=v[g++],a=v[g++],h=s.M,e.addData(h,t,a),n=t,i=a,f="L";break;case"h":t+=v[g++],h=s.L,e.addData(h,t,a);break;case"H":t=v[g++],h=s.L,e.addData(h,t,a);break;case"v":a+=v[g++],h=s.L,e.addData(h,t,a);break;case"V":a=v[g++],h=s.L,e.addData(h,t,a);break;case"C":h=s.C,e.addData(h,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),t=v[g-2],a=v[g-1];break;case"c":h=s.C,e.addData(h,v[g++]+t,v[g++]+a,v[g++]+t,v[g++]+a,v[g++]+t,v[g++]+a),t+=v[g-2],a+=v[g-1];break;case"S":m=t,_=a,D=e.len(),A=e.data,o===s.C&&(m+=t-A[D-4],_+=a-A[D-3]),h=s.C,E=v[g++],T=v[g++],t=v[g++],a=v[g++],e.addData(h,m,_,E,T,t,a);break;case"s":m=t,_=a,D=e.len(),A=e.data,o===s.C&&(m+=t-A[D-4],_+=a-A[D-3]),h=s.C,E=t+v[g++],T=a+v[g++],t+=v[g++],a+=v[g++],e.addData(h,m,_,E,T,t,a);break;case"Q":E=v[g++],T=v[g++],t=v[g++],a=v[g++],h=s.Q,e.addData(h,E,T,t,a);break;case"q":E=v[g++]+t,T=v[g++]+a,t+=v[g++],a+=v[g++],h=s.Q,e.addData(h,E,T,t,a);break;case"T":m=t,_=a,D=e.len(),A=e.data,o===s.Q&&(m+=t-A[D-4],_+=a-A[D-3]),t=v[g++],a=v[g++],h=s.Q,e.addData(h,m,_,t,a);break;case"t":m=t,_=a,D=e.len(),A=e.data,o===s.Q&&(m+=t-A[D-4],_+=a-A[D-3]),t+=v[g++],a+=v[g++],h=s.Q,e.addData(h,m,_,t,a);break;case"A":S=v[g++],x=v[g++],b=v[g++],w=v[g++],C=v[g++],E=t,T=a,t=v[g++],a=v[g++],h=s.A,kC(E,T,t,a,w,C,S,x,b,h,e);break;case"a":S=v[g++],x=v[g++],b=v[g++],w=v[g++],C=v[g++],E=t,T=a,t+=v[g++],a+=v[g++],h=s.A,kC(E,T,t,a,w,C,S,x,b,h,e);break}}(f==="z"||f==="Z")&&(h=s.Z,e.addData(h),t=n,a=i),o=h}return e.toStatic(),e}var AC=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(Re);function MC(r){return r.setData!=null}function IC(r,e){var t=YG(r),a=U({},e);return a.buildPath=function(n){var i=MC(n);if(i&&n.canSave()){n.appendPath(t);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=i?n.getContext():n;o&&t.rebuildPath(o,1)}},a.applyTransform=function(n){TC(t,n),this.dirtyShape()},a}function LC(r,e){return new AC(IC(r,e))}function XG(r,e){var t=IC(r,e),a=(function(n){z(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i})(AC);return a}function ZG(r,e){for(var t=[],a=r.length,n=0;n<a;n++){var i=r[n];t.push(i.getUpdatedPathProxy(!0))}var o=new Re(e);return o.createPathProxy(),o.buildPath=function(s){if(MC(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Hm(r,e){e=e||{};var t=new Re;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?TC(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var qG=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),wn=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new qG},e.prototype.buildPath=function(t,a){t.moveTo(a.cx+a.r,a.cy),t.arc(a.cx,a.cy,a.r,0,Math.PI*2)},e})(Re);wn.prototype.type="circle";var KG=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),kh=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new KG},e.prototype.buildPath=function(t,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,c=l*n;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),t.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),t.closePath()},e})(Re);kh.prototype.type="ellipse";var NC=Math.PI,$m=NC*2,ho=Math.sin,Ys=Math.cos,jG=Math.acos,rr=Math.atan2,PC=Math.abs,Eu=Math.sqrt,Du=Math.max,$a=Math.min,ha=1e-4;function QG(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=f*l-c*u;if(!(h*h<ha))return h=(c*(e-i)-f*(r-n))/h,[r+h*l,e+h*u]}function Ah(r,e,t,a,n,i,o){var s=r-t,l=e-a,u=(o?i:-i)/Eu(s*s+l*l),c=u*l,f=-u*s,h=r+c,v=e+f,d=t+c,p=a+f,g=(h+d)/2,m=(v+p)/2,_=d-h,S=p-v,x=_*_+S*S,b=n-i,w=h*p-d*v,C=(S<0?-1:1)*Eu(Du(0,b*b*x-w*w)),E=(w*S-_*C)/x,T=(-w*_-S*C)/x,D=(w*S+_*C)/x,A=(-w*_+S*C)/x,I=E-g,M=T-m,L=D-g,N=A-m;return I*I+M*M>L*L+N*N&&(E=D,T=A),{cx:E,cy:T,x0:-c,y0:-f,x1:E*(n/b-1),y1:T*(n/b-1)}}function JG(r){var e;if(Y(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function eF(r,e){var t,a=Du(e.r,0),n=Du(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,h=!!e.clockwise,v=PC(u-l),d=v>$m&&v%$m;if(d>ha&&(v=d),!(a>ha))r.moveTo(c,f);else if(v>$m-ha)r.moveTo(c+a*Ys(l),f+a*ho(l)),r.arc(c,f,a,l,u,!h),n>ha&&(r.moveTo(c+n*Ys(u),f+n*ho(u)),r.arc(c,f,n,u,l,h));else{var p=void 0,g=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=void 0,E=void 0,T=void 0,D=void 0,A=void 0,I=void 0,M=void 0,L=void 0,N=a*Ys(l),R=a*ho(l),P=n*Ys(u),O=n*ho(u),G=v>ha;if(G){var F=e.cornerRadius;F&&(t=JG(F),p=t[0],g=t[1],m=t[2],_=t[3]);var B=PC(a-n)/2;if(S=$a(B,m),x=$a(B,_),b=$a(B,p),w=$a(B,g),T=C=Du(S,x),D=E=Du(b,w),(C>ha||E>ha)&&(A=a*Ys(u),I=a*ho(u),M=n*Ys(l),L=n*ho(l),v<NC)){var $=QG(N,R,M,L,A,I,P,O);if($){var j=N-$[0],W=R-$[1],V=A-$[0],q=I-$[1],Ce=1/ho(jG((j*V+W*q)/(Eu(j*j+W*W)*Eu(V*V+q*q)))/2),fe=Eu($[0]*$[0]+$[1]*$[1]);T=$a(C,(a-fe)/(Ce+1)),D=$a(E,(n-fe)/(Ce-1))}}}if(!G)r.moveTo(c+N,f+R);else if(T>ha){var ne=$a(m,T),we=$a(_,T),se=Ah(M,L,N,R,a,ne,h),xe=Ah(A,I,P,O,a,we,h);r.moveTo(c+se.cx+se.x0,f+se.cy+se.y0),T<C&&ne===we?r.arc(c+se.cx,f+se.cy,T,rr(se.y0,se.x0),rr(xe.y0,xe.x0),!h):(ne>0&&r.arc(c+se.cx,f+se.cy,ne,rr(se.y0,se.x0),rr(se.y1,se.x1),!h),r.arc(c,f,a,rr(se.cy+se.y1,se.cx+se.x1),rr(xe.cy+xe.y1,xe.cx+xe.x1),!h),we>0&&r.arc(c+xe.cx,f+xe.cy,we,rr(xe.y1,xe.x1),rr(xe.y0,xe.x0),!h))}else r.moveTo(c+N,f+R),r.arc(c,f,a,l,u,!h);if(!(n>ha)||!G)r.lineTo(c+P,f+O);else if(D>ha){var ne=$a(p,D),we=$a(g,D),se=Ah(P,O,A,I,n,-we,h),xe=Ah(N,R,M,L,n,-ne,h);r.lineTo(c+se.cx+se.x0,f+se.cy+se.y0),D<E&&ne===we?r.arc(c+se.cx,f+se.cy,D,rr(se.y0,se.x0),rr(xe.y0,xe.x0),!h):(we>0&&r.arc(c+se.cx,f+se.cy,we,rr(se.y0,se.x0),rr(se.y1,se.x1),!h),r.arc(c,f,n,rr(se.cy+se.y1,se.cx+se.x1),rr(xe.cy+xe.y1,xe.cx+xe.x1),h),ne>0&&r.arc(c+xe.cx,f+xe.cy,ne,rr(xe.y1,xe.x1),rr(xe.y0,xe.x0),!h))}else r.lineTo(c+P,f+O),r.arc(c,f,n,u,l,h)}r.closePath()}}}var tF=(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})(),ar=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tF},e.prototype.buildPath=function(t,a){eF(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Re);ar.prototype.type="sector";var rF=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),ku=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new rF},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e})(Re);ku.prototype.type="ring";function aF(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,c,f;if(a){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,v=r.length;h<v;h++)Un(c,c,r[h]),Wn(f,f,r[h]);Un(c,c,a[0]),Wn(f,f,a[1])}for(var h=0,v=r.length;h<v;h++){var d=r[h];if(t)l=r[h?h-1:v-1],u=r[(h+1)%v];else if(h===0||h===v-1){n.push(fn(r[h]));continue}else l=r[h-1],u=r[h+1];Pi(i,u,l),kf(i,i,e);var p=jp(d,l),g=jp(d,u),m=p+g;m!==0&&(p/=m,g/=m),kf(o,i,-p),kf(s,i,g);var _=jx([],d,o),S=jx([],d,s);a&&(Wn(_,_,c),Un(_,_,f),Wn(S,S,c),Un(S,S,f)),n.push(_),n.push(S)}return t&&n.push(n.shift()),n}function RC(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=aF(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,f=n.length;s<f;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var nF=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),nr=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new nF},e.prototype.buildPath=function(t,a){RC(t,a,!0)},e})(Re);nr.prototype.type="polygon";var iF=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Kt=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iF},e.prototype.buildPath=function(t,a){RC(t,a,!1)},e})(Re);Kt.prototype.type="polyline";var oF={},sF=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),Ct=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new sF},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=_h(oF,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(t.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var a=this.shape;return[a.x1*(1-t)+a.x2*t,a.y1*(1-t)+a.y2*t]},e})(Re);Ct.prototype.type="line";var Dr=[],lF=(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 OC(r,e,t){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(t?Sb:Ot)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?Sb:Ot)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?pg:Ht)(r.x1,r.cpx1,r.x2,e),(t?pg:Ht)(r.y1,r.cpy1,r.y2,e)]}var Au=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lF},e.prototype.buildPath=function(t,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,c=a.cpx2,f=a.cpy2,h=a.percent;h!==0&&(t.moveTo(n,i),c==null||f==null?(h<1&&(cu(n,l,o,h,Dr),l=Dr[1],o=Dr[2],cu(i,u,s,h,Dr),u=Dr[1],s=Dr[2]),t.quadraticCurveTo(l,u,o,s)):(h<1&&(qn(n,l,c,o,h,Dr),l=Dr[1],c=Dr[2],o=Dr[3],qn(i,u,f,s,h,Dr),u=Dr[1],f=Dr[2],s=Dr[3]),t.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(t){return OC(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=OC(this.shape,t,!0);return Ss(a,a)},e})(Re);Au.prototype.type="bezier-curve";var uF=(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})(),Mh=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new uF},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,c=Math.cos(s),f=Math.sin(s);t.moveTo(c*o+n,f*o+i),t.arc(n,i,o,s,l,!u)},e})(Re);Mh.prototype.type="arc";var Ih=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,a=this.shapeChanged(),n=0;n<t.length;n++)a=a||t[n].shapeChanged();a&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(a[0],a[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],a=0;a<t.length;a++)t[a].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Re.prototype.getBoundingRect.call(this)},e})(Re),VC=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),vo=(function(r){z(e,r);function e(t,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(VC),BC=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(VC),Um=Math.min,cF=Math.max,Lh=Math.abs,po=[0,0],go=[0,0],Wt=sb(),Nh=Wt.minTv,Ph=Wt.maxTv,zC=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new _e;for(var a=0;a<2;a++)this._axes[a]=new _e;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var a=this._corners,n=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),t)for(var u=0;u<4;u++)a[u].transform(t);_e.sub(n[0],a[1],a[0]),_e.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(e,t,a){var n=!0,i=!t;return t&&_e.set(t,0,0),Wt.reset(a,!i),!this._intersectCheckOneSide(this,e,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(n=!1,i)||!i&&!Wt.negativeSize&&_e.copy(t,n?Wt.useDir?Wt.dirMinTv:Nh:Ph),n},r.prototype._intersectCheckOneSide=function(e,t,a,n){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,po),e._getProjMinMaxOnAxis(o,t._corners,go),Wt.negativeSize||po[1]<go[0]||po[0]>go[1]){if(i=!1,Wt.negativeSize||a)return i;var l=Lh(go[0]-po[1]),u=Lh(po[0]-go[1]);Um(l,u)>Ph.len()&&(l<u?_e.scale(Ph,s,-l*n):_e.scale(Ph,s,u*n))}else if(!a){var l=Lh(go[0]-po[1]),u=Lh(po[0]-go[1]);(Wt.useDir||Um(l,u)<Nh.len())&&((l<u||!Wt.bidirectional)&&(_e.scale(Nh,s,l*n),Wt.useDir&&Wt.calcDirMTV()),(l>=u||!Wt.bidirectional)&&(_e.scale(Nh,s,-u*n),Wt.useDir&&Wt.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(e,t,a){for(var n=this._axes[e],i=this._origin,o=t[0].dot(n)+i[e],s=o,l=o,u=1;u<t.length;u++){var c=t[u].dot(n)+i[e];s=Um(c,s),l=cF(c,l)}a[0]=s+Wt.touchThreshold,a[1]=l-Wt.touchThreshold,Wt.negativeSize=a[1]<a[0]},r})(),GC=0,fF=1,hF=2,vF=1,Rh=0,dF=[],pF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=fF,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,a){a=a||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],a)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var a=this._cursor;a<this._displayables.length;a++)t&&t(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)t&&t(this._temporaryDisplayables[a])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var a=this._displayables[t];a.parent=this,a.update(),a.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var a=this._temporaryDisplayables[t];a.parent=this,a.update(),a.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new pe(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(dF)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,a))return!0}return!1},e})(Wr),FC=De();function Xs(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;a?(u=oe(a.duration,200),c=oe(a.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),ce(f)&&(f=f(t,n)),ce(u)&&(u=u(t));var h={duration:u||0,delay:f,easing:c};return h}else return null}function Wm(r,e,t,a,n,i,o){var s=!1,l;ce(n)?(o=i,i=n,n=null):de(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var c=Xs(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function $e(r,e,t,a,n,i){Wm("update",r,e,t,a,n,i)}function ot(r,e,t,a,n,i){Wm("enter",r,e,t,a,n,i)}function Zs(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function si(r,e,t,a,n,i){Zs(r)||Wm("leave",r,e,t,a,n,i)}function HC(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),si(r,{style:{opacity:0}},e,t,a)}function Cn(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||HC(n,e,t,a)}):HC(r,e,t,a)}function Xr(r){FC(r).oldStyle=r.style}function gF(r){return FC(r).oldStyle}var Ym={},Te=["x","y"],_t=["width","height"],$C=0,UC=1,qs=2;function mF(r){return Re.extend(r)}var yF=XG;function _F(r,e){return yF(r,e)}function va(r,e){Ym[r]=e}function Oh(r){if(Ym.hasOwnProperty(r))return Ym[r]}function Mu(r,e,t,a){var n=LC(r,e);return t&&(a==="center"&&(t=YC(t,n.getBoundingRect())),XC(n,t)),n}function WC(r,e,t){var a=new $t({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var i={width:n.width,height:n.height};a.setStyle(YC(e,i))}}});return a}function YC(r,e){var t=e.width/e.height,a=r.height*t,n;a<=r.width?n=r.height:(a=r.width,n=a/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Zr=ZG;function XC(r,e){if(r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function Ks(r,e){return _h(r,r,{lineWidth:e}),r}function SF(r,e){return Ww(r,r,e),r}var Vh=Nr;function js(r,e){for(var t=bs([]);r&&r!==e;)Fr(t,r.getLocalTransform(),t),r=r.parent;return t}function da(r,e,t){return e&&!er(e)&&(e=Da.getLocalTransform(e)),t&&(e=Hr([],e)),gt([],r,e)}function Bh(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:dt(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:dt(2*e[4]/e[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=da(i,e,t),dt(i[0])>dt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function ZC(r){return!r.isGroup}function xF(r){return r.shape!=null}function Iu(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){ZC(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return xF(o)&&(s.shape=he(o.shape)),s}var i=a(r);e.traverse(function(o){if(ZC(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),$e(o,l,t,be(o).dataIndex)}}})}function qC(r,e){return K(r,function(t){var a=t[0];a=Ie(a,e.x),a=Ke(a,e.x+e.width);var n=t[1];return n=Ie(n,e.y),n=Ke(n,e.y+e.height),[a,n]})}function bF(r,e){var t=Ie(r.x,e.x),a=Ke(r.x+r.width,e.x+e.width),n=Ie(r.y,e.y),i=Ke(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function Lu(r,e,t){var a=U({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),me(n,t),new $t(a)):Mu(r.replace("path://",""),a,t,"center")}function Nu(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(KC(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function KC(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=Xm(c,f,l,u);if(wF(h))return!1;var v=r-n,d=e-i,p=Xm(v,d,l,u)/h;if(p<0||p>1)return!1;var g=Xm(v,d,c,f)/h;return!(g<0||g>1)}function Xm(r,e,t,a){return r*a-t*e}function wF(r){return r<=1e-6&&r>=-1e-6}function mo(r,e,t,a,n){return e==null||(Ge(e)?ht[0]=ht[1]=ht[2]=ht[3]=e:(process.env.NODE_ENV!=="production"&&Z(e.length===4),ht[0]=e[0],ht[1]=e[1],ht[2]=e[2],ht[3]=e[3]),a&&(ht[0]=Ie(0,ht[0]),ht[1]=Ie(0,ht[1]),ht[2]=Ie(0,ht[2]),ht[3]=Ie(0,ht[3])),t&&(ht[0]=-ht[0],ht[1]=-ht[1],ht[2]=-ht[2],ht[3]=-ht[3]),jC(r,ht,"x","width",3,1,n&&n[0]||0),jC(r,ht,"y","height",0,2,n&&n[1]||0)),r}var ht=[0,0,0,0];function jC(r,e,t,a,n,i,o){var s=e[i]+e[n],l=r[a];r[a]+=s,o=Ie(0,Ke(o,l)),r[a]<o?(r[a]=o,r[t]+=e[n]>=0?-e[n]:e[i]>=0?l+e[i]:dt(s)>1e-8?(l-o)*e[n]/s:0):r[t]-=e[n]}function Tn(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=Q(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&k(Oe(l),function(c){ae(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=be(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:me({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Zm(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function li(r,e){if(r)if(Y(r))for(var t=0;t<r.length;t++)Zm(r[t],e);else Zm(r,e)}function qm(r){return!r||dt(r[1])<zh&&dt(r[2])<zh||dt(r[0])<zh&&dt(r[3])<zh}var zh=1e-5;function Pu(r,e){return r?pe.copy(r,e):e.clone()}function Km(r,e){return e?Oi(r||ft(),e):void 0}function yo(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function QC(r){var e=-1/0,t=1/0;Zm(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});function a(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function Gh(r,e,t){JC(r,e,t,-1/0)}function JC(r,e,t,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=Ie(JC(s[l],e,t,a),a);else r.z=e,r.zlevel=t,a=Ie(r.z2||0,a);if(n&&(n.z=e,n.zlevel=t,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}function jm(r){return r.animation={duration:0},r}function Fh(r,e){return e?Oi(Ru.transform,e):bs(Ru.transform),Ru.decomposeTransform(),ka(r,Ru),r}var Ru=new Da;Ru.transform=ft();function Qm(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}va("circle",wn),va("ellipse",kh),va("sector",ar),va("ring",ku),va("polygon",nr),va("polyline",Kt),va("rect",Le),va("line",Ct),va("bezierCurve",Au),va("arc",Mh);const _o=Object.freeze(Object.defineProperty({__proto__:null,Arc:Mh,BezierCurve:Au,BoundingRect:pe,Circle:wn,CompoundPath:Ih,Ellipse:kh,Group:ge,HOVER_LAYER_FOR_INCREMENTAL:qs,HOVER_LAYER_FROM_THRESHOLD:UC,HOVER_LAYER_NO:$C,Image:$t,IncrementalDisplayable:pF,Line:Ct,LinearGradient:vo,OrientedBoundingRect:zC,Path:Re,Point:_e,Polygon:nr,Polyline:Kt,RadialGradient:BC,Rect:Le,Ring:ku,Sector:ar,Text:Fe,WH:_t,XY:Te,applyTransform:da,calcZ2Range:QC,clipPointsByRect:qC,clipRectByRect:bF,createIcon:Lu,decomposeTransform:Fh,ensureCopyRect:Pu,ensureCopyTransform:Km,expandOrShrinkRect:mo,extendPath:_F,extendShape:mF,getCurrentCanvasPainter:Qm,getShapeClass:Oh,getTransform:js,groupTransition:Iu,initProps:ot,isBoundingRectAxisAligned:qm,isElementRemoved:Zs,lineLineIntersect:KC,linePolygonIntersect:Nu,makeImage:WC,makePath:Mu,mergePath:Zr,payloadDisableAnimation:jm,registerShape:va,removeElement:si,removeElementWithFadeOut:Cn,resizePath:XC,retrieveZInfo:yo,setTooltipConfig:Tn,subPixelOptimize:Vh,subPixelOptimizeLine:Ks,subPixelOptimizeRect:SF,transformDirection:Bh,traverseElements:li,traverseUpdateZ:Gh,updateProps:$e},Symbol.toStringTag,{value:"Module"}));var Hh={};function eT(r,e){for(var t=0;t<pr.length;t++){var a=pr[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Jm(r,e,t){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=ce(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<pr.length;u++){var c=pr[u],f=e[c];l[c]=oe(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Vt(r,e,t,a){t=t||Hh;for(var n=r instanceof Fe,i=!1,o=0;o<Cu.length;o++){var s=e[Cu[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new Fe,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Jm(t,e),c=e.normal,f=!!c.getShallow("show"),h=at(c,a&&a.normal,t,!1,!n);h.text=u.normal,n||r.setTextConfig($h(c,t,!1));for(var o=0;o<pr.length;o++){var v=pr[o],s=e[v];if(s){var d=l.ensureState(v),p=!!oe(s.getShallow("show"),f);if(p!==f&&(d.ignore=!p),d.style=at(s,a&&a[v],t,!0,!n),d.style.text=u[v],!n){var g=r.ensureState(v);g.textConfig=$h(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),t.enableTextSetter&&(Qs(l).setLabelText=function(m){var _=Jm(t,e,m);eT(l,_)})}else l&&(l.ignore=!0);r.dirty()}function Lt(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<pr.length;a++){var n=pr[a];t[n]=r.getModel([n,e])}return t}function at(r,e,t,a,n){var i={};return CF(i,r,t,a,n),e&&U(i,e),i}function $h(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=oe(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(a.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(a.layoutRect=e.layoutRect),a}function CF(r,e,t,a,n){t=t||Hh;var i=e.ecModel,o=i&&i.option.textStyle,s=TF(e),l;if(s){l={};var u="richInheritPlainLabel",c=oe(e.get(u),i?i.get(u):void 0);for(var f in s)if(s.hasOwnProperty(f)){var h=e.getModel(["rich",f]);nT(l[f]={},h,o,e,c,t,a,n,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=e.get("minMargin");if(g!=null)g=Ge(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Js.minMargin;else{var m=e.get("textMargin");m!=null&&(p.margin=Cf(m),p.__marginType=Js.textMargin)}nT(r,e,o,null,null,t,a,n,!0,!1)}function TF(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Hh).rich;if(t){e=e||{};for(var a=Oe(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var tT=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],rT=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],aT=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function nT(r,e,t,a,n,i,o,s,l,u){t=!o&&t||Hh;var c=i&&i.inheritColor,f=e.getShallow("color"),h=e.getShallow("textBorderColor"),v=oe(e.getShallow("opacity"),t.opacity);(f==="inherit"||f==="auto")&&(process.env.NODE_ENV!=="production"&&f==="auto"&&wt("color: 'auto'","color: 'inherit'"),c?f=c:f=null),(h==="inherit"||h==="auto")&&(process.env.NODE_ENV!=="production"&&h==="auto"&&wt("color: 'auto'","color: 'inherit'"),c?h=c:h=null),s||(f=f||t.color,h=h||t.textBorderColor),f!=null&&(r.fill=f),h!=null&&(r.stroke=h);var d=oe(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=oe(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var g=oe(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&v==null&&!u&&(v=i&&i.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var m=0;m<tT.length;m++){var _=tT[m],S=n!==!1&&a?fr(e.getShallow(_),a.getShallow(_),t[_]):oe(e.getShallow(_),t[_]);S!=null&&(r[_]=S)}for(var m=0;m<rT.length;m++){var _=rT[m],S=e.getShallow(_);S!=null&&(r[_]=S)}if(r.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(r.verticalAlign=x)}if(!l||!i.disableBox){for(var m=0;m<aT.length;m++){var _=aT[m],S=e.getShallow(_);S!=null&&(r[_]=S)}var b=e.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&c&&(process.env.NODE_ENV!=="production"&&r.backgroundColor==="auto"&&wt("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=c),(r.borderColor==="auto"||r.borderColor==="inherit")&&c&&(process.env.NODE_ENV!=="production"&&r.borderColor==="auto"&&wt("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=c)}}function ey(r,e){var t=e&&e.getModel("textStyle");return Br([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Qs=De();function iT(r,e,t,a){if(r){var n=Qs(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function oT(r,e,t,a,n){var i=Qs(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=oe(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=bw(t,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var h=Jm({labelDataIndex:e,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);eT(r,h)}r.percent=0,(i.prevValue==null?ot:$e)(r,{percent:1},a,e,null,u)}var Js={minMargin:1,textMargin:2},EF=["textStyle","color"],ty=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ry=new Fe,DF=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(EF):null)},r.prototype.getFont=function(){return ey({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<ty.length;a++)t[ty[a]]=this.getShallow(ty[a]);return ry.useStyle(t),ry.update(),ry.getBoundingRect()},r})(),sT=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],kF=Ji(sT),AF=(function(){function r(){}return r.prototype.getLineStyle=function(e){return kF(this,e)},r})(),lT=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],MF=Ji(lT),IF=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return MF(this,e,t)},r})(),ze=(function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){},r.prototype.mergeOption=function(e,t){ke(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=a==null?a:a[e];if(n==null&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=e!=null,n=a?this.parsePath(e):null,i=a?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(he(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Ve.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&!(e[n]&&(a=a&&typeof a=="object"?a[e[n]]:null,a==null));n++);return a==null&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r})();sm(ze),P6(ze),kt(ze,AF),kt(ze,IF),kt(ze,z6),kt(ze,DF);var LF=Math.round(Math.random()*10);function So(r){return[r||"",LF++].join("_")}function NF(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=Oa(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=Oa(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function PF(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),c=u.graph,f=u.noEntryList,h={};for(k(i,function(_){h[_]=!0});f.length;){var v=f.pop(),d=c[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),k(d.successor,p?m:g)}k(h,function(){var _="";throw process.env.NODE_ENV!=="production"&&(_=vr("Circular dependency may exists: ",h,i,o)),new Error(_)});function g(_){c[_].entryCount--,c[_].entryCount===0&&f.push(_)}function m(_){h[_]=!0,g(_)}};function t(i){var o={},s=[];return k(i,function(l){var u=a(o,l),c=u.originalDeps=e(l),f=n(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),k(f,function(h){Ee(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);Ee(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return k(i,function(l){Ee(o,l)>=0&&s.push(l)}),s}}function ui(r,e){return ke(ke({},r,!0),e,!0)}const RF={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:". "}}}},OF={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Uh="ZH",ay="EN",el=ay,Wh={},ny={},uT=Ve.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||el).toUpperCase();return r.indexOf(Uh)>-1?Uh:el})():el;function cT(r,e){r=r.toUpperCase(),ny[r]=new ze(e),Wh[r]=e}function VF(r){if(Q(r)){var e=Wh[r.toUpperCase()]||{};return r===Uh||r===ay?he(e):ke(he(e),he(Wh[el]),!1)}else return ke(he(r),he(Wh[el]),!1)}function iy(r){return ny[r]}function BF(){return ny[el]}cT(ay,RF),cT(Uh,OF);var oy=null;function zF(r){oy||(oy=r)}function St(){return oy}function fT(r,e){var t=St(),a=e.breakOption,n=e.breakParsed;return!n&&t&&(n=t.parseAxisBreakOption(a,r)),n}function Yh(r){var e=r.brk;return e?e.breaks:[]}function xo(r){var e=r.brk;return e?e.hasBreaks():!1}var sy=1e3,ly=sy*60,Ou=ly*60,qr=Ou*24,hT=qr*365,GF={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Xh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},FF="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Zh="{yyyy}-{MM}-{dd}",vT={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zh,hour:Zh+" "+Xh.hour,minute:Zh+" "+Xh.minute,second:Zh+" "+Xh.second,millisecond:FF},Or=["year","month","day","hour","minute","second","millisecond"],HF=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $F(r){return!Q(r)&&!ce(r)?UF(r):r}function UF(r){r=r||{};var e={},t=!0;return k(Or,function(a){t&&(t=r[a]==null)}),k(Or,function(a,n){var i=r[a];e[a]={};for(var o=null,s=n;s>=0;s--){var l=Or[s],u=de(i)&&!Y(i)?i[l]:i,c=void 0;Y(u)?(c=u.slice(),o=c[0]||""):Q(u)?(o=u,c=[o]):(o==null?o=Xh[a]:GF[l].test(o)||(o=e[l][l][0]+" "+o),c=[o],t&&(c[1]="{primary|"+o+"}")),e[a][l]=c}}),e}function ci(r,e){return r+="","0000".substr(0,e-r.length)+r}function Vu(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 WF(r){return r===Vu(r)}function YF(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function qh(r,e,t,a){var n=Zi(r),i=n[dT(t)](),o=n[cy(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[fy(t)](),u=n["get"+(t?"UTC":"")+"Day"](),c=n[hy(t)](),f=(c-1)%12+1,h=n[vy(t)](),v=n[dy(t)](),d=n[py(t)](),p=c>=12?"pm":"am",g=p.toUpperCase(),m=a instanceof ze?a:iy(a||uT)||BF(),_=m.getModel("time"),S=_.get("month"),x=_.get("monthAbbr"),b=_.get("dayOfWeek"),w=_.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,ci(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,ci(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ci(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ci(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ci(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,ci(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,ci(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ci(d,3)).replace(/{S}/g,d+"")}function XF(r,e,t,a,n){var i=null;if(Q(t))i=t;else if(ce(t)){var o={time:r.time,level:r.time?r.time.level:0},s=St();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var c=tl(r.value,n);i=t[c][c][0]}}return qh(new Date(r.value),i,n,a)}function tl(r,e){var t=Zi(r),a=t[cy(e)]()+1,n=t[fy(e)](),i=t[hy(e)](),o=t[vy(e)](),s=t[dy(e)](),l=t[py(e)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function uy(r,e,t){switch(e){case"year":r[pT(t)](0);case"month":r[gT(t)](1);case"day":r[mT(t)](0);case"hour":r[yT(t)](0);case"minute":r[_T(t)](0);case"second":r[ST(t)](0)}return r}function dT(r){return r?"getUTCFullYear":"getFullYear"}function cy(r){return r?"getUTCMonth":"getMonth"}function fy(r){return r?"getUTCDate":"getDate"}function hy(r){return r?"getUTCHours":"getHours"}function vy(r){return r?"getUTCMinutes":"getMinutes"}function dy(r){return r?"getUTCSeconds":"getSeconds"}function py(r){return r?"getUTCMilliseconds":"getMilliseconds"}function ZF(r){return r?"setUTCFullYear":"setFullYear"}function pT(r){return r?"setUTCMonth":"setMonth"}function gT(r){return r?"setUTCDate":"setDate"}function mT(r){return r?"setUTCHours":"setHours"}function yT(r){return r?"setUTCMinutes":"setMinutes"}function _T(r){return r?"setUTCSeconds":"setSeconds"}function ST(r){return r?"setUTCMilliseconds":"setMilliseconds"}function xT(r){if(!Jg(r))return Q(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function bT(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Bu=Cf;function gy(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Br(c)?c:"-"}function i(c){return Ir(c)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Zi(r):r;if(isNaN(+l)){if(s)return"-"}else return qh(l,a,t)}if(e==="ordinal")return bf(r)?n(r):Ge(r)&&i(r)?r+"":"-";var u=pn(r);return i(u)?xT(u):bf(r)?n(r):typeof r=="boolean"?r+"":"-"}var wT=["a","b","c","d","e","f","g"],my=function(r,e){return"{"+r+(e??"")+"}"};function CT(r,e,t){Y(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=wT[i];r=r.replace(my(o),my(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(my(wT[l],s),t?hr(u):u)}return r}function TT(r,e,t){return k(e,function(a,n){r=r.replace("{"+n+"}",a)}),r}function qF(r,e){var t=Q(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!a)return"";if(i==="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:'+hr(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+hr(a)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function bo(r,e){return e=e||"transparent",Q(r)?r:de(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Kh(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var jh={},yy={},rl=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=a(jh,!0),this._normalMasterList=a(yy,!1);function a(n,i){var o=[];return k(n,function(s,l){var u=s.create(e,t);o=o.concat(u||[]),process.env.NODE_ENV!=="production"&&i&&k(u,function(c){return Z(!c.update)})}),o}},r.prototype.update=function(e,t){k(this._normalMasterList,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){jh[e]=t;return}yy[e]=t},r.get=function(e){return yy[e]||jh[e]},r})();function KF(r){return!!jh[r]}var jF=1,ET=2;function QF(r){process.env.NODE_ENV!=="production"&&Z(!_y.get(r.fullType)),_y.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var _y=re();function DT(r){var e=r.getShallow("coord",!0),t=jF;if(e==null){var a=_y.get(r.type);a&&a.getCoord2&&(t=ET,e=a.getCoord2(r))}return{coord:e,from:t}}var al=0,Qh=1,kT=2;function AT(r,e){var t=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=a!=null,i=al;if(t){var o=r.mainType==="series";a==null&&(a=o?"data":"box"),a==="data"?(i=Qh,o||(process.env.NODE_ENV!=="production"&&n&&e&&Be('coordinateSystemUsage "data" is not supported in non-series components.'),i=al)):a==="box"&&(i=kT,!o&&!KF(t)&&(process.env.NODE_ENV!=="production"&&n&&e&&Be('coordinateSystem "'+t+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+r.type+'" yet.')),i=al))}return{coordSysType:t,kind:i}}function zu(r){var e=r.targetModel,t=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys,i=r.allowNotFound;process.env.NODE_ENV!=="production"&&Z(!!t);var o=AT(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==Qh&&(s=Qh,l=t),s===al||l!==t)return al;var u=a(t,e);return u?(s===Qh?(process.env.NODE_ENV!=="production"&&Z(e.mainType==="series"),e.coordinateSystem=u):e.boxCoordinateSystem=u,s):(process.env.NODE_ENV!=="production"&&(i||Be(t+" cannot be found for"+(" "+e.type+" (index: "+e.componentIndex+")."))),al)}var MT=function(r,e){var t=e.getReferringComponents(r,mt).models[0];return t&&t.coordinateSystem},Jh=k,IT=["left","right","top","bottom","width","height"],wo=[["width","left","right"],["height","top","bottom"]];function Sy(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);d=o+g,d>n||l.newline?(i+=s+t,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+t:o=d+t)})}var Co=Sy;Me(Sy,"vertical"),Me(Sy,"horizontal");function LT(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function JF(r,e){var t=Nt(r,e,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(t.type===Gu.point)i=t.refPoint,n=ct(a,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=Y(o)?o:[o,o];n=ct(a,t.refContainer),i=t.boxCoordFrom===ET?t.refPoint:[ee(s[0],n.width)+n.x,ee(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function NT(r,e){var t=JF(r,e),a=t.viewRect,n=t.center,i=r.get("radius");Y(i)||(i=[0,i]);var o=ee(a.width,e.getWidth()),s=ee(a.height,e.getHeight()),l=Math.min(o,s),u=ee(i[0],l/2),c=ee(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:c,viewRect:a}}function ct(r,e,t){t=Bu(t||0);var a=e.width,n=e.height,i=ee(r.left,a),o=ee(r.top,n),s=ee(r.right,a),l=ee(r.bottom,n),u=ee(r.width,a),c=ee(r.height,n),f=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(c)&&(c=n-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-c-f),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-t[0];break;case"bottom":o=n-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(c)&&(c=n-f-o-(l||0));var d=new pe((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,c);return d.margin=t,d}function PT(r,e,t){var a=r.getShallow("preserveAspect",!0);if(!a)return e;var n=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(n))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=a==="cover";return n>t&&!l||n<t&&l?(s.width=e.height*t,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),ct(s,e)}var Gu={rect:1,point:2};function Nt(r,e,t){var a,n,i,o=r.boxCoordinateSystem,s;if(o){var l=DT(r),u=l.coord,c=l.from;if(o.dataToLayout){i=Gu.rect,s=c;var f=o.dataToLayout(u);a=f.contentRect||f.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint?(i=Gu.point,s=c,n=o.dataToPoint(u)):process.env.NODE_ENV!=="production"&&Be(r.type+"["+r.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return i==null&&(i=Gu.rect),i===Gu.rect&&(a||(a={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function ev(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new pe(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=ct(me({width:u.width,height:u.height},e),t,a),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function eH(r,e){return r[wo[e][0]]!=null||r[wo[e][1]]!=null&&r[wo[e][2]]!=null}function Fu(r){var e=r.layoutMode||r.constructor.layoutMode;return de(e)?e:e?{type:e}:null}function Ua(r,e,t){var a=t&&t.ignoreSize;!Y(a)&&(a=[a,a]);var n=o(wo[0],0),i=o(wo[1],1);l(wo[0],r,n),l(wo[1],r,i);function o(u,c){var f={},h=0,v={},d=0,p=2;if(Jh(u,function(_){v[_]=r[_]}),Jh(u,function(_){ae(e,_)&&(f[_]=v[_]=e[_]),s(f,_)&&h++,s(v,_)&&d++}),a[c])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return f;for(var g=0;g<u.length;g++){var m=u[g];if(!ae(f,m)&&ae(r,m)){f[m]=r[m];break}}return f}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,f){Jh(u,function(h){c[h]=f[h]})}}function To(r){return RT({},r)}function RT(r,e){return e&&r&&Jh(IT,function(t){ae(e,t)&&(r[t]=e[t])}),r}var tH=De(),Ne=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=So("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Fu(this),i=n?To(t):{},o=a.getTheme();ke(t,o.get(this.mainType)),ke(t,this.getDefaultOption()),n&&Ua(t,i,n)},e.prototype.mergeOption=function(t,a){ke(this.option,t,!0);var n=Fu(this);n&&Ua(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!I6(t))return t.defaultOption;var a=tH(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=ke(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return Bs(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){return LT(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(ze);kw(Ne,ze),ch(Ne),NF(Ne),PF(Ne,rH);function rH(r){var e=[];return k(Ne.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=K(e,function(t){return Oa(t).main}),r!=="dataset"&&Ee(e,"dataset")<=0&&e.unshift("dataset"),e}var H={color:{},darkColor:{},size:{}},xt=H.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};U(xt,{primary:xt.neutral80,secondary:xt.neutral70,tertiary:xt.neutral60,quaternary:xt.neutral50,disabled:xt.neutral20,border:xt.neutral30,borderTint:xt.neutral20,borderShade:xt.neutral40,background:xt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:xt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:xt.neutral70,axisLineTint:xt.neutral40,axisTick:xt.neutral70,axisTickMinor:xt.neutral60,axisLabel:xt.neutral70,axisSplitLine:xt.neutral15,axisMinorSplitLine:xt.neutral05});for(var Eo in xt)if(xt.hasOwnProperty(Eo)){var OT=xt[Eo];Eo==="theme"?H.darkColor.theme=xt.theme.slice():Eo==="highlight"?H.darkColor.highlight="rgba(255,231,130,0.4)":Eo.indexOf("accent")===0?H.darkColor[Eo]=Qn(OT,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):H.darkColor[Eo]=Qn(OT,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}H.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var VT="";typeof navigator<"u"&&(VT=navigator.platform||"");var nl="rgba(0, 0, 0, 0.2)",BT=H.color.theme[0],aH=Qn(BT,null,null,.9);const zT={darkMode:"auto",colorBy:"series",color:H.color.theme,gradientColor:[aH,BT],aria:{decal:{decals:[{color:nl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:nl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:nl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:nl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:nl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:nl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:VT.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 jt={Must:1,Might:2,Not:3},GT=De();function nH(r){GT(r).datasetMap=re()}function FT(r,e,t){var a={},n=by(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=GT(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,c,f;r=r.slice(),k(r,function(p,g){var m=de(p)?p:r[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=d(m)),a[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});k(r,function(p,g){var m=p.name,_=d(p);if(c==null){var S=h.valueWayDim;v(a[m],S,_),v(o,S,_),h.valueWayDim+=_}else if(c===g)v(a[m],0,_),v(i,0,_);else{var S=h.categoryWayDim;v(a[m],S,_),v(o,S,_),h.categoryWayDim+=_}});function v(p,g,m){for(var _=0;_<m;_++)p.push(g+_)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function xy(r,e,t){var a={},n=by(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Rr||i===ca)&&k(o,function(c,f){(de(c)?c.name:c)==="name"&&(s=f)});var l=(function(){for(var c={},f={},h=[],v=0,d=Math.min(5,t);v<d;v++){var p=$T(e.data,i,e.seriesLayoutBy,o,e.startIndex,v);h.push(p);var g=p===jt.Not;if(g&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!g&&h[c.n]===jt.Not)&&(c.n=v),m(c)&&h[c.n]!==jt.Not)return c;g||(p===jt.Might&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v)&&(f.n=v))}function m(_){return _.v!=null&&_.n!=null}return m(c)?c:m(f)?f:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function by(r){var e=r.get("data",!0);if(!e)return Bs(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},mt).models[0]}function iH(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Bs(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},mt).models}function HT(r,e){return $T(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function $T(r,e,t,a,n,i){var o,s=5;if(cr(r))return jt.Not;var l,u;if(a){var c=a[i];de(c)?(l=c.name,u=c.type):Q(c)&&(l=c)}if(u!=null)return u==="ordinal"?jt.Must:jt.Not;if(e===Ut){var f=r;if(t===so){for(var h=f[i],v=0;v<(h||[]).length&&v<s;v++)if((o=x(h[n+v]))!=null)return o}else for(var v=0;v<f.length&&v<s;v++){var d=f[n+v];if(d&&(o=x(d[i]))!=null)return o}}else if(e===Rr){var p=r;if(!l)return jt.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=x(g[l]))!=null)return o}}else if(e===ca){var m=r;if(!l)return jt.Not;var h=m[l];if(!h||cr(h))return jt.Not;for(var v=0;v<h.length&&v<s;v++)if((o=x(h[v]))!=null)return o}else if(e===Pr)for(var _=r,v=0;v<_.length&&v<s;v++){var g=_[v],S=Rs(g);if(!Y(S))return jt.Not;if((o=x(S[i]))!=null)return o}function x(b){var w=Q(b);if(b!=null&&isFinite(Number(b))&&b!=="")return w?jt.Might:jt.Not;if(w&&b!=="-")return jt.Must}return jt.Not}var wy=re();function oH(r,e){Z(wy.get(r)==null&&e),wy.set(r,e)}function sH(r,e,t){var a=wy.get(e);if(!a)return t;var n=a(r);if(!n)return t;if(process.env.NODE_ENV!=="production")for(var i=0;i<n.length;i++)Z(Os(n[i]));return t.concat(n)}var UT=De(),lH=De(),Cy=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=tt(this.get("color",!0)),i=this.get("colorLayer",!0);return WT(this,UT,n,i,e,t,a)},r.prototype.clearColorPalette=function(){cH(this,UT)},r})();function Ty(r,e,t,a){var n=tt(r.get(["aria","decal","decals"]));return WT(r,lH,n,null,e,t,a)}function uH(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}function WT(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?t:uH(a,o);if(c=c||t,!(!c||!c.length)){var f=c[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%c.length,f}}function cH(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var tv,Hu,YT,Ey="\0_ec_inner",XT=1,fH={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",matrix:"MatrixComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},hH={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",chord:"ChordChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},rv={};function vH(r){k(r,function(e,t){if(!Ne.hasClass(t)){var a=fH[t];a&&!rv[a]&&(Be("Component "+t+` is used but not imported.
37
+ import { `+a+` } from 'echarts/components';
38
+ echarts.use([`+a+"]);"),rv[a]=!0)}})}var Dy=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new ze(i),this._locale=new ze(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){process.env.NODE_ENV!=="production"&&(Z(t!=null,"option is null/undefined"),Z(t[Ey]!==XT,"please use chart.getOption()"));var i=KT(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,KT(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");process.env.NODE_ENV!=="production"&&vH(o),!this.option||t==="recreate"?YT(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&k(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=re(),u=a&&a.replaceMergeMainTypeMap;nH(this),k(t,function(f,h){f!=null&&(Ne.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?he(f):ke(n[h],f,!0))}),u&&u.each(function(f,h){Ne.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Ne.topologicalTravel(s,Ne.getAllClassMainTypes(),c,this);function c(f){var h=sH(this,f,tt(t[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=mw(v,h,d);m6(p,f,Ne),n[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],_=0,S,x;k(p,function(b,w){var C=b.existing,E=b.newOption;if(!E)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var T=f==="series",D=Ne.getClass(f,b.keyInfo.subType,!T);if(!D){if(process.env.NODE_ENV!=="production"){var A=b.keyInfo.subType,I=hH[A];rv[A]||(rv[A]=!0,Be(I?"Series "+A+` is used but not imported.
39
+ import { `+I+` } from 'echarts/charts';
40
+ echarts.use([`+I+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(S){process.env.NODE_ENV!=="production"&&(x||(lt("Currently only one tooltip component is allowed."),x=!0));return}S=!0}if(C&&C.constructor===D)C.name=b.keyInfo.name,C.mergeOption(E,this),C.optionUpdated(E,!1);else{var M=U({componentIndex:w},b.keyInfo);C=new D(E,this,this,M),U(C,M),b.brandNew&&(C.__requireNewView=!0),C.init(E,this,this),C.optionUpdated(null,!0)}}C?(g.push(C.option),m.push(C),_++):(g.push(void 0),m.push(void 0))},this),n[f]=g,i.set(f,m),o.set(f,_),f==="series"&&tv(this)}this._seriesIndices||tv(this)},e.prototype.getOption=function(){var t=he(this.option);return k(t,function(a,n){if(Ne.hasClass(n)){for(var i=tt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Os(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[Ey],t},e.prototype.setTheme=function(t){this._theme=new ze(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var n=t.index,i=t.id,o=t.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],k(tt(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=ZT("id",i,s):o!=null?l=ZT("name",o,s):l=Ze(s,function(u){return!!u}),qT(l,t)},e.prototype.findComponents=function(t){var a=t.query,n=t.mainType,i=s(a),o=i?this.queryComponents(i):Ze(this._componentsMap.get(n),function(u){return!!u});return l(qT(o,t));function s(u){var c=n+"Index",f=n+"Id",h=n+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:n,index:u[c],id:u[f],name:u[h]}:null}function l(u){return t.filter?Ze(u,t.filter):u}},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(ce(t)){var o=a,s=t;i.each(function(f,h){for(var v=0;f&&v<f.length;v++){var d=f[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=Q(t)?i.get(t):de(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=At(t,null);return Ze(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Ze(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return Ze(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){Hu(this),k(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){k(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){Hu(this),k(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return k(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return Hu(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){Hu(this);var n=[];k(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=re(n)},e.prototype.restoreData=function(t){tv(this);var a=this._componentsMap,n=[];a.each(function(i,o){Ne.hasClass(o)&&n.push(o)}),Ne.topologicalTravel(n,Ne.getAllClassMainTypes(),function(i){k(a.get(i),function(o){o&&(i!=="series"||!dH(o,t))&&o.restoreData()})})},e.internalField=(function(){tv=function(t){var a=t._seriesIndices=[];k(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=re(a)},Hu=function(t){if(process.env.NODE_ENV!=="production"&&!t._seriesIndices)throw new Error("Option should contains series.")},YT=function(t,a){t.option={},t.option[Ey]=XT,t._componentsMap=re({series:[]}),t._componentsCount=re();var n=a.aria;de(n)&&n.enabled==null&&(n.enabled=!0),pH(a,t._theme.option),ke(a,zT,!1),t._mergeOption(a,null)}})(),e})(ze);function dH(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||a!=null&&r.id!==a||n!=null&&r.name!==n}}function pH(r,e){var t=r.color&&!r.colorLayer;k(e,function(a,n){n==="colorLayer"&&t||n==="color"&&r.color||Ne.hasClass(n)||(typeof a=="object"?r[n]=r[n]?ke(r[n],a,!1):he(a):r[n]==null&&(r[n]=a))})}function ZT(r,e,t){if(Y(e)){var a=re();return k(e,function(i){if(i!=null){var o=At(i,null);o!=null&&a.set(i,!0)}}),Ze(t,function(i){return i&&a.get(i[r])})}else{var n=At(e,null);return Ze(t,function(i){return i&&n!=null&&i[r]===n})}}function qT(r,e){return e.hasOwnProperty("subType")?Ze(r,function(t){return t&&t.subType===e.subType}):r}function KT(r){var e=re();return r&&k(tt(r.replaceMerge),function(t){process.env.NODE_ENV!=="production"&&Z(Ne.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)}),{replaceMergeMainTypeMap:e}}kt(Dy,Cy);var gH=/^(min|max)?(.+)$/,mH=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(k(tt(e.series),function(o){o&&o.data&&cr(o.data)&&Tf(o.data)}),k(tt(e.dataset),function(o){o&&o.source&&cr(o.source)&&Tf(o.source)})),e=he(e);var n=this._optionBackup,i=yH(e,t,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],he(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=he(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)_H(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!xH(o,this._currentMediaIndices)&&(s=K(o,function(c){return he(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r})();function yH(r,e,t){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(r.options=r.media=null),i=r),c&&(Y(u)?k(u,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&de(v.query)&&de(v.query.option)&&Be("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?a.push(v):n||(n=v))}):process.env.NODE_ENV!=="production"&&Be("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),h(i),k(l,function(v){return h(v)}),k(a,function(v){return h(v.option)});function h(v){k(e,function(d){d(v,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function _H(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return k(r,function(i,o){var s=o.match(gH);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();SH(a[u],i,l)||(n=!1)}}),n}function SH(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function xH(r,e){return r.join(",")===e.join(",")}var Kr=k,$u=de,jT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ky(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=jT.length;t<a;t++){var n=jT[t],i=e.normal,o=e.emphasis;i&&i[n]&&(process.env.NODE_ENV!=="production"&&wt("itemStyle.normal."+n,n),r[n]=r[n]||{},r[n].normal?ke(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(process.env.NODE_ENV!=="production"&&wt("itemStyle.emphasis."+n,"emphasis."+n),r[n]=r[n]||{},r[n].emphasis?ke(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function ir(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(process.env.NODE_ENV!=="production"&&Pa("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),t?(r[e].normal=r[e].emphasis=null,me(r[e],a)):r[e]=a),n&&(process.env.NODE_ENV!=="production"&&Pa(e+".emphasis has been changed to emphasis."+e+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Uu(r){ir(r,"itemStyle"),ir(r,"lineStyle"),ir(r,"areaStyle"),ir(r,"label"),ir(r,"labelLine"),ir(r,"upperLabel"),ir(r,"edgeLabel")}function Tt(r,e){var t=$u(r)&&r[e],a=$u(t)&&t.textStyle;if(a){process.env.NODE_ENV!=="production"&&Pa("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var n=0,i=gw.length;n<i;n++){var o=gw[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}}function jr(r){r&&(Uu(r),Tt(r,"label"),r.emphasis&&Tt(r.emphasis,"label"))}function bH(r){if($u(r)){ky(r),Uu(r),Tt(r,"label"),Tt(r,"upperLabel"),Tt(r,"edgeLabel"),r.emphasis&&(Tt(r.emphasis,"label"),Tt(r.emphasis,"upperLabel"),Tt(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(ky(e),jr(e));var t=r.markLine;t&&(ky(t),jr(t));var a=r.markArea;a&&jr(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!cr(i))for(var o=0;o<i.length;o++)jr(i[o]);k(r.categories,function(u){Uu(u)})}if(n&&!cr(n))for(var o=0;o<n.length;o++)jr(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)jr(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)Y(l[o])?(jr(l[o][0]),jr(l[o][1])):jr(l[o]);r.type==="gauge"?(Tt(r,"axisLabel"),Tt(r,"title"),Tt(r,"detail")):r.type==="treemap"?(ir(r.breadcrumb,"itemStyle"),k(r.levels,function(u){Uu(u)})):r.type==="tree"&&Uu(r.leaves)}}function En(r){return Y(r)?r:r?[r]:[]}function QT(r){return(Y(r)?r[0]:r)||{}}function wH(r,e){Kr(En(r.series),function(a){$u(a)&&bH(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Kr(t,function(a){Kr(En(r[a]),function(n){n&&(Tt(n,"axisLabel"),Tt(n.axisPointer,"label"))})}),Kr(En(r.parallel),function(a){var n=a&&a.parallelAxisDefault;Tt(n,"axisLabel"),Tt(n&&n.axisPointer,"label")}),Kr(En(r.calendar),function(a){ir(a,"itemStyle"),Tt(a,"dayLabel"),Tt(a,"monthLabel"),Tt(a,"yearLabel")}),Kr(En(r.radar),function(a){Tt(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name,process.env.NODE_ENV!=="production"&&Pa("name property in radar component has been changed to axisName")),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap,process.env.NODE_ENV!=="production"&&Pa("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&Kr(a.indicator,function(n){n.text&&wt("text","name","radar.indicator")})}),Kr(En(r.geo),function(a){$u(a)&&(jr(a),Kr(En(a.regions),function(n){jr(n)}))}),Kr(En(r.timeline),function(a){jr(a),ir(a,"label"),ir(a,"itemStyle"),ir(a,"controlStyle",!0);var n=a.data;Y(n)&&k(n,function(i){de(i)&&(ir(i,"label"),ir(i,"itemStyle"))})}),Kr(En(r.toolbox),function(a){ir(a,"iconStyle"),Kr(a.feature,function(n){ir(n,"iconStyle")})}),Tt(QT(r.axisPointer),"label"),Tt(QT(r.tooltip).axisPointer,"label")}function CH(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&(a=a&&a[t[n]],a!=null);n++);return a}function TH(r,e,t,a){for(var n=e.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=t)}function JT(r){r&&k(EH,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var EH=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],DH=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ay=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Wu(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Ay.length;t++){var a=Ay[t][1],n=Ay[t][0];e[a]!=null&&(e[n]=e[a],process.env.NODE_ENV!=="production"&&wt(a,n))}}function e2(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&wt("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function t2(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay,process.env.NODE_ENV!=="production"&&wt("downplay","blur","sunburst"))}function kH(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&wt("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function r2(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&r2(r[t].children,e)}function a2(r,e){wH(r,e),r.series=tt(r.series),k(r.series,function(t){if(de(t)){var a=t.type;if(a==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow,process.env.NODE_ENV!=="production"&&wt("clipOverflow","clip","line"));else if(a==="pie"||a==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise,process.env.NODE_ENV!=="production"&&wt("clockWise","clockwise")),e2(t.label);var n=t.data;if(n&&!cr(n))for(var i=0;i<n.length;i++)e2(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&wt("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=CH(t,"pointer.color");o!=null&&TH(t,"itemStyle.color",o)}else if(a==="bar"){Wu(t),Wu(t.backgroundStyle),Wu(t.emphasis);var n=t.data;if(n&&!cr(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Wu(n[i]),Wu(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s,process.env.NODE_ENV!=="production"&&wt("highlightPolicy","emphasis.focus","sunburst"))),t2(t),r2(t.data,t2)}else a==="graph"||a==="sankey"?kH(t):a==="map"&&(t.mapType&&!t.map&&(process.env.NODE_ENV!=="production"&&wt("mapType","map","map"),t.map=t.mapType),t.mapLocation&&(process.env.NODE_ENV!=="production"&&Pa("`mapLocation` is not used anymore."),me(t,t.mapLocation)));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&wt("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),JT(t)}}),r.dataRange&&(r.visualMap=r.dataRange),k(DH,function(t){var a=r[t];a&&(Y(a)||(a=[a]),k(a,function(n){JT(n)}))})}var AH=Su(MH);function MH(r){var e=re();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(t){if(t.length!==0){var a=t[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&t.reverse(),k(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),IH(t)}})}function IH(r){k(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var h=o.get(e.stackedDimension,f);if(isNaN(h))return n;var v,d;s?d=o.getRawIndex(f):v=o.get(e.stackedByDimension,f);for(var p=NaN,g=t-1;g>=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var _=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&h>=0&&_>0||l==="samesign"&&h<=0&&_<0){h=Xi(h,_),p=_;break}}}return a[0]=h,a[1]=p,a})})}var av=(function(){function r(e){this.data=e.data||(e.sourceFormat===ca?{}:[]),this.sourceFormat=e.sourceFormat||aC,this.seriesLayoutBy=e.seriesLayoutBy||fa,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];n.type==null&&HT(this,a)===jt.Must&&(n.type="ordinal")}}return r})();function My(r){return r instanceof av}function Iy(r,e,t){t=t||n2(r);var a=e.seriesLayoutBy,n=NH(r,t,a,e.sourceHeader,e.dimensions),i=new av({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:he(e)});return i}function Ly(r){return new av({data:r,sourceFormat:cr(r)?_n:Pr})}function LH(r){return new av({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:he(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function n2(r){var e=aC;if(cr(r))e=_n;else if(Y(r)){r.length===0&&(e=Ut);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if(Y(n)||cr(n)){e=Ut;break}else if(de(n)){e=Rr;break}}}}else if(de(r)){for(var i in r)if(ae(r,i)&&er(r[i])){e=ca;break}}return e}function NH(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:i2(n),startIndex:o,dimensionsDetectedCount:i};if(e===Ut){var s=r;a==="auto"||a==null?o2(function(u){u!=null&&u!=="-"&&(Q(u)?o==null&&(o=1):o=0)},t,s,10):o=Ge(a)?a:a?1:0,!n&&o===1&&(n=[],o2(function(u,c){n[c]=u!=null?u+"":""},t,s,1/0)),i=n?n.length:t===so?s.length:s[0]?s[0].length:null}else if(e===Rr)n||(n=PH(r));else if(e===ca)n||(n=[],k(r,function(u,c){n.push(c)}));else if(e===Pr){var l=Rs(r[0]);i=Y(l)&&l.length||1}else e===_n&&process.env.NODE_ENV!=="production"&&Z(!!n,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:i2(n),dimensionsDetectedCount:i}}function PH(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Oe(t)}function i2(r){if(r){var e=re();return K(r,function(t,a){t=de(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function o2(r,e,t,a){if(e===so)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else for(var i=t[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function s2(r){var e=r.sourceFormat;return e===Rr||e===ca}var Do,ko,Ao,Mo,l2,u2,c2=(function(){function r(e,t){var a=My(e)?e:Ly(e);this._source=a;var n=this._data=a.data,i=a.sourceFormat,o=a.seriesLayoutBy;if(i===_n){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=n}if(process.env.NODE_ENV!=="production"){var s=RH[iv(i,o)];s&&s(n,a.dimensionsDefine)}u2(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;u2=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,v=l2[iv(u,c)];if(process.env.NODE_ENV!=="production"&&Z(v,"Invalide sourceFormat: "+u),U(o,v),u===_n)o.getItem=t,o.count=n,o.fillStorage=a;else{var d=h2(u,c);o.getItem=ie(d,null,s,f,h);var p=d2(u,c);o.count=ie(p,null,s,f,h)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},a=function(o,s,l,u){for(var c=this._data,f=this._dimSize,h=0;h<f;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,m=l[h],_=0;_<g;_++){var S=c[_*f+h];m[o+_]=S,S<d&&(d=S),S>p&&(p=S)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};l2=(e={},e[Ut+"_"+fa]={pure:!0,appendData:i},e[Ut+"_"+so]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Rr]={pure:!0,appendData:i},e[ca]={pure:!0,appendData:function(o){var s=this._data;k(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Pr]={appendData:i},e[_n]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&Z(cr(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),nv=function(r){Y(r)||Be("series.data or dataset.source must be an array.")},RH=(Do={},Do[Ut+"_"+fa]=nv,Do[Ut+"_"+so]=nv,Do[Rr]=nv,Do[ca]=function(r,e){for(var t=0;t<e.length;t++){var a=e[t].name;a==null&&Be("dimension name must not be null/undefined.")}},Do[Pr]=nv,Do),f2=function(r,e,t,a){return r[a]},OH=(ko={},ko[Ut+"_"+fa]=function(r,e,t,a){return r[a+e]},ko[Ut+"_"+so]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},ko[Rr]=f2,ko[ca]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;i[o]=l?l[a]:null}return i},ko[Pr]=f2,ko);function h2(r,e){var t=OH[iv(r,e)];return process.env.NODE_ENV!=="production"&&Z(t,'Do not support get item on "'+r+'", "'+e+'".'),t}var v2=function(r,e,t){return r.length},VH=(Ao={},Ao[Ut+"_"+fa]=function(r,e,t){return Math.max(0,r.length-e)},Ao[Ut+"_"+so]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},Ao[Rr]=v2,Ao[ca]=function(r,e,t){var a=t[0].name,n=a!=null?r[a]:null;return n?n.length:0},Ao[Pr]=v2,Ao);function d2(r,e){var t=VH[iv(r,e)];return process.env.NODE_ENV!=="production"&&Z(t,'Do not support count on "'+r+'", "'+e+'".'),t}var Ny=function(r,e,t){return r[e]},BH=(Mo={},Mo[Ut]=Ny,Mo[Rr]=function(r,e,t){return r[t]},Mo[ca]=Ny,Mo[Pr]=function(r,e,t){var a=Rs(r);return a instanceof Array?a[e]:a},Mo[_n]=Ny,Mo);function p2(r){var e=BH[r];return process.env.NODE_ENV!=="production"&&Z(e,'Do not support get value on "'+r+'".'),e}function iv(r,e){return r===Ut?r+"_"+e:r}function il(r,e,t){if(r){var a=r.getRawDataItem(e);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return p2(i)(a,o,s)}else{var l=a;return i===Pr&&(l=Rs(a)),l}}}}var zH=/\{@(.+?)\}/g,ov=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",v=a.userOutput&&a.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);if(o&&(l.value=o.interpolatedValue),n!=null&&Y(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(ce(i))return l.status=t,l.dimensionIndex=n,i(l);if(Q(i)){var c=CT(i,l);return c.replace(zH,function(f,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&Be("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var p=il(s,e,d);if(o&&Y(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return il(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r})();function g2(r){var e,t;return de(r)?r.type?t=r:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+vr(r)):e=r,{text:e,frag:t}}function Yu(r){return new GH(r)}var GH=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(_){return!(_>=1)&&(_=1),_}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?(process.env.NODE_ENV!=="production"&&Z(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!=="production"&&Z(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(f||v<d)){var p=this._progress;if(Y(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&Z(m>=this._outputDueEnd),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(e,t,a,n,i){m2.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:m2.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,a;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(a=t.forceFirstProgress,t=t.progress),Y(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&Z(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),m2=(function(){var r,e,t,a,n,i={reset:function(l,u,c,f){e=l,r=u,t=c,a=f,n=Math.ceil(a/t),i.next=t>1&&a>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<a?l:e;return e++,u}})();function fi(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Ge(r)&&r!=null&&r!=="-"&&(r=+Zi(r)),r==null||r===""?NaN:Number(r))}var FH=re({number:function(r){return parseFloat(r)},time:function(r){return+Zi(r)},trim:function(r){return Q(r)?Br(r):r}});function y2(r){return FH.get(r)}var _2={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},HH=(function(){function r(e,t){if(!Ge(t)){var a="";process.env.NODE_ENV!=="production"&&(a='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),Ye(a)}this._opFn=_2[e],this._rvalFloat=pn(t)}return r.prototype.evaluate=function(e){return Ge(e)?this._opFn(e,this._rvalFloat):this._opFn(pn(e),this._rvalFloat)},r})(),S2=(function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Ge(e)?e:pn(e),n=Ge(t)?t:pn(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=Q(e),l=Q(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),$H=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=pn(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=pn(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function UH(r,e){return r==="eq"||r==="ne"?new $H(r==="eq",e):ae(_2,r)?new HH(r,e):null}function x2(r){var e="",t=-1/0,a=-1/0,n=1/0,i=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,a=r.ge),r.l!=null&&(e+="L"+r.l,n=r.l),r.le!=null&&(e+="LE"+r.le,i=r.le)),{key:e,g:t,ge:a,l:n,le:i}}function b2(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var WH=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return fi(e,t)},r})();function YH(r,e){var t=new WH,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==fa&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Ye(o));var s=[],l={},u=r.dimensionsDefine;if(u)k(u,function(p,g){var m=p.name,_={index:g,name:m,displayName:p.displayName};if(s.push(_),m!=null){var S="";ae(l,m)&&(process.env.NODE_ENV!=="production"&&(S='dimension name "'+m+'" duplicated.'),Ye(S)),l[m]=_}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=h2(n,fa);e.__isBuiltIn&&(t.getRawDataItem=function(p){return f(a,i,s,p)},t.getRawData=ie(XH,null,r)),t.cloneRawData=ie(ZH,null,r);var h=d2(n,fa);t.count=ie(h,null,a,i,s);var v=p2(n);t.retrieveValue=function(p,g){var m=f(a,i,s,p);return d(m,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return t.getDimensionInfo=ie(qH,null,s,l),t.cloneAllDimensionInfo=ie(KH,null,s),t}function XH(r){var e=r.sourceFormat;if(!Py(e)){var t="";process.env.NODE_ENV!=="production"&&(t="`getRawData` is not supported in source format "+e),Ye(t)}return r.data}function ZH(r){var e=r.sourceFormat,t=r.data;if(!Py(e)){var a="";process.env.NODE_ENV!=="production"&&(a="`cloneRawData` is not supported in source format "+e),Ye(a)}if(e===Ut){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===Rr){for(var n=[],i=0,o=t.length;i<o;i++)n.push(U({},t[i]));return n}}function qH(r,e,t){if(t!=null){if(Ge(t)||!isNaN(t)&&!ae(e,t))return r[t];if(ae(e,t))return e[t]}}function KH(r){return he(r)}var w2=re();function jH(r){r=he(r);var e=r.type,t="";e||(process.env.NODE_ENV!=="production"&&(t="Must have a `type` when `registerTransform`."),Ye(t));var a=e.split(":");a.length!==2&&(process.env.NODE_ENV!=="production"&&(t='Name must include namespace like "ns:regression".'),Ye(t));var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),r.__isBuiltIn=n,w2.set(e,r)}function QH(r,e,t){var a=tt(r),n=a.length,i="";n||(process.env.NODE_ENV!=="production"&&(i="If `transform` declared, it should at least contain one transform."),Ye(i));for(var o=0,s=n;o<s;o++){var l=a[o];e=JH(l,e,t,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function JH(r,e,t,a){var n="";e.length||(process.env.NODE_ENV!=="production"&&(n="Must have at least one upstream dataset."),Ye(n)),de(r)||(process.env.NODE_ENV!=="production"&&(n="transform declaration must be an object rather than "+typeof r+"."),Ye(n));var i=r.type,o=w2.get(i);o||(process.env.NODE_ENV!=="production"&&(n='Can not find transform on type "'+i+'".'),Ye(n));var s=K(e,function(c){return YH(c,o)}),l=tt(o.transform({upstream:s[0],upstreamList:s,config:he(r.config)}));if(process.env.NODE_ENV!=="production"&&r.print){var u=K(l,function(c){var f=a!=null?" === pipe index: "+a:"";return["=== dataset index: "+t.datasetIndex+f+" ===","- transform result data:",vr(c.data),"- transform result dimensions:",vr(c.dimensions)].join(`
41
+ `)}).join(`
42
+ `);hw(u)}return K(l,function(c,f){var h="";de(c)||(process.env.NODE_ENV!=="production"&&(h="A transform should not return some empty results."),Ye(h)),c.data||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be not be null or undefined"),Ye(h));var v=n2(c.data);Py(v)||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be array rows or object rows."),Ye(h));var d,p=e[0];if(p&&f===0&&!c.dimensions){var g=p.startIndex;g&&(c.data=p.data.slice(0,g).concat(c.data)),d={seriesLayoutBy:fa,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:fa,sourceHeader:0,dimensions:c.dimensions};return Iy(c.data,d,null)})}function Py(r){return r===Ut||r===Rr}var e7=typeof Uint32Array===Hs?Array:Uint32Array,t7=typeof Uint16Array===Hs?Array:Uint16Array,C2=typeof Int32Array===Hs?Array:Int32Array,T2=typeof Float64Array===Hs?Array:Float64Array,E2={float:T2,int:C2,ordinal:Array,number:Array,time:T2},Ry;function ol(r){return r>65535?e7:t7}function r7(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function D2(r,e,t,a,n){var i=E2[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(a)}var Oy=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=re()}return r.prototype.initData=function(e,t,a){process.env.NODE_ENV!=="production"&&Z(ce(e.getItem)&&ce(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=Ry[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[];var o=s2(n);this._dimensions=K(t,function(s){return process.env.NODE_ENV!=="production"&&o&&Z(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(i!=null){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new E2[t||"float"](this._rawCount),this._rawExtent[i]=qt(),i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[e]=qt());for(var l=i[e],u=o;u<s;u++){var c=a[u]=t.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],a=t.ordinalMeta;return a},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&Z(!this._indices,"appendData can only be called on raw data.");var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var c=n[u];D2(a,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var c=n[d],p=Ry.arrayRows.call(this,e[v]||f,c.property,v,d);a[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=K(o,function(_){return _.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=qt()),D2(i,c,f.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var h=[],v=e;v<t;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],a=0;if(t)for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(n){isNaN(n)||t.push(n)}),Zt(t);var a=this.count();return a===0?0:a%2===1?t[(a-1)/2]:(t[a/2]+t[a/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a=ol(this._rawCount);e=new a(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=ol(a._rawCount),o=new i(n),s=[],l=e.length,u=0,c=e[0],f=a._chunks,h=0;h<n;h++){var v=void 0,d=a.getRawIndex(h);if(l===0)v=t(h);else if(l===1){var p=f[c][d];v=t(p,h)}else{for(var g=0;g<l;g++)s[g]=f[e[g]][d];s[g]=h,v=t.apply(null,s)}v&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=Oe(e),i=n.length;if(!i)return this;var o=t.count(),s=ol(t._rawCount),l=new s(o),u=0,c=n[0],f=e[c][0],h=e[c][1],v=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var g=v[n[0]],m=0;m<a;m++){var _=g[m];(_>=f&&_<=h||isNaN(_))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[n[0]],S=v[n[1]],x=e[n[1]][0],b=e[n[1]][1],m=0;m<a;m++){var _=g[m],w=S[m];(_>=f&&_<=h||isNaN(_))&&(w>=x&&w<=b||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m<o;m++){var C=t.getRawIndex(m),_=v[n[0]][C];(_>=f&&_<=h||isNaN(_))&&(l[u++]=C)}else for(var m=0;m<o;m++){for(var E=!0,C=t.getRawIndex(m),T=0;T<i;T++){var D=n[T],_=v[D][C];(_<e[D][0]||_>e[D][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(m))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=qt();for(var f=0;f<s;f++){for(var h=e.getRawIndex(f),v=0;v<o;v++)l[v]=n[t[v]][h];l[o]=f;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var c=0;c<d.length;c++){var p=t[c],g=d[c],m=u[p],_=n[p];_&&(_[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,f,h,v=new(ol(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,_=0,S=p;S<g;S++){var x=this.getRawIndex(S),b=i[x];isNaN(b)||(_+=b)}_/=g-p;var w=d,C=Math.min(d+l,o),E=d-1,T=i[u];c=-1,h=w;for(var D=-1,A=0,S=w;S<C;S++){var x=this.getRawIndex(S),b=i[x];if(isNaN(b)){A++,D<0&&(D=x);continue}f=Math.abs((E-m)*(b-T)-(E-S)*(_-T)),f>c&&(c=f,h=x)}A>0&&A<C-w&&(v[s++]=Math.min(D,h),h=Math.max(D,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(e,t){for(var a=this.clone([e],!0),n=a._chunks,i=Math.floor(1/t),o=n[e],s=this.count(),l=new(ol(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var f=c,h=o[this.getRawIndex(f)],v=c,d=o[this.getRawIndex(v)],p=i;c+i>s&&(p=s-c);for(var g=0;g<p;g++){var m=this.getRawIndex(c+g),_=o[m];_<h&&(h=_,f=c+g),_>d&&(d=_,v=c+g)}var S=this.getRawIndex(f),x=this.getRawIndex(v);f<v?(l[u++]=S,l[u++]=x):(l[u++]=x,l[u++]=S)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],c=this.count(),f=i._rawExtent[e]=qt(),h=new(ol(this._rawCount))(Math.ceil(c/l)),v=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=a(s),_=this.getRawIndex(Math.min(d+n(s,m)||0,c-1));u[_]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),h[v++]=_}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][s],i);break;case 2:t(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var a=this._chunks[e],n=qt();if(!a)return n;var i=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=x2(t),c=u.key,f=l[c];if(f)return f.slice();for(var h=n[0],v=n[1],d=0;d<i;d++){var p=this.getRawIndex(d),g=a[p];(!t||b2(u,g))&&(g<h&&(h=g),g>v&&(v=g))}return l[c]=[h,v]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&wa(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?r7(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=he(this._extent),e._rawExtent=he(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,a,n,i){return fi(t[i],this._dimensions[i])}Ry={arrayRows:e,objectRows:function(t,a,n,i){return fi(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return fi(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}})(),r})(),k2=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(Xu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=cr(s)?_n:Pr,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=oe(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=oe(f.sourceHeader,h.sourceHeader),p=oe(f.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=g?[Iy(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(a){var _=this._applyTransform(t);n=_.sourceList,i=_.upstreamSignList}else{var S=m.get("source",!0);n=[Iy(S,this._getSourceMetaRawOption(),null)],i=[]}}process.env.NODE_ENV!=="production"&&Z(n&&i),this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&Z(n!=null||a!=null),n!=null){var i="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),M2(i))}var o,s=[],l=[];return k(e,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+n),M2(f)),s.push(c),l.push(u._getVersionSign())}),a?o=QH(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[LH(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&Z(Xu(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];Xu(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new Oy,s.initData(new c2(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Xu(e)){var t=by(e);return t?[t.getSourceManager()]:[]}else return K(iH(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(Xu(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r})();function A2(r){var e=r.option.transform;e&&Tf(r.option.transform)}function Xu(r){return r.mainType==="series"}function M2(r){throw new Error(r)}var a7="line-height:1";function I2(r){var e=r.lineHeight;return e==null?a7:"line-height:"+hr(e+"")+"px"}function L2(r,e){var t=r.color||H.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||H.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+hr(a+"")+"px;color:"+hr(t)+";font-weight:"+hr(n+""),valueStyle:"font-size:"+hr(o+"")+"px;color:"+hr(i)+";font-weight:"+hr(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var n7=[0,10,20,30],i7=["",`
43
+ `,`
44
+
45
+ `,`
46
+
47
+
48
+ `];function Et(r,e){return e.type=r,e}function Vy(r){return r.type==="section"}function N2(r){return Vy(r)?o7:s7}function P2(r){if(Vy(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return k(r.blocks,function(n){var i=P2(n);i>=e&&(e=i+ +(a&&(!i||Vy(n)&&!n.noHeader)))}),e}return 0}function o7(r,e,t,a){var n=e.noHeader,i=l7(P2(e)),o=[],s=e.blocks||[];Z(!s||Y(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ae(u,l)){var c=new S2(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(p,g){var m=e.valueFormatter,_=N2(p)(m?U(U({},r),{valueFormatter:m}):r,p,g>0?i.html:0,a);_!=null&&o.push(_)});var f=r.renderMode==="richText"?o.join(i.richText):By(a,o.join(""),n?t:i.html);if(n)return f;var h=gy(e.header,"ordinal",r.useUTC),v=L2(a,r.renderMode).nameStyle,d=I2(a);return r.renderMode==="richText"?O2(r,h,v)+i.richText+f:By(a,'<div style="'+v+";"+d+';">'+hr(h)+"</div>"+f,t)}function s7(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(x){return x=Y(x)?x:[x],K(x,function(b,w){return gy(b,Y(v)?v[w]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||H.color.secondary,n),h=i?"":gy(l,"ordinal",u),v=e.valueType,d=o?[]:c(e.value,e.rawDataIndex),p=!s||!i,g=!s&&i,m=L2(a,n),_=m.nameStyle,S=m.valueStyle;return n==="richText"?(s?"":f)+(i?"":O2(r,h,_))+(o?"":f7(r,d,p,g,S)):By(a,(s?"":f)+(i?"":u7(h,!s,_))+(o?"":c7(d,p,g,S)),t)}}function R2(r,e,t,a,n,i){if(r){var o=N2(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function l7(r){return{html:n7[r],richText:i7[r]}}function By(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=I2(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function u7(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+hr(r)+"</span>"}function c7(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=Y(r)?r:[r],'<span style="'+i+";"+a+'">'+K(r,function(o){return hr(o)}).join("&nbsp;&nbsp;")+"</span>"}function O2(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function f7(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Y(e)?e.join(" "):e,i)}function V2(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return bo(a)}function B2(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var zy=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=em()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=qF({color:t,type:e,renderMode:a,markerId:n});return Q(i)?i:(process.env.NODE_ENV!=="production"&&Z(n),this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};Y(t)?k(t,function(i){return U(a,i)}):U(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r})();function z2(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=Y(s),u=V2(e,t),c,f,h,v;if(o>1||l&&!o){var d=h7(s,e,t,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=c=il(n,t,i[0]),f=p.type}else v=c=l?s[0]:s;var g=tm(e),m=g&&e.name||"",_=n.getName(t),S=a?m:_;return Et("section",{header:m,noHeader:a||!g,sortParam:v,blocks:[Et("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Br(S),value:c,valueType:f,rawDataIndex:n.getRawIndex(t)})].concat(h||[])})}function h7(r,e,t,a,n){var i=e.getData(),o=wa(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?k(a,function(f){c(il(i,t,f),f)}):k(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Et("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var hi=De();function sv(r,e){return r.getName(e)||r.getId(e)}var lv="__universalTransitionEnabled",nt=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Yu({count:d7,reset:p7}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=hi(this).sourceManager=new k2(this);i.prepareSource();var o=this.getInitialData(t,n);F2(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&Z(o,"getInitialData returned invalid data."),hi(this).dataBeforeProcessed=o,G2(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Fu(this),i=n?To(t):{},o=this.subType;Ne.hasClass(o)&&(o+="Series"),ke(t,a.getTheme().get(this.subType)),ke(t,this.getDefaultOption()),qi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ua(t,i,n)},e.prototype.mergeOption=function(t,a){t=ke(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Fu(this);n&&Ua(this.option,t,n);var i=hi(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);F2(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,hi(this).dataBeforeProcessed=o,G2(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!cr(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&qi(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){var a=this.getRawData();a.appendData(t.data)},e.prototype.getData=function(t){var a=Gy(this);if(a){var n=a.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return hi(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=Gy(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}hi(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return re(t)},e.prototype.getSourceManager=function(){return hi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return hi(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);for(var c=[],f=1/0,h=-1,v=0,d=o.getDimensionIndex(a),p=o.getStore(),g=0,m=p.count();g<m;g++){var _=p.get(d,g),S=l.dataToCoord(_),x=u-S,b=Math.abs(x);b<=i&&((b<f||b===f&&x>=0&&h<0)&&(f=b,h=x,v=0),x===h&&(c[v++]=g))}return c.length=v,c},e.prototype.formatTooltip=function(t,a,n){return z2({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ve.node&&!(t&&t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Cy.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=sv(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=Oe(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[sv(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[lv])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){de(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=a[c],h=sv(t,f);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(f)}}else if(s==="single"||s===!0){var v=a[l-1],h=sv(t,v);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return Ne.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(Ne);kt(nt,ov),kt(nt,Cy),kw(nt,Ne);function G2(r){var e=r.name;tm(r)||(r.name=v7(r)||e)}function v7(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return k(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function d7(r){return r.model.getRawData().count()}function p7(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),g7}function g7(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function F2(r,e){k(au(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Me(m7,e))})}function m7(r,e){var t=Gy(r);return t&&t.setOutputEnd((e||this).count()),e}function Gy(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var st=(function(){function r(){this.group=new ge,this.uid=So("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();sm(st),ch(st);function Io(){var r=De();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var H2=De(),y7=Io(),et=(function(){function r(){this.group=new ge,this.uid=So("viewChart"),this.renderTask=Yu({plan:_7,reset:S7}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);if(!i){process.env.NODE_ENV!=="production"&&Be("Unknown dataType "+n.dataType);return}U2(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);if(!i){process.env.NODE_ENV!=="production"&&Be("Unknown dataType "+n.dataType);return}U2(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){li(this.group,e)},r.markUpdateMethod=function(e,t){H2(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function $2(r,e,t){r&&oi(r)&&(e==="emphasis"?xn:bn)(r,t)}function U2(r,e,t){var a=Ki(r,e),n=e&&e.highlightKey!=null?GG(e.highlightKey):null;a!=null?k(tt(a),function(i){$2(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){$2(i,t,n)})}sm(et,["dispose"]),ch(et);function _7(r){return y7(r.model)}function S7(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&H2(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),x7[l]}var x7={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},uv="\0__throttleOriginMethod",W2="\0__throttleRate",Y2="\0__throttleType";function Fy(r,e,t){var a,n=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var p=c||e,g=c||t;c=null,s=a-(g?n:i)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function sl(r,e,t,a){var n=r[e];if(n){var i=n[uv]||n,o=n[Y2],s=n[W2];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Fy(i,t,a==="debounce"),n[uv]=i,n[Y2]=a,n[W2]=t}return n}}function Zu(r,e){var t=r[e];t&&t[uv]&&(t.clear&&t.clear(),r[e]=t[uv])}var X2=De(),Z2={itemStyle:Ji(lT,!0),lineStyle:Ji(sT,!0)},b7={lineStyle:"stroke",itemStyle:"fill"};function q2(r,e){var t=r.visualStyleMapper||Z2[e];return t||(console.warn("Unknown style type '"+e+"'."),Z2.itemStyle)}function K2(r,e){var t=r.visualDrawType||b7[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var w7={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=q2(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=K2(r,a),u=o[l],c=ce(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ce(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ce(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=U({},o);g[l]=c(p),v.setItemVisual(d,"style",g)}}}},qu=new ze,C7={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=q2(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){qu.option=l[a];var u=n(qu),c=o.ensureUniqueItemVisual(s,"style");U(c,u),qu.option.decal&&(o.setItemVisual(s,"decal",qu.option.decal),qu.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},T7={performRawSeries:!0,overallReset:function(r){var e=re();r.eachSeries(function(t){if(!t.isColorBySeries()){var a=t.type+"-"+t.getColorBy();X2(t).scope=e.get(a)||e.set(a,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var a=t.getRawData(),n={},i=t.getData(),o=X2(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=K2(t,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},cv=Math.PI;function E7(r,e){e=e||{},me(e,{text:"loading",textColor:H.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:H.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new ge,a=new Le({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Fe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Le({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Mh({shape:{startAngle:-cv/2,endAngle:-cv/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:cv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:cv*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var j2=(function(){function r(e,t,a,n){this._stageTaskMap=re(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.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(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(t,a):Tw(e,t,a);e.pipelineContext=a.context=n},r.prototype.restorePipelines=function(e,t){var a=this,n=a._pipelineMap=re();t.eachSeries(function(i){var o=e.painter.type==="canvas"&&i.getProgressive(),s=i.uid;n.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),a._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;k(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),Z(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;k(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(n,g)&&g.dirty();var _=o.getPerformArgs(g,n.block);_.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(_)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=re(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||Yu({plan:I7,reset:L7,count:P7}));v.context={model:f,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Yu({reset:D7});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=re(),u=e.seriesType,c=e.getTargetSeries,f=e.dirtyOnOverallProgress,h=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),Z(!e.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):c?c(a,n).each(d):k(a.getSeries(),d);function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,Yu({reset:k7,onDirty:M7})));m.context={model:p,dirtyOnOverallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return ce(e)&&(e={overallReset:e,seriesType:R7(e)}),e.uid=So("stageHandler"),t&&(e.visualType=t),e},r})();function D7(r){r.overallReset(r.ecModel,r.api,r.payload)}function k7(r){return r.dirtyOnOverallProgress&&A7}function A7(){this.agent.dirty(),this.getDownstream().dirty()}function M7(){this.agent&&this.agent.dirty()}function I7(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function L7(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=tt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?K(e,function(t,a){return Q2(a)}):N7}var N7=Q2(0);function Q2(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function P7(r){return r.data.count()}function R7(r){fv=null;try{r(Ku,J2)}catch{}return fv}var Ku={},J2={},fv;eE(Ku,Dy),eE(J2,iC),Ku.eachSeriesByType=Ku.eachRawSeriesByType=function(r){fv=r},Ku.eachComponent=function(r){r.mainType==="series"&&r.subType&&(fv=r.subType)};function eE(r,e){for(var t in e.prototype)r[t]=pt}var ve=H.darkColor,tE=ve.background,ju=function(){return{axisLine:{lineStyle:{color:ve.axisLine}},splitLine:{lineStyle:{color:ve.axisSplitLine}},splitArea:{areaStyle:{color:[ve.backgroundTint,ve.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ve.axisMinorSplitLine}},axisLabel:{color:ve.axisLabel},axisName:{}}},rE={label:{color:ve.secondary},itemStyle:{borderColor:ve.borderTint},dividerLineStyle:{color:ve.border}},aE={darkMode:!0,color:ve.theme,backgroundColor:tE,axisPointer:{lineStyle:{color:ve.border},crossStyle:{color:ve.borderShade},label:{color:ve.tertiary}},legend:{textStyle:{color:ve.secondary},pageTextStyle:{color:ve.tertiary}},textStyle:{color:ve.secondary},title:{textStyle:{color:ve.primary},subtextStyle:{color:ve.quaternary}},toolbox:{iconStyle:{borderColor:ve.accent50},feature:{dataView:{backgroundColor:tE,textColor:ve.primary,textareaColor:ve.background,textareaBorderColor:ve.border,buttonColor:ve.accent50,buttonTextColor:ve.neutral00}}},tooltip:{backgroundColor:ve.neutral20,defaultBorderColor:ve.border,textStyle:{color:ve.tertiary}},dataZoom:{borderColor:ve.accent10,textStyle:{color:ve.tertiary},brushStyle:{color:ve.backgroundTint},handleStyle:{color:ve.neutral00,borderColor:ve.accent20},moveHandleStyle:{color:ve.accent40},emphasis:{handleStyle:{borderColor:ve.accent50}},dataBackground:{lineStyle:{color:ve.accent30},areaStyle:{color:ve.accent20}},selectedDataBackground:{lineStyle:{color:ve.accent50},areaStyle:{color:ve.accent30}}},visualMap:{textStyle:{color:ve.secondary},handleStyle:{borderColor:ve.neutral30}},timeline:{lineStyle:{color:ve.accent10},label:{color:ve.tertiary},controlStyle:{color:ve.accent30,borderColor:ve.accent30}},calendar:{itemStyle:{color:ve.neutral00,borderColor:ve.neutral20},dayLabel:{color:ve.tertiary},monthLabel:{color:ve.secondary},yearLabel:{color:ve.secondary}},matrix:{x:rE,y:rE,backgroundColor:{borderColor:ve.axisLine},body:{itemStyle:{borderColor:ve.borderTint}}},timeAxis:ju(),logAxis:ju(),valueAxis:ju(),categoryAxis:ju(),line:{symbol:"circle"},graph:{color:ve.theme},gauge:{title:{color:ve.secondary},axisLine:{lineStyle:{color:[[1,ve.neutral05]]}},axisLabel:{color:ve.axisLabel},detail:{color:ve.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ve.background}},radar:(function(){var r=ju();return r.axisName={color:ve.axisLabel},r.axisLine.lineStyle.color=ve.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:ve.neutral20,textStyle:{color:ve.secondary}},emphasis:{itemStyle:{color:ve.neutral30}}}},sunburst:{itemStyle:{borderColor:ve.background}},map:{itemStyle:{borderColor:ve.border,areaColor:ve.neutral10},label:{color:ve.tertiary},emphasis:{label:{color:ve.primary},itemStyle:{areaColor:ve.highlight}},select:{label:{color:ve.primary},itemStyle:{areaColor:ve.highlight}}},geo:{itemStyle:{borderColor:ve.border,areaColor:ve.neutral10},emphasis:{label:{color:ve.primary},itemStyle:{areaColor:ve.highlight}},select:{label:{color:ve.primary},itemStyle:{color:ve.highlight}}}};aE.categoryAxis.splitLine.show=!1;var O7=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(Q(e)){var i=Oa(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};k(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var h=o[f],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(t.mainType=d,t[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),Hy=["symbol","symbolSize","symbolRotate","symbolOffset"],nE=Hy.concat(["symbolKeepAspect"]),V7={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<Hy.length;o++){var s=Hy[o],l=r.get(s);ce(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(U({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=Oe(n);function c(f,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(h,g,n[g](v,d))}}return{dataEach:i?c:null}}},B7={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<nE.length;s++){var l=nE[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function $y(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function Qu(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function iE(r,e,t,a){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function oE(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}k([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=U({},n),process.env.NODE_ENV!=="production"&&wt(n.type,a[1]),o.dispatchAction(U(n,{type:a[1],seriesIndex:t(i,n)}))})})}function ll(r,e,t,a,n){var i=r+e;t.isSilent(i)||(process.env.NODE_ENV!=="production"&&Pa("event "+i+" is deprecated."),a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),h=Ki(f,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:Y(h)?f.getName(h[0]):f.getName(h),selected:Q(l)?l:U({},l)})}}))}function z7(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(ll("map","selectchanged",e,n,a),ll("pie","selectchanged",e,n,a)):a.fromAction==="select"?(ll("map","selected",e,n,a),ll("pie","selected",e,n,a)):a.fromAction==="unselect"&&(ll("map","unselected",e,n,a),ll("pie","unselected",e,n,a))})}function Lo(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var Qr=new zr,hv={};function G7(r,e){process.env.NODE_ENV!=="production"&&hv[r]&&Be("Already has an implementation of "+r+"."),hv[r]=e}function F7(r){return process.env.NODE_ENV!=="production"&&(hv[r]||Be("Implementation of "+r+" doesn't exists.")),hv[r]}var sE={};function H7(r,e){sE[r]=e}function $7(r){return sE[r]}var vv=De();function U7(r){vv(r).prepare={}}function W7(r){vv(r).fullUpdate={}}function lE(r){return vv(r).prepare}function ul(r){return vv(r).fullUpdate}var Y7=Math.round(Math.random()*9),X7=typeof Object.defineProperty=="function",Z7=(function(){function r(){this._id="__ec_inner_"+Y7++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return X7?Object.defineProperty(a,this._id,{value:t,enumerable:!1,configurable:!0}):a[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),q7=Re.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),K7=Re.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),j7=Re.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(t-c,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+c-f*v,l+s+h*v,t,a-d,t,a),r.bezierCurveTo(t,a-d,t-c+f*v,l+s+h*v,t-c,l+s),r.closePath()}}),Q7=Re.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),J7={line:Ct,rect:Le,roundRect:Le,square:Le,circle:wn,diamond:K7,pin:j7,arrow:Q7,triangle:q7},e$={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},dv={};k(J7,function(r,e){dv[e]=new r});var t$=Re.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Jf(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=t.y+t.height*.4),a},buildPath:function(r,e,t){var a=e.symbolType;if(a!=="none"){var n=dv[a];n||(a="rect",n=dv[a]),e$[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function r$(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||H.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Dt(r,e,t,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=WC(r.slice(8),new pe(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=Mu(r.slice(7),{},new pe(e,t,a,n),o?"center":"cover"):l=new t$({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=r$,i&&l.setColor(i),l}function cl(r){return Y(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function No(r,e){if(r!=null)return Y(r)||(r=[r,r]),[ee(r[0],e[0])||0,ee(oe(r[1],r[0]),e[1])||0]}function Po(r){return isFinite(r)}function a$(r,e,t){var a=e.x==null?0:e.x,n=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(a=a*t.width+t.x,n=n*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),a=Po(a)?a:0,n=Po(n)?n:1,i=Po(i)?i:0,o=Po(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function n$(r,e,t){var a=t.width,n=t.height,i=Math.min(a,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*a+t.x,s=s*n+t.y,l=l*i),o=Po(o)?o:.5,s=Po(s)?s:.5,l=l>=0&&Po(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Uy(r,e,t){for(var a=e.type==="radial"?n$(r,e,t):a$(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function i$(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function pv(r){return parseInt(r,10)}function fl(r,e,t){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[a]!=null&&t[a]!=="auto")return parseFloat(t[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||pv(s[a])||pv(r.style[a]))-(pv(s[i])||0)-(pv(s[o])||0)||0}function o$(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Ge(r)?[r]:Y(r)?r:null}function Wy(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&o$(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=K(t,function(i){return i/n}),a/=n)}return[t,a]}var s$=new Ga(!0);function gv(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function uE(r){return typeof r=="string"&&r!=="none"}function mv(r){var e=r.fill;return e!=null&&e!=="none"}function cE(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function fE(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Yy(r,e,t){var a=um(e.image,e.__image,t);if(fh(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Df),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function l$(r,e,t,a,n){var i,o=gv(t),s=mv(t),l=t.strokePercent,u=l<1,c=!e.path;(!e.silent||u)&&c&&e.createPathProxy();var f=e.path||s$,h=e.__dirty;if(!a){var v=t.fill,d=t.stroke,p=s&&!!v.colorStops,g=o&&!!d.colorStops,m=s&&!!v.image,_=o&&!!d.image,S=void 0,x=void 0,b=void 0,w=void 0,C=void 0;(p||g)&&(C=e.getBoundingRect()),p&&(S=h?Uy(r,v,C):e.__canvasFillGradient,e.__canvasFillGradient=S),g&&(x=h?Uy(r,d,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(b=h||!e.__canvasFillPattern?Yy(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=b),_&&(w=h||!e.__canvasStrokePattern?Yy(r,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?r.fillStyle=S:m&&(b?r.fillStyle=b:s=!1),g?r.strokeStyle=x:_&&(w?r.strokeStyle=w:o=!1)}var E=e.getGlobalScale();f.setScale(E[0],E[1],e.segmentIgnoreThreshold);var T,D;r.setLineDash&&t.lineDash&&(i=Wy(e),T=i[0],D=i[1]);var A=!0;(c||h&Ts)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),A=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),A&&f.rebuildPath(r,u?l:1),T&&(r.setLineDash(T),r.lineDashOffset=D),a?(n.batchFill=s,n.batchStroke=o):t.strokeFirst?(o&&fE(r,t),s&&cE(r,t)):(s&&cE(r,t),o&&fE(r,t)),T&&r.setLineDash([])}function u$(r,e,t){var a=e.__image=um(t.image,e.__image,e,e.onload);if(!(!a||!fh(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;r.drawImage(a,u,c,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,f=o-u,h=s-c;r.drawImage(a,u,c,f,h,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function c$(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||cn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=Wy(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(gv(t)&&r.strokeText(n,t.x,t.y),mv(t)&&r.fillText(n,t.x,t.y)):(mv(t)&&r.fillText(n,t.x,t.y),gv(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var hE=["shadowBlur","shadowOffsetX","shadowOffsetY"],vE=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dE(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){gr(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?eo.opacity:o}(a||e.blend!==t.blend)&&(i||(gr(r,n),i=!0),r.globalCompositeOperation=e.blend||eo.blend);for(var s=0;s<hE.length;s++){var l=hE[s];(a||e[l]!==t[l])&&(i||(gr(r,n),i=!0),r[l]=r.dpr*(e[l]||0))}return(a||e.shadowColor!==t.shadowColor)&&(i||(gr(r,n),i=!0),r.shadowColor=e.shadowColor||eo.shadowColor),i}function pE(r,e,t,a,n){var i=e.style,o=a?null:t&&t.style||{};if(i===o)return!1;var s=dE(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(gr(r,n),s=!0),uE(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(gr(r,n),s=!0),uE(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(gr(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(gr(r,n),s=!0),r.lineWidth=u)}for(var c=0;c<vE.length;c++){var f=vE[c],h=f[0];(a||i[h]!==o[h])&&(s||(gr(r,n),s=!0),r[h]=i[h]||f[1])}return s}function f$(r,e,t,a,n){return dE(r,e.style,t&&t.style,a,n)}function gE(r,e){var t=e.transform,a=r.dpr||1;t?r.setTransform(a*t[0],a*t[1],a*t[2],a*t[3],a*t[4],a*t[5]):r.setTransform(a,0,0,a,0,0)}function h$(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),gE(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}function v$(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var mE=1,yE=2,_E=3,SE=4;function d$(r){var e=mv(r),t=gv(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function gr(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function xE(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Ro(r,e,t),hl(r,t)}function Ro(r,e,t){var a=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~wr,e.__isRendered=!1;return}var n=e.__clipPaths,i=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!i||i$(n,i))&&(i&&(gr(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),n&&n.length&&(gr(r,t),r.save(),h$(n,r,t),s=!0,t.prevElClipPaths=n)),t.allClipped){e.__dirty&=~wr,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof Re&&e.autoBatch&&d$(o);s||v$(a,u.transform)?(gr(r,t),gE(r,e)):c||gr(r,t),e instanceof Re?(t.lastDrawType!==mE&&(l=!0,t.lastDrawType=mE),pE(r,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&r.beginPath(),l$(r,e,o,c,t)):e instanceof Gs?(t.lastDrawType!==_E&&(l=!0,t.lastDrawType=_E),pE(r,e,u,l,t),c$(r,e,o)):e instanceof $t?(t.lastDrawType!==yE&&(l=!0,t.lastDrawType=yE),f$(r,e,u,l,t),u$(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==SE&&(l=!0,t.lastDrawType=SE),p$(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(c&&gr(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function hl(r,e){gr(r,e),e.prevElClipPaths&&r.restore()}function p$(r,e,t){var a=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Ro(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}hl(r,i);for(var u=0,c=n.length;u<c;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Ro(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}hl(r,i),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Xy=new Z7,bE=new Ds(100),wE=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function vl(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&Xy.delete(r);var i=Xy.get(r);if(i)return i;var o=me(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/t,Xy.set(r,s),r.dirty=!1,s;function l(u){for(var c=[t],f=!0,h=0;h<wE.length;++h){var v=o[wE[h]];if(v!=null&&!Y(v)&&!Q(v)&&!Ge(v)&&typeof v!="boolean"){f=!1;break}c.push(v)}var d;if(f){d=c.join(",")+(n?"-svg":"");var p=bE.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=TE(o.dashArrayX),m=g$(o.dashArrayY),_=CE(o.symbol),S=m$(g),x=EE(m),b=!n&&ur.createCanvas(),w=n&&{tag:"g",attrs:{},key:"dcl",children:[]},C=T(),E;b&&(b.width=C.width*t,b.height=C.height*t,E=b.getContext("2d")),D(),f&&bE.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=C.width,u.svgHeight=C.height;function T(){for(var A=1,I=0,M=S.length;I<M;++I)A=cw(A,S[I]);for(var L=1,I=0,M=_.length;I<M;++I)L=cw(L,_[I].length);A*=L;var N=x*S.length*_.length;if(process.env.NODE_ENV!=="production"){var R=function(P){console.warn("Calculated decal size is greater than "+P+" due to decal option settings so "+P+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+P+" to be larger to avoid incontinuity.")};A>o.maxTileWidth&&R("maxTileWidth"),N>o.maxTileHeight&&R("maxTileHeight")}return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function D(){E&&(E.clearRect(0,0,b.width,b.height),o.backgroundColor&&(E.fillStyle=o.backgroundColor,E.fillRect(0,0,b.width,b.height)));for(var A=0,I=0;I<m.length;++I)A+=m[I];if(A<=0)return;for(var M=-x,L=0,N=0,R=0;M<C.height;){if(L%2===0){for(var P=N/2%_.length,O=0,G=0,F=0;O<C.width*2;){for(var B=0,I=0;I<g[R].length;++I)B+=g[R][I];if(B<=0)break;if(G%2===0){var $=(1-o.symbolSize)*.5,j=O+g[R][G]*$,W=M+m[L]*$,V=g[R][G]*o.symbolSize,q=m[L]*o.symbolSize,Ce=F/2%_[P].length;fe(j,W,V,q,_[P][Ce])}O+=g[R][G],++F,++G,G===g[R].length&&(G=0)}++R,R===g.length&&(R=0)}M+=m[L],++N,++L,L===m.length&&(L=0)}function fe(ne,we,se,xe,qe){var Pe=n?1:t,Xe=Dt(qe,ne*Pe,we*Pe,se*Pe,xe*Pe,o.color,o.symbolKeepAspect);if(n){var je=a.painter.renderOneToVNode(Xe);je&&w.children.push(je)}else xE(E,Xe)}}}}function CE(r){if(!r||r.length===0)return[["rect"]];if(Q(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!Q(r[t])){e=!1;break}if(e)return CE([r]);for(var a=[],t=0;t<r.length;++t)Q(r[t])?a.push([r[t]]):a.push(r[t]);return a}function TE(r){if(!r||r.length===0)return[[0,0]];if(Ge(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!Ge(r[a])){t=!1;break}if(t)return TE([r]);for(var n=[],a=0;a<r.length;++a)if(Ge(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else{var e=K(r[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function g$(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Ge(r)){var e=Math.ceil(r);return[e,e]}var t=K(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function m$(r){return K(r,function(e){return EE(e)})}function EE(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var y$=Su(_$);function _$(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=vl(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=vl(n,e)}}})}var S$=1,x$=800,b$=900,w$=920,C$=1e3,T$=2e3,DE=5e3,kE=1e3,E$=1100,Zy=2e3,AE=3e3,D$=4e3,yv=4500,k$=4600,A$=5e3,M$=6e3,ME=7e3,I$={PROCESSOR:{SERIES_FILTER:x$,AXIS_STATISTICS:w$,FILTER:C$,STATISTIC:DE,STATISTICS:DE},VISUAL:{LAYOUT:kE,PROGRESSIVE_LAYOUT:E$,GLOBAL:Zy,CHART:AE,POST_CHART_LAYOUT:k$,COMPONENT:D$,BRUSH:A$,CHART_ITEM:yv,ARIA:M$,DECAL:ME}},Pt="__flagInMainProcess",_v="__mainProcessVersion",Yt="__pendingUpdate",qy="__needsUpdateStatus",IE=/^[a-zA-Z0-9_]+$/,Ky="__connectUpdateStatus",LE=0,L$=1,N$=2;function NE(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){kr(this.id);return}return RE(this,r,e)}}function PE(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return RE(this,r,e)}}function RE(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),zr.prototype[e].apply(r,t)}var OE=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(zr),VE=OE.prototype;VE.on=PE("on"),VE.off=PE("off");var Oo,jy,Sv,Dn,xv,Qy,Jy,dl,pl,BE,zE,e0,GE,bv,FE,HE,Jr,$E,gl,UE=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,new O7)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i.__v_skip=!0,i._dom=t;var o="canvas",s="auto",l=!1;if(i[_v]=1,process.env.NODE_ENV!=="production"){var u=Ve.hasGlobalWindow?window:global;u&&(o=oe(u.__ECHARTS__DEFAULT__RENDERER__,o),s=oe(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=oe(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}n.ssr&&Q8(function(v){var d=be(v),p=d.dataIndex;if(p!=null){var g=re();return g.set("series_index",d.seriesIndex),g.set("data_index",p),d.ssrType&&g.set("ssr_type",d.ssrType),g}});var c=i._zr=tw(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:oe(n.useDirtyRect,l),useCoarsePointer:oe(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Fy(ie(c.flush,c),17),i._updateTheme(a),i._locale=VF(n.locale||uT),i._coordSysMgr=new rl;var f=i._api=FE(i);function h(v,d){return v.__prio-d.__prio}return Lf(Tv,h),Lf(a0,h),i._scheduler=new j2(i,f,a0,Tv),i._messageCenter=new OE,i._initEvents(),i.resize=ie(i.resize,i),c.animation.on("frame",i._onframe,i),BE(c,i),zE(c,i),Tf(i),i}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,a=this._model,n=this._api;if($E(this),this[Yt]){var i=this[Yt].silent;this[Pt]=!0,gl(this);try{Oo(this),Dn.update.call(this,null,this[Yt].updateParams)}catch(l){throw this[Pt]=!1,this[Yt]=null,l}this._zr.flush(),this[Pt]=!1,this[Yt]=null,dl.call(this,i),pl.call(this,i)}else if(t.unfinished){var o=S$;do{t.unfinished=!1;var s=ur.getTime();t.performSeriesTasks(a),t.performDataProcessorTasks(a),Qy(this,a),t.performVisualTasks(a),bv(this,this._model,n,"remain",{}),o-=ur.getTime()-s}while(o>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(this[Pt]){process.env.NODE_ENV!=="production"&&Be("`setOption` should not be called during main process.");return}if(this._disposed){kr(this.id);return}var i,o,s;if(de(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Pt]=!0,gl(this),!this._model||a){var l=new mH(this._api),u=this._theme,c=this._model=new Dy;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},n0);var f={seriesTransition:s,optionChanged:!0};if(n)this[Yt]={silent:i,updateParams:f},this[Pt]=!1,this.getZr().wakeUp();else{try{Oo(this),Dn.update.call(this,null,f)}catch(h){throw this[Yt]=null,this[Pt]=!1,h}this._ssr||this._zr.flush(),this[Yt]=null,this[Pt]=!1,dl.call(this,i),pl.call(this,i)}},e.prototype.setTheme=function(t,a){if(this[Pt]){process.env.NODE_ENV!=="production"&&Be("`setTheme` should not be called during main process.");return}if(this._disposed){kr(this.id);return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Yt]&&(i==null&&(i=this[Yt].silent),o=this[Yt].updateParams,this[Yt]=null),this[Pt]=!0,gl(this);try{this._updateTheme(t),n.setTheme(this._theme),Oo(this),Dn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Pt]=!1,s}this[Pt]=!1,dl.call(this,i),pl.call(this,i)}},e.prototype._updateTheme=function(t){Q(t)&&(t=WE[t]),t&&(t=he(t),t&&a2(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ve.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return process.env.NODE_ENV!=="production"&&wt("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;if(process.env.NODE_ENV!=="production"&&a.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;if(process.env.NODE_ENV!=="production"&&a.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,a=t.storage.getDisplayList();return k(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){kr(this.id);return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;k(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return k(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){kr(this.id);return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(YE[n]){var l=s,u=s,c=-s,f=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();k(Ju,function(S,x){if(S.group===n){var b=a?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(he(t)),w=S.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),f=o(w.bottom,f),h.push({dom:b,left:w.left,top:w.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,g=ur.createCanvas(),m=tw(g,{renderer:a?"svg":"canvas"});if(m.resize({width:d,height:p}),a){var _="";return k(h,function(S){var x=S.left-l,b=S.top-u;_+='<g transform="translate('+x+","+b+')">'+S.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=_,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return t.connectedBackgroundColor&&m.add(new Le({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),k(h,function(S){var x=new $t({style:{x:S.left*v-l,y:S.top*v-u,image:S.dom}});m.add(x)}),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a,n){return xv(this,"convertToPixel",t,a,n)},e.prototype.convertToLayout=function(t,a,n){return xv(this,"convertToLayout",t,a,n)},e.prototype.convertFromPixel=function(t,a,n){return xv(this,"convertFromPixel",t,a,n)},e.prototype.containPixel=function(t,a){if(this._disposed){kr(this.id);return}var n=this._model,i,o=Vs(n,t);return k(o,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?i=i||f.containPoint(a,u):process.env.NODE_ENV!=="production"&&lt(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&lt(l+": containPoint is not supported")},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Vs(n,t,{defaultMainType:"series"}),o=i.seriesModel;process.env.NODE_ENV!=="production"&&(o||lt("There is no specified series model"));var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?$y(s,l,a):Qu(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;k(P$,function(n){var i=function(o){var s=t.getModel(),l=o.target,u,c=n==="globalout";if(c?u={}:l&&Lo(l,function(p){var g=be(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=U({},g.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var v=f&&h!=null&&s.getComponent(f,h),d=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];process.env.NODE_ENV!=="production"&&!c&&!(v&&d)&&lt("model or view can not be found by params"),u.event=o,u.type=n,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},t.trigger(n,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(n,i,t)});var a=this._messageCenter;k(r0,function(n,i){a.on(i,function(o){t.trigger(i,o)})}),z7(a,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){kr(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){kr(this.id);return}this._disposed=!0;var t=this.getDom();t&&xw(this.getDom(),o0,"");var a=this,n=a._api,i=a._model;k(a._componentsViews,function(o){o.dispose(i,n)}),k(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Ju[a.id]},e.prototype.resize=function(t){if(this[Pt]){process.env.NODE_ENV!=="production"&&Be("`resize` should not be called during main process.");return}if(this._disposed){kr(this.id);return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[Yt]&&(i==null&&(i=this[Yt].silent),n=!0,this[Yt]=null),this[Pt]=!0,gl(this);try{n&&Oo(this),Dn.update.call(this,{type:"resize",animation:U({duration:0},t&&t.animation)})}catch(o){throw this[Pt]=!1,o}this[Pt]=!1,dl.call(this,i),pl.call(this,i)}},e.prototype.showLoading=function(t,a){if(this._disposed){kr(this.id);return}if(de(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!i0[t]){process.env.NODE_ENV!=="production"&&lt("Loading effects "+t+" not exists.");return}var n=i0[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)},e.prototype.hideLoading=function(){if(this._disposed){kr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=U({},t);return a.type=Cv[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){kr(this.id);return}if(de(a)||(a={silent:!!a}),!!wv[t.type]&&this._model){if(this[Pt]){this._pendingActions.push(t);return}var n=a.silent;Jy.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&Ve.browser.weChat&&this._throttledZrFlush(),dl.call(this,n),pl.call(this,n)}},e.prototype.updateLabelLayout=function(){Qr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){kr(this.id);return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);process.env.NODE_ENV!=="production"&&Z(t.data&&i),i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Oo=function(f){U7(f._model);var h=f._scheduler;h.restorePipelines(f._zr,f._model),h.prepareStageTasks(),jy(f,!0),jy(f,!1),h.plan()},jy=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,g=h?f._componentsMap:f._chartsMap,m=f._zr,_=f._api,S=0;S<p.length;S++)p[S].__alive=!1;h?v.eachComponent(function(w,C){w!=="series"&&x(C)}):v.eachSeries(x);function x(w){var C=w.__requireNewView;w.__requireNewView=!1;var E="_ec_"+w.id+"_"+w.type,T=!C&&g[E];if(!T){var D=Oa(w.type),A=h?st.getClass(D.main,D.sub):et.getClass(D.sub);process.env.NODE_ENV!=="production"&&Z(A,D.sub+" does not exist."),T=new A,T.init(v,_),g[E]=T,p.push(T),m.add(T.group)}w.__viewId=T.__id=E,T.__alive=!0,T.__model=w,T.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!h&&d.prepareView(T,w,v,_)}for(var S=0;S<p.length;){var b=p[S];b.__alive?S++:(!h&&b.renderTask.dispose(),m.remove(b.group),b.dispose(v,_),p.splice(S,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Sv=function(f,h,v,d,p){var g=f._model;if(g.setUpdatePayload(v),!d){k([].concat(f._componentsViews).concat(f._chartsViews),x);return}var m=am(v,d,p),_=v.excludeSeriesId,S;_!=null&&(S=re(),k(tt(_),function(b){var w=At(b,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!=null;if(!w)if(wC(v))if(b instanceof nt)v.type===lo&&!v.notBlur&&!b.get(["emphasis","disabled"])&&LG(b,v,f._api);else{var C=Vm(b.mainType,b.componentIndex,v.name,f._api),E=C.focusSelf,T=C.dispatchers;v.type===lo&&E&&!v.notBlur&&Om(b.mainType,b.componentIndex,f._api),T&&k(T,function(D){v.type===lo?xn(D):bn(D)})}else zm(v)&&b instanceof nt&&(RG(b,v,f._api),xC(b),Jr(f))},f),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!=null;w||x(f[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},f);function x(b){b&&b.__alive&&b[h]&&b[h](b.__model,g,f._api,v)}},Dn={prepareAndUpdate:function(f){Oo(this),Dn.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(v){W7(v),v.setUpdatePayload(f),m.restoreData(v,f),m.performSeriesTasks(v),g.create(v,d),Qr.trigger("coordsys:aftercreate",v,d),m.performDataProcessorTasks(v,f),Qy(this,v),g.update(v,d),a(v),m.performVisualTasks(v,f);var _=v.get("backgroundColor")||"transparent";p.setBackgroundColor(_);var S=v.get("darkMode");S!=null&&S!=="auto"&&p.setDarkMode(S),e0(this,v,d,f,h),Qr.trigger("afterupdate",v,d)}},updateTransform:function(f){var h=this,v=h._model,d=h._api;if(v){v.setUpdatePayload(f);var p=[];v.eachComponent(function(m,_){if(m!==Ha){var S=h.getViewOfComponentModel(_);if(S&&S.__alive)if(S.updateTransform){var x=S.updateTransform(_,v,d,f);x&&x.update&&p.push(S)}else p.push(S)}});var g=re();v.eachSeries(function(m){var _=h._chartsMap[m.__viewId],S=m.pipelineContext;if(_.updateTransform&&!S.progressiveRender){var x=_.updateTransform(m,v,d,f);x&&x.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),h._scheduler.performVisualTasks(v,f,{setDirty:!0,dirtyMap:g}),bv(h,v,d,f,{},g),Qr.trigger("afterupdate",v,d)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),et.markUpdateMethod(f,"updateView"),a(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),e0(this,h,this._api,f,{}),Qr.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,v=this._model;v&&(v.setUpdatePayload(f),v.eachSeries(function(d){d.getData().clearAllVisual()}),et.markUpdateMethod(f,"updateVisual"),a(v),this._scheduler.performVisualTasks(v,f,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,f)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,f)}),Qr.trigger("afterupdate",v,this._api))},updateLayout:function(f){Dn.update.call(this,f)}};function t(f,h,v,d,p){if(f._disposed){kr(f.id);return}for(var g=f._model,m=f._coordSysMgr.getCoordinateSystems(),_,S=Vs(g,v),x=0;x<m.length;x++){var b=m[x];if(b[h]&&(_=b[h](g,S,d,p))!=null)return _}process.env.NODE_ENV!=="production"&&lt("No coordinate system that supports "+h+" found by the given finder.")}xv=t,Qy=function(f,h){var v=f._chartsMap,d=f._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Jy=function(f,h){var v=this,d=this.getModel(),p=f.type,g=f.escapeConnect,m=wv[p],_=(m.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&Oa(_[0]);this[Pt]=!0,gl(this);var b=[f],w=!1;f.batch&&(w=!0,b=K(f.batch,function(R){return R=me(U({},R),f),R.batch=null,R}));var C=[],E,T=[],D=m.nonRefinedEventType,A=zm(f),I=wC(f);if(I&&SC(this._api),k(b,function(R){var P=m.action(R,d,v._api);if(m.refineEvent?T.push(P):E=P,E=E||U({},R),E.type=D,C.push(E),I){var O=rm(f),G=O.queryOptionMap,F=O.mainTypeSpecified,B=F?G.keys()[0]:"series";Sv(v,S,R,B),Jr(v)}else A?(Sv(v,S,R,"series"),Jr(v)):x&&Sv(v,S,R,x.main,x.sub)}),S!=="none"&&!I&&!A&&!x)try{this[Yt]?(Oo(this),Dn.update.call(this,f),this[Yt]=null):Dn[S].call(this,f)}catch(R){throw this[Pt]=!1,R}if(w?E={type:D,escapeConnect:g,batch:C}:E=C[0],this[Pt]=!1,!h){var M=void 0;if(m.refineEvent){var L=m.refineEvent(T,f,d,this._api).eventContent;Z(de(L)),M=me({type:m.refinedEventType},L),M.fromAction=f.type,M.fromActionPayload=f,M.escapeConnect=!0}var N=this._messageCenter;N.trigger(E.type,E),M&&N.trigger(M.type,M)}},dl=function(f){for(var h=this._pendingActions;h.length;){var v=h.shift();Jy.call(this,v,f)}},pl=function(f){!f&&this.trigger("updated")},BE=function(f,h){f.on("rendered",function(v){h.trigger("rendered",v),f.animation.isFinished()&&!h[Yt]&&!h._scheduler.unfinished&&!h._pendingActions.length?h.trigger("finished"):f.refresh()})},zE=function(f,h){f.on("mouseover",function(v){var d=v.target,p=Lo(d,oi);p&&(NG(p,v,h._api),Jr(h))}).on("mouseout",function(v){var d=v.target,p=Lo(d,oi);p&&(PG(p,v,h._api),Jr(h))}).on("click",function(v){var d=v.target,p=Lo(d,function(_){return be(_).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=be(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function a(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function n(f){var h=[],v=[],d=!1;if(f.eachComponent(function(_,S){var x=S.get("zlevel")||0,b=S.get("z")||0,w=S.getZLevelKey();d=d||!!w,(_==="series"?v:h).push({zlevel:x,z:b,idx:S.componentIndex,type:_,key:w})}),d){var p=h.concat(v),g,m;Lf(p,function(_,S){return _.zlevel===S.zlevel?_.z-S.z:_.zlevel-S.zlevel}),k(p,function(_){var S=f.getComponent(_.type,_.idx),x=_.zlevel,b=_.key;g!=null&&(x=Math.max(g,x)),b?(x===g&&b!==m&&x++,m=b):m&&(x===g&&x++,m=""),g=x,S.setZLevel(x)})}}e0=function(f,h,v,d,p){n(h),GE(f,h,v,d,p),k(f._chartsViews,function(g){g.__alive=!1}),bv(f,h,v,d,p),k(f._chartsViews,function(g){g.__alive||g.remove(h,v)})},GE=function(f,h,v,d,p,g){k(g||f._componentsViews,function(m){var _=m.__model;u(_,m),m.render(_,h,v,d),l(_,m),c(_,m)})},bv=function(f,h,v,d,p,g){var m=f._scheduler;p=U(p||{},{updatedSeries:h.getSeries()}),Qr.trigger("series:beforeupdate",h,v,p);var _=!1;h.eachSeries(function(S){var x=f._chartsMap[S.__viewId];x.__alive=!0;var b=x.renderTask;m.updatePayload(b,d),u(S,x),g&&g.get(S.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(_=!0),x.group.silent=!!S.get("silent"),s(S,x),xC(S)}),m.unfinished=_||m.unfinished,Qr.trigger("series:layoutlabels",h,v,p),Qr.trigger("series:transition",h,v,p),h.eachSeries(function(S){var x=f._chartsMap[S.__viewId];l(S,x),c(S,x)}),o(f,h),Qr.trigger("series:afterupdate",h,v,p)},Jr=function(f){f[qy]=!0,f.getZr().wakeUp()},gl=function(f){f[_v]=(f[_v]+1)%1e6},$E=function(f){f[qy]&&(f.getZr().storage.traverse(function(h){Zs(h)||i(h)}),f[qy]=!1)};function i(f){for(var h=[],v=f.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}f.selected&&f.states.select&&h.push("select"),f.hoverState===Sh&&f.states.emphasis?h.push("emphasis"):f.hoverState===wu&&f.states.blur&&h.push("blur"),f.useStates(h)}function o(f,h){var v=f._zr;if(v.painter.type==="canvas"){var d=v.storage,p=0;d.traverse(function(m){m.isGroup||p++});var g=p>oe(h.get("hoverLayerThreshold"),zT.hoverLayerThreshold)&&!Ve.node&&!Ve.worker;(f._usingTHL||g)&&(h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var _=f._chartsMap[m.__viewId];_.__alive&&_.eachRendered(function(S){var x=S.states.emphasis;x&&x.hoverLayer!==qs&&(x.hoverLayer=g?UC:$C)})}}),f._usingTHL=g)}}function s(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(f,h){if(!f.preventAutoZ){var v=yo(f);h.eachRendered(function(d){return Gh(d,v.z,v.zlevel),!0})}}function u(f,h){h.eachRendered(function(v){if(!Zs(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,h){var v=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Zs(m))return;if(m instanceof Re&&FG(m),m.__dirty){var _=m.prevStates;_&&m.useStates(_)}if(d){m.stateTransition=g;var S=m.getTextContent(),x=m.getTextGuideLine();S&&(S.stateTransition=g),x&&(x.stateTransition=g)}m.__dirty&&i(m)}})}FE=function(f){return new((function(h){z(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){xn(d,p),Jr(f)},v.prototype.leaveEmphasis=function(d,p){bn(d,p),Jr(f)},v.prototype.enterBlur=function(d){gC(d),Jr(f)},v.prototype.leaveBlur=function(d){Pm(d),Jr(f)},v.prototype.enterSelect=function(d){mC(d),Jr(f)},v.prototype.leaveSelect=function(d){yC(d),Jr(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v.prototype.getECUpdateCycleVersion=function(){return f[_v]},v.prototype.usingTHL=function(){return f._usingTHL},v})(iC))(f)},HE=function(f){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[Ky]=d}}k(Cv,function(v,d){f._messageCenter.on(d,function(p){if(YE[f.group]&&f[Ky]!==LE){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];k(Ju,function(_){_!==f&&_.group===f.group&&m.push(_)}),h(m,LE),k(m,function(_){_[Ky]!==L$&&_.dispatchAction(g)}),h(m,N$)}})})}})(),e})(zr),t0=UE.prototype;t0.on=NE("on"),t0.off=NE("off"),t0.one=function(r,e,t){var a=this;Pa("ECharts#one is deprecated.");function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)}this.on.call(this,r,n,t)};var P$=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function kr(r){process.env.NODE_ENV!=="production"&&lt("Instance "+r+" has been disposed")}var wv={},Cv={},r0={},a0=[],n0=[],Tv=[],WE={},i0={},Ju={},YE={},R$=+new Date-0,o0="_echarts_instance_";function O$(r,e,t){var a=!(t&&t.ssr);if(a){if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Initialize failed: invalid dom.");var n=V$(r);if(n)return process.env.NODE_ENV!=="production"&&lt("There is a chart instance already initialized on the dom."),n;process.env.NODE_ENV!=="production"&&Li(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!t||t.width==null)||!r.clientHeight&&(!t||t.height==null))&&lt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new UE(r,e,t);return i.id="ec_"+R$++,Ju[i.id]=i,a&&xw(r,o0,i.id),HE(i),Qr.trigger("afterinit",i),i}function V$(r){return Ju[b6(r,o0)]}function XE(r,e){WE[r]=e}function ZE(r){Ee(n0,r)<0&&n0.push(r)}function qE(r,e){l0(a0,r,e,T$)}function B$(r){s0("afterinit",r)}function z$(r){s0("afterupdate",r)}function s0(r,e){Qr.on(r,e)}function Wa(r,e,t){var a,n,i,o,s;ce(e)&&(t=e,e=""),de(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(a=r,n=e);function l(c){return c.toLowerCase()}n=l(n||a);var u=i?l(a):n;wv[a]||(Z(IE.test(a)&&IE.test(n)),i&&Z(n!==a),wv[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:t,refineEvent:i},r0[n]=1,i&&s&&(r0[u]=1),process.env.NODE_ENV!=="production"&&Cv[u]&&Be(u+' must not be shared; use "refineEvent" if you intend to share an event name.'),Cv[u]=a)}function G$(r,e){rl.register(r,e)}function F$(r,e){l0(Tv,r,e,kE,"layout",!0)}function Vo(r,e){l0(Tv,r,e,AE,"visual",!0)}var KE=[];function l0(r,e,t,a,n,i){if((ce(e)||de(e))&&(t=e,e=a),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");k(r,function(s){Z(s.__raw!==t)})}if(!(Ee(KE,t)>=0)){KE.push(t);var o=j2.wrapStageHandler(t,n);o.__prio=e,o.__raw=t,r.push(o),process.env.NODE_ENV!=="production"&&i&&Z(!o.dirtyOnOverallProgress,"dirtyOnOverallProgress is not allowed in "+n+" stage; otherwise progressive rendering is disabled on all series.")}}function jE(r,e){i0[r]=e}function H$(r,e,t){var a=F7("registerMap");a&&a(r,e,t)}var $$=jH;Vo(Zy,w7),Vo(yv,C7),Vo(yv,T7),Vo(Zy,V7),Vo(yv,B7),Vo(ME,y$),ZE(a2),qE(b$,AH),jE("default",E7),Wa({type:lo,event:lo,update:lo},pt),Wa({type:xh,event:xh,update:xh},pt),Wa({type:bh,event:Im,update:bh,action:pt,refineEvent:u0,publishNonRefinedEvent:!0}),Wa({type:Mm,event:Im,update:Mm,action:pt,refineEvent:u0,publishNonRefinedEvent:!0}),Wa({type:wh,event:Im,update:wh,action:pt,refineEvent:u0,publishNonRefinedEvent:!0});function u0(r,e,t,a){return{eventContent:{selected:OG(t),isFromClick:e.isFromClick||!1}}}XE("default",{}),XE("dark",aE);var QE=[],U$={registerPreprocessor:ZE,registerProcessor:qE,registerPostInit:B$,registerPostUpdate:z$,registerUpdateLifecycle:s0,registerAction:Wa,registerCoordinateSystem:G$,registerLayout:F$,registerVisual:Vo,registerTransform:$$,registerLoading:jE,registerMap:H$,registerImpl:G7,PRIORITY:I$,ComponentModel:Ne,ComponentView:st,SeriesModel:nt,ChartView:et,registerComponentModel:function(r){Ne.registerClass(r)},registerComponentView:function(r){st.registerClass(r)},registerSeriesModel:function(r){nt.registerClass(r)},registerChartView:function(r){et.registerClass(r)},registerCustomSeries:function(r,e){H7(r,e)},registerSubTypeDefaulter:function(r,e){Ne.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){K8(r,e)}};function Ae(r){if(Y(r)){k(r,function(e){Ae(e)});return}Ee(QE,r)>=0||(QE.push(r),ce(r)&&(r={install:r}),r.install(U$))}function ec(r){return r==null?0:r.length||1}function JE(r){return r}var kn=(function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||JE,this._newKeyGetter=n||JE,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=ec(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],f=ec(u),h=ec(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var v=0;v<f;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=ec(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),!!t){var l=t[s],u=ec(l);u===0?(t[s]=o,i&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),W$=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function Y$(r,e){var t={},a=t.encode={},n=re(),i=[],o=[],s={};k(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){process.env.NODE_ENV!=="production"&&Z(Dm.get(d)==null);var p=v.coordDimIndex;c0(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),X$(v.type)&&(i[0]=h),c0(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}Dm.each(function(g,m){var _=c0(a,m),S=v.otherDims[m];S!=null&&S!==!1&&(_[S]=v.name)})});var l=[],u={};n.each(function(h,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=K(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var f=a.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new W$(s,e),t}function c0(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Ev(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function X$(r){return!(r==="ordinal"||r==="time")}var Dv=(function(){function r(e){this.otherDims={},e!=null&&U(this,e)}return r})(),Z$=De(),q$={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},eD=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=rD(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return oe(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=s2(this.source),a=!aD(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=t?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!f||!f.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=q$[u]||"f",c&&(n+=c.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function tD(r){return r instanceof eD}function f0(r){for(var e=re(),t=0;t<(r||[]).length;t++){var a=r[t],n=de(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function rD(r){var e=Z$(r);return e.dimNameMap||(e.dimNameMap=f0(r.dimensionsDefine))}function aD(r){return r>30}var tc=de,vi=K,K$=typeof Int32Array>"u"?Array:Int32Array,j$="e\0\0",nD=-1,Q$=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],J$=["_approximateExtent"],iD,kv,rc,ml,h0,ac,v0,mr=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;tD(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var f=a[c],h=Q(f)?new Dv({name:f}):f instanceof Dv?f:new Dv(f),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),process.env.NODE_ENV!=="production"&&Z(n||h.storeDimIndex>=0),n&&(h.storeDimIndex=c),d.itemName===0&&(this._nameDimIdx=h.storeDimIndex),d.itemId===0&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=re();k(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(a!=null)return a;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Ge(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Unknown dimension "+e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(t==null)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var n=this,i;if(e instanceof Oy&&(i=e),!i){var o=this.dimensions,s=My(e)||er(e)?new c2(e,o.length):e;i=new Oy;var l=vi(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Y$(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t&&t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=t[l],o&&v0(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==_n&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Pr;if(l&&!n.pure)for(var u=[],c=e;c<t;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&u6(f)&&(this.hasItemOption=!0),f){var h=f.name;i[c]==null&&h!=null&&(i[c]=At(h,null));var v=f.id;o[c]==null&&v!=null&&(o[c]=At(v,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)v0(this,c);iD(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){tc(e)?U(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=rc(this,this._nameDimIdx,t)),a==null&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return kv(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return Y(e)?n.getValues(vi(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("Do not supported yet");var n=a&&a[t];return n==null||isNaN(n)?nD:n},r.prototype.each=function(e,t,a){ce(e)&&(a=t,t=e,e=[]);var n=a||this,i=vi(ml(e),this._getStoreDimIndex,this);this._store.each(i,n?ie(t,n):t)},r.prototype.filterSelf=function(e,t,a){ce(e)&&(a=t,t=e,e=[]);var n=a||this,i=vi(ml(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?ie(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=Oe(e);return k(n,function(i){var o=t._getStoreDimIndex(i);a[o]=e[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){ce(e)&&(a=t,t=e,e=[]),a=a||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=vi(ml(e),this._getStoreDimIndex,this),s=ac(this);return s._store=this._store.map(o,i?ie(t,i):t),s},r.prototype.modify=function(e,t,a,n){var i=this,o=a||n||this;process.env.NODE_ENV!=="production"&&k(ml(e),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=vi(ml(e),this._getStoreDimIndex,this);this._store.modify(s,o?ie(t,o):t)},r.prototype.downSample=function(e,t,a,n){var i=ac(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.minmaxDownSample=function(e,t){var a=ac(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),a},r.prototype.lttbDownSample=function(e,t){var a=ac(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new ze(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new kn(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return kv(e,a)},function(a){return kv(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},tc(e)?U(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],n=a&&a[t];return n??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),Y(i)?i=i.slice():tc(i)&&(i=U({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,tc(t)?U(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){tc(e)?U(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?U(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;Em(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){k(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:vi(this.dimensions,this._getDimInfo,this),this.hostModel)),h0(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];ce(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(Zp(arguments)))})},r.internalField=(function(){iD=function(e){var t=e._invertedIndicesMap;k(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new K$(o.categories.length);for(var l=0;l<a.length;l++)a[l]=nD;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},rc=function(e,t,a){return At(e._getCategory(t,a),null)},kv=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=rc(e,e._idDimIdx,t)),a==null&&(a=j$+t),a},ml=function(e){return Y(e)||(e=e!=null?[e]:[]),e},ac=function(e){var t=new r(e._schema?e._schema:vi(e.dimensions,e._getDimInfo,e),e.hostModel);return h0(t,e),t},h0=function(e,t){k(Q$.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,k(J$,function(a){e[a]=he(t[a])}),e._calculationInfo=U({},t._calculationInfo)},v0=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=n[t];if(s==null&&i!=null&&(a[t]=s=rc(e,i,t)),l==null&&o!=null&&(n[t]=l=rc(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[t]=l}}})(),r})();function nc(r,e){My(r)||(r=Ly(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=re(),i=[],o=eU(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&aD(o),l=a===r.dimensionsDefine,u=l?rD(r):f0(a),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var f=re(c),h=new C2(o),v=0;v<h.length;v++)h[v]=-1;function d(T){var D=h[T];if(D<0){var A=a[T],I=de(A)?A:{name:A},M=new Dv,L=I.name;L!=null&&u.get(L)!=null&&(M.name=M.displayName=L),I.type!=null&&(M.type=I.type),I.displayName!=null&&(M.displayName=I.displayName);var N=i.length;return h[T]=N,M.storeDimIndex=T,i.push(M),M}return i[D]}if(!s)for(var v=0;v<o;v++)d(v);f.each(function(T,D){var A=tt(T).slice();if(A.length===1&&!Q(A[0])&&A[0]<0){f.set(D,!1);return}var I=f.set(D,[]);k(A,function(M,L){var N=Q(M)?u.get(M):M;N!=null&&N<o&&(I[L]=N,g(d(N),D,L))})});var p=0;k(t,function(T){var D,A,I,M;if(Q(T))D=T,M={};else{M=T,D=M.name;var L=M.ordinalMeta;M.ordinalMeta=null,M=U({},M),M.ordinalMeta=L,A=M.dimsDef,I=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var N=f.get(D);if(N!==!1){if(N=tt(N),!N.length)for(var R=0;R<(A&&A.length||1);R++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&N.push(p++)}k(N,function(P,O){var G=d(P);if(l&&M.type!=null&&(G.type=M.type),g(me(G,M),D,O),G.name==null&&A){var F=A[O];!de(F)&&(F={name:F}),G.name=G.displayName=F.name,G.defaultTooltip=F.defaultTooltip}I&&me(G.otherDims,I)})}});function g(T,D,A){Dm.get(D)!=null?T.otherDims[D]=A:(T.coordDim=D,T.coordDimIndex=A,n.set(D,!0))}var m=e.generateCoord,_=e.generateCoordCount,S=_!=null;_=m?_||1:0;var x=m||"value";function b(T){T.name==null&&(T.name=T.coordDim)}if(s)k(i,function(T){b(T)}),i.sort(function(T,D){return T.storeDimIndex-D.storeDimIndex});else for(var w=0;w<o;w++){var C=d(w),E=C.coordDim;E==null&&(C.coordDim=tU(x,n,S),C.coordDimIndex=0,(!m||_<=0)&&(C.isExtraCoord=!0),_--),b(C),C.type==null&&(HT(r,w)===jt.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return uh(i,function(T){return T.name},function(T,D){D>0&&(T.name=T.name+(D-1))}),new eD({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function eU(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return k(e,function(i){var o;de(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function tU(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var rU=(function(){function r(e){this.coordSysDims=[],this.axisMap=re(),this.categoryAxisMap=re(),this.coordSysName=e}return r})();function aU(r){var e=r.get("coordinateSystem"),t=new rU(e),a=nU[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var nU={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",mt).models[0],i=r.getReferringComponents("yAxis",mt).models[0];if(process.env.NODE_ENV!=="production"){if(!n)throw new Error('xAxis "'+Ft(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+Ft(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),yl(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),yl(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",mt).models[0];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],t.set("single",n),yl(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",mt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),yl(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),yl(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();k(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];t.set(c,u),yl(u)&&(a.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,a){var n=r.getReferringComponents("matrix",mt).models[0];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("matrix coordinate system should be specified.");e.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");t.set("x",i),t.set("y",o),a.set("x",i),a.set("y",o)}};function yl(r){return r.get("type")==="category"}function iU(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;oU(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,c,f,h,v=!0;function d(x){return x.type!=="ordinal"&&x.type!=="time"}if(k(i,function(x,b){Q(x)&&(i[b]=x={name:x}),d(x)||(v=!1)}),k(i,function(x,b){l&&!x.isExtraCoord&&(!a&&!u&&x.ordinalMeta&&(u=x),!c&&d(x)&&(!v||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(c=x))}),c&&!a&&!u&&(a=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,g=c.type,m=0;k(i,function(x){x.coordDim===p&&m++});var _={name:f,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},S={name:h,coordDim:h,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(_.storeDimIndex=s.ensureCalculationDimension(h,g),S.storeDimIndex=s.ensureCalculationDimension(f,g)),o.appendCalculationDimension(_),o.appendCalculationDimension(S)):(i.push(_),i.push(S))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:f}}function oU(r){return!tD(r.schema)}function di(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function oD(r,e){return di(r,e)?r.getCalculationInfo("stackResultDimension"):e}function sU(r,e){var t=r.get("coordinateSystem"),a=rl.get(t),n;return e&&e.coordSysDims&&(n=K(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Ev(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function lU(r,e,t){var a,n;return t&&k(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function An(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Ly(r)):(n=a.getSource(),i=n.sourceFormat===Pr);var o=aU(e),s=sU(e,o),l=t.useEncodeDefaulter,u=ce(l)?l:l?Me(FT,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=nc(n,c),h=lU(f.dimensions,t.createInvertedIndices,o),v=i?null:a.getSharedDataStore(f),d=iU(e,{schema:f,store:v}),p=new mr(f,e);p.setCalculationInfo(d);var g=h!=null&&uU(n)?function(m,_,S,x){return x===h?S:this.defaultDimValueGetter(m,_,S,x)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,g),p}function uU(r){if(r.sourceFormat===Pr){var e=cU(r.data||[]);return!Y(Rs(e))}}function cU(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var pa=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();ch(pa);var fU=0,ic=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++fU,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&K(a,hU);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!Q(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=re(this.categories))},r})();function hU(r){return de(r)&&r.value!=null?r.value:r+""}var Ar=0,oc=1,vU={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},sD=Oe(vU),Mn=2,lD=3;function d0(r,e,t){var a;r=r||{};var n=St();if(n){var i=n.createBreakScaleMapper(e,t);i.hasBreaks()&&(k(sD,function(o){i[o]&&(r[o]=ie(i[o],i))}),a=i)}return a==null&&m0(r,t),{brk:a,mapper:r}}function p0(r,e){k(sD,function(t){r[t]=e[t]})}function g0(r,e){r.freeze=pt,process.env.NODE_ENV!=="production"&&(r.freeze=function(){e.freeze()})}function sc(r){return r.getExtentUnsafe(Ar,Mn)}function Av(r,e){return r.getExtentUnsafe(oc,e)||r.getExtentUnsafe(Ar,e)}function dU(r){var e=Av(r,lD);return e[1]-e[0]}function Mv(r){var e=r.getExtentUnsafe(Ar,lD);return e[1]-e[0]}function m0(r,e){var t=r||{},a=[];return t._extents=a,a[Ar]=e?e.slice():qt(),U(t,pU),t}var pU={needTransform:function(){return!1},normalize:function(r){var e=this._extents[oc]||this._extents[Ar];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[oc]||this._extents[Ar];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=Av(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[Ar].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){process.env.NODE_ENV!=="production"&&Z(!this._frozen),uD(this._extents,Ar,r,e)},setExtent2:function(r,e,t){process.env.NODE_ENV!=="production"&&Z(!this._frozen);var a=this._extents;a[r]||(a[r]=a[Ar].slice()),uD(a,r,e,t)},freeze:function(){process.env.NODE_ENV!=="production"&&(this._frozen=!0)}};function uD(r,e,t,a){ji(t,a)?(r[e][0]=t,r[e][1]=a):process.env.NODE_ENV!=="production"&&t!=null&&a!=null&&t<=a&&Be("Invalid setExtent call - start: "+t+", end: "+a)}function cD(r){return Iv(r)||_l(r)}function Iv(r){return r.type==="interval"}function lc(r){return r.type==="time"}function _l(r){return r.type==="log"}function or(r){return r.type==="ordinal"}function gU(r){var e=Kg(r),t=Yi(10,e),a=La(r/t);return a?a===2?a=3:a===3?a=5:a*=2:a=1,He(a*t,-e)}function Bo(r){return Na(r)+2}function Lv(r,e){return yu(r)/yu(e)}function y0(r,e,t){var a=t&&t.lookup;if(a){for(var n=0;n<a.from.length;n++)if(r===a.from[n])return a.to[n]}return Yi(e,r)}function fD(r,e,t){var a=r.slice();if(a[0]===a[1]){var n=t&&t.ctnShp;if(a[0]!==0){var i=dt(a[0]);e[1]||(a[1]+=i/2),a[0]-=i/2}else n&&(a[0]=-1),a[1]=1}return(!gn(a[0])||!gn(a[1]))&&(a[0]=0,a[1]=1),a[1]<a[0]&&a.reverse(),a}function mU(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function Nv(r,e){return r=r||e,La(Ie(r,1))}function hD(r,e,t){var a=sc(r),n=a[0],i=r.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&i/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==a[0]&&l(a[0],!0,!0);for(var s=n;s<=a[1];s+=o)l(s,!1,s===a[0]||s===a[1]);s-o!==a[1]&&l(a[1],!0,!0);function l(u,c,f){t({value:u,offInterval:c},f)}}var uc=(function(r){z(e,r);function e(t){var a=r.call(this)||this;a.type="ordinal",a.parse=e.parse,p0(a,e.decoratedMethods);var n=t.ordinalMeta;n||(n=new ic({})),Y(n)&&(n=new ic({categories:K(n,function(o){return de(o)?o.value:o})})),a._ordinalMeta=n;var i=d0(null,null,t.extent||[0,n.categories.length-1]);return a._mapper=i.mapper,g0(a,i.mapper),a}return e.parse=function(t){return t==null?t=NaN:Q(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=La(t),t},e.prototype.getTicks=function(){var t=[];return hD(this,0,function(a){t.push(a)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Ke(s,a.length);o<l;++o){var u=n[o]=a[o];i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;n[o]=c,i[c]=o}},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){var t=sc(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(La(this._mapper.scale(t)))},transformIn:function(t,a){return this._mapper.transformIn(this._getTickNumber(t),a)},transformOut:function(t,a){return this.getRawOrdinalNumber(this._mapper.transformOut(t,a))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,a){return this._mapper.getExtentUnsafe(t,a)},setExtent:function(t,a){return this._mapper.setExtent(t,a)},setExtent2:function(t,a,n){return this._mapper.setExtent2(t,a,n)}},e})(pa);pa.registerClass(uc);function _0(r,e,t,a){for(var n=r.getTicks({expandToNicedExtent:!0}),i=[],o=r.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var c=0,f=[],h=l.value-u.value,v=h/e,d=Bo(v);c<e-1;){var p=He(u.value+(c+1)*v,d);p>o[0]&&p<o[1]&&f.push(p),c++}var g=St();g&&g.pruneTicksByBreak("auto",f,t,function(m){return m},a,o),i.push(f)}}return i}var Ya=(function(r){z(e,r);function e(t){var a=r.call(this)||this;a.type="interval",a.parse=e.parse,t=t||{};var n=fT(a,t),i=d0(a,n,null);return a.brk=i.brk,a._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},a}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return he(this._cfg)},e.prototype.setConfig=function(t){var a=sc(this);process.env.NODE_ENV!=="production"&&(Z(t.interval!=null),t.intervalCount!=null&&Z(t.intervalCount>=-1&&t.intervalPrecision!=null&&!xo(this)),t.niceExtent!=null&&(Z(isFinite(t.niceExtent[0])&&isFinite(t.niceExtent[1])),Z(a[0]<=t.niceExtent[0]&&t.niceExtent[1]<=a[1]),Z(He(t.niceExtent[0]-t.niceExtent[1],Na(t.interval))<=t.interval))),this._cfg=t=he(t),t.niceExtent==null&&(t.niceExtent=a.slice()),t.intervalPrecision==null&&(t.intervalPrecision=Bo(t.interval))},e.prototype.getTicks=function(t){t=t||{};var a=this._cfg,n=a.interval,i=sc(this),o=a.niceExtent,s=a.intervalPrecision,l=St(),u=this.brk,c=l&&u,f=[];if(!n)return f;if(t.breakTicks==="only_break"&&c)return l.addBreaksToTicks(f,u.breaks,i),f;process.env.NODE_ENV!=="production"&&Z(o!=null);var h=3e3;i[0]<o[0]&&f.push({value:t.expandToNicedExtent?He(o[0]-n,s):i[0]});for(var v=function(S,x){return La((x-S)/n)},d=a.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=Ke(p,o[1]),g===d&&(p=o[1])}if(f.push({value:p}),p=He(p+n,s),u){var m=u.calcNiceTickMultiple(p,v);m>=0&&(p=He(p+m*n,s))}if(f.length>0&&p===f[f.length-1].value)break;if(f.length>h)return process.env.NODE_ENV!=="production"&&lt('Exceed safe limit in IntervalScale["getTicks"].'),[]}var _=f.length?f[f.length-1].value:o[1];return i[1]>_&&f.push({value:t.expandToNicedExtent?He(_+n,s):i[1]}),c&&l.pruneTicksByBreak(t.pruneByBreak,f,u.breaks,function(S){return S.value},a.interval,i),c&&t.breakTicks!=="none"&&l.addBreaksToTicks(f,u.breaks,i),f},e.prototype.getMinorTicks=function(t){return _0(this,t,Yh(this),this._cfg.interval)},e.prototype.getLabel=function(t,a){if(t==null)return"";var n=a&&a.precision;n==null?n=Na(t.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var i=He(t.value,n,!0);return xT(i)},e.type="interval",e})(pa);pa.registerClass(Ya);var yU=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},vD=(function(r){z(e,r);function e(t){var a=r.call(this)||this;a.type="time",a.parse=e.parse,a._locale=t.locale,a._useUTC=t.useUTC,a._interval=0;var n=fT(a,t),i=d0(a,n,null);return a.brk=i.brk,a}return e.prototype.getLabel=function(t){return qh(t.value,vT[YF(Vu(this._minLevelUnit))]||vT.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,a,n){return XF(t,a,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var a=this._interval,n=sc(this),i=St(),o=this.brk,s=i&&o,l=[];if(!a)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return St().addBreaksToTicks(l,o.breaks,n),l;l=TU(this._minLevelUnit,this._approxInterval,u,n,Mv(this),o);var c=Or.length-1,f=0;return k(l,function(h){h.time&&(c=Math.min(c,Ee(Or,h.time.upperTimeUnit)),f=Math.max(f,h.time.level))}),s&&St().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(h){return h.value},this._approxInterval,n),s&&t.breakTicks!=="none"&&St().addBreaksToTicks(l,o.breaks,n,function(h){for(var v=Math.max(Ee(Or,tl(h.vmin,u)),Ee(Or,tl(h.vmax,u))),d=0,p=0;p<Or.length;p++)if(!dD(Or[p],h.vmin,h.vmax,u)){d=p;break}var g=Math.min(d,c),m=Math.max(g,v);return{level:f,lowerTimeUnit:Or[m],upperTimeUnit:Or[g]}}),l},e.prototype.getMinorTicks=function(t){return _0(this,t,Yh(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return Ge(t)?Math.round(t):+Zi(t)},e.type="time",e})(pa),Pv=[["second",sy],["minute",ly],["hour",Ou],["quarter-day",Ou*6],["half-day",Ou*12],["day",qr*1.2],["half-week",qr*3.5],["week",qr*7],["month",qr*31],["quarter",qr*95],["half-year",hT/2],["year",hT]];function dD(r,e,t,a){return uy(new Date(e),r,a).getTime()===uy(new Date(t),r,a).getTime()}function _U(r,e){return r/=qr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function SU(r){var e=30*qr;return r/=e,r>6?6:r>3?3:r>2?2:1}function xU(r){return r/=Ou,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function pD(r,e){return r/=e?ly:sy,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function bU(r){return Ie(jg(r,!0),1)}function wU(r,e,t){var a=Math.max(0,Ee(Or,e)-1);return uy(new Date(r),Or[a],t).getTime()}function CU(r,e){var t=new Date(0);t[r](1);var a=t.getTime();t[r](1+e);var n=t.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function TU(r,e,t,a,n,i){var o=3e3,s=HF,l=0;function u(R,P,O,G,F,B,$){for(var j=CU(F,R),W=P,V=new Date(W);W<O&&W<=a[1];){if($.push({value:W}),l++>o){process.env.NODE_ENV!=="production"&&lt('Exceed safe limit in TimeScale["getTicks"].');break}if(V[F](V[G]()+R),W=V.getTime(),i){var q=i.calcNiceTickMultiple(W,j);q>0&&(V[F](V[G]()+q*R),W=V.getTime())}}$.push({value:W,notAdd:W>a[1]})}function c(R,P,O){var G=[],F=!P.length;if(!dD(Vu(R),a[0],a[1],t)){F&&(P=[{value:wU(a[0],R,t)},{value:a[1]}]);for(var B=0;B<P.length-1;B++){var $=P[B].value,j=P[B+1].value;if($!==j){var W=void 0,V=void 0,q=void 0,Ce=!1;switch(R){case"year":W=Math.max(1,Math.round(e/qr/365)),V=dT(t),q=ZF(t);break;case"half-year":case"quarter":case"month":W=SU(e),V=cy(t),q=pT(t);break;case"week":case"half-week":case"day":W=_U(e),V=fy(t),q=gT(t),Ce=!0;break;case"half-day":case"quarter-day":case"hour":W=xU(e),V=hy(t),q=mT(t);break;case"minute":W=pD(e,!0),V=vy(t),q=yT(t);break;case"second":W=pD(e,!1),V=dy(t),q=_T(t);break;case"millisecond":W=bU(e),V=py(t),q=ST(t);break}j>=a[0]&&$<=a[1]&&u(W,$,j,V,q,Ce,G),R==="year"&&O.length>1&&B===0&&O.unshift({value:O[0].value-W})}}for(var B=0;B<G.length;B++)O.push(G[B])}}for(var f=[],h=[],v=0,d=0,p=0;p<s.length;++p){var g=Vu(s[p]);if(WF(s[p])){c(s[p],f[f.length-1]||[],h);var m=s[p+1]?Vu(s[p+1]):null;if(g!==m){if(h.length){d=v,h.sort(function(R,P){return R.value-P.value});for(var _=[],S=0;S<h.length;++S){var x=h[S].value;(S===0||h[S-1].value!==x)&&(_.push(h[S]),x>=a[0]&&x<=a[1]&&v++)}var b=n/e;if(v>b*1.5&&d>b/1.5||(f.push(_),v>b||r===s[p]))break}h=[]}}}for(var w=Ze(K(f,function(R){return Ze(R,function(P){return P.value>=a[0]&&P.value<=a[1]&&!P.notAdd})}),function(R){return R.length>0}),C=w.length-1,E=[],p=0;p<w.length;++p)for(var T=w[p],D=0;D<T.length;++D){var A=tl(T[D].value,t);E.push({value:T[D].value,time:{level:C-p,upperTimeUnit:A,lowerTimeUnit:A}})}uh(E,D6,null),E.sort(function(R,P){return R.value-P.value});var I=E[0],M=E[E.length-1],L=tl(a[0],t),N=tl(a[1],t);return(!I||I.value>a[0])&&E.unshift({value:a[0],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),(!M||M.value<a[1])&&E.push({value:a[1],time:{level:0,upperTimeUnit:N,lowerTimeUnit:N},notNice:!0}),E}var EU=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=qr,t[1]+=qr),t[1]===-1/0&&t[0]===1/0){var a=new Date;t[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),t[0]=t[1]-qr}r.setExtent(t[0],t[1]);var n=Nv(e.splitNumber,10),i=Mv(r)/n,o=e.minInterval,s=e.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=Pv.length,u=Math.min(yU(Pv,i,0,l),l-1),c=Pv[u][1],f=Pv[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:i,interval:c,minLevelUnit:f})};pa.registerClass(vD);var Rv=0,Ov=1,DU=2,Vv=(function(r){z(e,r);function e(t){var a=r.call(this)||this;a.type="log",a.parse=Ya.parse,a.base=t.logBase||10;var n=[],i=[],o=a._lookup={from:n,to:i};n[Rv]=n[Ov]=i[Rv]=i[Ov]=NaN,p0(a,e.mapperMethods);var s=St(),l=t.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,a,{noNegative:!0},DU,u),a.powStub=new Ya({breakParsed:u.original}),a.intervalStub=new Ya({breakParsed:u.transformed}),g0(a,a.intervalStub),a}return e.prototype.getTicks=function(t){var a=this.base,n=this.powStub,i=St(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return K(o.getTicks(t||{}),function(c){var f=c.value,h=y0(f,a,u),v;if(i){var d=i.getTicksBreakOutwardTransform(this,c,Yh(n),this._lookup);d&&(v=d.vBreak,h=d.tickVal)}return{value:h,break:v}},this)},e.prototype.getMinorTicks=function(t){return _0(this,t,Yh(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,a){return this.intervalStub.getLabel(t,a)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(Lv(t,this.base))},scale:function(t){return y0(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,a){return t=Lv(t,this.base),a&&a.depth===Mn?t:this.intervalStub.transformIn(t,a)},transformOut:function(t,a){var n=a?a.depth:null;return gD.depth=n,mD.lookup=this._lookup,y0(n===Mn?t:this.intervalStub.transformOut(t,gD),this.base,mD)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,a){this.setExtent2(Ar,t,a)},setExtent2:function(t,a,n){if(!(!ji(a,n)||a<=0||n<=0)){var i=yD,o=yD;if(t===Ar){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(t,i[Rv]=a,i[Ov]=n);var l=this.base;this.intervalStub.setExtent2(t,o[Rv]=Lv(a,l),o[Ov]=Lv(n,l))}},getFilter:function(){return{g:0}},sanitize:function(t,a){return ji(a[0],a[1])&&Ir(t)&&t<=0&&(t=a[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,a){return a===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,a)}},e})(pa);pa.registerClass(Vv);var gD={},mD={},yD=[],_D={value:1,category:1,time:1,log:1},SD=De();function Bv(r){var e=r.get("type");return(e==null||!ae(_D,e)&&!pa.getClass(e))&&(e="value"),e}function cc(r,e,t){var a=St(),n;switch(a&&(n=xD(r,e,t)),e){case"category":return new uc({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:qt()});case"time":return new vD({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:n});case"log":return new Vv({logBase:r.get("logBase"),breakOption:n});case"value":return new Ya({breakOption:n});default:return new(pa.getClass(e)||Ya)({})}}function kU(r,e,t){var a=r.getExtentUnsafe(Ar,null),n=a[0],i=a[1];return ji(n,i)?n===e||i===e?MU:n<e&&i>e?AU:S0:S0}var AU=1,MU=2,S0=3;function IU(r){SD(r).noOnMyZero=!0}function LU(r){return SD(r).noOnMyZero}function fc(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=$F(e);return function(n,i){return r.scale.getFormattedLabel(n,i,t)}}else{if(Q(e))return function(n){var i=r.scale.getLabel(n),o=e.replace("{value}",i??"");return o};if(ce(e)){if(r.type==="category")return function(n,i){return e(zv(r,n),n.value-r.scale.getExtent()[0],null)};var a=St();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),e(zv(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function zv(r,e){var t=r.scale;return or(t)?t.getLabel(e):e.value}function x0(r){var e=r.get("interval");return e??"auto"}function NU(r){return r.type==="category"&&x0(r.getLabelModel())===0}function PU(r,e){var t={};return k(r.mapDimensionsAll(e),function(a){t[oD(r,a)]=!0}),Oe(t)}function Sl(r){return r==="middle"||r==="center"}function hc(r){return r.getShallow("show")}function xD(r,e,t){var a=r.get("breaks",!0);if(a!=null){if(!St()){process.env.NODE_ENV!=="production"&&Be('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!t||!RU(e)){if(process.env.NODE_ENV!=="production"){var n=r instanceof Ne?" "+r.type+"["+r.componentIndex+"]":"";Be("Axis"+n+" does not support break.")}return}return a}}function RU(r){return r!=="category"}function bD(r,e,t,a,n,i){var o=_l(r),s=o?r.intervalStub:r;if(s.setExtent(a[0],a[1]),o){var l=r.powStub,u={depth:Mn},c=r.transformOut(a[0],u),f=r.transformOut(a[1],u),h=mU(t,a);e[0]&&!h[0]&&(c=n[0]),e[1]&&!h[1]&&(f=n[1]),l.setExtent(c,f)}s.setConfig(i)}function xl(r,e){return or(r)?r.getRawOrdinalNumber(e.value):e.value}function vc(r,e){return or(r)&&!!e.get("boundaryGap")}var dc=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})(),OU=zs(),pc="|&",bl=De(),wD=-2,VU=-1,BU=De(),pi;process.env.NODE_ENV!=="production"&&(pi=function(r){Z(r&&r.model&&r.model.uid&&r.model.ecModel)});function Gv(r,e){var t=r.model,a=bl(ul(t.ecModel)).keyed,n=a&&a.get(e);return n&&n.get(t.uid)}function zU(r,e){return process.env.NODE_ENV!=="production"&&(Z(e!=null),pi(r)),TD(Gv(r,e))}function GU(r,e){process.env.NODE_ENV!=="production"&&pi(r);var t=[];return CD(r.model.ecModel,function(a){for(var n=0;n<e.length;n++)e[n]&&a.serByIdx[e[n].seriesIndex]&&t.push(TD(a))}),t}function CD(r,e){var t=bl(ul(r)).keyed;t&&t.each(function(a,n){a.each(function(i,o){e(i,n,o)})})}function TD(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function FU(r,e){process.env.NODE_ENV!=="production"&&pi(r);var t=r.model.ecModel,a=bl(ul(t)).axSer;a&&Fv(t,a.get(r.model.uid),e)}function zo(r,e,t){process.env.NODE_ENV!=="production"&&(Z(e!=null),pi(r));var a=Gv(r,e);a&&Fv(r.model.ecModel,a.sers,t)}function Fv(r,e,t){if(e)for(var a=0;a<e.length;a++){var n=e[a];r.isSeriesFiltered(n)||t(n)}}function HU(r,e){process.env.NODE_ENV!=="production"&&(Z(e!=null),pi(r));var t=Gv(r,e);if(!t||!t.sers.length)return 0;var a=0;return Fv(r.model.ecModel,t.sers,function(){a++}),a}function b0(r,e,t){process.env.NODE_ENV!=="production"&&Z(e!=null);var a=bl(ul(r)).keyed,n=a&&a.get(e);n&&n.each(function(i){process.env.NODE_ENV!=="production"&&Z(i.sers.length>0),t(i.axis)})}function ED(r,e){process.env.NODE_ENV!=="production"&&pi(r);var t=r.model,a=bl(ul(t.ecModel)).keys;a&&k(a.get(t.uid),function(n){if(process.env.NODE_ENV!=="production"){var i=Gv(r,n);Z(i&&i.sers.length>0)}e(n)})}function $U(r){var e=BU(lE(r)),t=e.keyed||(e.keyed=re());CD(r,function(a,n,i){var o=t.get(n)||t.set(n,re()),s=o.get(i)||o.set(i,{});a.metrics.liPosMinGap&&DD.liPosMinGap(r,a,s)})}function UU(r,e){DD[r]=e}var DD={};function Go(r,e,t){if(r){var a=e.ecModel,n=bl(ul(a)),i=r.model.uid;if(process.env.NODE_ENV!=="production"){pi(r);var o=n.axSerPairCheck||(n.axSerPairCheck=re()),s=""+i+pc+e.uid;Z(!o.get(s)),o.set(s,1)}var l=n.axSer||(n.axSer=re()),u=l.get(i)||l.set(i,[]);if(process.env.NODE_ENV!=="production"){var c=u[u.length-1];c&&Z(c.seriesIndex<e.seriesIndex)}u.push(e);var f=e.subType,h=e.getBaseAxis()===r,v=Hv.get(w0(f,h,t))||Hv.get(w0(f,h,null));if(v){var d=n.keyed||(n.keyed=re()),p=n.keys||(n.keys=re()),g=v.key,m=d.get(g)||d.set(g,re()),_=m.get(i);_||(_=m.set(i,{axis:r,sers:[],serByIdx:[]}),_.metrics=v.getMetrics(r),(p.get(i)||p.set(i,[])).push(g)),_.sers.push(e),_.serByIdx[e.seriesIndex]=e}}}function w0(r,e,t){return r+pc+oe(e,!0)+pc+(t||"")}function C0(r,e){var t=w0(e.seriesType,e.baseAxis,e.coordSysType);process.env.NODE_ENV!=="production"&&(Z(e.seriesType&&e.key&&!T0.get(e.key)&&!Hv.get(t)),T0.set(e.key,1)),Hv.set(t,e),OU(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:$U})})}var T0;process.env.NODE_ENV!=="production"&&(T0=re());var Hv=re(),WU=De(),wl=1,kD=2,YU=3,AD=(function(){function r(e,t,a,n,i){var o=or(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var c=a.slice();(Iv(e)||_l(e)||lc(e))&&(ww(c,gc(e,t.get("dataMin",!0))),Cw(c,gc(e,t.get("dataMax",!0)))),T6(c)||(c[0]=c[1]=NaN);var f=[],h=[!1,!1],v=t.get("min",!0);v==="dataMin"?(f[0]=c[0],h[0]=!0):(f[0]=gc(e,ce(v)?v({min:c[0],max:c[1]}):v),h[0]=f[0]!=null);var d=t.get("max",!0);d==="dataMax"?(f[1]=c[1],h[1]=!0):(f[1]=gc(e,ce(d)?d({min:c[0],max:c[1]}):d),h[1]=f[1]!=null);var p=XU(e,t),g=o?null:c[1]-c[0]||Math.abs(c[0]);f[0]==null&&(f[0]=o?l?c[0]:s?0:NaN:c[0]-p[0]*g),f[1]==null&&(f[1]=o?l?c[1]:s?s-1:NaN:c[1]+p[1]*g),!gn(f[0])&&(f[0]=NaN),!gn(f[1])&&(f[1]=NaN);var m=l||Gt(f[0])||Gt(f[1])||o&&!s,_=Iv(e),S=_&&t.needIncludeZero&&t.needIncludeZero();S&&(f[0]>0&&f[1]>0&&!h[0]&&(f[0]=0),f[0]<0&&f[1]<0&&!h[1]&&(f[1]=0));var x=!1;f[0]>f[1]&&(f.reverse(),x=!0);var b=gc(e,t.get("startValue",!0)),w=b!=null;!Ir(b)&&n&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Ir(b)&&(w||!_||S)&&(b<f[0]&&!h[0]?(f[0]=b,h[0]=!0):b>f[1]&&!h[1]&&(f[1]=b,h[1]=!0));var C=this._i={scale:e,dataMM:c,noZoomEffMM:f,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:b,isBlank:m,incl0:S,tggAxInv:x,ctnShp:i};MD(C,f)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,a=e.noZoomEffMM,n=e.zoomFixMM,i=e.fixMM,o={fixMM:i,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:a.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],i[0]=n[0]=!0),t[1]!=null&&(s[1]=t[1],i[1]=n[1]=!0),MD(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r})();function MD(r,e){var t=r.scale,a=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],a),e[1]=t.sanitize(e[1],a),lh(e))}function gc(r,e){return e==null?null:Gt(e)?NaN:r.parse(e)}function XU(r,e){var t;if(or(r))t=[0,0];else{var a=e.get("boundaryGap");typeof a=="boolean"&&(process.env.NODE_ENV!=="production"&&a===!0&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to 0.'),a=null),t=Y(a)?a:[a,a]}return[ID(t[0]),ID(t[1])]}function ID(r){return Ia(typeof r=="boolean"?0:r,1)||0}function LD(r){var e=WU(r.scale);return e.extent||(e.extent=qt()),e}function ZU(r,e){LD(r).dimIdxInCoord=e.get(r.dim)}function Fo(r,e){var t=r.scale,a=r.model,n=r.dim;if(process.env.NODE_ENV!=="production"&&Z(t&&a&&n),t.rawExtentInfo){process.env.NODE_ENV!=="production"&&Z(t.rawExtentInfo.from!==e||e===kD);return}qU(t,r,n,a,e)}function qU(r,e,t,a,n){var i=LD(e),o=i.extent,s=!1;FU(e,function(c){if(c.boxCoordinateSystem){var f=DT(c).coord,h=i.dimIdxInCoord;if(!(h>=0))process.env.NODE_ENV!=="production"&&Be('Property "series.coord" is not supported on axis '+c.boxCoordinateSystem.type+".");else if(Y(f)){var v=f[h];v!=null&&!Y(v)&&om(o,r.parse(v))}}else if(c.coordinateSystem){var d=c.getData();if(d){var p=r.getFilter?r.getFilter():null;k(PU(d,t),function(g){C6(o,d.getApproximateExtent(g,p))})}c.__requireStartValue&&c.__requireStartValue(e)&&(s=!0)}});var l=jU(r,e,a),u=new AD(r,a,o,s,l);ND(r,u,n),i.extent=null}function KU(r,e){var t=r.scale;process.env.NODE_ENV!=="production"&&Z(!t.rawExtentInfo),ND(t,new AD(t,r.model,e,!1,!1),YU)}function ND(r,e,t){r.rawExtentInfo=e,e.from=t}function $v(r,e){process.env.NODE_ENV!=="production"&&Z(!Uv.get(r)),Uv.set(r,e)}var Uv=re();function PD(r,e,t,a,n){process.env.NODE_ENV!=="production"&&Z(!0),r.rawExtentInfo||KU({scale:r,model:e},qt());var i=r.rawExtentInfo.makeFinal(),o=i.effMM;return r.setExtent(o[0],o[1]),r.setBlank(i.isBlank),a&&i.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(a.inverse=!a.inverse),i}function jU(r,e,t){var a=vc(r,t),n=t.get("containShape",!0);if(n==null&&!a&&(n=!0),!n)return!1;var i=!1;return ED(e,function(o){i=!!Uv.get(o)||i}),i}function QU(r,e,t,a){if(t.ctnShp){var n;if(ED(r,function(s){var l=Uv.get(s);if(l){var u=l(r,a);u&&(n=n||[0,0],ww(n,u[0]),Cw(n,u[1]),IU(r))}}),!!n){var i=e.getExtent();if(or(e))r.onBand||e.setExtent2(oc,Ke(i[0],i[0]+n[0]),Ie(i[1],i[1]+n[1]));else{var o=i.slice();t.zoomFixMM[0]||(o[0]=Ke(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),t.zoomFixMM[1]||(o[1]=Ie(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<i[0]||o[1]>i[1])&&e.setExtent2(oc,o[0],o[1])}}}}function RD(r,e){var t=_l(r),a=t?r.intervalStub:r,n=e.fixMinMax||[],i=t?r.getExtent():null,o=a.getExtent(),s=fD(o,n,e.rawExtentResult);a.setExtent(s[0],s[1]),s=a.getExtent();var l=t?eW(a,e):JU(a,e),u=l.intervalPrecision,c=l.interval,f=e.userInterval;f!=null&&(l.interval=f,l.intervalPrecision=Bo(f)),n[0]||(s[0]=He(ua(s[0]/c)*c,u)),n[1]||(s[1]=He(Wi(s[1]/c)*c,u)),f!=null&&(l.niceExtent=s.slice()),bD(r,n,o,s,i,l)}function JU(r,e){var t=Nv(e.splitNumber,5),a=Mv(r);process.env.NODE_ENV!=="production"&&Z(isFinite(a)&&a>0);var n=e.minInterval,i=e.maxInterval,o=jg(a/t,!0);n!=null&&o<n&&(o=n),i!=null&&o>i&&(o=i);var s=Bo(o),l=r.getExtent(),u=[He(Wi(l[0]/o)*o,s),He(ua(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function eW(r,e){var t=Nv(e.splitNumber,10),a=r.getExtent(),n=Mv(r);process.env.NODE_ENV!=="production"&&Z(isFinite(n)&&n>0);var i=Ie(ow(n),1),o=t/n*i;o<=.5&&(i*=10);var s=Bo(i),l=[He(Wi(a[0]/i)*i,s),He(ua(a[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function Cl(r){var e=r.scale,t=r.model,a=t.axis,n=t.ecModel;process.env.NODE_ENV!=="production"&&Z(a&&n),tW(e,t,a,n)}function tW(r,e,t,a,n){var i=PD(r,e,a,t),o=Iv(r)||lc(r);OD(r,{splitNumber:e.get("splitNumber"),fixMinMax:i.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:i}),t&&a&&QU(t,r,i,a),process.env.NODE_ENV!=="production"&&r.freeze()}function OD(r,e){rW[r.type](r,e)}var rW={interval:RD,log:RD,time:EU,ordinal:pt},aW=1e-8;function VD(r,e){return Math.abs(r-e)<aW}function Ho(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=yn(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];return(!VD(n[0],s[0])||!VD(n[1],s[1]))&&(a+=yn(n[0],n[1],s[0],s[1],e,t)),a!==0}var nW=[];function E0(r,e){for(var t=0;t<r.length;t++)gt(r[t],r[t],e)}function BD(r,e,t,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Un(e,e,i),Wn(t,t,i))}}function iW(r){for(var e=0,t=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;e+=c,t+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}var zD=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})(),GD=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),FD=(function(){function r(e){this.type="linestring",this.points=e}return r})(),HD=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,a,n=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return iW(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return k(o,function(s){s.type==="polygon"?BD(s.exterior,n,i,t):k(s.points,function(l){BD(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new pe(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Ho(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(Ho(u[c],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new pe(t,a,n,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var h=c[f];h.type==="polygon"?(E0(h.exterior,u),k(h.interiors,function(v){E0(v,u)})):k(h.points,function(v){E0(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e})(zD),oW=(function(r){z(e,r);function e(t,a){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=bs(nW),o=t;o&&!o.isGeoSVGGraphicRoot;)Fr(i,o.getLocalTransform(),i),o=o.parent;return Hr(i,i),gt(n,n,i),n},e})(zD);function sW(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var a=e.features;return k(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=$D(s,o,t);break;case"Polygon":D0(s,o,t);break;case"MultiLineString":D0(s,o,t);break;case"MultiPolygon":k(s,function(l,u){return D0(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function D0(r,e,t){for(var a=0;a<r.length;a++)r[a]=$D(r[a],e[a],t)}function $D(r,e,t){for(var a=[],n=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function lW(r,e){return r=sW(r),K(Ze(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new GD(o[0],o.slice(1)));break;case"MultiPolygon":k(n.coordinates,function(l){l[0]&&i.push(new GD(l[0],l.slice(1)))});break;case"LineString":i.push(new FD([n.coordinates]));break;case"MultiLineString":i.push(new FD(n.coordinates))}var s=new HD(a[e||"name"],i,a.cp);return s.properties=a,s})}var uW=De(),mc=De(),ga={estimate:1,determine:2};function Wv(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function cW(r,e){var t=r.getLabelModel().get("customValues");if(t){var a=r.scale;return{labels:K(UD(t,a),function(n,i){return{formattedLabel:fc(r)(n,i),rawLabel:a.getLabel(n),tick:n}})}}return r.type==="category"?hW(r,e):dW(r)}function fW(r,e,t){var a=r.scale,n=r.getTickModel().get("customValues");return n?{ticks:UD(n,a)}:r.type==="category"?vW(r,e):{ticks:a.getTicks(t)}}function UD(r,e){var t=e.getExtent(),a=[];return k(r,function(n){n=e.parse(n),n>=t[0]&&n<=t[1]&&a.push(n)}),uh(a,k6,null),Zt(a),K(a,function(n){return{value:n}})}function hW(r,e){var t=r.getLabelModel(),a=WD(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:a}function WD(r,e,t){var a=gW(r),n=x0(e),i=t.kind===ga.estimate;if(!i){var o=XD(a,n);if(o)return o}var s,l;ce(n)?s=Yv(r,n,!1):(l=n==="auto"?mW(r,t):n,s=Yv(r,l,!1));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return k0(a,n,u),!0}):k0(a,n,u),u}function vW(r,e){var t=pW(r),a=x0(e),n=XD(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),ce(a))i=Yv(r,a,!0);else if(a==="auto"){var s=WD(r,r.getLabelModel(),Wv(ga.determine));o=s.labelCategoryInterval,i=K(s.labels,function(l){return l.tick})}else o=a,i=Yv(r,o,!0);return k0(t,a,{ticks:i,tickCategoryInterval:o})}function dW(r){var e=r.scale.getTicks(),t=fc(r);return{labels:K(e,function(a,n){return{formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tick:a}})}}var pW=YD("axisTick"),gW=YD("axisLabel");function YD(r){return function(t){return mc(t)[r]||(mc(t)[r]={list:[]})}}function XD(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function k0(r,e,t){return r.list.push({key:e,value:t}),t}function mW(r,e){if(e.kind===ga.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return mc(r).autoInterval=t,!0}),t}var a=mc(r).autoInterval;return a??(mc(r).autoInterval=r.calculateCategoryInterval(e))}function yW(r,e){var t=e.kind,a=SW(r),n=fc(r),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],h=r.dataToCoord(f+1)-r.dataToCoord(f),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,g=0;f<=s[1];f+=u){var m=0,_=0,S=Qf(n({value:f}),a.font,"center","top");m=S.width*1.3,_=S.height*1.3,p=Math.max(p,m,7),g=Math.max(g,_,7)}var x=p/v,b=g/d;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(x,b)));if(t===ga.estimate)return e.out.noPxChangeTryDetermine.push(ie(_W,null,r,w,l)),w;var C=ZD(r,w,l);return C??w}function _W(r,e,t){return ZD(r,e,t)==null}function ZD(r,e,t){var a=uW(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=t,a.lastAutoInterval=e,a.axisExtent0=n[0],a.axisExtent1=n[1]}function SW(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Yv(r,e,t){var a=fc(r),n=r.scale,i=[],o=ce(e);return hD(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var c=!!e(s.value,u);if(s.offInterval=!c,!c&&!l)return}i.push(t?s:{formattedLabel:a(s),rawLabel:u,tick:s})}),i}var xW=.8;function Qt(r,e){e=e||{};var t={w:NaN,w2:NaN},a=r.scale,n=e.fromStat,i=e.min,o=dU(a);Ir(o)||(o=NaN);var s=r.getExtent(),l=dt(s[1]-s[0]);return or(a)?bW(t,r,o,l):n?wW(t,r,o,l,n):i==null&&process.env.NODE_ENV!=="production"&&Z(!1),i!=null&&(t.w=Ir(t.w)?Ie(i,t.w):i),t}function bW(r,e,t,a){var n=e.onBand,i=t+(n?1:0);i===0&&(i=1),r.w=a/i,!n&&t&&a&&(r.w2=r.w*t/a)}function wW(r,e,t,a,n){process.env.NODE_ENV!=="production"&&Z(n);var i=!1,o=-1/0;k(n.key?[zU(e,n.key)]:GU(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===wD&&(i=!0))}),Ir(t)&&t>0&&Ir(o)?(r.w=a/t*o,r.w2=o):i&&(r.w=a*xW,r.w2=r.w*t/a)}var qD=[0,1],ma=(function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this.scale;return e=a.normalize(a.parse(e)),Ue(e,qD,KD(this),t)},r.prototype.coordToData=function(e,t){var a=Ue(e,KD(this),qD,t);return this.scale.scale(a)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=fW(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=K(a.ticks,function(s){return{coord:this.dataToCoord(xl(this.scale,s)),tick:s}},this),i=t.get("alignWithLabel"),o=CW(this,n,i);return K(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(or(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=K(a,function(i){return K(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(e){return e=e||Wv(ga.determine),cW(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Qt(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||Wv(ga.determine),yW(this,e)},r})();function KD(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],a=t/r.scale.count()/2;e[0]+=a,e[1]-=a}return e}function CW(r,e,t){var a=e.length;if(!r.onBand||t||!a)return!1;var n=Qt(r).w;if(!n)return!1;k(e,function(s){s.coord-=n/2});var i=r.scale.getExtent(),o=e[a-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:i[1]+1}}),!0}var yc=Math.PI*2,$o=Ga.CMD,TW=["top","right","bottom","left"];function EW(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function DW(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*t+r,f=s*t+e;if(Math.abs(a-n)%yc<1e-4)return l[0]=c,l[1]=f,u-t;if(i){var h=a;a=Lr(n),n=Lr(h)}else a=Lr(a),n=Lr(n);a>n&&(n+=yc);var v=Math.atan2(s,o);if(v<0&&(v+=yc),v>=a&&v<=n||v+yc>=a&&v+yc<=n)return l[0]=c,l[1]=f,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,g=t*Math.cos(n)+r,m=t*Math.sin(n)+e,_=(d-o)*(d-o)+(p-s)*(p-s),S=(g-o)*(g-o)+(m-s)*(m-s);return _<S?(l[0]=d,l[1]=p,Math.sqrt(_)):(l[0]=g,l[1]=m,Math.sqrt(S))}function Xv(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,c=t-r,f=a-e,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*c,g=o[1]=e+d*f;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function jD(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var ya=[];function kW(r,e,t){var a=jD(e.x,e.y,e.width,e.height,r.x,r.y,ya);return t.set(ya[0],ya[1]),a}function AW(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=e.data,f=r.x,h=r.y,v=0;v<c.length;){var d=c[v++];v===1&&(a=c[v],n=c[v+1],i=a,o=n);var p=u;switch(d){case $o.M:i=c[v++],o=c[v++],a=i,n=o;break;case $o.L:p=Xv(a,n,c[v],c[v+1],f,h,ya,!0),a=c[v++],n=c[v++];break;case $o.C:p=bb(a,n,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],f,h,ya),a=c[v++],n=c[v++];break;case $o.Q:p=Cb(a,n,c[v++],c[v++],c[v],c[v+1],f,h,ya),a=c[v++],n=c[v++];break;case $o.A:var g=c[v++],m=c[v++],_=c[v++],S=c[v++],x=c[v++],b=c[v++];v+=1;var w=!!(1-c[v++]);s=Math.cos(x)*_+g,l=Math.sin(x)*S+m,v<=1&&(i=s,o=l);var C=(f-g)*S/_+g;p=DW(g,m,S,x,x+b,w,C,h,ya),a=Math.cos(x+b)*_+g,n=Math.sin(x+b)*S+m;break;case $o.R:i=a=c[v++],o=n=c[v++];var E=c[v++],T=c[v++];p=jD(i,o,E,T,f,h,ya);break;case $o.Z:p=Xv(a,n,i,o,f,h,ya,!0),a=i,n=o;break}p<u&&(u=p,t.set(ya[0],ya[1]))}return u}var _a=new _e,it=new _e,bt=new _e,Xa=new _e,Za=new _e;function QD(r,e){if(r){var t=r.getTextGuideLine(),a=r.getTextContent();if(a&&t){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||TW,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&Hr([],c),h=e.get("length2")||0;u&&bt.copy(u);for(var v=0;v<o.length;v++){var d=o[v];EW(d,0,s,_a,Xa),_e.scaleAndAdd(it,_a,Xa,h),it.transform(f);var p=r.getBoundingRect(),g=u?u.distance(it):r instanceof Re?AW(it,r.path,bt):kW(it,p,bt);g<l&&(l=g,it.transform(c),bt.transform(c),bt.toArray(i[0]),it.toArray(i[1]),_a.toArray(i[2]))}JD(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var Zv=[],yr=new _e;function JD(r,e){if(e<=180&&e>0){e=e/180*Math.PI,_a.fromArray(r[0]),it.fromArray(r[1]),bt.fromArray(r[2]),_e.sub(Xa,_a,it),_e.sub(Za,bt,it);var t=Xa.len(),a=Za.len();if(!(t<.001||a<.001)){Xa.scale(1/t),Za.scale(1/a);var n=Xa.dot(Za),i=Math.cos(e);if(i<n){var o=Xv(it.x,it.y,bt.x,bt.y,_a.x,_a.y,Zv,!1);yr.fromArray(Zv),yr.scaleAndAdd(Za,o/Math.tan(Math.PI-e));var s=bt.x!==it.x?(yr.x-it.x)/(bt.x-it.x):(yr.y-it.y)/(bt.y-it.y);if(isNaN(s))return;s<0?_e.copy(yr,it):s>1&&_e.copy(yr,bt),yr.toArray(r[1])}}}}function MW(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,_a.fromArray(r[0]),it.fromArray(r[1]),bt.fromArray(r[2]),_e.sub(Xa,it,_a),_e.sub(Za,bt,it);var a=Xa.len(),n=Za.len();if(!(a<.001||n<.001)){Xa.scale(1/a),Za.scale(1/n);var i=Xa.dot(e),o=Math.cos(t);if(i<o){var s=Xv(it.x,it.y,bt.x,bt.y,_a.x,_a.y,Zv,!1);yr.fromArray(Zv);var l=Math.PI/2,u=Math.acos(Za.dot(e)),c=l+u-t;if(c>=l)_e.copy(yr,bt);else{yr.scaleAndAdd(Za,s/Math.tan(Math.PI/2-c));var f=bt.x!==it.x?(yr.x-it.x)/(bt.x-it.x):(yr.y-it.y)/(bt.y-it.y);if(isNaN(f))return;f<0?_e.copy(yr,it):f>1&&_e.copy(yr,bt)}yr.toArray(r[1])}}}}function A0(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function IW(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=$n(a[0],a[1]),i=$n(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=Af([],a[1],a[0],o/n),l=Af([],a[1],a[2],o/i),u=Af([],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],a[2][0],a[2][1])}else for(var c=1;c<a.length;c++)r.lineTo(a[c][0],a[c][1])}function M0(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<Cu.length;l++){var u=Cu[l],c=e[u],f=u==="normal";if(c){var h=c.get("show"),v=f?s:oe(n.states[u]&&n.states[u].ignore,s);if(v||!oe(h,o)){var d=f?a:a&&a.states[u];d&&(d.ignore=!0),a&&A0(a,!0,u,c);continue}a||(a=new Kt,r.setTextGuideLine(a),!f&&(s||!o)&&A0(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),A0(a,!1,u,c)}}if(a){me(a.style,t),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=IW}}function I0(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<pr.length;a++){var n=pr[a];t[n]=r.getModel([n,e])}return t}var ek=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],LW=1,qv=2,tk=LW|qv;function Kv(r,e,t){t=t||tk,e?r.dirty|=t:r.dirty&=~t}function rk(r,e){return e=e||tk,r.dirty==null||!!(r.dirty&e)}function qa(r){if(r)return rk(r)&&ak(r,r.label,r),r}function ak(r,e,t){var a=e.getComputedTransform();r.transform=Km(r.transform,a);var n=r.localRect=Pu(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,c=i.__marginType;c==null&&u&&(o=u,c=Js.textMargin);for(var f=0;f<4;f++)L0[f]=c===Js.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:o?o[f]:0;c===Js.textMargin&&mo(n,L0,!1,!1);var h=r.rect=Pu(r.rect,n);return a&&h.applyTransform(a),c===Js.minMargin&&mo(h,L0,!1,!1),r.axisAligned=qm(a),(r.label=r.label||{}).ignore=e.ignore,Kv(r,!1),Kv(r,!0,qv),r}var L0=[0,0,0,0];function NW(r,e,t){return r.transform=Km(r.transform,t),r.localRect=Pu(r.localRect,e),r.rect=Pu(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=qm(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function N0(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var a=r.rect;a&&(a.x+=e.x,a.y+=e.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,t)}}function P0(r,e){for(var t=0;t<ek.length;t++){var a=ek[t];r[a]==null&&(r[a]=e[a])}return qa(r)}function nk(r){var e=r.obb;return(!e||rk(r,qv))&&(r.obb=e=e||new zC,e.fromBoundingRect(r.localRect,r.transform),Kv(r,!1,qv)),e}function R0(r,e,t,a,n){var i=r.length,o=Te[e],s=_t[e];if(i<2)return!1;r.sort(function(C,E){return C.rect[o]-E.rect[o]});for(var l=0,u,c=!1,f=0;f<i;f++){var h=r[f],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,c=!0),l=v[o]+v[s]}var d=r[0],p=r[i-1],g,m;_(),g<0&&b(-g,.8),m<0&&b(m,.8),_(),S(g,m,1),S(m,g,-1),_(),g<0&&w(-g),m<0&&w(m);function _(){g=d.rect[o]-t,m=a-p.rect[o]-p.rect[s]}function S(C,E,T){if(C<0){var D=Math.min(E,-C);if(D>0){x(D*T,0,i);var A=D+C;A<0&&b(-A*T,1)}else b(-C*T,1)}}function x(C,E,T){C!==0&&(c=!0);for(var D=E;D<T;D++){var A=r[D],I=A.rect;I[o]+=C,A.label[o]+=C}}function b(C,E){for(var T=[],D=0,A=1;A<i;A++){var I=r[A-1].rect,M=Math.max(r[A].rect[o]-I[o]-I[s],0);T.push(M),D+=M}if(D){var L=Math.min(Math.abs(C)/D,E);if(C>0)for(var A=0;A<i-1;A++){var N=T[A]*L;x(N,0,A+1)}else for(var A=i-1;A>0;A--){var N=T[A-1]*L;x(-N,A,i)}}}function w(C){var E=C<0?-1:1;C=Math.abs(C);for(var T=Math.ceil(C/(i-1)),D=0;D<i-1;D++)if(E>0?x(T,0,D+1):x(-T,i-D-1,i),C-=T,C<=0)return}return c}function PW(r){for(var e=0;e<r.length;e++){var t=r[e],a=t.defaultAttr,n=t.labelLine;t.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}}function ik(r){var e=[];r.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function t(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=qa(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(jv(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(n)}}}function jv(r,e,t,a){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,a)?!1:r.axisAligned&&e.axisAligned?!0:nk(r).intersect(nk(e),t,a)}function RW(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function OW(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:RW(a&&a.shape.points)}}var ok=["align","verticalAlign","width","height","fontSize"],_r=new Da,O0=De(),VW=De();function Qv(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var Jv=["x","y","rotation"],BW=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();pe.applyTransform(c,c,u),u?_r.setLocalTransform(u):(_r.x=_r.y=_r.rotation=_r.originX=_r.originY=0,_r.scaleX=_r.scaleY=1),_r.rotation=Lr(_r.rotation);var f=n.__hostTarget,h;if(f){h=f.getBoundingRect().plain();var v=f.getComputedTransform();pe.applyTransform(h,h,v)}var d=h&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:_r.x,y:_r.y,scaleX:_r.scaleX,scaleY:_r.scaleY,rotation:_r.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");(ce(n)||Oe(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=be(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(S,x){return function(){QD(S,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;ce(o.layoutOptionOrCb)?c=o.layoutOptionOrCb(OW(o,l)):c=o.layoutOptionOrCb,c=c||{},o.layoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(c.x!=null?(s.x=ee(c.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=ee(c.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),h=!1)}var d=O0(s);d.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<ok.length;p++){var g=ok[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var _=o.seriesModel.getData(o.dataType);m=_.getItemModel(o.dataIndex)}s.on("drag",n(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=[];k(this._labelList,function(l){l.defaultAttr.ignore||n.push(P0({},l))});var i=Ze(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ze(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});R0(i,0,0,t),R0(o,1,0,a);var s=Ze(n,function(l){return l.layoutOption.hideOverlap});PW(s),ik(s)},r.prototype.processLabelsOverall=function(){var e=this;k(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=O0(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=be(e),i=n.dataIndex;if(a&&i!=null){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");M0(e,I0(s),l),QD(e,f)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!Zs(e))){var i=O0(a),o=i.oldLayout,s=be(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=t.getData(s.dataType);if(o){a.attr(o);var h=e.prevStates;h&&(Ee(h,"select")>=0&&a.attr(i.oldLayoutSelect),Ee(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),$e(a,u,t,l)}else if(a.attr(u),!Qs(a).valueAnimation){var f=oe(a.style.opacity,1);a.style.opacity=0,ot(a,{style:{opacity:f}},t,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};Qv(v,u,Jv),Qv(v,a.states.select,Jv)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};Qv(d,u,Jv),Qv(d,a.states.emphasis,Jv)}oT(a,l,c,t,t)}if(n&&!n.ignore&&!n.invisible){var i=VW(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),$e(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,ot(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r})(),V0=De();function zW(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=V0(t).labelManager;n||(n=V0(t).labelManager=new BW),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=V0(t).labelManager;k(a.updatedSeries,function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var B0=Math.sin,z0=Math.cos,sk=Math.PI,Uo=Math.PI*2,GW=180/sk,lk=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=Jn(f-Uo)||(c?u>=Uo:-u>=Uo),v=u>0?u%Uo:u%Uo+Uo,d=!1;h?d=!0:Jn(f)?d=!1:d=v>=sk==!!c;var p=e+a*z0(o),g=t+n*B0(o);this._start&&this._add("M",p,g);var m=Math.round(i*GW);if(h){var _=1/this._p,S=(c?1:-1)*(Uo-_);this._add("A",a,n,m,1,+c,e+a*z0(o+S),t+n*B0(o+S)),_>.01&&this._add("A",a,n,m,0,+c,p,g)}else{var x=e+a*z0(s),b=t+n*B0(s);this._add("A",a,n,m,+d,+c,x,b)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var c=[],f=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}c.push(Math.round(v*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),G0="none",FW=Math.round;function HW(r){var e=r.fill;return e!=null&&e!==G0}function $W(r){var e=r.stroke;return e!=null&&e!==G0}var F0=["lineCap","miterLimit","lineJoin"],UW=K(F0,function(r){return"stroke-"+r.toLowerCase()});function WW(r,e,t,a){var n=e.opacity==null?1:e.opacity;if(t instanceof $t){r("opacity",n);return}if(HW(e)){var i=hu(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;o<1&&r("fill-opacity",o)}else r("fill",G0);if($W(e)){var s=hu(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,f=e.strokeFirst;if(u!==1&&r("stroke-width",u),f&&r("paint-order",f?"stroke":"fill"),c<1&&r("stroke-opacity",c),e.lineDash){var h=Wy(t),v=h[0],d=h[1];v&&(d=FW(d||0),r("stroke-dasharray",v.join(",")),(d||a)&&r("stroke-dashoffset",d))}for(var p=0;p<F0.length;p++){var g=F0[p];if(e[g]!==yh[g]){var m=e[g]||yh[g];m&&r(UW[p],m)}}}}var uk="http://www.w3.org/2000/svg",ck="http://www.w3.org/1999/xlink",YW="http://www.w3.org/2000/xmlns/",XW="http://www.w3.org/XML/1998/namespace",fk="ecmeta_";function hk(r){return document.createElementNS(uk,r)}function Bt(r,e,t,a,n){return{tag:r,attrs:t||{},children:a,text:n,key:e}}function ZW(r,e){var t=[];if(e)for(var a in e){var n=e[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function qW(r){return"</"+r+">"}function H0(r,e){e=e||{};var t=e.newline?`
49
+ `:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return ZW(o,s)+(o!=="style"?hr(l):l||"")+(i?""+t+K(i,function(u){return a(u)}).join(t)+t:"")+qW(o)}return a(r)}function KW(r,e,t){t=t||{};var a=t.newline?`
50
+ `:"",n=" {"+a,i=a+"}",o=K(Oe(r),function(l){return l+n+K(Oe(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=K(Oe(e),function(l){return"@keyframes "+l+n+K(Oe(e[l]),function(u){return u+n+K(Oe(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function $0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function vk(r,e,t,a){return Bt("svg","root",{width:r,height:e,xmlns:uk,"xmlns:xlink":ck,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var jW=0;function dk(){return jW++}var pk={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Wo="transform-origin";function QW(r,e,t){var a=U({},r.shape);U(a,e),r.buildPath(t,a);var n=new lk;return n.reset(Pb(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function JW(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Wo]=t+"px "+a+"px")}var e9={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function gk(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function t9(r,e,t){var a=r.shape.paths,n={},i,o;if(k(a,function(l){var u=$0(t.zrId);u.animation=!0,ed(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=Oe(c),v=h.length;if(v){o=h[v-1];var d=c[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var m in f){var _=f[m].animation;_.indexOf(o)>=0&&(i=_)}}}),!!i){e.d=!1;var s=gk(n,t);return i.replace(o,s)}}function mk(r){return Q(r)?pk[r]?"cubic-bezier("+pk[r]+")":gg(r)?r:"":""}function ed(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Ih){var s=t9(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=n[u],f=[c.getMaxTime()/1e3+"s"],h=mk(c.getClip().easing),v=c.getDelay();h?f.push(h):f.push("linear"),v&&f.push(v/1e3+"s"),c.getLoop()&&f.push("infinite");var d=f.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(c)}function p(_){var S=_[1],x=S.length,b={},w={},C={},E="animation-timing-function";function T(fe,ne,we){for(var se=fe.getTracks(),xe=fe.getMaxTime(),qe=0;qe<se.length;qe++){var Pe=se[qe];if(Pe.needsAnimate()){var Xe=Pe.keyframes,je=Pe.propName;if(we&&(je=we(je)),je)for(var yt=0;yt<Xe.length;yt++){var lr=Xe[yt],Xt=Math.round(lr.time/xe*100)+"%",ba=mk(lr.easing),Gn=lr.rawValue;(Q(Gn)||Ge(Gn))&&(ne[Xt]=ne[Xt]||{},ne[Xt][je]=lr.rawValue,ba&&(ne[Xt][E]=ba))}}}}for(var D=0;D<x;D++){var A=S[D],I=A.targetName;I?I==="shape"&&T(A,w):!a&&T(A,b)}for(var M in b){var L={};ka(L,r),U(L,b[M]);var N=Rb(L),R=b[M][E];C[M]=N?{transform:N}:{},JW(C[M],L),R&&(C[M][E]=R)}var P,O=!0;for(var M in w){C[M]=C[M]||{};var G=!P,R=w[M][E];G&&(P=new Ga);var F=P.len();P.reset(),C[M].d=QW(r,w[M],P);var B=P.len();if(!G&&F!==B){O=!1;break}R&&(C[M][E]=R)}if(!O)for(var M in C)delete C[M].d;if(!a)for(var D=0;D<x;D++){var A=S[D],I=A.targetName;I==="style"&&T(A,C,function(se){return e9[se]})}for(var $=Oe(C),j=!0,W,D=1;D<$.length;D++){var V=$[D-1],q=$[D];if(C[V][Wo]!==C[q][Wo]){j=!1;break}W=C[V][Wo]}if(j&&W){for(var M in C)C[M][Wo]&&delete C[M][Wo];e[Wo]=W}if(Ze($,function(fe){return Oe(C[fe]).length>0}).length){var Ce=gk(C,t);return Ce+" "+_[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=t.zrId+"-cls-"+dk();t.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function r9(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};yk(a,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=wg(l))}var u=n.lineWidth;if(u){var c=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),yk(a,e,t)}}function yk(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+dk(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var _c=Math.round;function _k(r){return r&&Q(r.src)}function Sk(r){return r&&ce(r.toDataURL)}function U0(r,e,t,a){WW(function(n,i){var o=n==="fill"||n==="stroke";o&&Nb(i)?Ek(e,r,n,a):o&&Tg(i)?Dk(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),u9(t,r,a)}function W0(r,e){var t=j8(e);t&&(t.each(function(a,n){a!=null&&(r[(fk+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[fk+"silent"]="true"))}function xk(r){return Jn(r[0]-1)&&Jn(r[1])&&Jn(r[2])&&Jn(r[3]-1)}function a9(r){return Jn(r[4])&&Jn(r[5])}function Y0(r,e,t){if(e&&!(a9(e)&&xk(e))){var a=1e4;r.transform=xk(e)?"translate("+_c(e[4]*a)/a+" "+_c(e[5]*a)/a+")":_8(e)}}function bk(r,e,t){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(_c(a[i][0]*t)/t),n.push(_c(a[i][1]*t)/t);e.points=n.join(" ")}function wk(r){return!r.smooth}function n9(r){var e=K(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(a[o[1]]=_c(s*n)/n)}}}var i9={circle:[n9(["cx","cy","r"])],polyline:[bk,wk],polygon:[bk,wk]};function o9(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function Ck(r,e){var t=r.style,a=r.shape,n=i9[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&Pb(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&o9(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);n[0](a,i,c)}else{var f=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;f&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var v=h.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==v||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new lk),p.reset(u),h.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),i.d=p.getStr()}return Y0(i,r.transform),U0(i,t,r,e),W0(i,r),e.animation&&ed(r,i,e),e.emphasis&&r9(r,i,e),Bt(s,r.id+"",i)}function s9(r,e){var t=r.style,a=t.image;if(a&&!Q(a)&&(_k(a)?a=a.src:Sk(a)&&(a=a.toDataURL())),!!a){var n=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),Y0(l,r.transform),U0(l,t,r,e),W0(l,r),e.animation&&ed(r,l,e),Bt("image",r.id+"",l)}}function l9(r,e){var t=r.style,a=t.text;if(a!=null&&(a+=""),!(!a||isNaN(t.x)||isNaN(t.y))){var n=t.font||cn,i=t.x||0,o=x8(t.y||0,gu(n),t.textBaseline),s=S8[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(jw(t)){var u="",c=t.fontStyle,f=qw(t.fontSize);if(!parseFloat(f))return;var h=t.fontFamily||Fx,v=t.fontWeight;u+="font-size:"+f+";font-family:"+h+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Y0(l,r.transform),U0(l,t,r,e),W0(l,r),e.animation&&ed(r,l,e),Bt("text",r.id+"",l,void 0,a)}}function Tk(r,e){if(r instanceof Re)return Ck(r,e);if(r instanceof $t)return s9(r,e);if(r instanceof Gs)return l9(r,e)}function u9(r,e,t){var a=r.style;if(b8(a)){var n=w8(r),i=t.shadowCache,o=i[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=a.shadowOffsetX||0,f=a.shadowOffsetY||0,h=a.shadowBlur,v=hu(a.shadowColor),d=v.opacity,p=v.color,g=h/2/l,m=h/2/u,_=g+" "+m;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Bt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Bt("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:_,"flood-color":p,"flood-opacity":d})]),i[n]=o}e.filter=$f(o)}}function Ek(r,e,t,a){var n=r[t],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Ib(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(Lb(n))i="radialGradient",o.cx=oe(n.x,.5),o.cy=oe(n.y,.5),o.r=oe(n.r,.5);else{process.env.NODE_ENV!=="production"&&oa("Illegal gradient type.");return}for(var s=n.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Cg(s[u].offset)*100+"%",h=s[u].color,v=hu(h),d=v.color,p=v.opacity,g={offset:f};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Bt("stop",u+"",g))}var m=Bt(i,"",o,l),_=H0(m),S=a.gradientCache,x=S[_];x||(x=a.zrId+"-g"+a.gradientIdx++,S[_]=x,o.id=x,a.defs[x]=Bt(i,x,o,l)),e[t]=$f(x)}function Dk(r,e,t,a){var n=r.style[t],i=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(Mb(n)){var h=n.imageWidth,v=n.imageHeight,d=void 0,p=n.image;if(Q(p)?d=p:_k(p)?d=p.src:Sk(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Z(h,g),Z(v,g)}else if(h==null||v==null){var m=function(D,A){if(D){var I=D.elm,M=h||A.width,L=v||A.height;D.tag==="pattern"&&(u?(L=1,M/=i.width):c&&(M=1,L/=i.height)),D.attrs.width=M,D.attrs.height=L,I&&(I.setAttribute("width",M),I.setAttribute("height",L))}},_=um(d,null,r,function(D){l||m(w,D),m(f,D)});_&&_.width&&_.height&&(h=h||_.width,v=v||_.height)}f=Bt("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else n.svgElement&&(f=he(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(f){var S,x;l?S=x=1:u?(x=1,S=o.width/i.width):c?(S=1,x=o.height/i.height):o.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(o.width=S),x!=null&&!isNaN(x)&&(o.height=x);var b=Rb(n);b&&(o.patternTransform=b);var w=Bt("pattern","",o,[f]),C=H0(w),E=a.patternCache,T=E[C];T||(T=a.zrId+"-p"+a.patternIdx++,E[C]=T,o.id=T,w=a.defs[T]=Bt("pattern",T,o,[f])),e[t]=$f(T)}}function c9(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=Bt("clipPath",i,o,[Ck(r,t)])}e["clip-path"]=$f(i)}function kk(r){return document.createTextNode(r)}function Yo(r,e,t){r.insertBefore(e,t)}function Ak(r,e){r.removeChild(e)}function Mk(r,e){r.appendChild(e)}function Ik(r){return r.parentNode}function Lk(r){return r.nextSibling}function X0(r,e){r.textContent=e}var Nk=58,f9=120,h9=Bt("","");function Z0(r){return r===void 0}function Ka(r){return r!==void 0}function v9(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(process.env.NODE_ENV!=="production"&&a[i]!=null&&console.error("Duplicate key "+i),a[i]=n)}return a}function Sc(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function xc(r){var e,t=r.children,a=r.tag;if(Ka(a)){var n=r.elm=hk(a);if(q0(h9,r),Y(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&Mk(n,xc(i))}else Ka(r.text)&&!de(r.text)&&Mk(n,kk(r.text))}else r.elm=kk(r.text);return r.elm}function Pk(r,e,t,a,n){for(;a<=n;++a){var i=t[a];i!=null&&Yo(r,xc(i),e)}}function td(r,e,t,a){for(;t<=a;++t){var n=e[t];if(n!=null)if(Ka(n.tag)){var i=Ik(n.elm);Ak(i,n.elm)}else Ak(r,n.elm)}}function q0(r,e){var t,a=e.elm,n=r&&r.attrs||{},i=e.attrs||{};if(n!==i){for(t in i){var o=i[t],s=n[t];s!==o&&(o===!0?a.setAttribute(t,""):o===!1?a.removeAttribute(t):t==="style"?a.style.cssText=o:t.charCodeAt(0)!==f9?a.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?a.setAttributeNS(YW,t,o):t.charCodeAt(3)===Nk?a.setAttributeNS(XW,t,o):t.charCodeAt(5)===Nk?a.setAttributeNS(ck,t,o):a.setAttribute(t,o))}for(t in n)t in i||a.removeAttribute(t)}}function d9(r,e,t){for(var a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],c=t[l],f,h,v,d;a<=i&&n<=l;)o==null?o=e[++a]:s==null?s=e[--i]:u==null?u=t[++n]:c==null?c=t[--l]:Sc(o,u)?(Tl(o,u),o=e[++a],u=t[++n]):Sc(s,c)?(Tl(s,c),s=e[--i],c=t[--l]):Sc(o,c)?(Tl(o,c),Yo(r,o.elm,Lk(s.elm)),o=e[++a],c=t[--l]):Sc(s,u)?(Tl(s,u),Yo(r,s.elm,o.elm),s=e[--i],u=t[++n]):(Z0(f)&&(f=v9(e,a,i)),h=f[u.key],Z0(h)?Yo(r,xc(u),o.elm):(v=e[h],v.tag!==u.tag?Yo(r,xc(u),o.elm):(Tl(v,u),e[h]=void 0,Yo(r,v.elm,o.elm))),u=t[++n]);(a<=i||n<=l)&&(a>i?(d=t[l+1]==null?null:t[l+1].elm,Pk(r,d,t,n,l)):td(r,e,a,i))}function Tl(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(q0(r,e),Z0(e.text)?Ka(a)&&Ka(n)?a!==n&&d9(t,a,n):Ka(n)?(Ka(r.text)&&X0(t,""),Pk(t,null,n,0,n.length-1)):Ka(a)?td(t,a,0,a.length-1):Ka(r.text)&&X0(t,""):r.text!==e.text&&(Ka(a)&&td(t,a,0,a.length-1),X0(t,e.text)))}function p9(r,e){if(Sc(r,e))Tl(r,e);else{var t=r.elm,a=Ik(t);xc(e),a!==null&&(Yo(a,e.elm,Lk(t)),td(a,[r],0,0))}return e}var g9=0,m9=(function(){function r(e,t,a){if(this.type="svg",this.configLayer=y9("configLayer"),this.storage=t,this._opts=a=U({},a),this.root=e,this._id="zr"+g9++,this._oldVNode=vk(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=hk("svg");q0(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",p9(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return Tk(e,$0(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=$0(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=_9(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=Bt("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=K(Oe(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(Bt("defs","defs",{},u)),e.animation){var c=KW(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=Bt("style","stl",{},[],c);o.push(f)}}return vk(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},H0(this.renderToVNode({animation:oe(e.cssAnimation,!0),emphasis:oe(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:oe(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,c=0;c<n;c++){var f=e[c];if(!f.invisible){var h=f.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var m=p+1;m<v;m++){var _={};c9(h[m],_,t);var S=Bt("g","clip-g-"+u++,_,[]);(s?s.children:a).push(S),i[o++]=S,s=S}l=h;var x=Tk(f,t);x&&(s?s.children:a).push(x)}}},r.prototype.resize=function(e,t){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),t!=null&&(a.height=t),n&&i&&(i.style.display="none",e=fl(n,0,a),t=fl(n,1,a),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(Tg(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),a="data:image/svg+xml;";return e?(t=T8(t),t&&a+"base64,"+t):a+"charset=UTF-8,"+encodeURIComponent(t)},r})();function y9(r){return function(){process.env.NODE_ENV!=="production"&&oa('In SVG mode painter not support method "'+r+'"')}}function _9(r,e,t,a){var n;if(t&&t!=="none")if(n=Bt("rect","bg",{width:r,height:e,x:"0",y:"0"}),Nb(t))Ek({fill:t},n.attrs,"fill",a);else if(Tg(t))Dk({style:{fill:t},dirty:pt,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",a);else{var i=hu(t),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function S9(r){r.registerPainter("svg",m9)}function Rk(r,e,t){var a=ur.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}function K0(r){return!r.__cursors.get(GC)}function Ok(r){var e=r.__cursors.get(GC);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var Vk=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=Rh,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var o;n=n||Kf,typeof t=="string"?o=Rk(t,a,n):de(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(Kx(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return e.prototype.afterBrush=function(){this.__prevIdx=Ok(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Rk("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new pe(0,0,0,0);function c(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var b=new pe(0,0,0,0);b.copy(x),o.push(b)}else{for(var w=!1,C=1/0,E=0,T=0;T<o.length;++T){var D=o[T];if(D.intersect(x)){var A=new pe(0,0,0,0);A.copy(D),A.union(x),o[T]=A,w=!0;break}else if(l){u.copy(x),u.union(D);var I=x.width*x.height,M=D.width*D.height,L=u.width*u.height,N=L-I-M;N<C&&(C=N,E=T)}}if(l&&(o[E].union(x),w=!0),!w){var b=new pe(0,0,0,0);b.copy(x),o.push(b)}l||(l=o.length>=s)}}for(var f=Ok(this),h=f.startIdx;h<f.endIdx;++h){var v=t[h];if(v){var d=v.shouldBePainted(n,i,!0,!0),p=v.__isRendered&&(v.__dirty&wr||!d)?v.getPrevPaintRect():null;p&&c(p);var g=d&&(v.__dirty&wr||!v.__isRendered)?v.getPaintRect():null;g&&c(g)}}for(var m=this.__prevIdx,h=m.startIdx;h<m.endIdx;++h){var v=a[h],d=v&&v.shouldBePainted(n,i,!0,!0);if(v&&(!d||!v.__zr)&&v.__isRendered){var p=v.getPrevPaintRect();p&&c(p)}}var _;do{_=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var S=h+1;S<o.length;)o[h].intersect(o[S])?(_=!0,o[h].union(o[S]),o.splice(S,1)):S++;h++}}while(_);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=a+"px"),i.width=t*n,i.height=a*n,s&&(s.width=t*n,s.height=a*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,f=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var v=this.domBack;function d(p,g,m,_){if(o.clearRect(p,g,m,_),a&&a!=="transparent"){var S=void 0;if(wf(a)){var x=a.global||a.__width===m&&a.__height===_;S=x&&a.__canvasGradient||Uy(o,a,{x:0,y:0,width:m,height:_}),a.__canvasGradient=S,a.__width=m,a.__height=_}else M4(a)&&(a.scaleX=a.scaleX||f,a.scaleY=a.scaleY||f,S=Yy(o,a,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=S||a,o.fillRect(p,g,m,_),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(v,p,g,m,_),o.restore())}!n||u?d(0,0,s,l):n.length&&k(n,function(p){d(p.x*f,p.y*f,p.width*f,p.height*f)})},e})(zr),Bk=1e5,Xo=314159,j0=void 0,x9=1,Q0=2;function b9(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function w9(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}function zk(r,e,t,a){var n=new Vk(r,e,e.dpr);return n.zlevel=t,n.zlevel2=a,n.__builtin__=!0,Gk(n),n}function Gk(r){r.__cursorStack=[],r.__cursors=re()}function C9(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function T9(r,e){var t=r.__cursors,a=+e;return t.get(a)||(r.__cursorStack.push(a),t.set(a,C9({key:a})))}function rd(r,e){for(var t=r.__cursorStack,a=0;a<t.length;a++)e(r.__cursors.get(t[a]))}function J0(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function sr(r,e,t){for(var a=r.layerStack,n=0;n<a.length;n++){var i=a[n].zl,o=a[n].zl2,s=r.layers[i][o];(!t||(!(t&bc)||s.__builtin__)&&(!(t&e1)||!s.__builtin__)&&(!(t&Fk)||s!==r.hoverlayer))&&e(s,i,o,n)}}var bc=1,e1=2,Fk=4,ad=bc|Fk,E9=(function(){function r(e,t,a,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=a=U({},a||{}),this.dpr=a.devicePixelRatio||Kf,this._singleCanvas=i,this.root=e;var o=e.style;if(o&&(Kx(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],i){var l=e,u=l.width,c=l.height;a.width!=null&&(u=a.width),a.height!=null&&(c=a.height),this.dpr=a.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var f=zk(l,this,Xo,Rh);f.initContext(),this._insertLayer(f,Xo,Rh,!0),this._domRoot=e}else{this._width=fl(e,0,a),this._height=fl(e,1,a);var s=this._domRoot=w9(this._width,this._height);e.appendChild(s)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t;e&&!de(e)?t={paintAll:!!e}:t=e||{};var a=oe(t.refresh,!0),n=oe(t.refreshHover,!1);if(n&&(this._hoverLayerDirty=Q0),!a)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(i,o,this._redrawId);var s=this._backgroundColor;return sr(this._i,function(l,u,c,f){l.refresh&&l.refresh(f===0?s:null)},e1),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,a=this._hoverLayerDirty;if(this._hoverLayerDirty=j0,a!==j0&&(!t&&a===Q0&&(t=this._i.hoverlayer=this._ensureLayer(Bk)),!!t)){t.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){i||(i=t.ctx,i.save());var u=l.__hoverStyle,c=void 0;u&&(c=l.style,l.style=u),Ro(i,l,n),u&&(l.style=c)}}i&&(hl(i,n),i.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(Bk)},r.prototype.paintOne=function(e,t){xE(e,t)},r.prototype._paintList=function(e,t,a){if(this._redrawId===a){var n=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),n)sr(this._i,function(o){o.afterBrush&&o.afterBrush()},ad),this._paintHoverList(e);else{var i=this;Nf(function(){i._paintList(e,t,a)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(Xo).ctx,t=this._domRoot.width,a=this._domRoot.height;e.clearRect(0,0,t,a),sr(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,t,a)},bc)},r.prototype._doPaintList=function(e,t){var a=this,n=!0;return sr(this._i,function(i){var o=!1;if(rd(i,function(f){(f.drawIdx<f.endIdx||f.notClearIdx>=0)&&(o=!0)}),!(!o&&!i.__dirty)){var s=a._opts.useDirtyRect&&!K0(i)?i.createRepaintRects(e,t,a._width,a._height):null,l=a._i.layerStack[0],u=!0;if(i.__dirty){u=!1,i.__dirty=!1;var c=i.zlevel===l.zl&&i.zlevel2===l.zl2?a._backgroundColor:null;i.clear(!1,c,s)}rd(i,function(f){var h=a._paintPerCursor(i,f,e,s,u);n=n&&h})}},ad),Ve.wxa&&sr(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),n},r.prototype._paintPerCursor=function(e,t,a,n,i){var o=e.ctx;if(n)if(!n.length)t.drawIdx=t.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,t,a,u,i),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,a,null,i),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,a,n,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=e.ctx,l=K0(e),u=l&&ur.getTime(),c=t.drawIdx,f=t.notClearIdx,h=f>=0?Math.min(f,c):c;h<t.endIdx;h++){var v=a[h];if(!(h<c&&!v.notClear)){if(v.__inHover&&(this._hoverLayerDirty=Q0),n!=null){var d=v.getPaintRect();d&&d.intersect(n)&&(Ro(s,v,o),v.setPrevPaintRect(d))}else Ro(s,v,o);if(l){var p=ur.getTime()-u;if(p>15){h++;break}}}}hl(s,o),t.drawIdx=Math.max(h,c)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,a){t=t||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=Xo,t=0);var i=J0(this._i,e)[t];return i||(i=zk("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&ke(i,this._layerConfig[e],!0),(a||n&&e!==Xo)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,a,n){var i=this._i,o=i.layers,s=i.layerStack,l=this._domRoot,u=null;if(o[t]&&o[t][a]){process.env.NODE_ENV!=="production"&&oa("ZLevel "+t+"."+a+" has been used already");return}if(!b9(e)){process.env.NODE_ENV!=="production"&&oa("Layer of zlevel "+t+" is not valid");return}for(var c=s.length,f=0;f<c&&(s[f].zl<t||s[f].zl===t&&s[f].zl2<a);)f++;if(f>0&&(u=J0(i,s[f-1].zl)[s[f-1].zl2]),s.splice(f,0,{zl:t,zl2:a}),J0(i,t)[a]=e,!n&&!e.virtual)if(u){var h=u.dom;h.nextSibling?l.insertBefore(e.dom,h.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)},r.prototype.eachLayer=function(e,t){return sr(this._i,function(a,n){e.call(t,a,n)})},r.prototype.eachBuiltinLayer=function(e,t){return sr(this._i,function(a,n){e.call(t,a,n)},bc)},r.prototype.eachOtherLayer=function(e,t){return sr(this._i,function(a,n){e.call(t,a,n)},e1)},r.prototype.getLayers=function(){var e={};return sr(this._i,function(t,a,n){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var a=this;if(a._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){a._needsManuallyCompositing=!0;break}}sr(a._i,function(g){g.__dirty=!1,rd(g,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},ad);for(var o,s=null,l=null,u=!1,c=0,f=e.length;c<f;c++){var i=e[c],h=i.zlevel,v=i.incremental,d=void 0;if(o!==h&&(o=h,u=!1),v?(u=!0,d=vF):d=u?hF:Rh,(!s||h!==s.zlevel||d!==s.zlevel2)&&(s=a._ensureLayer(h,d),l=null,!s.__builtin__)){oa("ZLevel "+h+" has been used by unknown layer "+s.id);continue}if((!l||v!==l.key)&&(l=T9(s,v),!l.used))if(l.used=!0,!t&&l.first===i.id){var p=c-l.startIdx;l.startIdx=c,l.drawIdx+=p,l.endIdx+=p}else s.__dirty=!0,l.first=i.id,l.startIdx=l.drawIdx=c,l.endIdx=c+1;l.endIdxNew=c+1,i.__dirty&wr&&!i.__inHover&&((!v||!i.notClear&&c<l.drawIdx)&&(s.__dirty=!0),v&&i.notClear&&l.notClearIdx<0&&(l.notClearIdx=c))}sr(a._i,function(g){for(var m=g.__cursorStack,_=g.__cursors,S=m.length-1;S>=0;S--){var x=_.get(m[S]);if(!x.used)g.__dirty=!0,_.removeKey(m[S]),m.splice(S,1);else{var b=x.endIdxNew;(K0(g)?b<x.drawIdx:b!==x.endIdx||!b||e[b-1].id!==x.last)&&(g.__dirty=!0),x.endIdx=x.endIdxNew,x.last=b?e[b-1].id:NaN}}g.__dirty&&(rd(g,function(w){w.drawIdx=w.startIdx}),a._hoverLayerDirty===j0&&(a._hoverLayerDirty=x9))},ad)},r.prototype.clear=function(){return sr(this._i,function(e){e.clear(),Gk(e)},bc),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,sr(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?ke(a[e],t,!0):a[e]=t,sr(this._i,function(n,i){ke(n,a[i],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,a=this._i.layers,n=t.length-1;n>=0;n--){var i=t[n];if(i.zl===e){var o=a[e][i.zl2];if(o.__builtin__)continue;if(t.splice(n,1),a[e][i.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;e!=null&&(n.width=e),t!=null&&(n.height=t),e=fl(i,0,n),t=fl(i,1,n),a.style.display="",(this._width!==e||t!==this._height)&&(a.style.width=e+"px",a.style.height=t+"px",sr(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(Xo).resize(e,t)}return this},r.prototype.clearLayer=function(e){k(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Xo][0].dom;var t=new Vk("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var a=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height;sr(this._i,function(f){f.__builtin__?a.drawImage(f.dom,0,0,n,i):f.renderToCanvas&&(a.save(),f.renderToCanvas(a),a.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Ro(a,c,o)}hl(a,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function D9(r){r.registerPainter("canvas",E9)}var k9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(process.env.NODE_ENV!=="production"){var a=t.coordinateSystem;if(a!=="polar"&&a!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return An(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new ge,n=Dt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=Dt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=H.color.neutral00,u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(nt);function El(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=il(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(il(r,e,t[o]));return i.join(" ")}}function Hk(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!Y(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var wc=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o,s){this.removeAll();var l=Dt(t,-1,-1,2,2,null,s);l.attr({z2:oe(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=A9,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){xn(this.childAt(0))},e.prototype.downplay=function(){bn(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=e.getSymbolZ2(t,a),c=o!==this._symbolType,f=i&&i.disableAnimation;if(c){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(d):$e(v,d,s,a),Xr(v)}if(this._updateCommon(t,a,l,n,i),c){var v=this.childAt(0);if(!f){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,ot(v,d,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,c,f,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var _=i&&i.itemModel?i.itemModel:t.getItemModel(a),S=_.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),f=_.getModel(["select","itemStyle"]).getItemStyle(),c=_.getModel(["blur","itemStyle"]).getItemStyle(),h=S.get("focus"),v=S.get("blurScope"),d=S.get("disabled"),p=Lt(_),g=S.getShallow("scale"),m=_.getShallow("cursor")}var x=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var b=No(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var w=t.getItemVisual(a,"style"),C=w.fill;if(s instanceof $t){var E=s.style;s.useStyle(U({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(U({},w)):s.useStyle(w),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=t.getItemVisual(a,"liftZ"),D=this._z2;T!=null?D==null&&(this._z2=s.z2,s.z2+=T):D!=null&&(s.z2=D,this._z2=null);var A=o&&o.useNameLabel;Vt(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:C,defaultOpacity:w.opacity});function I(N){return A?t.getName(N):El(t,N)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;M.scaleX=this._sizeX*L,M.scaleY=this._sizeY*L,this.setSymbolScale(1),ut(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=be(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&si(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();si(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return cl(t.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(t,a){return t.getItemVisual(a,"z2")},e})(ge);function A9(r,e){this.parent.drift(r,e)}function nd(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a&&a.isIgnore&&a.isIgnore(t))&&!(a&&a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function $k(r){return r!=null&&!de(r)&&(r={isIgnore:r}),r||{}}function Uk(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Lt(e),cursorStyle:e.get("cursor")}}function Wk(r,e,t,a,n,i,o){var s=new r(e,t,a,n);return s.setPosition(i),e.setItemGraphicEl(t,s),o.add(s),s}var Cc=(function(){function r(e){this.group=new ge,this._SymbolCtor=e||wc}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=$k(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=Uk(e),u={disableAnimation:s},c=t.getSymbolPoint||function(f){return e.getItemLayout(f)};i||a.removeAll(),e.diff(i).add(function(f){var h=c(f);nd(e,h,f,t)&&Wk(o,e,f,l,u,h,a)}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!nd(e,d,f,t)){a.remove(v);return}var p=e.getItemVisual(f,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)a.remove(v),v=new o(e,f,l,u),v.setPosition(d);else{v.updateData(e,f,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):$e(v,m,n)}a.add(v),e.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var a=this,n=t.getStore(),i=0,o=n.count();i<o;i++){var s=t.getItemGraphicEl(i),l=a._getSymbolPoint(i);nd(t,l,i,e)?(s=s||Wk(a._SymbolCtor,t,i,a._seriesScope,{disableAnimation:!0},l,a.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(a.group.remove(s),t.setItemGraphicEl(i,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Uk(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a,n){this._progressiveEls=[],n=$k(n);function i(u){u.isGroup||(u.incremental=a,u.ensureState("emphasis").hoverLayer=qs)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(nd(t,s,o,n)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){li(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r})();function Yk(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=M9(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=K(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return di(e,f[0])&&(h=!0,f[0]=v),di(e,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function M9(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:Ge(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function Xk(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function ea(r,e){return!isFinite(r)||!isFinite(e)}var I9=typeof Float32Array!==Hs?Float32Array:void 0,L9=typeof Float64Array!==Hs?Float64Array:void 0;function ja(r){return t1({ctor:I9},r).arr}function t1(r,e){process.env.NODE_ENV!=="production"&&Z(e!=null&&isFinite(e)&&e>=0&&r.hasOwnProperty("ctor"));var t=r.arr,a=r.ctor;if(e>oh&&(e=oh),!t||r.typed&&t.length<e){var n=void 0;if(a)try{n=new a(e),r.typed=!0,t&&n.set(t)}catch(s){process.env.NODE_ENV!=="production"&&Be(s)}if(!n&&(n=[],r.typed=!1,t))for(var i=0,o=t.length;i<o;i++)n[i]=t[i];r.arr=n}return r}function N9(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function P9(r,e,t,a,n,i,o,s){for(var l=N9(r,e),u=[],c=[],f=[],h=[],v=[],d=[],p=[],g=Yk(n,e,o),m=r.getLayout("points")||[],_=e.getLayout("points")||[],S=0;S<l.length;S++){var x=l[S],b=!0,w=void 0,C=void 0;switch(x.cmd){case"=":w=x.idx*2,C=x.idx1*2;var E=m[w],T=m[w+1],D=_[C],A=_[C+1];(isNaN(E)||isNaN(T))&&(E=D,T=A),u.push(E,T),c.push(D,A),f.push(t[w],t[w+1]),h.push(a[C],a[C+1]),p.push(e.getRawIndex(x.idx1));break;case"+":var I=x.idx,M=g.dataDimsForPoint,L=n.dataToPoint([e.get(M[0],I),e.get(M[1],I)]);C=I*2,u.push(L[0],L[1]),c.push(_[C],_[C+1]);var N=Xk(g,n,e,I);f.push(N[0],N[1]),h.push(a[C],a[C+1]),p.push(e.getRawIndex(I));break;case"-":b=!1}b&&(v.push(x),d.push(d.length))}d.sort(function(V,q){return p[V]-p[q]});for(var R=u.length,P=ja(R),O=ja(R),G=ja(R),F=ja(R),B=[],S=0;S<d.length;S++){var $=d[S],j=S*2,W=$*2;P[j]=u[W],P[j+1]=u[W+1],O[j]=c[W],O[j+1]=c[W+1],G[j]=f[W],G[j+1]=f[W+1],F[j]=h[W],F[j+1]=h[W+1],B[S]=v[$]}return{current:P,next:O,stackedOnCurrent:G,stackedOnNext:F,status:B}}var gi=Math.min,mi=Math.max;function r1(r,e,t,a,n,i,o,s,l){for(var u,c,f,h,v,d,p=t,g=0;g<a;g++){var m=e[p*2],_=e[p*2+1];if(p>=n||p<0)break;if(ea(m,_)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](m,_),f=m,h=_;else{var S=m-u,x=_-c;if(S*S+x*x<.5){p+=i;continue}if(o>0){for(var b=p+i,w=e[b*2],C=e[b*2+1];w===m&&C===_&&g<a;)g++,b+=i,p+=i,w=e[b*2],C=e[b*2+1],m=e[p*2],_=e[p*2+1],S=m-u,x=_-c;var E=g+1;if(l)for(;ea(w,C)&&E<a;)E++,b+=i,w=e[b*2],C=e[b*2+1];var T=.5,D=0,A=0,I=void 0,M=void 0;if(E>=a||ea(w,C))v=m,d=_;else{D=w-u,A=C-c;var L=m-u,N=w-m,R=_-c,P=C-_,O=void 0,G=void 0;if(s==="x"){O=Math.abs(L),G=Math.abs(N);var F=D>0?1:-1;v=m-F*O*o,d=_,I=m+F*G*o,M=_}else if(s==="y"){O=Math.abs(R),G=Math.abs(P);var B=A>0?1:-1;v=m,d=_-B*O*o,I=m,M=_+B*G*o}else O=Math.sqrt(L*L+R*R),G=Math.sqrt(N*N+P*P),T=G/(G+O),v=m-D*o*(1-T),d=_-A*o*(1-T),I=m+D*o*T,M=_+A*o*T,I=gi(I,mi(w,m)),M=gi(M,mi(C,_)),I=mi(I,gi(w,m)),M=mi(M,gi(C,_)),D=I-m,A=M-_,v=m-D*O/G,d=_-A*O/G,v=gi(v,mi(u,m)),d=gi(d,mi(c,_)),v=mi(v,gi(u,m)),d=mi(d,gi(c,_)),D=m-v,A=_-d,I=m+D*G/O,M=_+A*G/O}r.bezierCurveTo(f,h,v,d,m,_),f=I,h=M}else r.lineTo(m,_)}u=m,c=_,p+=i}return g}var Zk=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),R9=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Zk},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&ea(n[o*2-2],n[o*2-1]);o--);for(;i<o&&ea(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=r1(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=Ga.CMD,s,l,u=a==="x",c=[],f=0;f<i.length;){var h=i[f++],v=void 0,d=void 0,p=void 0,g=void 0,m=void 0,_=void 0,S=void 0;switch(h){case o.M:s=i[f++],l=i[f++];break;case o.L:if(v=i[f++],d=i[f++],S=u?(t-s)/(v-s):(t-l)/(d-l),S<=1&&S>=0){var x=u?(d-l)*S+l:(v-s)*S+s;return u?[t,x]:[x,t]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],g=i[f++],m=i[f++],_=i[f++];var b=u?Vf(s,v,p,m,t,c):Vf(l,d,g,_,t,c);if(b>0)for(var w=0;w<b;w++){var C=c[w];if(C<=1&&C>=0){var x=u?Ot(l,d,g,_,C):Ot(s,v,p,m,C);return u?[t,x]:[x,t]}}s=m,l=_;break}}},e})(Re),O9=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Zk),qk=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new O9},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&ea(n[s*2-2],n[s*2-1]);s--);for(;o<s&&ea(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=r1(t,n,o,s,s,1,a.smooth,l,a.connectNulls);r1(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e})(Re);function Kk(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=t.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new Le({shape:{x:o,y:s,width:l,height:u}});if(e){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(f.shape.x+=l),f.shape.width=0):(d||(f.shape.y+=u),f.shape.height=0);var p=ce(n)?function(g){n(g,f)}:null;ot(f,{shape:{width:l,height:u,x:o,y:s}},t,null,a,p)}return f}function jk(r,e,t){var a=r.getArea(),n=He(a.r0,1),i=He(a.r,1),o=new ar({shape:{cx:He(r.cx,1),cy:He(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,ot(o,{shape:{endAngle:a.endAngle,r:i}},t)}return o}function Zo(r,e,t,a,n){if(r){if(r.type==="polar")return jk(r,e,t);if(r.type==="cartesian2d")return Kk(r,e,t,a,n)}else return null;return null}var Tc=0,Ec=1,Dc=2;function Dl(r,e,t){r?(process.env.NODE_ENV!=="production"&&Z(t),e.setClipPath(t)):e.removeClipPath()}function Qk(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function qo(r,e){return r.type===e}function Jk(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}var eA={};function tA(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||ae(r,"text")))}function rA(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},ae(a,"text")&&(o.text=a.text),ae(a,"rich")&&(o.rich=a.rich),ae(a,"textFill")&&(o.fill=a.textFill),ae(a,"textStroke")&&(o.stroke=a.textStroke),ae(a,"fontFamily")&&(o.fontFamily=a.fontFamily),ae(a,"fontSize")&&(o.fontSize=a.fontSize),ae(a,"fontStyle")&&(o.fontStyle=a.fontStyle),ae(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=ae(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),ae(a,"textPosition")&&(n.position=a.textPosition),ae(a,"textOffset")&&(n.offset=a.textOffset),ae(a,"textRotation")&&(n.rotation=a.textRotation),ae(a,"textDistance")&&(n.distance=a.textDistance)}return aA(o,r),k(o.rich,function(l){aA(l,l)}),{textConfig:n,textContent:i}}function aA(r,e){e&&(e.font=e.textFont||e.font,ae(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),ae(e,"textAlign")&&(r.align=e.textAlign),ae(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),ae(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),ae(e,"textWidth")&&(r.width=e.textWidth),ae(e,"textHeight")&&(r.height=e.textHeight),ae(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),ae(e,"textPadding")&&(r.padding=e.textPadding),ae(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),ae(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),ae(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),ae(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),ae(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),ae(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),ae(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function nA(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||H.color.neutral99;iA(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||H.color.neutral00,!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||H.color.neutral00),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,k(e.rich,function(s){iA(s,s)}),a}function iA(r,e){e&&(ae(e,"fill")&&(r.textFill=e.fill),ae(e,"stroke")&&(r.textStroke=e.fill),ae(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),ae(e,"font")&&(r.font=e.font),ae(e,"fontStyle")&&(r.fontStyle=e.fontStyle),ae(e,"fontWeight")&&(r.fontWeight=e.fontWeight),ae(e,"fontSize")&&(r.fontSize=e.fontSize),ae(e,"fontFamily")&&(r.fontFamily=e.fontFamily),ae(e,"align")&&(r.textAlign=e.align),ae(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),ae(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),ae(e,"width")&&(r.textWidth=e.width),ae(e,"height")&&(r.textHeight=e.height),ae(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),ae(e,"padding")&&(r.textPadding=e.padding),ae(e,"borderColor")&&(r.textBorderColor=e.borderColor),ae(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),ae(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),ae(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),ae(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),ae(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),ae(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),ae(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),ae(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),ae(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),ae(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function a1(r,e){if(process.env.NODE_ENV!=="production"){var t=r+"^_^"+e;eA[t]||(console.warn('[ECharts] DEPRECATED: "'+r+'" has been deprecated. '+e),eA[t]=!0)}}function oA(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function sA(r){for(var e=qt(),t=qt(),a=0;a<r.length;){var n=r[a++],i=r[a++];ea(n,i)||(om(e,n),om(t,i))}return[e,t]}function lA(r,e){var t=sA(r),a=t[0],n=t[1],i=sA(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(a[1]-o[1]),Math.abs(n[1]-s[1]))}function uA(r){return Ge(r)?r:r?.5:0}function V9(r,e,t){if(t.valueDim==null)return[];for(var a=e.count(),n=ja(a*2),i=0;i<a;i++){var o=Xk(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function yi(r,e,t,a,n){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],h=[];if(n){for(l=0;l<r.length;l+=2){var v=e||r;ea(v[l],v[l+1])||h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(f[0]=r[l+2],f[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),a){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var d=(c[o]+f[o])/2,p=[];u[o]=p[o]=d,u[1-o]=c[1-o],p[1-o]=f[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function B9(r,e){var t=[],a=r.length,n,i;function o(c,f,h){var v=c.coord,d=(h-v)/(f.coord-v),p=y8(d,[c.color,f.color]);return{coord:h,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function z9(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(!i){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(n),u=K(i.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=B9(u,n==="x"?t.getWidth():t.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";k(h,function(S){S.offset=(S.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var _=new vo(0,0,0,0,h,!0);return _[n]=p,_[n+"2"]=g,_}}function G9(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&F9(i,e))){var o=e.mapDimension(i.dim),s={};return k(i.getViewLabels(),function(l){l.tick.offInterval||(s[xl(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function F9(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(wc.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function H9(r){for(var e=r.length/2;e>0&&ea(r[e*2-2],r[e*2-1]);e--);return e-1}function cA(r,e){return[r[e*2],r[e*2+1]]}function $9(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!ea(o,r[u*2+1-n])){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function fA(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<pr.length;e++)if(r.get([pr[e],"endLabel","show"]))return!0;return!1}function n1(r,e,t,a){if(qo(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=fA(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Kk(e,t,a,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&a.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),jk(e,t,a)}function U9(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var W9=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new ge,a=new Cc;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t,this._changePolyState=ie(this._changePolyState,this)},e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],f=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!a.ssr&&t.get("animation"),_=!u.isEmpty(),S=u.get("origin"),x=Yk(i,s,S),b=_&&V9(i,s,x),w=t.get("showSymbol"),C=t.get("connectNulls"),E=w&&!f&&G9(t,s,i),T=this._data;T&&T.eachItemGraphicEl(function(ne,we){ne.__temp&&(o.remove(ne),T.setItemGraphicEl(we,null))}),w||v.remove(),o.add(g);var D=f?!1:t.get("step"),A;i&&i.getArea&&t.get("clip",!0)&&(A=i.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var I=z9(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&D===this._step))w&&v.updateData(s,{isIgnore:E,clipShape:A,disableAnimation:!0,getSymbolPoint:function(ne){return[c[ne*2],c[ne*2+1]]}}),m&&this._initSymbolLabelAnimation(s,i,A),D&&(b&&(b=yi(b,c,i,D,C)),c=yi(c,null,i,D,C)),d=this._newPolyline(c),_?p=this._newPolygon(c,b):p&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(t,i,bo(I)),g.setClipPath(n1(this,i,!0,t));else{_&&!p?p=this._newPolygon(c,b):p&&!_&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(t,i,bo(I));var M=g.getClipPath();if(M){var L=n1(this,i,!1,t);ot(M,{shape:L.shape},t)}else g.setClipPath(n1(this,i,!0,t));w&&v.updateData(s,{isIgnore:E,clipShape:A,disableAnimation:!0,getSymbolPoint:function(ne){return[c[ne*2],c[ne*2+1]]}}),(!oA(this._stackedOnPoints,b)||!oA(this._points,c))&&(m?this._doUpdateAnimation(s,b,i,n,D,S,C):(D&&(b&&(b=yi(b,c,i,D,C)),c=yi(c,null,i,D,C)),d.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:b})))}var N=t.getModel("emphasis"),R=N.get("focus"),P=N.get("blurScope"),O=N.get("disabled");if(d.useStyle(me(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),It(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var G=d.getState("emphasis").style;G.lineWidth=+d.style.lineWidth+1}be(d).seriesIndex=t.seriesIndex,ut(d,R,P,O);var F=uA(t.get("smooth")),B=t.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:B,connectNulls:C}),p){var $=s.getCalculationInfo("stackedOnSeries"),j=0;p.useStyle(me(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(j=uA($.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:j,smoothMonotone:B,connectNulls:C}),It(p,t,"areaStyle"),be(p).seriesIndex=t.seriesIndex,ut(p,R,P,O)}var W=this._changePolyState;s.eachItemGraphicEl(function(ne){ne&&(ne.onHoverStateChange=W)}),this._polyline.onHoverStateChange=W,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=c,this._step=D,this._valueOrigin=S;var V=t.get("triggerEvent"),q=t.get("triggerLineEvent");process.env.NODE_ENV!=="production"&&q&&a1("triggerLineEvent","Use the `triggerEvent` option instead.");var Ce=q===!0||V===!0||V==="line",fe=q===!0||V===!0||V==="area";this.packEventData(t,d,Ce),p&&this.packEventData(t,p,fe)},e.prototype.packEventData=function(t,a,n){be(a).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:a===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=Ki(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(ea(c,f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new wc(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else et.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=Ki(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else et.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;Th(this._polyline,t),a&&Th(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new R9({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new qk({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");ce(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=ce(f)?f(null):f;t.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,_=void 0,S=void 0;if(n)if(o){var x=n,b=a.pointToCoord(g);i?(m=x.startAngle,_=x.endAngle,S=-b[1]/180*Math.PI):(m=x.r0,_=x.r,S=b[0])}else{var w=n;i?(m=w.x,_=w.x+w.width,S=v.x):(m=w.y+w.height,_=w.y,S=v.y)}var C=_===m?0:(S-m)/(_-m);l&&(C=1-C);var E=ce(f)?f(d):c*C+h,T=p.getSymbolPath(),D=T.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:E}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(fA(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Fe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=H9(l);c>=0&&(Vt(s,Lt(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?Hk(o,v):El(o,f)},enableTextSetter:!0},U9(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=n.getLayout("points"),h=n.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),_=g.inverse,S=a.shape,x=_?m?S.x:S.y+S.height:m?S.x+S.width:S.y,b=(m?p:0)*(_?-1:1),w=(m?0:-p)*(_?-1:1),C=m?"x":"y",E=$9(f,x,C),T=E.range,D=T[1]-T[0],A=void 0;if(D>=1){if(D>1&&!v){var I=cA(f,T[0]);u.attr({x:I[0]+b,y:I[1]+w}),o&&(A=h.getRawValue(T[0]))}else{var I=c.getPointOn(x,C);I&&u.attr({x:I[0]+b,y:I[1]+w});var M=h.getRawValue(T[0]),L=h.getRawValue(T[1]);o&&(A=bw(n,d,M,L,E.t))}i.lastFrameIndex=T[0]}else{var N=t===1||i.lastFrameIndex>0?T[0]:0,I=cA(f,N);o&&(A=h.getRawValue(N)),u.attr({x:I[0]+b,y:I[1]+w})}if(o){var R=Qs(u);typeof R.setLabelText=="function"&&R.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=t.hostModel,h=P9(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=yi(h.stackedOnCurrent,h.current,n,o,l),v=yi(h.current,null,n,o,l),g=yi(h.stackedOnNext,h.next,n,o,l),p=yi(h.next,null,n,o,l)),lA(v,p)>3e3||c&&lA(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),$e(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),$e(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var _=[],S=h.status,x=0;x<S.length;x++){var b=S[x].cmd;if(b==="="){var w=t.getItemGraphicEl(S[x].idx1);w&&_.push({el:w,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,E=0;E<_.length;E++){var T=_[E].el,D=_[E].ptIdx*2;T.x=C[D],T.y=C[D+1],T.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(et);function kc(r,e){return{seriesType:r,plan:Io(),reset:function(t){var a=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(n){var s=K(n.dimensions,function(v){return a.mapDimension(v)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");di(a,s[0])&&(s[0]=u),di(a,s[1])&&(s[1]=u);var c=a.getStore(),f=a.getDimensionIndex(s[0]),h=a.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&ja(p*l),m=[],_=[],S=v.start,x=0;S<v.end;S++){var b=void 0;if(l===1){var w=c.get(f,S);b=n.dataToPoint(w,null,_)}else m[0]=c.get(f,S),m[1]=c.get(h,S),b=n.dataToPoint(m,null,_);o?(g[x++]=b[0],g[x++]=b[1]):d.setItemLayout(S,b.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:v.start,end:v.end}))}}}}}}var Y9={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},X9=function(r){return Math.round(r.length/2)};function hA(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=a.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;Q(i)?d=Y9[i]:ce(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/v,d,X9))}}}}}function Z9(r){r.registerChartView(W9),r.registerSeriesModel(k9),r.registerLayout(kc("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,hA("line"))}var i1=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(ma),o1=null;function q9(r){o1||(o1=r)}function Ac(){return o1}var id="expandAxisBreak",vA="collapseAxisBreak",dA="toggleAxisBreak",s1="axisbreakchanged",K9={type:id,event:s1,update:"update",refineEvent:l1},j9={type:vA,event:s1,update:"update",refineEvent:l1},Q9={type:dA,event:s1,update:"update",refineEvent:l1};function l1(r,e,t,a){var n=[];return k(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function J9(r){r.registerAction(K9,e),r.registerAction(j9,e),r.registerAction(Q9,e);function e(t,a){var n=[],i=Vs(a,t);function o(s,l){k(i[s],function(u){var c=u.updateAxisBreaks(t);k(c.breaks,function(f){var h;n.push(me((h={},h[l]=u.componentIndex,h),f))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var _i=Math.PI,eY=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],tY=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ko=De(),pA=De(),gA=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,a=e.componentIndex,n=this.recordMap,i=n[t]||(n[t]=[]);return i[a]||(i[a]={ready:{}})},r})();function rY(r,e,t,a){var n=t.axis,i=e.ensureRecord(t),o=[],s,l=c1(r.axisName)&&Sl(r.nameLocation);k(a,function(d){var p=qa(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?Hr(Mc,g.transform):bs(Mc),p.transform&&Fr(Mc,Mc,p.transform),pe.copy(od,p.localRect),od.applyTransform(Mc),s?s.union(od):pe.copy(s=new pe(0,0,0,0),od))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",c=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-c)-Math.abs(p.label[u]-c)}),l&&s){var f=n.getExtent(),h=Math.min(f[0],f[1]),v=Math.max(f[0],f[1])-h;s.union(new pe(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Mc=ft(),od=new pe(0,0,0,0),mA=function(r,e,t,a,n,i){if(Sl(r.nameLocation)){var o=i.stOccupiedRect;o&&yA(NW({},o,i.transGroup.transform),a,n)}else _A(i.labelInfoList,i.dirVec,a,n)};function yA(r,e,t){var a=new _e;jv(r,e,a,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&N0(e,a)}function _A(r,e,t,a){for(var n=_e.dot(a,e)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||yA(s,t,a)}}var Sr=(function(){function r(e,t,a,n){this.group=new ge,this._axisModel=e,this._api=t,this._local={},this._shared=n||new gA(mA),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(e){if(process.env.NODE_ENV!=="production"){var t=this._shared.ensureRecord(this._axisModel).ready;Z(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1}var a=this._cfg.raw;a.position=e.position,a.labelOffset=e.labelOffset,this._resetCfgDetermined(a)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,a=t.getDefaultOption?t.getDefaultOption():{},n=oe(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=oe(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:oe(e.nameDirection,1),tickDirection:oe(e.tickDirection,1),labelDirection:oe(e.labelDirection,1),labelOffset:oe(e.labelOffset,0),silent:oe(e.silent,!0),axisName:n,nameLocation:fr(t.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:c1(n)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&(Z(o.position!=null),Z(o.rotation!=null)),this._cfg=o;var s=new ge({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new _e(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var a=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),k(aY,function(n){e[n]&&nY[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,t||{})}),this},r.innerTextLayout=function(e,t,a){var n=iw(t-e),i,o;return Ps(n)?(o=a>0?"top":"bottom",i="center"):Ps(n-_i)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<_i?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),aY=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],nY={axisLine:function(r,e,t,a,n,i,o){if(process.env.NODE_ENV!=="production"){var s=t.ensureRecord(a).ready;Z(!s.axisLine),s.axisLine=!0}var l=a.get(["axisLine","show"]);if(l==="auto"&&(l=!0,r.raw.axisLineAutoShow!=null&&(l=!!r.raw.axisLineAutoShow)),!!l){var u=a.axis.getExtent(),c=i.transform,f=[u[0],0],h=[u[1],0],v=f[0]>h[0];c&&(gt(f,f,c),gt(h,h,c));var d=U({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(a.get(["axisLine","breakLine"])&&xo(a.axis.scale))Ac().buildAxisBreakLine(a,n,i,p);else{var g=new Ct(U({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},p));Ks(g.shape,g.style.lineWidth),g.anid="line",n.add(g)}var m=a.get(["axisLine","symbol"]);if(m!=null){var _=a.get(["axisLine","symbolSize"]);Q(m)&&(m=[m,m]),(Q(_)||Ge(_))&&(_=[_,_]);var S=No(a.get(["axisLine","symbolOffset"])||0,_),x=_[0],b=_[1];k([{rotate:r.rotation+Math.PI/2,offset:S[0],r:0},{rotate:r.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(w,C){if(m[C]!=="none"&&m[C]!=null){var E=Dt(m[C],-x/2,-b/2,x,b,d.stroke,!0),T=w.r+w.offset,D=v?h:f;E.attr({rotation:w.rotate,x:D[0]+T*Math.cos(r.rotation),y:D[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabelEstimate:function(r,e,t,a,n,i,o,s){if(process.env.NODE_ENV!=="production"){var l=t.ensureRecord(a).ready;Z(!l.axisTickLabelDetermine),l.axisTickLabelEstimate=!0}var u=bA(e,n,s);u&&SA(r,e,t,a,n,i,o,ga.estimate)},axisTickLabelDetermine:function(r,e,t,a,n,i,o,s){if(process.env.NODE_ENV!=="production"){var l=t.ensureRecord(a).ready;l.axisTickLabelDetermine=!0}var u=bA(e,n,s);u&&SA(r,e,t,a,n,i,o,ga.determine);var c=lY(r,n,i,a);sY(r,e.labelLayoutList,c),uY(r,n,i,a,r.tickDirection)},axisName:function(r,e,t,a,n,i,o,s){var l=t.ensureRecord(a);if(process.env.NODE_ENV!=="production"){var u=l.ready;Z(u.axisTickLabelEstimate||u.axisTickLabelDetermine),u.axisName=!0}e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var c=r.axisName;if(c1(c)){var f=r.nameLocation,h=r.nameDirection,v=a.getModel("nameTextStyle"),d=a.get("nameGap")||0,p=a.axis.getExtent(),g=a.axis.inverse?-1:1,m=new _e(0,0),_=new _e(0,0);f==="start"?(m.x=p[0]-g*d,_.x=-g):f==="end"?(m.x=p[1]+g*d,_.x=g):(m.x=(p[0]+p[1])/2,m.y=r.labelOffset+h*d,_.y=h);var S=ft();_.transform(Yn(S,S,r.rotation));var x=a.get("nameRotate");x!=null&&(x=x*_i/180);var b,w;Sl(f)?b=Sr.innerTextLayout(r.rotation,x??r.rotation,h):(b=iY(r.rotation,f,x||0,p),w=r.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(b.rotation)),!isFinite(w)&&(w=null)));var C=v.getFont(),E=a.get("nameTruncate",!0)||{},T=E.ellipsis,D=Ft(r.raw.nameTruncateMaxWidth,E.maxWidth,w),A=s.nameMarginLevel||0,I=new Fe({x:m.x,y:m.y,rotation:b.rotation,silent:Sr.isLabelSilent(a),style:at(v,{text:c,font:C,overflow:"truncate",width:D,ellipsis:T,fill:v.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:v.get("align")||b.textAlign,verticalAlign:v.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(Tn({el:I,componentModel:a,itemName:c}),I.__fullText=c,I.anid="name",a.get("triggerEvent")){var M=Sr.makeAxisEventDataBase(a);M.targetType="axisName",M.name=c,be(I).eventData=M}i.add(I),I.updateTransform(),e.nameEl=I;var L=l.nameLayout=qa({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:Sl(f)?eY[A]:tY[A]});if(l.nameLocation=f,n.add(I),I.decomposeTransform(),r.shouldNameMoveOverlap&&L){var N=t.ensureRecord(a);process.env.NODE_ENV!=="production"&&Z(N.labelInfoList),t.resolveAxisNameOverlap(r,t,a,L,_,N)}}}};function SA(r,e,t,a,n,i,o,s){wA(e)||cY(r,e,n,s,a,o);var l=e.labelLayoutList;fY(r,a,l,i),dY(a,r.rotation,l);var u=r.optionHideOverlap;oY(a,l,u),u&&ik(Ze(l,function(c){return c&&!c.label.ignore})),rY(r,t,a,l)}function iY(r,e,t,a){var n=iw(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return Ps(n-_i/2)?(o=l?"bottom":"top",i="center"):Ps(n-_i*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<_i*1.5&&n>_i/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function oY(r,e,t){var a=r.axis,n=r.get(["axisLabel","customValues"]);if(NU(a))return;function i(u,c,f){var h=qa(e[c]),v=qa(e[f]),d=a.scale;if(!(!h||!v)){if(u==null){if(!t&&n)return;var p=Ko(h.label).labelInfo.tick;if(lc(d)&&p.notNice||or(d)&&p.offInterval){kl(h.label);return}}if(u===!1||h.suggestIgnore){kl(h.label);return}if(v.suggestIgnore){kl(v.label);return}var g=.1;if(!t){var m=[0,0,0,0];h=P0({marginForce:m},h),v=P0({marginForce:m},v)}jv(h,v,null,{touchThreshold:g})&&kl(u?v.label:h.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;i(o,0,1),i(s,l-1,l-2)}function sY(r,e,t){r.showMinorTicks||k(e,function(a){if(a&&a.label.ignore)for(var n=0;n<t.length;n++){var i=t[n],o=pA(i),s=Ko(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){kl(i);return}}})}function kl(r){r&&(r.ignore=!0)}function xA(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(gt(o,o,e),gt(s,s,e));var c=new Ct({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Ks(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c);var f=pA(c);f.onBand=!!r[l].onBand,f.tickValue=r[l].tickValue}return i}function lY(r,e,t,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),c=xA(u,t.transform,l,me(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}function uY(r,e,t,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),c=me(l.getLineStyle(),me(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var h=xA(s[f],t.transform,u,c,"minorticks_"+f),v=0;v<h.length;v++)e.add(h[v])}}function bA(r,e,t){if(wA(r)){var a=r.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&Z(r.labelGroup&&a);var n=a.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(e.remove(r.labelGroup),u1(r,null,null,null))}return!0}function cY(r,e,t,a,n,i){var o=n.axis,s=Ft(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new ge;t.add(l);var u=Wv(a);if(!s||o.scale.isBlank()){u1(e,[],l,u);return}var c=n.getModel("axisLabel"),f=o.getViewLabels(u),h=(Ft(r.raw.labelRotate,c.get("rotate"))||0)*_i/180,v=Sr.innerTextLayout(r.rotation,h,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],g=n.get("triggerEvent"),m=1/0,_=-1/0;k(f,function(x,b){var w,C=x.tick,E=x.formattedLabel,T=x.rawLabel,D=c,A=xl(o.scale,C);if(d&&d[A]){var I=d[A];de(I)&&I.textStyle&&(D=new ze(I.textStyle,c,n.ecModel))}var M=D.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=D.getShallow("align",!0)||v.textAlign,N=oe(D.getShallow("alignMinLabel",!0),L),R=oe(D.getShallow("alignMaxLabel",!0),L),P=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||v.textVerticalAlign,O=oe(D.getShallow("verticalAlignMinLabel",!0),P),G=oe(D.getShallow("verticalAlignMaxLabel",!0),P),F=10+(((w=C.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,F),_=Math.max(_,F);var B=new Fe({x:0,y:0,rotation:0,silent:Sr.isLabelSilent(n),z2:F,style:at(D,{text:E,align:b===0?N:b===f.length-1?R:L,verticalAlign:b===0?O:b===f.length-1?G:P,fill:ce(M)?M(o.type==="category"?T:o.type==="value"?A+"":A,b):M})});B.anid="label_"+A;var $=Ko(B);if($.labelInfo=x,$.layoutRotation=v.rotation,Tn({el:B,componentModel:n,itemName:E,formatterParamsExtra:{isTruncated:function(){return B.isTruncated},value:T,tickIndex:b}}),g){var j=Sr.makeAxisEventDataBase(n);j.targetType="axisLabel",j.value=T,j.tickIndex=b;var W=x.tick.break;if(W){var V=W.parsedBreak;j.break={start:V.vmin,end:V.vmax}}o.type==="category"&&(j.dataIndex=A),be(B).eventData=j,W&&vY(n,i,B,W)}p.push(B),l.add(B)});var S=K(p,function(x){return{label:x,priority:Ko(x).labelInfo.tick.break?x.z2+(_-m+1):x.z2,defaultAttr:{ignore:x.ignore}}});u1(e,S,l,u)}function wA(r){return!!r.labelLayoutList}function u1(r,e,t,a){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=a}function fY(r,e,t,a){var n=e.get(["axisLabel","margin"]);k(t,function(i,o){var s=qa(i);if(s){var l=s.label,u=Ko(l);s.suggestIgnore=l.ignore,l.ignore=!1,ka(In,hY);var c=e.axis;In.x=c.dataToCoord(xl(c.scale,u.labelInfo.tick)),In.y=r.labelOffset+r.labelDirection*n,In.rotation=u.layoutRotation,a.add(In),In.updateTransform(),a.remove(In),In.decomposeTransform(),ka(l,In),l.markRedraw(),Kv(s,!0),qa(s)}})}var In=new Le,hY=new Le;function c1(r){return!!r}function vY(r,e,t,a){t.on("click",function(n){var i={type:id,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function dY(r,e,t){var a=St();if(a){var n=a.retrieveAxisBreakPairs(t,function(o){return o&&Ko(o.label).labelInfo.tick.break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&k(n,function(o){Ac().adjustBreakLabelPair(r.axis.inverse,e,[qa(t[o[0]]),qa(t[o[1]])])})}}function sd(r,e,t){t=t||{};var a=e.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,h=l==="x"?[u[2]-f,u[3]+f]:[u[0]-f,u[1]+f];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[c.onZero]=Math.max(Math.min(v,h[1]),h[0])}n.position=[l==="y"?h[c[s]]:u[0],l==="x"?h[c[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?h[c[o]]-h[c.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ft(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var p=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-p:p,n.z2=1,n}function pY(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function gY(r){var e={xAxisModel:null,yAxisModel:null};return k(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,mt).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(n+' "'+fr(r.get(n+"Index"),r.get(n+"Id"),0)+'" not found');e[a]=i}),e}function mY(r,e,t,a,n,i){for(var o=sd(r,t),s=!1,l=!1,u=0;u<e.length;u++)cD(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new Sr(t,a,o,n)}function yY(r,e,t){var a=sd(e,t);if(process.env.NODE_ENV!=="production"){var n=r.__getRawCfg();k(Oe(a),function(i){i!=="position"&&i!=="labelOffset"&&Z(a[i]===n[i])})}r.updateCfg(a)}function _Y(r){return r.dim+"_"+r.index}function SY(){UU("liPosMinGap",xY)}function xY(r,e,t){var a=re(),n=t.serUids,i=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,f=x2(c);function h(S){Fv(r,e.sers,function(x){var b=x.getRawData(),w=b.getDimensionIndex(b.mapDimension(s.dim));w>=0&&S(w,x,b.getStore())})}var v=0;if(h(function(S,x,b){a.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),v+=b.count()}),(!n||n.keys().length!==a.keys().length)&&(o=!0),!o&&i!=null){e.liPosMinGap=i;return}t1(jo,v);var d=0;h(function(S,x,b){for(var w=0,C=b.count();w<C;++w){var E=b.get(S,w);isFinite(E)&&(!c||b2(f,E))&&(u&&(E=l.transformIn(E,null)),jo.arr[d++]=E)}});var p=jo.typed?jo.arr.subarray(0,d):(jo.arr.length=d,jo.arr);jo.typed?p.sort():Zt(p);for(var g=1/0,m=1;m<d;++m){var _=p[m]-p[m-1];_>0&&_<g&&(g=_)}t.liPosMinGap=e.liPosMinGap=Ir(g)?g:d>0?wD:VU,t.serUids=a}var jo=t1({ctor:L9},50);function ld(r){return function(e,t){var a=Qt(e,{fromStat:{key:r}});if(Ir(a.w2))return[-a.w2/2,a.w2/2]}}function Qo(r){return r+pc}function Jo(r,e){return r+pc+e}function f1(r){return SY(),{liPosMinGap:!or(r.scale)}}var Qa="bar",Ic="pictorialBar";function CA(r,e,t,a){C0(r,{key:e,seriesType:t,coordSysType:a,getMetrics:f1})}function TA(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!=="production"&&Z(Ir(e)),e}var EA={left:0,right:0,top:0,bottom:0},ud=["25%","25%"],Sa="cartesian2d",bY=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,a){var n=To(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&Ua(t.outerBounds,n)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Ua(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:EA,outerBoundsContain:"all",outerBoundsClampWidth:ud[0],outerBoundsClampHeight:ud[1],backgroundColor:H.color.transparent,borderWidth:1,borderColor:H.color.neutral30},e})(Ne),wY=zs(),h1="__ec_stack_";function DA(r){return r.get("stack")||h1+r.seriesIndex}function CY(r){if(or(r.axis.scale)){for(var e=Qt(r.axis),t=[],a=0;a<r.count;a++)t.push(me({stackId:h1+a},r));for(var n=kA({bandWidthResult:e,seriesInfo:t}),i=[],a=0;a<r.count;a++){var o=n[h1+a];o.offsetCenter=o.offset+o.width/2,i.push(o)}return i}}function TY(r,e){var t=EY(r,e);return t.columnMap=kA(t),t}function EY(r,e){var t=Jo(e,Sa),a=[],n=Qt(r,{fromStat:{key:t},min:1});return zo(r,t,function(i){a.push({barWidth:ee(i.get("barWidth"),n.w),barMaxWidth:ee(i.get("barMaxWidth"),n.w),barMinWidth:ee(i.get("barMinWidth")||(IA(i)?.5:1),n.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:DA(i)})}),{bandWidthResult:n,seriesInfo:a}}function kA(r){var e=r.bandWidthResult.w,t=e,a=0,n,i,o=[],s={};k(r.seriesInfo,function(p,g){g||(i=p.defaultBarGap||0);var m=p.stackId;ae(s,m)||a++;var _=s[m];_||(_=s[m]={width:0,maxWidth:0},o.push(m));var S=p.barWidth;S&&!_.width&&(_.width=S,S=Ke(t,S),t-=S);var x=p.barMaxWidth;x&&(_.maxWidth=x);var b=p.barMinWidth;b&&(_.minWidth=b);var w=p.barGap;w!=null&&(i=w);var C=p.barCategoryGap;C!=null&&(n=C)}),n==null&&(n=Ie(35-o.length*4,15)+"%");var l=ee(n,e),u=ee(i,1),c=(t-l)/(a+(a-1)*u);c=Ie(c,0),k(o,function(p){var g=s[p],m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Ke(S,m)),_&&(S=Ie(S,_)),g.width=S,t-=S+u*S,a--}else{var S=c;m&&m<S&&(S=Ke(m,t)),_&&_>S&&(S=_),S!==c&&(g.width=S,t-=S+u*S,a--)}}),c=(t-l)/(a+(a-1)*u),c=Ie(c,0);var f=0,h;k(o,function(p){var g=s[p];g.width||(g.width=c),h=g,f+=g.width*(1+u)}),h&&(f-=h.width*u);var v={},d=-f/2;return k(o,function(p){var g=s[p];v[p]=v[p]||{bandWidth:e,offset:d,width:g.width},d+=g.width*(1+u)}),v}function AA(r){return{seriesType:r,overallReset:function(e){var t=Jo(r,Sa);b0(e,t,function(a){process.env.NODE_ENV!=="production"&&Z(a instanceof i1);var n=TY(a,r);zo(a,t,function(i){var o=n.columnMap[DA(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function MA(r){return{seriesType:r,plan:Io(),reset:function(e){if(pY(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),f=di(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=i.toGlobalCoord(i.dataToCoord(TA(i))),d=IA(e),p=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),m=t.getLayout("size"),_=t.getLayout("offset");return{progress:function(S,x){for(var b=S.count,w=d&&ja(b*3),C=d&&l&&ja(b*3),E=d&&ja(b),T=a.master.getRect(),D=h?T.width:T.height,A,I=x.getStore(),M=0;(A=S.next())!=null;){var L=I.get(f?g:o,A),N=I.get(s,A),R=v,P=void 0;f&&(P=+L-I.get(o,A));var O=void 0,G=void 0,F=void 0,B=void 0;if(h){var $=a.dataToPoint([L,N]);f&&(R=a.dataToPoint([P,N])[0]),O=R,G=$[1]+_,F=$[0]-R,B=m,dt(F)<p&&(F=(F<0?-1:1)*p)}else{var $=a.dataToPoint([N,L]);f&&(R=a.dataToPoint([N,P])[1]),O=$[0]+_,G=R,F=m,B=$[1]-R,dt(B)<p&&(B=(B<=0?-1:1)*p)}d?(w[M]=O,w[M+1]=G,w[M+2]=h?F:B,C&&(C[M]=h?T.x:O,C[M+1]=h?G:T.y,C[M+2]=D),E[A]=A):x.setItemLayout(A,{x:O,y:G,width:F,height:B}),M+=3}d&&x.setLayout({largePoints:w,largeDataIndices:E,largeBackgroundPoints:C,valueAxisHorizontal:h})}}}}}}function IA(r){return r.pipelineContext&&r.pipelineContext.large}function DY(r){return ld(Jo(r,Sa))}function LA(r){wY(r,function(){function e(t){var a=Jo(t,Sa);CA(r,a,t,Sa),$v(a,DY(t))}e("bar"),e("pictorialBar")})}var Lc=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return An(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)k(i.getAxes(),function(h,v){if(h.type==="category"&&a!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=a[v]==="x1"||a[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var _=void 0,S=void 0,x=1,b=0;b<d.length;b++){var w=d[b].coord,C=b===d.length-1?d[b-1].tickValue+x:d[b].tickValue;if(C===g){S=w;break}else if(C<g)_=w;else if(_!=null&&C>g){S=(w+_)/2;break}b===1&&(x=C-d[0].tickValue)}S==null&&(_?_&&(S=d[d.length-1].coord):S=d[0].coord),s[v]=h.toGlobalCoord(S)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(nt);nt.registerClass(Lc);var kY=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return An(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,a){var n=Tw(this,t,a);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series."+Qa,e.dependencies=["grid","polar"],e.defaultOption=ui(Lc.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:H.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Lc),AY=(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})(),cd=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new AY},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,f=a.endAngle,h=a.clockwise,v=Math.PI*2,d=h?f-c<v:c-f<v;d||(c=f-(h?v:-v));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),_=Math.sin(f);d?(t.moveTo(p*o+n,g*o+i),t.arc(p*u+n,g*u+i,l,-Math.PI+c,c,!h)):t.moveTo(p*s+n,g*s+i),t.arc(n,i,s,c,f,!h),t.arc(m*u+n,_*u+i,l,f-Math.PI*2,f-Math.PI,!h),o!==0&&t.arc(n,i,o,f,c,h)},e})(Re);function MY(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Jf(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,f=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,_=t?Math.abs(h-v)/2:0,S=Math.cos,x=Math.sin,b=c+h*S(p),w=f+h*x(p),C="left",E="top";switch(s){case"startArc":b=c+(v-l)*S(m),w=f+(v-l)*x(m),C="center",E="top";break;case"insideStartArc":b=c+(v+l)*S(m),w=f+(v+l)*x(m),C="center",E="bottom";break;case"startAngle":b=c+d*S(p)+fd(p,l+_,!1),w=f+d*x(p)+hd(p,l+_,!1),C="right",E="middle";break;case"insideStartAngle":b=c+d*S(p)+fd(p,-l+_,!1),w=f+d*x(p)+hd(p,-l+_,!1),C="left",E="middle";break;case"middle":b=c+d*S(m),w=f+d*x(m),C="center",E="middle";break;case"endArc":b=c+(h+l)*S(m),w=f+(h+l)*x(m),C="center",E="bottom";break;case"insideEndArc":b=c+(h-l)*S(m),w=f+(h-l)*x(m),C="center",E="top";break;case"endAngle":b=c+d*S(g)+fd(g,l+_,!0),w=f+d*x(g)+hd(g,l+_,!0),C="left",E="middle";break;case"insideEndAngle":b=c+d*S(g)+fd(g,-l+_,!0),w=f+d*x(g)+hd(g,-l+_,!0),C="right",E="middle";break;default:return Jf(a,n,i)}return a=a||{},a.x=b,a.y=w,a.align=C,a.verticalAlign=E,a}}function IY(r,e,t,a){if(Ge(a)){r.setTextConfig({rotation:a});return}else if(Y(e)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function fd(r,e,t){return e*Math.sin(r)*(t?-1:1)}function hd(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Ja(r,e,t){var a=r.get("borderRadius");if(a==null)return t?{cornerRadius:0}:null;Y(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:K(a,function(i){return Ia(i,n)})}}var v1=Math.max,d1=Math.min,LY=(function(r){z(e,r);function e(){var t=r.call(this)||this;return t.type=Qa,t._isFirstFrame=!0,t}return e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i)):process.env.NODE_ENV!=="production"&&lt("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){li(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=NY(t,u);v&&this._enableRealtimeSort(v,s,n);var d=t.get("clip",!0)||v,p=u.getArea();o.removeClipPath();var g=t.get("roundCap",!0),m=t.get("showBackground",!0),_=t.getModel("backgroundStyle"),S=_.get("borderRadius")||0,x=[],b=this._backgroundEls,w=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function E(A){var I=vd[u.type](s,A);if(!I)return null;var M=GY(u,f,I);return M.useStyle(_.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",S):M.setShape("cornerRadius",S),x[A]=M,M}s.diff(l).add(function(A){var I=s.getItemModel(A),M=vd[u.type](s,A,I);if(M&&(m&&E(A),!(!s.hasValue(A)||!VA[u.type](M)))){var L=!1;d&&(L=NA[u.type](p,M));var N=PA[u.type](t,s,A,M,f,h,c.model,!1,g);v&&(N.forceLabelAnimation=!0),zA(N,s,A,I,M,t,f,u.type==="polar"),w?N.attr({shape:M}):v?RA(v,h,N,M,A,f,!1,!1):ot(N,{shape:M},t,A),s.setItemGraphicEl(A,N),o.add(N),N.ignore=L}}).update(function(A,I){var M=s.getItemModel(A),L=vd[u.type](s,A,M);if(L){if(m){var N=void 0;b.length===0?N=E(I):(N=b[I],N.useStyle(_.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",S):N.setShape("cornerRadius",S),x[A]=N);var R=vd[u.type](s,A),P=$A(f,R,u);$e(N,{shape:P},h,A)}var O=l.getItemGraphicEl(I);if(!s.hasValue(A)||!VA[u.type](L)){o.remove(O);return}var G=!1;d&&(G=NA[u.type](p,L),G&&o.remove(O));var F=O&&(O.type==="sector"&&g||O.type==="sausage"&&!g);if(F&&(O&&Cn(O,t,I),O=null),O?Xr(O):O=PA[u.type](t,s,A,L,f,h,c.model,!0,g),v&&(O.forceLabelAnimation=!0),C){var B=O.getTextContent();if(B){var $=Qs(B);$.prevValue!=null&&($.prevValue=$.value)}}else zA(O,s,A,M,L,t,f,u.type==="polar");w?O.attr({shape:L}):v?RA(v,h,O,L,A,f,!0,C):$e(O,{shape:L},t,A,null),s.setItemGraphicEl(A,O),O.ignore=G,o.add(O)}}).remove(function(A){var I=l.getItemGraphicEl(A);I&&Cn(I,t,A)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new ge);T.removeAll();for(var D=0;D<x.length;++D)T.add(x[D]);o.add(T),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(t,a,n){this._clear(),FA(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),FA(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&Zo(t.coordinateSystem,!1,t),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,n){var i=this;if(a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,n){var i=[];return t.each(t.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:K(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,n){for(var i=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:a(t.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Cn(i,t,be(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Qa,e})(et),NA={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=v1(e.x,r.x),s=d1(e.x+e.width,n),l=v1(e.y,r.y),u=d1(e.y+e.height,i),c=s<o,f=u<l;return e.x=c&&o>n?s:o,e.y=f&&l>i?u:l,e.width=c?0:s-o,e.height=f?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=d1(e.r,r.r),i=v1(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},PA={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new Le({shape:U({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,f=n?"height":"width";c[f]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?cd:ar,c=new u({shape:a,z2:1});c.name="item";var f=BA(n);if(c.calculateTextPosition=MY(f,{isRoundCap:u===cd}),i){var h=c.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?$e:ot)(c,{shape:d},i)}return c}};function NY(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(a.type!=="category"&&lt("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&lt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function RA(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?$e:ot)(t,{shape:l},e,n,null);var c=e?r.baseAxis.model:null;(o?$e:ot)(t,{shape:u},c,n)}function OA(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var PY=["x","y","width","height"],RY=["cx","cy","r","startAngle","endAngle"],VA={cartesian2d:function(r){return!OA(r,PY)},polar:function(r){return!OA(r,RY)}},vd={cartesian2d:function(r,e,t){var a=r.getItemLayout(e);if(!a)return null;var n=t?VY(t,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function OY(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function BA(r){return(function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}})(r)}function zA(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=Ja(a.getModel("itemStyle"),c,!0);U(c,f),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=a.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?FY(n,i.coordinateSystem):HY(n,i.coordinateSystem),d=Lt(a);Vt(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:El(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,IY(r,g==="outside"?v:g,BA(o),a.get(["label","rotate"]))}iT(p,d,i.getRawValue(t),function(_){return Hk(e,_)});var m=a.getModel(["emphasis"]);ut(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),It(r,a),OY(n)&&(r.style.fill="none",r.style.stroke="none",k(r.states,function(_){_.style&&(_.style.fill=_.style.stroke="none")}))}function VY(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var BY=(function(){function r(){}return r})(),GA=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new BY},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<n.length;c+=3)l[i]=u,l[o]=n[c+2],s[i]=n[c+i],s[o]=n[c+o],t.rect(s[0],s[1],l[0],l[1])},e})(Re);function FA(r,e,t,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),c=a?Ra(r):0;if(u){var f=new GA({shape:{points:u},incremental:c,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var h=new GA({shape:{points:n.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=i,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(n.getVisual("style")),h.style.stroke=null,be(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",HA),h.on("mousemove",HA)),t&&t.push(h)}var HA=Fy(function(r){var e=this,t=zY(e,r.offsetX,r.offsetY);be(e).dataIndex=t>=0?t:null},30,!1);function zY(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c<f;c++){var h=c*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function $A(r,e,t){if(qo(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function GY(r,e,t){var a=r.type==="polar"?ar:Le;return new a({shape:$A(e,t,r),silent:!0,z2:0})}function FY(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function HY(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}function $Y(r){r.registerChartView(LY),r.registerSeriesModel(kY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,AA(Qa)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,MA(Qa)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,hA(Qa)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),LA(r)}function Nc(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}function Al(r,e,t){e=Y(e)&&{coordDimensions:e}||U({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=nc(a,e).dimensions,i=new mr(n,r);return i.initData(a,t),i}var Ml=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r})(),Si="pie",UY=De(),UA=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ml(ie(this.getData,this),ie(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Al(this,{coordDimensions:["value"],encodeDefaulter:Me(xy,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=UY(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=i6(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){qi(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series."+Si,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(nt);QF({fullType:UA.type,getCoord2:function(r){return r.getShallow("center")}});var WY=Math.PI/180;function WA(r,e,t,a,n,i,o,s,l,u){if(r.length<2)return;function c(p){for(var g=p.rB,m=g*g,_=0;_<p.list.length;_++){var S=p.list[_],x=Math.abs(S.label.y-t),b=a+S.len,w=b*b,C=Math.sqrt(Math.abs((1-x*x/m)*w)),E=e+(C+S.len2)*n,T=E-S.label.x,D=S.targetTextWidth-T*n;YA(S,D,!0),S.label.x=E}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},_=0;_<p.length;_++)if(p[_].labelAlignTo==="none"){var S=p[_],x=S.label.y>t?m:g,b=Math.abs(S.label.y-t);if(b>=x.maxY){var w=S.label.x-e-S.len2*n,C=a+S.len,E=Math.abs(w)<C?Math.sqrt(b*b/(1-w*w/C/C)):C;x.rB=E,x.maxY=b}x.list.push(S)}c(g),c(m)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}R0(r,1,l,l+o)&&f(r)}function YY(r,e,t,a,n,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;p1(r[h])||(v.x<e?(c=Math.min(c,v.x),l.push(r[h])):(f=Math.max(f,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!p1(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?g=c-o-d.bleedMargin:g=o+n-f-d.bleedMargin:v.x<e?g=v.x-o-d.bleedMargin:g=o+n-v.x-d.bleedMargin,d.targetTextWidth=g,YA(d,g,!1)}}WA(u,e,t,a,1,n,i,o,s,f),WA(l,e,t,a,-1,n,i,o,s,c);for(var h=0;h<r.length;h++){var d=r[h];if(!p1(d)&&d.linePoints){var v=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",_=v.style.padding,S=_?_[1]+_[3]:0,x=v.style.backgroundColor?0:S,b=d.rect.width+x,w=p[1][0]-p[2][0];m?v.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(v.x<e?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=v.y}}}function YA(r,e,t){if(r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,c=i.width+(o?0:l);if(e<c||t){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var f=a.getBoundingRect();a.setStyle("width",Math.ceil(f.width)),a.setStyle("backgroundColor",o)}else{var h=e-l,v=e<c?h:t?h>r.unconstrainedWidth?null:h:null;a.setStyle("width",v)}XA(i,a)}}}function XA(r,e){ZA.rect=r,ak(ZA,e,XY)}var XY={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},ZA={};function p1(r){return r.position==="center"}function ZY(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*WY,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var C in w.states)if(w.states[C].ignore===!1)return!0;return!1}e.each(function(w){var C=e.getItemGraphicEl(w),E=C.shape,T=C.getTextContent(),D=C.getTextGuideLine(),A=e.getItemModel(w),I=A.getModel("label"),M=I.get("position")||A.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),N=I.get("alignTo"),R=ee(I.get("edgeDistance"),u),P=I.get("bleedMargin");P==null&&(P=Math.min(u,h)>200?10:2);var O=A.getModel("labelLine"),G=O.get("length");G=ee(G,u);var F=O.get("length2");if(F=ee(F,u),Math.abs(E.endAngle-E.startAngle)<o){k(T.states,v),T.ignore=!0,D&&(k(D.states,v),D.ignore=!0);return}if(d(T)){var B=(E.startAngle+E.endAngle)/2,$=Math.cos(B),j=Math.sin(B),W,V,q,Ce;a=E.cx,n=E.cy;var fe=M==="inside"||M==="inner";if(M==="center")W=E.cx,V=E.cy,Ce="center";else{var ne=(fe?(E.r+E.r0)/2*$:E.r*$)+a,we=(fe?(E.r+E.r0)/2*j:E.r*j)+n;if(W=ne+$*3,V=we+j*3,!fe){var se=ne+$*(G+l-E.r),xe=we+j*(G+l-E.r),qe=se+($<0?-1:1)*F,Pe=xe;N==="edge"?W=$<0?c+R:c+u-R:W=qe+($<0?-L:L),V=Pe,q=[[ne,we],[se,xe],[qe,Pe]]}Ce=fe?"center":N==="edge"?$>0?"right":"left":$>0?"left":"right"}var Xe=Math.PI,je=0,yt=I.get("rotate");if(Ge(yt))je=yt*(Xe/180);else if(M==="center")je=0;else if(yt==="radial"||yt===!0){var lr=$<0?-B+Xe:-B;je=lr}else if(yt==="tangential"||yt==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var Xt=Math.atan2($,j);Xt<0&&(Xt=Xe*2+Xt);var ba=j>0;ba&&yt!=="tangential-noflip"&&(Xt=Xe+Xt),je=Xt-Xe}if(i=!!je,T.x=W,T.y=V,T.rotation=je,T.setStyle({verticalAlign:"middle"}),fe){T.setStyle({align:Ce});var Ql=T.states.select;Ql&&(Ql.x+=T.x,Ql.y+=T.y)}else{var Gn=new pe(0,0,0,0);XA(Gn,T),t.push({label:T,labelLine:D,position:M,len:G,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new _e($,j),linePoints:q,textAlign:Ce,labelDistance:L,labelAlignTo:N,edgeDistance:R,bleedMargin:P,rect:Gn,unconstrainedWidth:Gn.width,labelStyleWidth:T.style.width})}C.setTextConfig({inside:fe})}}),!i&&r.get("avoidLabelOverlap")&&YY(t,a,n,l,u,h,c,f);for(var p=0;p<t.length;p++){var g=t[p],m=g.label,_=g.labelLine,S=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),S&&(k(m.states,v),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(_){var b=g.linePoints;S||!b?(k(_.states,v),_.ignore=!0):(JD(b,g.minTurnAngle),MW(b,g.surfaceNormal,g.maxSurfaceAngle),_.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new _e(b[0][0],b[0][1])})}}}var qA=Math.PI*2,dd=Math.PI/180,qY=Mt(Si,KY);function KY(r,e){r.eachSeriesByType(Si,function(t){var a=t.getData(),n=a.mapDimension("value"),i=NT(t,e),o=i.cx,s=i.cy,l=i.r,u=i.r0,c=i.viewRect,f=-t.get("startAngle")*dd,h=t.get("endAngle"),v=t.get("padAngle")*dd;h=h==="auto"?f-qA:-h*dd;var d=t.get("minAngle")*dd,p=d+v,g=0;a.each(n,function(R){!isNaN(R)&&g++});var m=a.getSum(n),_=Math.PI/(m||g)*2,S=t.get("clockwise"),x=t.get("roseType"),b=t.get("stillShowZeroSum"),w=a.getDataExtent(n);w[0]=0;var C=S?1:-1,E=[f,h],T=C*v/2;mh(E,!S),f=E[0],h=E[1];var D=KA(t);D.startAngle=f,D.endAngle=h,D.clockwise=S,D.cx=o,D.cy=s,D.r=l,D.r0=u;var A=Math.abs(h-f),I=A,M=0,L=f;if(a.setLayout({viewRect:c,r:l}),a.each(n,function(R,P){var O;if(isNaN(R)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:o,cy:s,r0:u,r:x?NaN:l});return}x!=="area"?O=m===0&&b?_:R*_:O=A/g,O<p?(O=p,I-=p):M+=R;var G=L+C*O,F=0,B=0;v>O?(F=L+C*O/2,B=F):(F=L+T,B=G-T),a.setItemLayout(P,{angle:O,startAngle:F,endAngle:B,clockwise:S,cx:o,cy:s,r0:u,r:x?Ue(R,w,[u,l]):l}),L=G}),I<qA&&g)if(I<=.001){var N=A/g;a.each(n,function(R,P){if(!isNaN(R)){var O=a.getItemLayout(P);O.angle=N;var G=0,F=0;N<v?(G=f+C*(P+1/2)*N,F=G):(G=f+C*P*N+T,F=f+C*(P+1)*N-T),O.startAngle=G,O.endAngle=F}})}else _=I/M,L=f,a.each(n,function(R,P){if(!isNaN(R)){var O=a.getItemLayout(P),G=O.angle===p?p:R*_,F=0,B=0;G<v?(F=L+C*G/2,B=F):(F=L+T,B=L+C*G-T),O.startAngle=F,O.endAngle=B,L+=C*G}})})}var KA=De(),jY=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new Fe;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),c=t.getItemLayout(a),f=U(Ja(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var h=s.getShallow("animationType");s.ecModel.ssr?(ot(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):h==="scale"?(o.shape.r=c.r0,ot(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),ot(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,$e(o,{shape:{endAngle:c.endAngle}},s,a))}else Xr(o),$e(o,{shape:f},s,a);o.useStyle(t.getItemVisual(a,"style")),It(o,l);var v=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=U({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Ja(u.getModel("itemStyle"),c)),U(o.ensureState("select"),{x:p,y:g,shape:Ja(l.getModel(["select","itemStyle"]),c)}),U(o.ensureState("blur"),{shape:Ja(l.getModel(["blur","itemStyle"]),c)});var _=o.getTextGuideLine(),S=o.getTextContent();_&&U(_.ensureState("select"),{x:p,y:g}),U(S.ensureState("select"),{x:p,y:g}),ut(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;Vt(i,Lt(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Kt,this.setTextGuideLine(v)),M0(this,I0(o),{stroke:u,opacity:fr(s.get(["lineStyle","opacity"]),c,1)})}},e})(ar),QY=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Si,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=KA(t),v=new ar({shape:he(h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new jY(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Cn(p,t,d)}).execute(),ZY(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=Si,e})(et);function JY(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Ge(o)&&!isNaN(o)&&o<0)})}}}function eX(r){r.registerChartView(QY),r.registerSeriesModel(UA),oE(Si,r.registerAction),r.registerLayout(qY),r.registerProcessor(Nc(Si)),r.registerProcessor(JY(Si))}var tX=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return An(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:H.color.primary}},universalTransition:{divideShape:"clone"}},e})(nt),jA=4,rX=(function(){function r(){}return r})(),aX=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new rX},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<jA,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<n.length;){var h=n[f++],v=n[f++];isNaN(h)||isNaN(v)||c&&!c.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,a=t.points,n=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(t>=f&&a>=h&&t<=f+s&&a<=h+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h<n.length;){var v=n[h++],d=n[h++];l=Math.min(v,l),c=Math.max(v,c),u=Math.min(d,u),f=Math.max(d,f)}t=this._rect=new pe(l-o/2,u-s/2,c-l+o,f-u+s)}return t},e})(Re),nX=(function(){function r(){this.group=new ge}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(t){var a=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;a=new Float32Array(a.buffer,o,i)}n.setShape("points",a),n.reset(),n.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,a,n){var i=this._newAdded[0],o=t.getLayout("points"),s=i&&i.shape.points;if(process.env.NODE_ENV!=="production"&&Ew(t.getLayout("pointsRange"),e),s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=e.end,i.setShape({points:u})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=a,c.setShape({points:o}),this._setCommon(c,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new aX({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;a=a||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=Dt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<jA;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=be(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),iX=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,g1(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),Ra(a),g1(a)),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),this._finished){var o=kc("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(g1(t))}else return{update:!0}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new nX:new Cc,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(et);function g1(r){return{clipShape:Qk(r)}}var m1=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",mt).models[0]},e.type="cartesian2dAxis",e})(Ne);kt(m1,dc);var QA={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:H.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:H.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:H.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[H.color.backgroundTint,H.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:H.color.neutral00,borderColor:H.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},oX=ke({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},QA),y1=ke({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:H.color.axisMinorSplitLine,width:1}}},QA),sX=ke({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},y1),lX=me({logBase:10},y1);const JA={category:oX,value:y1,time:sX,log:lX};function Il(r,e,t,a){k(_D,function(n,i){var o=ke(ke({},JA[i],!0),a,!0),s=(function(l){z(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Fu(this),v=h?To(c):{},d=f.getTheme();ke(c,d.get(i+"Axis")),ke(c,this.getDefaultOption()),c.type=eM(c),h&&Ua(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=ic.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){var f=Ac();return f?f.updateModelAxisBreak(this,c):{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",eM)}function eM(r){return r.type||(r.data?"category":"value")}var uX=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return K(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ze(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),pd=["x","y"];function tM(r){return(r.type==="interval"||r.type==="time")&&!xo(r)}var cX=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Sa,t.dimensions=pd,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!tM(t)||!tM(a))){var n=Av(t,null),i=Av(a,null),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-n[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=Hr([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new pe(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return gt(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a,n){if(n=n||[],this._invTransform)return gt(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new pe(i,o,s,l)},e})(uX);function rM(r,e){var t=r.scale,a=r.model;process.env.NODE_ENV!=="production"&&Z(t&&a&&(t instanceof Ya||t instanceof Vv)&&(e instanceof Ya||e instanceof Vv));var n=PD(t,a,a.ecModel,r),i=_l(t),o=_l(e)?e.intervalStub:e,s=i?t.intervalStub:t,l=t.base,u=o.getTicks(),c=o.getTicks({expandToNicedExtent:!0}),f=u.length-1;process.env.NODE_ENV!=="production"&&(Z(!xo(e)&&!xo(t)),Z(f>0),Z(c.length===u.length),Z(u[0].value<=u[f].value),Z(c[0].value<=u[0].value&&u[f].value<=c[f].value),f>=2&&(Z(c[1].value===u[1].value),Z(c[f-1].value===u[f-1].value)));var h,v,d;if(f===1)h=v=0,d=1;else if(f===2){var p=dt(u[0].value-u[1].value),g=dt(u[1].value-u[2].value);h=v=0,p===g?d=2:(d=1,p<g?h=p/g:v=g/p)}else{var m=o.getConfig().interval;h=(1-(u[0].value-c[0].value)/m)%1,v=(1-(c[f].value-u[f].value)/m)%1,d=f-(h?1:0)-(v?1:0)}process.env.NODE_ENV!=="production"&&Z(d>=1);var _=n.zoomFixMM,S=_[0]||_[1],x=[n.fixMM[0]||S,n.fixMM[1]||S],b=t.getExtent(),w=s.getExtent(),C=fD(w,x),E,T,D,A,I,M;function L($){for(var j=50,W=0;W<j&&!$();W++)D=i?D*Ie(l,2):gU(D),A=Bo(D);process.env.NODE_ENV!=="production"&&W>=j&&lt("incorrect impl in `scaleCalcAlign`.")}function N(){E=He(M-D*h,A)}function R(){T=He(I+D*v,A)}function P(){M=h?He(E+D*h,A):E}function O(){I=v?He(T-D*v,A):T}if(x[0]&&x[1]){E=C[0],T=C[1],D=(T-E)/(d+h+v);var G=r.getExtent(),F=dt(G[1]-G[0]);A=qg([T,E],F,.5/d),P(),O(),Ir(A)&&(D=He(D,A))}else{var B=C[1]-C[0];D=i?Ie(ow(B),1):jg(B/d,sw),A=Bo(D),x[0]?(E=C[0],L(function(){if(P(),I=He(M+D*d,A),R(),T>=C[1])return!0})):x[1]?(T=C[1],L(function(){if(O(),M=He(I-D*d,A),N(),E<=C[0])return!0})):L(function(){M=He(Wi(C[0]/D)*D,A),I=He(ua(C[1]/D)*D,A);var $=La((I-M)/D);if($<=d){var j=d-$,W=void 0,V=n.incl0||i;if(V&&C[0]===0)W=[0,j];else if(V&&C[1]===0)W=[j,0];else{var q=ua(j/2);W=j%2===0?[q,q]:E+T<C[0]+C[1]?[q,q+1]:[q+1,q]}if(M=He(M-D*W[0],A),I=He(I+D*W[1],A),N(),R(),E<=C[0]&&T>=C[1])return!0}})}bD(t,x,w,[E,T],b,{interval:D,intervalCount:d,intervalPrecision:A,niceExtent:[M,I]}),process.env.NODE_ENV!=="production"&&t.freeze()}var aM=[[3,1],[0,2]],fX=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pd,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;k(this._axesList,function(o){Fo(o,wl);var s=o.scale;or(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=Oe(o),l=[],u=s.length-1;u>=0;u--){var c=o[+s[u]];c.__alignTo?l.push(c):Cl(c)}k(l,function(f){vX(f,f.__alignTo)?Cl(f):rM(f,f.__alignTo.scale)})}n(a.x),n(a.y);var i={};k(a.x,function(o){nM(a,"y",o,i)}),k(a.y,function(o){nM(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=Nt(e,t),i=this._rect=ct(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(_1(o,i),!a){var u=gX(i,s,o,l,t),c=void 0;if(l)S1?(S1(this._axesList,i),_1(o,i)):(process.env.NODE_ENV!=="production"&&hw("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),c=lM(i.clone(),"axisLabel",null,i,o,u,n));else{var f=mX(e,i,n),h=f.outerBoundsRect,v=f.parsedOuterBoundsContain,d=f.outerBoundsClamp;h&&(c=lM(h,v,d,i,o,u,n))}uM(i,o,ga.determine,null,c,n),k(this._coordsList,function(p){p.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}de(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",mt).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",mt).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,Ee(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,k(s.x,function(c,f){k(s.y,function(h,v){var d="x"+f+"y"+v,p=new cX(d);p.master=n,p.model=e,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(c),p.addAxis(h)})}),oM(s.x),oM(s.y);function u(c){return function(f,h){if(hX(f,e)){var v=f.get("position");c==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=Bv(f),p=new i1(c,cc(f,d,!0),[0,0],d,v);p.onBand=vc(p.scale,f),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=i,p.index=h,i._axesList.push(p),s[c][h]=p,l[c]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return k(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);Ee(t,i)<0&&t.push(i),Ee(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o),k(o._axesList,function(s){ZU(s,r.dimIdxMap)})}),e.eachSeries(function(n){var i,o;zu({targetModel:n,coordSysType:Sa,coordSysProvider:s});function s(){var l=gY(n),u=l.xAxisModel,c=l.yAxisModel;i=u.axis,o=c.axis;var f=u.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!f)throw new Error('Grid "'+fr(u.get("gridIndex"),u.get("gridId"),0)+'" not found');if(u.getCoordSysModel()!==c.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var h=f.coordinateSystem;return h.getCartesian(u.componentIndex,c.componentIndex)}i&&o&&(Go(i,n,Sa),Go(o,n,Sa))},this),a},r.dimensions=pd,r.dimIdxMap=f0(pd),r})();function hX(r,e){return r.getCoordSysModel()===e}function nM(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)iM(s,n[l])&&(i=n[l]);else for(var u in n)if(ae(n,u)&&iM(s,n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function iM(r,e){if(!e)return!1;var t=e.scale,a=kU(t,0),n=e&&e.type!=="category"&&e.type!=="time"&&a!==S0;return n&&r==="auto"&&LU(e)&&(n=!1),n}function oM(r){for(var e=Oe(r),t,a=[],n=e.length-1;n>=0;n--){var i=r[+e[n]];cD(i.scale)&&xD(i.model,i.type,!0)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?a.push(i):t=i)}t||(t=a.pop()),t&&k(a,function(o){o.__alignTo=t})}function vX(r,e){return xo(r.scale)||xo(e.scale)||e.scale.getTicks().length<2}function dX(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}function _1(r,e){k(r.x,function(t){return sM(t,e.x,e.width)}),k(r.y,function(t){return sM(t,e.y,e.height)})}function sM(r,e,t){var a=[0,t],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),dX(r,e)}var S1;function pX(r){S1=r}function lM(r,e,t,a,n,i,o){process.env.NODE_ENV!=="production"&&Z(e==="all"||e==="axisLabel"),uM(a,n,ga.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),c(a,0,NaN),c(a,1,NaN);var l=Fn(s,function(h){return h>0})==null;return mo(a,s,!0,!0,t),_1(n,a),l;function u(h){k(n[Te[h]],function(v){if(hc(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],_=v.scale.normalize(xl(v.scale,Ko(m.label).labelInfo.tick));_=h===1?1-_:_,c(m.rect,h,_),c(m.rect,1-h,NaN)}var S=d.nameLayout;if(S){var _=Sl(d.nameLocation)?.5:NaN;c(S.rect,h,_),c(S.rect,1-h,NaN)}}})}function c(h,v,d){var p=r[Te[v]]-h[Te[v]],g=h[_t[v]]+h[Te[v]]-(r[_t[v]]+r[Te[v]]);p=f(p,1-d),g=f(g,d);var m=aM[v][0],_=aM[v][1];s[m]=Ie(s[m],p),s[_]=Ie(s[_],g)}function f(h,v){return h>0&&!Gt(v)&&v>1e-4&&(h/=v),h}}function gX(r,e,t,a,n){var i=new gA(yX);return k(t,function(o){return k(o,function(s){if(hc(s.model)){var l=!a;s.axisBuilder=mY(r,e,s.model,n,i,l)}})}),i}function uM(r,e,t,a,n,i){var o=t===ga.determine;k(e,function(u){return k(u,function(c){hc(c.model)&&(yY(c.axisBuilder,r,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Te[1-u]]=r[_t[u]]<=i.refContainer[_t[u]]*.5?0:1-u===1?2:1}k(e,function(u,c){return k(u,function(f){hc(f.model)&&((a==="all"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),o&&f.axisBuilder.build({axisLine:!0}))})})}function mX(r,e,t){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=e.clone():n==null||n==="auto"?a=ct(r.get("outerBounds",!0)||EA,t.refContainer):n!=="none"&&process.env.NODE_ENV!=="production"&&Be("Invalid grid["+r.componentIndex+"].outerBoundsMode.");var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"?o="all":Ee(["all","axisLabel"],i)<0?(process.env.NODE_ENV!=="production"&&Be("Invalid grid["+r.componentIndex+"].outerBoundsContain."),o="all"):o=i;var s=[ih(oe(r.get("outerBoundsClampWidth",!0),ud[0]),e.width),ih(oe(r.get("outerBoundsClampHeight",!0),ud[1]),e.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var yX=function(r,e,t,a,n,i){var o=t.axis.dim==="x"?"y":"x";mA(r,e,t,a,n,i),Sl(r.nameLocation)||k(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&_A(s.labelInfoList,s.dirVec,a,n)})};function _X(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return SX(t,r,e),t.seriesInvolved&&bX(t,r),t}function SX(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];k(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Pc(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",a);if(k(s.getAxes(),Me(p,!1,null)),s.getTooltipAxes&&a&&f.get("show")){var h=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||v)&&k(d.baseAxes,Me(p,v?"cross":!0,h)),v&&k(d.otherAxes,Me(p,"cross",!1))}function p(g,m,_){var S=_.model.getModel("axisPointer",n),x=S.get("show");if(!(!x||x==="auto"&&!g&&!w1(S))){m==null&&(m=S.get("triggerTooltip")),S=g?xX(_,f,n,e,g,m):S;var b=S.get("snap"),w=S.get("triggerEmphasis"),C=Pc(_.model),E=m||b||_.type==="category",T=r.axesInfo[C]={key:C,axis:_,coordSys:s,axisPointerModel:S,triggerTooltip:m,triggerEmphasis:w,involveSeries:E,snap:b,useHandle:w1(S),seriesModels:[],linkGroup:null};u[C]=T,r.seriesInvolved=r.seriesInvolved||E;var D=wX(i,_);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[C]=T,A.mapper=i[D].mapper,T.linkGroup=A}}}})}function xX(r,e,t,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};k(s,function(h){l[h]=he(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&me(u,f.textStyle)}}return r.model.getModel("axisPointer",new ze(l,t,a))}function bX(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||k(r.coordSysAxesInfo[Pc(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function wX(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(x1(i[a+"AxisId"],t.id)||x1(i[a+"AxisIndex"],t.componentIndex)||x1(i[a+"AxisName"],t.name))return n}}function x1(r,e){return r==="all"||Y(r)&&Ee(r,e)>=0||r===e}function CX(r){var e=b1(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=w1(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function b1(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Pc(r)]}function TX(r){var e=b1(r);return e&&e.axisPointerModel}function w1(r){return!!r.get(["handle","show"])}function Pc(r){return r.type+"||"+r.id}var C1={},es=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.axisPointerClass&&CX(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=TX(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){if(process.env.NODE_ENV!=="production"&&C1[t])throw new Error("axisPointer "+t+" exists");C1[t]=a},e.getAxisPointerClass=function(t){return t&&C1[t]},e.type="axis",e})(st),T1=De();function cM(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,f=T1(r).splitAreaColors,h=re(),v=0;if(f)for(var d=0;d<u.length;d++){var p=f.get(u[d].tickValue);if(p!=null){v=(p+(c-1)*d)%c;break}}var g=n.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=Y(s)?s:[s];for(var d=1;d<u.length;d++){var _=n.toGlobalCoord(u[d].coord),S=void 0,x=void 0,b=void 0,w=void 0;n.isHorizontal()?(S=g,x=l.y,b=_-S,w=l.height,g=S+b):(S=l.x,x=g,b=l.width,w=_-x,g=x+w);var C=u[d-1].tickValue;C!=null&&h.set(C,v),e.add(new Le({anid:C!=null?"area_"+C:null,shape:{x:S,y:x,width:b,height:w},style:me({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%c}T1(r).splitAreaColors=h}}}function fM(r){T1(r).splitAreaColors=null}var EX=["splitArea","splitLine","minorSplitLine","breakArea"],hM=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ge,this.group.add(this._axisGroup),!!hc(t)){this._axisGroup.add(t.axis.axisBuilder.group),k(EX,function(l){t.get([l,"show"])&&DX[l](this,this._axisGroup,t,t.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Iu(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){fM(this)},e.type="cartesianAxis",e})(es),DX={splitLine:function(r,e,t,a,n){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;l=Y(l)?l:[l];for(var f=a.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),_=0;_<d.length;_++){var S=i.toGlobalCoord(d[_].coord);if(!(_===0&&!u||_===d.length-1&&!c)){var x=d[_].tickValue;h?(p[0]=S,p[1]=f.y,g[0]=S,g[1]=f.y+f.height):(p[0]=f.x,p[1]=S,g[0]=f.x+f.width,g[1]=S);var b=v++%l.length,w=new Ct({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:me({stroke:l[b]},m),silent:!0});Ks(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(r,e,t,a,n){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var f=[],h=[],v=s.getLineStyle(),d=0;d<c.length;d++)for(var p=0;p<c[d].length;p++){var g=i.toGlobalCoord(c[d][p].coord);u?(f[0]=g,f[1]=l.y,h[0]=g,h[1]=l.y+l.height):(f[0]=l.x,f[1]=g,h[0]=l.x+l.width,h[1]=g);var m=new Ct({anid:"minor_line_"+c[d][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:v,silent:!0});Ks(m.shape,v.lineWidth),e.add(m)}},splitArea:function(r,e,t,a,n){cM(r,e,t,a)},breakArea:function(r,e,t,a,n){var i=Ac(),o=t.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,t,a.coordinateSystem.getRect(),n)}},vM=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(hM),kX=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=vM.type,t}return e.type="yAxis",e})(hM),AX=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new Le({shape:t.coordinateSystem.getRect(),style:me({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(st),dM={offset:0};function pM(r){r.registerComponentView(AX),r.registerComponentModel(bY),r.registerCoordinateSystem("cartesian2d",fX),Il(r,"x",m1,dM),Il(r,"y",m1,dM),r.registerComponentView(vM),r.registerComponentView(kX),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var gd="single",MX="singleAxis",E1="singleAxis",md=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type=E1,e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e})(Ne);kt(md,dc.prototype);function IX(r,e){var t=r.coordinateSystem,a=t&&t.type,n=t&&t.getBaseAxis&&t.getBaseAxis(),i=n&&n.scale&&n.scale.type,o=a===Sa&&i==="ordinal"||a===gd,s=e.model.get("jitter")>0;return o&&s}var LX=De();function gM(r,e,t,a){if(r instanceof i1){var n=r.scale.type;if(n!=="ordinal")return t}var i=r.model,o=i.get("jitter");if(!(o>0))return t;var s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=or(r.scale)?Qt(r).w:null;return s?mM(t,o,u,a):NX(r,e,t,a,o,l)}function mM(r,e,t,a){if(t===null)return r+(Math.random()-.5)*e;var n=t-a*2,i=Math.min(Math.max(0,e),n);return r+(Math.random()-.5)*i}function NX(r,e,t,a,n,i){var o=LX(r);o.items||(o.items=[]);var s=o.items,l=yM(s,e,t,a,n,i,1),u=yM(s,e,t,a,n,i,-1),c=Math.abs(l-t)<Math.abs(u-t)?l:u,f=or(r.scale)?Qt(r).w:null,h=Math.abs(c-t);return h>n/2||f&&h>f/2-a?mM(t,n,f,a):(s.push({fixedCoord:e,floatCoord:c,r:a}),c)}function yM(r,e,t,a,n,i,o){for(var s=t,l=0;l<r.length;l++){var u=r[l],c=e-u.fixedCoord,f=s-u.floatCoord,h=c*c+f*f,v=a+u.r+i;if(h<v*v){var d=u.floatCoord+Math.sqrt(v*v-c*c)*o;if(Math.abs(d-t)>n/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function PX(){return{seriesType:"scatter",plan:Io(),reset:function(r){var e=r.coordinateSystem;if(!(!e||e.type!==Sa&&e.type!==gd)){var t=e.getBaseAxis&&e.getBaseAxis(),a=t&&IX(r,t);if(a){var n=t.dim,i=t.orient,o=i==="horizontal"&&t.type!=="category"||i==="vertical"&&t.type==="category",s=n==="y"||n==="single"&&o,l=n==="x"||n==="single"&&!o;if(!(!s&&!l))return{progress:function(u,c){var f=c.getLayout("points"),h=!!f;process.env.NODE_ENV!=="production"&&h&&Ew(c.getLayout("pointsRange"),u);for(var v=u.start;v<u.end;v++){var d=h?(v-u.start)*2:-1,p=h?[f[d],f[d+1]]:c.getItemLayout(v);if(p){var g=c.getItemVisual(v,"symbolSize"),m=g instanceof Array?(g[1]+g[0])/2:g;if(s){var _=gM(t,p[0],p[1],m/2);h?f[d+1]=_:p[1]=_}else if(l){var _=gM(t,p[1],p[0],m/2);h?f[d]=_:p[0]=_}}}}}}}}}}function RX(r){Ae(pM),r.registerSeriesModel(tX),r.registerChartView(iX),r.registerLayout(kc("scatter"))}function OX(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,PX())}function VX(r){var e=r.polar;if(e){Y(e)||(e=[e]);var t=[];k(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],Y(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}k(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var Rc="radar",BX=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ml(ie(this.getData,this),ie(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return Al(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=V2(this,t);return Et("section",{header:u,sortBlocks:!0,blocks:K(s,function(f){var h=i.get(i.mapDimension(f.dim),t);return Et("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(K(n.dimensions,function(u){return a.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series."+Rc,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(nt),zX=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Rc,t}return e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=cl(h.getItemVisual(v,"symbolSize")),g=Dt(d,-1,-1,2,2),m=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function c(h,v,d,p,g,m){d.removeAll();for(var _=0;_<v.length-1;_++){var S=u(p,g);S&&(S.__dimIdx=_,h[_]?(S.setPosition(h[_]),_o[m?"initProps":"updateProps"](S,{x:v[_][0],y:v[_][1]},t,g)):S.setPosition(v[_]),d.add(S))}}function f(h){return K(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new nr,p=new Kt,g={shape:{points:v}};d.shape.points=f(v),p.shape.points=f(v),ot(d,g,t,h),ot(p,g,t,h);var m=new ge,_=new ge;m.add(p),m.add(d),m.add(_),c(p.shape.points,v,_,s,h,!0),s.setItemGraphicEl(h,m)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),_={shape:{points:s.getItemLayout(h)}};_.shape.points&&(c(p.shape.points,_.shape.points,m,s,h,!1),Xr(g),Xr(p),$e(p,_,t),$e(g,_,t),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),g=h.childAt(1),m=h.childAt(2),_=s.getItemVisual(v,"style"),S=_.fill;o.add(h),p.useStyle(me(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),It(p,d,"lineStyle"),It(g,d,"areaStyle");var x=d.getModel("areaStyle"),b=x.isEmpty()&&x.parentModel.isEmpty();g.ignore=b,k(["emphasis","select","blur"],function(C){var E=d.getModel([C,"areaStyle"]),T=E.isEmpty()&&E.parentModel.isEmpty();g.ensureState(C).ignore=T&&b;var D=d.getModel([C,"lineStyle"]).getLineStyle();p.ensureState(C).style=D;var A=E.getAreaStyle();g.ensureState(C).style=A;var I=d.getModel([C,"itemStyle"]).getItemStyle();m.eachChild(function(M){M.ensureState(C).style=he(I)})}),g.useStyle(me(d.getModel("areaStyle").getAreaStyle(),{fill:S,opacity:.7,decal:_.decal}));var w=d.getModel("emphasis");m.eachChild(function(C){if(C instanceof $t){var E=C.style;C.useStyle(U({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},_))}else C.useStyle(_),C.setColor(S),C.style.strokeNoScale=!0;var T=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(T==null||isNaN(T))&&(T=""),Vt(C,Lt(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:T,inheritColor:S,defaultOpacity:_.opacity})}),ut(h,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Rc,e})(et),Oc=JA.value,Vc="radar",_M=Vc,GX=Vc,SM=5;function yd(r,e){return me({show:e},r)}var FX=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),c=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),v=this.get("triggerEvent"),d=K(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=me({color:p.color},u));var m=ke(he(p),{boundaryGap:t,splitNumber:a,clockwise:n,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:c,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:v},!1);if(Q(f)){var _=m.name;m.name=f.replace("{value}",_??"")}else ce(f)&&(m.name=f(m.name,m));var S=new ze(m,null,this.ecModel);return kt(S,dc.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S.uid=So("ec_radar"),S},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=_M,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:H.color.axisLabel},boundaryGap:[0,0],splitNumber:SM,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ke({lineStyle:{color:H.color.neutral20}},Oc.axisLine),axisLabel:yd(Oc.axisLabel,!1),axisTick:yd(Oc.axisTick,!1),splitLine:yd(Oc.splitLine,!0),splitArea:yd(Oc.splitArea,!0),indicator:[]},e})(Ne),HX=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,a){var n=t.coordinateSystem,i=n.getIndicatorAxes(),o=K(i,function(s){var l=s.model.get("showName")?s.name:"",u=new Sr(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});k(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),v=u.get("color"),d=Y(h)?h:[h],p=Y(v)?v:[v],g=[],m=[];function _(N,R,P){var O=P%R.length;return N[O]=N[O]||[],O}if(i==="circle")for(var S=n[0].getTicksCoords(),x=a.cx,b=a.cy,w=0;w<S.length;w++){if(c){var C=_(g,d,w);g[C].push(new wn({shape:{cx:x,cy:b,r:S[w].coord}}))}if(f&&w<S.length-1){var C=_(m,p,w);m[C].push(new ku({shape:{cx:x,cy:b,r0:S[w].coord,r:S[w+1].coord}}))}}else for(var E,T=K(n,function(N,R){var P=N.getTicksCoords();return E=E==null?P.length-1:Math.min(P.length-1,E),K(P,function(O){return a.coordToPoint(O.coord,R)})}),D=[],w=0;w<=E;w++){for(var A=[],I=0;I<n.length;I++)A.push(T[I][w]);if(A[0]?A.push(A[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+w),c){var C=_(g,d,w);g[C].push(new Kt({shape:{points:A}}))}if(f&&D){var C=_(m,p,w-1);m[C].push(new nr({shape:{points:A.concat(D)}}))}D=A.slice().reverse()}var M=l.getLineStyle(),L=u.getAreaStyle();k(m,function(N,R){this.group.add(Zr(N,{style:me({stroke:"none",fill:p[R%p.length]},L),silent:!0}))},this),k(g,function(N,R){this.group.add(Zr(N,{style:me({fill:"none",stroke:d[R%d.length]},M),silent:!0}))},this)},e.type="radar",e})(st),$X=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(ma),UX=(function(){function r(e,t,a){this.type=Vc,this.dimensions=[],this._model=e,this._indicatorAxes=K(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new $X(o,new Ya);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var i=Math.atan2(-a,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var a=Nt(e,t).refContainer,n=e.get("center"),i=e.get("clockwise")||!1,o=Math.min(a.width,a.height)/2;this.cx=ee(n[0],a.width)+a.x,this.cy=ee(n[1],a.height)+a.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Q(s)||Ge(s))&&(s=[0,s]),this.r0=ee(s[0],o),this.r=ee(s[1],o);var l=i?-1:1;k(this._indicatorAxes,function(u,c){u.setExtent(this.r0,this.r);var f=this.startAngle+l*c*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),u.angle=f},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,n=this._model,i=Nv(n.get("splitNumber"),SM),o=new Ya;o.setExtent(0,i),o.setConfig({interval:1}),k(a,function(s){Fo(s,wl),rM(s,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent(_M,function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType(GX,function(n){if(n.get("coordinateSystem")===Vc){var i=n.coordinateSystem=a[n.get("radarIndex")||0];i&&k(i.getIndicatorAxes(),function(o){Go(o,n,Vc)})}}),a},r.dimensions=[],r})();function WX(r){r.registerCoordinateSystem("radar",UX),r.registerComponentModel(FX),r.registerComponentView(HX),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var YX=Mt(Rc,XX);function XX(r){r.eachSeriesByType(Rc,function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();k(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var c=n.dataToPoint(l,s);a[u][s]=xM(c)?c:bM(n)})}),t.each(function(o){var s=Fn(a[o],function(l){return xM(l)})||bM(n);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function xM(r){return!isNaN(r[0])&&!isNaN(r[1])}function bM(r){return[r.cx,r.cy]}function ZX(r){Ae(WX),r.registerChartView(zX),r.registerSeriesModel(BX),r.registerLayout(YX),r.registerProcessor(Nc("radar")),r.registerPreprocessor(VX)}var D1=De();function qX(r,e,t){D1(r)[e]=t}function KX(r,e,t){var a=D1(r),n=a[e];n===t&&(a[e]=null)}function wM(r,e){return!!D1(r)[e]}Wa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},pt);var jX={axisPointer:1,tooltip:1,brush:1};function CM(r,e,t){var a=e.getComponentByElement(r.topTarget);if(!a||a===t||jX.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===t)return!1;var i=yo(a),o=yo(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var ts=(function(r){z(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var n=ie(a._mousedownHandler,a),i=ie(a._mousemoveHandler,a),o=ie(a._mouseupHandler,a),s=ie(a._mousewheelHandler,a),l=ie(a._pinchHandler,a);return a.enable=function(u,c){var f=c.zInfo,h=yo(f.component),v=h.z,d=h.zlevel,p={component:f.component,z:v,zlevel:d,z2:oe(f.z2,-1/0)},g=U({},c.triggerInfo);this._opt=me(U({},c),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(zc(t,"mousedown",n,p),zc(t,"mousemove",i,p),zc(t,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(zc(t,"mousewheel",s,p),zc(t,"pinch",l,p)))},a.disable=function(){this._enabled&&(this._enabled=!1,Gc(t,"mousedown",n),Gc(t,"mousemove",i),Gc(t,"mouseup",o),Gc(t,"mousewheel",s),Gc(t,"pinch",l))},a}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,a,n){var i=this._opt,o=i.zInfoParsed;if(CM(t,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,a,n)),u&&s.isInClip&&!s.isInClip(t,a,n)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,a,n,i){var o=t.target;if(!o&&this._checkPointer(t,a,n))return this._opt.cursorGrab;if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(tb(t)||Bc(t))){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var a=this._zr;if(!(t.gestureEvent==="pinch"||wM(a,"globalPan")||Bc(t))){var n=t.offsetX,i=t.offsetY;if(!this._dragging||!Sd("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=n-s,c=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&hn(t.event),t.__ecRoamConsumed=!0,TM(this,"pan","moveOnMouseMove",t,{dx:u,dy:c,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!Bc(t)){var a=this._zr;if(!tb(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&a.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!Bc(t)){var a=Sd("zoomOnMouseWheel",t,this._opt),n=Sd("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var f=Math.abs(i),h=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(wM(this._zr,"globalPan")||Bc(t))){var a=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,a,n,i,o){t._checkPointer(i,o.originX,o.originY)&&(hn(i.event),i.__ecRoamConsumed=!0,TM(t,a,n,i,o))},e})(zr);function Bc(r){return r.__ecRoamConsumed}var QX=De();function _d(r){var e=QX(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function zc(r,e,t,a){for(var n=_d(r),i=n.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:a}),JX(r,e)}function Gc(r,e,t){for(var a=_d(r),n=a.roam[e]||[],i=0;i<n.length;i++)if(n[i].listener===t){n.splice(i,1),n.length||eZ(r,e);return}}function JX(r,e){var t=_d(r);t.uniform[e]||r.on(e,t.uniform[e]=function(a){var n=t.roam[e];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function eZ(r,e){var t=_d(r),a=t.uniform;a[e]&&(r.off(e,a[e]),a[e]=null)}function TM(r,e,t,a,n){n.isAvailableBehavior=ie(Sd,null,t,a),r.trigger(e,n)}function Sd(r,e,t){var a=t[r];return!r||a&&(!Q(a)||e.event[a+"Key"])}function EM(r){if(Q(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var k1,xd={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},DM=Oe(xd),bd={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kM=Oe(bd),tZ=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=EM(e);if(process.env.NODE_ENV!=="production"&&!a)throw new Error("Illegal svg");this._defsUsePending=[];var n=new ge;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Vr(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;nZ(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=wd(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=OM(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=n;n=new ge,n.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Le({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=k1[s];if(c&&ae(k1,s)){l=c.call(this,e,t);var f=e.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};a.push(h),s==="g"&&(u=h)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var v=AM[s];if(v&&ae(AM,s)){var d=v.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new Gs({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ta(t,a),Vr(e,a,this._defsUsePending,!1,!1),rZ(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){k1={g:function(e,t){var a=new ge;return ta(t,a),Vr(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new Le;return ta(t,a),Vr(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new wn;return ta(t,a),Vr(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Ct;return ta(t,a),Vr(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new kh;return ta(t,a),Vr(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=LM(a));var i=new nr({shape:{points:n||[]},silent:!0});return ta(t,i),Vr(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=LM(a));var i=new Kt({shape:{points:n||[]},silent:!0});return ta(t,i),Vr(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new $t;return ta(t,a),Vr(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new ge;return ta(t,s),Vr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new ge;return ta(t,s),Vr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=LC(a);return ta(t,n),Vr(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),AM={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new vo(e,t,a,n);return MM(r,i),IM(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new BC(e,t,a);return MM(r,n),IM(r,n),n}};function MM(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function IM(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};RM(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000",s=i.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=Cr(o),u=l&&l[3];u&&(l[3]*=Kn(s),o=Ea(l,"rgba"))}e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function ta(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),me(e.__inheritedStyle,r.__inheritedStyle))}function LM(r){for(var e=wd(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function Vr(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(sZ(r,e),RM(r,o,s),a||lZ(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=NM(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=NM(i,"stroke",o.stroke,t)),k(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),k(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=K(wd(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function rZ(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var aZ=/^url\(\s*#(.*?)\)/;function NM(r,e,t,a){var n=t&&t.match(aZ);if(n){var i=Br(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function nZ(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var iZ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function wd(r){return r.match(iZ)||[]}var oZ=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,A1=Math.PI/180;function sZ(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(oZ,function(f,h,v){return a.push(h,v),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=wd(o);switch(n=n||ft(),s){case"translate":Ca(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":og(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Yn(n,n,-parseFloat(l[0])*A1,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*A1);Fr(n,[1,0,u,1,0,0],n);break;case"skewY":var c=Math.tan(parseFloat(l[0])*A1);Fr(n,[1,c,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var PM=/([^\s:;]+)\s*:\s*([^:;]+)/g;function RM(r,e,t){var a=r.getAttribute("style");if(a){PM.lastIndex=0;for(var n;(n=PM.exec(a))!=null;){var i=n[1],o=ae(xd,i)?xd[i]:null;o&&(e[o]=n[2]);var s=ae(bd,i)?bd[i]:null;s&&(t[s]=n[2])}}}function lZ(r,e,t){for(var a=0;a<DM.length;a++){var n=DM[a],i=r.getAttribute(n);i!=null&&(e[xd[n]]=i)}for(var a=0;a<kM.length;a++){var n=kM[a],i=r.getAttribute(n);i!=null&&(t[bd[n]]=i)}}function OM(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function uZ(r,e){var t=new tZ;return t.parse(r,e)}var cZ=re(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),fZ=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=re(),this._freedGraphics=[],this._mapName=e,this._parsedXML=EM(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=vZ(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&uZ(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Z(a!=null)}catch(g){throw new Error(`Invalid svg format
51
+ `+g.message)}var n=new ge;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,h=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var v=a.getBoundingRect();u==null&&(u=v.x,f=v.width),c==null&&(c=v.y,h=v.height)}l=this._boundingRect=new pe(u,c,f,h)}if(s){var d=OM(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new Le({shape:l.plain()}));var p=[];return k(t.named,function(g){cZ.get(g.svgNodeTagLower)!=null&&(p.push(g),hZ(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r})();function hZ(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function vZ(r){var e=[],t=re();return k(r,function(a){if(a.namedFrom==null){var n=new oW(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}for(var M1=[126,25],VM="南海诸岛",rs=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],as=0;as<rs.length;as++)for(var Ll=0;Ll<rs[as].length;Ll++)rs[as][Ll][0]/=10.5,rs[as][Ll][1]/=-10.5/.75,rs[as][Ll][0]+=M1[0],rs[as][Ll][1]+=M1[1];function dZ(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===VM)return;e.push(new HD(VM,K(rs,function(a){return{type:"polygon",exterior:a}}),M1))}}var pZ={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function gZ(r,e){if(r==="china"){var t=pZ[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var mZ=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function yZ(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:mZ[0]})}var _Z="name",SZ=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=re(),this._mapName=e,this._specialAreas=a,this._geoJSON=bZ(t)}return r.prototype.load=function(e,t){t=t||_Z;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:xZ(n)})}var i=re(),o=[];return k(a.regions,function(s){var l=s.name;e&&ae(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new pe(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?lW(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
52
+ `+i.message)}return dZ(t,n),k(n,function(i){var o=i.name;gZ(t,i),yZ(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function xZ(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function bZ(r){return Q(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Fc=re();const Ln={registerMap:function(r,e,t){if(e.svg){var a=new fZ(r,e.svg);Fc.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new SZ(r,n,t);Fc.set(r,a)}},getGeoResource:function(r){return Fc.get(r)},getMapForUser:function(r){var e=Fc.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=Fc.get(r);if(!a){process.env.NODE_ENV!=="production"&&console.error("Map "+r+" not exists. The GeoJSON of the map must be provided.");return}return a.load(e,t)}};var ns=0,is=1,en=2;function jse(r){return r}var wZ="view",Cd=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;i.type=wZ,i.dimensions=["x","y"];var o=i;o.invertY=t,o.lgCt=a,o.lgGeo=n;var s=o.trans=[];return s[ns]=Is(),s[is]=Is(),s[en]=Is(),o.mtRaw=ft(),o.mtRawInv=ft(),o.mtOverall=ft(),o.mtOverallInv=ft(),o.zoom=1,i}return e.prototype.getBoundingRect=function(){return BM(null,this)},e.prototype.getViewRect=function(){return I1(null,this)},e.prototype.getRoamTransform=function(){return ei(this.trans[is])},e.prototype.dataToPoint=function(t,a,n){var i=a?this.mtRaw:this.mtOverall;return n=n||[],i?gt(n,t,i):tr(n,t)},e.prototype.pointToData=function(t,a,n){n=n||[];var i=this.mtOverallInv;return i?gt(n,t,i):tr(n,t)},e.prototype.convertToPixel=function(t,a,n){var i=UM(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=UM(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){var a=this;return Cs(Td,a.dataRect),ib(Td,Td,a.mtOverall),Q4(Td,t[0],t[1])},e.dimensions=["x","y"],e})(Da),Td=If();function Ed(r,e){return Oi([],e.mtOverall)}function CZ(r){return r.zoom}function BM(r,e){return Cs(If(),e.dataRect)}function I1(r,e){return Cs(If(),e.viewRect)}function Hc(r,e,t){return ka(r||Is(),e.trans[t])}function Dd(r){return!!(r.dataRect&&r.viewRect)}function TZ(r,e,t,a){a===is?HM(r,e.trans[ns],t):ka(r,t)}function zM(r,e,t){ei(t,kd),Fr(kd,kd,e.mtRawInv),Fh(r,kd)}var kd=ft();function L1(r,e){var t=r;t.centerOption=e.getShallow("center");var a=t.zoomLimit=e.getShallow("scaleLimit"),n=e.getShallow("zoom");t.zoom=V1(n||1,a)||1,Dd(t)&&N1(t)}function Ad(r,e,t,a,n){var i=r;i.dataRect=new pe(e,t,a,n),Dd(i)&&N1(i)}function Md(r,e,t,a,n){var i=r;i.viewRect=new pe(e,t,a,n),Dd(i)&&N1(i)}function N1(r){EZ(r),kZ(r),AZ(r)}function EZ(r){var e=r.dataRect,t=r.viewRect,a=r.trans[ns],n=r.invertY;n&&(e=Cs(DZ,e),e.y=-e.y-e.height),nb(GM,e,t),Fh(a,GM),n&&(a.scaleY=-a.scaleY);var i=ei(a,r.mtRaw);Hr(r.mtRawInv,i)}var GM=ft(),DZ=If();function kZ(r){var e=WM(r),t=LZ(P1,r,r.centerOption)?gt(P1,P1,r.mtRaw):e,a=r.zoom,n=r.trans[is];n.x=e[0]-a*t[0],n.y=e[1]-a*t[1],n.scaleX=n.scaleY=a}var P1=[];function AZ(r){var e=r.trans,t=e[is],a=e[ns],n=e[en];HM(n,a,t);var i=ei(n,r.mtOverall),o=Hr(r.mtOverallInv,i);FM(r,n,i,o),FM(r.lgGeo,n,i,o)}function FM(r,e,t,a){r&&(ka(r,e),Oi(r.transform||(r.transform=[]),t),Oi(r.invTransform||(r.invTransform=[]),a))}function HM(r,e,t){ei(e,$M),ei(t,Id),Fr(Id,Id,$M),Fh(r,Id)}var $M=ft(),Id=ft();function UM(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function WM(r){var e=r.viewRect;return R1[0]=e.x+e.width/2,R1[1]=e.y+e.height/2,R1}var R1=[];function YM(r){return r&&r.type==="view"}function xi(r,e,t,a){var n=t;n.syncBackEl=r,n.syncBackType=e,a?$e(r,Hc(null,t,e),a):(Hc(r,t,e),r.dirty())}function MZ(r,e,t,a){var n=r,i=n.syncBackEl;i?(process.env.NODE_ENV!=="production"&&Z(n.syncBackType!=null),i.stopAnimation(),TZ(bi,n,i,n.syncBackType)):ka(bi,n.trans[en]),zM(O1,n,bi),a?IZ(bi,O1,n,a):ka(bi,O1),zM(bi,n,bi),PZ(n,e,t,bi)}var bi=Is(),O1=Is();function XM(r,e,t){var a=Ld(e);a&&(MZ(a,e,t,r),L1(a,e))}function Ld(r){return r.__ownRoamView?r.__ownRoamView():null}function ZM(r,e,t,a){t.setUpdatePayload(jm(r));var n=oC(a,e);n&&n.__updateOnOwnRoam&&n.__updateOnOwnRoam(r,e,a)}function IZ(r,e,t,a){a.dx!=null&&a.dy!=null&&(r.x+=a.dx,r.y+=a.dy);var n=a.zoom;if(n!=null){var i=qM(e),o=V1(i*n,t.zoomLimit),s=o/i;r.x-=(a.originX-r.x)*(s-1),r.y-=(a.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function qM(r){return process.env.NODE_ENV!=="production"&&Z(dt(r.scaleX-r.scaleY)<1e-5),r.scaleX}function LZ(r,e,t){process.env.NODE_ENV!=="production"&&Z(Dd(e));var a=e.dataRect;if(!t)return!1;var n=e.lgCt;return n?Hn(r,ee(t[0],n.w),ee(t[1],n.h)):a&&Hn(r,ee(t[0],a.width,a.x),ee(t[1],a.height,a.y)),!0}function NZ(r,e){var t=r.centerOption,a=r.dataRect;return process.env.NODE_ENV!=="production"&&Z(e&&a),!t||r.lgCt?e.slice():[KM(0,e,t,a),KM(1,e,t,a)]}function KM(r,e,t,a){return t&&a&&a[_t[r]]&&a6(t[r])?(e[r]-a[Te[r]])/a[_t[r]]*100+"%":e[r]}function jM(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function PZ(r,e,t,a){var n=WM(r),i=qM(a),o=dt(i)>1e-6;$c[0]=o?(n[0]-a.x)/i:n[0],$c[1]=o?(n[1]-a.y)/i:n[1],gt($c,$c,r.mtRawInv);var s=NZ(r,$c);QM(e,s,i),k(t,function(l){l!==e&&QM(l,s.slice(),i)})}var $c=[];function QM(r,e,t){var a=r.option;a.center=e,a.zoom=t}function V1(r,e){if(e){var t=e.min||0,a=e.max||1/0;r=Math.max(Math.min(a,r),t)}return r}function JM(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1,a=r;return((a.zoom-1)*t+1)/(a.trans[en].scaleX||1)}function Nd(r,e,t,a,n,i,o,s){var l=Ld(r);if(!l){t.disable();return}t.enable(oe(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:a,isInClip:function(c,f,h){return!n||n.contain(f,h)}}});function u(c){var f=r.mainType,h=jm(me({type:tI(f,r.subType,nC)},c));s&&(h.componentType=f),h[f+"Id"]=r.id,e.dispatchAction(h)}t.off("pan").off("zoom").on("pan",function(c){i&&i("pan"),u({dx:c.dx,dy:c.dy})}).on("zoom",function(c){i&&i("zoom"),u({zoom:c.scale,originX:c.originX,originY:c.originY})})}function eI(r){return function(e,t,a){return B1.copy(r.getBoundingRect()),B1.applyTransform(r.getComputedTransform()),B1.contain(t,a)}}var B1=new pe(0,0,0,0);function z1(r,e,t){var a=tI(e,t,nC);r.registerAction({type:a,event:a,update:"none"},function(n,i,o){i.eachComponent(am(n,e,t),function(s){XM(n,s),ZM(n,s,i,o)})})}function tI(r,e,t){return(r!==Ha?r:e==="map"?"geo":e)+t}function rI(r){return r.zoom!=null}function G1(r,e,t,a,n,i,o){var s=new Cd(null,jM(r.ecModel,e));return Ad(s,t,a,n,i),o?Md(s,o.x,o.y,o.width,o.height):Md(s,t,a,n,i),L1(s,r),s}var F1=["rect","circle","line","ellipse","polygon","polyline","path"],RZ=re(F1),OZ=re(F1.concat(["g"])),VZ=re(F1.concat(["g"])),aI=De();function Pd(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function nI(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var iI=(function(){function r(e){var t=this.group=new ge,a=this._transformGroup=new ge;t.add(a),this.uid=So("ec_map_draw"),this._controller=new ts(e.getZr()),a.add(this._regionsGroup=new ge),a.add(this._svgGroup=new ge)}return r.prototype.draw=function(e,t,a,n,i){var o=this,s=e.getData&&e.getData();Nl(e)&&t.eachComponent({mainType:"series",subType:"map"},function(p){!s&&p.getHostGeoModel()===e&&(s=p.getData())});var l=e.coordinateSystem,u=l.view,c=this._regionsGroup,f=this._transformGroup,h=!c.childAt(0)||i,v;l.shouldClip()?(v=I1(null,u),this.group.setClipPath(new Le({shape:v.clone()}))):this.group.removeClipPath(),xi(f,is,u,h?null:e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,a,l,e,s,d):l.resourceType==="geoSVG"&&this._buildSVG(u,a,l,e,s,d),Nd(e,a,this._controller,function(p,g,m){return e.coordinateSystem.containPoint([g,m])},v,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,c,a,n)},r.prototype.__updateOnOwnRoam=function(e){xi(this._transformGroup,is,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,a,n,i,o){var s=this._regionsGroupByName=re(),l=re(),u=this._regionsGroup,c=a.projection,f=c&&c.stream,h=ei(Hc(null,e,ns));function v(g,m){return m&&(g=m(g)),g&&gt([],g,h)}function d(g){for(var m=[],_=!f&&c&&c.project,S=0;S<g.length;++S){var x=v(g[S],_);x&&m.push(x)}return m}function p(g){return{shape:{points:d(g)}}}u.removeAll(),k(a.regions,function(g){var m=g.name,_=s.get(m),S=l.get(m)||{},x=S.dataIdx,b=S.regionModel;if(!_){_=s.set(m,new ge),u.add(_),x=i?i.indexOfName(m):null,b=Nl(n)?n.getRegionModel(m):i?i.getItemModel(x):null;var w=b.get("silent",!0);w!=null&&(_.silent=w),l.set(m,{dataIdx:x,regionModel:b})}var C=[],E=[];k(g.geometries,function(A){if(A.type==="polygon"){var I=[A.exterior].concat(A.interiors||[]);f&&(I=fI(I,f)),k(I,function(L){C.push(new nr(p(L)))})}else{var M=A.points;f&&(M=fI(M,f,!0)),k(M,function(L){E.push(new Kt(p(L)))})}});var T=v(g.getCenter(),c&&c.project);function D(A,I){if(A.length){var M=new Ih({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});_.add(M),oI(t,i,o,M,x,b),sI(n,i,M,m,b,x,T),I&&(nI(M),k(M.states,nI))}}D(C),D(E,!0)}),s.each(function(g,m){var _=l.get(m),S=_.dataIdx,x=_.regionModel;lI(n,i,g,m,x,S),uI(n,i,g,m,x),cI(n,g,m,x)},this)},r.prototype._buildSVG=function(e,t,a,n,i,o){var s=a.map;Hc(this._svgGroup,e,ns),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=re(),u=!1;k(this._svgGraphicRecord.named,function(c){var f=c.name,h=c.svgNodeTagLower,v=c.el,d=i?i.indexOfName(f):null,p=n.getRegionModel(f);RZ.get(h)!=null&&v instanceof Wr&&oI(t,i,o,v,d,p),v instanceof Wr&&(v.culling=!0);var g=p.get("silent",!0);if(g!=null&&(v.silent=g),v.z2EmphasisLift=0,!c.namedFrom&&(VZ.get(h)!=null&&sI(n,i,v,f,p,d,null),lI(n,i,v,f,p,d),uI(n,i,v,f,p),OZ.get(h)!=null)){var m=cI(n,v,f,p);m==="self"&&(u=!0);var _=l.get(f)||l.set(f,[]);_.push(v)}},this),this._enableBlurEntireSVG(u,n)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&Nl(t)){var a=t.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){uo(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Ln.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Ln.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=aI(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function oI(r,e,t,a,n,i){var o=i.getModel("itemStyle"),s=i.getModel(["emphasis","itemStyle"]),l=i.getModel(["blur","itemStyle"]),u=i.getModel(["select","itemStyle"]),c=Pd(o),f=Pd(s),h=Pd(u),v=Pd(l);if(e){var d=e.getItemVisual(n,"style"),p=e.getItemVisual(n,"decal");t&&d.fill&&(c.fill=d.fill),p&&(c.decal=vl(p,r))}a.setStyle(c),a.style.strokeNoScale=!0,a.ensureState("emphasis").style=f,a.ensureState("select").style=h,a.ensureState("blur").style=v,uo(a)}function sI(r,e,t,a,n,i,o){var s=e&&isNaN(e.get(e.mapDimension("value"),i)),l=e&&e.getItemLayout(i);if(Nl(r)||s||l&&l.showLabel){var u=Nl(r)?a:i,c=void 0;(!e||i>=0)&&(c=r);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Vt(t,Lt(n),{labelFetcher:c,labelDataIndex:u,defaultText:a},f);var h=t.getTextContent();if(h&&(aI(h).ignore=h.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function lI(r,e,t,a,n,i){e?e.setItemGraphicEl(i,t):be(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:a,region:n&&n.option||{}}}function uI(r,e,t,a,n){e||Tn({el:t,componentModel:r,itemName:a,itemTooltipOption:n.get("tooltip")})}function cI(r,e,t,a){e.highDownSilentOnTouch=!!r.get("selectedMode");var n=a.getModel("emphasis"),i=n.get("focus");return ut(e,i,n.get("blurScope"),n.get("disabled")),Nl(r)&&zG(e,r,t),i}function fI(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),k(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),a}function Nl(r){return r.mainType==="geo"}var os="map",BZ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var a=Al(this,{coordDimensions:["value"],encodeDefaulter:Me(xy,this)}),n=re(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=Ln.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return k(u.regions,function(c){var f=c.name,h=n.get(f),v=c.properties&&c.properties.echartsStyle,d;h==null?(d={name:f},i.push(d)):d=a.getRawDataItem(h),v&&ke(d,v)}),a.appendData(i),a},e.prototype.getHostGeoModel=function(){if(AT(this).kind!==kT)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=[];return k(this.seriesGroup.f,function(u){var c=u.originalData.indexOfName(s),f=i.mapDimension("value");isNaN(u.originalData.get(f,c))||l.push(u.name)}),Et("section",{header:l.join(", "),noHeader:!l.length,blocks:[Et("nameValue",{name:s,value:o})]})},e.prototype.getLegendIcon=function(t){var a=t.icon||"roundRect",n=Dt(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=H.color.neutral00,n.style.lineWidth=2),n},e.prototype.__ownRoamView=function(){return Rd(this)?this.coordinateSystem.view:null},e.type="series."+os,e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:H.color.tertiary},itemStyle:{borderWidth:.5,borderColor:H.color.border,areaColor:H.color.background},emphasis:{label:{show:!0,color:H.color.primary},itemStyle:{areaColor:H.color.highlight}},select:{label:{show:!0,color:H.color.primary},itemStyle:{color:H.color.highlight}},nameProperty:"name"},e})(nt);function hI(r){return r.indexOf("i")===0}function Rd(r){return Uc(r.seriesGroup)===r&&!r.getHostGeoModel()}function Uc(r){return r.f[0]}function H1(r,e){var t={};return r.eachRawSeriesByType(os,function(a){var n=a.getHostGeoModel(),i=n?"o"+n.id:"i"+a.getMapType(),o=t[i]=t[i]||{f:[],r:[]};!r.isSeriesFiltered(a)&&!e&&o.f.push(a),o.r.push(a)}),t}var zZ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=os,t}return e.prototype.render=function(t,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){var s=this._mapDraw;s&&i&&i.type==="geoRoam"&&s.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id?s&&o.add(s.group):Rd(t)?(s=s||(this._mapDraw=new iI(n)),o.add(s.group),s.draw(t,a,n,this,i)):this._clearMapDraw(),t.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(t)}}},e.prototype.__updateOnOwnRoam=function(t,a,n){var i=this._mapDraw;Rd(a)&&i&&i.__updateOnOwnRoam(a)},e.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},e.prototype.dispose=function(){this._clearMapDraw()},e.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t){var a=t.originalData,n=this.group;a.each(a.mapDimension("value"),function(i,o){if(!isNaN(i)){var s=a.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,c=new wn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:$s+1)});if(!u){var f=Uc(t.seriesGroup).getData(),h=a.getName(o),v=f.indexOfName(h),d=a.getItemModel(o),p=d.getModel("label"),g=f.getItemGraphicEl(v);Vt(c,Lt(d),{labelFetcher:{getFormattedLabel:function(m,_){return t.getFormattedLabel(v,_)}},defaultText:h}),c.disableLabelAnimation=!0,p.get("position")||c.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(m){Th(c,m)}}n.add(c)}}})},e.type=os,e})(et),GZ={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},vI=["lng","lat"],dI=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;i.dimensions=vI,i.type="geo",i._nameCoordMap=re(),i.name=t;var o=n.projection,s=Ln.load(a,n.nameMap,n.nameProperty),l=Ln.getGeoResource(a),u=i.resourceType=l?l.type:null,c=i.regions=s.regions,f=GZ[l.type];i._clip=n.clip;var h=o?!1:f.invertLongitute;i.view=new Cd(h,jM(n.ecModel,n.api),i),i.map=a,i._regionsMap=s.regionsMap,i.regions=s.regions,process.env.NODE_ENV!=="production"&&o&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&lt("Map "+a+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(process.env.NODE_ENV!=="production"&&lt("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o;var v;if(o)for(var d=0;d<c.length;d++){var p=c[d].getBoundingRect(o);v=v||p.clone(),v.union(p)}else v=s.boundingRect;return Ad(i.view,v.x,v.y,v.width,v.height),i.aspectScale=o?1:oe(n.aspectScale,f.aspectScale),i}return e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(Q(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.view.dataToPoint(t,a,n)}},e.prototype.pointToData=function(t,a,n){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.view.pointToData(t,n)},e.prototype.convertToPixel=function(t,a,n){var i=pI(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=pI(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var a=I1(null,this.view);return a.x-=t,a.y-=t,a.width+=2*t,a.height+=2*t,a},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e})(Da);function pI(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",mt).models[0]||{}).coordinateSystem:null}function gI(r,e){var t=this.view,a=r.get("boundingCoords");if(a!=null){var n=a[0],i=a[1];if(!(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var o=this.projection;if(o){var s=n[0],l=n[1],u=i[0],c=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var f=function(w,C,E,T){for(var D=E-w,A=T-C,I=0;I<=100;I++){var M=I/100,L=o.project([w+D*M,C+A*M]);Un(n,n,L),Wn(i,i,L)}};f(s,l,u,l),f(u,l,u,c),f(u,c,s,c),f(s,c,u,l)}Ad(t,n[0],n[1],i[0]-n[0],i[1]-n[1])}}var h=t.getBoundingRect(),v=r.get("layoutCenter"),d=r.get("layoutSize"),p=Nt(r,e).refContainer,g=h.width/h.height*this.aspectScale,m=!1,_,S;v&&d&&(_=[ee(v[0],p.width)+p.x,ee(v[1],p.height)+p.y],S=ee(d,Math.min(p.width,p.height)),!isNaN(_[0])&&!isNaN(_[1])&&!isNaN(S)?m=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var x;if(m)x={},g>1?(x.width=S,x.height=S/g):(x.height=S,x.width=S*g),x.y=_[1]-x.height/2,x.x=_[0]-x.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,x=ct(b,p),x=PT(r,x,g)}Md(t,x.x,x.y,x.width,x.height),L1(t,r)}function FZ(r,e){k(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var HZ=(function(){function r(){this.dimensions=vI}return r.prototype.create=function(e,t){var a=[];function n(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection"),clip:i.getShallow("clip",!0)}}return e.eachComponent("geo",function(i,o){var s=i.get("map"),l=new dI(s+o,s,U({nameMap:i.get("nameMap"),api:t,ecModel:e},n(i)));a.push(l),i.coordinateSystem=l,l.model=i,l.resize=gI,l.resize(i,t)}),e.eachSeries(function(i){zu({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var o=i.subType===os?i.getHostGeoModel():i.getReferringComponents("geo",mt).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),k(H1(e,!0),function(i,o){if(hI(o)){var s=i.r[0],l=[];k(i.r,function(h){l.push(h.get("nameMap")),h.seriesGroup=null});var u=o.slice(1),c=new dI(u,u,U({nameMap:Xp(l),api:t,ecModel:e},n(s))),f;k(i.r,function(h){f=oe(f,h.get("scaleLimit"))}),a.push(c),c.resize=gI,c.resize(s,t),k(i.r,function(h){h.coordinateSystem=c,FZ(c,h)})}}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=re(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Ln.load(t,a,n);return k(l.regions,function(u){var c=u.name,f=o.get(c),h=u.properties&&u.properties.echartsStyle;f||(f={name:c},i.push(f)),h&&ke(f,h)}),i},r})(),mI=new HZ,$Z=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n);var i=Ln.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||H.color.backgroundTint)}qi(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=mI.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=wa(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new ze(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},re()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new ze(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var n=this.getRegionModel(t),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(ce(i))return o.status=a,i(o);if(Q(i))return i.replace("{a}",t??"")},e.prototype.select=function(t){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:H.color.tertiary},itemStyle:{borderWidth:.5,borderColor:H.color.border},emphasis:{label:{show:!0,color:H.color.primary},itemStyle:{color:H.color.highlight}},select:{label:{show:!0,color:H.color.primary},itemStyle:{color:H.color.highlight}},regions:[]},e})(Ne),UZ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new iI(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype.__updateOnOwnRoam=function(t,a,n){var i=this._mapDraw;i&&i.__updateOnOwnRoam(a)},e.prototype._handleRegionClick=function(t){var a;Lo(t.target,function(n){return(a=be(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=be(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(st);function WZ(r,e,t){Ln.registerMap(r,e,t)}function yI(r){r.registerCoordinateSystem("geo",mI),r.registerComponentModel($Z),r.registerComponentView(UZ),r.registerImpl("registerMap",WZ),r.registerImpl("getMap",function(t){return Ln.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;k(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];k(o,function(f,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,n){var i=t.componentType||(t.geoId!=null||t.geoName!=null||t.geoIndex!=null?"geo":Ha),o=i===Ha;if(!(i!=="geo"&&!o)){var s=o?"map":null;a.eachComponent(am(t,i,s),function(l){o&&!Rd(l)||(XM(t,l,o?l.seriesGroup.r:null),ZM(t,l,a,n))})}})}var YZ=Mt(os,XZ);function XZ(r){k(H1(r),function(e,t){if(!(!Uc(e)||!hI(t))){var a={};k(e.f,function(i){var o=i.coordinateSystem,s=i.originalData;i.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var c=s.getName(u),f=o.getRegion(c);if(!(!f||isNaN(l))){var h=a[c]||0,v=o.dataToPoint(f.getCenter());a[c]=h+1,s.setItemLayout(u,{point:v,offset:h})}})});var n=Uc(e).getData();n.each(function(i){var o=n.getName(i),s=n.getItemLayout(i)||{};s.showLabel=!a[o],n.setItemLayout(i,s)})}})}function ZZ(r,e){var t={};return k(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c<u;c++)s=Math.min(s,t[i][c]),l=Math.max(l,t[i][c]),o+=t[i][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}var qZ=Mt(os,KZ);function KZ(r){k(H1(r),function(e){var t=Uc(e);if(t){var a=ZZ(K(e.f,function(n){return n.getData()}),t.get("mapValueCalculation"));k(e.f,function(n){n.seriesGroup=e,n.originalData=n.getData(),n.setData(a.cloneShallow())})}})}function jZ(r){Ae(yI),r.registerChartView(zZ),r.registerSeriesModel(BZ),r.registerLayout(YZ),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,qZ),oE("map",r.registerAction)}function QZ(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],a,n;a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function JZ(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){tq(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=rq(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function eq(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function _I(r){return arguments.length?r:iq}function Wc(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function tq(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function rq(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=$1(s),i=U1(i),s&&i;){n=$1(n),o=U1(o),n.hierNode.ancestor=r;var h=s.hierNode.prelim+f-i.hierNode.prelim-u+a(s,i);h>0&&(nq(aq(s,r,t),r,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,c+=o.hierNode.modifier}s&&!$1(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=f-l),i&&!U1(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=r)}return t}function $1(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function U1(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function aq(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function nq(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function iq(r,e){return r.parentNode===e.parentNode?1:2}var ra=De();function SI(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,xI(e,t,r),k(t,function(a){k(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,Me(oq,r))})}),e.wrapMethod("cloneShallow",Me(lq,r)),k(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,Me(sq,r))}),Z(t[e.dataType]===e)}function oq(r,e){if(fq(this)){var t=U({},ra(this).datas);t[this.dataType]=e,xI(e,t,r)}else W1(e,this.dataType,ra(this).mainData,r);return e}function sq(r,e){return r.struct&&r.struct.update(),e}function lq(r,e){return k(ra(e).datas,function(t,a){t!==e&&W1(t.cloneShallow(),a,e,r)}),e}function uq(r){var e=ra(this).mainData;return r==null||e==null?e:ra(e).datas[r]}function cq(){var r=ra(this).mainData;return r==null?[{data:r}]:K(Oe(ra(r).datas),function(e){return{type:e,data:ra(r).datas[e]}})}function fq(r){return ra(r).mainData===r}function xI(r,e,t){ra(r).datas={},k(e,function(a,n){W1(a,n,r,t)})}function W1(r,e,t,a){ra(t).datas[e]=r,ra(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=uq,r.getLinkedDataAll=cq}var hq=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,a){ce(e)&&(a=t,t=e,e=null),e=e||{},Q(e)&&(e={order:e});var n=e.order||"preorder",i=this[e.attr||"children"],o;n==="preorder"&&(o=t.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,a);n==="postorder"&&t.call(a,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],a=e?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})(),Y1=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,a){this.root.eachNode(e,t,a)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,a=0,n=t.length;a<n;a++)t[a].dataIndex=-1;for(var a=0,n=e.count();a<n;a++)t[e.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,a){var n=new r(t),i=[],o=1;s(e);function s(c,f){var h=c.value;o=Math.max(o,Y(h)?h.length:1),i.push(c);var v=new hq(At(c.name,""),n);f?vq(v,f):n.root=v,n._nodes.push(v);var d=c.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}n.root.updateDepthAndHeight(0);var l=nc(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new mr(l,t);return u.initData(i),a&&a(u),SI({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r})();function vq(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function Yc(r,e,t){if(r&&Ee(e,r.type)>=0){var a=t.getData().tree.root,n=r.targetNode;if(Q(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function bI(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function X1(r,e){var t=bI(r);return Ee(t,e)>=0}function Od(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var ss="tree",dq=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new ze(n,this,this.ecModel),o=Y1.createTree(a,this,s);function s(f){f.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Et("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Od(n,this),a.collapsed=!n.isExpand,a},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+ss,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:H.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(nt),pq=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),gq=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new pq},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=ee(a.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*h,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[c]=s[c],t.lineTo(v[0],v[1]),v[c]=l[c],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),v[c]=p[c],t.lineTo(v[0],v[1])}},e})(Re),mq=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=ss,t._mainGroup=new ge,t}return e.prototype.init=function(t,a){this._controller=new ts(a.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,a,n){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,n),Nd(t,n,this._controller,eI(this.group),null);var u=this._data;i.diff(u).add(function(c){wI(i,c)&&CI(i,c,null,s,t)}).update(function(c,f){var h=u.getItemGraphicEl(f);if(!wI(i,c)){h&&DI(u,f,h,s,t);return}CI(i,c,h,s,t)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&DI(u,c,f,s,t)}).execute(),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:f})})}),this._data=i,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,a,n){xi(this.group,en,a.coordinateSystem,null),rI(t)&&this._updateNodeAndLinkScale(a)},e.prototype._updateViewCoordSys=function(t,a){var n=t.getData(),i=[];n.each(function(f){var h=n.getItemLayout(f);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];gh(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=G1(t,a,o[0],o[1],s[0]-o[0],s[1]-o[1]);xi(this.group,en,c,this._firstRender?null:t),this._min=o,this._max=s},e.prototype._updateNodeAndLinkScale=function(t){var a=t.getData(),n=JM(t.coordinateSystem,t);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=ss,e})(et);function wI(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function CI(r,e,t,a,n){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:H.color.neutral00,c=r.tree.root,f=o.parentNode===c?o:o.parentNode||o,h=r.getItemGraphicEl(f.dataIndex),v=f.getLayout(),d=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,p=o.getLayout();i?(t=new wc(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=d.x,t.y=d.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=p.rawX,t.__radialRawY=p.rawY,a.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,$e(t,{x:p.x,y:p.y},n);var g=t.getSymbolPath();if(n.get("layout")==="radial"){var m=c.children[0],_=m.getLayout(),S=m.children.length,x=void 0,b=void 0;if(p.x===_.x&&o.isExpand===!0&&m.children.length){var w={x:(m.children[0].getLayout().x+m.children[S-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[S-1].getLayout().y)/2};x=Math.atan2(w.y-_.y,w.x-_.x),x<0&&(x=Math.PI*2+x),b=w.x<_.x,b&&(x=x-Math.PI)}else x=Math.atan2(p.y-_.y,p.x-_.x),x<0&&(x=Math.PI*2+x),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=p.x<_.x,b&&(x=x-Math.PI)):(b=p.x>_.x,b||(x=x-Math.PI));var C=b?"left":"right",E=s.getModel("label"),T=E.get("rotate"),D=T*(Math.PI/180),A=g.getTextContent();A&&(g.setTextConfig({position:E.get("position")||C,rotation:T==null?-x:D,origin:"center"}),A.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),M=I==="relative"?au(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;M&&(be(t).focus=M),yq(n,o,c,t,d,v,p,a),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var N=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);N&&N.hoverState===wu||Th(t.__edge,L)}})}function yq(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),c=r.get("layout"),f=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=a.__edge=new Au({shape:Z1(c,f,h,n,n)})),$e(p,{shape:Z1(c,f,h,i,o)},r));else if(u==="polyline"){if(c==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,m=[],_=0;_<g.length;_++){var S=g[_].getLayout();m.push([S.x,S.y])}p||(p=a.__edge=new gq({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:v}})),$e(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(me({strokeNoScale:!0,fill:null},d)),It(p,l,"lineStyle"),uo(p),s.add(p))}function TI(r,e,t,a,n){var i=e.tree.root,o=EI(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),v=a.get("edgeShape"),d=a.get("layout"),p=a.get("orient"),g=a.get(["lineStyle","curveness"]);h&&(v==="curve"?si(h,{shape:Z1(d,p,g,l,l),style:{opacity:0}},a,{cb:function(){t.remove(h)},removeOpt:n}):v==="polyline"&&a.get("layout")==="orthogonal"&&si(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){t.remove(h)},removeOpt:n}))}}function EI(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,a;a=t.getLayout(),a==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:a}}function DI(r,e,t,a,n){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=EI(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};si(t,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),k(i.children,function(u){TI(u,r,a,n,l)}),TI(i,r,a,n,l)}function Z1(r,e,t,a,n){var i,o,s,l,u,c,f,h;if(r==="radial"){u=a.rawX,f=a.rawY,c=n.rawX,h=n.rawY;var v=Wc(u,f),d=Wc(u,f+(h-f)*t),p=Wc(c,h+(f-h)*t),g=Wc(c,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=a.x,f=a.y,c=n.x,h=n.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*t,o=f,s=c+(u-c)*t,l=h),(e==="TB"||e==="BT")&&(i=u,o=f+(h-f)*t,s=c,l=h+(f-h)*t);return{x1:u,y1:f,x2:c,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}function _q(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)e(i,t)}function Xc(r,e){for(var t=[r],a;a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function Sq(r,e){r.eachSeriesByType("tree",function(t){xq(t,e)})}function xq(r,e){var t=Nt(r,e).refContainer,a=ct(r.getBoxLayoutParams(),t);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,s=null;n==="radial"?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,s=_I(function(x,b){return(x.parentNode===b.parentNode?1:2)/x.depth})):(i=a.width,o=a.height,s=_I());var l=r.getData().tree.root,u=l.children[0];if(u){QZ(l),_q(u,JZ,s),l.hierNode.modifier=-u.hierNode.prelim,Xc(u,eq);var c=u,f=u,h=u;Xc(u,function(x){var b=x.getLayout().x;b<c.getLayout().x&&(c=x),b>f.getLayout().x&&(f=x),x.depth>h.depth&&(h=x)});var v=c===f?1:s(c,f)/2,d=v-c.getLayout().x,p=0,g=0,m=0,_=0;if(n==="radial")p=i/(f.getLayout().x+v+d),g=o/(h.depth-1||1),Xc(u,function(x){m=(x.getLayout().x+d)*p,_=(x.depth-1)*g;var b=Wc(m,_);x.setLayout({x:b.x,y:b.y,rawX:m,rawY:_},!0)});else{var S=r.getOrient();S==="RL"||S==="LR"?(g=o/(f.getLayout().x+v+d),p=i/(h.depth-1||1),Xc(u,function(x){_=(x.getLayout().x+d)*g,m=S==="LR"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:m,y:_},!0)})):(S==="TB"||S==="BT")&&(p=i/(f.getLayout().x+v+d),g=o/(h.depth-1||1),Xc(u,function(x){m=(x.getLayout().x+d)*p,_=S==="TB"?(x.depth-1)*g:o-(x.depth-1)*g,x.setLayout({x:m,y:_},!0)}))}}}function bq(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:Ha,subType:ss,query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),z1(r,Ha,ss)}var wq=Mt(ss,Cq);function Cq(r){r.eachSeriesByType(ss,function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");U(s,o)})})}function Tq(r){r.registerChartView(mq),r.registerSeriesModel(dq),r.registerLayout(Sq),r.registerVisual(wq),bq(r)}var kI=["treemapZoomToNode","treemapRender","treemapMove"];function Eq(r){for(var e=0;e<kI.length;e++)r.registerAction({type:kI[e],update:"updateView"},pt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,a){a.eachComponent({mainType:"series",subType:"treemap",query:t},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Yc(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=X1(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function AI(r){var e=r.getData(),t=e.tree,a={};t.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Ty(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var Dq=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};MI(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new ze({itemStyle:o},this,a);i=t.levels=kq(i,a);var l=K(i||[],function(f){return new ze(f,s,a)},this),u=Y1.createTree(n,this,c);function c(f){f.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Et("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Od(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},U(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=re(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){AI(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:H.size.l,top:H.size.xxxl,right:H.size.l,bottom:H.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:H.size.m,emptyItemWidth:25,itemStyle:{color:H.color.backgroundShade,textStyle:{color:H.color.secondary}},emphasis:{itemStyle:{color:H.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:H.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:H.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(nt);function MI(r){var e=0;k(r.children,function(a){MI(a);var n=a.value;Y(n)&&(n=n[0]),e+=n});var t=r.value;Y(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),Y(r.value)?r.value[0]=t:r.value=t}function kq(r,e){var t=tt(e.get("color")),a=tt(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;k(r,function(s){var l=new ze(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}var Aq=8,II=8,q1=5,Mq=(function(){function r(e){this.group=new ge,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f=Nt(e,t).refContainer,h={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},v={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=ct(h,f);this._prepare(a,v,u),this._renderContent(e,v,d,s,l,u,c,n),ev(o,h,f)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=At(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+Aq*2,t.emptyItemWidth);t.totalWidth+=s+II,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s,l){for(var u=0,c=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),h=t.totalWidth,v=t.renderList,d=i.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],m=g.node,_=g.width,S=g.text;h>a.width&&(h-=_-c,_=c,S=null);var x=new nr({shape:{points:Iq(u,0,_,f,p===v.length-1,p===0)},style:me(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Fe({style:at(o,{text:S})}),textConfig:{position:"inside"},z2:$s*1e4,onclick:Me(l,m)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=at(s,{text:S}),x.ensureState("emphasis").style=d,ut(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),Lq(x,e,m),u+=_+II}},r.prototype.remove=function(){this.group.removeAll()},r})();function Iq(r,e,t,a,n,i){var o=[[n?r:r-q1,e],[r+t,e],[r+t,e+a],[n?r:r-q1,e+a]];return!i&&o.splice(2,0,[r+t+q1,e+a/2]),!n&&o.push([r,e+a/2]),o}function Lq(r,e,t){be(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Od(t,e)}}var Nq=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r})();function Pq(){return new Nq}var Zc=Math.max,Vd=Math.min,K1=k,LI=["itemStyle","borderWidth"],Rq=["itemStyle","gapWidth"],Oq=["upperLabel","show"],Vq=["upperLabel","height"];const Bq={seriesType:"treemap",reset:function(r,e,t,a){var n=r.option,i=Nt(r,t).refContainer,o=ct(r.getBoxLayoutParams(),i),s=a&&a.type,l=["treemapZoomToNode","treemapRootToNode"],u=Yc(a,l,r),c=s==="treemapRender"||s==="treemapMove"?a.rootRect:null,f=r.getViewRoot(),h=bI(f);if(s!=="treemapMove"){var v=!1,d=s==="treemapZoomToNode"?(v=!0,Uq(r,u,f,o)):c?(v=!0,U({},c)):U({},o);if(v){var p=VI(o,d);p=BI(p,r),d.width=o.width*p,d.height=o.height*p}var g=n.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var m={squareRatio:n.squareRatio,sort:g,leafDepth:n.leafDepth};f.hostTree.clearLayouts();var _={x:0,y:0,width:d.width,height:d.height,area:d.width*d.height};f.setLayout(_),NI(f,m,!1,0),_=f.getLayout(),K1(h,function(x,b){var w=(h[b+1]||f).getValue();x.setLayout(U({dataExtent:[w,w],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(Wq(o,c,u),!0),r.setLayoutInfo(o),RI(S,new pe(-o.x,-o.y,t.getWidth(),t.getHeight()),h,f,0)}};function NI(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(LI),u=s.get(Rq)/2,c=OI(s),f=Math.max(l,c),h=l-u,v=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),n=Zc(n-2*h,0),i=Zc(i-h-v,0);var d=n*i,p=zq(r,s,d,e,t,a);if(p.length){var g={x:h,y:v,width:n,height:i},m=Vd(n,i),_=1/0,S=[];S.area=0;for(var x=0,b=p.length;x<b;){var w=p[x];S.push(w),S.area+=w.getLayout().area;var C=$q(S,m,e.squareRatio);C<=_?(x++,_=C):(S.area-=S.pop().getLayout().area,PI(S,m,g,u,!1),m=Vd(g.width,g.height),S.length=S.area=0,_=1/0)}if(S.length&&PI(S,m,g,u,!0),!t){var E=s.get("childrenVisibleMin");E!=null&&d<E&&(t=!0)}for(var x=0,b=p.length;x<b;x++)NI(p[x],e,t,a+1)}}}function zq(r,e,t,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=Ze(o,function(v){return!v.isRemoved()}),Fq(o,s);var u=Hq(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=Gq(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var h=o[c].getValue()/u.sum*t;o[c].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function Gq(r,e,t,a,n){if(!a)return t;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),t}function Fq(r,e){return e&&r.sort(function(t,a){var n=e==="asc"?t.getValue()-a.getValue():a.getValue()-t.getValue();return n===0?e==="asc"?t.dataIndex-a.dataIndex:a.dataIndex-t.dataIndex:n}),r}function Hq(r,e,t){for(var a=0,n=0,i=e.length;n<i;n++)a+=e[n].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=qt(),K1(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function $q(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Zc(u*a/l,l/(u*n)):1/0}function PI(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?r.area/e:0;(n||c>t[l[o]])&&(c=t[l[o]]);for(var f=0,h=r.length;f<h;f++){var v=r[f],d={},p=c?v.getLayout().area/c:0,g=d[l[o]]=Zc(c-2*a,0),m=t[s[i]]+t[l[i]]-u,_=f===h-1||m<p?m:p,S=d[l[i]]=Zc(_-2*a,0);d[s[o]]=t[s[o]]+Vd(a,g/2),d[s[i]]=u+Vd(a,S/2),u+=_,v.setLayout(d,!0)}t[s[o]]+=c,t[l[o]]-=c}function Uq(r,e,t,a){var n=(e||{}).node,i=a.width,o=a.height,s=U({},a);if(!n||n===t)return s;for(var l,u=i*o,c=u*r.option.zoomToNodeRatio;l=n.parentNode;){for(var f=0,h=l.children,v=0,d=h.length;v<d;v++)f+=h[v].getValue();var p=n.getValue();if(p===0)return s;c*=f/p;var g=l.getModel(),m=g.get(LI),_=Math.max(m,OI(g));c+=4*m*m+(3*m+_)*Math.pow(c,.5),c>oh&&(c=oh),n=l}c<u&&(c=u);var S=Math.pow(c/u,.5);return{width:i*S,height:o*S}}function Wq(r,e,t){if(e)return{x:e.x,y:e.y};var a={x:0,y:0};if(!t)return a;var n=t.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function RI(r,e,t,a,n){var i=r.getLayout(),o=t[n],s=o&&o===r;if(!(o&&!s||n===t.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new pe(e.x-i.x,e.y-i.y,e.width,e.height);K1(r.viewChildren||[],function(u){RI(u,l,t,a,n+1)})}}function OI(r){return r.get(Oq)?r.get(Vq):0}function VI(r,e){return e.width/r.width||e.height/r.height||1}function BI(r,e){return V1(r,e.get("scaleLimit",!0))}var j1=ge,zI=Le,GI=3,FI="label",HI="upperLabel",Yq=$s*10,Xq=$s*2,Zq=$s*3,ls=Ji([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),$I=function(r){var e=ls(r);return e.stroke=e.fill=e.lineWidth=null,e},Bd=De(),qq=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=qc(),t}return e.prototype.render=function(t,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Ee(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=Yc(i,s,t),u=i&&i.type,c=t.layoutInfo,f=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(c),p=t.get("animation"),g=this._doRender(d,t,v);p&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,t,v):g.renderFinally(),this._resetController(n),this._renderBreadcrumb(t,n,l)}},e.prototype._giveContainerGroup=function(t){var a=this._containerGroup;return a||(a=this._containerGroup=new j1,this._initEvents(a),this.group.add(a)),a.x=t.x,a.y=t.y,a},e.prototype._doRender=function(t,a,n){var i=a.getData().tree,o=this._oldTree,s=qc(),l=qc(),u=this._storage,c=[];function f(g,m,_,S){return Kq(a,l,u,n,s,c,g,m,_,S)}v(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:p};function v(g,m,_,S,x){S?(m=g,k(g,function(C,E){!C.isRemoved()&&w(E,E)})):new kn(m,g,b,b).add(w).update(w).remove(Me(w,null)).execute();function b(C){return C.getId()}function w(C,E){var T=C!=null?g[C]:null,D=E!=null?m[E]:null,A=f(T,D,_,x);A&&v(T&&T.viewChildren||[],D&&D.viewChildren||[],A,S,x+1)}}function d(g){var m=qc();return g&&k(g,function(_,S){var x=m[S];k(_,function(b){b&&(x.push(b),Bd(b).willDelete=!0)})}),m}function p(){k(h,function(g){k(g,function(m){m.parent&&m.parent.remove(m)})}),k(c,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(ce(o)?0:o)||0,u=(ce(s)?null:s)||"cubicOut",c=Pq();k(a.willDeleteEls,function(f,h){k(f,function(v,d){if(!v.invisible){var p=v.parent,g,m=Bd(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var _=0,S=0;m.willDelete||(_=m.nodeWidth/2,S=m.nodeHeight/2),g=h==="nodeGroup"?{x:_,y:S,style:{opacity:0}}:{shape:{x:_,y:S,width:0,height:0},style:{opacity:0}}}g&&c.add(v,g,l,0,u)}})}),k(this._storage,function(f,h){k(f,function(v,d){var p=a.lastsForAnimation[h][d],g={};p&&(v instanceof ge?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=U({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),c.add(v,g,l,0,u))})},this),this._state="animating",c.finished(ie(function(){this._state="ready",a.renderFinally()},this)).start()},e.prototype._resetController=function(t){var a=this,n=this.seriesModel,i=this._controller;i||(i=this._controller=new ts(t.getZr()),i.on("pan",ie(this._onPan,this)),i.on("zoom",ie(this._onZoom,this))),i.enable(n.get("roam"),{api:t,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:function(o,s,l){var u=a._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>GI||Math.abs(t.dy)>GI)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY,i=t.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new pe(l.x,l.y,l.width,l.height),c=o.layoutInfo,f=VI(c,l),h=f*i;h=BI(h,o);var v=h/f;a-=c.x,n-=c.y;var d=ft();Ca(d,d,[-a,-n]),og(d,d,[v,v]),Ca(d,d,[a,n]),u.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Kh(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Mq(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(X1(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=qc(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e})(et);function qc(){return{nodeGroup:[],background:[],content:[]}}function Kq(r,e,t,a,n,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=r.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,d=c.height,p=c.borderWidth,g=c.invisible,m=o.getRawIndex(),_=s&&s.getRawIndex(),S=o.viewChildren,x=c.upperHeight,b=S&&S.length,w=h.getModel("itemStyle"),C=h.getModel(["emphasis","itemStyle"]),E=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),D=w.get("borderRadius")||0,A=V("nodeGroup",j1);if(!A)return;if(l.add(A),A.x=c.x||0,A.y=c.y||0,A.markRedraw(),Bd(A).nodeWidth=v,Bd(A).nodeHeight=d,c.isAboveViewRoot)return A;var I=V("background",zI,u,Xq);I&&F(A,I,b&&c.upperLabelHeight);var M=h.getModel("emphasis"),L=M.get("focus"),N=M.get("blurScope"),R=M.get("disabled"),P=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(b)oi(A)&&fo(A,!1),I&&(fo(I,!R),f.setItemGraphicEl(o.dataIndex,I),Bm(I,P,N));else{var O=V("content",zI,u,Zq);O&&B(A,O),I.disableMorphing=!0,I&&oi(I)&&fo(I,!1),fo(A,!R),f.setItemGraphicEl(o.dataIndex,A);var G=h.getShallow("cursor");G&&O.attr("cursor",G),Bm(A,P,N)}return A;function F(fe,ne,we){var se=be(ne);if(se.dataIndex=o.dataIndex,se.seriesIndex=r.seriesIndex,ne.setShape({x:0,y:0,width:v,height:d,r:D}),g)$(ne);else{ne.invisible=!1;var xe=o.getVisual("style"),qe=xe.stroke,Pe=$I(w);Pe.fill=qe;var Xe=ls(C);Xe.fill=C.get("borderColor");var je=ls(E);je.fill=E.get("borderColor");var yt=ls(T);if(yt.fill=T.get("borderColor"),we){var lr=v-2*p;j(ne,qe,xe.opacity,{x:p,y:0,width:lr,height:x})}else ne.removeTextContent();ne.setStyle(Pe),ne.ensureState("emphasis").style=Xe,ne.ensureState("blur").style=je,ne.ensureState("select").style=yt,uo(ne)}fe.add(ne)}function B(fe,ne){var we=be(ne);we.dataIndex=o.dataIndex,we.seriesIndex=r.seriesIndex;var se=Math.max(v-2*p,0),xe=Math.max(d-2*p,0);if(ne.culling=!0,ne.setShape({x:p,y:p,width:se,height:xe,r:D}),g)$(ne);else{ne.invisible=!1;var qe=o.getVisual("style"),Pe=qe.fill,Xe=$I(w);Xe.fill=Pe,Xe.decal=qe.decal;var je=ls(C),yt=ls(E),lr=ls(T);j(ne,Pe,qe.opacity,null),ne.setStyle(Xe),ne.ensureState("emphasis").style=je,ne.ensureState("blur").style=yt,ne.ensureState("select").style=lr,uo(ne)}fe.add(ne)}function $(fe){!fe.invisible&&i.push(fe)}function j(fe,ne,we,se){var xe=h.getModel(se?HI:FI),qe=At(h.get("name"),null),Pe=xe.getShallow("show");Vt(fe,Lt(h,se?HI:FI),{defaultText:Pe?qe:null,inheritColor:ne,defaultOpacity:we,labelFetcher:r,labelDataIndex:o.dataIndex});var Xe=fe.getTextContent();if(Xe){var je=Xe.style,yt=Cf(je.padding||0);se&&(fe.setTextConfig({layoutRect:se}),Xe.disableLabelLayout=!0),Xe.beforeUpdate=function(){var Xt=Math.max((se?se.width:fe.shape.width)-yt[1]-yt[3],0),ba=Math.max((se?se.height:fe.shape.height)-yt[0]-yt[2],0);(je.width!==Xt||je.height!==ba)&&Xe.setStyle({width:Xt,height:ba})},je.truncateMinChar=2,je.lineOverflow="truncate",W(je,se,c);var lr=Xe.getState("emphasis");W(lr?lr.style:null,se,c)}}function W(fe,ne,we){var se=fe?fe.text:null;if(!ne&&we.isLeafRoot&&se!=null){var xe=r.get("drillDownIcon",!0);fe.text=xe?xe+" "+se:se}}function V(fe,ne,we,se){var xe=_!=null&&t[fe][_],qe=n[fe];return xe?(t[fe][_]=null,q(qe,xe)):g||(xe=new ne,xe instanceof Wr&&(xe.z2=jq(we,se)),Ce(qe,xe)),e[fe][m]=xe}function q(fe,ne){var we=fe[m]={};ne instanceof j1?(we.oldX=ne.x,we.oldY=ne.y):we.oldShape=U({},ne.shape)}function Ce(fe,ne){var we=fe[m]={},se=o.parentNode,xe=ne instanceof ge;if(se&&(!a||a.direction==="drillDown")){var qe=0,Pe=0,Xe=n.background[se.getRawIndex()];!a&&Xe&&Xe.oldShape&&(qe=Xe.oldShape.width,Pe=Xe.oldShape.height),xe?(we.oldX=0,we.oldY=Pe):we.oldShape={x:qe,y:Pe,width:0,height:0}}we.fadein=!xe}}function jq(r,e){return r*Yq+e}var Kc=k,Qq=de,zd=-1,zt=(function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=he(e);this.type=a,this.mappingMethod=t,this._normalizeData=tK[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(Q1(n),Jq(n)):t==="category"?n.categories?eK(n):Q1(n,!0):(Z(t!=="linear"||n.dataExtent),Q1(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return ie(this._normalizeData,this)},r.listVisualTypes=function(){return Oe(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){de(e)?k(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=Y(e)?[]:de(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&Kc(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(Y(e))e=e.slice();else if(Qq(e)){var t=[];Kc(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||Q(l)&&l===e+"")return o;a&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Fd(f[1],e,c[1]))return o}else if(c[1]===1/0){if(Fd(f[0],c[0],e))return o}else if(Fd(f[0],c[0],e)&&Fd(f[1],e,c[1]))return o;a&&h(c[0],o),a&&h(c[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function h(v,d){var p=Math.abs(v-e);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:jc("color"),getColorMapper:function(){var e=this.option;return ie(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),Qc.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=bg(t,e.parsedVisual,n),i?n:Ea(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Ea(bg(e,this.option.parsedVisual),"rgba")},category:Qc,piecewise:function(e,t){var a=e_.call(this,t);return a==null&&(a=Ea(bg(e,this.option.parsedVisual),"rgba")),a},fixed:us}},colorHue:Gd(function(e,t){return Qn(e,t)}),colorSaturation:Gd(function(e,t){return Qn(e,null,t)}),colorLightness:Gd(function(e,t){return Qn(e,null,null,t)}),colorAlpha:Gd(function(e,t){return zf(e,t)}),decal:{applyVisual:jc("decal"),_normalizedToVisual:{linear:null,category:Qc,piecewise:null,fixed:null}},opacity:{applyVisual:jc("opacity"),_normalizedToVisual:J1([0,1])},liftZ:{applyVisual:jc("liftZ"),_normalizedToVisual:{linear:us,category:us,piecewise:us,fixed:us}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:UI,category:Qc,piecewise:function(e,t){var a=e_.call(this,t);return a==null&&(a=UI.call(this,e)),a},fixed:us}},symbolSize:{applyVisual:jc("symbolSize"),_normalizedToVisual:J1([0,1])}},r})();function Jq(r){var e=r.pieceList;r.hasSpecialVisual=!1,k(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function eK(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(Kc(e,function(o,s){t[o]=s}),!Y(a)){var n=[];de(a)?Kc(a,function(o,s){var l=t[s];n[l??zd]=o}):n[zd]=a,a=WI(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function Q1(r,e){var t=r.visual,a=[];de(t)?Kc(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),WI(r,a)}function Gd(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:J1([0,1])}}function UI(r){var e=this.option.visual;return e[Math.round(Ue(r,[0,1],[0,e.length-1],!0))]||{}}function jc(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Qc(r){var e=this.option.visual;return e[this.option.loop&&r!==zd?r%e.length:r]}function us(){return this.option.visual[0]}function J1(r){return{linear:function(e){return Ue(e,r,this.option.visual,!0)},category:Qc,piecewise:function(e,t){var a=e_.call(this,t);return a==null&&(a=Ue(e,r,this.option.visual,!0)),a},fixed:us}}function e_(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=zt.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function WI(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=K(e,function(t){var a=Cr(t);return!a&&process.env.NODE_ENV!=="production"&&lt("'"+t+"' is an illegal color, fallback to '#000000'",!0),a||[0,0,0,1]})),e}var tK={linear:function(r){return Ue(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=zt.findPieceIndex(r,e,!0);if(t!=null)return Ue(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??zd},fixed:pt};function Fd(r,e,t){return r?e<=t:e<t}var rK="itemStyle",YI=De();const aK={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||XI(t,{},r.getViewRoot().getAncestors(),r)}};function XI(r,e,t,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(rK),l=nK(s,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),h;f!=null&&(h=ZI(l),c=iK(f,h)),u.stroke=c;var v=r.viewChildren;if(!v||!v.length)h=ZI(l),u.fill=h;else{var d=oK(r,n,i,s,l,v);k(v,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var m=sK(n,l,p,g,d,a);XI(p,m,t,a)}})}}}function nK(r,e,t){var a=U({},e),n=t.designatedVisualItemStyle;return k(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function ZI(r){var e=t_(r,"color");if(e){var t=t_(r,"colorAlpha"),a=t_(r,"colorSaturation");return a&&(e=Qn(e,null,null,a)),t&&(e=zf(e,t)),e}}function iK(r,e){return e!=null?Qn(e,null,null,r):null}function t_(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function oK(r,e,t,a,n,i){if(!(!i||!i.length)){var o=r_(e,"color")||n.color!=null&&n.color!=="none"&&(r_(e,"colorAlpha")||r_(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new zt(f);return YI(h).drColorMappingBy=c,h}}}function r_(r,e){var t=r.get(e);return Y(t)&&t.length?{name:e,range:t}:null}function sK(r,e,t,a,n,i){var o=U({},e);if(n){var s=n.type,l=s==="color"&&YI(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}function lK(r){r.registerSeriesModel(Dq),r.registerChartView(qq),r.registerVisual(aK),r.registerLayout(Bq),Eq(r)}function Pl(r){return"_EC_"+r}var uK=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(a[Pl(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var n=new cs(e,t);return n.hostGraph=this,this.nodes.push(n),a[Pl(e)]=n,n},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Pl(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Ge(e)&&(e=this.nodes[e]),Ge(t)&&(t=this.nodes[t]),e instanceof cs||(e=n[Pl(e)]),t instanceof cs||(t=n[Pl(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new qI(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof cs&&(e=e.id),t instanceof cs&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof cs||(t=this._nodesMap[Pl(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(n,f,l))return;s.push(f),f.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),cs=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=re(),t=re(),a=0,n=this.edges.length;a<n;a++){var i=this.edges[a];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var c=u.inEdges,f=0,h=c.length,v=void 0,d=void 0;f<h;f++)v=c[f],d=v.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),o.push(v.node1))}for(l=0;l<s.length;){var p=s[l];l++,t.set(p.dataIndex,!0);for(var g=p.outEdges,f=0,m=g.length,_=void 0,S=void 0;f<m;f++)_=g[f],S=_.dataIndex,S>=0&&!e.hasKey(S)&&(e.set(S,!0),s.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},r})(),qI=(function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.edgeData.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=re(),t=re();e.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,c=void 0,f=void 0;l<u;l++)c=o.inEdges[l],f=c.dataIndex,f>=0&&!e.hasKey(f)&&(e.set(f,!0),a.push(c.node1))}for(i=0;i<n.length;){var h=n[i];i++,t.set(h.dataIndex,!0);for(var v=h.outEdges,l=0,u=v.length,d=void 0,p=void 0;l<u;l++)d=h.outEdges[l],p=d.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),n.push(d.node2))}return{edge:e.keys(),node:t.keys()}},r})();function KI(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}kt(cs,KI("hostGraph","data")),kt(qI,KI("hostGraph","edgeData"));function a_(r,e,t,a,n){for(var i=new uK(a),o=0;o<r.length;o++)i.addNode(Ft(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,h=c.target;i.addEdge(f,h,u)&&(l.push(c),s.push(Ft(At(c.id,null),f+" > "+h)),u++)}var v=t.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar"||v==="matrix")d=An(r,t);else{var p=rl.get(v),g=p?p.dimensions||[]:[];Ee(g,"value")<0&&g.concat(["value"]);var m=nc(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new mr(m,t),d.initData(r)}var _=new mr(["value"],t);return _.initData(l,s),n&&n(d,_),SI({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var n_="-->",Hd=function(r){return r.get("autoCurveness")||null},jI=function(r,e){var t=Hd(r),a=20,n=[];if(Ge(t))a=t;else if(Y(t)){r.__curvenessList=t;return}e>a&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Jc=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join(n_)},QI=function(r){var e=r.split(n_);return[e[0],e[2],e[1]].join(n_)},cK=function(r,e){var t=Jc(r.node1,r.node2,e);return e.__edgeMap[t]},fK=function(r,e){var t=i_(Jc(r.node1,r.node2,e),e),a=i_(Jc(r.node2,r.node1,e),e);return t+a},i_=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function hK(r){Hd(r)&&(r.__curvenessList=[],r.__edgeMap={},jI(r))}function vK(r,e,t,a){if(Hd(t)){var n=Jc(r,e,t),i=t.__edgeMap,o=i[QI(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function o_(r,e,t,a){var n=Hd(e),i=Y(n);if(!n)return null;var o=cK(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=fK(r,e);jI(e,u),r.lineStyle=r.lineStyle||{};var c=Jc(r.node1,r.node2,e),f=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return f[h+s];var v=QI(c),d=i_(v,e),p=f[s+d+h];return a?i?n&&n[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:f[s+d+h]}var xr="graph",dK=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Ml(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),qi(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){hK(this);var s=a_(i,n,this,!0,l);return k(s.edges,function(u){vK(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),m=p[g];return m&&(m.parentModel=d.parentModel,d.parentModel=m),d});var f=ze.prototype.getModel;function h(d,p){var g=f.call(this,d,p);return g.resolveParentPath=v,g}c.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Et("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=z2({series:this,dataIndex:t,multipleSeries:a});return f},e.prototype._updateCategoriesData=function(){var t=K(this.option.categories||[],function(n){return n.value!=null?n:U({value:0},n)}),a=new mr(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var t=this.coordinateSystem;return YM(t)&&t},e.type="series."+xr,e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:H.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:H.color.primary}}},e})(nt);function $d(r){return r instanceof Array||(r=[r,r]),r}var pK=Mt(xr,gK);function gK(r){r.eachSeriesByType(xr,function(e){var t=e.getGraph(),a=e.getEdgeData(),n=$d(e.get("edgeSymbol")),i=$d(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=t.getEdgeByIndex(o),u=$d(s.getShallow("symbol",!0)),c=$d(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),h=a.ensureUniqueItemVisual(o,"style");switch(U(h,f),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}function JI(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),s_(t,r)}}function s_(r,e){r.eachEdge(function(t,a){var n=fr(t.getModel().get(["lineStyle","curveness"]),-o_(t,e,a,!0),0),i=fn(t.node1.getLayout()),o=fn(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}var mK=Mt(xr,yK);function yK(r,e){r.eachSeriesByType(xr,function(t){var a=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var i=t.getData(),o=[];k(n.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}s_(i.graph,t)}else(!a||a==="none")&&JI(t)})}function ef(r){var e=r.coordinateSystem;return YM(e)?JM(e,r):1}function tf(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var eL=Math.PI,l_=[];function u_(r,e,t,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(t){var h=n.pointToData(a),v=h[0],d=h[1],p=[v-l,d-u];Ss(p,p),kf(p,p,c),t.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);tL(t,g,l,u)}_K[e](r,s,o,c,l,u,f),s.eachEdge(function(m,_){var S=fr(m.getModel().get(["lineStyle","curveness"]),o_(m,r,_),0),x=fn(m.node1.getLayout()),b=fn(m.node2.getLayout()),w,C=(x[0]+b[0])/2,E=(x[1]+b[1])/2;+S&&(S*=3,w=[l*S+C*(1-S),u*S+E*(1-S)]),m.setLayout([x,b,w])})}}}var _K={value:function(r,e,t,a,n,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),h=u*(l?f:1)/2;s+=h,c.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=h})},symbolSize:function(r,e,t,a,n,i,o){var s=0;l_.length=o;var l=ef(r);e.eachNode(function(f){var h=tf(f);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/a);isNaN(v)&&(v=eL/2),l_[f.dataIndex]=v,s+=v*2});var u=(2*eL-s)/o/2,c=0;e.eachNode(function(f){var h=u+l_[f.dataIndex];c+=h,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([a*Math.cos(c)+n,a*Math.sin(c)+i]),c+=h})}};function tL(r,e,t,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var h=s.ensureState("emphasis");U(h.textConfig||(h.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var SK=Mt(xr,xK);function xK(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&u_(e,"symbolSize")})}var Rl=qp;function bK(r,e,t){for(var a=r,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<a.length;c++){var f=a[c];f.p||(f.p=Ni(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=fn(f.p),f.edges=null}var h=t.friction==null?.6:t.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(a,n);for(var m=[],_=a.length,S=0;S<n.length;S++){var x=n[S];if(!x.ignoreForceLayout){var b=x.n1,w=x.n2;Pi(m,w.p,b.p);var C=Kp(m)-x.d,E=w.w/(b.w+w.w);isNaN(E)&&(E=0),Ss(m,m),!b.fixed&&Rl(b.p,b.p,m,E*C*v),!w.fixed&&Rl(w.p,w.p,m,-(1-E)*C*v)}}for(var S=0;S<_;S++){var T=a[S];T.fixed||(Pi(m,l,T.p),Rl(T.p,T.p,m,u*v))}for(var S=0;S<_;S++)for(var b=a[S],D=S+1;D<_;D++){var w=a[D];Pi(m,w.p,b.p);var C=Kp(m);C===0&&(Hn(m,Math.random()-.5,Math.random()-.5),C=1);var A=(b.rep+w.rep)/C/C;!b.fixed&&Rl(b.pp,b.pp,m,A),!w.fixed&&Rl(w.pp,w.pp,m,-A)}for(var I=[],S=0;S<_;S++){var T=a[S];T.fixed||(Pi(I,T.p,T.pp),Rl(T.p,T.p,I,v),tr(T.pp,T.p))}v=v*.992;var M=v<.01;p&&p(a,n,M),g&&g(M)}}}var wK=Mt(xr,CK);function CK(r){r.eachSeriesByType(xr,function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var a=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(S){var x=i.getId(S);i.setItemLayout(S,a[x]||[NaN,NaN])}):!l||l==="none"?JI(e):l==="circular"&&u_(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),h=s.get("edgeLength"),v=Y(f)?f:[f,f],d=Y(h)?h:[h,h];d=[d[1],d[0]];var p=i.mapArray("value",function(S,x){var b=i.getItemLayout(x),w=Ue(S,u,v);return isNaN(w)&&(w=(v[0]+v[1])/2),{w,rep:w,fixed:i.getItemModel(x).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(S,x){var b=n.getEdgeByIndex(x),w=Ue(S,c,d);isNaN(w)&&(w=(d[0]+d[1])/2);var C=b.getModel(),E=fr(b.getModel().get(["lineStyle","curveness"]),-o_(b,e,x,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:w,curveness:E,ignoreForceLayout:C.get("ignoreForceLayout")}}),m=t.getBoundingRect(),_=bK(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});_.beforeStep(function(S,x){for(var b=0,w=S.length;b<w;b++)S[b].fixed&&tr(S[b].p,n.getNodeByIndex(b).getLayout())}),_.afterStep(function(S,x,b){for(var w=0,C=S.length;w<C;w++)S[w].fixed||n.getNodeByIndex(w).setLayout(S[w].p),a[i.getId(w)]=S[w].p;for(var w=0,C=x.length;w<C;w++){var E=x[w],T=n.getEdgeByIndex(w),D=E.n1.p,A=E.n2.p,I=T.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],tr(I[0],D),tr(I[1],A),+E.curveness&&(I[2]=[(D[0]+A[0])/2-(D[1]-A[1])*E.curveness,(D[1]+A[1])/2-(A[0]-D[0])*E.curveness]),T.setLayout(I)}}),e.forceLayout=_,e.preservedPoints=a,_.step()}else e.forceLayout=null})}function TK(r,e,t){var a=Nt(r,e),n=U(r.getBoxLayoutParams(),{aspect:t}),i=ct(n,a.refContainer);return PT(r,i,t)}function EK(r,e){var t=[];return r.eachSeriesByType("graph",function(a){zu({targetModel:a,coordSysType:"view",coordSysProvider:n,isDefaultDataCoordSys:!0});function n(){var i=a.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];gh(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=TK(a,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],h=l[1]-s[1],v=G1(a,e,s[0],s[1],f,h,c);return t.push(v),v}}),t}var rL=Ct.prototype,c_=Au.prototype,aL=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(aL);function f_(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var nL=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new aL},e.prototype.buildPath=function(t,a){f_(a)?rL.buildPath.call(this,t,a):c_.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return f_(this.shape)?rL.pointAt.call(this,t):c_.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=f_(a)?[a.x2-a.x1,a.y2-a.y1]:c_.tangentAt.call(this,t);return Ss(n,n)},e})(Re),h_=["fromSymbol","toSymbol"];function iL(r){return"_"+r+"Type"}function oL(r,e,t){var a=e.getItemVisual(t,r);if(!a||a==="none")return a;var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=cl(n),u=No(o||0,l);return a+l+u+(i||"")+(s||"")}function sL(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=cl(n),u=No(o||0,l),c=Dt(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function DK(r){var e=new nL({name:"line",subPixelOptimize:!0});return v_(e.shape,r),e}function v_(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var d_=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return e.prototype._createLine=function(t,a,n){var i=t.hostModel,o=t.getItemLayout(a),s=t.getItemVisual(a,"z2"),l=DK(o);l.shape.percent=0,ot(l,{z2:oe(s,0),shape:{percent:1}},i,a),this.add(l),k(h_,function(u){var c=sL(u,t,a);this.add(c),this[iL(u)]=oL(u,t,a)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};v_(l.shape,s),$e(o,l,i,a),k(h_,function(u){var c=oL(u,t,a),f=iL(u);if(this[f]!==c){this.remove(this.childOfName(u));var h=sL(u,t,a);this.add(h)}this[f]=c},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,c=n&&n.labelStatesModels,f=n&&n.emphasisDisabled,h=n&&n.focus,v=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),c=Lt(d)}var g=t.getItemVisual(a,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,k(h_,function(w){var C=this.childOfName(w);if(C){C.setColor(m),C.style.opacity=g.opacity;for(var E=0;E<pr.length;E++){var T=pr[E],D=o.getState(T);if(D){var A=D.style||{},I=C.ensureState(T),M=I.style||(I.style={});A.stroke!=null&&(M[C.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(M.opacity=A.opacity)}}C.markRedraw()}},this);var _=i.getRawValue(a);Vt(this,c,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(w,C){return i.getFormattedLabel(w,C,t.dataType)}},inheritColor:m||H.color.neutral99,defaultOpacity:g.opacity,defaultText:(_==null?t.getName(a):isFinite(_)?He(_,10):_)+""});var S=this.getTextContent();if(S){var x=c.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=x.get("position")||"middle";var b=x.get("distance");Y(b)||(b=[b,b]),S.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),ut(this,h,v,f)},e.prototype.highlight=function(){xn(this)},e.prototype.downplay=function(){bn(this)},e.prototype.updateLayout=function(t,a){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");v_(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),h=Pi([],f,c);Ss(h,h);function v(D,A){var I=D.__specifiedRotation;if(I==null){var M=l.tangentAt(A);D.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(M[1],M[0]))}else D.attr("rotation",I)}if(a&&(a.setPosition(c),v(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(f),v(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,m=g[0]*o,_=g[1]*o,S=u/2,x=l.tangentAt(S),b=[x[1],-x[0]],w=l.pointAt(S);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var C=x[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(x[1],x[0]);f[0]<c[0]&&(E=Math.PI+E),i.rotation=E}var T=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-_,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=_,p="top";break;default:T=0,p="middle"}switch(i.__position){case"end":i.x=h[0]*m+f[0],i.y=h[1]*_+f[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*m+c[0],i.y=-h[1]*_+c[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*C+c[0],i.y=c[1]+T,d=x[0]<0?"right":"left",i.originX=-m*C,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+T,d="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*C+f[0],i.y=f[1]+T,d=x[0]>=0?"right":"left",i.originX=m*C,i.originY=-T;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e})(ge),p_=(function(){function r(e){this.group=new ge,this._LineCtor=e||d_}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=lL(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=lL(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[];function n(l){!l.isGroup&&!kK(l)&&(l.incremental=a,l.ensureState("emphasis").hoverLayer=qs)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(g_(o)){var s=new this._LineCtor(t,i,this._seriesScope);s.traverse(n),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){li(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if(g_(n)){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);if(!g_(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},r})();function kK(r){return r.animators&&r.animators.length>0}function lL(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Lt(e)}}function uL(r){return isNaN(r[0])||isNaN(r[1])}function g_(r){return r&&!uL(r[0])&&!uL(r[1])}var m_=[],y_=[],__=[],Ol=Ht,S_=Ri,cL=Math.abs;function fL(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){m_[0]=Ol(a[0],n[0],i[0],c),m_[1]=Ol(a[1],n[1],i[1],c);var f=cL(S_(m_,e)-l);f<o&&(o=f,s=c)}for(var h=0;h<32;h++){var v=s+u;y_[0]=Ol(a[0],n[0],i[0],s),y_[1]=Ol(a[1],n[1],i[1],s),__[0]=Ol(a[0],n[0],i[0],v),__[1]=Ol(a[1],n[1],i[1],v);var f=S_(y_,e)-l;if(cL(f)<.01)break;var d=S_(__,e)-l;u/=2,f<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function x_(r,e){var t=[],a=cu,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[fn(u[0]),fn(u[1])],u[2]&&u.__original.push(fn(u[2])));var h=u.__original;if(u[2]!=null){if(tr(n[0],h[0]),tr(n[1],h[2]),tr(n[2],h[1]),c&&c!=="none"){var v=tf(s.node1),d=fL(n,h[0],v*e);a(n[0][0],n[1][0],n[2][0],d,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],d,t),n[0][1]=t[3],n[1][1]=t[4]}if(f&&f!=="none"){var v=tf(s.node2),d=fL(n,h[1],v*e);a(n[0][0],n[1][0],n[2][0],d,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],d,t),n[1][1]=t[1],n[2][1]=t[2]}tr(u[0],n[0]),tr(u[1],n[2]),tr(u[2],n[1])}else{if(tr(i[0],h[0]),tr(i[1],h[1]),Pi(o,i[1],i[0]),Ss(o,o),c&&c!=="none"){var v=tf(s.node1);qp(i[0],i[0],o,v*e)}if(f&&f!=="none"){var v=tf(s.node2);qp(i[1],i[1],o,-v*e)}tr(u[0],i[0]),tr(u[1],i[1])}})}var hL=De();function AK(r){if(r)return hL(r).bridge}function vL(r,e){r&&(hL(r).bridge=e)}var MK=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=xr,t}return e.prototype.init=function(t,a){var n=new Cc,i=new p_,o=this.group,s=new ge;this._controller=new ts(a.getZr()),s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=Ld(t),s=!1;this._model=t,this._api=n,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(n);var c=this._symbolDraw,f=this._lineDraw;o&&xi(l,en,o,this._firstRender?null:t),x_(t.getGraph(),ef(t));var h=t.getData();c.updateData(h);var v=t.getEdgeData();f.updateData(v),this._updateNodeAndLinkScale(),o&&Nd(t,n,this._controller,function(x,b,w){return t.coordinateSystem.containPoint([b,w])},null),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,p));var g=t.get("layout");h.graph.eachNode(function(x){var b=x.dataIndex,w=x.getGraphicEl(),C=x.getModel();if(w){w.off("drag").off("dragend");var E=C.get("draggable");E&&w.on("drag",function(D){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(b),h.setItemLayout(b,[w.x,w.y]);break;case"circular":h.setItemLayout(b,[w.x,w.y]),x.setLayout({fixed:!0},!0),u_(t,"symbolSize",x,[D.offsetX,D.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(b,[w.x,w.y]),s_(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),w.setDraggable(E,!!C.get("cursor"));var T=C.get(["emphasis","focus"]);T==="adjacency"&&(be(w).focus=x.getAdjacentDataIndices())}}),h.graph.eachEdge(function(x){var b=x.getGraphicEl(),w=x.getModel().get(["emphasis","focus"]);b&&w==="adjacency"&&(be(b).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),_=h.getLayout("cx"),S=h.getLayout("cy");h.graph.eachNode(function(x){tL(x,m,_,S)}),this._firstRender=!1,s||this._renderThumbnail(t,n,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(t,a,n){var i=this,o=!1;(function s(){t.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype.__updateOnOwnRoam=function(t,a,n){var i=Ld(a);!this._active||!i||(xi(this._mainGroup,en,i,null),rI(t)&&(this._updateNodeAndLinkScale(),x_(a.getGraph(),ef(a)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=ef(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){this._active&&(x_(t.getGraph(),ef(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,a=t.coordinateSystem;if(a.type==="view"){var n=AK(t);if(n)return{bridge:n,coordSys:a}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(Ed(null,t.coordSys),this._api)},e.prototype._renderThumbnail=function(t,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new ge,l=n.group.children(),u=i.group.children(),c=new ge,f=new ge;s.add(f),s.add(c);for(var h=0;h<l.length;h++){var v=l[h],d=v.children()[0],p=v.x,g=v.y,m=he(d.shape),_=U(m,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:g-d.scaleY/2}),S=he(d.style),x=new d.constructor({shape:_,style:S,z2:151});f.add(x)}for(var h=0;h<u.length;h++){var v=u[h],b=v.children()[0],S=he(b.style),_=he(b.shape),w=new nL({style:S,shape:_,z2:151});c.add(w)}o.bridge.renderContent({api:a,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:Ed(null,o.coordSys)})}},e.type=xr,e})(et),IK=Mt(xr,LK);function LK(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType(xr,function(t){var a=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Ge(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}var NK=Mt(xr,PK);function PK(r){var e={};r.eachSeriesByType(xr,function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),a.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var h=l.getShallow(c[f],!0);h!=null&&a.setItemVisual(o,c[f],h)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){Q(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),c=n.ensureUniqueItemVisual(o,"style");U(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++)n.setItemVisual(o,f[h],a.getItemVisual(l,f[h]))}})})}function RK(r){r.registerChartView(MK),r.registerSeriesModel(dK),r.registerProcessor(IK),r.registerVisual(NK),r.registerVisual(pK),r.registerLayout(mK),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,SK),r.registerLayout(wK),r.registerCoordinateSystem("graphView",{dimensions:Cd.dimensions,create:EK}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},pt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},pt),z1(r,Ha,xr)}var rf="chord",OK=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new Ml(ie(this.getData,this),ie(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&n){var o=a_(i,n,this,!0,s);return o.data}function s(l,u){var c=ze.prototype.getModel;function f(v,d){var p=c.call(this,v,d);return p.resolveParentPath=h,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=f,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){var i=this.getDataParams(t,n);if(n==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(t),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Et("nameValue",{name:c.join(" > "),value:i.value,noValue:i.value==null})}return Et("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(a==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(t);if(n.name==null&&(n.name=i.getName(t)),n.value==null){var s=o.getLayout().value;n.value=s}}return n},e.type="series."+rf,e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e})(nt),dL=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;be(i).dataType="node",i.z2=2;var o=new Fe;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return e.prototype.updateData=function(t,a,n,i){var o=this,s=t.graph.getNodeByIndex(a),l=t.hostModel,u=s.getModel(),c=u.getModel("emphasis"),f=t.getItemLayout(a),h=U(Ja(u.getModel("itemStyle"),f,!0),f),v=this;if(isNaN(h.startAngle)){v.setShape(h);return}i?v.setShape(h):$e(v,{shape:h},l,a);var d=U(Ja(u.getModel("itemStyle"),f,!0),f);o.setShape(d),o.useStyle(t.getItemVisual(a,"style")),It(o,u),this._updateLabel(l,u,s),t.setItemGraphicEl(a,v),It(v,u,"itemStyle");var p=c.get("focus");ut(this,p==="adjacency"?s.getAdjacentDataIndices():p,c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(t,a,n){var i=this.getTextContent(),o=n.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),c=a.getModel("label");i.ignore=!c.get("show");var f=Lt(a),h=n.getVisual("style");Vt(i,f,{labelFetcher:{getFormattedLabel:function(_,S,x,b,w,C){return t.getFormattedLabel(_,S,"node",b,fr(w,f.normal&&f.normal.get("formatter"),a.get("name")),C)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:h.fill,defaultOpacity:h.opacity,defaultOutsidePosition:"startArc"});var v=c.get("position")||"outside",d=c.get("distance")||0,p;v==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:v!=="outside"};var g=v!=="outside"?c.get("align")||"center":l>0?"left":"right",m=v!=="outside"?c.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:m}})},e})(ar),VK=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this)||this;return be(o).dataType="edge",o.updateData(t,a,n,i,!0),o}return e.prototype.buildPath=function(t,a){t.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;t.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),t.bezierCurveTo((a.cx-a.s2[0])*n+a.s2[0],(a.cy-a.s2[1])*n+a.s2[1],(a.cx-a.t1[0])*n+a.t1[0],(a.cy-a.t1[1])*n+a.t1[1],a.t1[0],a.t1[1]),t.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),t.bezierCurveTo((a.cx-a.t2[0])*n+a.t2[0],(a.cy-a.t2[1])*n+a.t2[1],(a.cx-a.s1[0])*n+a.s1[0],(a.cy-a.s1[1])*n+a.s1[1],a.s1[0],a.s1[1]),t.closePath()},e.prototype.updateData=function(t,a,n,i,o){var s=t.hostModel,l=a.graph.getEdgeByIndex(n),u=l.getLayout(),c=l.node1.getModel(),f=a.getItemModel(l.dataIndex),h=f.getModel("lineStyle"),v=f.getModel("emphasis"),d=v.get("focus"),p=U(Ja(c.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),pL(g,l,t,h)):(Xr(g),pL(g,l,t,h),$e(g,{shape:p},s,n)),ut(this,d==="adjacency"?l.getAdjacentDataIndices():d,v.get("blurScope"),v.get("disabled")),It(g,f,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},e})(Re);function pL(r,e,t,a){var n=e.node1,i=e.node2,o=r.style;r.setStyle(a.getLineStyle());var s=a.get("color");switch(s){case"source":o.fill=t.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=t.getItemVisual(n.dataIndex,"style").fill,u=t.getItemVisual(i.dataIndex,"style").fill;if(Q(l)&&Q(u)){var c=r.shape,f=(c.s1[0]+c.s2[0])/2,h=(c.s1[1]+c.s2[1])/2,v=(c.t1[0]+c.t2[0])/2,d=(c.t1[1]+c.t2[1])/2;o.fill=new vo(f,h,v,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var BK=Math.PI/180,zK=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=rf,t}return e.prototype.init=function(t,a){},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group,l=-t.get("startAngle")*BK;if(i.diff(o).add(function(c){var f=i.getItemLayout(c);if(f){var h=new dL(i,c,l);be(h).dataIndex=c,s.add(h)}}).update(function(c,f){var h=o.getItemGraphicEl(f),v=i.getItemLayout(c);if(!v){h&&Cn(h,t,f);return}h?h.updateData(i,c,l):h=new dL(i,c,l),s.add(h)}).remove(function(c){var f=o.getItemGraphicEl(c);f&&Cn(f,t,c)}).execute(),!o){var u=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=ee(u[0],n.getWidth()),this.group.originY=ee(u[1],n.getHeight()),ot(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,l)},e.prototype.renderEdges=function(t,a){var n=t.getData(),i=t.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new VK(n,i,l,a);be(u).dataIndex=l,s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(n,i,l,a),s.add(c)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&Cn(u,t,l)}).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type=rf,e})(et),b_=Math.PI/180,GK=Mt(rf,FK);function FK(r,e){r.eachSeriesByType(rf,function(t){HK(t,e)})}function HK(r,e){var t=r.getData(),a=t.graph,n=r.getEdgeData(),i=n.count();if(i){var o=NT(r,e),s=o.cx,l=o.cy,u=o.r,c=o.r0,f=Math.max((r.get("padAngle")||0)*b_,0),h=Math.max((r.get("minAngle")||0)*b_,0),v=-r.get("startAngle")*b_,d=v+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,m=[v,d];mh(m,!p);var _=m[0],S=m[1],x=S-_,b=t.getSum("value")===0&&n.getSum("value")===0,w=[],C=0;a.eachEdge(function(O){var G=b?1:O.getValue("value");b&&(G>0||h)&&(C+=2);var F=O.node1.dataIndex,B=O.node2.dataIndex;w[F]=(w[F]||0)+G,w[B]=(w[B]||0)+G});var E=0;if(a.eachNode(function(O){var G=O.getValue("value");isNaN(G)||(w[O.dataIndex]=Math.max(G,w[O.dataIndex]||0)),!b&&(w[O.dataIndex]>0||h)&&C++,E+=w[O.dataIndex]||0}),!(C===0||E===0)){f*C>=Math.abs(x)&&(f=Math.max(0,(Math.abs(x)-h*C)/C)),(f+h)*C>=Math.abs(x)&&(h=(Math.abs(x)-f*C)/C);var T=(x-f*C*g)/E,D=0,A=0,I=0;a.eachNode(function(O){var G=w[O.dataIndex]||0,F=T*(E?G:1)*g;Math.abs(F)<h?D+=h-Math.abs(F):(A+=Math.abs(F)-h,I+=Math.abs(F)),O.setLayout({angle:F,value:G})});var M=!1;if(D>A){var L=D/A;a.eachNode(function(O){var G=O.getLayout().angle;Math.abs(G)>=h?O.setLayout({angle:G*L,ratio:L},!0):O.setLayout({angle:h,ratio:h===0?1:G/h},!0)})}else a.eachNode(function(O){if(!M){var G=O.getLayout().angle,F=Math.min(G/I,1),B=F*D;G-B<h&&(M=!0)}});var N=D;a.eachNode(function(O){if(!(N<=0)){var G=O.getLayout().angle;if(G>h&&h>0){var F=M?1:Math.min(G/I,1),B=G-h,$=Math.min(B,Math.min(N,D*F));N-=$,O.setLayout({angle:G-$,ratio:(G-$)/G},!0)}else h>0&&O.setLayout({angle:h,ratio:G===0?1:h/G},!0)}});var R=_,P=[];a.eachNode(function(O){var G=Math.max(O.getLayout().angle,h);O.setLayout({cx:s,cy:l,r0:c,r:u,startAngle:R,endAngle:R+G*g,clockwise:p},!0),P[O.dataIndex]=R,R+=(G+f)*g}),a.eachEdge(function(O){var G=b?1:O.getValue("value"),F=T*(E?G:1)*g,B=O.node1.dataIndex,$=P[B]||0,j=Math.abs((O.node1.getLayout().ratio||1)*F),W=$+j*g,V=[s+c*Math.cos($),l+c*Math.sin($)],q=[s+c*Math.cos(W),l+c*Math.sin(W)],Ce=O.node2.dataIndex,fe=P[Ce]||0,ne=Math.abs((O.node2.getLayout().ratio||1)*F),we=fe+ne*g,se=[s+c*Math.cos(fe),l+c*Math.sin(fe)],xe=[s+c*Math.cos(we),l+c*Math.sin(we)];O.setLayout({s1:V,s2:q,sStartAngle:$,sEndAngle:W,t1:se,t2:xe,tStartAngle:fe,tEndAngle:we,cx:s,cy:l,r:c,value:G,clockwise:p}),P[B]=W,P[Ce]=we})}}}function $K(r){r.registerChartView(zK),r.registerSeriesModel(OK),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,GK),r.registerProcessor(Nc("chord"))}var UK=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),WK=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new UK},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),c=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,c)},e})(Re);function YK(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=ee(t[0],e.getWidth()),s=ee(t[1],e.getHeight()),l=ee(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Ud(r,e){var t=r==null?"":r+"";return e&&(Q(e)?t=e.replace("{value}",t):ce(e)&&(t=e(r))),t}var XK=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=YK(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,f=t.getModel("axisLine"),h=f.get("roundCap"),v=h?cd:ar,d=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];mh(m,!l),u=m[0],c=m[1];for(var _=c-u,S=u,x=[],b=0;d&&b<i.length;b++){var w=Math.min(Math.max(i[b][0],0),1);c=u+_*w;var C=new v({shape:{startAngle:S,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});C.setStyle({fill:i[b][1]}),C.setStyle(p.getLineStyle(["color","width"])),x.push(C),S=c}x.reverse(),k(x,function(T){return s.add(T)});var E=function(T){if(T<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=T&&(D===0?0:i[D-1][0])<T)return i[D][1];return i[D-1][1]};this._renderTicks(t,a,n,E,o,u,c,l,g),this._renderTitleAndDetail(t,a,n,E,o),this._renderAnchor(t,o),this._renderPointer(t,a,n,E,o,u,c,l,g)},e.prototype._renderTicks=function(t,a,n,i,o,s,l,u,c){for(var f=this.group,h=o.cx,v=o.cy,d=o.r,p=+t.get("min"),g=+t.get("max"),m=t.getModel("splitLine"),_=t.getModel("axisTick"),S=t.getModel("axisLabel"),x=t.get("splitNumber"),b=_.get("splitNumber"),w=ee(m.get("length"),d),C=ee(_.get("length"),d),E=s,T=(l-s)/x,D=T/b,A=m.getModel("lineStyle").getLineStyle(),I=_.getModel("lineStyle").getLineStyle(),M=m.get("distance"),L,N,R=0;R<=x;R++){if(L=Math.cos(E),N=Math.sin(E),m.get("show")){var P=M?M+c:c,O=new Ct({shape:{x1:L*(d-P)+h,y1:N*(d-P)+v,x2:L*(d-w-P)+h,y2:N*(d-w-P)+v},style:A,silent:!0});A.stroke==="auto"&&O.setStyle({stroke:i(R/x)}),f.add(O)}if(S.get("show")){var P=S.get("distance")+M,G=Ud(He(R*(g-p)/x+p,J8),S.get("formatter")),F=i(R/x),B=L*(d-w-P)+h,$=N*(d-w-P)+v,j=S.get("rotate"),W=0;j==="radial"?(W=-E+2*Math.PI,W>Math.PI/2&&(W+=Math.PI)):j==="tangential"?W=-E-Math.PI/2:Ge(j)&&(W=j*Math.PI/180),W===0?f.add(new Fe({style:at(S,{text:G,x:B,y:$,verticalAlign:N<-.8?"top":N>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:F}),silent:!0})):f.add(new Fe({style:at(S,{text:G,x:B,y:$,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:B,originY:$,rotation:W}))}if(_.get("show")&&R!==x){var P=_.get("distance");P=P?P+c:c;for(var V=0;V<=b;V++){L=Math.cos(E),N=Math.sin(E);var q=new Ct({shape:{x1:L*(d-P)+h,y1:N*(d-P)+v,x2:L*(d-C-P)+h,y2:N*(d-C-P)+v},silent:!0,style:I});I.stroke==="auto"&&q.setStyle({stroke:i((R+V/b)/x)}),f.add(q),E+=D}E-=D}else E+=T}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),m=g.get("show"),_=t.getData(),S=_.mapDimension("value"),x=+t.get("min"),b=+t.get("max"),w=[x,b],C=[s,l];function E(D,A){var I=_.getItemModel(D),M=I.getModel("pointer"),L=ee(M.get("width"),o.r),N=ee(M.get("length"),o.r),R=t.get(["pointer","icon"]),P=M.get("offsetCenter"),O=ee(P[0],o.r),G=ee(P[1],o.r),F=M.get("keepAspect"),B;return R?B=Dt(R,O-L/2,G-N,L,N,null,F):B=new WK({shape:{angle:-Math.PI/2,width:L,r:N,x:O,y:G}}),B.rotation=-(A+Math.PI/2),B.x=o.cx,B.y=o.cy,B}function T(D,A){var I=g.get("roundCap"),M=I?cd:ar,L=g.get("overlap"),N=L?g.get("width"):c/_.count(),R=L?o.r-N:o.r-(D+1)*N,P=L?o.r:o.r-D*N,O=new M({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:P}});return L&&(O.z2=Ue(_.get(S,D),[x,b],[100,0],!0)),O}(m||p)&&(_.diff(h).add(function(D){var A=_.get(S,D);if(p){var I=E(D,s);ot(I,{rotation:-((isNaN(+A)?C[0]:Ue(A,w,C,!0))+Math.PI/2)},t),f.add(I),_.setItemGraphicEl(D,I)}if(m){var M=T(D,s),L=g.get("clip");ot(M,{shape:{endAngle:Ue(A,w,C,L)}},t),f.add(M),Em(t.seriesIndex,_.dataType,D,M),d[D]=M}}).update(function(D,A){var I=_.get(S,D);if(p){var M=h.getItemGraphicEl(A),L=M?M.rotation:s,N=E(D,L);N.rotation=L,$e(N,{rotation:-((isNaN(+I)?C[0]:Ue(I,w,C,!0))+Math.PI/2)},t),f.add(N),_.setItemGraphicEl(D,N)}if(m){var R=v[A],P=R?R.shape.endAngle:s,O=T(D,P),G=g.get("clip");$e(O,{shape:{endAngle:Ue(I,w,C,G)}},t),f.add(O),Em(t.seriesIndex,_.dataType,D,O),d[D]=O}}).execute(),_.each(function(D){var A=_.getItemModel(D),I=A.getModel("emphasis"),M=I.get("focus"),L=I.get("blurScope"),N=I.get("disabled"),R=i(Ue(_.get(S,D),w,[0,1],!0));if(p){var P=_.getItemGraphicEl(D),O=_.getItemVisual(D,"style"),G=O.fill;if(P instanceof $t){var F=P.style;P.useStyle(U({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},O))}else P.useStyle(O),P.type!=="pointer"&&P.setColor(G);P.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),P.style.fill==="auto"&&P.setStyle("fill",R),P.z2EmphasisLift=0,It(P,A),ut(P,M,L,N)}if(m){var B=d[D];B.useStyle(_.getItemVisual(D,"style")),B.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",R),B.z2EmphasisLift=0,It(B,A),ut(B,M,L,N)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=Dt(s,a.cx-o/2+ee(l[0],a.r),a.cy-o/2+ee(l[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),f=+t.get("max"),h=new ge,v=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new Fe({silent:!0}),d[m]=new Fe({silent:!0})}).update(function(m,_){v[m]=s._titleEls[_],d[m]=s._detailEls[_]}).execute(),l.each(function(m){var _=l.getItemModel(m),S=l.get(u,m),x=new ge,b=i(Ue(S,[c,f],[0,1],!0)),w=_.getModel("title");if(w.get("show")){var C=w.get("offsetCenter"),E=o.cx+ee(C[0],o.r),T=o.cy+ee(C[1],o.r),D=v[m];D.attr({z2:g?0:2,style:at(w,{x:E,y:T,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:b})}),x.add(D)}var A=_.getModel("detail");if(A.get("show")){var I=A.get("offsetCenter"),M=o.cx+ee(I[0],o.r),L=o.cy+ee(I[1],o.r),N=ee(A.get("width"),o.r),R=ee(A.get("height"),o.r),P=t.get(["progress","show"])?l.getItemVisual(m,"style").fill:b,D=d[m],O=A.get("formatter");D.attr({z2:g?0:2,style:at(A,{x:M,y:L,text:Ud(S,O),width:isNaN(N)?null:N,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:P})}),iT(D,{normal:A},S,function(F){return Ud(F,O)}),p&&oT(D,m,l,t,{getFormattedLabel:function(F,B,$,j,W,V){return Ud(V?V.interpolatedValue:S,O)}}),x.add(D)}h.add(x)}),this.group.add(h),this._titleEls=v,this._detailEls=d},e.type="gauge",e})(et),ZK=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return Al(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,H.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:H.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:H.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:H.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:H.color.neutral00,borderWidth:0,borderColor:H.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:H.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:H.color.transparent,borderWidth:0,borderColor:H.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:H.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(nt);function qK(r){r.registerChartView(XK),r.registerSeriesModel(ZK)}var Vl="funnel",KK=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ml(ie(this.getData,this),ie(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Al(this,{coordDimensions:["value"],encodeDefaulter:Me(xy,this)})},e.prototype._defaultLabelLine=function(t){qi(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series."+Vl,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:H.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:H.color.primary}}},e})(nt),jK=["itemStyle","opacity"],QK=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Kt,s=new Fe;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),c=s.get(jK);c=c??1,n||Xr(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,ot(i,{style:{opacity:c}},o,a)):$e(i,{style:{opacity:c},shape:{points:l.points}},o,a),It(i,s),this._updateLabel(t,a),ut(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),c=u.label,f=t.getItemVisual(a,"style"),h=f.fill;Vt(o,Lt(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:f.opacity,defaultText:t.getName(a)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}});var v=l.getModel("label"),d=v.get("color"),p=d==="inherit"?h:null;n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:p,outsideFill:p});var g=c.linePoints;i.setShape({points:g}),n.textGuideLineConfig={anchor:g?new _e(g[0][0],g[0][1]):null},$e(o,{style:{x:c.x,y:c.y}},s,a),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),M0(n,I0(l),{stroke:h})},e})(nr),JK=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Vl,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new QK(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Cn(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Vl,e})(et);function ej(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return ce(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function tj(r){var e=r.hostModel,t=gL(e);r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,h,v,d;if(c)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,f="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),d=[[h,v],[h,v]];else{var p=void 0,g=void 0,m=void 0,_=void 0,S=s.get("length");Q(o)&&(!t&&Ee(["top","bottom"],o)>-1&&(o="left",process.env.NODE_ENV!=="production"&&console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),t&&Ee(["left","right"],o)>-1&&(o="bottom",process.env.NODE_ENV!=="production"&&console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-S,h=m-5,f="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+S,h=m+5,f="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,_=g-S,v=_-5,f="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,_=g+S,v=_+5,f="center"):o==="rightTop"?(p=t?u[3][0]:u[1][0],g=t?u[3][1]:u[1][1],t?(_=g-S,v=_-5,f="center"):(m=p+S,h=m+5,f="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],t?(_=g+S,v=_+5,f="center"):(m=p+S,h=m+5,f="bottom")):o==="leftTop"?(p=u[0][0],g=t?u[0][1]:u[1][1],t?(_=g-S,v=_-5,f="center"):(m=p-S,h=m-5,f="right")):o==="leftBottom"?(p=t?u[1][0]:u[3][0],g=t?u[1][1]:u[2][1],t?(_=g+S,v=_+5,f="center"):(m=p-S,h=m-5,f="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t?(_=g+S,v=_+5,f="center"):(m=p+S,h=m+5,f="left")),t?(m=p,h=m):(_=g,v=_),d=[[p,g],[m,_]]}l.label={linePoints:d,x:h,y:v,verticalAlign:"middle",textAlign:f,inside:c}})}var rj=Mt(Vl,aj);function aj(r,e){r.eachSeriesByType(Vl,function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=Nt(t,e),s=ct(t.getBoxLayoutParams(),o.refContainer),l=gL(t),u=s.width,c=s.height,f=ej(a,i),h=s.x,v=s.y,d=l?[ee(t.get("minSize"),c),ee(t.get("maxSize"),c)]:[ee(t.get("minSize"),u),ee(t.get("maxSize"),u)],p=a.getDataExtent(n),g=t.get("min"),m=t.get("max");g==null&&(g=Math.min(p[0],0)),m==null&&(m=p[1]);var _=t.get("funnelAlign"),S=t.get("gap"),x=l?u:c,b=(x-S*(a.count()-1))/a.count(),w=function(N,R){if(l){var P=a.get(n,N)||0,O=Ue(P,[g,m],d,!0),G=void 0;switch(_){case"top":G=v;break;case"center":G=v+(c-O)/2;break;case"bottom":G=v+(c-O);break}return[[R,G],[R,G+O]]}var F=a.get(n,N)||0,B=Ue(F,[g,m],d,!0),$;switch(_){case"left":$=h;break;case"center":$=h+(u-B)/2;break;case"right":$=h+u-B;break}return[[$,R],[$+B,R]]};i==="ascending"&&(b=-b,S=-S,l?h+=u:v+=c,f=f.reverse());for(var C=0;C<f.length;C++){var E=f[C],T=f[C+1],D=a.getItemModel(E);if(l){var A=D.get(["itemStyle","width"]);A==null?A=b:(A=ee(A,u),i==="ascending"&&(A=-A));var I=w(E,h),M=w(T,h+A);h+=A+S,a.setItemLayout(E,{points:I.concat(M.slice().reverse())})}else{var L=D.get(["itemStyle","height"]);L==null?L=b:(L=ee(L,c),i==="ascending"&&(L=-L));var I=w(E,v),M=w(T,v+L);v+=L+S,a.setItemLayout(E,{points:I.concat(M.slice().reverse())})}}tj(a)})}function gL(r){return r.get("orient")==="horizontal"}function nj(r){r.registerChartView(JK),r.registerSeriesModel(KK),r.registerLayout(rj),r.registerProcessor(Nc(Vl))}var ij=.3,oj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new ge,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,a,n,i){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,f=_L(t);s.diff(l).add(h).update(v).remove(d).execute();function h(g){var m=yL(s,o,g,c,u);w_(m,s,g,f)}function v(g,m){var _=l.getItemGraphicEl(m);o.add(_);var S=mL(s,g,c,u);s.setItemGraphicEl(g,_),$e(_,{shape:{points:S}},t,g),Xr(_),w_(_,s,g,f)}function d(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=sj(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=yL(i,this._dataGroup,l,o.dimensions,o);u.incremental=Ra(a),w_(u,i,l,_L(a)),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(et);function sj(r,e,t){var a=r.model,n=r.getRect(),i=new Le({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),ot(i,{shape:{width:n.width,height:n.height}},e,t),i}function mL(r,e,t,a){for(var n=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);lj(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function yL(r,e,t,a,n){var i=mL(r,t,a,n),o=new Kt({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function _L(r){var e=r.get("smooth",!0);return e===!0&&(e=ij),e=pn(e),Gt(e)&&(e=0),{smooth:e}}function w_(r,e,t,a){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=e.getItemModel(t),i=n.getModel("emphasis");It(r,n,"lineStyle"),ut(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function lj(r,e){return e==="category"?r==null:r==null||isNaN(r)}var uj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,a){return An(null,this,{useEncodeDefaulter:ie(cj,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){t===o&&i.push(n.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},e})(nt);function cj(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return k(e.dimensions,function(a){var n=fj(a);t[a]=n}),t}}function fj(r){return+r.replace("dim","")}var hj=["lineStyle","opacity"],vj={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){t.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(hj,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},n.start,n.end)}}}};function dj(r){pj(r),gj(r)}function pj(r){if(!r.parallel){var e=!1;k(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function gj(r){var e=tt(r.parallelAxis);k(e,function(t){if(de(t)){var a=t.parallelIndex||0,n=tt(r.parallel)[a];n&&n.parallelAxisDefault&&ke(t,n.parallelAxisDefault,!1)}})}var mj=5,yj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},k(_j,function(i,o){n.getZr().on(o,this._handlers[o]=ie(i,this))},this)),sl(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){Zu(this,"_throttledDispatchExpand"),k(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(U({type:"parallelAxisExpand"},t))},e.type="parallel",e})(st),_j={mousedown:function(r){C_(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(C_(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>mj)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!C_(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function C_(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var Wd="parallel",T_=Wd,Sj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&ke(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=Ze(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);k(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type=T_,e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(Ne),xj=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(ma);function wi(r,e,t,a,n,i){r=r||0;var o=Xi(t[1],-t[0]);if(n!=null&&(n=Bl(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(Xi(e[1],-e[0]));s=Bl(s,[0,o]),n=i=Bl(s,[n,i]),a=0}e[0]=Bl(e[0],t),e[1]=Bl(e[1],t);var l=E_(e,a);e[a]+=r;var u=n||0,c=t.slice();l.sign<0?c[0]=Xi(c[0],u):c[1]=Xi(c[1],-u),e[a]=Bl(e[a],c);var f;return f=E_(e,a),n!=null&&(f.sign!==l.sign||f.span<n)&&(e[1-a]=Xi(e[a],l.sign*n)),f=E_(e,a),i!=null&&f.span>i&&(e[1-a]=Xi(e[a],f.sign*i)),e}function E_(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Bl(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var bj=(function(){function r(e,t,a){this.type=Wd,this._axesMap=re(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;k(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=Bv(u),f=this._axesMap.set(o,new xj(o,cc(u,c,!1),[0,0],c,l));f.onBand=vc(f.scale,u),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){k(this.dimensions,function(a){var n=this._axesMap.get(a);Fo(n,wl),Cl(n)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var a=Nt(e,t).refContainer;this._rect=ct(e.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,c=Yd(e.get("axisExpandWidth"),l),f=Yd(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=e.get("axisExpandWindow"),d;if(v)d=Yd(v[1]-v[0],l),v[1]=v[0]+d;else{d=Yd(c*(f-1),l);var p=e.get("axisExpandCenter")||ua(u/2);v=[c*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-f);g<3&&(g=0);var m=[ua(He(v[0]/c,1))+1,Wi(He(v[1]/c,1))-1],_=g/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:_}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),k(a,function(o,s){var l=(n.axisExpandable?Cj:wj)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:nh/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],h=c[i],v=ft();Yn(v,v,h),Ca(v,v,f),this._axesLayout[o]={position:f,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];k(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=a;c<n;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var h=e.getValues(s,c),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(h[v]);if(p==="inactive"){f="inactive";break}}}t(f,c)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return da([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return he(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),h=f[0]!=null;if(c)h&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):h&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?wi(l,n,o,"all"):u="none";else{var v=n[1]-n[0],d=o[1]*s/v;n=[Ie(0,d-v/2)],n[1]=Ke(o[1],n[0]+v),n[0]=n[1]-v}return{axisExpandWindow:n,behavior:u}},r})();function Yd(r,e){return Ke(Ie(r,e[0]),e[1])}function wj(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cj(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(n-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function Tj(r,e){var t=[];return r.eachComponent(T_,function(a,n){var i=new bj(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")===Wd){var n=a.getReferringComponents(T_,mt).models[0],i=a.coordinateSystem=n.coordinateSystem;i&&k(i.dimensions,function(o){Go(i.getAxis(o),a,Wd)})}}),t}var Ej={create:Tj},D_=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Ji([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=he(t);if(a)for(var n=a.length-1;n>=0;n--)Zt(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e})(Ne);kt(D_,dc);var fs=!0,af=Math.min,zl=Math.max,Dj=Math.pow,kj=1e4,Aj=6,Mj=6,SL="globalPan",Ij={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Lj={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},xL={brushStyle:{lineWidth:2,stroke:H.color.backgroundTint,fill:H.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},Nj=0,k_=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},process.env.NODE_ENV!=="production"&&Z(t),a._zr=t,a.group=new ge,a._uid="brushController_"+Nj++,k(Gj,function(n,i){this._handlers[i]=ie(n,this)},a),a}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&Z(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||qX(a,SL,this._uid),k(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=ke(he(xL),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;KX(t,SL,this._uid),k(this._handlers,function(a,n){t.off(n,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};k(t,function(n){a[n.panelId]=he(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&Z(this._mounted),t=K(t,function(h){return ke(he(xL),h,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new kn(n,t,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:a+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=t[h];if(v!=null&&n[v]===s)i[h]=n[v];else{var p=i[h]=v!=null?(n[v].__brushOption=d,n[v]):wL(o,bL(o,d));A_(o,p)}}function f(h){n[h]!==s&&o.group.remove(n[h])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),L_(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(zr);function bL(r,e){var t=Xd[e.brushType].createCover(r,e);return t.__brushOption=e,TL(t,e),r.group.add(t),t}function wL(r,e){var t=M_(e);return t.endCreating&&(t.endCreating(r,e),TL(e,e.__brushOption)),e}function CL(r,e){var t=e.__brushOption;M_(e).updateCoverShape(r,e,t.range,t)}function TL(r,e){var t=e.z;t==null&&(t=kj),r.traverse(function(a){a.z=t,a.z2=t})}function A_(r,e){M_(e).updateCommon(r,e),CL(r,e)}function M_(r){return Xd[r.__brushOption.brushType]}function I_(r,e,t){var a=r._panels;if(!a)return fs;var n,i=r._transform;return k(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function EL(r,e){var t=r._panels;if(!t)return fs;var a=e.__brushOption.panelId;return a!=null?t[a]:fs}function L_(r){var e=r._covers,t=e.length;return k(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function hs(r,e){var t=K(r._covers,function(a){var n=a.__brushOption,i=he(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Pj(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],n=t[0]-a[0],i=t[1]-a[1],o=Dj(n*n+i*i,.5);return o>Aj}function DL(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function kL(r,e,t,a){var n=new ge;return n.add(new Le({name:"main",style:P_(t),silent:!0,draggable:!0,cursor:"move",drift:Me(IL,r,e,n,["n","s","w","e"]),ondragend:Me(hs,e,{isEnd:!0})})),k(a,function(i){n.add(new Le({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Me(IL,r,e,n,i),ondragend:Me(hs,e,{isEnd:!0})}))}),n}function AL(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=zl(n,Mj),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,c=t[0][1],f=t[1][1],h=c-i+n/2,v=f-i+n/2,d=c-o,p=f-s,g=d+n,m=p+n;Nn(r,e,"main",o,s,d,p),a.transformable&&(Nn(r,e,"w",l,u,i,m),Nn(r,e,"e",h,u,i,m),Nn(r,e,"n",l,u,g,i),Nn(r,e,"s",l,v,g,i),Nn(r,e,"nw",l,u,i,i),Nn(r,e,"ne",h,u,i,i),Nn(r,e,"sw",l,v,i,i),Nn(r,e,"se",h,v,i,i))}function N_(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(P_(t)),n.attr({silent:!a,cursor:a?"move":"default"}),k([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?R_(r,i[0]):Oj(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?Lj[s]+"-resize":null})})}function Nn(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(Bj(O_(r,e,[[a,n],[a+i,n+o]])))}function P_(r){return me({strokeNoScale:!0},r.brushStyle)}function ML(r,e,t,a){var n=[af(r,t),af(e,a)],i=[zl(r,t),zl(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function Rj(r){return js(r.group)}function R_(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=Bh(t[e],Rj(r));return a[n]}function Oj(r,e){var t=[R_(r,e[0]),R_(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function IL(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=LL(e,n,i);k(a,function(u){var c=Ij[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(ML(s[0][0],s[1][0],s[0][1],s[1][1])),A_(e,t),hs(e,{isEnd:!1})}function Vj(r,e,t,a){var n=e.__brushOption.range,i=LL(r,t,a);k(n,function(o){o[0]+=i[0],o[1]+=i[1]}),A_(r,e),hs(r,{isEnd:!1})}function LL(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function O_(r,e,t){var a=EL(r,e);return a&&a!==fs?a.clipPath(t,r._transform):he(t)}function Bj(r){var e=af(r[0][0],r[1][0]),t=af(r[0][1],r[1][1]),a=zl(r[0][0],r[1][0]),n=zl(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function zj(r,e,t){if(!(!r._brushType||Fj(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=I_(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===fs||s.panelId===i.panelId)&&Xd[s.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}function V_(r){var e=r.event;e.preventDefault&&e.preventDefault()}function B_(r,e,t){return r.childOfName("main").contain(e,t)}function NL(r,e,t,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),Pj(r)||n){if(i&&!n){o.brushMode==="single"&&L_(r);var l=he(o);l.brushType=PL(l.brushType,i),l.panelId=i===fs?null:i.panelId,n=r._creatingCover=bL(r,l),r._covers.push(n)}if(n){var u=Xd[PL(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(O_(r,n,r._track)),a&&(wL(r,n),u.updateCommon(r,n)),CL(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&I_(r,e,t)&&L_(r)&&(s={isEnd:a,removeOnClick:!0});return s}function PL(r,e){return r==="auto"?(process.env.NODE_ENV!=="production"&&Z(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):r}var Gj={mousedown:function(r){if(this._dragging)RL(this,r);else if(!r.target||!r.target.draggable){V_(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=I_(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,a=this.group.transformCoordToLocal(e,t);if(zj(this,r,a),this._dragging){V_(r);var n=NL(this,r,a,!1);n&&hs(this,n)}},mouseup:function(r){RL(this,r)}};function RL(r,e){if(r._dragging){V_(e);var t=e.offsetX,a=e.offsetY,n=r.group.transformCoordToLocal(t,a),i=NL(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&hs(r,i)}}function Fj(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var Xd={lineX:OL(0),lineY:OL(1),rect:{createCover:function(r,e){function t(a){return a}return kL({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=DL(r);return ML(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){AL(r,e,t,a)},updateCommon:N_,contain:B_},polygon:{createCover:function(r,e){var t=new ge;return t.add(new Kt({name:"main",style:P_(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new nr({name:"main",draggable:!0,drift:Me(Vj,r,e),ondragend:Me(hs,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:O_(r,e,t)})},updateCommon:N_,contain:B_}};function OL(r){return{createCover:function(e,t){return kL({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=DL(e),a=af(t[0][r],t[1][r]),n=zl(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=EL(e,t);if(o!==fs&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),AL(e,t,l,n)},updateCommon:N_,contain:B_}}function VL(r){return r=z_(r),function(e){return qC(e,r)}}function BL(r,e){return r=z_(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function zL(r,e,t){var a=z_(r);return function(n,i){return a.contain(i[0],i[1])&&!CM(n,e,t)}}function z_(r){return pe.create(r)}var Hj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new k_(a.getZr())).on("brush",ie(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!$j(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ge,this.group.add(this._axisGroup),!!t.get("show")){var s=Wj(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,f=t.axis.dim,h=l.getAxisLayout(f),v=U({strokeContainThreshold:c},h),d=new Sr(t,n,v);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(v,u,t,s,c,n),Iu(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=pe.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:VL(f),isTargetByCursor:zL(f,s,i),getLinearBrushOtherExtent:BL(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(Uj(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=K(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(st);function $j(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function Uj(r){var e=r.axis;return K(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Wj(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var Yj={type:"axisAreaSelect",event:"axisAreaSelected"};function Xj(r){r.registerAction(Yj,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var Zj={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function GL(r){r.registerComponentView(yj),r.registerComponentModel(Sj),r.registerCoordinateSystem("parallel",Ej),r.registerPreprocessor(dj),r.registerComponentModel(D_),r.registerComponentView(Hj),Il(r,"parallel",D_,Zj),Xj(r)}function qj(r){Ae(GL),r.registerChartView(oj),r.registerSeriesModel(uj),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,vj)}var Pn="sankey",Kj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)if(o[l].depth!=null&&o[l].depth>=0)s[o[l].depth]=new ze(o[l],this,a);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");var u=a_(i,n,this,!0,c);return u.data;function c(f,h){f.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getData().getItemLayout(d);if(g){var m=g.depth,_=p.levelModels[m];_&&(v.parentModel=_)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),m=g.node1.getLayout();if(m){var _=m.depth,S=p.levelModels[_];S&&(v.parentModel=S)}return v})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(v){return isNaN(v)||v==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Et("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),f=c.getLayout().value,h=this.getDataParams(t,n).data.name;return Et("nameValue",{name:h!=null?h+"":null,value:f,noValue:i(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Pn,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:H.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:H.color.primary}},animationEasing:"linear",animationDuration:1e3},e})(nt),jj=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r})(),Qj=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new jj},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){xn(this)},e.prototype.downplay=function(){bn(this)},e})(Re),Jj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Pn,t._mainGroup=new ge,t}return e.prototype.init=function(t,a){this._controller=new ts(a.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,a,n){var i=t.getGraph(),o=this._mainGroup,s=t.layoutInfo,l=s.width,u=s.height,c=t.getData(),f=t.getData("edge"),h=t.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(t,n),Nd(t,n,this._controller,eI(o),null),i.eachEdge(function(v){var d=new Qj,p=be(d);p.dataIndex=v.dataIndex,p.seriesIndex=t.seriesIndex,p.dataType="edge";var g=v.getModel(),m=g.getModel("lineStyle"),_=m.get("curveness"),S=v.node1.getLayout(),x=v.node1.getModel(),b=x.get("localX"),w=x.get("localY"),C=v.node2.getLayout(),E=v.node2.getModel(),T=E.get("localX"),D=E.get("localY"),A=v.getLayout(),I,M,L,N,R,P,O,G;d.shape.extent=Math.max(1,A.dy),d.shape.orient=h,h==="vertical"?(I=(b!=null?b*l:S.x)+A.sy,M=(w!=null?w*u:S.y)+S.dy,L=(T!=null?T*l:C.x)+A.ty,N=D!=null?D*u:C.y,R=I,P=M*(1-_)+N*_,O=L,G=M*_+N*(1-_)):(I=(b!=null?b*l:S.x)+S.dx,M=(w!=null?w*u:S.y)+A.sy,L=T!=null?T*l:C.x,N=(D!=null?D*u:C.y)+A.ty,R=I*(1-_)+L*_,P=M,O=I*_+L*(1-_),G=N),d.setShape({x1:I,y1:M,x2:L,y2:N,cpx1:R,cpy1:P,cpx2:O,cpy2:G}),d.useStyle(m.getItemStyle()),FL(d.style,h,v);var F=""+g.get("value"),B=Lt(g,"edgeLabel");Vt(d,B,{labelFetcher:{getFormattedLabel:function(W,V,q,Ce,fe,ne){return t.getFormattedLabel(W,V,"edge",Ce,fr(fe,B.normal&&B.normal.get("formatter"),F),ne)}},labelDataIndex:v.dataIndex,defaultText:F}),d.setTextConfig({position:"inside"});var $=g.getModel("emphasis");It(d,g,"lineStyle",function(W){var V=W.getItemStyle();return FL(V,h,v),V}),o.add(d),f.setItemGraphicEl(v.dataIndex,d);var j=$.get("focus");ut(d,j==="adjacency"?v.getAdjacentDataIndices():j==="trajectory"?v.getTrajectoryDataIndices():j,$.get("blurScope"),$.get("disabled"))}),i.eachNode(function(v){var d=v.getLayout(),p=v.getModel(),g=p.get("localX"),m=p.get("localY"),_=p.getModel("emphasis"),S=p.get(["itemStyle","borderRadius"])||0,x=new Le({shape:{x:g!=null?g*l:d.x,y:m!=null?m*u:d.y,width:d.dx,height:d.dy,r:S},style:p.getModel("itemStyle").getItemStyle(),z2:10});Vt(x,Lt(p),{labelFetcher:{getFormattedLabel:function(w,C){return t.getFormattedLabel(w,C,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),x.disableLabelAnimation=!0,x.setStyle("fill",v.getVisual("color")),x.setStyle("decal",v.getVisual("style").decal),It(x,p),o.add(x),c.setItemGraphicEl(v.dataIndex,x),be(x).dataType="node";var b=_.get("focus");ut(x,b==="adjacency"?v.getAdjacentDataIndices():b==="trajectory"?v.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(v,d){var p=c.getItemModel(d);p.get("draggable")&&(v.drift=function(g,m){this.shape.x+=g,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(eQ(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,a,n){xi(this.group,en,a.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,a){var n=t.layoutInfo,i=t.coordinateSystem=G1(t,a,n.x,n.y,n.width,n.height);xi(this.group,en,i,this._firstRender?null:t)},e.type=Pn,e})(et);function FL(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");Q(a)&&Q(n)&&(r.fill=new vo(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function eQ(r,e,t){var a=new Le({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ot(a,{shape:{width:r.width+20}},e,t),a}var tQ=Mt(Pn,rQ);function rQ(r,e){r.eachSeriesByType(Pn,function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=Nt(t,e).refContainer,o=ct(t.getBoxLayoutParams(),i);t.layoutInfo=o;var s=o.width,l=o.height,u=t.getGraph(),c=u.nodes,f=u.edges;nQ(c);var h=Ze(c,function(g){return g.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),p=t.get("nodeAlign");aQ(c,f,a,n,s,l,v,d,p)})}function aQ(r,e,t,a,n,i,o,s,l){iQ(r,e,t,n,i,s,l),uQ(r,e,i,n,a,o,s),yQ(r,s)}function nQ(r){k(r,function(e){var t=Ti(e.outEdges,Zd),a=Ti(e.inEdges,Zd),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function iQ(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var v=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>v&&(v=g.depth),p.setLayout({depth:m?g.depth:f},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var _=0;_<p.outEdges.length;_++){var S=p.outEdges[_],x=Ee(e,S);s[x]=0;var b=S.node2,w=Ee(r,b);--l[w]===0&&Ee(c,b)<0&&c.push(b)}}++f,u=c,c=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=v>f-1?v:f-1;o&&o!=="left"&&oQ(r,o,i,C);var E=i==="vertical"?(n-t)/C:(a-t)/C;lQ(r,E,i)}function HL(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function oQ(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];Ee(n,c.node1)<0&&n.push(c.node1)}}i=n,n=[],++o}k(r,function(f){HL(f)||f.setLayout({depth:Math.max(0,a-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&sQ(r,a)}function sQ(r,e){k(r,function(t){!HL(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function lQ(r,e,t){k(r,function(a){var n=a.getLayout().depth*e;t==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function uQ(r,e,t,a,n,i,o){var s=cQ(r,o);fQ(s,e,t,a,n,o),G_(s,n,t,a,o);for(var l=1;i>0;i--)l*=.99,hQ(s,l,o),G_(s,n,t,a,o),mQ(s,l,o),G_(s,n,t,a,o)}function cQ(r,e){var t=[],a=e==="vertical"?"y":"x",n=nm(r,function(i){return i.getLayout()[a]});return Zt(n.keys),k(n.keys,function(i){t.push(n.buckets.get(i))}),t}function fQ(r,e,t,a,n,i){var o=1/0;k(r,function(s){var l=s.length,u=0;k(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;c<o&&(o=c)}),k(r,function(s){k(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),k(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function G_(r,e,t,a,n){var i=n==="vertical"?"x":"y";k(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,f=o.length,h=n==="vertical"?"dx":"dy",v=0;v<f;v++)l=o[v],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[h]+e;var d=n==="vertical"?a:t;if(u=c-e-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[h]+e-c,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function hQ(r,e,t){k(r.slice().reverse(),function(a){k(a,function(n){if(n.outEdges.length){var i=Ti(n.outEdges,vQ,t)/Ti(n.outEdges,Zd);if(isNaN(i)){var o=n.outEdges.length;i=o?Ti(n.outEdges,dQ,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-Ci(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Ci(n,t))*e;n.setLayout({y:l},!0)}}})})}function vQ(r,e){return Ci(r.node2,e)*r.getValue()}function dQ(r,e){return Ci(r.node2,e)}function pQ(r,e){return Ci(r.node1,e)*r.getValue()}function gQ(r,e){return Ci(r.node1,e)}function Ci(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Zd(r){return r.getValue()}function Ti(r,e,t){for(var a=0,n=r.length,i=-1;++i<n;){var o=+e(r[i],t);isNaN(o)||(a+=o)}return a}function mQ(r,e,t){k(r,function(a){k(a,function(n){if(n.inEdges.length){var i=Ti(n.inEdges,pQ,t)/Ti(n.inEdges,Zd);if(isNaN(i)){var o=n.inEdges.length;i=o?Ti(n.inEdges,gQ,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-Ci(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Ci(n,t))*e;n.setLayout({y:l},!0)}}})})}function yQ(r,e){var t=e==="vertical"?"x":"y";k(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),k(r,function(a){var n=0,i=0;k(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),k(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}var _Q=Mt(Pn,SQ);function SQ(r){r.eachSeriesByType(Pn,function(e){var t=e.getGraph(),a=t.nodes,n=t.edges;if(a.length){var i=1/0,o=-1/0;k(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),k(a,function(s){var l=new zt({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&k(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function xQ(r){r.registerChartView(Jj),r.registerSeriesModel(Kj),r.registerLayout(tQ),r.registerVisual(_Q),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:Ha,subType:Pn,query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),z1(r,Ha,Pn)}var $L=(function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l,u=e.layout;o==="category"?(u="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var c=["x","y"],f=u==="horizontal"?0:1,h=this._baseAxisDim=c[f],v=c[1-f],d=[n,i],p=d[f].get("type"),g=d[1-f].get("type"),m=e.data;if(m&&l){var _=[];k(m,function(b,w){var C;Y(b)?(C=b.slice(),b.unshift(w)):Y(b.value)?(C=U({},b),C.value=C.value.slice(),b.value.unshift(w)):C=b,_.push(C)}),e.data=_}var S=this.defaultValueDimensions,x=[{name:h,type:Ev(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Ev(g),dimsDef:S.slice()}];return Al(this,{coordDimensions:x,dimensionsCount:S.length+1,encodeDefaulter:Me(FT,x,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r.prototype.getWhiskerBoxesLayout=function(){return this._layout},r})();function qd(r,e){for(var t=e.ends.length,a=0,n=0;n<t;n++)r.contain(e.ends[n][0],e.ends[n][1])&&a++;return a?a<t?Ec:Tc:Dc}var tn="boxplot",UL=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series."+tn,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:H.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:H.color.shadow}},animationDuration:800},e})(nt);kt(UL,$L,!0);var bQ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=tn,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.getWhiskerBoxesLayout()==="horizontal"?1:0,u=t.get("clip",!0),c=t.coordinateSystem,f=c.getArea&&c.getArea(),h=u&&Zo(c,!1,t);i.diff(s).add(function(v){if(i.hasValue(v)){var d=i.getItemLayout(v),p=u?qd(f,d):Tc;if(p===Dc)return;var g=WL(d,i,v,l,!0);Dl(p===Ec,g,h),i.setItemGraphicEl(v,g),o.add(g)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!i.hasValue(v)){o.remove(p);return}var g=i.getItemLayout(v),m=u?qd(f,g):Tc;if(m===Dc){o.remove(p);return}p?(Xr(p),YL(g,p,i,v)):p=WL(g,i,v,l),Dl(m===Ec,p,h),o.add(p),i.setItemGraphicEl(v,p)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&o.remove(d)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type=tn,e})(et),wQ=(function(){function r(){}return r})(),CQ=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new wQ},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e})(Re);function WL(r,e,t,a,n){var i=r.ends,o=new CQ({shape:{points:n?TQ(i,a,r):i}});return YL(r,o,e,t,n),o}function YL(r,e,t,a,n){var i=t.hostModel,o=_o[n?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,a),e.useStyle(t.getItemVisual(a,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(a),l=s.getModel("emphasis");It(e,s),ut(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function TQ(r,e,t){return K(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}var EQ=zs(),DQ=Mt(tn,kQ);function kQ(r){var e=Qo(tn);b0(r,e,function(t){var a=HU(t,e);if(a){var n=AQ(t,a);zo(t,e,function(i){var o=i.seriesIndex;MQ(i,n.boxOffsetList[o],n.boxWidthList[o])})}})}function AQ(r,e){var t=[],a=[],n=[],i=Qt(r,{fromStat:{key:Qo(tn)},min:1}).w;zo(r,Qo(tn),function(c){var f=c.get("boxWidth");Y(f)||(f=[f,f]),n[c.seriesIndex]=[ee(f[0],i)||0,ee(f[1],i)||0]});var o=i*.8-2,s=o/e*.3,l=(o-s*(e-1))/e,u=l/2-o/2;return zo(r,Qo(tn),function(c){var f=c.seriesIndex;a[f]=u,u+=s+l,t[f]=Ke(Ie(l,n[f][0]),n[f][1])}),{boxOffsetList:a,boxWidthList:t}}function MQ(r,e,t){var a=r.coordinateSystem,n=r.getData(),i=t/2,o=r.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),c=n.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<n.count();f++){var h=n.get(u,f),v=S(h,c[2],f),d=S(h,c[0],f),p=S(h,c[1],f),g=S(h,c[3],f),m=S(h,c[4],f),_=[];x(_,p,!1),x(_,g,!0),_.push(d,p,m,g),b(_,d),b(_,m),b(_,v),n.setItemLayout(f,{initBaseline:v[s],ends:_})}function S(w,C,E){var T=n.get(C,E),D=[];D[o]=w,D[s]=T;var A;return isNaN(w)||isNaN(T)?A=[NaN,NaN]:(A=a.dataToPoint(D),A[o]+=e),A}function x(w,C,E){var T=C.slice(),D=C.slice();T[o]+=i,D[o]-=i,E?w.push(T,D):w.push(D,T)}function b(w,C){var E=C.slice(),T=C.slice();E[o]-=i,T[o]+=i,w.push(E,T)}}function IQ(r){EQ(r,function(){var e=Qo(tn);C0(r,{key:e,seriesType:tn,getMetrics:f1}),$v(e,ld(e))})}function LQ(r,e){e=e||{};for(var t=[],a=[],n=e.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=Zt(r[o].slice()),l=Qg(s,.25),u=Qg(s,.5),c=Qg(s,.75),f=s[0],h=s[s.length-1],v=(n??1.5)*(c-l),d=i?f:Math.max(f,l-v),p=i?h:Math.min(h,c+v),g=e.itemNameFormatter,m=ce(g)?g({value:o}):Q(g)?g.replace("{value}",o+""):o+"";t.push([m,d,l,u,c,p]);for(var _=0;_<s.length;_++){var S=s[_];if(S<d||S>p){var x=[m,S];a.push(x)}}}return{boxData:t,outliers:a}}var NQ={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ut){var a="";process.env.NODE_ENV!=="production"&&(a=vr("source data is not applicable for this boxplot transform. Expect number[][].")),Ye(a)}var n=LQ(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function PQ(r){r.registerSeriesModel(UL),r.registerChartView(bQ),r.registerLayout(DQ),r.registerTransform(NQ),IQ(r)}var Ei="candlestick",XL=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series."+Ei,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(nt);kt(XL,$L,!0);var RQ=["itemStyle","borderColor"],OQ=["itemStyle","borderColor0"],VQ=["itemStyle","borderColorDoji"],BQ=["itemStyle","color"],zQ=["itemStyle","color0"];function F_(r,e){return e.get(r>0?BQ:zQ)}function H_(r,e){return e.get(r===0?VQ:r>0?RQ:OQ)}var GQ={seriesType:Ei,plan:Io(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=F_(s,o),l.stroke=H_(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");U(u,l)}}}}}},FQ=["color","borderColor"],HQ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){li(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),c=s&&Zo(l,!1,t);this._data||i.removeAll();var f=ZL(t);a.diff(n).add(function(h){if(a.hasValue(h)){var v=a.getItemLayout(h),d=s?qd(u,v):Tc;if(d===Dc)return;var p=$_(v,h,f,!0);ot(p,{shape:{points:v.ends}},t,h),Dl(d===Ec,p,c),U_(p,a,h,o),i.add(p),a.setItemGraphicEl(h,p)}}).update(function(h,v){var d=n.getItemGraphicEl(v);if(!a.hasValue(h)){i.remove(d);return}var p=a.getItemLayout(h),g=s?qd(u,p):Tc;if(g===Dc){i.remove(d);return}d?($e(d,{shape:{points:p.ends}},t,h),Xr(d)):d=$_(p,h,f),U_(d,a,h,o),Dl(g===Ec,d,c),i.add(d),a.setItemGraphicEl(h,d)}).remove(function(h){var v=n.getItemGraphicEl(h);v&&i.remove(v)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),qL(t,this.group);var a=t.get("clip",!0)?Zo(t.coordinateSystem,!1,t):null;Dl(!!a,this.group,a)},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o=ZL(a),s;(s=t.next())!=null;){var l=n.getItemLayout(s),u=$_(l,s,o);U_(u,n,s,i),u.incremental=Ra(a),this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(t,a){qL(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),Dl(!1,this.group,null),this._data=null},e.type=Ei,e})(et),$Q=(function(){function r(){}return r})(),UQ=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new $Q},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e})(Re);function $_(r,e,t,a){var n=r.ends;return new UQ({shape:{points:a?WQ(n,t,r):n},z2:100})}function U_(r,e,t,a){var n=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0;var i=n.getShallow("cursor");i&&r.attr("cursor",i),r.__simpleBox=a,It(r,n);var o=e.getItemLayout(t).sign;k(r.states,function(l,u){var c=n.getModel(u),f=F_(o,c),h=H_(o,c)||f,v=l.style||(l.style={});f&&(v.fill=f),h&&(v.stroke=h)});var s=n.getModel("emphasis");ut(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function WQ(r,e,t){return K(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}function ZL(r){return r.getWhiskerBoxesLayout()==="horizontal"?1:0}var YQ=(function(){function r(){}return r})(),W_=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new YQ},e.prototype.buildPath=function(t,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e})(Re);function qL(r,e,t,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new W_({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new W_({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new W_({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),Y_(1,o,r),Y_(-1,s,r),Y_(0,l,r),a&&(o.incremental=Ra(r),s.incremental=Ra(r),l.incremental=Ra(r)),t&&t.push(o,s,l)}function Y_(r,e,t,a){var n=H_(r,t)||F_(r,t),i=t.getModel("itemStyle").getItemStyle(FQ);e.useStyle(i),e.style.fill=null,e.style.stroke=n;var o=t.get("cursor");o&&e.attr("cursor",o)}function XQ(r){!r||!Y(r.series)||k(r.series,function(e){de(e)&&e.type==="k"&&(e.type=Ei)})}var ZQ=zs(),qQ={seriesType:Ei,plan:Io(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=KQ(r),n=r.getWhiskerBoxesLayout()==="horizontal"?0:1,i=1-n,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=K(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],f=l[2],h=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var m,_=g.getStore();(m=p.next())!=null;){var S=_.get(s,m),x=_.get(u,m),b=_.get(c,m),w=_.get(f,m),C=_.get(h,m),E=Ke(x,b),T=Ie(x,b),D=P(E,S),A=P(T,S),I=P(w,S),M=P(C,S),L=[];O(L,A,0),O(L,D,1),L.push(F(M),F(A),F(I),F(D));var N=g.getItemModel(m),R=!!N.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:KL(_,m,x,b,c,R),initBaseline:x>b?A[i]:D[i],ends:L,brushRect:G(w,C,S)})}function P(B,$){var j=[];return j[n]=$,j[i]=B,isNaN($)||isNaN(B)?[NaN,NaN]:e.dataToPoint(j)}function O(B,$,j){var W=$.slice(),V=$.slice();W[n]=Vh(W[n]+a/2,1,!1),V[n]=Vh(V[n]-a/2,1,!0),j?B.push(W,V):B.push(V,W)}function G(B,$,j){var W=P(B,j),V=P($,j);return W[n]-=a/2,V[n]-=a/2,{x:W[0],y:W[1],width:i?a:V[0]-W[0],height:i?V[1]-W[1]:a}}function F(B){return B[n]=Vh(B[n],1),B}}function d(p,g){for(var m=ja(p.count*4),_=0,S,x=[],b=[],w,C=g.getStore(),E=!!r.get(["itemStyle","borderColorDoji"]);(w=p.next())!=null;){var T=C.get(s,w),D=C.get(u,w),A=C.get(c,w),I=C.get(f,w),M=C.get(h,w);if(isNaN(T)||isNaN(I)||isNaN(M)){m[_++]=NaN,_+=3;continue}m[_++]=KL(C,w,D,A,c,E),x[n]=T,x[i]=I,S=e.dataToPoint(x,null,b),m[_++]=S?S[0]:NaN,m[_++]=S?S[1]:NaN,x[i]=M,S=e.dataToPoint(x,null,b),m[_++]=S?S[1]:NaN}g.setLayout("largePoints",m)}}};function KL(r,e,t,a,n,i){var o;return t>a?o=-1:t<a?o=1:o=i?0:e>0?r.get(n,e-1)<=a?1:-1:1,o}function KQ(r,e){var t=r.getBaseAxis(),a=Qt(t,{fromStat:{key:Qo(Ei)},min:1}).w,n=ee(oe(r.get("barMaxWidth"),a),a),i=ee(oe(r.get("barMinWidth"),1),a),o=r.get("barWidth");return o!=null?ee(o,a):Ie(Ke(a/2,n),i)}function jQ(r){ZQ(r,function(){var e=Qo(Ei);C0(r,{key:e,seriesType:Ei,getMetrics:f1}),$v(e,ld(e))})}function QQ(r){r.registerChartView(HQ),r.registerSeriesModel(XL),r.registerPreprocessor(XQ),r.registerVisual(GQ),r.registerLayout(qQ),jQ(r)}function jL(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var JQ=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this,i=new wc(t,a),o=new ge;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Dt(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}jL(o,t)},e.prototype.updateEffectAnimation=function(t){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}jL(n,t)},e.prototype.highlight=function(){xn(this)},e.prototype.downplay=function(){bn(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,a){var n=this,i=t.hostModel;this.childAt(0).updateData(t,a);var o=this.childAt(1),s=t.getItemModel(a),l=t.getItemVisual(a,"symbol"),u=cl(t.getItemVisual(a,"symbolSize")),c=t.getItemVisual(a,"style"),f=c&&c.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",f)});var v=No(t.getItemVisual(a,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var d=t.getItemVisual(a,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=a/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&n.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=p,ut(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(ge),eJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Cc(JQ)},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,QL(t)),this.group.add(o.group)},e.prototype.updateTransform=function(t,a,n){var i=t.getData();this.group.dirty();var o=kc("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(QL(t))},e.prototype._updateGroupTransform=function(t){var a=t.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=K4(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(et);function QL(r){return{clipShape:Qk(r)}}var tJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return An(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(nt);function rJ(r){r.registerChartView(eJ),r.registerSeriesModel(tJ),r.registerLayout(kc("effectScatter"))}var JL=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;return i.add(i.createLine(t,a,n)),i._updateEffectSymbol(t,a),i}return e.prototype.createLine=function(t,a,n){return new d_(t,a,n)},e.prototype._updateEffectSymbol=function(t,a){var n=t.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Y(o)||(o=[o,o]);var l=t.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Dt(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,a))},e.prototype._updateEffectAnimation=function(t,a,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),c=a.get("constantSpeed"),f=Ft(a.get("delay"),function(v){return v/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;ce(f)?h=f(n):h=f,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return $n(t.__p1,t.__cp1)+$n(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<=1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Ht,c=pg;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var f=t.__t<=1?c(a[0],i[0],n[0],o):c(n[0],i[0],a[0],1-o),h=t.__t<=1?c(a[1],i[1],n[1],o):c(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=$n(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*$n(a,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,a){this.childAt(0).updateLayout(t,a);var n=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,n,a)},e})(ge),eN=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createPolyline(t,a,n),i}return e.prototype._createPolyline=function(t,a,n){var i=t.getItemLayout(a),o=new Kt({shape:{points:i}});this.add(o),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(a)}};$e(o,s,i,a),this._updateCommonStl(t,a,n)},e.prototype._updateCommonStl=function(t,a,n){var i=this.childAt(0),o=t.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(t.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,ut(this,l,u,c)},e.prototype.updateLayout=function(t,a){var n=this.childAt(0);n.stopAnimation(),n.setShape("points",t.getItemLayout(a))},e})(ge),aJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,a,n){return new eN(t,a,n)},e.prototype._updateAnimationPoints=function(t,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=$n(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var a=t.__t<=1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var c=(a-i[l])/(i[l+1]-i[l]),f=n[l],h=n[l+1];t.x=f[0]*(1-c)+c*h[0],t.y=f[1]*(1-c)+c*h[1];var v=t.__t<=1?h[0]-f[0]:f[0]-h[0],d=t.__t<=1?h[1]-f[1]:f[1]-h[1];t.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e})(JL),nJ=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),iJ=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new nJ},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){t.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],c=n[o++],f=n[o++],h=n[o++];if(t.moveTo(u,c),i>0){var v=(u+f)/2-(c-h)*i,d=(c+h)/2-(f-u)*i;t.quadraticCurveTo(v,d,f,h)}else t.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],h=i[u++],v=1;v<c;v++){var d=i[u++],p=i[u++];if(ni(f,h,d,p,s,t,a))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],h=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(f+d)/2-(h-p)*o,m=(h+p)/2-(d-f)*o;if(Hw(f,h,g,m,d,p,s,t,a))return l}else if(ni(f,h,d,p,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var c=n[u++],f=n[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}t=this._rect=new pe(i,o,s,l)}return t},e})(Re),oJ=(function(){function r(){this.group=new ge}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t,a){var n=this._newAdded[0],i=t.getLayout("linesPoints"),o=n&&n.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=a,u.setShape({segs:i}),this._setCommon(u,t),u.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new iJ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=be(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),tN={seriesType:"lines",plan:Io(),reset:function(r){var e=r.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&Be("The lines series must have a coordinate system.");return}var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,c=n.start;c<n.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,h=[],c=n.start;c<n.end;c++){var v=r.getLineCoords(c,o);t&&(s[f++]=v);for(var d=0;d<v;d++)h=e.dataToPoint(o[d],!1,h),s[f++]=h[0],s[f++]=h[1]}i.setLayout("linesPoints",s)}else for(var c=n.start;c<n.end;c++){var p=i.getItemModel(c),v=r.getLineCoords(c,o),g=[];if(t)for(var m=0;m<v;m++)g.push(e.dataToPoint(o[m]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var _=p.get(["lineStyle","curveness"]);+_&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*_,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*_])}i.setItemLayout(c,g)}}}}},sJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=n.getZr(),c=!!Qm(n);c&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c?u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}):process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect")),o.updateData(i);var f=t.get("clip",!0)&&Zo(t.coordinateSystem,!1,t);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData(),Ra(a)),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=tN.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),o.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&i&&l&&console.warn("Large lines not support effect"),(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new oJ:new p_(o?i?aJ:eN:i?JL:d_),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=Qm(t);a&&this._lastZlevel!=null&&a.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e})(et),lJ=typeof Uint32Array>"u"?Array:Uint32Array,uJ=typeof Float64Array>"u"?Array:Float64Array;function rN(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),r.data=K(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Xp([n,t[0],t[1]])}))}var cJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],rN(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(rN(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=au(this._flatCoords,a.flatCoords),this._flatCoordsOffset=au(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(n instanceof Array&&n.length>0&&n[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(n)+". Lines must have 2d coords array in data item.");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),Ge(t[0])){for(var n=t.length,i=new lJ(n),o=new uJ(n),s=0,l=0,u=0,c=0;c<n;){u++;var f=t[c++];i[l++]=s+a,i[l++]=f;for(var h=0;h<f;h++){var v=t[c++],d=t[c++];if(o[s++]=v,o[s++]=d,c>n&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){if(process.env.NODE_ENV!=="production"){var n=rl.get(t.coordinateSystem);if(!n)throw new Error("Unknown coordinate system "+t.coordinateSystem)}var i=new mr(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[u]:c}),i},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getItemModel(t),l=s.get("name");if(!l){var u=s.get("fromName"),c=s.get("toName"),f=[];u!=null&&f.push(u),c!=null&&f.push(c),l=f.join(" > ")}return Et("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(nt);function Kd(r){return r instanceof Array||(r=[r,r]),r}var fJ={seriesType:"lines",reset:function(r){var e=Kd(r.get("symbol")),t=Kd(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=Kd(s.getShallow("symbol",!0)),u=Kd(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function hJ(r){r.registerChartView(sJ),r.registerSeriesModel(cJ),r.registerLayout(tN),r.registerVisual(fJ)}var vJ=256,dJ=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ur.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),v=e.length;f.width=t,f.height=a;for(var d=0;d<v;++d){var p=e[d],g=p[0],m=p[1],_=p[2],S=n(_);h.globalAlpha=S,h.drawImage(s,g-c,m-c)}if(!f.width||!f.height)return f;for(var x=h.getImageData(0,0,f.width,f.height),b=x.data,w=0,C=b.length,E=this.minOpacity,T=this.maxOpacity,D=T-E;w<C;){var S=b[w+3]/256,A=Math.floor(S*(vJ-1))*4;if(S>0){var I=o(S)?l:u;S>0&&(S=S*D+E),b[w++]=I[A],b[w++]=I[A+1],b[w++]=I[A+2],b[w++]=I[A+3]*S*256}else w+=4}return h.putImageData(x,0,0),f},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ur.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=H.color.neutral99,n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function pJ(r,e,t){var a=r[1]-r[0];e=K(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}function gJ(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}var mJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;if(a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),process.env.NODE_ENV!=="production"&&!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,n,0,t.getData().count()):Jk(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(Jk(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){li(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,a,n,i,o){var s=t.coordinateSystem,l=qo(s,"cartesian2d"),u=qo(s,"matrix"),c,f,h,v;if(l){var d=s.getAxis("x"),p=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(d.type==="category"&&p.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(d.onBand&&p.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}c=Qt(d).w+.5,f=Qt(p).w+.5,h=d.scale.getExtent(),v=p.scale.getExtent()}for(var g=this.group,m=t.getData(),_=t.getModel(["emphasis","itemStyle"]).getItemStyle(),S=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),w=Lt(t),C=t.getModel("emphasis"),E=C.get("focus"),T=C.get("blurScope"),D=C.get("disabled"),A=l||u?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],I=n;I<i;I++){var M=void 0,L=m.getItemVisual(I,"style");if(l){var N=m.get(A[0],I),R=m.get(A[1],I);if(isNaN(m.get(A[2],I))||isNaN(N)||isNaN(R)||N<h[0]||N>h[1]||R<v[0]||R>v[1])continue;var P=s.dataToPoint([N,R]);M=new Le({shape:{x:P[0]-c/2,y:P[1]-f/2,width:c,height:f},style:L})}else if(u){var O=s.dataToLayout([m.get(A[0],I),m.get(A[1],I)]).rect;if(Gt(O.x))continue;M=new Le({z2:1,shape:O,style:L})}else{if(isNaN(m.get(A[1],I)))continue;var G=s.dataToLayout([m.get(A[0],I)]),O=G.contentRect||G.rect;if(Gt(O.x)||Gt(O.y))continue;M=new Le({z2:1,shape:O,style:L})}if(m.hasItemOption){var F=m.getItemModel(I),B=F.getModel("emphasis");_=B.getModel("itemStyle").getItemStyle(),S=F.getModel(["blur","itemStyle"]).getItemStyle(),x=F.getModel(["select","itemStyle"]).getItemStyle(),b=F.get(["itemStyle","borderRadius"]),E=B.get("focus"),T=B.get("blurScope"),D=B.get("disabled"),w=Lt(F)}M.shape.r=b;var $=t.getRawValue(I),j="-";$&&$[2]!=null&&(j=$[2]+""),Vt(M,w,{labelFetcher:t,labelDataIndex:I,defaultOpacity:L.opacity,defaultText:j}),M.ensureState("emphasis").style=_,M.ensureState("blur").style=S,M.ensureState("select").style=x,ut(M,E,T,D),M.incremental=Ra(t,o),o&&(M.states.emphasis.hoverLayer=qs),g.add(M),m.setItemGraphicEl(I,M),this._progressiveEls&&this._progressiveEls.push(M)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new dJ;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var c=t.getViewRect().clone(),f=t.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),v=Math.max(c.y,0),d=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=d-h,m=p-v,_=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(_,function(C,E,T){var D=t.dataToPoint([C,E]);return D[0]-=h,D[1]-=v,D.push(T),D}),x=n.getExtent(),b=n.type==="visualMap.continuous"?gJ(x,n.option.range):pJ(x,n.getPieceList(),n.option.selected);u.update(S,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var w=new $t({style:{width:g,height:m,x:h,y:v,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e})(et),yJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return An(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=rl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:H.color.primary}}},e})(nt);function _J(r){r.registerChartView(mJ),r.registerSeriesModel(yJ)}var SJ=["itemStyle","borderWidth"],aN=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],X_=new wn,xJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ic,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:aN[+c],categoryDim:aN[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=cN(o,d),g=nN(o,d,p,h),m=fN(o,h,g);o.setItemGraphicEl(d,m),i.add(m),dN(m,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var m=cN(o,d),_=nN(o,d,m,h),S=vN(o,_);g&&S!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?kJ(g,h,_):g=fN(o,h,_,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=_,i.add(g),dN(g,h,_)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&hN(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=t.get("clip",!0)?Zo(t.coordinateSystem,!1,t):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){hN(i,be(o).dataIndex,t,o)}):n.removeAll()},e.type=Ic,e})(et);function nN(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,f=t.isAnimationEnabled(),h={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?t:null,hoverScale:f&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};bJ(t,i,n,a,h),wJ(r,e,n,i,o,h.boundingLength,h.pxSign,c,a,h),CJ(t,h.symbolScale,u,a,h);var v=h.symbolSize,d=No(t.get("symbolOffset"),v);return TJ(t,v,n,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,a,h),h}function bJ(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(Y(o)){var f=[Z_(s,o[0])-l,Z_(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=Z_(s,o)-l:e?c=a.coordSysExtent[i.index][u]-l:c=t[i.wh];n.boundingLength=c,e&&(n.repeatCutLength=t[i.wh]);var h=i.xy==="x",v=s.inverse;n.pxSign=h&&!v||!h&&v?c>=0?1:-1:c>0?1:-1}function Z_(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function wJ(r,e,t,a,n,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(t[f.wh]),v=r.getItemVisual(e,"symbolSize"),d;Y(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=ee(d[f.index],h),d[c.index]=ee(d[c.index],a?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function CJ(r,e,t,a,n){var i=r.get(SJ)||0;i&&(X_.attr({scaleX:e[0],scaleY:e[1],rotation:t}),X_.updateTransform(),i/=X_.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function TJ(r,e,t,a,n,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(e[v.index]+s,0),g=p;if(a){var m=Math.abs(l),_=Ft(r.get("symbolMargin"),"15%")+"",S=!1;_.lastIndexOf("!")===_.length-1&&(S=!0,_=_.slice(0,_.length-1));var x=ee(_,e[v.index]),b=Math.max(p+x*2,0),w=S?0:x*2,C=Jg(a),E=C?a:pN((m+w)/b),T=m-E*p;x=T/2/(S?E:Math.max(E-1,1)),b=p+x*2,w=S?0:x*2,!C&&a!=="fixed"&&(E=u?pN((Math.abs(u)+w)/b):0),g=E*b-w,f.repeatTimes=E,f.symbolMargin=x}var D=d*(g/2),A=f.pathPosition=[];A[h.index]=t[h.wh]/2,A[v.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(A[0]+=i[0],A[1]+=i[1]);var I=f.bundlePosition=[];I[h.index]=t[h.xy],I[v.index]=t[v.xy];var M=f.barRectShape=U({},t);M[v.wh]=d*Math.max(Math.abs(t[v.wh]),Math.abs(A[v.index]+D)),M[h.wh]=t[h.wh];var L=f.clipShape={};L[h.xy]=-t[h.xy],L[h.wh]=c.ecSize[h.wh],L[v.xy]=0,L[v.wh]=t[v.wh]}function iN(r){var e=r.symbolPatternSize,t=Dt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function oN(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,f=i[e.valueDim.index]+o+t.symbolMargin*2;for(q_(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?Gl(p,null,d(c),t,a):Gl(p,null,{scaleX:0,scaleY:0},t,a,function(){n.remove(p)}),c++});c<u;c++){var h=iN(t);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,n.add(h);var v=d(c);Gl(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,a)}function d(p){var g=s.slice(),m=t.pxSign,_=p;return(t.symbolRepeatDirection==="start"?m>0:m<0)&&(_=u-1-p),g[l.index]=f*(_-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function sN(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Gl(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=iN(t),n.add(i),Gl(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function lN(r,e,t){var a=U({},e.barRectShape),n=r.__pictorialBarRect;n?Gl(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new Le({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function uN(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=U({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)$e(n,{shape:i},s,l);else{i[o.wh]=0,n=new Le({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],_o[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function cN(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=EJ,t.isAnimationEnabled=DJ,t}function EJ(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function DJ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function fN(r,e,t,a){var n=new ge,i=new ge;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?oN(n,e,t):sN(n,e,t),lN(n,t,a),uN(n,e,t,a),n.__pictorialShapeStr=vN(r,t),n.__pictorialSymbolMeta=t,n}function kJ(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;$e(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?oN(r,e,t,!0):sN(r,e,t,!0),lN(r,t,!0),uN(r,e,t,!0)}function hN(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];q_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),k(i,function(o){si(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function vN(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function q_(r,e,t){k(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Gl(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&_o[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function dN(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");q_(r,function(p){if(p instanceof $t){var g=p.style;p.useStyle(U({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var m=p.ensureState("emphasis");m.style=o,h&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Vt(d,Lt(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:El(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),ut(r,c,f,i.get("disabled"))}function pN(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var AJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series."+Ic,e.dependencies=["grid"],e.defaultOption=ui(Lc.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:H.color.primary}}}),e})(Lc);function MJ(r){r.registerChartView(xJ),r.registerSeriesModel(AJ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,AA(Ic)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,MA(Ic)),LA(r)}var K_=2,Fl="themeRiver",IJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ml(ie(this.getData,this),ie(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,n={},i=nm(t,function(h){return n.hasOwnProperty(h[0]+"")||(n[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,v){o.push({name:v,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";n[f]=l}for(var f in n)n.hasOwnProperty(f)&&n[f]!==l&&(n[f]=l,t[a]=[f,0,u],a++)}return t},e.prototype.getInitialData=function(t,a){for(var n=this.getReferringComponents("singleAxis",mt).models[0],i=n.get("type"),o=Ze(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=re(),c=0,f=0;f<s.length;++f)l.push(s[f][K_]),u.get(s[f][K_])||(u.set(s[f][K_],c),c++);var h=nc(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Ev(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new mr(h,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),a=t.count(),n=[],i=0;i<a;++i)n[i]=i;var o=t.mapDimension("single"),s=nm(n,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,h){return t.get(o,f)-t.get(o,h)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,a,n){Y(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,h=-1,v=o[c].indices.length,d=0;d<v;++d){var p=i.get(t[0],o[c].indices[d]),g=Math.abs(p-a);g<=f&&(u=p,f=g,h=o[c].indices[d])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return Et("nameValue",{name:o,value:s})},e.type="series."+Fl,e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(nt),LJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Fl,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(g){return g.name}var v=new kn(this._layersSeries||[],l,h,h),d=[];v.add(ie(p,this,"add")).update(ie(p,this,"update")).remove(ie(p,this,"remove")).execute();function p(g,m,_){var S=o._layers;if(g==="remove"){s.remove(S[m]);return}for(var x=[],b=[],w,C=l[m].indices,E=0;E<C.length;E++){var T=i.getItemLayout(C[E]),D=T.x,A=T.y0,I=T.y;x.push(D,A),b.push(D,A+I),w=i.getItemVisual(C[E],"style")}var M,L=i.getItemLayout(C[0]),N=t.getModel("label"),R=N.get("margin"),P=t.getModel("emphasis");if(g==="add"){var O=d[m]=new ge;M=new qk({shape:{points:x,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(M),s.add(O),t.isAnimationEnabled()&&M.setClipPath(NJ(M.getBoundingRect(),t,function(){M.removeClipPath()}))}else{var O=S[_];M=O.childAt(0),s.add(O),d[m]=O,$e(M,{shape:{points:x,stackedOnPoints:b}},t),Xr(M)}Vt(M,Lt(t),{labelDataIndex:C[E-1],defaultText:i.getName(C[E-1]),inheritColor:w.fill},{normal:{verticalAlign:"middle"}}),M.setTextConfig({position:null,local:!0});var G=M.getTextContent();G&&(G.x=L.x-R,G.y=L.y0+L.y/2),M.useStyle(w),i.setItemGraphicEl(m,M),It(M,t),ut(M,P.get("focus"),P.get("blurScope"),P.get("disabled"))}this._layersSeries=l,this._layers=d},e.type=Fl,e})(et);function NJ(r,e,t){var a=new Le({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ot(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),a}var PJ=Mt(Fl,RJ);function RJ(r,e){r.eachSeriesByType(Fl,function(t){var a=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=ee(s[0],o.height),s[1]=ee(s[1],o.height);var u=o.height-s[0]-s[1];gN(a,t,u)}else{s[0]=ee(s[0],o.width),s[1]=ee(s[1],o.width);var c=o.width-s[0]-s[1];gN(a,t,c)}a.setLayout("layoutInfo",i)})}function gN(r,e,t){if(r.count())for(var a=e.coordinateSystem,n=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=K(n,function(g){return K(g.indices,function(m){var _=a.dataToPoint(r.get(i,m));return _[1]=r.get(o,m),_})}),l=OJ(s),u=l.y0,c=t/l.max,f=n.length,h=n[0].indices.length,v,d=0;d<h;++d){v=u[d]*c,r.setItemLayout(n[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:v,y:s[0][d][1]*c});for(var p=1;p<f;++p)v+=s[p-1][d][1]*c,r.setItemLayout(n[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:v,y:s[p][d][1]*c})}}function OJ(r){for(var e=r.length,t=r[0].length,a=[],n=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<t;++u)n[u]=(i-a[u])/2;i=0;for(var c=0;c<t;++c){var f=a[c]+n[c];f>i&&(i=f)}return{y0:n,max:i}}function VJ(r){r.registerChartView(LJ),r.registerSeriesModel(IJ),r.registerLayout(PJ),r.registerProcessor(Nc(Fl))}var BJ=2,zJ=4,mN=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=BJ,o.textConfig={inside:!0},be(o).seriesIndex=a.seriesIndex;var s=new Fe({z2:zJ,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;be(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),c=a.getLayout(),f=U({},c);f.label=null;var h=a.getVisual("style");h.lineJoin="bevel";var v=a.getVisual("decal");v&&(h.decal=vl(v,o));var d=Ja(l.getModel("itemStyle"),f,!0);U(f,d),k(pr,function(_){var S=s.ensureState(_),x=l.getModel([_,"itemStyle"]);S.style=x.getItemStyle();var b=Ja(x,f);b&&(S.shape=b)}),t?(s.setShape(f),s.shape.r=c.r0,ot(s,{shape:{r:c.r}},n,a.dataIndex)):($e(s,{shape:f},n),Xr(s)),s.useStyle(h),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),m=g==="relative"?au(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;ut(this,m,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),v=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);h.ignore=!p,k(Cu,function(m){var _=m==="normal"?n.getModel("label"):n.getModel([m,"label"]),S=m==="normal",x=S?h:h.ensureState(m),b=t.getFormattedLabel(v,m);S&&(b=b||a.node.name),x.style=at(_,{},null,m!=="normal",!0),b&&(x.style.text=b);var w=_.get("show");w!=null&&!S&&(x.ignore=!w);var C=g(_,"position"),E=S?f:f.states[m],T=E.style.fill;E.textConfig={outsideFill:_.get("color")==="inherit"?T:null,inside:C!=="outside"};var D,A=g(_,"distance")||0,I=g(_,"align"),M=g(_,"rotate"),L=Math.PI*.5,N=Math.PI*1.5,R=Lr(M==="tangential"?Math.PI/2-l:l),P=R>L&&!Ps(R-L)&&R<N;C==="outside"?(D=o.r+A,I=P?"right":"left"):!I||I==="center"?(o.r0===0&&Ps(s-2*Math.PI)?D=0:D=(o.r+o.r0)/2,I="center"):I==="left"?(D=o.r0+A,I=P?"right":"left"):I==="right"&&(D=o.r-A,I=P?"left":"right"),x.style.align=I,x.style.verticalAlign=g(_,"verticalAlign")||"middle",x.x=D*u+o.cx,x.y=D*c+o.cy;var O=0;M==="radial"?O=Lr(-l)+(P?Math.PI:0):M==="tangential"?O=Lr(Math.PI/2-l)+(P?Math.PI:0):Ge(M)&&(O=M*Math.PI/180),x.rotation=Lr(O)});function g(m,_){var S=m.get(_);return S??i.get(_)}h.dirtyStyle()},e})(ar),vs="sunburst",GJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};yN(n);var i=this._levelModels=K(t.levels||[],function(l){return new ze(l,this,a)},this),o=Y1.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=i[f.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Od(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){AI(this)},e.type="series."+vs,e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(nt);function yN(r){var e=0;k(r.children,function(a){yN(a);var n=a.value;Y(n)&&(n=n[0]),e+=n});var t=r.value;Y(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),Y(r.value)?r.value[0]=t:r.value=t}var j_="sunburstRootToNode",_N="sunburstHighlight",FJ="sunburstUnhighlight";function HJ(r){r.registerAction({type:j_,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=Yc(e,[j_],n);if(o){var s=n.getViewRoot();s&&(e.direction=X1(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:_N,update:"none"},function(e,t,a){e=U({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=Yc(e,[_N],i);o&&(e.dataIndex=o.node.dataIndex)}process.env.NODE_ENV!=="production"&&wt("sunburstHighlight","highlight"),a.dispatchAction(U(e,{type:"highlight"}))}),r.registerAction({type:FJ,update:"updateView"},function(e,t,a){e=U({},e),process.env.NODE_ENV!=="production"&&wt("sunburstUnhighlight","downplay"),a.dispatchAction(U(e,{type:"downplay"}))})}var $J=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=vs,t}return e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,f=t.get("renderLabelForZeroData"),h=[];u.eachNode(function(_){h.push(_)});var v=this._oldChildren||[];d(h,v),m(l,u),this._initEvents(),this._oldChildren=h;function d(_,S){if(_.length===0&&S.length===0)return;new kn(S,_,x,x).add(b).update(b).remove(Me(b,null)).execute();function x(w){return w.getId()}function b(w,C){var E=w==null?null:_[w],T=C==null?null:S[C];p(E,T)}}function p(_,S){if(!f&&_&&!_.getValue()&&(_=null),_!==l&&S!==l){if(S&&S.piece)_?(S.piece.updateData(!1,_,t,a,n),s.setItemGraphicEl(_.dataIndex,S.piece)):g(S);else if(_){var x=new mN(_,t,a,n);c.add(x),s.setItemGraphicEl(_.dataIndex,x)}}}function g(_){_&&_.piece&&(c.remove(_.piece),_.piece=null)}function m(_,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,_,t,a,n):(o.virtualPiece=new mN(_,t,a,n),c.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(S.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Kh(u,c)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:j_,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=vs,e})(et),UJ=Mt(vs,WJ);function WJ(r){var e={};function t(a,n,i){if(a.depth===0)return H.color.neutral50;for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&Q(s)&&(s=xg(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType(vs,function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");U(u,l)})})}var SN=Math.PI/180,YJ=Mt(vs,XJ);function XJ(r,e){r.eachSeriesByType(vs,function(t){var a=t.get("center"),n=t.get("radius");Y(n)||(n=[0,n]),Y(a)||(a=[a,a]);var i=e.getWidth(),o=e.getHeight(),s=Math.min(i,o),l=ee(a[0],i),u=ee(a[1],o),c=ee(n[0],s/2),f=ee(n[1],s/2),h=-t.get("startAngle")*SN,v=t.get("minAngle")*SN,d=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get("sort");m!=null&&xN(p,m);var _=0;k(p.children,function(N){!isNaN(N.getValue())&&_++});var S=p.getValue(),x=Math.PI/(S||_)*2,b=p.depth>0,w=p.height-(b?-1:1),C=(f-c)/(w||1),E=t.get("clockwise"),T=t.get("stillShowZeroSum"),D=E?1:-1,A=function(N,R){if(N){var P=R;if(N!==d){var O=N.getValue(),G=S===0&&T?x:O*x;G<v&&(G=v),P=R+D*G;var F=N.depth-g-(b?-1:1),B=c+C*F,$=c+C*(F+1),j=t.getLevelModel(N);if(j){var W=j.get("r0",!0),V=j.get("r",!0),q=j.get("radius",!0);q!=null&&(W=q[0],V=q[1]),W!=null&&(B=ee(W,s/2)),V!=null&&($=ee(V,s/2))}N.setLayout({angle:G,startAngle:R,endAngle:P,clockwise:E,cx:l,cy:u,r0:B,r:$})}if(N.children&&N.children.length){var Ce=0;k(N.children,function(fe){Ce+=A(fe,R+Ce)})}return P-R}};if(b){var I=c,M=c+C,L=Math.PI*2;d.setLayout({angle:L,startAngle:h,endAngle:h+L,clockwise:E,cx:l,cy:u,r0:I,r:M})}A(p,h)})}function xN(r,e){var t=r.children||[];r.children=ZJ(t,e),t.length&&k(r.children,function(a){xN(a,e)})}function ZJ(r,e){if(ce(e)){var t=K(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(n,i){return e(n.params,i.params)}),K(t,function(n){return r[n.index]})}else{var a=e==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function qJ(r){r.registerChartView($J),r.registerSeriesModel(GJ),r.registerLayout(YJ),r.registerVisual(UJ),HJ(r)}var bN={color:"fill",borderColor:"stroke"},KJ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Rn=De(),jJ=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return An(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=Rn(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(nt);function QJ(r,e){return e=e||[0,0],K(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?Qt(n).w:Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function JJ(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:ie(QJ,r)}}}function eee(r,e){return e=e||[0,0],K([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function tee(r){var e=r.view,t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:CZ(e)},api:{coord:function(a){return r.dataToPoint(a)},size:ie(eee,r)}}}function ree(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?Qt(t).w:Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function aee(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:ie(ree,r)}}}function nee(r,e){return e=e||[0,0],K(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?Qt(i).w:Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function iee(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:ie(nee,r)}}}function oee(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function see(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,a){return r.dataToPoint(t,a)},layout:function(t,a){return r.dataToLayout(t,a)}}}}var wN={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},CN=Oe(wN),jd=wa(dn,function(r,e){return r[e]=1,r},{}),TN=dn.join(", "),Qd=["","style","shape","extra"],Hl=De();function Q_(r,e,t,a,n){var i=r+"Animation",o=Xs(r,a,n)||{},s=Hl(e).userDuring;return o.duration>0&&(o.during=s?ie(hee,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),U(o,t[i]),o}function Jd(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=Hl(r),u=e.style;l.userDuring=e.during;var c={},f={};if(dee(r,e,f),r.type==="compound")for(var h=r.shape.paths,v=e.shape.paths,d=0;d<v.length;d++){var p=v[d];J_("shape",p,h[d])}else J_("shape",e,f),J_("extra",e,f);if(!i&&s&&(vee(r,e,c),DN("shape",r,e,c),DN("extra",r,e,c),pee(r,e,u,c)),f.style=u,lee(r,f,o),cee(r,e),s)if(i){var g={};k(Qd,function(_){var S=_?e[_]:e;S&&S.enterFrom&&(_&&(g[_]=g[_]||{}),U(_?g[_]:g,S.enterFrom))});var m=Q_("enter",r,e,t,n);m.duration>0&&r.animateFrom(g,m)}else uee(r,e,n||0,t,c);EN(r,e),u?r.dirty():r.markRedraw()}function EN(r,e){for(var t=Hl(r).leaveToProps,a=0;a<Qd.length;a++){var n=Qd[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=Hl(r).leaveToProps={}),n&&(t[n]=t[n]||{}),U(n?t[n]:t,i.leaveTo))}}function ep(r,e,t,a){if(r){var n=r.parent,i=Hl(r).leaveToProps;if(i){var o=Q_("update",r,e,t,0);o.done=function(){n&&n.remove(r)},r.animateTo(i,o)}else n&&n.remove(r)}}function ds(r){return r==="all"}function lee(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function uee(r,e,t,a,n){if(n){var i=Q_("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function cee(r,e){ae(e,"silent")&&(r.silent=e.silent),ae(e,"ignore")&&(r.ignore=e.ignore),r instanceof Wr&&ae(e,"invisible")&&(r.invisible=e.invisible),r instanceof Re&&ae(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var rn={},fee={setTransform:function(r,e){return process.env.NODE_ENV!=="production"&&Z(ae(jd,r),"Only "+TN+" available in `setTransform`."),rn.el[r]=e,this},getTransform:function(r){return process.env.NODE_ENV!=="production"&&Z(ae(jd,r),"Only "+TN+" available in `getTransform`."),rn.el[r]},setShape:function(r,e){process.env.NODE_ENV!=="production"&&$l(r);var t=rn.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){process.env.NODE_ENV!=="production"&&$l(r);var e=rn.el.shape;if(e)return e[r]},setStyle:function(r,e){process.env.NODE_ENV!=="production"&&$l(r);var t=rn.el,a=t.style;return a&&(process.env.NODE_ENV!=="production"&&Gt(e)&&lt("style."+r+" must not be assigned with NaN."),a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){process.env.NODE_ENV!=="production"&&$l(r);var e=rn.el.style;if(e)return e[r]},setExtra:function(r,e){process.env.NODE_ENV!=="production"&&$l(r);var t=rn.el.extra||(rn.el.extra={});return t[r]=e,this},getExtra:function(r){process.env.NODE_ENV!=="production"&&$l(r);var e=rn.el.extra;if(e)return e[r]}};function $l(r){if(process.env.NODE_ENV!=="production"&&(r==="transition"||r==="enterFrom"||r==="leaveTo"))throw new Error('key must not be "'+r+'"')}function hee(){var r=this,e=r.el;if(e){var t=Hl(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}rn.el=e,a(fee)}}function DN(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),ds(l))U(o,i);else for(var u=tt(l),c=0;c<u.length;c++){var f=u[c],h=i[f];o[f]=h}else if(ds(s)||Ee(s,r)>=0){!o&&(o=a[r]={});for(var v=Oe(i),c=0;c<v.length;c++){var f=v[c],h=i[f];gee(n[f],h)&&(o[f]=h)}}}}}function J_(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=Oe(a),o=0;o<i.length;o++){var s=i[o];n[s]=vu(a[s])}}function vee(r,e,t){for(var a=e.transition,n=ds(a)?dn:tt(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];process.env.NODE_ENV!=="production"&&kN(o,"el.transition"),t[o]=s}}}function dee(r,e,t){for(var a=0;a<CN.length;a++){var n=CN[a],i=wN[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<dn.length;a++){var s=dn[a];e[s]!=null&&(t[s]=e[s])}}function pee(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!ds(o)){var l=tt(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var c=l[u],f=n[c];i[c]=f}}else if(r.getAnimationStyleProps&&(ds(s)||ds(o)||Ee(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=a.style={});for(var d=Oe(t),u=0;u<d.length;u++){var c=d[u];if(v[c]){var f=n[c];i[c]=f}}}}}}}function gee(r,e){return er(r)?r!==e:r!=null&&isFinite(r)}var kN;process.env.NODE_ENV!=="production"&&(kN=function(r,e){ae(jd,r)||lt("Prop `"+r+"` is not a permitted in `"+e+"`. Only `"+Oe(jd).join("`, `")+"` are permitted.")});var AN=De(),mee=["percent","easing","shape","style","extra"];function MN(r){r.stopAnimation("keyframe"),r.attr(AN(r))}function tp(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(Y(e)){k(e,function(s){tp(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=Xs("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=AN(r);k(Qd,function(s){if(!(s&&!r[s])){var l,u=!1;a.sort(function(c,f){return c.percent-f.percent}),k(a,function(c){var f=r.animators,h=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!h){var v=Oe(h);if(s||(v=Ze(v,function(g){return Ee(mee,g)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var d=0;d<f.length;d++)f[d]!==l&&f[d].targetName===l.targetName&&f[d].stopTracks(v);s&&(o[s]=o[s]||{});var p=s?o[s]:o;k(v,function(g){p[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(n*c.percent,h,v,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||lt("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(n).start(e.easing))}})}}}var On="emphasis",Di="normal",eS="blur",tS="select",ki=[Di,On,eS,tS],rS={normal:["itemStyle"],emphasis:[On,"itemStyle"],blur:[eS,"itemStyle"],select:[tS,"itemStyle"]},aS={normal:["label"],emphasis:[On,"label"],blur:[eS,"label"],select:[tS,"label"]},yee=["x","y"],_ee="e\0\0",aa={normal:{},emphasis:{},blur:{},select:{}},IN={cartesian2d:JJ,geo:tee,single:aee,polar:iee,calendar:oee,matrix:see};function rp(r){return r instanceof Re}function nS(r){return r instanceof Wr}function See(r,e){e.copyTransform(r),nS(e)&&nS(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,rp(e)&&rp(r)&&e.setShape(r.shape))}var xee=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=NN(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(f){sS(n,null,f,u(f,i),t,l,s)}).remove(function(f){var h=o.getItemGraphicEl(f);h&&ep(h,Rn(h).option,t)}).update(function(f,h){var v=o.getItemGraphicEl(h);sS(n,v,f,u(f,i),t,l,s)}).execute();var c=t.get("clip",!0)?Zo(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var s=a.getData(),l=NN(a,s,n,i),u=this._progressiveEls=[];function c(v){v.isGroup||(v.incremental=Ra(a),v.ensureState("emphasis").hoverLayer=qs)}for(var f=t.start;f<t.end;f++){var h=sS(null,null,f,l(f,o),a,this.group,s);h&&(h.traverse(c),u.push(h))}},e.prototype.eachRendered=function(t){li(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e})(et);function iS(r){var e=r.type,t;if(e==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=BN(a);t=Mu(i,null,n,a.layout||"center"),Rn(t).customPathData=i}else if(e==="image")t=new $t({}),Rn(t).customImagePath=r.style.image;else if(e==="text")t=new Fe({});else if(e==="group")t=new ge;else if(e==="compoundPath"){var a=r.shape;if(!a||!a.paths){var o="";process.env.NODE_ENV!=="production"&&(o="shape.paths must be specified in compoundPath"),Ye(o)}var s=K(a.paths,function(c){if(c.type==="path")return Mu(c.shape.pathData,c,null);var f=Oh(c.type);if(!f){var h="";process.env.NODE_ENV!=="production"&&(h='graphic type "'+e+'" can not be found.'),Ye(h)}return new f});t=new Ih({shape:{paths:s}})}else{var l=Oh(e);if(!l){var o="";process.env.NODE_ENV!=="production"&&(o='graphic type "'+e+'" can not be found.'),Ye(o)}t=new l}return Rn(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function oS(r,e,t,a,n,i,o){MN(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),a&&a.transition==null&&(a.transition=yee);var l=a&&a.style;if(l){if(e.type==="text"){var u=l;ae(u,"textFill")&&(u.fill=u.textFill),ae(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=rp(e)?l.decal:null;r&&f&&(f.dirty=!0,c=vl(f,r)),l.__decalPattern=c}if(nS(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Jd(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),tp(e,a.keyframeAnimation,i)}function LN(r,e,t,a,n){var i=e.isGroup?null:e,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),uo(i)}}function bee(r,e,t){if(!r.isGroup){var a=r,n=t.currentZ,i=t.currentZLevel;a.z=n,a.zlevel=i;var o=e.z2;o!=null&&(a.z2=o||0);for(var s=0;s<ki.length;s++)wee(a,e,ki[s])}}function wee(r,e,t){var a=t===Di,n=a?e:ap(e,t),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(t),o.z2=i||0)}function NN(r,e,t,a){var n=r.get("renderItem");if(typeof n=="string"){var i=$7(n);i?n=i:process.env.NODE_ENV!=="production"&&console.warn("Custom series renderItem '"+n+`' not found.
53
+ Call 'echarts.registerCustomSeries' to register it.`)}var o=r.coordinateSystem,s={};o&&(process.env.NODE_ENV!=="production"&&(Z(n,"series.render is required."),Z(o.prepareCustoms||IN[o.type],"This coordSys does not support custom series.")),s=o.prepareCustoms?o.prepareCustoms(o):IN[o.type](o));for(var l=me({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:b,style:C,ordinalRawValue:w,styleEmphasis:E,visual:A,barLayout:I,currentSeriesIndices:M,font:L},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:Cee(r.getData()),itemPayload:r.get("itemPayload")||{}},c,f,h={},v={},d={},p={},g=0;g<ki.length;g++){var m=ki[g];d[m]=r.getModel(rS[m]),p[m]=r.getModel(aS[m])}function _(N){return N===c?f||(f=e.getItemModel(N)):e.getItemModel(N)}function S(N,R){return e.hasItemOption?N===c?h[R]||(h[R]=_(N).getModel(rS[R])):_(N).getModel(rS[R]):d[R]}function x(N,R){return e.hasItemOption?N===c?v[R]||(v[R]=_(N).getModel(aS[R])):_(N).getModel(aS[R]):p[R]}return function(N,R){return c=N,f=null,h={},v={},n&&n(me({dataIndexInside:N,dataIndex:e.getRawIndex(N),actionType:R?R.type:null},u),l)};function b(N,R){return R==null&&(R=c),e.getStore().get(e.getDimensionIndex(N||0),R)}function w(N,R){R==null&&(R=c),N=N||0;var P=e.getDimensionInfo(N);if(!P){var O=e.getDimensionIndex(N);return O>=0?e.getStore().get(O,R):void 0}var G=e.get(P.name,R),F=P&&P.ordinalMeta;return F?F.categories[G]:G}function C(N,R){process.env.NODE_ENV!=="production"&&a1("api.style","Please write literal style directly instead."),R==null&&(R=c);var P=e.getItemVisual(R,"style"),O=P&&P.fill,G=P&&P.opacity,F=S(R,Di).getItemStyle();O!=null&&(F.fill=O),G!=null&&(F.opacity=G);var B={inheritColor:Q(O)?O:H.color.neutral99},$=x(R,Di),j=at($,null,B,!1,!0);j.text=$.getShallow("show")?oe(r.getFormattedLabel(R,Di),El(e,R)):null;var W=$h($,B,!1);return D(N,F),F=nA(F,j,W),N&&T(F,N),F.legacy=!0,F}function E(N,R){process.env.NODE_ENV!=="production"&&a1("api.styleEmphasis","Please write literal style directly instead."),R==null&&(R=c);var P=S(R,On).getItemStyle(),O=x(R,On),G=at(O,null,null,!0,!0);G.text=O.getShallow("show")?fr(r.getFormattedLabel(R,On),r.getFormattedLabel(R,Di),El(e,R)):null;var F=$h(O,null,!0);return D(N,P),P=nA(P,G,F),N&&T(P,N),P.legacy=!0,P}function T(N,R){for(var P in R)ae(R,P)&&(N[P]=R[P])}function D(N,R){N&&(N.textFill&&(R.textFill=N.textFill),N.textPosition&&(R.textPosition=N.textPosition))}function A(N,R){if(R==null&&(R=c),ae(bN,N)){var P=e.getItemVisual(R,"style");return P?P[bN[N]]:null}if(ae(KJ,N))return e.getItemVisual(R,N)}function I(N){if(o.type==="cartesian2d"){var R=o.getBaseAxis();return CY(me({axis:R},N))}}function M(){return t.getCurrentSeriesIndices()}function L(N){return ey(N,t)}}function Cee(r){var e={};return k(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function sS(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=lS(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&ut(s,a.focus,a.blurScope,a.emphasisDisabled),s}function lS(r,e,t,a,n,i){process.env.NODE_ENV!=="production"&&Z(a,"should not have an null/undefined element setting");var o=-1,s=e;e&&PN(e,a,n)&&(o=Ee(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=iS(a),s&&See(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),aa.normal.cfg=aa.normal.conOpt=aa.emphasis.cfg=aa.emphasis.conOpt=aa.blur.cfg=aa.blur.conOpt=aa.select.cfg=aa.select.conOpt=null,aa.isLegacy=!1,Eee(u,t,a,n,l,aa),Tee(u,t,a,n,l),oS(r,u,t,a,aa,n,l),ae(a,"info")&&(Rn(u).info=a.info);for(var c=0;c<ki.length;c++){var f=ki[c];if(f!==Di){var h=ap(a,f),v=uS(a,h,f);LN(f,u,h,v,aa)}}return bee(u,a,n),a.type==="group"&&Dee(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function PN(r,e,t){var a=Rn(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&Iee(i)&&BN(i)!==a.customPathData||n==="image"&&ae(o,"image")&&o.image!==a.customImagePath}function Tee(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&PN(o,i,a)&&(o=null),o||(o=iS(i),process.env.NODE_ENV!=="production"&&Z(rp(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),r.setClipPath(o)),oS(null,o,e,i,null,a,n)}}function Eee(r,e,t,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){RN(t,null,i),RN(t,On,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=iS(o),r.setTextContent(c)),oS(null,c,e,o,null,a,n);for(var f=o&&o.style,h=0;h<ki.length;h++){var v=ki[h];if(v!==Di){var d=i[v].conOpt;LN(v,c,d,uS(o,d,v),null)}}f?c.dirty():c.markRedraw()}}}}function RN(r,e,t){var a=e?ap(r,e):r,n=e?uS(r,a,On):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?ap(s,e):s:null;if(n&&(t.isLegacy||tA(n,i,!!o,!!l))){t.isLegacy=!0;var u=rA(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&Z(c.type==="text",'textContent.type must be "text"')}var f=e?t[e]:t.normal;f.cfg=o,f.conOpt=l}function ap(r,e){return e?r?r[e]:null:r}function uS(r,e,t){var a=e&&e.style;return a==null&&t===On&&r&&(a=r.styleEmphasis),a}function Dee(r,e,t,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Aee({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=i[c],h=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),lS(r,h,t,f,n,e)):(process.env.NODE_ENV!=="production"&&Z(h,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),h.ignore=!0)}for(var v=e.childCount()-1;v>=c;v--){var d=e.childAt(v);kee(e,d,n)}}}function kee(r,e,t){e&&ep(e,Rn(r).option,t)}function Aee(r){new kn(r.oldChildren,r.newChildren,ON,ON,r).add(VN).update(VN).remove(Mee).execute()}function ON(r,e){var t=r&&r.name;return t??_ee+e}function VN(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;lS(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function Mee(r){var e=this.context,t=e.oldChildren[r];t&&ep(t,Rn(t).option,e.seriesModel)}function BN(r){return r&&(r.pathData||r.d)}function Iee(r){return r&&(ae(r,"pathData")||ae(r,"d"))}function Lee(r){r.registerChartView(xee),r.registerSeriesModel(jJ)}var ps=De(),zN=he,cS=ie,fS=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new ge,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var h=Me(GN,t,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}$N(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&Qt(n).w>s)return!0;if(o){var l=b1(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=ps(e).pointerEl=new _o[i.type](zN(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=ps(e).labelEl=new Fe(zN(t.label));e.add(i),HN(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=ps(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=ps(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),HN(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Lu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){hn(u.event)},onmousedown:cS(this._onHandleDragMove,this,0,0),drift:cS(this._onHandleDragMove,this),ondragend:cS(this._onHandleDragEnd,this)}),a.add(n)),$N(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Y(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,sl(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){GN(this._axisPointerModel,!t&&this._moveAnimation,this._handle,hS(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(hS(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(hS(n)),ps(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Zu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r})();function GN(r,e,t,a){FN(ps(t).lastProp,a)||(ps(t).lastProp=a,e?$e(t,a,r):(t.stopAnimation(),t.attr(a)))}function FN(r,e){if(de(r)&&de(e)){var t=!0;return k(e,function(a,n){t=t&&FN(r[n],a)}),!!t}else return r===e}function HN(r,e){r[e.get(["label","show"])?"show":"hide"]()}function hS(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function $N(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}function vS(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function UN(r,e,t,a,n){var i=t.get("value"),o=WN(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Bu(s.get("padding")||0),u=s.getFont(),c=Qf(o,u),f=n.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=n.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),Nee(f,h,v,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:at(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Nee(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function WN(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:zv(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};k(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Q(o)?i=o.replace("{value}",i):ce(o)&&(i=o(s))}return i}function dS(r,e,t){var a=ft();return Yn(a,a,t.rotation),Ca(a,a,t.position),da([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function YN(r,e,t,a,n,i){var o=Sr.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),UN(e,a,n,i,{position:dS(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function pS(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function XN(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function ZN(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}function gS(r,e,t){return Qt(r,{fromStat:{sers:K(e,function(a){return t.getSeriesByIndex(a.seriesIndex)})},min:1}).w}function mS(r,e,t){return[Ie(Ke(e[0],e[1]),r-t/2),Ke(r+t/2,Ie(e[0],e[1]))]}var Pee=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),c=s.getGlobalExtent(),f=qN(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=vS(i),d=Ree[u](s,h,c,f,i.get("seriesDataIndices"),i.ecModel);d.style=v,t.graphicKey=d.type,t.pointer=d}var p=sd(l.getRect(),n);YN(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=sd(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=dS(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=qN(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[t.x,t.y];f[c]+=a[c],f[c]=Ke(l[1],f[c]),f[c]=Ie(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:d[c]}},e})(fS);function qN(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var Ree={line:function(r,e,t,a){var n=pS([e,a[0]],[e,a[1]],KN(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t,a,n,i){var o=gS(r,n,i),s=a[1]-a[0],l=mS(e,t,o),u=l[0],c=l[1];return{type:"Rect",shape:XN([u,a[0]],[c-u,s],KN(r))}}};function KN(r){return r.dim==="x"?0:1}var Oee=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:H.color.border,width:1,type:"dashed"},shadowStyle:{color:H.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:H.color.neutral00,padding:[5,7,5,7],backgroundColor:H.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:H.color.accent40,throttle:40}},e})(Ne),Vn=De(),Vee=k;function jN(r,e,t){if(!Ve.node){var a=e.getZr();Vn(a).records||(Vn(a).records={}),Bee(a,e);var n=Vn(a).records[r]||(Vn(a).records[r]={});n.handler=t}}function Bee(r,e){if(Vn(r).initialized)return;Vn(r).initialized=!0,t("click",Me(yS,"click")),t("mousemove",Me(yS,"mousemove")),t("mousewheel",Me(yS,"mousewheel")),t("globalout",Gee);function t(a,n){r.on(a,function(i){var o=Fee(e);Vee(Vn(r).records,function(s){s&&n(s,i,o.dispatchAction)}),zee(o.pendings,e)})}}function zee(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function Gee(r,e,t){r.handler("leave",null,t)}function yS(r,e,t,a){e.handler(r,t,a)}function Fee(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function _S(r,e){if(!Ve.node){var t=e.getZr(),a=(Vn(t).records||{})[r];a&&(Vn(t).records[r]=null)}}var Hee=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";jN("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})})},e.prototype.remove=function(t,a){_S("axisPointer",a)},e.prototype.dispose=function(t,a){_S("axisPointer",a)},e.type="axisPointer",e})(st);function QN(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Ki(i,r);if(o==null||o<0||Y(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(K(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var JN=De();function $ee(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||ie(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){np(n)&&(n=QN({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=np(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||np(n),h={},v={},d={list:[],map:{}},p={showPointer:Me(Wee,v),showTooltip:Me(Yee,d)};k(s.coordSysMap,function(m,_){var S=l||m.containPoint(n);k(s.coordSysAxesInfo[_],function(x,b){var w=x.axis,C=Kee(u,x);if(!f&&S&&(!u||C)){var E=C&&C.value;E==null&&!l&&(E=w.pointToData(n)),E!=null&&eP(x,E,p,!1,h)}})});var g={};return k(c,function(m,_){var S=m.linkGroup;S&&!v[_]&&k(S.axesInfo,function(x,b){var w=v[b];if(x!==m&&w){var C=w.value;S.mapper&&(C=m.axis.scale.parse(S.mapper(C,tP(x),tP(m)))),g[m.key]=C}})}),k(g,function(m,_){eP(c[_],m,p,!0,h)}),Xee(v,c,h),Zee(d,n,r,o),qee(c,o,t),h}}function eP(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=Uee(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&U(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function Uee(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return k(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,t);h=v.dataIndices,f=v.nestestValue}else{if(h=l.indicesOfNearest(a,c[0],r,t.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(Ir(f)){var d=r-f,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=f,i.length=0),k(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function Wee(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function Yee(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=Pc(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function Xee(r,e,t){var a=t.axesInfo=[];k(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function Zee(r,e,t,a){if(np(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function qee(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=JN(a)[n]||{},o=JN(a)[n]={};k(r,function(c,f){var h=c.axisPointerModel.option;h.status==="show"&&c.triggerEmphasis&&k(h.seriesDataIndices,function(v){o[v.seriesIndex+"|"+v.dataIndex]=v})});var s=[],l=[];function u(c){return{seriesIndex:c.seriesIndex,dataIndex:c.dataIndex}}k(i,function(c,f){!o[f]&&l.push(u(c))}),k(o,function(c,f){!i[f]&&s.push(u(c))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Kee(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function tP(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function np(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function nf(r){es.registerAxisPointerClass("CartesianAxisPointer",Pee),r.registerComponentModel(Oee),r.registerComponentView(Hee),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Y(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=_X(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$ee)}function jee(r){Ae(pM),Ae(nf)}var Qee=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),c=l.getOtherAxis(s).getExtent(),f=s.dataToCoord(a),h=i.get("type");if(h&&h!=="none"){var v=vS(i),d=ete[h](s,l,f,u,c,i.get("seriesDataIndices"),i.ecModel);d.style=v,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=Jee(a,n,i,l,p);UN(t,n,i,o,g)},e})(fS);function Jee(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var h=ft();Yn(h,h,s),Ca(h,h,[a.cx,a.cy]),u=da([o,-n],h);var v=e.getModel("axisLabel").get("rotate")||0,d=Sr.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,m=a.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var ete={line:function(r,e,t,a,n){return r.dim==="angle"?{type:"Line",shape:pS(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a,n,i,o){var s=Math.PI/180,l=gS(r,i,o),u;if(r.dim==="angle")u=ZN(e.cx,e.cy,n[0],n[1],(-t-l/2)*s,(-t+l/2)*s);else{var c=mS(t,a,l),f=c[0],h=c[1];u=ZN(e.cx,e.cy,f,h,0,Math.PI*2)}return{type:"Sector",shape:u}}},xa="polar",rP=xa,tte=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type=xa,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(Ne),SS=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",mt).models[0]},e.type="polarAxis",e})(Ne);kt(SS,dc);var rte=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(SS),ate=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(SS),ip=(function(r){z(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e})(ma);ip.prototype.dataToRadius=ma.prototype.dataToCoord,ip.prototype.radiusToData=ma.prototype.coordToData;var nte=De(),op=(function(r){z(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=Qf(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=nte(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},e})(ma);op.prototype.dataToAngle=ma.prototype.dataToCoord,op.prototype.angleToData=ma.prototype.coordToData;var aP=["radius","angle"],ite=(function(){function r(e){this.dimensions=aP,this.type=xa,this.cx=0,this.cy=0,this._radiusAxis=new ip,this._angleAxis=new op,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t,a){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],a)},r.prototype.pointToData=function(e,t,a){a=a||[];var n=this.pointToCoord(e);return a[0]=this._radiusAxis.radiusToData(n[0],t),a[1]=this._angleAxis.angleToData(n[1],t),a},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(e,t){t=t||[];var a=e[0],n=e[1]/180*Math.PI;return t[0]=Math.cos(n)*a+this.cx,t[1]=-Math.sin(n)*a+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,h=this.r,v=this.r0;return h!==v&&f-o<=h*h&&f+o>=v*v},x:this.cx-a[1],y:this.cy-a[1],width:a[1]*2,height:a[1]*2}},r.prototype.convertToPixel=function(e,t,a){var n=nP(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=nP(t);return n===this?this.pointToData(a):null},r})();function nP(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function ote(r,e,t){var a=e.get("center"),n=Nt(e,t).refContainer;r.cx=ee(a[0],n.width)+n.x,r.cy=ee(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:Y(s)||(s=[0,s]);var l=[ee(s[0],o),ee(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function ste(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(Fo(a,wl),Fo(n,wl),Cl(a),Cl(n),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function lte(r){return r.mainType==="angleAxis"}function iP(r,e){var t;if(r.type=Bv(e),r.scale=cc(e,r.type,!1),r.onBand=vc(r.scale,e),r.inverse=e.get("inverse"),lte(e)){r.inverse=r.inverse!==e.get("clockwise");var a=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:a+(r.inverse?-360:360);r.setExtent(a,n)}e.axis=r,r.model=e}var ute={dimensions:aP,create:function(r,e){var t=[];return r.eachComponent(rP,function(a,n){var i=new ite(n+"");i.update=ste;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");iP(o,l),iP(s,u),ote(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")===xa){var n=a.getReferringComponents(rP,mt).models[0];if(process.env.NODE_ENV!=="production"&&!n)throw new Error('Polar "'+Ft(a.get("polarIndex"),a.get("polarId"),0)+'" not found');var i=a.coordinateSystem=n.coordinateSystem;i&&(Go(i.getRadiusAxis(),a,xa),Go(i.getAngleAxis(),a,xa))}}),t}},cte=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sp(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function lp(r){var e=r.getRadiusAxis();return e.inverse?0:1}function oP(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var fte=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=[];k(n.getViewLabels(),function(c){if(!c.tick.offInterval){c=he(c);var f=n.scale;c.coord=n.dataToCoord(xl(f,c.tick)),u.push(c)}}),oP(u),oP(s),k(cte,function(c){t.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&hte[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(es),hte={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=lp(t),f=c?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?h=new _o[v]({shape:{cx:t.cx,cy:t.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new ku({shape:{cx:t.cx,cy:t.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[lp(t)],u=K(a,function(c){return new Ct({shape:sp(t,[l,l+s],c.coord)})});r.add(Zr(u,{style:me(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[lp(t)],c=[],f=0;f<n.length;f++)for(var h=0;h<n[f].length;h++)c.push(new Ct({shape:sp(t,[u,u+l],n[f][h].coord)}));r.add(Zr(c,{style:me(s.getModel("lineStyle").getLineStyle(),me(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,a,n,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");k(o,function(f,h){var v=l,d=f.tick.value,p=i[lp(t)],g=t.coordToPoint([p+u,f.coord]),m=t.cx,_=t.cy,S=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",x=Math.abs(g[1]-_)/p<.3?"middle":g[1]>_?"top":"bottom";if(s&&s[d]){var b=s[d];de(b)&&b.textStyle&&(v=new ze(b.textStyle,l,l.ecModel))}var w=new Fe({silent:Sr.isLabelSilent(e),style:at(v,{x:g[0],y:g[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:S,verticalAlign:x})});if(r.add(w),Tn({el:w,componentModel:e,itemName:f.formattedLabel,formatterParamsExtra:{isTruncated:function(){return w.isTruncated},value:f.rawLabel,tickIndex:h}}),c){var C=Sr.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=f.rawLabel,be(w).eventData=C}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<a.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Ct({shape:sp(t,i,a[f].coord)}))}for(var f=0;f<c.length;f++)r.add(Zr(c[f],{style:me({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new Ct({shape:sp(t,i,n[u][c].coord)}));r.add(Zr(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,a,n,i){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,h=-a[0].coord*f,v=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=e.get("clockwise"),g=1,m=a.length;g<=m;g++){var _=g===m?a[0].coord:a[g].coord,S=u++%l.length;c[S]=c[S]||[],c[S].push(new ar({shape:{cx:t.cx,cy:t.cy,r0:v,r:d,startAngle:h,endAngle:-_*f,clockwise:p},silent:!0})),h=-_*f}for(var g=0;g<c.length;g++)r.add(Zr(c[g],{style:me({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},vte=["splitLine","splitArea","minorSplitLine"],dte=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,o=this._axisGroup=new ge;this.group.add(o);var s=t.axis,l=s.polar,u=l.getAngleAxis(),c=s.getTicksCoords(),f=s.getMinorTicksCoords(),h=u.getExtent()[0],v=s.getExtent(),d=gte(l,t,h),p=new Sr(t,n,d);p.build(),o.add(p.group),Iu(i,o,t),k(vte,function(g){t.get([g,"show"])&&!s.scale.isBlank()&&pte[g](this.group,t,l,h,v,c,f)},this)}},e.type="radiusAxis",e})(es),pte={splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=t.getAngleAxis(),f=Math.PI/180,h=c.getExtent(),v=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new _o[v]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[p].coord,0),startAngle:-h[0]*f,endAngle:-h[1]*f,clockwise:c.inverse}}))}for(var p=0;p<d.length;p++)r.add(Zr(d[p],{style:me({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,a,n,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new wn({shape:{cx:t.cx,cy:t.cy,r:o[c][f].coord}}));r.add(Zr(u,{style:me({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,a,n,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new ar({shape:{cx:t.cx,cy:t.cy,r0:f,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[h].coord}for(var h=0;h<c.length;h++)r.add(Zr(c[h],{style:me({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function gte(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var mte=zs();function sP(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}var yte=Mt(Qa,_te);function _te(r){var e=Jo(Qa,xa);b0(r,e,function(t){process.env.NODE_ENV!=="production"&&Z(t instanceof op||t instanceof ip);var a=xte(t,Qa),n={};zo(t,e,function(i){Ste(t,i,a,n)})})}function Ste(r,e,t,a){var n=e.getData(),i=sP(e),o=t[i],s=o.offset,l=o.width,u=e.coordinateSystem;process.env.NODE_ENV!=="production"&&Z(u.type===xa);var c=u.getOtherAxis(r),f=u.cx,h=u.cy,v=e.get("barMinHeight")||0,d=e.get("barMinAngle")||0;a[i]=a[i]||[];for(var p=n.mapDimension(c.dim),g=n.mapDimension(r.dim),m=di(n,p),_=r.dim!=="radius"||!e.get("roundCap",!0),S=c.dataToCoord(TA(c)),x=0,b=n.count();x<b;x++){var w=n.get(p,x),C=n.get(g,x),E=w>=0?"p":"n",T=S;m&&(a[i][C]||(a[i][C]={p:S,n:S}),T=a[i][C][E]);var D=void 0,A=void 0,I=void 0,M=void 0;if(c.dim==="radius"){var L=c.dataToCoord(w)-S,N=r.dataToCoord(C);dt(L)<v&&(L=(L<0?-1:1)*v),D=T,A=T+L,I=N-s,M=I-l,m&&(a[i][C][E]=A)}else{var R=c.dataToCoord(w,_)-S,P=r.dataToCoord(C);dt(R)<d&&(R=(R<0?-1:1)*d),D=P+s,A=D+l,I=T,M=T+R,m&&(a[i][C][E]=M)}n.setItemLayout(x,{cx:f,cy:h,r0:D,r:A,startAngle:-I*nh/180,endAngle:-M*nh/180,clockwise:I>=M})}}function xte(r,e){var t=Jo(e,xa),a=Qt(r,{fromStat:{key:t},min:1}).w,n=a,i=0,o="20%",s="30%",l={};zo(r,t,function(g){var m=sP(g);l[m]||i++,l[m]=l[m]||{width:0,maxWidth:0};var _=ee(g.get("barWidth"),a),S=ee(g.get("barMaxWidth"),a),x=g.get("barGap"),b=g.get("barCategoryGap");_&&!l[m].width&&(_=Ke(n,_),l[m].width=_,n-=_),S&&(l[m].maxWidth=S),x!=null&&(s=x),b!=null&&(o=b)});var u={},c=ee(o,a),f=ee(s,1),h=(n-c)/(i+(i-1)*f);h=Ie(h,0),k(l,function(g,m){var _=g.maxWidth;_&&_<h&&(_=Ke(_,n),g.width&&(_=Ke(_,g.width)),n-=_,g.width=_,i--)}),h=(n-c)/(i+(i-1)*f),h=Ie(h,0);var v=0,d;k(l,function(g,m){g.width||(g.width=h),d=g,v+=g.width*(1+f)}),d&&(v-=d.width*f);var p=-v/2;return k(l,function(g,m){u[m]=u[m]||{offset:p,width:g.width},p+=g.width*(1+f)}),u}function bte(r,e){mte(r,function(){var t=Jo(e,xa);CA(r,t,e,xa),$v(t,ld(t))})}var wte={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},Cte={splitNumber:5},Tte=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(st);function Ete(r){Ae(nf),es.registerAxisPointerClass("PolarAxisPointer",Qee),r.registerCoordinateSystem("polar",ute),r.registerComponentModel(tte),r.registerComponentView(Tte),Il(r,"angle",rte,wte),Il(r,"radius",ate,Cte),r.registerComponentView(fte),r.registerComponentView(dte),r.registerLayout(yte),bte(r,Qa)}function xS(r,e){e=e||{};var t=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};n.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=f[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ft(e.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var h=r.get(["axisLabel","rotate"]);return n.labelRotate=i==="top"?-h:h,n.z2=1,n}var Dte=["splitArea","splitLine","breakArea"],kte=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new ge;var l=xS(t),u=new Sr(t,n,l);u.build(),o.add(this._axisGroup),o.add(u.group),k(Dte,function(c){t.get([c,"show"])&&Ate[c](this,this.group,this._axisGroup,t,n)},this),Iu(s,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){fM(this)},e.type="singleAxis",e})(es),Ate={splitLine:function(r,e,t,a,n){var i=a.axis;if(!i.scale.isBlank()){var o=a.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),c=a.coordinateSystem.getRect(),f=i.isHorizontal(),h=[],v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=0;m<d.length;++m){var _=i.toGlobalCoord(d[m].coord);f?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var S=new Ct({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});Ks(S.shape,u);var x=v++%l.length;h[x]=h[x]||[],h[x].push(S)}for(var b=s.getLineStyle(["color"]),m=0;m<h.length;++m)e.add(Zr(h[m],{style:me({stroke:l[m%l.length]},b),silent:!0}))}},splitArea:function(r,e,t,a,n){cM(r,t,a,a)},breakArea:function(r,e,t,a,n){var i=Ac(),o=a.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,a,a.coordinateSystem.getRect(),n)}},Mte=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,a){return this.coordinateSystem.pointToData(t)[0]},e})(ma),lP=["single"],Ite=(function(){function r(e,t,a){this.type=gd,this.dimension="single",this.dimensions=lP,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=this.dimension,i=Bv(e),o=new Mte(n,cc(e,i,!0),[0,0],i,e.get("position"));o.onBand=vc(o.scale,e),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},r.prototype.update=function(e,t){var a=this._axis;Fo(a,wl),Cl(a)},r.prototype.resize=function(e,t){var a=Nt(e,t).refContainer;this._rect=ct(e.getBoxLayoutParams(),a),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,a=t.isHorizontal(),n=a?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),this._updateAxisTransform(t,a?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var a=e.getExtent(),n=a[0]+a[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return n-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(e[n.orient==="horizontal"?0:1])),a},r.prototype.dataToPoint=function(e,t,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o=n.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+e)),a[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(e,t,a){var n=uP(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=uP(t);return n===this?this.pointToData(a):null},r})();function uP(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Lte(r,e){var t=[];return r.eachComponent(E1,function(a,n){var i=new Ite(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")===MX){var n=a.getReferringComponents(E1,mt).models[0],i=a.coordinateSystem=n&&n.coordinateSystem;i&&Go(i.getAxis(),a,gd)}}),t}var Nte={create:Lte,dimensions:lP},cP=["x","y"],Pte=["width","height"],Rte=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=up(s),c=cp(l,u),f=cp(l,1-u),h=l.dataToPoint(a)[0],v=i.get("type");if(v&&v!=="none"){var d=vS(i),p=Ote[v](s,h,c,f,i.get("seriesDataIndices"),i.ecModel);p.style=d,t.graphicKey=p.type,t.pointer=p}var g=xS(n);YN(a,t,g,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=xS(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=dS(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=up(o),u=cp(s,l),c=[t.x,t.y];c[l]+=a[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=cp(s,1-l),h=(f[1]+f[0])/2,v=[h,h];return v[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e})(fS),Ote={line:function(r,e,t,a){var n=pS([e,a[0]],[e,a[1]],up(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t,a,n,i){var o=gS(r,n,i),s=a[1]-a[0],l=mS(e,t,o),u=l[0],c=l[1];return{type:"Rect",shape:XN([u,a[0]],[c-u,s],up(r))}}};function up(r){return r.isHorizontal()?0:1}function cp(r,e){var t=r.getRect();return[t[cP[e]],t[cP[e]]+t[Pte[e]]]}var Vte=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(st);function Bte(r){Ae(nf),es.registerAxisPointerClass("SingleAxisPointer",Rte),r.registerComponentView(Vte),r.registerComponentView(kte),r.registerComponentModel(md),Il(r,"single",md,md.defaultOption),r.registerCoordinateSystem("single",Nte)}var zte=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=To(t);r.prototype.init.apply(this,arguments),fP(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),fP(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:H.color.axisLine,width:1,type:"solid"}},itemStyle:{color:H.color.neutral00,borderWidth:1,borderColor:H.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:H.size.s,color:H.color.secondary},monthLabel:{show:!0,position:"start",margin:H.size.s,align:"center",formatter:null,color:H.color.secondary},yearLabel:{show:!0,position:null,margin:H.size.xl,formatter:null,color:H.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(Ne);function fP(r,e){var t=r.cellSize,a;Y(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=K([0,1],function(i){return eH(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Ua(r,e,{type:"box",ignoreSize:n})}var Gte=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToCalendarLayout([u],!1).tl,f=new Le({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});n.add(f)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=a.start,h=0;f.time<=a.end.time;h++){d(f.formatedDate),h===0&&(f=s.getDateInfo(a.start.y+"-"+a.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Kt({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return Q(t)&&t?TT(t,a):ce(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,v={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},m=this._formatterLabel(p,g),_=new Fe({z2:30,style:at(o,{text:m}),silent:o.get("silent")});_.attr(this._yearTextPositionControl(_,v[l],n,l,s)),i.add(_)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],c=t[1];return n==="horizontal"?(c=c+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Q(s))&&(s&&(a=iy(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",p=o.get("silent"),g=0;g<f[h].length-1;g++){var m=f[h][g].slice(),_=this._firstDayOfMonth[g];if(d){var S=this._firstDayPoints[g];m[v]=(S[v]+f[0][g+1][v])/2}var x=o.get("formatter"),b=s[+_.m-1],w={yyyy:_.y,yy:(_.y+"").slice(2),MM:_.m,M:+_.m,nameMap:b},C=this._formatterLabel(x,w),E=new Fe({z2:30,style:U(at(o,{text:C}),this._monthTextPositionControl(m,d,n,u,l)),silent:p});i.add(E)}}},e.prototype._weekTextPositionControl=function(t,a,n,i,o){var s="center",l="middle",u=t[0],c=t[1],f=n==="start";return a==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),h=l.getFirstDayOfWeek();if(!c||Q(c)){c&&(a=iy(c)||a);var v=a.get(["time","dayOfWeekShort"]);c=v||K(a.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=ee(f,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,f=-f);for(var g=s.get("silent"),m=0;m<7;m++){var _=l.getNextNDay(d,m),S=l.dataToCalendarLayout([_.time],!1).center,x=m;x=Math.abs((m+h)%7);var b=new Fe({z2:30,style:U(at(s,{text:c[x]}),this._weekTextPositionControl(S,i,u,f,p)),silent:g});o.add(b)}}},e.type="calendar",e})(st),bS=864e5,Fte=(function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,a)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=Zi(e);var t=e.getFullYear(),a=e.getMonth()+1,n=a<10?"0"+a:""+a,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];k([0,1],function(f){c(i,f)&&(o[n[f]]=i[f]*s[f])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=ct(o,l);k([0,1],function(f){c(i,f)||(i[f]=u[n[f]]/s[f])});function c(f,h){return f[h]!=null&&f[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t,a){a=a||[],Y(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+bS))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(a[0]=this._rect.x+s*this._sw+this._sw/2,a[1]=this._rect.y+l*this._sh+this._sh/2):(a[0]=this._rect.x+l*this._sw+this._sw/2,a[1]=this._rect.y+s*this._sh+this._sh/2),a},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,a){a=a||{};var n=a.rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(e,t);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,pe.copy(i,n),mo(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(e,t){var a=this.dataToPoint(e,t);return{center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,t-1,n):this._getDateByWeeksAndDay(t,a-1,n)},r.prototype.convertToPixel=function(e,t,a){var n=wS(t);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(e,t,a){var n=wS(t);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=wS(t);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(Y(e)&&e.length===1&&(e=e[0]),Y(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return process.env.NODE_ENV!=="production"&&oa("Invalid date range."),e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/bS)-Math.floor(t[0].time/bS)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var c=Math.floor((n+t[0].day+6)/7),f=a?-c+1:c-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:c,nthWeek:f,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachComponent(function(n,i){zu({targetModel:i,coordSysType:"calendar",coordSysProvider:MT})}),a},r.dimensions=["time","value"],r})();function wS(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function Hte(r){r.registerComponentModel(zte),r.registerComponentView(Gte),r.registerCoordinateSystem("calendar",Fte)}var Bn={level:1,leaf:2,nonLeaf:3},zn={none:0,all:1,body:2,corner:3};function CS(r,e,t){var a=e[Te[t]].getCell(r);return!a&&Ge(r)&&r<0&&(a=e[Te[1-t]].getUnitLayoutInfo(t,Math.round(r))),a}function hP(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function vP(r,e,t,a,n){dP(r[0],e,n,t,a,0),dP(r[1],e,n,t,a,1)}function dP(r,e,t,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],s=Y(o)?o:[o],l=s.length,u=!!t;if(l>=1?(pP(r,e,s,u,n,i,0),l>1&&pP(r,e,s,u,n,i,l-1)):(process.env.NODE_ENV!=="production"&&e&&e.push('Should be like [["x1", "x2"], ["y1", "y2"]], or ["x1", "y1"], rather than empty.'),r[0]=r[1]=NaN),u){var c=-n[Te[1-i]].getLocatorCount(i),f=n[Te[i]].getLocatorCount(i)-1;t===zn.body?c=Ie(0,c):t===zn.corner&&(f=Ke(-1,f)),f<c&&(c=f=NaN),Gt(r[0])&&(r[0]=c),Gt(r[1])&&(r[1]=f),r[0]=Ie(Ke(r[0],f),c),r[1]=Ie(Ke(r[1],f),c)}}function pP(r,e,t,a,n,i,o){var s=CS(t[o],n,i);if(!s){process.env.NODE_ENV!=="production"&&!a&&e&&e.push("Can not find cell by coord["+i+"]["+o+"]."),r[0]=r[1]=NaN;return}var l=s.id[Te[i]],u=l,c=Yte(s);c&&(u+=c.span[Te[i]]-1),r[0]=Ke(r[0],l,u),r[1]=Ie(r[1],l,u)}function fp(r,e){return Gt(r[e][0])||Gt(r[e][1])}function gP(r,e,t,a){e=e||$te;for(var n=0;n<a;n++)e[n]=!1;for(;;){for(var i=!1,n=0;n<a;n++){var o=t[n];!e[n]&&o.cellMergeOwner&&Ute(r,o.locatorRange)&&(e[n]=!0,i=!0)}if(!i)break}}var $te=[];function Ute(r,e){return!mP(r[0],e[0])||!mP(r[1],e[1])?!1:(r[0][0]=Ke(r[0][0],e[0][0]),r[0][1]=Ie(r[0][1],e[0][1]),r[1][0]=Ke(r[1][0],e[1][0]),r[1][1]=Ie(r[1][1],e[1][1]),!0)}function mP(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function yP(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function Wte(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}function _P(r,e,t,a){var n=CS(e[a][0],t,a),i=CS(e[a][1],t,a);r[Te[a]]=r[_t[a]]=NaN,n&&i&&(r[Te[a]]=n.xy,r[_t[a]]=i.xy+i.wh-n.xy)}function of(r,e,t,a){return r[Te[e]]=t,r[Te[1-e]]=a,r}function Yte(r){return r&&(r.type===Bn.leaf||r.type===Bn.nonLeaf)?r:null}function hp(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var SP=(function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=Xte(e);var a=t.get("data",!0),n=t.get("length",!0);if(a!=null&&!Y(a)&&(process.env.NODE_ENV!=="production"&&Be("Illegal echarts option - matrix."+this.dim+".data must be an array if specified."),a=[]),a)this._initByDimModelData(a);else if(n!=null){a=Array(n);for(var i=0;i<n;i++)a[i]=null;this._initByDimModelData(a)}else this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,a=t._cells,n=t._levels,i=[],o=0;t._leavesCount=s(e,0,0),l();return;function s(u,c,f){var h=0;return u&&k(u,function(v,d){var p=!1,g;Q(v)?g={value:v}:de(v)?(g=v,v.value!=null&&!Q(v.value)&&(p=!0,g={value:null})):(g={value:null},v!=null&&(p=!0)),p&&process.env.NODE_ENV!=="production"&&Be("Illegal echarts option - matrix."+t.dim+".data["+d+"] must be `string | {value: string}`.");var m={type:Bn.nonLeaf,ordinal:NaN,level:f,firstLeafLocator:c,id:new _e,span:of(new _e,t.dimIdx,1,1),option:g,xy:NaN,wh:NaN,dim:t,rect:hp()};o++,(i[c]||(i[c]=[])).push(m),n[f]||(n[f]={type:Bn.level,xy:NaN,wh:NaN,option:null,id:new _e,dim:t});var _=s(g.children,c,f+1),S=Math.max(1,_);m.span[Te[t.dimIdx]]=S,h+=S,c+=S}),h}function l(){for(var u=[];a.length<o;)for(var c=0;c<i.length;c++){var f=i[c].pop();if(f){f.ordinal=u.length;var h=f.option.value;u.push(h),a.push(f),t._uniqueValueGen.calcDupBase(h)}}t._uniqueValueGen.ensureValueUnique(u,a);var v=t._ordinalMeta=new ic({categories:u,needCollect:!1,deduplication:!1});t._scale=new uc({ordinalMeta:v});for(var d=0;d<t._leavesCount;d++){var p=t._cells[d];p.type=Bn.leaf,p.span[Te[1-t.dimIdx]]=t._levels.length-p.level}t._initCellsId(),t._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:Bn.level,xy:NaN,wh:NaN,option:null,id:new _e,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new ic({needCollect:!0,deduplication:!0,onCollect:function(a,n){var i=e._cells[n]={type:Bn.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new _e,span:of(new _e,e.dimIdx,1,1),option:{value:a+""},xy:NaN,wh:NaN,dim:e,rect:hp()};e._leavesCount++,e._setCellId(i)}});e._scale=new uc({ordinalMeta:t})},r.prototype._setCellId=function(e){var t=this._levels.length,a=this.dimIdx;of(e.id,a,e.firstLeafLocator,e.level-t)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;k(this._cells,function(a){of(a.id,t,a.firstLeafLocator,a.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,a=this._model.get("levels",!0);a=Y(a)?a:[],k(this._levels,function(n,i){of(n.id,t,0,i-e),n.option=a[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,a,n){if(e=e||new ti,t===this.dimIdx){var i=this._leavesCount,o=a!=null?Math.max(0,a):0;n=n!=null?Math.min(n,i):i,e.reset(this._cells,o,o+n)}else{var i=this._levels.length,o=a!=null?Math.max(0,a+i):0;n=n!=null?Math.min(n,i):i,e.reset(this._levels,o,o+n)}return e},r.prototype.resetCellIterator=function(e){return(e||new ti).reset(this._cells,0)},r.prototype.resetLevelIterator=function(e){return(e||new ti).reset(this._levels,0)},r.prototype.getLayout=function(e,t,a){var n=this.getUnitLayoutInfo(t,a);e[Te[t]]=n?n.xy:NaN,e[_t[t]]=n?n.wh:NaN},r.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},r.prototype.getCell=function(e){var t=this._scale.parse(e);return Gt(t)?void 0:this._cells[t]},r.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r})();function Xte(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),a=0;function n(s){var l;s!=null&&(l=s.match(t))&&(a=Ie(a,+l[1]+1))}function i(){return""+e+a++}function o(s,l){for(var u=re(),c=0;c<s.length;c++){var f=s[c];(f==null||u.get(f)!=null)&&(s[c]=f=i(),l[c].option=me({value:f},l[c].option)),u.set(f,!0)}}return{calcDupBase:n,ensureValueUnique:o}}var xP=(function(){function r(e,t,a){this._model=t,this._dims=a,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=re(),a()),t;function a(){var i=[],o=e._model.getShallow("data");o&&!Y(o)&&(process.env.NODE_ENV!=="production"&&Be("matrix."+o+".data must be an array if specified."),o=null),k(o,function(d,p){if(!de(d)||!Y(d.coord)){process.env.NODE_ENV!=="production"&&Be("Illegal matrix."+e._kind+".data["+p+"], must be a {coord: [...], ...}");return}var g=hP([]),m=null;if(process.env.NODE_ENV!=="production"&&(m=[]),vP(g,m,d.coord,e._dims,d.coordClamp?zn[e._kind]:zn.none),fp(g,0)||fp(g,1)){process.env.NODE_ENV!=="production"&&Be("Can not determine cells by option matrix."+e._kind+".data["+p+"]: "+(""+m.join(" ")));return}var _=d&&d.mergeCells,S={id:new _e,span:new _e,locatorRange:g,option:d,cellMergeOwner:_};yP(S,g),i.push(S)});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var c=u.locatorRange;gP(c,s,i,l);for(var f=0;f<l;f++)s[f]&&(i[f].cellMergeOwner=!1);if(c[0][0]!==u.id.x||c[1][0]!==u.id.y){u.cellMergeOwner=!1;var h=U({},u.option);h.coord=null;var v={id:new _e,span:new _e,locatorRange:c,option:h,cellMergeOwner:!0};yP(v,c),i.push(v)}}}k(i,function(d){var p=n(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=hp(),e._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var m=0;m<d.span.x;m++){var _=n(d.id.x+m,d.id.y+g);_.option=d.option,d.cellMergeOwner&&(_.inSpanOf=p)}})}function n(i,o){var s=bP(i,o),l=t.get(s);return l||(l=t.set(s,{id:new _e(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(e){return this._ensureCellMap().get(bP(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!fp(e,0)&&!fp(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){TS[0]=e[0][0],TS[1]=e[1][0];var t=this.getCell(TS),a=t&&t.inSpanOf;if(a){Wte(e,a.locatorRange);return}}var n=this._cellMergeOwnerList;gP(e,null,n,n.length)},r})(),TS=[];function bP(r,e){return r+"|"+e}var ES={show:!0,color:H.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function DS(r){return{color:"none",borderWidth:1,borderColor:r?"none":H.color.borderTint}}var wP={show:!0,label:ES,itemStyle:DS(!1),silent:void 0,dividerLineStyle:{width:1,color:H.color.border}},Zte={label:ES,itemStyle:DS(!1),silent:void 0},qte={label:ES,itemStyle:DS(!0),silent:void 0},Kte={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:wP,y:wP,body:Zte,corner:qte,backgroundStyle:{color:"none",borderColor:H.color.axisLine,borderWidth:1},triggerEvent:!1},jte=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this._dimModels={x:new CP(this.get("x",!0)||{}),y:new CP(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var a=t.x.dim=new SP("x",t.x),n=t.y.dim=new SP("y",t.y),i={x:a,y:n};this._body=new xP("body",new ze(this.getShallow("body")),i),this._corner=new xP("corner",new ze(this.getShallow("corner")),i)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=Kte,e})(Ne),CP=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e})(ze),vp=Math.round,Qte=0,Jte=99,ere={normal:25,special:100},tre={normal:50,special:125},rre=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a){this.group.removeAll();var n=this.group,i=t.coordinateSystem,o=i.getRect(),s=t.getDimensionModel("x"),l=t.getDimensionModel("y"),u=s.dim,c=l.dim;are(n,t,a),nre(n,t,u,c,a);var f=t.getShallow("borderZ2",!0),h=oe(f,Jte),v=h-1,d=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=kS(o.clone(),d,Qte),m=kS(o.clone(),p,h);g.silent=!0,m.silent=!0,n.add(g),n.add(m);var _=u.getUnitLayoutInfo(0,0),S=c.getUnitLayoutInfo(1,0);_&&S&&(u.shouldShow()&&n.add(EP({x1:o.x,y1:S.xy,x2:o.x+o.width,y2:S.xy},s.getModel("dividerLineStyle").getLineStyle(),v)),c.shouldShow()&&n.add(EP({x1:_.xy,y1:o.y,x2:_.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),v)))},e.type="matrix",e})(st);function are(r,e,t){a(0),a(1);function a(n){var i=e.getDimensionModel(Te[n]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=e.getShallow("tooltip",!0),c=[],f=o.resetCellIterator();f.next();){var h=f.item,v={};pe.copy(v,h.rect),Hn(c,h.id.x,h.id.y),TP(c,e,r,t,h.option,s,l,i,v,h.option.value,tre,u,n===0?"x":"y")}}}function nre(r,e,t,a,n){i("body",e.getBody(),t,a),t.shouldShow()&&a.shouldShow()&&i("corner",e.getCorner(),a,t);function i(o,s,l,u){var c=new ze(e.getShallow(o,!0)),f=c.getModel("itemStyle"),h=c.getModel("label"),v=new ti,d=new ti,p=[],g=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(v,0);v.next();){var m=v.item,_=d.item;Hn(p,m.id.x,_.id.y);var S=s.getCell(p);if(!(S&&S.inSpanOf&&S.inSpanOf!==S)){var x={};S&&S.span?pe.copy(x,S.spanRect):(m.dim.getLayout(x,0,p[0]),_.dim.getLayout(x,1,p[1]));var b=S?S.option:null;TP(p,e,r,n,b,f,h,c,x,b?b.value:null,ere,g,o)}}}}function TP(r,e,t,a,n,i,o,s,l,u,c,f,h){var v;dp.option=n?n.itemStyle:null,dp.parentModel=i,Ul.option=n,Ul.parentModel=s;var d=oe(Ul.getShallow("z2"),n&&n.itemStyle?c.special:c.normal),p=f&&f.show,g=kS(l,dp.getItemStyle(),d);t.add(g);var m=Ul.get("cursor");m!=null&&g.attr("cursor",m);var _;if(u!=null){var S=u+"";gs.option=n?n.label:null,gs.parentModel=o,gs.ecModel=a;var x=gs.getShallow("formatter");if(x){var b={componentType:"matrix",componentIndex:e.componentIndex,name:S,value:u,coord:r.slice(),$vars:["name","value","coord"]};if(Q(x))S=TT(x,b);else if(ce(x)){var w=x(b);w!=null&&(S=w+"")}}if(Vt(g,{normal:gs},{defaultText:S,autoOverflowArea:!0,layoutRect:he(g.shape)}),_=g.getTextContent(),_){_.z2=d+1;var C=_.style;if(C&&C.overflow&&C.overflow!=="none"&&C.lineOverflow){var E={};pe.copy(E,l),mo(E,(((v=g.style)===null||v===void 0?void 0:v.lineWidth)||0)/2,!0,!0),g.updateInnerText(),_.getLocalTransform(pp),Hr(pp,pp),pe.applyTransform(E,E,pp),_.setClipPath(new Le({shape:E}))}}Tn({el:g,componentModel:e,itemName:S,itemTooltipOption:f,formatterParamsExtra:{xyLocator:r.slice()}})}var T=e.get("triggerEvent",!0);if(_){var D=gs.get("silent");D==null&&(D=!(T||p)),_.silent=D,_.ignoreHostSilent=!0}var A=Ul.get("silent");if(A==null&&(A=!g.style||g.style.fill==="none"||!g.style.fill),g.silent=A,T&&g){var I={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:h,name:_&&_.style?_.style.text:void 0,value:u,coord:r.slice()};be(g).eventData=I}im(Ul),im(dp),im(gs)}var Ul=new ze,dp=new ze,gs=new ze,pp=[];function kS(r,e,t){var a=e.lineWidth;if(a){var n=r.x+r.width,i=r.y+r.height;r.x=Nr(r.x,a,!0),r.y=Nr(r.y,a,!0),r.width=Nr(n,a,!0)-r.x,r.height=Nr(i,a,!0)-r.y}return new Le({shape:r,style:e,z2:t})}function EP(r,e,t){var a=e.lineWidth;return a&&(vp(r.x1*2)===vp(r.x2*2)&&(r.x1=r.x2=Nr(r.x1,a,!0)),vp(r.y1*2)===vp(r.y2*2)&&(r.y1=r.y2=Nr(r.y1,a,!0))),new Ct({shape:r,style:e,silent:!0,z2:t})}var ire=(function(){function r(e,t,a){this.dimensions=r.dimensions,this.type="matrix",this._model=e;var n=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:n.x.dim,y:n.y.dim},this._resize(e,a)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var a=[];return e.eachComponent("matrix",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachComponent(function(n,i){zu({targetModel:i,coordSysType:"matrix",coordSysProvider:MT})}),a},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var a=this._dims,n=this._dimModels,i=this._rect=ct(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});DP(n,a,i,0),DP(n,a,i,1),kP(0,a),kP(1,a),AP(this._model.getBody(),a),AP(this._model.getCorner(),a)},r.prototype.dataToPoint=function(e,t,a){return a=a||[],this.dataToLayout(e,t,sf),a[0]=sf.rect.x+sf.rect.width/2,a[1]=sf.rect.y+sf.rect.height/2,a},r.prototype.dataToLayout=function(e,t,a){var n=this._dims;a=a||{};var i=a.rect=a.rect||{};i.x=i.y=i.width=i.height=NaN;var o=a.matrixXYLocatorRange=hP(a.matrixXYLocatorRange);return Y(e)?(vP(o,null,e,n,oe(t&&t.clamp,zn.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==zn.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!t||t.clamp!==zn.body)&&this._model.getCorner().expandRangeByCellMerge(o)),_P(i,o,n,0),_P(i,o,n,1),a):(process.env.NODE_ENV!=="production"&&Be("Input data must be an array in `convertToLayout`, `convertToPixel`"),a)},r.prototype.pointToData=function(e,t,a){var n=this._dims;return MP(an,0,n,e,t&&t.clamp),MP(an,1,n,e,t&&t.clamp),a=a||[],a[0]=a[1]=NaN,an.y===Jt.inCorner&&an.x===Jt.inBody?IP(an,a,0,n):an.x===Jt.inCorner&&an.y===Jt.inBody?IP(an,a,1,n):(LP(an,a,0,n),LP(an,a,1,n)),a},r.prototype.convertToPixel=function(e,t,a,n){var i=IS(t);return i===this?i.dataToPoint(a,n):void 0},r.prototype.convertToLayout=function(e,t,a,n){var i=IS(t);return i===this?i.dataToLayout(a,n):void 0},r.prototype.convertFromPixel=function(e,t,a,n){var i=IS(t);return i===this?i.pointToData(a,n):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r})(),sf={rect:hp()},gp=new ti,AS=new ti;function DP(r,e,t,a){for(var n=1-a,i=e[Te[a]],o=e[Te[n]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,a);u.next();)u.item.wh=u.item.xy=NaN;for(var c=t[_t[a]],f=i.getLocatorCount(a)+o.getLocatorCount(a),h=new ze,v=o.resetLevelIterator();v.next();)h.option=v.item.option,h.parentModel=r[Te[n]],g(v.item,s?h.get("levelSize"):0);for(var d=new ze,p=i.resetCellIterator();p.next();)p.item.type===Bn.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(C,E){var T=ore(E,a,t);Gt(T)||(C.wh=MS(T,c),c=MS(c-C.wh),f--)}var m=f?c/f:0,_=!f&&c>=1,S=t[Te[a]],x=i.getLocatorCount(a)-1,b=new ti;for(o.resetLayoutIterator(b,a);b.next();)w(b.item);for(i.resetLayoutIterator(b,a);b.next();)w(b.item);function w(C){Gt(C.wh)&&(C.wh=m),C.xy=S,C.id[Te[a]]===x&&!_&&(C.wh=t[Te[a]]+t[_t[a]]-C.xy),S+=C.wh}}function kP(r,e){for(var t=e[Te[r]].resetCellIterator();t.next();){var a=t.item;mp(a.rect,r,a.id,a.span,e),mp(a.rect,1-r,a.id,a.span,e),a.type===Bn.nonLeaf&&(a.xy=a.rect[Te[r]],a.wh=a.rect[_t[r]])}}function AP(r,e){r.travelExistingCells(function(t){var a=t.span;if(a){var n=t.spanRect,i=t.id;mp(n,0,i,a,e),mp(n,1,i,a,e)}})}function mp(r,e,t,a,n){r[_t[e]]=0;var i=t[Te[e]],o=i<0?n[Te[1-e]]:n[Te[e]],s=o.getUnitLayoutInfo(e,t[Te[e]]);if(r[Te[e]]=s.xy,r[_t[e]]=s.wh,a[Te[e]]>1){var l=o.getUnitLayoutInfo(e,t[Te[e]]+a[Te[e]]-1);r[_t[e]]=l.xy+l.wh-s.xy}}function ore(r,e,t){var a=ih(r,t[_t[e]]);return MS(a,t[_t[e]])}function MS(r,e){return Math.max(Math.min(r,oe(e,1/0)),0)}function IS(r){var e=r.matrixModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}var Jt={inBody:1,inCorner:2,outside:3},an={x:null,y:null,point:[]};function MP(r,e,t,a,n){var i=t[Te[e]],o=t[Te[1-e]],s=i.getUnitLayoutInfo(e,i.getLocatorCount(e)-1),l=i.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),c=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,f=r.point[e]=a[e];if(!l&&!c){r[Te[e]]=Jt.outside;return}if(n===zn.body){l?(r[Te[e]]=Jt.inBody,f=Ke(s.xy+s.wh,Ie(l.xy,f)),r.point[e]=f):r[Te[e]]=Jt.outside;return}else if(n===zn.corner){c?(r[Te[e]]=Jt.inCorner,f=Ke(c.xy+c.wh,Ie(u.xy,f)),r.point[e]=f):r[Te[e]]=Jt.outside;return}var h=l?l.xy:c?c.xy+c.wh:NaN,v=u?u.xy:h,d=s?s.xy+s.wh:h;if(f<v){if(!n){r[Te[e]]=Jt.outside;return}f=v}else if(f>d){if(!n){r[Te[e]]=Jt.outside;return}f=d}r.point[e]=f,r[Te[e]]=h<=f&&f<=d?Jt.inBody:v<=f&&f<=h?Jt.inCorner:Jt.outside}function IP(r,e,t,a){var n=1-t;if(r[Te[t]]!==Jt.outside)for(a[Te[t]].resetCellIterator(AS);AS.next();){var i=AS.item;if(NP(r.point[t],i.rect,t)&&NP(r.point[n],i.rect,n)){e[t]=i.ordinal,e[n]=i.id[Te[n]];return}}}function LP(r,e,t,a){if(r[Te[t]]!==Jt.outside){var n=r[Te[t]]===Jt.inCorner?a[Te[1-t]]:a[Te[t]];for(n.resetLayoutIterator(gp,t);gp.next();)if(sre(r.point[t],gp.item)){e[t]=gp.item.id[Te[t]];return}}}function sre(r,e){return e.xy<=r&&r<=e.xy+e.wh}function NP(r,e,t){return e[Te[t]]<=r&&r<=e[Te[t]]+e[_t[t]]}function lre(r){r.registerComponentModel(jte),r.registerComponentView(rre),r.registerCoordinateSystem("matrix",ire)}function ure(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function PP(r,e){var t;return k(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function cre(r,e,t){var a=U({},t),n=r[e],i=t.$action||"merge";if(i==="merge")if(n){if(process.env.NODE_ENV!=="production"){var o=t.type;Z(!o||n.type===o,'Please set $action: "replace" to change `type`')}ke(n,a,!0),Ua(n,a,{ignoreSize:!0}),RT(t,n),yp(t,n),yp(t,n,"shape"),yp(t,n,"style"),yp(t,n,"extra"),t.clipPath=n.clipPath}else r[e]=a;else i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var RP=["transition","enterFrom","leaveTo"],fre=RP.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function yp(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?RP:fre,n=0;n<a.length;n++){var i=a[n];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function hre(r,e){if(r&&(r.hv=e.hv=[PP(e,["left","right"]),PP(e,["top","bottom"])],r.type==="group")){var t=r,a=e;t.width==null&&(t.width=a.width=0),t.height==null&&(t.height=a.height=0)}}var vre=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,a),this.option.elements=n},e.prototype.optionUpdated=function(t,a){var n=this.option,i=(a?n:t).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=mw(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];k(l,function(c,f){var h=c.newOption;process.env.NODE_ENV!=="production"&&Z(de(h)||c.existing,"Empty graphic option definition"),h&&(u.push(h),ure(c,h),cre(o,f,h),hre(o[f],h))},this),n.elements=Ze(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,a,n){k(t,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(Ne),OP={path:null,compoundPath:null,group:ge,image:$t,text:Fe},na=De(),dre=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=re()},e.prototype.render=function(t,a,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var a=t.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");k(a,function(l){var u=At(l.id,null),c=u!=null?n.get(u):null,f=At(l.parentId,null),h=f!=null?n.get(f):i,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&tA(d,v,!!g,!!p)){var m=rA(d,v,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var _=pre(l);process.env.NODE_ENV!=="production"&&c&&Z(h===c.parent,"Changing parent is not supported.");var S=l.$action||"merge",x=S==="merge",b=S==="replace";if(x){var w=!c,C=c;w?C=VP(u,h,l.type,n):(C&&(na(C).isNew=!1),MN(C)),C&&(Jd(C,_,t,{isInit:w}),BP(C,l,o,s))}else if(b){_p(c,l,n,t);var E=VP(u,h,l.type,n);E&&(Jd(E,_,t,{isInit:!0}),BP(E,l,o,s))}else S==="remove"&&(EN(c,l),_p(c,l,n,t));var T=n.get(u);if(T&&p)if(x){var D=T.getTextContent();D?D.attr(p):T.setTextContent(new Fe(p))}else b&&T.setTextContent(new Fe(p));if(T){var A=l.clipPath;if(A){var I=A.type,M=void 0,w=!1;if(x){var L=T.getClipPath();w=!L||na(L).type!==I,M=w?LS(I):L}else b&&(w=!0,M=LS(I));T.setClipPath(M),Jd(M,A,t,{isInit:w}),tp(M,A.keyframeAnimation,t)}var N=na(T);T.setTextConfig(g),N.option=l,gre(T,t,l),Tn({el:T,componentModel:t,itemName:T.name,itemTooltipOption:l.tooltip}),tp(T,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,a){for(var n=t.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],c=0;c<n.length;c++){var f=n[c],h=At(f.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===i,g=na(v),m=na(d);g.width=ee(g.option.width,p?s:m.width)||0,g.height=ee(g.option.height,p?l:m.height)||0}}for(var c=n.length-1;c>=0;c--){var f=n[c],h=At(f.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,m=na(d),_=d===i?{width:s,height:l}:{width:m.width,height:m.height},S={},x=ev(v,f,_,null,{hv:f.hv,boundingMode:f.bounding},S);if(!na(v).isNew&&x){for(var b=f.transition,w={},C=0;C<u.length;C++){var E=u[C],T=S[E];b&&(ds(b)||Ee(b,E)>=0)?w[E]=T:v[E]=T}$e(v,w,t,0)}else v.attr(S)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){_p(n,na(n).option,a,t._lastGraphicModel)}),this._elMap=re()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(st);function LS(r){process.env.NODE_ENV!=="production"&&Z(r,"graphic type MUST be set");var e=ae(OP,r)?OP[r]:Oh(r);process.env.NODE_ENV!=="production"&&Z(e,"graphic type "+r+" can not be found");var t=new e({});return na(t).type=r,t}function VP(r,e,t,a){var n=LS(t);return e.add(n),a.set(r,n),na(n).id=r,na(n).isNew=!0,n}function _p(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){_p(i,e,t,a)}),ep(r,e,a),t.removeKey(na(r).id))}function BP(r,e,t,a){r.isGroup||k([["cursor",Wr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];ae(e,i)?r[i]=oe(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),k(Oe(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=ce(i)?i:null}}),ae(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function pre(r){return r=U({},r),k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(IT),function(e){delete r[e]}),r}function gre(r,e,t){var a=be(r).eventData;!r.silent&&!r.ignore&&!a&&(a=be(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function mre(r){r.registerComponentModel(vre),r.registerComponentView(dre),r.registerPreprocessor(function(e){var t=e.graphic;Y(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var zP=["x","y","radius","angle","single"],yre=De(),_re=["cartesian2d","polar","singleAxis"];function Sre(r){var e=r.get("coordinateSystem");return Ee(_re,e)>=0}function Ai(r){return process.env.NODE_ENV!=="production"&&Z(r),r+"Axis"}function xre(r,e){var t=re(),a=[],n=re();r.eachComponent({mainType:"dataZoom",query:e},function(c){n.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!n.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){n.set(c.uid,!0),a.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=t.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(t.get(f)||t.set(f,[]))[h]=!0})}return a}function GP(r){var e=r.ecModel,t={infoList:[],infoMap:re()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(Ai(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}function FP(r){var e=yre(lE(r));return e.axisProxyMap||(e.axisProxyMap=re())}function Sp(r){if(r)return process.env.NODE_ENV!=="production"&&Z(r.ecModel),FP(r.ecModel).get(r.uid)}function bre(r,e){process.env.NODE_ENV!=="production"&&Z(r.ecModel),FP(r.ecModel).set(r.uid,e)}function HP(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?Sp(t.model):null}var NS=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),lf=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=$P(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=$P(t);ke(this.option,t,!0),ke(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=re(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return k(zP,function(n){var i=this.getReferringComponents(Ai(n),x6);if(i.specified){a=!0;var o=new NS;k(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===a}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new NS;if(h.add(f.componentIndex),t.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",mt).models[0];v&&k(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",mt).models[0]&&h.add(d.componentIndex)})}}}i&&k(zP,function(u){if(i){var c=n.findComponents({mainType:Ai(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new NS;f.add(c[0].componentIndex),t.set(u,f),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");k([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(Ai(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){k(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){return Sp(this.getAxisModel(t,a))},e.prototype.getAxisModel=function(t,a){process.env.NODE_ENV!=="production"&&Z(t&&a!=null);var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(Ai(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;k(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(t,a).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return Sp(t);for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&Z(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(Ne);function $P(r){var e={};return k(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var wre=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(lf),PS=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.dataZoomModel=t,this.ecModel=a,this.api=n},e.type="dataZoom",e})(st),Cre=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(PS),Tre=(function(){function r(e,t,a,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getWindow=function(){return he(this._window)},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Sre(t)){var a=Ai(this._dimName),n=t.getReferringComponents(a,mt).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return he(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._extent,a=this.getAxisModel().axis,n=a.scale,i=this._dataZoomModel,o=i.getRangePropMode(),s=[0,100],l=[],u=[],c,f=[!1,!1];k(["start","end"],function(S,x){var b=e[S],w=e[S+"Value"];o[x]==="percent"?(b==null&&(b=s[x]),w=Ue(b,s,t),f[x]=!0):(c=!0,w==null?w=t[x]:(w=n.parse(w),n.sanitize&&(w=n.sanitize(w,t))),b=Ue(w,t,s)),u[x]=w==null||isNaN(w)?t[x]:w,l[x]=b==null||isNaN(b)?s[x]:b}),Zt(u),Zt(l);var h=this._minMaxSpan;c?v(u,l,t,s,!1):v(l,u,s,t,!0);function v(S,x,b,w,C){var E=C?"Span":"ValueSpan";wi(0,S,b,"all",h["min"+E],h["max"+E]);for(var T=0;T<2;T++)x[T]=Ue(S[T],b,w,!0),C&&(x[T]=x[T],f[T]=!0);lh(x)}var d=or(n)||lc(n),p=a.getExtent(),g=dt(p[1]-p[0]),m=d?0:qg(u,g,.5);k([[0,Wi],[1,ua]],function(S){var x=S[0],b=S[1];!f[x]||!isFinite(m)||(u[x]=He(u[x],m),u[x]=Ke(t[1],Ie(t[0],u[x])),l[x]===s[x]&&(u[x]=t[x],d&&(u[x]=b(u[x]))))}),lh(u);var _=[Ue(u[0],t,s,!0),Ue(u[1],t,s,!0)];return lh(_),{value:u,percent:l,percentInverted:_,valuePrecision:m}},r.prototype.reset=function(e,t){if(this.hostedBy(e)){var a=this.getAxisModel().axis;Fo(a,kD);var n=a.scale.rawExtentInfo;this._extent=n.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=me({start:t[0],end:t[1]},i));var o=this._window=this.calculateDataWindow(i),s=o.percent,l=o.value;s[0]!==0&&n.setZoomMM(0,l[0]),s[1]!==100&&n.setZoomMM(1,l[1])}},r.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var a=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._window.value;if(i==="none")return;k(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(a);if(c.length){if(i==="weakFilter"){var f=u.getStore(),h=K(c,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,m=0;m<c.length;m++){var _=f.get(h[m],v),S=!isNaN(_),x=_<o[0],b=_>o[1];if(S&&!x&&!b)return!0;S&&(g=!0),x&&(d=!0),b&&(p=!0)}return g&&d&&p})}else k(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});k(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._extent;k(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ue(a[0]+o,a,[0,100],!0):i!=null&&(o=Ue(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r})(),Ere={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Ai(o),s);n(o,s,l,i)})})}var t=[];e(function(n,i,o,s){if(!Sp(o)){var l=new Tre(n,i,s,r);t.push(l),bre(o,l)}});var a=re();return k(t,function(n){k(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var a=[];t.eachTargetAxis(function(n,i){var o=t.getAxisProxy(n,i),s=HP(t,o);s?a.push([o,s]):o.reset(t,null)}),k(a,function(n){n[0].reset(t,n[1].getWindow().percentInverted)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getWindow(),i=n.percent,o=n.value;t.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function Dre(r){r.registerAction("dataZoom",function(e,t){var a=xre(t,e);k(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var kre=zs();function RS(r){kre(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Ere),Dre(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function Are(r){r.registerComponentModel(wre),r.registerComponentView(Cre),RS(r)}var nn=(function(){function r(){}return r})(),UP={};function Wl(r,e){UP[r]=e}function WP(r){return UP[r]}var Mre=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=n.getTheme().get("toolbox"),o=i?i.feature:null;o&&(this._themeFeatureOption=U({},o),i.feature={}),r.prototype.init.call(this,t,a,n),o&&(i.feature=o)},e.prototype.optionUpdated=function(){k(this.option.feature,function(t,a){var n=this._themeFeatureOption,i=WP(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),n&&n[a]&&(ke(t,n[a]),n[a]=null),ke(t,i.defaultOption))},this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:H.size.m,itemSize:15,itemGap:H.size.s,showTitle:!0,iconStyle:{borderColor:H.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:H.color.accent70}},tooltip:{show:!1,position:"bottom"}},e})(Ne);function YP(r,e){var t=Bu(e.get("padding")),a=e.getItemStyle(["color","opacity"]);a.fill=e.get("backgroundColor");var n=new Le({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var Ire=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features=re()),f=[];k(u,function(_,S){f.push(S)}),new kn(this._featureNames||[],f).add(h).update(h).remove(Me(h,null)).execute(),this._featureNames=Ze(f,function(_){return c.hasKey(_)});function h(_,S){var x=_!=null&&S==null,b=_!=null&&S!=null,w=_==null,C=x||b?f[_]:f[S],E=u[C],T=x||b?new ze(E,t,a):null,D=T&&T.get("show"),A;if(x){if(!D)return;if(Lre(C))A={onclick:T.option.onclick,featureName:C};else{var I=WP(C);if(!I)return;A=new I}c.set(C,A)}else A=c.get(C);if(w||!D){XP(A)&&A.dispose&&A.dispose(a,n),c.removeKey(C);return}i&&i.newTitle!=null&&i.featureName===C&&(E.title=i.newTitle),x&&(A.uid=So("toolbox-feature")),A.model=T,A.ecModel=a,A.api=n,v(T,A,C),T.setIconStatus=function(M,L){var N=this.option,R=this.iconPaths;N.iconStatus=N.iconStatus||{},N.iconStatus[M]=L,R[M]&&(L==="emphasis"?xn:bn)(R[M])},XP(A)&&A.render&&A.render(T,a,n,i)}function v(_,S,x){var b=_.getModel("iconStyle"),w=_.getModel(["emphasis","iconStyle"]),C=S instanceof nn&&S.getIcons?S.getIcons():_.get("icon"),E=_.get("title")||{},T,D;Q(C)?(T={},T[x]=C):T=C,Q(E)?(D={},D[x]=E):D=E;var A=_.iconPaths={};k(T,function(I,M){var L=Lu(I,{},{x:-s/2,y:-s/2,width:s,height:s});L.setStyle(b.getItemStyle());var N=L.ensureState("emphasis");N.style=w.getItemStyle();var R=new Fe({style:{text:D[M],align:w.get("textAlign"),borderRadius:w.get("textBorderRadius"),padding:w.get("textPadding"),fill:null,font:ey({fontStyle:w.get("textFontStyle"),fontFamily:w.get("textFontFamily"),fontSize:w.get("textFontSize"),fontWeight:w.get("textFontWeight")},a)},ignore:!0});L.setTextContent(R),Tn({el:L,componentModel:t,itemName:M,formatterParamsExtra:{title:D[M]}}),L.__title=D[M],L.on("mouseover",function(){var P=w.getItemStyle(),O=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:w.get("textFill")||P.fill||P.stroke||H.color.neutral99,backgroundColor:w.get("textBackgroundColor")}),L.setTextConfig({position:w.get("textPosition")||O}),R.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){_.get(["iconStatus",M])!=="emphasis"&&n.leaveEmphasis(this),R.hide()}),(_.get(["iconStatus",M])==="emphasis"?xn:bn)(L),o.add(L),L.on("click",ie(S.onclick,S,a,n,M)),A[M]=L})}var d=Nt(t,n).refContainer,p=t.getBoxLayoutParams(),g=t.get("padding"),m=ct(p,d,g);Co(t.get("orient"),o,t.get("itemGap"),m.width,m.height),ev(o,p,d,g),o.add(YP(o.getBoundingRect(),t)),l||o.eachChild(function(_){var S=_.__title,x=_.ensureState("emphasis"),b=x.textConfig||(x.textConfig={}),w=_.getTextContent(),C=w&&w.ensureState("emphasis");if(C&&!ce(C)&&S){var E=C.style||(C.style={}),T=Qf(S,Fe.makeFont(E)),D=_.x+o.x,A=_.y+o.y+s,I=!1;A+T.height>n.getHeight()&&(b.position="top",I=!0);var M=I?-5-T.height:s+10;D+T.width/2>n.getWidth()?(b.position=["100%",M],E.align="right"):D-T.width/2<0&&(b.position=[0,M],E.align="left")}})},e.prototype.updateView=function(t,a,n,i){k(this._features,function(o){o&&o instanceof nn&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.dispose=function(t,a){k(this._features,function(n){n&&n instanceof nn&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e})(st);function Lre(r){return r.indexOf("my")===0}function XP(r){return r instanceof nn}var Nre=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||H.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Ve.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var _=new Blob([m]);window.navigator.msSaveOrOpenBlob(_,p)}else{var S=document.createElement("iframe");document.body.appendChild(S);var x=S.contentWindow,b=x.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),x.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(S)}}else{var w=n.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',E=window.open();E.document.write(C),E.document.title=i}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:H.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e})(nn),ZP="__ec_magicType_stack__",Pre=[["line","bar"],["stack"]],Rre=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return k(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(qP[n]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=qP[n](h,v,f,i);d&&(me(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,_=m+"Axis",S=f.getReferringComponents(_,mt).models[0],x=S.componentIndex;s[_]=s[_]||[];for(var b=0;b<=x;b++)s[_][x]=s[_][x]||{};s[_][x].boundaryGap=n==="bar"}}};k(Pre,function(f){Ee(f,n)>=0&&k(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;n==="stack"&&(u=ke({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e})(nn),qP={line:function(r,e,t,a){if(r==="bar")return ke({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return ke({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===ZP;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ke({id:e,stack:n?"":ZP},a.get(["option","stack"])||{},!0)}};Wa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var xp=new Array(60).join("-"),Yl=" ";function Ore(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=_Y(o);e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function Vre(r){var e=[];return k(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(K(t.series,function(v){return v.name})),l=[n.model.getCategories()];k(t.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Yl)],c=0;c<l[0].length;c++){for(var f=[],h=0;h<l.length;h++)f.push(l[h][c]);u.push(f.join(Yl))}e.push(u.join(`
54
+ `))}),e.join(`
55
+
56
+ `+xp+`
57
+
58
+ `)}function Bre(r){return K(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+Yl:"")+n.join(Yl))}),a.join(`
59
+ `)}).join(`
60
+
61
+ `+xp+`
62
+
63
+ `)}function zre(r){var e=Ore(r);return{value:Ze([Vre(e.seriesGroupByCategoryAxis),Bre(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
64
+
65
+ `+xp+`
66
+
67
+ `),meta:e.meta}}function bp(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Gre(r){var e=r.slice(0,r.indexOf(`
68
+ `));if(e.indexOf(Yl)>=0)return!0}var OS=new RegExp("["+Yl+"]+","g");function Fre(r){for(var e=r.split(/\n+/g),t=bp(e.shift()).split(OS),a=[],n=K(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=bp(e[i]).split(OS);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function Hre(r){for(var e=r.split(/\n+/g),t=bp(e.shift()),a=[],n=0;n<e.length;n++){var i=bp(e[n]);if(i){var o=i.split(OS),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}function $re(r,e){var t=r.split(new RegExp(`
69
+ *`+xp+`
70
+ *`,"g")),a={series:[]};return k(t,function(n,i){if(Gre(n)){var o=Fre(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=Hre(n);a.series.push(o)}}),a}var Ure=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||H.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),h=i.get("contentToOption"),v=zre(t);if(ce(f)){var d=f(a.getOption());Q(d)?u.innerHTML=d:Li(d)&&u.appendChild(d)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=v.value,u.appendChild(c)}var g=v.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var _="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),x=document.createElement("div");_+=";background-color:"+i.get("buttonColor"),_+=";color:"+i.get("buttonTextColor");var b=this;function w(){n.removeChild(o),b._dom=null}ng(S,"click",w),ng(x,"click",function(){if(h==null&&f!=null||h!=null&&f==null){process.env.NODE_ENV!=="production"&&lt("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),w();return}var C;try{ce(h)?C=h(u,a.getOption()):C=$re(c.value,g)}catch(E){throw w(),new Error("Data view format error "+E)}C&&a.dispatchAction({type:"changeDataView",newOption:C}),w()}),S.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=S.style.cssText=_,!i.get("readOnly")&&m.appendChild(x),m.appendChild(S),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.dispose=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.getDefaultOption=function(t){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:H.color.background,textColor:H.color.primary,textareaColor:H.color.background,textareaBorderColor:H.color.border,buttonColor:H.color.accent50,buttonTextColor:H.color.neutral00};return a},e})(nn);function Wre(r,e){return K(r,function(t,a){var n=e&&e[a];if(de(n)&&!Y(n)){var i=de(t)&&!Y(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=me(t,n),o&&delete t.name,t}else return t})}Wa({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];k(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(U({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:Wre(a.data,i)})}}),e.mergeOption(me({series:t},r.newOption))});var KP=k,jP=De();function Yre(r,e){var t=VS(r);KP(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function Xre(r){var e=VS(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return KP(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function Zre(r){jP(r).snapshots=null}function qre(r){return VS(r).length}function VS(r){var e=jP(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Kre=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){Zre(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e})(nn);Wa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var jre=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BS=(function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=QP(t,e);k(Qre,function(o,s){(!a||!a.include||Ee(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=GS[a.brushType](0,i,n);a.__rangeOffset={offset:rR[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){k(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&k(i.coordSyses,function(o){var s=GS[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){k(e,function(a){var n=this.findTargetInfo(a,t);if(process.env.NODE_ENV!=="production"&&(Z(!n||n===!0||a.coordRange,"coordRange must be specified when coord index specified."),Z(!n||n!==!0||a.range,"range must be specified in global brush.")),a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=GS[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?rR[a.brushType](i.values,o.offset,Jre(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return K(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:VL(n),isTargetByCursor:zL(n,e,a.coordSysModel),getLinearBrushOtherExtent:BL(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&Ee(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=QP(t,e),i=0;i<a.length;i++){var o=a[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<JP.length;l++)if(JP[l](n,o))return o}return!0},r})();function zS(r){return r[0]>r[1]&&r.reverse(),r}function QP(r,e){return Vs(r,e,{includeMainTypes:jre})}var Qre={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=re(),o={},s={};!t&&!a&&!n||(k(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),k(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),k(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];k(u.getCartesians(),function(f,h){(Ee(t,f.getAxis("x").model)>=0||Ee(a,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:eR.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){k(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:eR.geo})})}},JP=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],eR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,e=BM(null,r);return ib(e,e,Ed(null,r)),e}},GS={lineX:Me(tR,0),lineY:Me(tR,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[zS([n[0],i[0]]),zS([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[qt(),qt()],i=K(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function tR(r,e,t,a){process.env.NODE_ENV!=="production"&&Z(t.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var n=t.getAxis(["x","y"][r]),i=zS(K([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var rR={lineX:Me(aR,0),lineY:Me(aR,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return K(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function aR(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function Jre(r,e){var t=nR(r),a=nR(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function nR(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var FS=k,eae=g6("toolbox-dataZoom_"),tae={x:"width",y:"height"},rae=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new k_(n.getZr()),this._brushController.on("brush",ie(this._onBrush,this)).mount()),iae(t,a,this,i,n),nae(t,a)},e.prototype.onclick=function(t,a,n){aae[n].call(this)},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new BS(HS(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,f){if(f.type==="cartesian2d"){var h=f.master.getRect().clone(),v=u.brushType;v==="rect"?(s("x",f,h,c[0]),s("y",f,h,c[1])):s({lineX:"x",lineY:"y"}[v],f,h,c)}}),Yre(i,n),this._dispatchZoomAction(n);function s(u,c,f,h){var v=c.getAxis(u),d=v.model,p=l(u,d,i),g=p.findRepresentativeAxisProxy(d).getMinMaxSpan(),m=v.scale.getExtent();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=wi(0,h.slice(),m,0,g.minValueSpan,g.maxValueSpan));var _=qg(m,f[tae[u]],.5);p&&(n[p.id]={dataZoomId:p.id,startValue:isFinite(_)?He(h[0],_):h[0],endValue:isFinite(_)?He(h[1],_):h[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},e.prototype._dispatchZoomAction=function(t){var a=[];FS(t,function(n,i){a.push(he(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:H.color.backgroundTint}};return a},e})(nn),aae={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Xre(this.ecModel))}};function HS(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function nae(r,e){r.setIconStatus("back",qre(e)>1?"emphasis":"normal")}function iae(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new BS(HS(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}oH("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=HS(a),o=Vs(r,i);FS(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),FS(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:eae+u+f};h[c]=f,n.push(h)}return n});function oae(r){r.registerComponentModel(Mre),r.registerComponentView(Ire),Wl("saveAsImage",Nre),Wl("magicType",Rre),Wl("dataView",Ure),Wl("dataZoom",rae),Wl("restore",Kre),Ae(Are)}var sae=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:H.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:H.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:H.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:H.color.tertiary,fontSize:14}},e})(Ne);function iR(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function oR(r){if(Ve.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var sR=oR(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),lae=oR(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function lR(r,e){if(!r)return e;e=bT(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function uae(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var cae=lR(lae,"transition"),$S=lR(sR,"transform"),fae="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ve.transform3dSupported?"will-change:transform;":"");function hae(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function vae(r,e,t){if(!Q(t)||t==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=bo(e);var i=hae(t),o=Math.max(Math.round(n)*1.5,6),s="",l=$S+":",u;Ee(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+n,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=e+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function dae(r,e,t){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return t&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),e||(n=" "+r+"s "+a,i+=(i.length?",":"")+(Ve.transformSupported?""+$S+n:",left"+n+",top"+n)),cae+":"+i}function uR(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!Ve.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Ve.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+$S+":"+o+";":[["top",0],["left",0],[sR,o]]}function pae(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=oe(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),k(["decoration","align"],function(u){var c=r.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function gae(r,e,t,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),c=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=B2(r,"html"),v=u+"px "+c+"px "+s+"px "+l;return n.push("box-shadow:"+v),e&&i>0&&n.push(dae(i,t,a)),o&&n.push("background-color:"+o),k(["width","color","radius"],function(d){var p="border-"+d,g=bT(p),m=r.get(g);m!=null&&n.push(p+":"+m+(d==="color"?"":"px"))}),n.push(pae(f)),h!=null&&n.push("padding:"+Bu(h).join("px ")+"px"),n.join(";")+";"}function cR(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&B4(r,o,t,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var mae=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ve.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(Q(i)?document.querySelector(i):Li(i)?i:ce(i)&&i(e.getDom()));cR(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();Gr(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),a=uae(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=fae+gae(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+uR(i[0],i[1],!0)+("border-color:"+bo(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Q(i)&&a.get("trigger")==="item"&&!iR(a)&&(s=vae(a,n,i)),Q(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Y(e)||(e=[e]);for(var l=0;l<e.length;l++)Li(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var a=this._styleCoord;if(cR(a,this._zr,this._container,e,t),a[0]!=null&&a[1]!=null){var n=this.el.style,i=uR(a[0],a[1]);k(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",Ve.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ie(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;z4(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var a=t.parentNode;a&&a.removeChild(t)}this.el=this._container=null},r})(),yae=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),hR(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,n,i){var o=this;de(e)&&Ye(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Fe({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:B2(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=fR(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var n=this._styleCoord;hR(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=Mi(i.borderWidth||0),s=fR(i);a.x=e+o+s.left,a.y=t+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ie(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Mi(r){return Math.max(0,r)}function fR(r){var e=Mi(r.shadowBlur||0),t=Mi(r.shadowOffsetX||0),a=Mi(r.shadowOffsetY||0);return{left:Mi(e-t),right:Mi(e+t),top:Mi(e-a),bottom:Mi(e+a)}}function hR(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var _ae=new Le({shape:{x:-1,y:-1,width:2,height:2}}),Sae=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){if(!(Ve.node||!a.getDom())){var n=t.getComponent("tooltip"),i=this._renderMode=w6(n.get("renderMode"));this._tooltipContent=i==="richText"?new yae(a):new mae(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,a,n){if(!(Ve.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?sl(this,"_updatePosition",50,"fixRate"):Zu(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");jN("itemTooltip",this._api,ie(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||Ve.node||!n.getDom())){var o=vR(i,n);this._ticket="";var s=i.dataByCoordSys,l=Cae(i,a,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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=_ae;c.x=i.x,c.y=i.y,c.update(),be(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var f=QN(i,a),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(vR(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),f=uf([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=be(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Lo(n,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(be(c).dataIndex!=null?l=c:be(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(t,l,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=ie(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=uf([a.tooltipOption],i),l=this._renderMode,u=[],c=Et("section",{blocks:[],noHeader:!0}),f=[],h=new zy;k(t,function(_){k(_.dataByAxis,function(S){var x=n.getComponent(S.axisDim+"Axis",S.axisIndex),b=S.value,w=x.axis,C=w.scale.parse(b);if(!(!x||b==null)){var E=WN(b,w,n,S.seriesDataIndices,S.valueLabelOpt),T=Et("section",{header:E,noHeader:!Br(E),sortBlocks:!0,blocks:[]});c.blocks.push(T),k(S.seriesDataIndices,function(D){var A=n.getSeriesByIndex(D.seriesIndex),I=D.dataIndexInside,M=A.getDataParams(I);if(!(M.dataIndex<0)){M.axisDim=S.axisDim,M.axisIndex=S.axisIndex,M.axisType=S.axisType,M.axisId=S.axisId,M.axisValue=zv(x.axis,{value:C}),M.axisValueLabel=E,M.marker=h.makeTooltipMarker("item",bo(M.color),l);var L=g2(A.formatTooltip(I,!0,null)),N=L.frag;if(N){var R=uf([A],i).get("valueFormatter");T.blocks.push(R?U({valueFormatter:R},N):N)}L.text&&f.push(L.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var v=a.position,d=s.get("order"),p=R2(c,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
71
+
72
+ `:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=be(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=t.positionDefault,p=uf([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),_=new zy;m.marker=_.makeTooltipMarker("item",bo(m.color),v);var S=g2(u.formatTooltip(c,!1,f)),x=p.get("order"),b=p.get("valueFormatter"),w=S.frag,C=w?R2(b?U({valueFormatter:b},w):w,_,v,x,i.get("useUTC"),p.get("textStyle")):S.text,E="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,C,m,E,t.offsetX,t.offsetY,t.position,t.target,_)}),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=be(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Q(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=he(l),l.content=hr(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=t.positionDefault,d=uf(f,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new zy;this._showOrMove(d,function(){var _=he(d.get("formatterParams")||{});this._showTooltipContent(d,p,_,g,t.offsetX,t.offsetY,t.position,a,m)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var f=this._tooltipContent;f.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(h)if(Q(h)){var g=t.ecModel.get("useUTC"),m=Y(n)?n[0]:n,_=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,_&&(v=qh(m.axisValue,v,g)),v=CT(v,n,!0)}else if(ce(h)){var S=ie(function(x,b){x===this._ticket&&(f.setContent(b,c,t,p,l),this._updatePosition(t,l,o,s,f,n,u))},this);this._ticket=i,v=h(n,i,S)}else v=h;f.setContent(v,c,t,p,l),f.show(t,p),this._updatePosition(t,l,o,s,f,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i,o){if(n==="axis"||Y(a))return{color:i||o};if(!Y(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||t.get("position");var f=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ce(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),Y(a))n=ee(a[0],u),i=ee(a[1],c);else if(de(a)){var p=a;p.width=f[0],p.height=f[1];var g=ct(p,{width:u,height:c});n=g.x,i=g.y,h=null,v=null}else if(Q(a)&&l){var m=wae(a,d,f,t.get("borderWidth"));n=m[0],i=m[1]}else{var m=xae(n,i,o,u,c,h?null:20,v?null:20);n=m[0],i=m[1]}if(h&&(n-=dR(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=dR(v)?f[1]/2:v==="bottom"?f[1]:0),iR(t)){var m=bae(n,i,o,u,c);n=m[0],i=m[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&k(n,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&k(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&k(p,function(m,_){var S=g[_];o=o&&m.seriesIndex===S.seriesIndex&&m.dataIndex===S.dataIndex}),i&&k(h.seriesDataIndices,function(m){var _=m.seriesIndex,S=a[_],x=i[_];S&&x&&x.data!==S.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){Ve.node||!a.getDom()||(Zu(this,"_updatePosition"),this._tooltipContent.dispose(),_S("itemTooltip",a),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(st);function uf(r,e,t){var a=e.ecModel,n;t?(n=new ze(t,a,a),n=new ze(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ze&&(o=o.get("tooltip",!0)),Q(o)&&(o={formatter:o}),o&&(n=new ze(o,n,a)))}return n}function vR(r,e){return r.dispatchAction||ie(e.dispatchAction,e)}function xae(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function bae(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function wae(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,c=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+c+o;break;case"left":s=e.x-n-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function dR(r){return r==="center"||r==="middle"}function Cae(r,e,t){var a=rm(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Bs(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=be(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function Tae(r){Ae(nf),r.registerComponentModel(sae),r.registerComponentView(Sae),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},pt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},pt)}var Eae=["rect","polygon","keep","clear"];function Dae(r,e){var t=tt(r?r.brush:[]);if(t.length){var a=[];k(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;Y(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),uh(s,function(l){return l+""},null),e&&!s.length&&s.push.apply(s,Eae)}}var pR=k;function gR(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function US(r,e,t){var a={};return pR(e,function(i){var o=a[i]=n();pR(r[i],function(s,l){if(zt.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new zt(u),l==="opacity"&&(u=he(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new zt(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function mR(r,e,t){var a;k(t,function(n){e.hasOwnProperty(n)&&gR(e[n])&&(a=!0)}),a&&k(t,function(n){e.hasOwnProperty(n)&&gR(e[n])?r[n]=he(e[n]):delete r[n]})}function kae(r,e,t,a,n,i){var o={};k(r,function(f){var h=zt.prepareVisualTypes(e[f]);o[f]=h});var s;function l(f){return $y(t,s,f)}function u(f,h){iE(t,s,f,h)}t.each(c);function c(f,h){s=f;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=a.call(n,f),p=e[d],g=o[d],m=0,_=g.length;m<_;m++){var S=g[m];p[S]&&p[S].applyVisual(f,l,u)}}}function Aae(r,e,t,a){var n={};return k(r,function(i){var o=zt.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(b){return $y(s,f,b)}function c(b,w){iE(s,f,b,w)}for(var f,h=s.getStore();(f=o.next())!=null;){var v=s.getRawDataItem(f);if(!(v&&v.visualMap===!1))for(var d=a!=null?h.get(l,f):f,p=t(d),g=e[p],m=n[p],_=0,S=m.length;_<S;_++){var x=m[_];g[x]&&g[x].applyVisual(d,u,c)}}}}}function Mae(r){var e=r.brushType,t={point:function(a){return yR[e].point(a,t,r)},rect:function(a){return yR[e].rect(a,t,r)}};return t}var yR={lineX:_R(0),lineY:_R(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Ho(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(Ho(a,n,i)||Ho(a,n+o,i)||Ho(a,n,i+s)||Ho(a,n+o,i+s)||pe.create(r).contain(l[0],l[1])||Nu(n,i,n+o,i,a)||Nu(n,i,n,i+s,a)||Nu(n+o,i,n+o,i+s,a)||Nu(n,i+s,n+o,i+s,a))return!0}}};function _R(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return cf(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]<s[0]&&s.reverse(),cf(s[0],o)||cf(s[1],o)||cf(o[0],s)||cf(o[1],s)}}}}function cf(r,e){return e[0]<=r&&r<=e[1]}var SR=["inBrush","outOfBrush"],WS="__ecBrushSelect",YS="__ecInBrushSelectEvent";function xR(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new BS(e.option,r);t.setInputRanges(e.areas,r)})}var Iae=Su(Lae);function Lae(r,e,t){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),xR(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:he(o.areas),selected:[]};a.push(l);var u=o.option,c=u.brushLink,f=[],h=[],v=[],d=!1;s||(n=u.throttleType,i=u.throttleDelay);var p=K(o.areas,function(b){var w=Oae[b.brushType],C=me({boundingRect:w?w(b):void 0},b);return C.selectors=Mae(C),C}),g=US(o.option,SR,function(b){b.mappingMethod="fixed"});Y(c)&&k(c,function(b){f[b]=1});function m(b){return c==="all"||!!f[b]}function _(b){return!!b.length}r.eachSeries(function(b,w){var C=v[w]=[];b.subType==="parallel"?S(b,w):x(b,w,C)});function S(b,w){var C=b.coordinateSystem;d=d||C.hasAxisBrushed(),m(w)&&C.eachActiveState(b.getData(),function(E,T){E==="active"&&(h[T]=1)})}function x(b,w,C){if(!(!b.brushSelector||Rae(o,w))&&(k(p,function(T){o.brushTargetManager.controlSeries(T,b,r)&&C.push(T),d=d||_(C)}),m(w)&&_(C))){var E=b.getData();E.each(function(T){bR(b,C,E,T)&&(h[T]=1)})}}r.eachSeries(function(b,w){var C={seriesId:b.id,seriesIndex:w,seriesName:b.name,dataIndex:[]};l.selected.push(C);var E=v[w],T=b.getData(),D=m(w)?function(A){return h[A]?(C.dataIndex.push(T.getRawIndex(A)),"inBrush"):"outOfBrush"}:function(A){return bR(b,E,T,A)?(C.dataIndex.push(T.getRawIndex(A)),"inBrush"):"outOfBrush"};(m(w)?d:_(E))&&kae(SR,g,T,D)})}),Nae(e,n,i,a,t)}function Nae(r,e,t,a,n){if(n){var i=r.getZr();if(!i[YS]){i[WS]||(i[WS]=Pae);var o=sl(i,WS,t,e);o(r,a)}}}function Pae(r,e){if(!r.isDisposed()){var t=r.getZr();t[YS]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[YS]=!1}}function bR(r,e,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(r.brushSelector(a,t,o.selectors,o))return!0}}function Rae(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(Y(t)?Ee(t,e)<0:e!==t)}var Oae={rect:function(r){return wR(r.range)},polygon:function(r){for(var e,t=r.range,a=0,n=t.length;a<n;a++){e=e||[qt(),qt()];var i=t[a];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&wR(e)}};function wR(r){return new pe(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Vae=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new k_(a.getZr())).on("brush",ie(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){xR(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:he(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:he(n),$from:a})},e.type="brush",e})(st),Bae=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&mR(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){process.env.NODE_ENV!=="production"&&(Z(Y(t)),k(t,function(a){Z(a.brushType,"Illegal areas")})),t&&(this.areas=K(t,function(a){return CR(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=CR(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:H.color.backgroundTint,borderColor:H.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:H.color.disabled},e})(Ne);function CR(r,e){return ke({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new ze(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var zae=["rect","polygon","lineX","lineY","keep","clear"],Gae=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,k(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return k(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:zae.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e})(nn);function Fae(r){r.registerComponentView(Vae),r.registerComponentModel(Bae),r.registerPreprocessor(Dae),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Iae),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},pt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},pt),Wl("brush",Gae)}var Hae=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:H.size.m,backgroundColor:H.color.transparent,borderColor:H.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:H.color.primary},subtextStyle:{fontSize:12,color:H.color.quaternary}},e})(Ne),$ae=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=oe(t.get("textBaseline"),t.get("textVerticalAlign")),c=new Fe({style:at(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=t.get("subtext"),v=new Fe({style:at(s,{text:h,fill:s.getTextColor(),y:f.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);c.silent=!d&&!g,v.silent=!p&&!g,d&&c.on("click",function(){Kh(d,"_"+t.get("target"))}),p&&v.on("click",function(){Kh(p,"_"+t.get("subtarget"))}),be(c).eventData=be(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),h&&i.add(v);var m=i.getBoundingRect(),_=t.getBoxLayoutParams();_.width=m.width,_.height=m.height;var S=Nt(t,n),x=ct(_,S.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),i.x=x.x,i.y=x.y,i.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),v.setStyle(b),m=i.getBoundingRect();var w=x.margin,C=t.getItemStyle(["color","opacity"]);C.fill=t.get("backgroundColor");var E=new Le({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:t.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(E)}},e.type="title",e})(st);function Uae(r){r.registerComponentModel(Hae),r.registerComponentView($ae)}var TR=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],k(a,function(u,c){var f=At(Rs(u),""),h;de(u)?(h=he(u),h.value=c):h=c,o.push(h),i.push(f)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new mr([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:H.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:H.color.secondary},data:[]},e})(Ne),ER=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=ui(TR.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:H.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:H.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:H.color.tertiary},itemStyle:{color:H.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:H.color.accent50,borderColor:H.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:H.color.accent50,borderColor:H.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:H.color.accent60},itemStyle:{color:H.color.accent60,borderColor:H.color.accent60},controlStyle:{color:H.color.accent70,borderColor:H.color.accent70}},progress:{lineStyle:{color:H.color.accent30},itemStyle:{color:H.color.accent40}},data:[]}),e})(TR);kt(ER,ov.prototype);var Wae=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(st),Yae=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(ma),XS=Math.PI,DR=De(),Xae=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Et("nameValue",{noName:!0,value:c})},k(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=Zae(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":Q(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:XS/2},f=i==="vertical"?o.height:o.width,h=t.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,g=d+p,m=t.get(["label","rotate"])||0;m=m*XS/180;var _,S,x,b=h.get("position",!0),w=v&&h.get("showPlayBtn",!0),C=v&&h.get("showPrevBtn",!0),E=v&&h.get("showNextBtn",!0),T=0,D=f;b==="left"||b==="bottom"?(w&&(_=[0,0],T+=g),C&&(S=[T,0],T+=g),E&&(x=[D-d,0],D-=g)):(w&&(_=[D-d,0],D-=g),C&&(S=[0,0],T+=g),E&&(x=[D-d,0],D-=g));var A=[T,D];return t.get("inverse")&&A.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:_,prevBtnPosition:S,nextBtnPosition:x,axisExtent:A,controlSize:d,controlGap:p}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=ft(),l=o.x,u=o.y+o.height;Ca(s,s,[-l,-u]),Yn(s,s,-XS/2),Ca(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=_(o),f=_(n.getBoundingRect()),h=_(i.getBoundingRect()),v=[n.x,n.y],d=[i.x,i.y];d[0]=v[0]=c[0][0];var p=t.labelPosOpt;if(p==null||Q(p)){var g=p==="+"?0:1;S(v,f,c,1,g),S(d,h,c,1,1-g)}else{var g=p>=0?0:1;S(v,f,c,1,g),d[1]=v[1]+p}n.setPosition(v),i.setPosition(d),n.rotation=i.rotation=t.rotation,m(n),m(i);function m(x){x.originX=c[0][0]-x.x,x.originY=c[1][0]-x.y}function _(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function S(x,b,w,C,E){x[C]+=w[C][E]-b[C][E]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType")||a.get("type");i!=="category"&&i!=="time"&&(i="value");var o=cc(a,i,!1);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),OD(o,{fixMinMax:[!0,!0]});var l=new Yae("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new ge;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new Ct({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:U({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new Ct({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:me({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],k(l,function(u){var c=n.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),d=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:ie(o._changeTimeline,o,u.value)},g=kR(f,h,a,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),co(g);var m=be(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],k(u,function(c){if(!c.tick.offInterval){var f=c.tick.value,h=l.getItemModel(f),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),g=n.dataToCoord(f),m=new Fe({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:ie(o._changeTimeline,o,f),silent:!1,style:at(v,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});m.ensureState("emphasis").style=at(d),m.ensureState("progress").style=at(p),a.add(m),co(m),DR(m).dataIndex=f,o._tickLabels.push(m)}})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);h(t.nextBtnPosition,"next",ie(this._changeTimeline,this,f?"-":"+")),h(t.prevBtnPosition,"prev",ie(this._changeTimeline,this,f?"+":"-")),h(t.playPosition,c?"stop":"play",ie(this._handlePlayClick,this,!c),!0);function h(v,d,p,g){if(v){var m=Ia(oe(i.get(["controlStyle",d+"BtnSize"]),o),o),_=[0,-m/2,m,m],S=qae(i,d+"Icon",_,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});S.ensureState("emphasis").style=u,a.add(S),co(S)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ie(u._handlePointerDrag,u),f.ondragend=ie(u._handlePointerDragend,u),AR(f,u._progressLine,s,n,i,!0)},onUpdate:function(f){AR(f,u._progressLine,s,n,i)}};this._currentPointer=kR(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=Zt(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var a=this._mainGroup.getLocalTransform();return da(t,a,!0)},e.prototype._findNearestTick=function(t){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-t);c<n&&(n=c,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();t==="+"?t=a+1:t==="-"&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",DR(n[i]).dataIndex<=t)},e.type="timeline.slider",e})(Wae);function Zae(r,e){return ct(r.getBoxLayoutParams(),Nt(r,e).refContainer,r.get("padding"))}function qae(r,e,t,a){var n=a.style,i=Lu(r.get(["controlStyle",e]),a||{},new pe(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function kR(r,e,t,a,n,i){var o=e.get("color");if(n)n.setColor(o),t.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=Dt(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),t.add(n),i&&i.onCreate(n)}var l=e.getItemStyle(["color"]);n.setStyle(l),a=ke({rectHover:!0,z2:100},a,!0);var u=cl(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=No(r.get("symbolOffset"),u);c&&(a.x=(a.x||0)+c[0],a.y=(a.y||0)+c[1]);var f=r.get("symbolRotate");return a.rotation=(f||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function AR(r,e,t,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function Kae(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var n=t.getComponent("timeline");return n&&e.currentIndex!=null&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),me({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&e.playState!=null&&a.setPlayState(e.playState)})}function jae(r){var e=r&&r.timeline;Y(e)||(e=e?[e]:[]),k(e,function(t){t&&Qae(t)})}function Qae(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),MR(r),ms(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});ms(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!ms(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}k(r.data||[],function(n){de(n)&&!Y(n)&&(!ms(n,"value")&&ms(n,"name")&&(n.value=n.name),MR(n))})}function MR(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};k(a,function(o,s){!i[s]&&!ms(n,s)&&(n[s]=o)}),t.label&&!ms(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function ms(r,e){return r.hasOwnProperty(e)}function Jae(r){r.registerComponentModel(ER),r.registerComponentView(Xae),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Kae(r),r.registerPreprocessor(jae)}function ZS(r,e){if(!r)return!1;for(var t=Y(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function wp(r){qi(r,"label",["show"])}var Cp=De(),on=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,a,n){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ve.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Cp(s)[o];if(!l||!l.data){Cp(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&wp(l),k(l.data,function(c){c instanceof Array?(wp(c[0]),wp(c[1])):wp(c)}),u=this.createMarkerModelFromSeries(l,this,a),U(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Cp(s)[o]=u},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Et("section",{header:this.name,blocks:[Et("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,a){var n=ov.prototype.getDataParams.call(this,t,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,a){return Cp(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Ne);kt(on,ov.prototype);var ene=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e})(on);function qS(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function tne(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Tp(r,e,t,a,n,i,o){var s=[],l=di(e,n),u=l?e.getCalculationInfo("stackResultDimension"):n,c=Dp(e,u,r),f=e.hostModel,h=f.indicesOfNearest(t,u,c)[0];s[i]=e.get(a,h),s[o]=e.get(u,h);var v=e.get(n,h),d=Na(e.get(n,h));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,v]}var Ep={min:Me(Tp,"min"),max:Me(Tp,"max"),average:Me(Tp,"average"),median:Me(Tp,"median")};function ff(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!tne(e)&&!Y(e.coord)&&Y(n)){var i=IR(e,t,a,r);if(e=he(e),e.type&&Ep[e.type]&&i.baseAxis&&i.valueAxis){var o=Ee(n,i.baseAxis.dim),s=Ee(n,i.valueAxis.dim),l=Ep[e.type](t,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!Y(n)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&Ep[e.type]){var c=a.getOtherAxis(u);c&&(e.value=Dp(t,t.mapDimension(c.dim),e.type))}}else for(var f=e.coord,h=0;h<2;h++)Ep[f[h]]&&(f[h]=Dp(t,t.mapDimension(n[h]),f[h]));return e}}function IR(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(rne(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function rne(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function hf(r,e){return r&&r.containData&&e.coord&&!qS(e)?r.containData(e.coord):!0}function ane(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!qS(e)&&!qS(t)?r.containZone(e.coord,t.coord):!0}function LR(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return fi(o,e[i])}:function(t,a,n,i){return fi(t.value,e[i])}}function Dp(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var KS=De(),jS=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=re()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){KS(s).keep=!1}),a.eachSeries(function(s){var l=on.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!KS(s).keep&&i.group.remove(s.group)}),nne(a,o,this.type)},e.prototype.markKeep=function(t){KS(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;k(t,function(i){var o=on.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?gC(l):Pm(l))})}})},e.type="marker",e})(st);function nne(r,e,t){r.eachSeries(function(a){var n=on.getMarkerModelFromSeries(a,t),i=e.get(a.id);if(n&&i&&i.group){var o=yo(n),s=o.z,l=o.zlevel;Gh(i.group,s,l)}})}function NR(r,e,t){var a=e.coordinateSystem,n=t.getWidth(),i=t.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",c=u?o?o.width:0:n,f=u?o?o.height:0:i,h=u&&o?o.x:0,v=u&&o?o.y:0,d,p=ee(l.get("x"),c)+h,g=ee(l.get("y"),f)+v;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(e.getMarkerPosition)d=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var m=r.get(a.dimensions[0],s),_=r.get(a.dimensions[1],s);d=a.dataToPoint([m,_])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var ine=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=on.getMarkerModelFromSeries(i,"markPoint");o&&(NR(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Cc),f=one(o,t,a);a.setData(f),NR(a.getData(),t,i),f.each(function(h){var v=f.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),_=v.getShallow("symbolKeepAspect");if(ce(d)||ce(p)||ce(g)||ce(m)){var S=a.getRawValue(h),x=a.getDataParams(h);ce(d)&&(d=d(S,x)),ce(p)&&(p=p(S,x)),ce(g)&&(g=g(S,x)),ce(m)&&(m=m(S,x))}var b=v.getModel("itemStyle").getItemStyle(),w=v.get("z2"),C=Qu(l,"color");b.fill||(b.fill=C),f.setItemVisual(h,{z2:oe(w,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:_,style:b})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(v){be(v).dataModel=a})}),this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e})(jS);function one(r,e,t){var a;r?a=K(r&&r.dimensions,function(s){var l=e.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return U(U({},u),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new mr(a,t),i=K(t.get("data"),Me(ff,e));r&&(i=Ze(i,Me(hf,r)));var o=LR(!!r,a);return n.initData(i,null,o),n}function sne(r){r.registerComponentModel(ene),r.registerComponentView(ine),r.registerPreprocessor(function(e){ZS(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var lne=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e})(on),kp=De(),une=function(r,e,t,a){var n=r.getData(),i;if(Y(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=Ft(a.yAxis,a.xAxis);else{var u=IR(a,n,e,r);s=u.valueAxis;var c=oD(n,u.valueDataDim);l=Dp(n,c,o)}var f=s.dim==="x"?0:1,h=1-f,v=he(a),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=t.get("precision");p>=0&&Ge(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[f]=d.coord[f]=l,i=[v,d,{type:o,valueIndex:a.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&oa("Invalid markLine data."),i=[]}var g=[ff(r,i[0]),ff(r,i[1]),U({},i[2])];return g[2].type=g[2].type||null,ke(g[2],g[0]),ke(g[2],g[1]),g};function Ap(r){return!isNaN(r)&&!isFinite(r)}function PR(r,e,t,a){var n=1-r,i=a.dimensions[r];return Ap(e[n])&&Ap(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function cne(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(PR(1,t,a,r)||PR(0,t,a,r)))return!0}return hf(r,e[0])&&hf(r,e[1])}function QS(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=ee(o.get("x"),n.getWidth()),u=ee(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var c=i.dimensions,f=r.get(c[0],e),h=r.get(c[1],e);s=i.dataToPoint([f,h])}if(qo(i,"cartesian2d")){var v=i.getAxis("x"),d=i.getAxis("y"),c=i.dimensions;Ap(r.get(c[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):Ap(r.get(c[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var fne=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=on.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=kp(o).from,u=kp(o).to;l.each(function(c){QS(l,c,!0,i,n),QS(u,c,!1,i,n)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new p_);this.group.add(c.group);var f=hne(o,t,a),h=f.from,v=f.to,d=f.line;kp(a).from=h,kp(a).to=v,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),m=a.get("symbolRotate"),_=a.get("symbolOffset");Y(p)||(p=[p,p]),Y(g)||(g=[g,g]),Y(m)||(m=[m,m]),Y(_)||(_=[_,_]),f.from.each(function(x){S(h,x,!0),S(v,x,!1)}),d.each(function(x){var b=d.getItemModel(x),w=b.getModel("lineStyle").getLineStyle();d.setItemLayout(x,[h.getItemLayout(x),v.getItemLayout(x)]);var C=b.get("z2");w.stroke==null&&(w.stroke=h.getItemVisual(x,"style").fill),d.setItemVisual(x,{z2:oe(C,0),fromSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(x,"symbolOffset"),fromSymbolRotate:h.getItemVisual(x,"symbolRotate"),fromSymbolSize:h.getItemVisual(x,"symbolSize"),fromSymbol:h.getItemVisual(x,"symbol"),toSymbolKeepAspect:v.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(x,"symbolOffset"),toSymbolRotate:v.getItemVisual(x,"symbolRotate"),toSymbolSize:v.getItemVisual(x,"symbolSize"),toSymbol:v.getItemVisual(x,"symbol"),style:w})}),c.updateData(d),f.line.eachItemGraphicEl(function(x){be(x).dataModel=a,x.traverse(function(b){be(b).dataModel=a})});function S(x,b,w){var C=x.getItemModel(b);QS(x,b,w,t,i);var E=C.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=Qu(l,"color")),x.setItemVisual(b,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:oe(C.get("symbolOffset",!0),_[w?0:1]),symbolRotate:oe(C.get("symbolRotate",!0),m[w?0:1]),symbolSize:oe(C.get("symbolSize"),g[w?0:1]),symbol:oe(C.get("symbol",!0),p[w?0:1]),style:E})}this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e})(jS);function hne(r,e,t){var a;r?a=K(r&&r.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return U(U({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new mr(a,t),i=new mr(a,t),o=new mr([],t),s=K(t.get("data"),Me(une,e,r,t));r&&(s=Ze(s,Me(cne,r)));var l=LR(!!r,a);return n.initData(K(s,function(u){return u[0]}),null,l),i.initData(K(s,function(u){return u[1]}),null,l),o.initData(K(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function vne(r){r.registerComponentModel(lne),r.registerComponentView(fne),r.registerPreprocessor(function(e){ZS(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var dne=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e})(on),Mp=De(),pne=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=ff(r,n),s=ff(r,i),l=o.coord,u=s.coord;l[0]=Ft(l[0],-1/0),l[1]=Ft(l[1],-1/0),u[0]=Ft(u[0],1/0),u[1]=Ft(u[1],1/0);var c=Xp([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Ip(r){return!isNaN(r)&&!isFinite(r)}function RR(r,e,t,a){var n=1-r;return Ip(e[n])&&Ip(t[n])}function gne(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return qo(r,"cartesian2d")?t&&a&&(RR(1,t,a)||RR(0,t,a))?!0:ane(r,n,i):hf(r,n)||hf(r,i)}function OR(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=ee(o.get(t[0]),n.getWidth()),u=ee(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var c=r.getValues(["x0","y0"],e),f=r.getValues(["x1","y1"],e),h=i.clampData(c),v=i.clampData(f),d=[];t[0]==="x0"?d[0]=h[0]>v[0]?f[0]:c[0]:d[0]=h[0]>v[0]?c[0]:f[0],t[1]==="y0"?d[1]=h[1]>v[1]?f[1]:c[1]:d[1]=h[1]>v[1]?c[1]:f[1],s=a.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),m=[p,g];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(qo(i,"cartesian2d")){var _=i.getAxis("x"),S=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);Ip(p)?s[0]=_.toGlobalCoord(_.getExtent()[t[0]==="x0"?0:1]):Ip(g)&&(s[1]=S.toGlobalCoord(S.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var VR=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mne=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=on.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=K(VR,function(f){return OR(s,l,f,i,n)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new ge});this.group.add(c.group),this.markKeep(c);var f=yne(o,t,a);a.setData(f),f.each(function(h){var v=K(VR,function(D){return OR(f,h,D,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),m=p.getExtent(),_=[d.parse(f.get("x0",h)),d.parse(f.get("x1",h))],S=[p.parse(f.get("y0",h)),p.parse(f.get("y1",h))];Zt(_),Zt(S);var x=!(g[0]>_[1]||g[1]<_[0]||m[0]>S[1]||m[1]<S[0]),b=!x;f.setItemLayout(h,{points:v,allClipped:b});var w=f.getItemModel(h),C=w.getModel("itemStyle").getItemStyle(),E=w.get("z2"),T=Qu(l,"color");C.fill||(C.fill=T,Q(C.fill)&&(C.fill=zf(C.fill,.4))),C.stroke||(C.stroke=T),f.setItemVisual(h,"style",C),f.setItemVisual(h,"z2",oe(E,0))}),f.diff(Mp(c).data).add(function(h){var v=f.getItemLayout(h),d=f.getItemVisual(h,"z2");if(!v.allClipped){var p=new nr({z2:oe(d,0),shape:{points:v.points}});f.setItemGraphicEl(h,p),c.group.add(p)}}).update(function(h,v){var d=Mp(c).data.getItemGraphicEl(v),p=f.getItemLayout(h),g=f.getItemVisual(h,"z2");p.allClipped?d&&c.group.remove(d):(d?$e(d,{z2:oe(g,0),shape:{points:p.points}},a,h):d=new nr({shape:{points:p.points}}),f.setItemGraphicEl(h,d),c.group.add(d))}).remove(function(h){var v=Mp(c).data.getItemGraphicEl(h);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(h,v){var d=f.getItemModel(v),p=f.getItemVisual(v,"style");h.useStyle(f.getItemVisual(v,"style")),Vt(h,Lt(d),{labelFetcher:a,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:Q(p.fill)?zf(p.fill,1):H.color.neutral99}),It(h,d),ut(h,null,null,d.get(["emphasis","disabled"])),be(h).dataModel=a}),Mp(c).data=f,c.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e})(jS);function yne(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=K(r&&r.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return U(U({},f),{name:u,ordinalMeta:null})});n=K(i,function(u,c){return{name:u,type:o[c%2].type}}),a=new mr(n,t)}else n=[{name:"value",type:"float"}],a=new mr(n,t);var s=K(t.get("data"),Me(pne,e,r,t));r&&(s=Ze(s,Me(gne,r)));var l=r?function(u,c,f,h){var v=u.coord[Math.floor(h/2)][h%2];return fi(v,n[h])}:function(u,c,f,h){return fi(u.value,n[h])};return a.initData(s,null,l),a.hasItemOption=!0,a}function _ne(r){r.registerComponentModel(dne),r.registerComponentView(mne),r.registerPreprocessor(function(e){ZS(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sne=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},JS=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),Y(a)&&k(a,function(i,o){Q(i)&&(i={type:i}),a[o]=ke(i,Sne(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,h=f.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):c=!0}else c=!0;c&&tm(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=re(),s=K(i,function(l){return(Q(l)||Ge(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ze(l,this,this.ecModel))},this);this._data=Ze(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;k(i,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;k(t,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;k(t,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&Ee(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:H.size.m,align:"auto",backgroundColor:H.color.transparent,borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:H.color.disabled,inactiveBorderColor:H.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:H.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:H.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:H.color.tertiary,borderWidth:1,borderColor:H.color.border},emphasis:{selectorLabel:{show:!0,color:H.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Ne),Xl=Me,ex=k,Lp=ge,BR=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Lp),this.group.add(this._selectorGroup=new Lp),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var c=Nt(t,n).refContainer,f=t.getBoxLayoutParams(),h=t.get("padding"),v=ct(f,c,h),d=this.layoutInner(t,o,v,i,l,u),p=ct(me({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=YP(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),c=re(),f=a.get("selectedMode"),h=a.get("triggerEvent"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),ex(a.getData(),function(d,p){var g=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
73
+ `)){var _=new Lp;_.newline=!0,u.add(_);return}var S=n.getSeriesByName(m)[0];if(!c.get(m)){if(S){var x=S.getData(),b=x.getVisual("legendLineStyle")||{},w=x.getVisual("legendIcon"),C=x.getVisual("style"),E=this._createItem(S,m,p,d,a,t,b,C,w,f,i);E.on("click",Xl(zR,m,null,i,v)).on("mouseover",Xl(tx,S.name,null,i,v)).on("mouseout",Xl(rx,S.name,null,i,v)),n.ssr&&E.eachChild(function(T){var D=be(T);D.seriesIndex=S.seriesIndex,D.dataIndex=p,D.ssrType="legend"}),h&&E.eachChild(function(T){g.packEventData(T,a,S,p,m)}),c.set(m,!0)}else n.eachRawSeries(function(T){var D=this;if(!c.get(m)&&T.legendVisualProvider){var A=T.legendVisualProvider;if(!A.containName(m))return;var I=A.indexOfName(m),M=A.getItemVisual(I,"style"),L=A.getItemVisual(I,"legendIcon"),N=Cr(M.fill);N&&N[3]===0&&(N[3]=.2,M=U(U({},M),{fill:Ea(N,"rgba")}));var R=this._createItem(T,m,p,d,a,t,{},M,L,f,i);R.on("click",Xl(zR,null,m,i,v)).on("mouseover",Xl(tx,null,m,i,v)).on("mouseout",Xl(rx,null,m,i,v)),n.ssr&&R.eachChild(function(P){var O=be(P);O.seriesIndex=T.seriesIndex,O.dataIndex=p,O.ssrType="legend"}),h&&R.eachChild(function(P){D.packEventData(P,a,T,p,m)}),c.set(m,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,a,i,s,l)},e.prototype.packEventData=function(t,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};be(t).eventData=s},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();ex(t,function(u){var c=u.type,f=new Fe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(f);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);Vt(f,{normal:h,emphasis:v},{defaultText:u.title}),co(f)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,c,f,h){var v=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),m=i.get("symbolRotate"),_=i.get("symbolKeepAspect"),S=i.get("icon");c=S||c||"roundRect";var x=xne(c,i,l,u,v,g,h),b=new Lp,w=i.getModel("textStyle");if(ce(t.getLegendIcon)&&(!S||S==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:_}));else{var C=S==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;b.add(bne({itemWidth:d,itemHeight:p,icon:c,iconRotate:C,itemStyle:x.itemStyle,symbolKeepAspect:_}))}var E=s==="left"?d+5:-5,T=s,D=o.get("formatter"),A=a;Q(D)&&D?A=D.replace("{name}",a??""):ce(D)&&(A=D(a));var I=g?w.getTextColor():i.get("inactiveColor");b.add(new Fe({style:at(w,{text:A,x:E,y:p/2,fill:I,align:T,verticalAlign:"middle"},{inheritColor:I})}));var M=new Le({shape:b.getBoundingRect(),style:{fill:"transparent"}}),L=i.getModel("tooltip");return L.get("show")&&Tn({el:M,componentModel:o,itemName:a,itemTooltipOption:L.option}),b.add(M),b.eachChild(function(N){N.silent=!0}),M.silent=!f,this.getContentGroup().add(b),co(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Co(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Co("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",_=p===0?"y":"x";s==="end"?v[p]+=c[g]+d:f[p]+=h[g]+d,v[1-p]+=c[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var S={x:0,y:0};return S[g]=c[g]+d+h[g],S[m]=Math.max(c[m],h[m]),S[_]=Math.min(0,h[_]+v[1-p]),S}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(st);function xne(r,e,t,a,n,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),ex(g,function(_,S){g[S]==="inherit"&&(g[S]=m[S])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:vl(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function bne(r){var e=r.icon||"roundRect",t=Dt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=H.color.neutral00,t.style.lineWidth=2),t}function zR(r,e,t,a){rx(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),tx(r,e,t,a)}function tx(r,e,t,a){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function rx(r,e,t,a){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function vf(r,e,t){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){a?s[r]():s[r](e.name),GR(s,n),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){k(n,function(l,u){s[l?"select":"unSelect"](u)}),GR(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function GR(r,e){var t=e||{};return k(r.getData(),function(a){var n=a.get("name");if(!(n===`
74
+ `||n==="")){var i=r.isSelected(n);ae(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function wne(r){r.registerAction("legendToggleSelect","legendselectchanged",Me(vf,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Me(vf,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Me(vf,"inverseSelect")),r.registerAction("legendSelect","legendselected",Me(vf,"select")),r.registerAction("legendUnSelect","legendunselected",Me(vf,"unSelect"))}var Cne=Su(Tne);function Tne(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function FR(r){r.registerComponentModel(JS),r.registerComponentView(BR),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Cne),r.registerSubTypeDefaulter("legend",function(){return"plain"}),wne(r)}var Ene=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=To(t);r.prototype.init.call(this,t,a,n),HR(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),HR(this,this.option,t)},e.type="legend.scroll",e.defaultOption=ui(JS.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:H.color.accent50,pageIconInactiveColor:H.color.accent10,pageIconSize:15,pageTextStyle:{color:H.color.tertiary},animationDurationUpdate:800}),e})(JS);function HR(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,Ua(e,t,{type:"box",ignoreSize:!!n})}var $R=ge,ax=["width","height"],nx=["x","y"],Dne=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new $R),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new $R)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),h=Y(f)?f:[f,f];d("pagePrev",0);var v=a.getModel("pageTextStyle");c.add(new Fe({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",_=Lu(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:ie(u._pageGo,u,m,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});_.name=p,c.add(_)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=ax[u],f=nx[u],h=ax[1-u],v=nx[1-u];o&&Co("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=he(n);o&&(m[c]=n[c]-p[c]-d);var _=this._layoutContentAndController(t,i,m,u,c,h,v,f);if(o){if(s==="end")g[u]+=_[c]+d;else{var S=p[c]+d;g[u]-=S,_[f]-=S}_[c]+=p[c]+d,g[1-u]+=_[v]+_[h]/2-p[h]/2,_[h]=Math.max(_[h],p[h]),_[v]=Math.min(_[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return _},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;Co(t.get("orient"),c,t.get("itemGap"),i?n.width:null,i?null:n.height),Co("horizontal",h,t.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],g=[-v.x,-v.y];a||(g[i]=c[u]);var m=[0,0],_=[-d.x,-d.y],S=oe(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var x=t.get("pageButtonPosition",!0);x==="end"?_[i]+=n[o]-d[o]:m[i]+=d[o]+S}_[1-i]+=v[s]/2-d[s]/2,c.setPosition(g),f.setPosition(m),h.setPosition(_);var b={x:0,y:0};if(b[o]=p?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+_[1-i]),f.__rectSize=n[o],p){var w={x:0,y:0};w[o]=Math.max(n[o]-d[o]-S,0),w[s]=b[s],f.setClipPath(new Le({shape:w})),f.__rectSize=w[o]}else h.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(t);return C.pageIndex!=null&&$e(c,{x:C.contentPosition[0],y:C.contentPosition[1]},p?t:null),this._updatePageInfoView(t,C),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;k(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=a[f]!=null,v=n.childOfName(c);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=ax[o],l=nx[o],u=this._findTargetItemIndex(a),c=n.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=x(f);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,_=p,S=null;g<=h;++g)S=x(c[g]),(!S&&_.e>m.s+i||S&&!b(S,m.s))&&(_.i>m.i?m=_:m=S,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),_=S;for(var g=u-1,m=p,_=p,S=null;g>=-1;--g)S=x(c[g]),(!S||!b(_,S.s))&&m.i<_.i&&(_=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=S;return d;function x(w){if(w){var C=w.getBoundingRect(),E=C[l]+w[l];return{s:E,e:E+C[s],i:w.__legendDataIndex}}}function b(w,C){return w.e>=C&&w.s<=C+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e})(BR);function kne(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function Ane(r){Ae(FR),r.registerComponentModel(Ene),r.registerComponentView(Dne),kne(r)}function Mne(r){Ae(FR),Ae(Ane)}var Ine=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=ui(lf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(lf),ix=De();function Lne(r,e,t){ix(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function Nne(r,e){for(var t=ix(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var i=a[n],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||UR(t,o))}}}function UR(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Pne(r,e){var t={model:e,containsPoint:Me(One,e),dispatchAction:Me(Rne,r),dataZoomInfoMap:null,controller:null},a=t.controller=new ts(r.getZr());return k(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function Rne(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function One(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function Vne(r,e,t){var a,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return r.each(function(u){var c=u.model,f=c.get("disabled",!0)?!1:c.get("zoomLock",!0)?"move":!0;i[n+f]>i[n+a]&&(a=f),o=o&&c.get("preventDefaultMouseMove",!0),s=oe(c.get("cursorGrab",!0),s),l=oe(c.get("cursorGrabbing",!0),l)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function Bne(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var a=ix(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=re());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=GP(i);k(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,Pne(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=re());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){UR(n,i);return}var c=Vne(l,i,t);o.enable(c.controlType,c.opt),sl(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var zne=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Lne(n,t,{pan:ie(ox.pan,this),zoom:ie(ox.zoom,this),scrollMove:ie(ox.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Nne(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(PS),ox={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=sx[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(wi(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:WR(function(r,e,t,a,n,i){var o=sx[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:WR(function(r,e,t,a,n,i){var o=sx[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function WR(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(wi(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var sx={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function YR(r){RS(r),r.registerComponentModel(Ine),r.registerComponentView(zne),Bne(r)}var Gne=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ui(lf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:H.color.accent10,borderRadius:0,backgroundColor:H.color.transparent,dataBackground:{lineStyle:{color:H.color.accent30,width:.5},areaStyle:{color:H.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:H.color.accent40,width:.5},areaStyle:{color:H.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:H.color.neutral00,borderColor:H.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:H.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:H.color.tertiary},brushSelect:!0,brushStyle:{color:H.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:H.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(lf),df=Le,Fne=1,lx=30,Hne=7,pf="horizontal",XR="vertical",$ne=5,Une=["line","bar","candlestick","scatter"],Wne={easing:"cubicOut",duration:100,delay:0},Yne=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=ie(this._onBrush,this),this._onBrushEnd=ie(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),sl(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Zu(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new ge;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?Hne:0,o=Nt(t,a).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===pf?{right:o.width-s.x-s.width,top:o.height-lx-l-i,width:s.width,height:lx}:{right:l,top:s.y,width:lx,height:s.height},c=To(t.option);k(["right","top","width","height"],function(h){c[h]==="ph"&&(c[h]=u[h])});var f=ct(c,o);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===XR&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===pf&&!o?{scaleY:l?1:-1,scaleX:1}:n===pf&&o?{scaleY:l?1:-1,scaleX:-1}:n===XR&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]),c=isNaN(u.x)?0:u.x,f=isNaN(u.y)?0:u.y;t.x=a.x-c,t.y=a.y-f,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new df({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new df({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:ie(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var f=o.getDataExtent(t.thisDim),h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var d=[0,a[1]],p=[0,a[0]],g=[[a[0],0],[0,0]],m=[],_=p[1]/Math.max(1,o.count()-1),S=a[0]/(f[1]-f[0]),x=t.thisAxis.type==="time",b=-_,w=Math.round(o.count()/a[0]),C;o.each([t.thisDim,l],function(I,M,L){if(w>0&&L%w){x||(b+=_);return}b=x?(+I-f[0])*S:b+_;var N=M==null||isNaN(M)||M==="",R=N?0:Ue(M,h,d,!0);N&&!C&&L?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!N&&C&&(g.push([b,0]),m.push([b,0])),N||(g.push([b,R]),m.push([b,R])),C=N}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var E=this.dataZoomModel;function T(I){var M=E.getModel(I?"selectedDataBackground":"dataBackground"),L=new ge,N=new nr({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new Kt({shape:{points:c},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return L.add(N),L.add(R),L}for(var D=0;D<3;D++){var A=T(D===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();k(l,function(u){if(!n&&!(a!==!0&&Ee(Une,u.get("type"))<0)){var c=i.getComponent(Ai(o),s).axis,f=Xne(o),h,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(h=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f);var d=u.getData().mapDimension(o);n={thisAxis:c,series:u,thisDim:d,otherDim:f,otherAxisInverse:h}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=a.filler=new df({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new df({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Fne,fill:H.color.transparent}})),k([0,1],function(S){var x=l.get("handleIcon");!dv[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x,process.env.NODE_ENV!=="production"&&Pa("handleIcon now needs 'path://' prefix when using a path string"));var b=Dt(x,-1,0,2,2,null,!0);b.attr({cursor:Zne(this._orient),draggable:!0,drift:ie(this._onDragMove,this,S),ondragend:ie(this._onDragEnd,this),onmouseover:ie(this._onOverDataInfoTriggerArea,this,!0),onmouseout:ie(this._onOverDataInfoTriggerArea,this,!1),z2:5});var w=b.getBoundingRect(),C=l.get("handleSize");this._handleHeight=ee(C,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),co(b);var E=l.get("handleColor");E!=null&&(b.style.fill=E),o.add(n[S]=b);var T=l.getModel("textStyle"),D=l.get("handleLabel")||{},A=D.show||!1;t.add(i[S]=new Fe({silent:!0,invisible:!A,style:at(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var v=h;if(f){var d=ee(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new Le({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,m=a.moveHandleIcon=Dt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,H.color.neutral00,!0);m.silent=!0,m.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _=Math.min(s[1]/2,Math.max(d,10));v=a.moveZone=new Le({invisible:!0,shape:{y:s[1]-_,height:d+_}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:"grab",drift:ie(this._onActualMoveZoneDrift,this),ondragstart:ie(this._onActualMoveZoneDragStart,this),ondragend:ie(this._onActualMoveZoneDragEnd,this),onmouseover:ie(this._onOverDataInfoTriggerArea,this,!0),onmouseout:ie(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Ue(t[0],[0,100],a,!0),Ue(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];wi(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Ue(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ue(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Zt([Ue(i[0],o,l,!0),Ue(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=Zt(n.slice()),o=this._size;k([0,1],function(v){var d=a.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[v]+(v?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],h=f.getClipPath();h||(h=new Le,f.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var c=this._range,f;if(t){var h={start:c[0],end:c[1]},v=HP(a,l);if(v){var d=v.calculateDataWindow(h).percentInverted;h={start:d[0],end:d[1]}}f=l.calculateDataWindow(h)}else f=l.getWindow();s=[ZR(a,0,f,u),ZR(a,1,f,u)]}}var p=Zt(this._handleEnds.slice());g.call(this,0),g.call(this,1);function g(m){var _=js(n.handles[m].parent,this.group),S=Bh(m===0?"right":"left",_),x=this._handleWidth/2+$ne,b=da([p[m]+(m===0?-x:x),this._size[1]/2],_);i[m].setStyle({x:b[0],y:b[1],verticalAlign:o===pf?"middle":S,align:o===pf?S:"center",text:s[m]})}},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,a,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,a,n)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,hn(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=da([a,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new _e(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();wi(0,l,o,0,u.minSpan!=null?Ue(u.minSpan,s,o,!0):null,u.maxSpan!=null?Ue(u.maxSpan,s,o,!0):null),this._range=Zt([Ue(l[0],o,s,!0),Ue(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(hn(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new df({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Wne:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=GP(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(PS);function ZR(r,e,t,a){var n=r.get("labelFormatter"),i=r.get("labelPrecision");(i==null||i==="auto")&&(i=t.valuePrecision);var o=t.value[e],s=o==null||isNaN(o)?"":or(a)||lc(a)?a.getLabel({value:Math.round(o)}):isFinite(i)?He(o,i,!0):o+"";return ce(n)?n(o,s):Q(n)?n.replace("{value}",s):s}function Xne(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Zne(r){return r==="vertical"?"ns-resize":"ew-resize"}function qR(r){r.registerComponentModel(Gne),r.registerComponentView(Yne),RS(r)}function qne(r){Ae(YR),Ae(qR)}var KR={get:function(r,e,t){var a=he((Kne[r]||{})[e]);return t&&Y(a)?a[a.length-1]:a}},Kne={color:{active:["#006edd","#e0ffff"],inactive:[H.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},jR=zt.mapVisual,jne=zt.eachVisual,Qne=Y,ux=k,Jne=Zt,eie=Ue,Np=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&mR(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=ie(t,this),this.controllerVisuals=US(this.option.controller,a,t),this.targetVisuals=US(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,a=this.option.seriesTargets;if(a){var n=[];return ux(a,function(l){if(l.seriesIndex!=null)n.push(l.seriesIndex);else if(l.seriesId!=null){var u;t.ecModel.eachSeries(function(c){c.id===l.seriesId&&(u=c)}),u&&n.push(u.componentIndex)}}),n}var i=this.option.seriesId,o=this.option.seriesIndex;o==null&&i==null&&(o="all");var s=Bs(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return K(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,a){k(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],Y(t)&&(t=t.slice(),u=!0);var c=a?t:u?[f(t[0]),f(t[1])]:f(t);if(Q(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ce(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+c[1]:t[1]===s[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=Jne([t.min,t.max]);this._dataExtent=a},e.prototype.getDimension=function(t){var a=this,n=this.option.seriesTargets;if(n){var i=Fn(n,function(o){return o.seriesIndex!=null&&o.seriesIndex===t||o.seriesId!=null&&o.seriesId===a.ecModel.getSeriesByIndex(t).id});if(i)return i.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var a=t.hostModel.seriesIndex,n=this.getDimension(a);if(n!=null)return t.getDimensionIndex(n);for(var i=t.dimensions,o=i.length-1;o>=0;o--){var s=i[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ke(i,n),ke(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){Qne(a.color)&&!f.inRange&&(f.inRange={color:a.color.slice().reverse()}),f.inRange=f.inRange||{color:t.get("gradientColor")}}function u(f,h,v){var d=f[h],p=f[v];d&&!p&&(p=f[v]={},ux(d,function(g,m){if(zt.isValidType(m)){var _=KR.get(m,"inactive",s);_!=null&&(p[m]=_,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";ux(this.stateList,function(m){var _=this.itemSize,S=f[m];S||(S=f[m]={color:s?d:[d]}),S.symbol==null&&(S.symbol=h&&he(h)||(s?g:[g])),S.symbolSize==null&&(S.symbolSize=v&&he(v)||(s?_[0]:[_[0],_[0]])),S.symbol=jR(S.symbol,function(w){return w==="none"?g:w});var x=S.symbolSize;if(x!=null){var b=-1/0;jne(x,function(w){w>b&&(b=w)}),S.symbolSize=jR(x,function(w){return eie(w,[0,b],[0,_[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:H.color.transparent,borderColor:H.color.borderTint,contentColor:H.color.theme[0],inactiveColor:H.color.disabled,borderWidth:0,padding:H.size.m,textGap:10,precision:0,textStyle:{color:H.color.secondary}},e})(Ne),QR=[20,140],tie=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=QR[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=QR[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):Y(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),k(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=Zt((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent(),i=oe(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=t)&&(i&&a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=JR(this,"outOfRange",this.getExtent()),n=JR(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:t(v,d)})}for(var s=0,l=0,u=n.length,c=a.length;l<c&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var f=1;l<c;l++)(!n.length||n[n.length-1]<a[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ui(Np.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:H.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:H.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:H.color.shadow}}),e})(Np);function JR(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var eO=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=Bu(a.get("padding")||0),i=t.getBoundingRect();t.add(new Le({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function c(v,d){s[v]=d}var f=o.controllerVisuals[i||o.getValueState(t)],h=zt.prepareVisualTypes(f);return k(h,function(v){var d=f[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=f.__alphaForOpacity),zt.dependsOn(v,a)&&d&&d.applyVisual(t,u,c)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api,i=Nt(a,n).refContainer;ev(t,a.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(st),tO=[["left","right","width"],["top","bottom","height"]];function rO(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=tO[o],l=[0,null,10],u={},c=0;c<3;c++)u[tO[1-o][c]]=l[c],u[s[c]]=c===2?t[0]:a[s[c]];var f=[["x","width",3],["y","height",0]][o],h=ct(u,i,a.padding);return s[(h.margin[f[2]]||0)+h[f[0]]+h[f[1]]*.5<i[f[1]]*.5?0:1]}function Pp(r,e){return k(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var sn=Ue,rie=k,aO=Math.min,cx=Math.max,aie=12,nie=6,iie=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=ie(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ie(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),f=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Fe({style:at(v,{x:c[0],y:c[1],verticalAlign:v.get("verticalAlign")||(h==="horizontal"?"middle":f),align:v.get("align")||(h==="horizontal"?f:"center"),text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=rO(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new ge;u.add(c),c.add(n.outOfRange=nO()),c.add(n.inRange=nO(null,s?oO(this._orient):null,ie(this._dragHandle,this,"all",!1),ie(this._dragHandle,this,"all",!0))),c.setClipPath(new Le({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=a.textStyleModel.getTextRect("国"),h=cx(f.width,f.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=ie(this._dragHandle,this,n,!1),u=ie(this._dragHandle,this,n,!0),c=Ia(t.get("handleSize"),i[0]),f=Dt(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=oO(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){hn(m.event)}}),f.x=i[0]/2,f.useStyle(t.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),fo(f,!0),a.add(f);var v=this.visualMapModel.textStyleModel,d=new Fe({cursor:h,draggable:!0,drift:l,onmousemove:function(m){hn(m.event)},ondragend:u,style:at(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[c,0],g=this._shapes;g.handleThumbs[n]=f,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},e.prototype._createIndicator=function(t,a,n,i,o){var s=Ia(t.get("indicatorSize"),n[0]),l=Dt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof $t){var c=l.style;l.useStyle(U({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);a.add(l);var f=this.visualMapModel.textStyleModel,h=new Fe({silent:!0,invisible:!0,style:at(f,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:nie)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():iO(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[sn(a[0],n,i,!0),sn(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];wi(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[sn(i[0],o,s,!0),sn(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new vo(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new ge(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",n.mainGroup);rie([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=sn(t[f],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=da(n.handleLabelPoints[f],js(h,this.group));if(this._orient==="horizontal"){var g=c==="left"||c==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",h),d=this.getControllerVisual(t,"symbolSize"),p=sn(t,s,u,!0),g=l[0]-d/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var _=da(c.indicatorLabelPoint,js(f,this.group)),S=c.indicatorLabel;S.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),b=this._orient,w=b==="horizontal";S.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:w?x:"middle",align:w?"center":x});var C={x:g,y:p,style:{fill:v}},E={style:{x:_[0],y:_[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(C,T),S.animateTo(E,T)}else f.attr(C),S.attr(E);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var A=0;A<D.length;A++)this.api.enterBlur(D[A])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=aO(cx(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=aO(cx(o[0],t),o[1]);var l=oie(n,s,o),u=[t-l,t+l],c=sn(t,o,s,!0),f=[sn(u[0],o,s,!0),sn(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),a&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(a||iO(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var d=_6(h,v);this._dispatchHighDown("downplay",Pp(d[0],n)),this._dispatchHighDown("highlight",Pp(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(Lo(t.target,function(l){var u=be(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Pp(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=js(a,i?null:this.group);return Y(t)?da(t,o,n):Bh(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(eO);function nO(r,e,t,a){return new nr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){hn(n.event)},ondragend:a})}function oie(r,e,t){var a=aie/2,n=r.get("hoverLinkDataSize");return n&&(a=sn(n,e,t,!0)/2),a}function iO(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function oO(r){return r==="vertical"?"ns-resize":"ew-resize"}var sie={type:"selectDataRange",event:"dataRangeSelected",update:"update"},lie=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},uie=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(Aae(a.stateList,a.targetVisuals,ie(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(ie(cie,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function cie(r,e,t,a){for(var n=e.targetVisuals[a],i=zt.prepareVisualTypes(n),o={color:Qu(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=n[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,f,h)}return o.color;function f(v){return o[v]}function h(v,d){o[v]=d}}var fx=k;function fie(r){var e=r&&r.visualMap;Y(e)||(e=e?[e]:[]),fx(e,function(t){if(t){Zl(t,"splitList")&&!Zl(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;if(a&&Y(a)&&fx(a,function(i){de(i)&&(Zl(i,"start")&&!Zl(i,"min")&&(i.min=i.start),Zl(i,"end")&&!Zl(i,"max")&&(i.max=i.end))}),process.env.NODE_ENV!=="production"){var n=t.seriesTargets;n&&Y(n)&&fx(n,function(i){(!de(i)||i.dimension==null)&&console.warn("Each seriesTarget should have a dimension property"),i.seriesIndex==null&&i.seriesId==null&&console.warn("Each seriesTarget should have either seriesIndex or seriesId")})}}})}function Zl(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var sO=!1;function lO(r){sO||(sO=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(sie,lie),k(uie,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(fie))}function uO(r){r.registerComponentModel(tie),r.registerComponentView(iie),lO(r)}var hie=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],vie[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=he(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=K(this._pieceList,function(l){return l=he(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=zt.listVisualTypes(),i=this.isCategory();k(t.pieces,function(s){k(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),k(a,function(s,l){var u=!1;k(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&k(this.stateList,function(c){(t[c]||(t[c]={}))[l]=KR.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,k(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var s=!1;k(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=he(t)},e.prototype.getValueState=function(t){var a=zt.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=zt.findPieceIndex(l,n);c===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(c,f){var h=i.getRepresentValue({interval:c});f||(f=i.getValueState(h));var v=t(h,f);c[0]===-1/0?n[0]=v:c[1]===1/0?n[1]=v:a.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return k(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=ui(Np.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(Np),vie={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),lw(r),k(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;k(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),cO(e,r)},pieces:function(r){var e=this.option;k(e.pieces,function(t,a){de(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var h=[["gte","gt","min"],["lte","lt","max"]][f],v=0;v<3&&o[f]==null;v++)o[f]=t[h[v]],s[f]=l[v],c[f]=v===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&o[0]>o[1]&&console.warn("Piece "+a+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=zt.retrieveVisuals(t),r.push(n)},this),cO(e,r),lw(r),k(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function cO(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var die=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,c=Ft(a.get("showLabel",!0),!u),f=!a.get("selectedMode");u&&this._renderEndsText(t,u[0],s,c,o),k(l.viewPieceList,function(h){var v=h.piece,d=new ge;d.onclick=ie(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=a.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],f),c){var g=this.visualMapModel.getValueState(p),m=i.get("align")||o;d.add(new Fe({style:at(i,{x:m==="right"?-n:s[0]+n,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:m,opacity:oe(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:f}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,c,o),Co(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Pp(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return rO(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new ge,l=this.visualMapModel.textStyleModel;s.add(new Fe({style:at(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=K(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=Dt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=he(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,k(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(eO);function fO(r){r.registerComponentModel(hie),r.registerComponentView(die),lO(r)}function pie(r){Ae(uO),Ae(fO)}var gie=(function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:QC(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var a=t.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r})(),mie=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,a){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new gie(this);if(this._target=null,this.ecModel.eachSeries(function(n){vL(n,null)}),this.shouldShow()){var a=this.getTarget();vL(a.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null,process.env.NODE_ENV!=="production"&&Be("series."+t.subType+" is not supported in thumbnail.",!0)):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:H.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:H.color.neutral30,borderColor:H.color.neutral40,opacity:.3},z:10},e})(Ne),yie=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this._api=n,this._model=t,this._coordSys||(this._coordSys=new Cd),!this._isEnabled()){this._clear();return}this._renderVersion=n.getECUpdateCycleVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||H.color.neutral00);var l=Nt(t,n).refContainer,u=ct(LT(t,!0),l),c=s.lineWidth||0,f=this._contentRect=mo(u.clone(),c/2,!0,!0),h=new ge;i.add(h),h.setClipPath(new Le({shape:f.plain()}));var v=this._targetGroup=new ge;h.add(v);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Le({style:s,shape:d,silent:!1,cursor:"grab"}));var p=t.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);h.add(this._windowRect=new Le({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),vO(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),vO(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=t.z2Range.min-10,Ad(n,s.x,s.y,s.width,s.height);var l=ct({left:"center",top:"center",aspect:s.width/s.height},i);Md(n,l.x,l.y,l.width,l.height),Hc(o,n,ns),o.dirty(),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var a=this._bridgeRendered;a&&a.renderVersion===t.renderVersion&&(a.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var a=Hr([],t.targetTrans),n=Fr([],Ed(null,this._coordSys),a);this._transThisToTarget=Hr([],n);var i=t.viewportRect;i?i=i.clone():i=new pe(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(me({r:s},i))}},e.prototype._resetRoamController=function(t){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new ts(n.getZr())),!t||!this._isEnabled()){i.disable();return}i.enable(t,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",ie(this._onPan,this)).on("zoom",ie(this._onZoom,this))},e.prototype._onPan=function(t){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=gt([],[t.oldX,t.oldY],a),i=gt([],[t.oldX-t.dx,t.oldY-t.dy],a);this._api.dispatchAction(hO(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},e.prototype._onZoom=function(t){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=gt([],[t.originX,t.originY],a);this._api.dispatchAction(hO(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:n[0],originY:n[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var a=t.getTarget().baseMapProvider;return!!a},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e})(st);function hO(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:t};return a[r.mainType+"Id"]=r.id,U(a,e),a}function vO(r,e){var t=yo(r);Gh(e.group,t.z,t.zlevel)}function _ie(r){r.registerComponentModel(mie),r.registerComponentView(yie)}var Sie={label:{enabled:!0},decal:{show:!1}},dO=De(),pO=De(),xie=Su(bie);function bie(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=pO(r).scope||(pO(r).scope={}),n=he(Sie);ke(n.label,r.getLocaleModel().get("aria"),!1),ke(t.option,n,!1),i(),o();function i(){var c=t.getModel("decal"),f=c.get("show");if(f){var h=re();r.eachSeries(function(v){v.isColorBySeries()||(dO(v).scope=h.get(v.type)||h.set(v.type,{}))}),r.eachSeries(function(v){if(ce(v.enableAriaDecal)){v.enableAriaDecal();return}var d=v.getData();if(v.isColorBySeries()){var S=Ty(v.ecModel,v.name,a,r.getSeriesCount()),x=d.getVisual("decal");d.setVisual("decal",b(x,S))}else{var p=v.getRawData(),g={},m=dO(v).scope;d.each(function(w){var C=d.getRawIndex(w);g[C]=w});var _=p.count();p.each(function(w){var C=g[w],E=p.getName(w)||w+"",T=Ty(v.ecModel,E,m,_),D=d.getItemVisual(C,"decal");d.setItemVisual(C,"decal",b(D,T))})}function b(w,C){var E=w?U(U({},C),w):C;return E.dirty=!0,E}})}}function o(){var c=e.getZr().dom;if(c){var f=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=me(h.option,f),!!h.get("enabled")){if(c.setAttribute("role","img"),h.get("description")){c.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),d=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,g=Math.min(v,p),m;if(!(v<1)){var _=l();if(_){var S=h.get(["general","withTitle"]);m=s(S,{title:_})}else m=h.get(["general","withoutTitle"]);var x=[],b=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);m+=s(b,{seriesCount:v}),r.eachSeries(function(T,D){if(D<g){var A=void 0,I=T.get("name"),M=I?"withName":"withoutName";A=v>1?h.get(["series","multiple",M]):h.get(["series","single",M]),A=s(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var L=T.getData();if(L.count()>d){var N=h.get(["data","partialData"]);A+=s(N,{displayCnt:d})}else A+=h.get(["data","allData"]);for(var R=h.get(["data","separator","middle"]),P=h.get(["data","separator","end"]),O=h.get(["data","excludeDimensionId"]),G=[],F=0;F<L.count();F++)if(F<d){var B=L.getName(F),$=O?Ze(L.getValues(F),function(W,V){return Ee(O,V)===-1}):L.getValues(F),j=h.get(["data",B?"withName":"withoutName"]);G.push(s(j,{name:B,value:$.join(R)}))}A+=G.join(R)+P,x.push(A)}});var w=h.getModel(["series","multiple","separator"]),C=w.get("middle"),E=w.get("end");m+=x.join(C)+E,c.setAttribute("aria-label",m)}}}}function s(c,f){if(!Q(c))return c;var h=c;return k(f,function(v,d){h=h.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),v)}),h}function l(){var c=r.get("title");return c&&c.length&&(c=c[0]),c&&c.text}function u(c){var f=r.getLocaleModel().get(["series","typeNames"]);return f[c]||f.chart}}function wie(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},k(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function Cie(r){r.registerPreprocessor(wie),r.registerVisual(r.PRIORITY.VISUAL.ARIA,xie)}var gO={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Tie=(function(){function r(e){var t=this._condVal=Q(e)?new RegExp(e):Xx(e)?e:null;if(t==null){var a="";process.env.NODE_ENV!=="production"&&(a=vr("Illegal regexp",e,"in")),Ye(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return Q(t)?this._condVal.test(e):Ge(t)?this._condVal.test(e+""):!1},r})(),Eie=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),Die=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),kie=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),Aie=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),Mie=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r})();function hx(r,e){if(r===!0||r===!1){var t=new Eie;return t.value=r,t}var a="";return yO(r)||(process.env.NODE_ENV!=="production"&&(a=vr("Illegal config. Expect a plain object but actually",r)),Ye(a)),r.and?mO("and",r,e):r.or?mO("or",r,e):r.not?Iie(r,e):Lie(r,e)}function mO(r,e,t){var a=e[r],n="";process.env.NODE_ENV!=="production"&&(n=vr('"and"/"or" condition should only be `'+r+": [...]` and must not be empty array.","Illegal condition:",e)),Y(a)||Ye(n),a.length||Ye(n);var i=r==="and"?new Die:new kie;return i.children=K(a,function(o){return hx(o,t)}),i.children.length||Ye(n),i}function Iie(r,e){var t=r.not,a="";process.env.NODE_ENV!=="production"&&(a=vr('"not" condition should only be `not: {}`.',"Illegal condition:",r)),yO(t)||Ye(a);var n=new Aie;return n.child=hx(t,e),n.child||Ye(a),n}function Lie(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=Oe(r),o=r.parser,s=o?y2(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=ae(gO,u)?gO[u]:u,f=r[u],h=s?s(f):f,v=UH(c,h)||c==="reg"&&new Tie(h);v||(process.env.NODE_ENV!=="production"&&(t=vr('Illegal relational operation: "'+u+'" in condition:',r)),Ye(t)),n.push(v)}}n.length||(process.env.NODE_ENV!=="production"&&(t=vr("Relational condition must have at least one operator.","Illegal condition:",r)),Ye(t));var d=new Mie;return d.valueGetterParam=a,d.valueParser=s,d.getValue=e.getValue,d.subCondList=n,d}function yO(r){return de(r)&&!er(r)}var Nie=(function(){function r(e,t){this._cond=hx(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function Pie(r,e){return new Nie(r,e)}var Rie={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=Pie(r.config,{valueGetterAttrMap:re({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ae(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=vr('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),Ye(l));var c=e.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=vr("Can not find dimension info via: "+u+`.
75
+ `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
76
+ `,"Illegal condition:",s,`.
77
+ `)),Ye(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},vx="";process.env.NODE_ENV!=="production"&&(vx=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var Oie={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",n=tt(t);n.length||(process.env.NODE_ENV!=="production"&&(a="Empty `config` in sort transform."),Ye(a));var i=[];k(n,function(c){var f=c.dimension,h=c.order,v=c.parser,d=c.incomparable;if(f==null&&(process.env.NODE_ENV!=="production"&&(a='Sort transform config must has "dimension" specified.'+vx),Ye(a)),h!=="asc"&&h!=="desc"&&(process.env.NODE_ENV!=="production"&&(a='Sort transform config must has "order" specified.'+vx),Ye(a)),d&&d!=="min"&&d!=="max"){var p="";process.env.NODE_ENV!=="production"&&(p='incomparable must be "min" or "max" rather than "'+d+'".'),Ye(p)}if(h!=="asc"&&h!=="desc"){var g="";process.env.NODE_ENV!=="production"&&(g='order must be "asc" or "desc" rather than "'+h+'".'),Ye(g)}var m=e.getDimensionInfo(f);m||(process.env.NODE_ENV!=="production"&&(a=vr("Can not find dimension info via: "+f+`.
78
+ `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
79
+ `,"Illegal config:",c,`.
80
+ `)),Ye(a));var _=v?y2(v):null;v&&!_&&(process.env.NODE_ENV!=="production"&&(a=vr("Invalid parser name "+v+`.
81
+ `,"Illegal config:",c,`.
82
+ `)),Ye(a)),i.push({dimIdx:m.index,parser:_,comparator:new S2(h,d)})});var o=e.sourceFormat;o!==Ut&&o!==Rr&&(process.env.NODE_ENV!=="production"&&(a='sourceFormat "'+o+'" is not supported yet'),Ye(a));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<i.length;h++){var v=i[h],d=e.retrieveValueFromItem(c,v.dimIdx),p=e.retrieveValueFromItem(f,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function Vie(r){r.registerTransform(Rie),r.registerTransform(Oie)}var Bie=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new k2(this),A2(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),A2(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:fa},e})(Ne),zie=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(st);function Gie(r){r.registerComponentModel(Bie),r.registerComponentView(zie)}var ln=Ga.CMD;function ql(r,e){return Math.abs(r-e)<1e-5}function dx(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(M,L){n&&n.length>2&&a.push(n),n=[M,L]}function c(M,L,N,R){ql(M,N)&&ql(L,R)||n.push(M,L,N,R,N,R)}function f(M,L,N,R,P,O){var G=Math.abs(L-M),F=Math.tan(G/4)*4/3,B=L<M?-1:1,$=Math.cos(M),j=Math.sin(M),W=Math.cos(L),V=Math.sin(L),q=$*P+N,Ce=j*O+R,fe=W*P+N,ne=V*O+R,we=P*F*B,se=O*F*B;n.push(q-we*j,Ce+se*$,fe+we*V,ne-se*W,fe,ne)}for(var h,v,d,p,g=0;g<t;){var m=e[g++],_=g===1;switch(_&&(i=e[g],o=e[g+1],s=i,l=o,(m===ln.L||m===ln.C||m===ln.Q)&&(n=[s,l])),m){case ln.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case ln.L:h=e[g++],v=e[g++],c(i,o,h,v),i=h,o=v;break;case ln.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case ln.Q:h=e[g++],v=e[g++],d=e[g++],p=e[g++],n.push(i+2/3*(h-i),o+2/3*(v-o),d+2/3*(h-d),p+2/3*(v-p),d,p),i=d,o=p;break;case ln.A:var S=e[g++],x=e[g++],b=e[g++],w=e[g++],C=e[g++],E=e[g++]+C;g+=1;var T=!e[g++];h=Math.cos(C)*b+S,v=Math.sin(C)*w+x,_?(s=h,l=v,u(s,l)):c(i,o,h,v),i=Math.cos(E)*b+S,o=Math.sin(E)*w+x;for(var D=(T?-1:1)*Math.PI/2,A=C;T?A>E:A<E;A+=D){var I=T?Math.max(A+D,E):Math.min(A+D,E);f(A,I,S,x,b,w)}break;case ln.R:s=i=e[g++],l=o=e[g++],h=s+e[g++],v=l+e[g++],u(h,l),c(h,l,h,v),c(h,v,s,v),c(s,v,s,l),c(s,l,h,l);break;case ln.Z:n&&c(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function px(r,e,t,a,n,i,o,s,l,u){if(ql(r,t)&&ql(e,a)&&ql(n,o)&&ql(i,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-r,v=s-e,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=t-r,g=a-e,m=n-o,_=i-s,S=p*p+g*g,x=m*m+_*_;if(S<f&&x<f){l.push(o,s);return}var b=h*p+v*g,w=-h*m-v*_,C=S-b*b,E=x-w*w;if(C<f&&b>=0&&E<f&&w>=0){l.push(o,s);return}var T=[],D=[];qn(r,t,n,o,.5,T),qn(e,a,i,s,.5,D),px(T[0],D[0],T[1],D[1],T[2],D[2],T[3],D[3],l,u),px(T[4],D[4],T[5],D[5],T[6],D[6],T[7],D[7],l,u)}function Fie(r,e){var t=dx(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],h=i[u++],v=i[u++],d=i[u++],p=i[u++];px(s,l,c,f,h,v,d,p,o,e),s=d,l=p}a.push(o)}return a}function _O(r,e,t){var a=r[e],n=r[1-e],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=t-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function SO(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,c=l>Math.abs(u),f=_O([l,u],c?0:1,e),h=(c?s:u)/f.length,v=0;v<f.length;v++)for(var d=(c?u:s)/f[v],p=0;p<f[v];p++){var g={};c?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=a+d*p,g.r=a+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=a+h*v,g.r=a+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function Hie(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=_O([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],d=0;d<o[h];d++){var p={};p[u]=h*f,p[c]=d*v,p[s]=f,p[l]=v,p.x+=r.x,p.y+=r.y,t.push(p)}}function xO(r,e,t,a){return r*a-t*e}function $ie(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=xO(c,f,l,u);if(Math.abs(h)<1e-6)return null;var v=r-n,d=e-i,p=xO(v,d,c,f)/h;return p<0||p>1?null:new _e(p*l+r,p*u+e)}function Uie(r,e,t){var a=new _e;_e.sub(a,t,e),a.normalize();var n=new _e;_e.sub(n,r,e);var i=n.dot(a);return i}function Kl(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function Wie(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=$ie(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:Uie(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,m){return g.projPt-m.projPt});var u=n[0],c=n[n.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var h=[u.pt.x,u.pt.y],v=[c.pt.x,c.pt.y],d=[h],p=[v],i=u.idx+1;i<=c.idx;i++)Kl(d,r[i].slice());Kl(d,v),Kl(d,h);for(var i=c.idx+1;i<=u.idx+a;i++)Kl(p,r[i%a].slice());return Kl(p,h),Kl(p,v),[{points:d},{points:p}]}function bO(r){var e=r.points,t=[],a=[];gh(e,t,a);var n=new pe(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new _e,c=new _e;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),Wie(e,u,c)}function Rp(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);Rp(r,i[0],n,a),Rp(r,i[1],t-n,a)}return a}function Yie(r,e){for(var t=[],a=0;a<e;a++)t.push(Hm(r));return t}function Xie(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function Zie(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function qie(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":Hie(a,e,t),n=Le;break;case"sector":SO(a,e,t),n=ar;break;case"circle":SO({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=ar;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=K(Fie(r.getUpdatedPathProxy(),o),function(m){return Zie(m)}),l=s.length;if(l===0)Rp(bO,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,f=K(s,function(m){var _=[],S=[];gh(m,_,S);var x=(S[1]-_[1])*(S[0]-_[0]);return c+=x,{poly:m,area:x}});f.sort(function(m,_){return _.area-m.area});for(var h=e,u=0;u<l;u++){var v=f[u];if(h<=0)break;var d=u===l-1?h:Math.ceil(v.area/c*e);d<0||(Rp(bO,{points:v.poly},d,t),h-=d)}}n=nr;break}if(!n)return Yie(r,e);for(var p=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),Xie(r,g),p.push(g)}return p}function Kie(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],h=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],m=o[v++],_=o[v++],S=o[v++],x=o[v++],b=o[v++];if(h<=0){f.push(g,m,_,S,x,b);continue}for(var w=Math.min(h,c-1)+1,C=1;C<=w;C++){var E=C/w;qn(d,g,_,x,E,n),qn(p,m,S,b,E,i),d=n[3],p=i[3],f.push(n[1],i[1],n[2],i[2],d,p),g=n[5],m=i[5],_=n[6],S=i[6]}h-=w-1}return o===r?[f,e]:[r,f]}function wO(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function jie(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],c=void 0,f=void 0;l?u?(t=Kie(l,u),c=t[0],f=t[1],a=c,n=f):(f=wO(n||l,l),c=l):(c=wO(a||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function CO(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],c=r[i+1],f=s*c-u*l;e+=f,t+=(s+u)*f,a+=(l+c)*f}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function Qie(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var v=h===0?c:(c+h-2)%l+2,d=r[v]-t[0],p=r[v+1]-t[1],g=e[h]-a[0],m=e[h+1]-a[1],_=g-d,S=m-p;f+=_*_+S*S}f<i&&(i=f,o=u)}return o}function Jie(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function eoe(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=CO(s),c=CO(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],h=[],v=0,d=1/0,p=[],g=s.length;i&&(s=Jie(s));for(var m=Qie(s,l,u,c)*6,_=g-2,S=0;S<_;S+=2){var x=(m+S)%_+2;f[S+2]=s[x]-u[0],f[S+3]=s[x+1]-u[1]}f[0]=s[m]-u[0],f[1]=s[m+1]-u[1];for(var b=a/t,w=-a/2;w<=a/2;w+=b){for(var C=Math.sin(w),E=Math.cos(w),T=0,S=0;S<s.length;S+=2){var D=f[S],A=f[S+1],I=l[S]-c[0],M=l[S+1]-c[1],L=I*E-M*C,N=I*C+M*E;p[S]=L,p[S+1]=N;var R=L-D,P=N-A;T+=R*R+P*P}if(T<d){d=T,v=w;for(var O=0;O<p.length;O++)h[O]=p[O]}}n.push({from:f,to:h,fromCp:u,toCp:c,rotation:-v})}return n}function Op(r){return r.__isCombineMorphing}var TO="__mOriginal_";function Vp(r,e,t){var a=TO+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function gf(r,e){var t=TO+e;r[t]&&(r[e]=r[t],r[t]=null)}function EO(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function DO(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=jie(dx(t),dx(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&EO(i,s),l&&EO(o,l),Vp(e,"updateTransform",{replace:u}),e.transform=null;var c=eoe(i,o,10,Math.PI),f=[];Vp(e,"buildPath",{replace:function(h){for(var v=e.__morphT,d=1-v,p=[],g=0;g<c.length;g++){var m=c[g],_=m.from,S=m.to,x=m.rotation*v,b=m.fromCp,w=m.toCp,C=Math.sin(x),E=Math.cos(x);Af(p,b,w,v);for(var T=0;T<_.length;T+=2){var D=_[T],A=_[T+1],I=S[T],M=S[T+1],L=D*d+I*v,N=A*d+M*v;f[T]=L*E-N*C+p[0],f[T+1]=L*C+N*E+p[1]}var R=f[0],P=f[1];h.moveTo(R,P);for(var T=2;T<_.length;){var I=f[T++],M=f[T++],O=f[T++],G=f[T++],F=f[T++],B=f[T++];R===I&&P===M&&O===F&&G===B?h.lineTo(F,B):h.bezierCurveTo(I,M,O,G,F,B),R=F,P=B}}}})}function gx(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;DO(r,e),e.__morphT=0;function i(){gf(e,"buildPath"),gf(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},me({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function toe(r,e,t,a,n,i){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(r&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Bp(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=K(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(f,t),a=Math.max(c,a),n=Math.max(f,n),[c,f]}),o=K(i,function(s,l){return{cp:s,z:toe(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function kO(r){return qie(r.path,r.count)}function mx(){return{fromIndividuals:[],toIndividuals:[],count:0}}function roe(r,e,t){var a=[];function n(b){for(var w=0;w<b.length;w++){var C=b[w];Op(C)?n(C.childrenRef()):C instanceof Re&&a.push(C)}}n(r);var i=a.length;if(!i)return mx();var o=t.dividePath||kO,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),mx();a=Bp(a),s=Bp(s);for(var l=t.done,u=t.during,c=t.individualDelay,f=new Da,h=0;h<i;h++){var v=a[h],d=s[h];d.parent=e,d.copyTransform(f),c||DO(v,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(b){for(var w=0;w<s.length;w++)s[w].addSelfToZr(b)}Vp(e,"addSelfToZr",{after:function(b){p(b)}}),Vp(e,"removeSelfFromZr",{after:function(b){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(b)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,gf(e,"addSelfToZr"),gf(e,"removeSelfFromZr")}var m=s.length;if(c)for(var _=m,S=function(){_--,_===0&&(g(),l&&l())},h=0;h<m;h++){var x=c?me({delay:(t.delay||0)+c(h,m,a[h],s[h]),done:S},t):t;gx(a[h],s[h],x)}else e.__morphT=0,e.animateTo({__morphT:1},me({during:function(b){for(var w=0;w<m;w++){var C=s[w];C.__morphT=e.__morphT,C.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)gf(r[b],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:a,toIndividuals:s,count:m}}function aoe(r,e,t){var a=e.length,n=[],i=t.dividePath||kO;function o(v){for(var d=0;d<v.length;d++){var p=v[d];Op(p)?o(p.childrenRef()):p instanceof Re&&n.push(p)}}if(Op(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(Hm(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var c=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(c);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),mx()}n=Bp(n),e=Bp(e);for(var f=t.individualDelay,u=0;u<a;u++){var h=f?me({delay:(t.delay||0)+f(u,a,n[u],e[u])},t):t;gx(n[u],e[u],h)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function AO(r){return Y(r[0])}function MO(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var noe={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=Hm(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function yx(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=Xs("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=U({setToFinal:!0},o),u,c;AO(r)&&(u=r,c=e),AO(e)&&(u=e,c=r);function f(m,_,S,x,b){var w=m.many,C=m.one;if(w.length===1&&!b){var E=_?w[0]:C,T=_?C:w[0];if(Op(E))f({many:[E],one:T},!0,S,x,!0);else{var D=s?me({delay:s(S,x)},l):l;gx(E,T,D),i(E,T,E,T,D)}}else for(var A=me({dividePath:noe[t],individualDelay:s&&function(P,O,G,F){return s(P+S,x)}},l),I=_?roe(w,C,A):aoe(C,w,A),M=I.fromIndividuals,L=I.toIndividuals,N=M.length,R=0;R<N;R++){var D=s?me({delay:s(R,N)},l):l;i(M[R],L[R],_?w[R]:m.one,_?m.one:w[R],D)}}for(var h=u?u===r:r.length>e.length,v=u?MO(c,u):MO(h?e:r,[h?r:e]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)f(v[p],h,g,d),g+=v[p].many.length}function ys(r){if(!r)return[];if(Y(r)){for(var e=[],t=0;t<r.length;t++)e.push(ys(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof Re&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var IO=1e4,ioe=0,LO=1,NO=2,ooe=De();function soe(r,e){for(var t=r.dimensions,a=0;a<t.length;a++){var n=r.getDimensionInfo(t[a]);if(n&&n.otherDims[e]===0)return t[a]}}function loe(r,e,t){var a=r.getDimensionInfo(t),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,e);return n&&n.categories[i]||i+""}}function PO(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=soe(r,n);if(i){var o=loe(r,e,i);return o}var s=r.getRawDataItem(e),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return t||r.getId(e)}function RO(r){var e=[];return k(r,function(t){var a=t.data,n=t.dataGroupId;if(a.count()>IO){process.env.NODE_ENV!=="production"&&lt("Universal transition is disabled on large data > 10k.");return}for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:PO(a,o,n,!1),childGroupId:PO(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function _x(r,e,t){r.traverse(function(a){a instanceof Re&&ot(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Sx(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function jl(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function uoe(r,e,t){var a=Xs("update",t,e);a&&r.traverse(function(n){if(n instanceof Wr){var i=gF(n);i&&n.animateFrom({style:i},a)}})}function coe(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function OO(r,e,t){var a=RO(r),n=RO(e);function i(S,x,b,w,C){(b||S)&&x.animateFrom({style:b&&b!==S?U(U({},b.style),S.style):S.style},C)}var o=!1,s=ioe,l=re(),u=re();k(a,function(S){S.groupId&&l.set(S.groupId,!0),S.childGroupId&&u.set(S.childGroupId,!0)});for(var c=0;c<n.length;c++){var f=n[c].groupId;if(u.get(f)){s=LO;break}var h=n[c].childGroupId;if(h&&l.get(h)){s=NO;break}}function v(S,x){return function(b){var w=b.data,C=b.dataIndex;return x?w.getId(C):S?s===LO?b.childGroupId:b.groupId:s===NO?b.childGroupId:b.groupId}}var d=coe(a,n),p={};if(!d)for(var c=0;c<n.length;c++){var g=n[c],m=g.data.getItemGraphicEl(g.dataIndex);m&&(p[m.id]=!0)}function _(S,x){var b=a[x],w=n[S],C=w.data.hostModel,E=b.data.getItemGraphicEl(b.dataIndex),T=w.data.getItemGraphicEl(w.dataIndex);if(E===T){T&&uoe(T,w.dataIndex,C);return}E&&p[E.id]||T&&(jl(T),E?(jl(E),Sx(E),o=!0,yx(ys(E),ys(T),w.divide,C,S,i)):_x(T,C,S))}new kn(a,n,v(!0,d),v(!1,d),null,"multiple").update(_).updateManyToOne(function(S,x){var b=n[S],w=b.data,C=w.hostModel,E=w.getItemGraphicEl(b.dataIndex),T=Ze(K(x,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==E&&!p[D.id]});E&&(jl(E),T.length?(k(T,function(D){jl(D),Sx(D)}),o=!0,yx(ys(T),ys(E),b.divide,C,S,i)):_x(E,C,b.dataIndex))}).updateOneToMany(function(S,x){var b=a[x],w=b.data.getItemGraphicEl(b.dataIndex);if(!(w&&p[w.id])){var C=Ze(K(S,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==w}),E=n[S[0]].data.hostModel;C.length&&(k(C,function(T){return jl(T)}),w?(jl(w),Sx(w),o=!0,yx(ys(w),ys(C),b.divide,E,S[0],i)):k(C,function(T){return _x(T,E,S[0])}))}}).updateManyToMany(function(S,x){new kn(x,S,function(b){return a[b].data.getId(a[b].dataIndex)},function(b){return n[b].data.getId(n[b].dataIndex)}).update(function(b,w){_(S[b],x[w])}).execute()}).execute(),o&&k(e,function(S){var x=S.data,b=x.hostModel,w=b&&t.getViewOfSeriesModel(b),C=Xs("update",b,0);w&&b.isAnimationEnabled()&&C&&C.duration>0&&w.group.traverse(function(E){E instanceof Re&&!E.animators.length&&E.animateFrom({style:{opacity:0}},C)})})}function VO(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function BO(r){return Y(r)?r.sort().join(","):r}function Ii(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function foe(r,e){var t=re(),a=re(),n=re();k(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],c=VO(o),f=BO(c);a.set(f,{dataGroupId:l,data:u}),Y(c)&&k(c,function(h){n.set(h,{key:f,dataGroupId:l,data:u})})});function i(o){t.get(o)&&lt("Duplicated seriesKey in universalTransition "+o)}return k(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=VO(o),c=BO(u),f=a.get(c);if(f)process.env.NODE_ENV!=="production"&&i(c),t.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Ii(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:Ii(l),data:l}]});else if(Y(u)){process.env.NODE_ENV!=="production"&&i(c);var h=[];k(u,function(p){var g=a.get(p);g.data&&h.push({dataGroupId:g.dataGroupId,divide:Ii(g.data),data:g.data})}),h.length&&t.set(c,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:Ii(l)}]})}else{var v=n.get(u);if(v){var d=t.get(v.key);d||(d={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Ii(v.data)}],newSeries:[]},t.set(v.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:Ii(l)})}}}}),t}function zO(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function hoe(r,e,t,a){var n=[],i=[];k(tt(r.from),function(o){var s=zO(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ii(e.oldData[s]),groupIdDim:o.dimension})}),k(tt(r.to),function(o){var s=zO(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ii(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&OO(n,i,a)}function voe(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){k(tt(a.seriesTransition),function(n){k(tt(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][lv]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=ooe(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)k(tt(i),function(v){hoe(v,n,a,t)});else{var o=foe(n,a);k(o.keys(),function(v){var d=o.get(v);OO(d.oldSeries,d.newSeries,t)})}k(a.updatedSeries,function(v){v[lv]&&(v[lv]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<IO&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}var doe=(function(){function r(e,t){p0(this,r.decoratedMethods),this._outOfBrk=m0(null,t);var a=this._linear=m0(null,t);g0(this,a),this.breaks=e&&e.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var a=0;a<this.breaks.length;a++){var n=this.breaks[a];if(n.vmin<e&&e<n.vmax){var i=t(e,n.vmax);return process.env.NODE_ENV!=="production"&&Z(i>=0&&La(i)===i),i}}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,t){return t==null||t===Mn?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,t){this.setExtent2(Ar,e,t)},setExtent2:function(e,t,a){ji(t,a)&&(e===Ar&&goe(this,[t,a]),this._outOfBrk.setExtent2(e,t,a),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(a,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,t){if(t&&t.depth===Mn)return e;for(var a=GO,n=FO,i=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(e<=s.vmax){e>s.vmin?a+=s.vmin-n+(e-s.vmin)/(s.vmax-s.vmin)*s.gapReal:a+=e-n,n=s.vmax,i=!1;break}a+=s.vmin-n+s.gapReal,n=s.vmax}return i&&(a+=e-n),a},transformOut:function(e,t){if(t&&t.depth===Mn)return e;for(var a=GO,n=FO,i=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=a+l.vmin-n,c=u+l.gapReal;if(e<=c){e>u?o=l.vmin+(e-u)/(c-u)*(l.vmax-l.vmin):o=n+e-a,n=l.vmax,i=!1;break}a=c,n=l.vmax}return i&&(o=n+e-a),o}},r})();function poe(r,e){return new doe(r,e)}var GO=0,FO=0;function goe(r,e){var t=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};k(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(t+=l.val);var u=xx(s,e);if(u){var c=u.vmin!==s.vmin,f=u.vmax!==s.vmax,h=u.vmax-u.vmin;if(!(c&&f))if(c||f){var v=c?"S":"E";i[v][l.type].has=!0,i[v][l.type].span=h,i[v][l.type].inExtFrac=h/(s.vmax-s.vmin),i[v][l.type].val=l.val}else a[l.type].span+=h,a[l.type].val+=l.val}});var o=t*(0+(e[1]-e[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));k(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=t!==0?Ie(o,0)*l.val/t:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function moe(r,e,t,a,n,i){r!=="no"&&k(t,function(o){var s=xx(o,i);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],c=a(u),f=n*3/4;c>s.vmin-f&&c<s.vmax+f&&(r!=="preserve_extent_bound"||c!==i[0]&&c!==i[1])&&e.splice(l,1)}})}function yoe(r,e,t,a){k(e,function(n){var i=xx(n,t);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:a?a(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:a?a(i):void 0}))}),e.length&&r.sort(function(n,i){return n.value-i.value})}function xx(r,e){var t=Ie(r.vmin,e[0]),a=Ke(r.vmax,e[1]);return t<a||t===a&&t>e[0]&&t<e[1]?{vmin:t,vmax:a,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function bx(r,e,t){var a=[];if(!r)return{breaks:a};function n(o,s){return o>=0&&o<1-1e-5?!0:(process.env.NODE_ENV!=="production"&&Be(s+" must be >= 0 and < 1, rather than "+o+" ."),!1)}k(r,function(o){if(!o||o.start==null||o.end==null){process.env.NODE_ENV!=="production"&&Be("The input axis breaks start/end should not be empty.");return}if(!o.isExpanded){var s={breakOption:he(o),vmin:e.parse(o.start),vmax:e.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(Q(o.gap)){var u=Br(o.gap);if(u.match(/%$/)){var c=parseFloat(u)/100;n(c,"Percent gap")||(c=0),s.gapParsed.type="tpPrct",s.gapParsed.val=c,l=!0}}if(!l){var f=e.parse(o.gap);(!isFinite(f)||f<0)&&(process.env.NODE_ENV!=="production"&&Be("Axis breaks gap must positive finite rather than ("+o.gap+")."),f=0),s.gapParsed.type="tpAbs",s.gapParsed.val=f}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&k(["vmin","vmax"],function(v){s[v]<0&&(process.env.NODE_ENV!=="production"&&Be("Axis break."+v+" must not be negative."),s[v]=0)}),s.vmin>s.vmax){var h=s.vmax;s.vmax=s.vmin,s.vmin=h}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return k(a,function(o,s){i>o.vmin&&(process.env.NODE_ENV!=="production"&&Be("Axis breaks must not overlap."),a[s]=null),i=o.vmax}),{breaks:Ze(a,function(o){return!!o})}}function Cx(r,e){return Tx(e)===Tx(r)}function Tx(r){return r.start+"_\0_"+r.end}function _oe(r,e,t){var a=[];k(r,function(i,o){var s=e(i);s&&s.type==="vmin"&&a.push([o])}),k(r,function(i,o){var s=e(i);if(s&&s.type==="vmax"){var l=Fn(a,function(u){return Cx(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return k(a,function(i){i.length===2&&n.push(t?i:[r[i[0]],r[i[1]]])}),n}function Soe(r,e,t,a){if(e.break){var n=e.break.parsedBreak,i=Fn(t,function(c){return Cx(c.breakOption,e.break.parsedBreak.breakOption)}),o={lookup:a,depth:Mn},s=r.transformOut(n.vmin,o),l=r.transformOut(n.vmax,o),u={vmin:s,vmax:l,breakOption:n.breakOption,gapParsed:he(i.gapParsed),gapReal:n.gapReal};return{tickVal:u[e.break.type],vBreak:{type:e.break.type,parsedBreak:u}}}}function xoe(r,e,t,a,n){n.original=bx(r,e,t);var i=n.transformed=bx(r,e,t),o=n.lookup;i.breaks=K(i.breaks,function(s,l){var u={depth:Mn},c=e.transformIn(s.vmin,u),f=e.transformIn(s.vmax,u),h={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?e.transformIn(s.vmin+s.gapParsed.val,u)-c:s.gapParsed.val};return o.from[a+l]=c,o.to[a+l]=s.vmin,o.from[a+l+1]=f,o.to[a+l+1]=s.vmax,{vmin:c,vmax:f,gapParsed:h,gapReal:s.gapReal,breakOption:s.breakOption}})}var boe={vmin:"start",vmax:"end"};function woe(r,e){return e&&(r=r||{},r.break={type:boe[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function Coe(){zF({createBreakScaleMapper:poe,pruneTicksByBreak:moe,addBreaksToTicks:yoe,parseAxisBreakOption:bx,identifyAxisBreak:Cx,serializeAxisBreakIdentifier:Tx,retrieveAxisBreakPairs:_oe,getTicksBreakOutwardTransform:Soe,parseAxisBreakOptionInwardTransform:xoe,makeAxisLabelFormatterParamBreak:woe})}var HO=De();function Toe(r,e){var t=Fn(r,function(a){return St().identifyAxisBreak(a.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function Eoe(r){k(r,function(e){return e.shouldRemove=!0})}function Doe(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function koe(r,e,t,a,n){var i=t.axis;if(i.scale.isBlank()||!St())return;var o=St().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(T){return T.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),c=s.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var f=s.get("expandOnClick"),h=s.get("zigzagZ"),v=s.getModel("itemStyle"),d=v.getItemStyle(),p=d.stroke,g=d.lineWidth,m=d.lineDash,_=d.fill,S=new ge({ignoreModelZ:!0}),x=i.isHorizontal(),b=HO(e).visualList||(HO(e).visualList=[]);Eoe(b);for(var w=function(T){var D=o[T][0].break.parsedBreak,A=[];A[0]=i.toGlobalCoord(i.dataToCoord(D.vmin,!0)),A[1]=i.toGlobalCoord(i.dataToCoord(D.vmax,!0)),A[1]<A[0]&&A.reverse();var I=Toe(b,D);I.shouldRemove=!1;var M=new ge;E(I.zigzagRandomList,M,A[0],A[1],x,D),f&&M.on("click",function(){var L={type:id,breaks:[{start:D.breakOption.start,end:D.breakOption.end}]};L[i.dim+"AxisIndex"]=t.componentIndex,n.dispatchAction(L)}),M.silent=!f,S.add(M)},C=0;C<o.length;C++)w(C);r.add(S),Doe(b);function E(T,D,A,I,M,L){var N={stroke:p,lineWidth:g,lineDash:m,fill:"none"},R=M?0:1,P=1-R,O=a[Te[P]]+a[_t[P]];function G(qe){var Pe=[],Xe=[];Pe[R]=Xe[R]=qe,Pe[P]=a[Te[P]],Xe[P]=O;var je={x1:Pe[0],y1:Pe[1],x2:Xe[0],y2:Xe[1]};return _h(je,je,{lineWidth:1}),Pe[0]=je.x1,Pe[1]=je.y1,Pe[R]}A=G(A),I=G(I);for(var F=[],B=[],$=!0,j=a[Te[P]],W=0;;W++){var V=j===a[Te[P]],q=j>=O;q&&(j=O);var Ce=[],fe=[];Ce[R]=A,fe[R]=I,!V&&!q&&(Ce[R]+=$?-l:l,fe[R]-=$?l:-l),Ce[P]=j,fe[P]=j,F.push(Ce),B.push(fe);var ne=void 0;if(W<T.length?ne=T[W]:(ne=Math.random(),T.push(ne)),j+=ne*(c-u)+u,$=!$,q)break}var we=St().serializeAxisBreakIdentifier(L.breakOption);if(D.add(new Kt({anid:"break_a_"+we,shape:{points:F},style:N,z:h})),L.gapReal!==0){D.add(new Kt({anid:"break_b_"+we,shape:{points:B},style:N,z:h}));var se=B.slice();se.reverse();var xe=F.concat(se);D.add(new nr({anid:"break_c_"+we,shape:{points:xe},style:{fill:_,opacity:d.opacity},z:h}))}}}function Aoe(r,e,t,a){var n=r.axis,i=t.transform;Z(a.style);var o=n.getExtent();n.inverse&&(o=o.slice(),o.reverse());var s=St().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=K(s,function(g){var m=g[0].break.parsedBreak,_=[n.dataToCoord(m.vmin,!0),n.dataToCoord(m.vmax,!0)];return _[0]>_[1]&&_.reverse(),{coordPair:_,brkId:St().serializeAxisBreakIdentifier(m.breakOption)}});l.sort(function(g,m){return g.coordPair[0]-m.coordPair[0]});for(var u=o[0],c=null,f=0;f<l.length;f++){var h=l[f],v=Math.max(h.coordPair[0],o[0]),d=Math.min(h.coordPair[1],o[1]);u<=v&&p(u,v,c,h),u=d,c=h}u<=o[1]&&p(u,o[1],c,null);function p(g,m,_,S){function x(A,I){i&&(gt(A,A,i),gt(I,I,i))}function b(A,I){var M={x1:A[0],y1:A[1],x2:I[0],y2:I[1]};_h(M,M,a.style),A[0]=M.x1,A[1]=M.y1,I[0]=M.x2,I[1]=M.y2}var w=[g,0],C=[m,0],E=[g,5],T=[m,5];x(w,E),b(w,E),x(C,T),b(C,T),b(w,C);var D=new Ct(U({shape:{x1:w[0],y1:w[1],x2:C[0],y2:C[1]}},a));e.add(D),D.anid="breakLine_"+(_?_.brkId:"\0")+"_\0_"+(S?S.brkId:"\0")}}function Moe(r,e,t){if(Fn(t,function(_){return!_}))return;var a=new _e;if(!jv(t[0],t[1],a,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var n=ft();Yn(n,n,-e);var i=K(t,function(_){return _.transform?Fr(ft(),n,_.transform):n});function o(_){var S=t[0].localRect,x=new _e(S[_t[_]]*i[0][0],S[_t[_]]*i[0][1]);return Math.abs(x.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=K(t,function(_,S){var x=_.localRect.clone();return x.applyTransform(i[S]),x}),u=new _e;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(n);var c=a.clone().transform(n),f=l[0].x+l[1].x+(c.x>=0?l[0].width:l[1].width),h=(f+c.x)/2-u.x,v=Math.min(h,h-c.x),d=Math.max(h,h-c.x),p=d<0?d:v>0?v:0;s=(h-p)/c.x}var g=new _e,m=new _e;_e.scale(g,a,-s),_e.scale(m,a,1-s),N0(t[0],g),N0(t[1],m)}function Ioe(r,e){var t={breaks:[]};return k(e.breaks,function(a){if(a){var n=Fn(r.get("breaks",!0),function(s){return St().identifyAxisBreak(s,a)});if(!n){process.env.NODE_ENV!=="production"&&lt("Can not find axis break by start: "+a.start+", end: "+a.end);return}var i=e.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===id?!0:i===vA?!1:i===dA?!n.isExpanded:n.isExpanded,t.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}),t}function Loe(){q9({adjustBreakLabelPair:Moe,buildAxisBreakLine:Aoe,rectCoordBuildBreakAxis:koe,updateModelAxisBreak:Ioe})}function Noe(r){J9(r),Coe(),Loe()}function Poe(){pX(Roe)}function Roe(r,e){k(r,function(t){if(!t.model.get(["axisLabel","inside"])){var a=Ooe(t);if(a){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[n]-=a[n]+i,t.position==="top"?e.y+=a.height+i:t.position==="left"&&(e.x+=a.width+i)}}})}function Ooe(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var a,n,i=t.getExtent();t instanceof uc?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=fc(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var f=a?a[c]:{value:i[0]+c},h=s(f,c),v=o.getTextRect(h),d=p(v,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,m){var _=m*Math.PI/180,S=g.width,x=g.height,b=S*Math.abs(Math.cos(_))+Math.abs(x*Math.sin(_)),w=S*Math.abs(Math.sin(_))+Math.abs(x*Math.cos(_)),C=new pe(g.x,g.y,b,w);return C}}Ae([D9]),Ae([S9]),Ae([Z9,$Y,eX,RX,ZX,jZ,Tq,lK,RK,$K,qK,nj,qj,xQ,PQ,QQ,rJ,hJ,_J,MJ,VJ,qJ,Lee]),Ae(jee),Ae(Ete),Ae(yI),Ae(Bte),Ae(GL),Ae(Hte),Ae(lre),Ae(mre),Ae(oae),Ae(Tae),Ae(nf),Ae(Fae),Ae(Uae),Ae(Jae),Ae(sne),Ae(vne),Ae(_ne),Ae(Mne),Ae(qne),Ae(YR),Ae(qR),Ae(pie),Ae(uO),Ae(fO),Ae(_ie),Ae(Cie),Ae(Vie),Ae(Gie),Ae(voe),Ae(zW),Ae(Noe),Ae(Poe),Ae(OX);const Voe={key:2,class:"metric-trend-chart__stats"},Boe={class:"metric-trend-chart__stat-value"},zoe={class:"metric-trend-chart__stat-value"},Goe={class:"metric-trend-chart__stat"},Foe={class:"metric-trend-chart__stat-value"},Hoe={key:3,class:"metric-trend-chart__empty"},$oe=500,Uoe=12,zp=vt(y.defineComponent({__name:"MetricTrendChart",props:{values:{default:()=>[]},timestamps:{default:()=>[]},failureTimestamps:{default:()=>[]},triggerTime:{default:""},triggerValue:{default:""},context:{default:()=>({})},color:{default:"#38bdf8"},height:{default:72},compact:{type:Boolean,default:!1},showExtremaMarkers:{type:Boolean,default:!1},enableExtremaHover:{type:Boolean,default:!1},activeMarker:{default:null},enableSelectionZoom:{type:Boolean,default:!1}},setup(r){const e=r,t=y.ref(null),a=y.ref(null),n=y.ref(null),i=y.ref(null);let o=null,s=null,l=!1,u=!1,c=null,f=null,h=null;function v(J){if(typeof J=="number")return Number.isFinite(J)?J:null;if(typeof J=="string"&&J.trim()!==""){const le=Number(J);return Number.isFinite(le)?le:null}return null}function d(J){const le=v(J);return le??void 0}const p=y.computed(()=>e.values.map(J=>v(J)).filter(J=>J!=null)),g=y.computed(()=>e.values.reduce((J,le,ue)=>{const We=v(le);if(We==null)return J;const Qe=e.timestamps.length===e.values.length?d(e.timestamps[ue]):void 0;return J.push({value:We,timestamp:Qe,label:typeof Qe=="number"?_(Qe):String(ue+1)}),J},[])),m=y.computed(()=>g.value.length?n.value?g.value.slice(n.value.start,n.value.end+1):g.value:[]);function _(J){if(!J)return"";const le=new Date(J*1e3),ue=String(le.getHours()).padStart(2,"0"),We=String(le.getMinutes()).padStart(2,"0");return`${ue}:${We}`}function S(J){return Number.isFinite(J)?Math.abs(J)>=100?J.toFixed(0):Math.abs(J)>=10?J.toFixed(1):J.toFixed(2):"-"}const x=y.computed(()=>m.value.map(J=>J.value)),b=y.computed(()=>m.value.map(J=>J.label)),w=y.computed(()=>!!n.value&&e.enableSelectionZoom&&!e.compact),C=y.computed(()=>JSON.stringify({values:x.value,categories:b.value,triggerTime:e.triggerTime,triggerValue:e.triggerValue,color:e.color,height:e.height,failureTimestamps:e.failureTimestamps,compact:e.compact,showExtremaMarkers:e.showExtremaMarkers,enableExtremaHover:e.enableExtremaHover,activeMarker:e.activeMarker,hoveredMarker:a.value,zoomRange:n.value}));function E(J){e.enableExtremaHover&&(a.value=J)}function T(){a.value=null}const D=y.computed(()=>{if(x.value.length<4)return Number.POSITIVE_INFINITY;const J=[...x.value].sort((Rt,ia)=>Rt-ia),le=x.value.reduce((Rt,ia)=>Rt+ia,0)/x.value.length,ue=x.value.reduce((Rt,ia)=>Rt+(ia-le)**2,0)/x.value.length,We=Math.sqrt(ue),Qe=J[Math.floor((J.length-1)*.75)];return Math.max(Qe+We*1.5,le+We*2)}),A=y.computed(()=>{if(!m.value.length||!e.triggerTime)return-1;const J=Math.floor(new Date(e.triggerTime.replace(" ","T")).getTime()/1e3);if(Number.isNaN(J))return-1;const le=m.value.map(We=>We.timestamp).filter(We=>typeof We=="number");if(le.length!==m.value.length)return-1;const ue=le.findIndex(We=>We===J);return ue>=0?ue:le.reduce((We,Qe,Rt)=>Math.abs(Qe-J)<Math.abs(le[We]-J)?Rt:We,0)}),I=y.computed(()=>{if(!x.value.length)return{min:0,max:0,avg:0};const J=Math.min(...x.value),le=Math.max(...x.value),ue=x.value.reduce((We,Qe)=>We+Qe,0)/x.value.length;return{min:J,max:le,avg:ue}}),M=y.computed(()=>{if(x.value.length<2)return null;const J=Math.max(...x.value),le=x.value.findIndex(ue=>ue===J);return le<0?null:{value:[le,J],labelValue:S(J)}}),L=y.computed(()=>{if(x.value.length<2)return null;const J=Math.min(...x.value),le=x.value.findIndex(ue=>ue===J);return le<0?null:{value:[le,J],labelValue:S(J)}}),N=y.computed(()=>A.value<0||A.value>=x.value.length?null:{value:[A.value,x.value[A.value]],labelValue:e.triggerValue||"触发"}),R=y.computed(()=>{var le;const J=(le=e.triggerValue)==null?void 0:le.trim();return J||(N.value?S(Number(N.value.value[1])):"-")}),P=y.computed(()=>e.showExtremaMarkers||e.activeMarker==="max"||e.enableExtremaHover&&a.value==="max"),O=y.computed(()=>e.showExtremaMarkers||e.activeMarker==="min"||e.enableExtremaHover&&a.value==="min"),G=y.computed(()=>!!N.value),F=y.computed(()=>{if(!N.value||!x.value.length)return"top";const J=Number(N.value.value[1]),le=Math.min(...x.value),ue=Math.max(...x.value);return ue<=le?"top":(J-le)/(ue-le)>.68?"bottom":"top"}),B=y.computed(()=>new Set(e.failureTimestamps.map(J=>Math.floor(J)))),$=y.computed(()=>!B.value.size||!m.value.length?[]:m.value.reduce((J,le,ue)=>(le.timestamp!=null&&B.value.has(Math.floor(le.timestamp))&&J.push([ue,le.value]),J),[])),j=y.computed(()=>{const J="rgba(148,163,184,0.55)",le="rgba(148,163,184,0.14)",ue=e.compact,We=[{type:"line",data:x.value,smooth:!1,showSymbol:!1,symbol:"circle",lineStyle:{color:e.color,width:ue?2:2.5},itemStyle:{color:e.color},emphasis:{disabled:!0},areaStyle:{color:new vo(0,0,0,1,[{offset:0,color:`${e.color}66`},{offset:1,color:`${e.color}08`}])}}];return P.value&&M.value&&We.push({type:"scatter",data:[M.value.value],symbol:"circle",symbolSize:ue?7:10,itemStyle:{color:"#f97316",borderColor:"#ffedd5",borderWidth:1.5,opacity:.95},emphasis:{disabled:!0},tooltip:{show:!1},label:{show:!ue,formatter:`最大 ${M.value.labelValue}`,color:"#ffedd5",fontSize:ue?8:12,fontWeight:700,padding:[4,8],backgroundColor:"rgba(249,115,22,0.2)",borderRadius:999,position:"top",distance:8},z:5}),O.value&&L.value&&We.push({type:"scatter",data:[L.value.value],symbol:"circle",symbolSize:ue?7:10,itemStyle:{color:"#22c55e",borderColor:"#dcfce7",borderWidth:1.5,opacity:.95},emphasis:{disabled:!0},tooltip:{show:!1},label:{show:!ue,formatter:`最小 ${L.value.labelValue}`,color:"#dcfce7",fontSize:ue?8:12,fontWeight:700,padding:[4,8],backgroundColor:"rgba(34,197,94,0.18)",borderRadius:999,position:"bottom",distance:8},z:5}),N.value&&We.push({type:"scatter",data:[N.value.value],symbol:"diamond",symbolSize:ue?8:9,itemStyle:{color:e.color,borderColor:"#e2e8f0",borderWidth:2,opacity:1,shadowBlur:ue?10:14,shadowColor:`${e.color}aa`},emphasis:{disabled:!0},tooltip:{show:!1},label:{show:G.value,formatter:R.value,color:"#f8fafc",fontSize:ue?12:13,fontWeight:700,padding:[4,8],backgroundColor:"rgba(15,23,42,0.9)",borderRadius:999,position:F.value,distance:8},z:6}),$.value.length&&We.push({type:"scatter",data:$.value,symbol:"pin",symbolSize:ue?10:15,itemStyle:{color:"#ef4444",borderColor:"#fee2e2",borderWidth:1.5,shadowBlur:ue?8:12,shadowColor:"rgba(239,68,68,0.55)"},tooltip:{show:!1},emphasis:{disabled:!0},label:{show:!ue,formatter:"失败",color:"#fee2e2",fontSize:11,fontWeight:700,padding:[3,7],backgroundColor:"rgba(127,29,29,0.72)",borderRadius:999,position:"top",distance:8},z:8}),!ue&&Number.isFinite(D.value)&&We.push({type:"line",data:x.value.map(()=>D.value),symbol:"none",silent:!0,lineStyle:{color:"rgba(249,115,22,0.45)",type:"dashed",width:1},tooltip:{show:!1},emphasis:{disabled:!0},z:1}),{animation:!1,grid:ue?{left:40,right:18,top:34,bottom:22,containLabel:!1}:{left:52,right:26,top:42,bottom:34,containLabel:!1},tooltip:{trigger:"axis",axisPointer:{type:"line",snap:!0,lineStyle:{color:e.color,type:"dashed",opacity:.7}},backgroundColor:"rgba(2,6,23,0.94)",borderColor:"rgba(148,163,184,0.22)",borderWidth:1,textStyle:{color:"#e2e8f0",fontSize:11},confine:!0,enterable:!1,triggerOn:"mousemove",formatter:Qe=>{const Rt=Array.isArray(Qe)?Qe[0]:Qe,ia=(Rt==null?void 0:Rt.dataIndex)??0,Gp=b.value[ia]||`#${ia+1}`,kx=S(Number(Rt==null?void 0:Rt.value)),Fp=ia===A.value&&e.triggerValue?`<div style="display:flex;justify-content:space-between;gap:12px;"><span style="color:#94a3b8;">触发值</span><span style="color:${e.color};font-weight:700;">${e.triggerValue}</span></div>`:"",yf=Fp?`<div style="margin-top:8px;padding-top:8px;border-top:1px solid rgba(148,163,184,0.16);">${Fp}</div>`:"";return`
83
+ <div style="min-width:160px;">
84
+ <div style="font-size:11px;color:#cbd5e1;font-weight:700;margin-bottom:4px;">${Gp}</div>
85
+ <div style="display:flex;justify-content:space-between;gap:12px;">
86
+ <span style="color:#94a3b8;">当前值</span>
87
+ <span style="color:#e2e8f0;font-weight:700;">${kx}</span>
88
+ </div>
89
+ ${yf}
90
+ </div>
91
+ `}},xAxis:{type:"category",boundaryGap:!1,data:b.value,minInterval:1,axisLabel:{color:J,fontSize:ue?9:10,interval:"auto",hideOverlap:!0,margin:10},axisLine:{lineStyle:{color:"rgba(148,163,184,0.22)"}},axisTick:{show:!1}},yAxis:{type:"value",scale:!0,min:Qe=>Qe.min===Qe.max?Qe.min-1:void 0,max:Qe=>Qe.min===Qe.max?Qe.max+1:void 0,splitNumber:ue?3:4,axisLabel:{color:J,fontSize:ue?9:10,formatter:Qe=>S(Qe),margin:8},splitLine:{lineStyle:{color:le,type:"dashed"}},axisLine:{show:!1},axisTick:{show:!1}},series:We}});function W(){t.value&&((!o||o.isDisposed())&&(o=O$(t.value,void 0,{renderer:"canvas"}),we()),o.clear(),o.setOption(j.value,!0))}async function V(J=!1){await y.nextTick(),t.value&&(J&&o&&(o.dispose(),o=null),W())}function q(){n.value=null}function Ce(J){const le=e.compact,ue=le?40:52,We=le?18:26,Qe=le?34:42,Rt=le?22:34;return{minX:ue,maxX:Math.max(ue,J.width-We),top:Qe,height:Math.max(0,J.height-Qe-Rt)}}function fe(){i.value=null,f=null,window.removeEventListener("mousemove",je),window.removeEventListener("mouseup",lr),window.removeEventListener("touchmove",Ql),window.removeEventListener("touchend",ZO),window.removeEventListener("touchcancel",qO)}function ne(){c&&(clearTimeout(c),c=null),h=null}function we(){!o||l||(o.getZr().on("mousedown",Xt),l=!0)}function se(){!o||!l||(o.getZr().off("mousedown",Xt),l=!1)}function xe(){!t.value||u||(t.value.addEventListener("touchstart",Gn,{passive:!0}),u=!0)}function qe(){!t.value||!u||(t.value.removeEventListener("touchstart",Gn),u=!1)}function Pe(J){if(!f)return;const le=Math.min(f.startX,J),ue=Math.max(f.startX,J);i.value={left:`${le}px`,top:`${f.top}px`,width:`${Math.max(0,ue-le)}px`,height:`${f.height}px`}}function Xe(J,le){var KO,jO;if(!g.value.length)return null;const ue=((KO=n.value)==null?void 0:KO.start)??0,We=((jO=n.value)==null?void 0:jO.end)??g.value.length-1,Qe=We-ue+1;if(Qe<2||!f)return null;const Rt=f.maxX-f.minX;if(Rt<=0)return null;const ia=(J-f.minX)/Rt,Gp=(le-f.minX)/Rt,kx=Math.round(Math.min(ia,Gp)*(Qe-1)),Fp=Math.round(Math.max(ia,Gp)*(Qe-1)),yf=Math.max(ue,Math.min(We,ue+kx)),Ax=Math.max(ue,Math.min(We,ue+Fp));return Ax-yf<1||yf===ue&&Ax===We?null:{start:yf,end:Ax}}function je(J){if(!f)return;const le=J.clientX-f.rect.left,ue=Math.max(f.minX,Math.min(f.maxX,le));Pe(ue)}function yt(J){if(!f)return;if(Math.abs(J-f.startX)>=12){const ue=Xe(f.startX,J);ue&&(n.value=ue)}fe()}function lr(J){if(!f)return;const le=J.clientX-f.rect.left,ue=Math.max(f.minX,Math.min(f.maxX,le));yt(ue)}function Xt(J){if(!e.enableSelectionZoom||e.compact||x.value.length<2||!t.value||J.event&&J.event.button!==0)return;const le=t.value.getBoundingClientRect(),ue=Ce(le);J.offsetX<ue.minX||J.offsetX>ue.maxX||J.offsetY<ue.top||J.offsetY>ue.top+ue.height||(f={rect:le,startX:J.offsetX,minX:ue.minX,maxX:ue.maxX,top:ue.top,height:ue.height},Pe(J.offsetX),window.addEventListener("mousemove",je),window.addEventListener("mouseup",lr))}function ba(J){if(!t.value)return null;const le=J.touches[0]||J.changedTouches[0];if(!le)return null;const ue=t.value.getBoundingClientRect();return{offsetX:le.clientX-ue.left,offsetY:le.clientY-ue.top,clientX:le.clientX,clientY:le.clientY}}function Gn(J){if(!e.enableSelectionZoom||e.compact||x.value.length<2||J.touches.length!==1)return;const le=ba(J);le&&(ne(),fe(),h={startClientX:le.clientX,startClientY:le.clientY,startOffsetX:le.offsetX,startOffsetY:le.offsetY,active:!1,cancelled:!1},window.addEventListener("touchmove",Ql,{passive:!1}),window.addEventListener("touchend",ZO,{passive:!1}),window.addEventListener("touchcancel",qO,{passive:!1}),c=setTimeout(()=>{!h||h.cancelled||(Xt({offsetX:h.startOffsetX,offsetY:h.startOffsetY}),f&&(h.active=!0,Pe(h.startOffsetX)))},$oe))}function Ql(J){const le=ba(J);if(!le)return;if(h&&!h.active){const We=le.clientX-h.startClientX,Qe=le.clientY-h.startClientY;if(Math.abs(Qe)>Uoe&&Math.abs(Qe)>Math.abs(We)*1.2){h.cancelled=!0,ne(),fe();return}return}if(!f)return;const ue=Math.max(f.minX,Math.min(f.maxX,le.offsetX));Pe(ue),J.preventDefault()}function ZO(J){const le=!!(h!=null&&h.active);if(ne(),!f){fe();return}const ue=ba(J);if(!ue){fe();return}const We=Math.max(f.minX,Math.min(f.maxX,ue.offsetX));yt(We),le&&J.preventDefault()}function qO(){ne(),fe()}return y.onMounted(()=>{V(!0),t.value&&(s=new ResizeObserver(()=>{o==null||o.resize()}),s.observe(t.value)),xe()}),y.watch(j,()=>{V(!1)},{deep:!0}),y.watch(C,(J,le)=>{typeof window<"u"&&window.__QUARK_DEBUG_METRIC__&&console.debug("[MetricTrendChart]",{prevSignature:le,nextSignature:J,rawValues:e.values,rawTimestamps:e.timestamps,safeValues:p.value,points:g.value.length});const ue=le?JSON.parse(le).values.length:0,We=JSON.parse(J).values.length;V(ue<2||We<2)}),y.watch(()=>e.height,()=>{V(!1)}),y.watch(()=>[e.values,e.timestamps],()=>{n.value=null},{deep:!0}),y.onBeforeUnmount(()=>{se(),qe(),s==null||s.disconnect(),s=null,ne(),fe(),o==null||o.dispose(),o=null}),(J,le)=>(y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["metric-trend-chart",{"is-compact":r.compact,"is-selection-enabled":r.enableSelectionZoom&&!r.compact}])},[w.value?(y.openBlock(),y.createElementBlock("button",{key:0,type:"button",class:"metric-trend-chart__reset",onClick:q}," 重置范围 ")):y.createCommentVNode("",!0),y.createElementVNode("div",{ref_key:"chartRef",ref:t,class:"metric-trend-chart__canvas",style:y.normalizeStyle({height:`${r.height}px`})},null,4),i.value?(y.openBlock(),y.createElementBlock("div",{key:1,class:"metric-trend-chart__selection",style:y.normalizeStyle(i.value)},null,4)):y.createCommentVNode("",!0),p.value.length>0&&!r.compact?(y.openBlock(),y.createElementBlock("div",Voe,[y.createElementVNode("div",{class:y.normalizeClass(["metric-trend-chart__stat",{"is-active":a.value==="min"}]),onMouseenter:le[0]||(le[0]=ue=>E("min")),onMouseleave:T},[le[2]||(le[2]=y.createElementVNode("span",{class:"metric-trend-chart__stat-label"},"最小值",-1)),y.createElementVNode("span",Boe,y.toDisplayString(S(I.value.min)),1)],34),y.createElementVNode("div",{class:y.normalizeClass(["metric-trend-chart__stat",{"is-active":a.value==="max"}]),onMouseenter:le[1]||(le[1]=ue=>E("max")),onMouseleave:T},[le[3]||(le[3]=y.createElementVNode("span",{class:"metric-trend-chart__stat-label"},"最大值",-1)),y.createElementVNode("span",zoe,y.toDisplayString(S(I.value.max)),1)],34),y.createElementVNode("div",Goe,[le[4]||(le[4]=y.createElementVNode("span",{class:"metric-trend-chart__stat-label"},"平均值",-1)),y.createElementVNode("span",Foe,y.toDisplayString(S(I.value.avg)),1)])])):y.createCommentVNode("",!0),p.value.length<2?(y.openBlock(),y.createElementBlock("div",Hoe,y.toDisplayString(p.value.length===1?"数据点不足":"暂无趋势数据"),1)):y.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-2cda3f9e"]]),Woe=["type","disabled"],mf=vt(y.defineComponent({__name:"UiButton",props:{variant:{default:"primary"},appearance:{default:"dialog"},size:{default:"md"},type:{default:"button"},disabled:{type:Boolean,default:!1},block:{type:Boolean,default:!1}},setup(r){return(e,t)=>(y.openBlock(),y.createElementBlock("button",{class:y.normalizeClass(["ui-button",[`ui-button--${r.variant}`,`ui-button--${r.appearance}`,`ui-button--${r.size}`,{"ui-button--block":r.block}]]),type:r.type,disabled:r.disabled},[y.renderSlot(e.$slots,"default",{},void 0,!0)],10,Woe))}}),[["__scopeId","data-v-5f786839"]]),Yoe={class:"alert-dialog-info"},Xoe={key:0,class:"alert-dialog-meta"},Zoe={key:1,class:"alert-dialog-grid"},qoe=["disabled","onClick"],Koe={class:"alert-dialog-field-label"},joe={key:2,class:"alert-dialog-content"},Qoe={key:0,class:"alert-dialog-chart-card"},Joe={class:"alert-dialog-chart-title"},ese={key:1,class:"alert-dialog-normal"},tse={key:0,class:"alert-dialog-meta"},rse={key:1,class:"alert-dialog-content"},ase={key:2,class:"alert-dialog-details"},nse={key:3,class:"alert-dialog-footer"},$O=vt(y.defineComponent({__name:"AlertDialog",props:{modelValue:{type:Boolean},title:{},subtitle:{default:""},content:{default:""},layout:{default:"normal"},level:{default:"info"},source:{default:""},timestamp:{default:""},showCloseButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!1},showConfirmButton:{type:Boolean,default:!1},titleAlign:{default:"center"},cancelText:{default:"关闭"},confirmText:{default:"确认"},actionSize:{default:"md"},closeOnMask:{type:Boolean,default:!0},autoCloseMs:{default:0},monitorFields:{default:()=>[]},trend:{default:()=>[]},chartTimestamps:{default:()=>[]},chartTriggerTime:{default:""},chartTriggerValue:{default:""},chartContext:{default:()=>({})},chartTitle:{default:""},chartPlacement:{default:"side"},chartShowExtremaMarkers:{type:Boolean,default:!1},chartEnableExtremaHover:{type:Boolean,default:!1},chartEnableSelectionZoom:{type:Boolean,default:!1},infoItems:{default:()=>[]},monitorFieldsVariant:{default:"cards"}},emits:["update:modelValue","close","confirm","timeout"],setup(r,{emit:e}){const t=r,a=e;let n=null,i=null;const o=y.ref(0),s=y.ref(null),l=y.computed(()=>t.layout==="monitor"?"min(92vw, 1180px)":"min(92vw, 760px)"),u=y.computed(()=>t.showCancelButton||t.showConfirmButton),c=y.computed(()=>{const S=[];if(t.source&&S.push({key:"source",value:t.source}),t.timestamp){const x=typeof t.timestamp=="number"?new Date(t.timestamp):new Date(String(t.timestamp));S.push({key:"timestamp",value:Number.isNaN(x.getTime())?String(t.timestamp):x.toLocaleString("zh-CN")})}return S}),f=y.computed(()=>{const S=[...c.value];return t.infoItems.forEach((x,b)=>{x&&S.push({key:`info-${b}`,value:x})}),S}),h=y.computed(()=>t.trend.filter(S=>Number.isFinite(S))),v=y.computed(()=>h.value.length>1),d=y.computed(()=>{switch(t.level){case"critical":return"#ef4444";case"warning":return"#f59e0b";case"recovery":return"#10b981";default:return"#38bdf8"}});function p(){n&&(clearTimeout(n),n=null),i&&(clearInterval(i),i=null),o.value=0}function g(){p(),!(!t.modelValue||!t.autoCloseMs||t.autoCloseMs<=0)&&(o.value=t.autoCloseMs,i=setInterval(()=>{o.value=Math.max(0,o.value-1e3)},1e3),n=setTimeout(()=>{p(),a("timeout"),m()},t.autoCloseMs))}function m(){p(),s.value=null,a("update:modelValue",!1),a("close")}function _(S){s.value=s.value===S?null:S}return y.watch(()=>[t.modelValue,t.autoCloseMs],g,{immediate:!0}),y.watch(()=>t.modelValue,S=>{S||(s.value=null)}),y.onBeforeUnmount(p),(S,x)=>(y.openBlock(),y.createBlock(Gx,{"model-value":r.modelValue,title:r.title,eyebrow:"","title-align":r.titleAlign,"show-close-button":r.showCloseButton,"close-on-mask":r.closeOnMask,padded:!1,width:l.value,"panel-class":"alert-dialog-panel","mask-class":"alert-dialog-mask","onUpdate:modelValue":x[1]||(x[1]=b=>a("update:modelValue",b)),onClose:m},{default:y.withCtx(()=>[y.createElementVNode("div",{class:y.normalizeClass(["alert-dialog",[`alert-dialog--${r.level}`,`alert-dialog--${r.layout}`,`alert-dialog--title-${r.titleAlign}`]])},[r.layout==="monitor"?(y.openBlock(),y.createElementBlock("div",{key:0,class:y.normalizeClass(["alert-dialog-monitor",{"alert-dialog-monitor--bottom":r.chartPlacement==="bottom"}])},[y.createElementVNode("div",Yoe,[f.value.length?(y.openBlock(),y.createElementBlock("div",Xoe,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(f.value,b=>(y.openBlock(),y.createElementBlock("span",{key:b.key,class:"alert-dialog-meta-item"},y.toDisplayString(b.value),1))),128))])):y.createCommentVNode("",!0),r.monitorFields.length?(y.openBlock(),y.createElementBlock("div",Zoe,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(r.monitorFields,b=>(y.openBlock(),y.createElementBlock("button",{key:b.label,type:"button",class:y.normalizeClass(["alert-dialog-field",`alert-dialog-field--${r.monitorFieldsVariant}`,{"is-clickable":b.marker,"is-active":s.value===b.marker}]),disabled:!b.marker,onClick:w=>b.marker&&_(b.marker)},[y.createElementVNode("span",Koe,y.toDisplayString(b.label),1),y.createElementVNode("span",{class:y.normalizeClass(["alert-dialog-field-value",{"is-mono":b.mono,"is-accent":b.accent}])},y.toDisplayString(b.value),3)],10,qoe))),128))])):y.createCommentVNode("",!0),r.content?(y.openBlock(),y.createElementBlock("p",joe,y.toDisplayString(r.content),1)):y.renderSlot(S.$slots,"default",{},void 0,!0,3)]),v.value?(y.openBlock(),y.createElementBlock("div",Qoe,[y.createElementVNode("p",Joe,y.toDisplayString(r.chartTitle||"监控趋势"),1),y.createVNode(zp,{class:"alert-dialog-chart",values:h.value,timestamps:r.chartTimestamps,"trigger-time":r.chartTriggerTime,"trigger-value":r.chartTriggerValue,context:r.chartContext,color:d.value,height:220,"show-extrema-markers":r.chartShowExtremaMarkers,"enable-extrema-hover":r.chartEnableExtremaHover,"active-marker":s.value,"enable-selection-zoom":r.chartEnableSelectionZoom},null,8,["values","timestamps","trigger-time","trigger-value","context","color","show-extrema-markers","enable-extrema-hover","active-marker","enable-selection-zoom"])])):y.createCommentVNode("",!0)],2)):(y.openBlock(),y.createElementBlock("div",ese,[f.value.length?(y.openBlock(),y.createElementBlock("div",tse,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(f.value,b=>(y.openBlock(),y.createElementBlock("span",{key:b.key,class:"alert-dialog-meta-item"},y.toDisplayString(b.value),1))),128))])):y.createCommentVNode("",!0),r.content?(y.openBlock(),y.createElementBlock("p",rse,y.toDisplayString(r.content),1)):y.renderSlot(S.$slots,"default",{},void 0,!0,2)])),S.$slots.details?(y.openBlock(),y.createElementBlock("div",ase,[y.renderSlot(S.$slots,"details",{},void 0,!0)])):y.createCommentVNode("",!0),S.$slots.footer||u.value?(y.openBlock(),y.createElementBlock("div",nse,[y.renderSlot(S.$slots,"footer",{},()=>[r.showCancelButton?(y.openBlock(),y.createBlock(mf,{key:0,variant:"secondary",appearance:"dialog",size:r.actionSize,onClick:m},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(r.cancelText),1)]),_:1},8,["size"])):y.createCommentVNode("",!0),r.showConfirmButton?(y.openBlock(),y.createBlock(mf,{key:1,variant:"primary",appearance:"dialog",size:r.actionSize,onClick:x[0]||(x[0]=b=>a("confirm"))},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(r.confirmText),1)]),_:1},8,["size"])):y.createCommentVNode("",!0)],!0)])):y.createCommentVNode("",!0)],2)]),_:3},8,["model-value","title","title-align","show-close-button","close-on-mask","width"]))}}),[["__scopeId","data-v-ae5198b7"]]),UO=vt(y.defineComponent({__name:"Timeline",props:{theme:{default:"default"}},setup(r){return(e,t)=>(y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["quark-timeline",`quark-timeline--${r.theme}`])},[y.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-edeffd99"]]),ise={key:0,class:"quark-tl-item__label"},ose={key:1,class:"quark-tl-item__rail"},sse={class:"quark-tl-item__dot-content"},lse={class:"quark-tl-item__dot"},use={class:"quark-tl-item__body"},cse={class:"quark-tl-item__content"},fse={key:0,class:"quark-tl-item__time"},WO=vt(y.defineComponent({__name:"TimelineItem",props:{time:{},active:{type:Boolean,default:!1},last:{type:Boolean,default:!1},lineColor:{default:""},dotColor:{default:""},hideDot:{type:Boolean,default:!1},dotType:{default:"solid"},lineType:{default:"solid"},label:{default:""}},setup(r){return(e,t)=>(y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["quark-tl-item",{"quark-tl-item--active":r.active,"quark-tl-item--last":r.last}])},[e.$slots.label||r.label?(y.openBlock(),y.createElementBlock("div",ise,[y.renderSlot(e.$slots,"label",{},()=>[y.createTextVNode(y.toDisplayString(r.label),1)],!0)])):y.createCommentVNode("",!0),r.hideDot?y.createCommentVNode("",!0):(y.openBlock(),y.createElementBlock("div",ose,[r.last?y.createCommentVNode("",!0):(y.openBlock(),y.createElementBlock("div",{key:0,class:"quark-tl-item__line",style:y.normalizeStyle({borderColor:r.lineColor||void 0,borderLeftStyle:r.lineType})},null,4)),y.createElementVNode("div",sse,[y.createElementVNode("div",lse,[y.renderSlot(e.$slots,"dot",{},()=>[y.createElementVNode("div",{class:y.normalizeClass(["quark-tl-item__dot-inner",`quark-tl-item__dot-inner--${r.dotType}`]),style:y.normalizeStyle(r.dotColor?{backgroundColor:r.dotType==="solid"?r.dotColor:void 0,borderColor:r.dotColor}:{})},null,6)],!0)])])])),y.createElementVNode("div",use,[y.createElementVNode("div",cse,[y.renderSlot(e.$slots,"default",{},void 0,!0)]),r.time?(y.openBlock(),y.createElementBlock("div",fse,y.toDisplayString(r.time),1)):y.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-192169cf"]]),hse=vt(y.defineComponent({__name:"Collapse",props:{defaultActiveKey:{default:()=>[]},accordion:{type:Boolean,default:!1},theme:{default:"default"},card:{type:Boolean,default:!1}},setup(r){const e=r,t=y.ref(new Set(e.defaultActiveKey));function a(n){e.accordion?t.value.has(n)?t.value.clear():t.value=new Set([n]):t.value.has(n)?(t.value.delete(n),t.value=new Set(t.value)):(t.value.add(n),t.value=new Set(t.value))}return y.provide("collapse-active-keys",t),y.provide("collapse-toggle",a),y.provide("collapse-theme",y.computed(()=>e.theme)),y.provide("collapse-card",y.computed(()=>e.card)),(n,i)=>(y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["quark-collapse",`quark-collapse--${r.theme}`,{"quark-collapse--card":r.card}])},[y.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-e15791ba"]]),vse={class:"quark-CollapseItem__header-content"},dse={class:"quark-CollapseItem__body"},pse=vt(y.defineComponent({__name:"CollapseItem",props:{itemKey:{},key:{},header:{},disabled:{type:Boolean,default:!1}},setup(r){const e=r,t=y.computed(()=>e.itemKey??e.key??e.header??"collapse-item"),a=y.inject("collapse-active-keys"),n=y.inject("collapse-toggle"),i=y.inject("collapse-theme"),o=y.inject("collapse-card"),s=y.computed(()=>a.value.has(t.value));function l(){e.disabled||n(t.value)}return(u,c)=>(y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["quark-CollapseItem",{"quark-CollapseItem--active":s.value,"quark-CollapseItem--card":y.unref(o),"quark-CollapseItem--disabled":r.disabled},`quark-CollapseItem--${y.unref(i)}`])},[y.createElementVNode("div",{class:y.normalizeClass(["quark-CollapseItem__header",{"quark-CollapseItem__header--active":s.value}]),onClick:l},[y.createElementVNode("span",{class:y.normalizeClass(["quark-CollapseItem__arrow",{"quark-CollapseItem__arrow--open":s.value}])},[...c[1]||(c[1]=[y.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor"},[y.createElementVNode("path",{d:"M4.7 2.3a.5.5 0 0 0-.7.7L7.3 6 4 9a.5.5 0 0 0 .7.7l3.7-3.7a.5.5 0 0 0 0-.7L4.7 2.3z"})],-1)])],2),y.createElementVNode("div",vse,[y.renderSlot(u.$slots,"header",{},()=>[y.createTextVNode(y.toDisplayString(r.header),1)],!0)]),u.$slots.extra?(y.openBlock(),y.createElementBlock("div",{key:0,class:"quark-CollapseItem__extra",onClick:c[0]||(c[0]=y.withModifiers(()=>{},["stop"]))},[y.renderSlot(u.$slots,"extra",{},void 0,!0)])):y.createCommentVNode("",!0)],2),y.withDirectives(y.createElementVNode("div",dse,[y.renderSlot(u.$slots,"default",{},void 0,!0)],512),[[y.vShow,s.value]])],2))}}),[["__scopeId","data-v-a1768f99"]]),gse=["aria-label"],mse=["aria-checked","onClick"],yse={class:"ui-segmented__label"},_se={key:0,class:"ui-segmented__badge"},Ex=vt(y.defineComponent({__name:"UiSegmented",props:{modelValue:{},items:{},ariaLabel:{},variant:{default:"default"},size:{default:"md"}},emits:["update:modelValue"],setup(r,{emit:e}){const t=e;return(a,n)=>(y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["ui-segmented",[`ui-segmented--${r.variant}`,`ui-segmented--${r.size}`]]),role:"radiogroup","aria-label":r.ariaLabel},[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(r.items,i=>(y.openBlock(),y.createElementBlock("button",{key:i.value,class:y.normalizeClass(["ui-segmented__item",{"ui-segmented__item--active":r.modelValue===i.value}]),type:"button",role:"radio","aria-checked":r.modelValue===i.value,onClick:o=>t("update:modelValue",i.value)},[y.createElementVNode("span",yse,y.toDisplayString(i.label),1),i.badge!==void 0?(y.openBlock(),y.createElementBlock("span",_se,y.toDisplayString(i.badge),1)):y.createCommentVNode("",!0)],10,mse))),128))],10,gse))}}),[["__scopeId","data-v-3edc6ae6"]]),Sse=vt(y.defineComponent({__name:"UiMetricValue",props:{value:{},tone:{default:""},size:{default:"lg"}},setup(r){return(e,t)=>(y.openBlock(),y.createElementBlock("span",{class:y.normalizeClass(["ui-metric-value",`ui-metric-value--${r.size}`]),style:y.normalizeStyle(r.tone?{color:r.tone}:void 0)},y.toDisplayString(r.value),7))}}),[["__scopeId","data-v-fd8f0268"]]),xse={key:0,class:"template-screen__state"},bse={key:0,class:"template-screen__header"},wse={class:"template-screen__alerts"},Cse={key:0,class:"template-screen__placeholder"},Tse={key:4,class:"template-screen__metrics"},Ese={key:0,class:"template-screen__robot"},Dse={key:4,class:"template-screen__placeholder"},kse={class:"template-alert-detail"},Ase={key:0,class:"template-alert-detail__state"},Mse={key:1,class:"template-alert-detail__state is-error"},Ise={key:2,class:"template-alert-detail__section"},Lse={class:"template-alert-detail__entry"},Nse={key:0},Pse={key:1,class:"template-alert-detail__state"},Dx=48,YO=5,Rse=vt(y.defineComponent({__name:"BigScreenTemplateRenderer",props:{runtime:{},showHalo:{type:Boolean},loadAlertDetail:{type:Function}},emits:["secretTap","openDuty"],setup(r,{emit:e}){const t=r,a=e,n=y.ref("active"),i=y.ref("all"),o=y.ref(null),s=y.ref(!1),l=y.ref(null),u=y.ref(!1),c=y.ref("");let f=0;const h=y.computed(()=>{var P;return((P=t.runtime)==null?void 0:P.profile.baseWidth)||1920}),v=y.computed(()=>{var P;return((P=t.runtime)==null?void 0:P.profile.baseHeight)||1080}),d=y.computed(()=>{var P;return(((P=t.runtime)==null?void 0:P.widgets)||[]).filter(O=>O.enabled)}),p=y.computed(()=>d.value.some(P=>P.widgetType==="screen_header")),g=P=>{const O=`${P.layout.w/16*100}%`,G=`${P.layout.x/16*100}%`;if(!p.value)return{left:G,top:`${P.layout.y/12*100}%`,width:O,height:`${P.layout.h/12*100}%`};if(P.widgetType==="screen_header")return{left:G,top:"0",width:O,height:`${Dx/v.value*100}%`};const F=(v.value-Dx-YO)/11,B=Dx+YO+Math.max(0,P.layout.y-1)*F;return{left:G,top:`${B/v.value*100}%`,width:O,height:`${P.layout.h*F/v.value*100}%`}},m=P=>P.data.stats||{},_=P=>P.data.items||[],S=P=>P.data.groups||[];function x(P){const O=String(P.severity||"").toLowerCase();return O.includes("crit")||O.includes("high")?"high":O.includes("warn")||O.includes("mid")?"mid":"low"}function b(P){return{high:"#ef4444",mid:"#f59e0b",low:"#38bdf8"}[x(P)]}function w(P){return String(P.status||"").toUpperCase()==="RESOLVED"}const C=P=>_(P).filter(O=>n.value==="resolved"?w(O):!w(O)).filter(O=>i.value==="all"||x(O)===i.value),E=P=>{const O=m(P);return[{label:"告警中",value:"active",badge:Number(O.todayPending||0)},{label:"已恢复",value:"resolved",badge:Number(O.todayResolved||0)}]},T=P=>{const O=_(P).filter(G=>n.value==="resolved"?w(G):!w(G));return[{label:"全部",value:"all",badge:O.length},{label:"严重",value:"high",badge:O.filter(G=>x(G)==="high").length},{label:"警告",value:"mid",badge:O.filter(G=>x(G)==="mid").length},{label:"提示",value:"low",badge:O.filter(G=>x(G)==="low").length}]};function D(){t.runtime||a("secretTap")}async function A(P){const O=++f;o.value=P,l.value=null,c.value="",u.value=!0,s.value=!0;try{const G=t.loadAlertDetail?await t.loadAlertDetail(P.id):null;O===f&&(l.value=G.alert||null)}catch(G){O===f&&(c.value=G instanceof Error?G.message:"获取告警详情失败")}finally{O===f&&(u.value=!1)}}const I=y.computed(()=>({...o.value||{},...l.value||{}})),M=y.computed(()=>{var G,F,B,$;const P=I.value;if(!P.id)return[];const O=P.labels||{};return[P.source?`来源 · ${P.source}`:"",P.groupName||(G=P.groupNames)!=null&&G[0]?`分组 · ${P.groupName||((F=P.groupNames)==null?void 0:F[0])}`:"",P.assignedUserName||(B=P.assignedUsers)!=null&&B[0]?`负责人 · ${P.assignedUserName||(($=P.assignedUsers)==null?void 0:$[0])}`:"",P.severityText||P.severity?`级别 · ${P.severityText||P.severity}`:"",P.firedAt?`首次触发 · ${P.firedAt}`:"",P.triggerTime?`触发时间 · ${P.triggerTime}`:"",P.escalationCount!=null?`触发次数 · ${P.escalationCount}`:"",O.job?`Job · ${O.job}`:"",O.instance?`Instance · ${O.instance}`:""].filter(Boolean)}),L=y.computed(()=>{var G,F;const P=(((G=l.value)==null?void 0:G.actions)||[]).map(B=>({type:"action",time:B.createdAt||"",title:N(B.actionType),content:B.content||"",operator:B.operatorName||""})),O=(((F=l.value)==null?void 0:F.fires)||[]).map(B=>({type:"fire",time:B.firedAt||"",title:`告警触发 · ${B.severityText||B.severity||""}`,content:B.content||B.triggerValue||"",chartValues:B.chartValues||[],chartTimestamps:B.chartTimestamps||[]}));return[...P,...O].sort((B,$)=>String(B.time).localeCompare(String($.time)))});function N(P){return{ASSIGN:"分配",ACK:"确认",ACKNOWLEDGED:"确认",COMMENT:"备注",ESCALATE:"升级",RESOLVE:"解决",RESOLVED:"解决",REOPEN:"告警复现",SUPPRESS:"抑制",SILENCE:"静默",REASSIGN:"转交",COLLABORATE:"协同处理"}[P||""]||P||"操作"}function R(){f++,s.value=!1,l.value=null,c.value=""}return(P,O)=>{var G,F;return y.openBlock(),y.createElementBlock("div",{class:"template-screen",onDblclick:D},[r.runtime?(y.openBlock(),y.createElementBlock("div",{key:1,class:"template-screen__canvas",style:y.normalizeStyle({aspectRatio:`${h.value}/${v.value}`})},[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(d.value,B=>(y.openBlock(),y.createElementBlock("article",{key:B.id,class:y.normalizeClass(["template-screen__widget",{"template-screen__widget--header":B.widgetType==="screen_header"}]),style:y.normalizeStyle(g(B))},[B.widgetType==="screen_header"?(y.openBlock(),y.createElementBlock("div",bse,[y.createVNode(zx,{title:String(B.props.title||"运维监控大屏"),time:String(B.data.timeText||"--:--"),date:`${B.data.dateText||""} ${B.data.weekdayText||""}`,onTitleDoubleClick:O[0]||(O[0]=$=>a("secretTap"))},null,8,["title","time","date"])])):B.widgetType==="external_embed"?(y.openBlock(),y.createBlock(Ox,{key:1,title:B.title||"外部仪表盘",url:String(B.props.url||"")},null,8,["title","url"])):B.widgetType==="endpoint_distribution"?(y.openBlock(),y.createBlock(Jl,{key:2,title:B.title||"端点分布图",class:"template-screen__panel"},{default:y.withCtx(()=>[y.createVNode(Rx,{items:_(B)},null,8,["items"])]),_:2},1032,["title"])):B.widgetType==="alert_latest"?(y.openBlock(),y.createBlock(Jl,{key:3,title:B.title||"最新告警",class:"template-screen__panel"},{"header-center":y.withCtx(()=>[y.createVNode(Ex,{modelValue:n.value,"onUpdate:modelValue":O[1]||(O[1]=$=>n.value=$),items:E(B),variant:"tech",size:"xs","aria-label":"告警状态筛选"},null,8,["modelValue","items"])]),"header-extra":y.withCtx(()=>[y.createVNode(Ex,{modelValue:i.value,"onUpdate:modelValue":O[2]||(O[2]=$=>i.value=$),items:T(B),variant:"tech",size:"xs","aria-label":"告警级别筛选"},null,8,["modelValue","items"])]),default:y.withCtx(()=>[y.createElementVNode("div",wse,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(C(B),$=>{var j;return y.openBlock(),y.createBlock(Ix,{key:$.id,title:$.title,group:((j=$.groupNames)==null?void 0:j.join(" / "))||"未分组",time:$.firedAt,"status-text":$.statusText||$.status,accent:b($),onSelect:W=>A($)},{aside:y.withCtx(()=>{var W;return[(W=$.chartValues)!=null&&W.length?(y.openBlock(),y.createBlock(zp,{key:0,values:$.chartValues,timestamps:$.chartTimestamps||[],"trigger-time":$.firedAt,"trigger-value":$.triggerValue||"",color:b($),height:72,compact:""},null,8,["values","timestamps","trigger-time","trigger-value","color"])):y.createCommentVNode("",!0)]}),_:2},1032,["title","group","time","status-text","accent","onSelect"])}),128)),C(B).length?y.createCommentVNode("",!0):(y.openBlock(),y.createElementBlock("div",Cse,"暂无符合条件的告警"))])]),_:2},1032,["title"])):B.widgetType==="alert_overview"?(y.openBlock(),y.createElementBlock("div",Tse,[(y.openBlock(),y.createElementBlock(y.Fragment,null,y.renderList([{label:"总数",key:"todayTotal",tone:"oklch(0.82 0.13 200)"},{label:"待处理",key:"todayPending",tone:"oklch(0.82 0.15 75)"},{label:"已处理",key:"todayResolved",tone:"oklch(0.74 0.16 155)"},{label:"逾期待处理",key:"overdueTotal",tone:"oklch(0.68 0.22 25)"}],$=>y.createVNode(Lx,{key:$.key,label:$.label,tone:$.tone},{default:y.withCtx(()=>[y.createVNode(Sse,{value:m(B)[$.key]||0,tone:$.tone,size:"lg"},null,8,["value","tone"])]),_:2},1032,["label","tone"])),64))])):(y.openBlock(),y.createBlock(Jl,{key:5,title:B.title||B.widgetType,class:"template-screen__panel"},y.createSlots({default:y.withCtx(()=>{var $,j,W,V,q,Ce,fe,ne,we,se,xe,qe,Pe;return[B.widgetType==="robot"?(y.openBlock(),y.createElementBlock("div",Ese,[r.showHalo?(y.openBlock(),y.createBlock(Bx,{key:0,width:180})):y.createCommentVNode("",!0),y.createVNode(Vx,{emotion:String(B.data.emotion||"neutral")},null,8,["emotion"])])):B.widgetType==="duty_today"?(y.openBlock(),y.createBlock(Mx,{key:1,compact:"","person-name":((W=(j=($=S(B)[0])==null?void 0:$.users)==null?void 0:j[0])==null?void 0:W.nickName)||((Ce=(q=(V=S(B)[0])==null?void 0:V.users)==null?void 0:q[0])==null?void 0:Ce.username)||"暂无值班人员","person-phone":((we=(ne=(fe=S(B)[0])==null?void 0:fe.users)==null?void 0:ne[0])==null?void 0:we.phone)||"","person-tag":((se=S(B)[0])==null?void 0:se.groupName)||"每日告警值班"},null,8,["person-name","person-phone","person-tag"])):B.widgetType==="build_projects"?(y.openBlock(),y.createBlock(Px,{key:2,items:_(B),"building-count":Number(((xe=B.data.summary)==null?void 0:xe.buildingCount)||0),"today-builds":Number(((qe=B.data.summary)==null?void 0:qe.todayBuilds)||0),"success-rate":Number(((Pe=B.data.summary)==null?void 0:Pe.successRate)||0)},null,8,["items","building-count","today-builds","success-rate"])):B.widgetType==="build_distribution"?(y.openBlock(),y.createBlock(Nx,{key:3,items:_(B),total:Number(B.data.total||0)},null,8,["items","total"])):(y.openBlock(),y.createElementBlock("div",Dse,"暂无可展示内容"))]}),_:2},[B.widgetType==="duty_today"&&B.props.showAllButton!==!1?{name:"header-extra",fn:y.withCtx(()=>[y.createVNode(mf,{variant:"secondary",appearance:"tech",size:"xs",onClick:O[3]||(O[3]=$=>a("openDuty"))},{default:y.withCtx(()=>[...O[5]||(O[5]=[y.createTextVNode("全部值班",-1)])]),_:1})]),key:"0"}:void 0]),1032,["title"]))],6))),128))],4)):(y.openBlock(),y.createElementBlock("div",xse,"请先在设置中选择大屏模板")),o.value?(y.openBlock(),y.createBlock($O,{key:2,modelValue:s.value,"onUpdate:modelValue":O[4]||(O[4]=B=>s.value=B),title:"告警详情",subtitle:`${I.value.groupName||((G=I.value.groupNames)==null?void 0:G[0])||"系统告警"} · ${I.value.assignedUserName||((F=I.value.assignedUsers)==null?void 0:F[0])||"未分配"}`,layout:"monitor",level:x(I.value)==="high"?"critical":x(I.value)==="mid"?"warning":"info",content:I.value.content||"暂无详细内容","info-items":M.value,"monitor-fields-variant":"compact",trend:I.value.chartValues||[],"chart-timestamps":I.value.chartTimestamps||[],"chart-trigger-time":I.value.triggerTime||I.value.firedAt||"","chart-trigger-value":I.value.triggerValue||"","chart-title":"监控折线图","chart-placement":"bottom","chart-show-extrema-markers":!1,"chart-enable-extrema-hover":!0,"chart-enable-selection-zoom":!0,"show-cancel-button":!1,"show-confirm-button":!1,"show-close-button":!0,onClose:R},{details:y.withCtx(()=>{var B,$,j,W;return[y.createElementVNode("div",kse,[u.value?(y.openBlock(),y.createElementBlock("div",Ase,"正在加载告警详情...")):c.value?(y.openBlock(),y.createElementBlock("div",Mse,y.toDisplayString(c.value),1)):(y.openBlock(),y.createElementBlock("section",Ise,[y.createElementVNode("p",null,"完整流水(操作 "+y.toDisplayString((($=(B=l.value)==null?void 0:B.actions)==null?void 0:$.length)||0)+" 条 + 触发 "+y.toDisplayString(((W=(j=l.value)==null?void 0:j.fires)==null?void 0:W.length)||0)+" 次)",1),L.value.length?(y.openBlock(),y.createBlock(UO,{key:0},{default:y.withCtx(()=>[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(L.value,(V,q)=>(y.openBlock(),y.createBlock(WO,{key:`${V.type}-${V.time}-${q}`,last:q===L.value.length-1,time:V.time,"dot-color":V.type==="fire"?"#ff7d00":"#0fc6c2"},{default:y.withCtx(()=>{var Ce;return[y.createElementVNode("div",Lse,[y.createElementVNode("strong",null,y.toDisplayString(V.title),1),V.operator?(y.openBlock(),y.createElementBlock("span",Nse,y.toDisplayString(V.operator),1)):y.createCommentVNode("",!0),y.createElementVNode("p",null,y.toDisplayString(V.content),1),(Ce=V.chartValues)!=null&&Ce.length?(y.openBlock(),y.createBlock(zp,{key:1,values:V.chartValues,timestamps:V.chartTimestamps||[],height:180,color:V.type==="fire"?"#ff7d00":"#38bdf8","enable-selection-zoom":!0},null,8,["values","timestamps","color"])):y.createCommentVNode("",!0)])]}),_:2},1032,["last","time","dot-color"]))),128))]),_:1})):(y.openBlock(),y.createElementBlock("div",Pse,"暂无流水记录"))]))])]}),footer:y.withCtx(()=>[y.createVNode(mf,{variant:"secondary",appearance:"tech",size:"lg",onClick:R},{default:y.withCtx(()=>[...O[6]||(O[6]=[y.createTextVNode("关闭窗口",-1)])]),_:1})]),_:1},8,["modelValue","subtitle","level","content","info-items","trend","chart-timestamps","chart-trigger-time","chart-trigger-value"])):y.createCommentVNode("",!0)],32)}}}),[["__scopeId","data-v-3c0027ca"]]),XO={screen_header:{dateText:"2026-07-27",timeText:"14:30",weekdayText:"星期一"},robot:{status:"online",mode:"guard",emotion:"neutral",generatedAt:"2026-07-27 14:30:00",summary:{dutyGroups:3,todayAlerts:12,buildingCount:4,endpointNodes:86},alerts:{todayTotal:12,todayPending:3,criticalCount:1,warningCount:5},builds:{buildingCount:4,todayBuilds:28,successRate:98.6}},duty_today:{date:"2026-07-27",totalGroups:3,totalUsers:8,groups:[{groupId:1,groupName:"平台组",users:[{userId:101,nickName:"张工",username:"zhang"},{userId:102,nickName:"李工",username:"li"}]},{groupId:2,groupName:"网络组",users:[{userId:103,nickName:"王工",username:"wang"}]}]},alert_overview:{stats:{todayTotal:12,todayPending:3,todayResolved:8,overdueTotal:1}},alert_latest:{total:3,stats:{todayTotal:12,todayPending:3,overdueTotal:1,criticalCount:1,warningCount:5,infoCount:6},items:[{id:1,alertId:"AL-20260727-001",title:"边缘节点延迟升高",severity:"WARN",severityText:"警告",status:"pending",statusText:"待处理",source:"edge-01",firedAt:"14:20",groupNames:["网络组"]},{id:2,alertId:"AL-20260727-002",title:"构建队列等待时间过长",severity:"CRITICAL",severityText:"严重",status:"processing",statusText:"处理中",source:"CI/CD",firedAt:"14:08",groupNames:["平台组"]},{id:3,alertId:"AL-20260727-003",title:"磁盘使用率接近阈值",severity:"INFO",severityText:"提示",status:"pending",statusText:"待处理",source:"node-03",firedAt:"13:56",groupNames:["运维组"]}]},build_projects:{summary:{buildingCount:4,todayBuilds:28,successRate:98.6},items:[{pipelineId:1,buildId:101,jobName:"eagle-eye-web",statusText:"构建中",currentStage:"测试",buildUser:"system",progress:68},{pipelineId:2,buildId:102,jobName:"quark-api",statusText:"构建中",currentStage:"镜像打包",buildUser:"李工",progress:42}]},build_distribution:{total:100,items:[{name:"应用构建",count:42},{name:"镜像构建",count:27},{name:"基础设施",count:18},{name:"其他任务",count:13}]},endpoint_distribution:{summary:{total:3},items:[{id:1,nodeName:"edge-01",nodeIp:"10.10.2.11",nodeStatus:!0,heartbeatResults:[{targetName:"API Gateway",targetIp:"10.10.1.10",latencyMs:12.4}]},{id:2,nodeName:"edge-02",nodeIp:"10.10.2.12",nodeStatus:!0,heartbeatResults:[{targetName:"API Gateway",targetIp:"10.10.1.10",latencyMs:18.7}]},{id:3,nodeName:"edge-03",nodeIp:"10.10.2.13",nodeStatus:!1,heartbeatResults:[]}]}};function Ose(r){return JSON.parse(JSON.stringify(XO[r]))}Je.BigScreenAlertRow=Ix,Je.BigScreenBuildDistribution=Nx,Je.BigScreenBuildProjects=Px,Je.BigScreenDutyContent=Mx,Je.BigScreenEndpointDistribution=Rx,Je.BigScreenExternalEmbed=Ox,Je.BigScreenHeader=FV,Je.BigScreenMetricCard=Lx,Je.BigScreenPanel=Jl,Je.BigScreenRobotSummary=jV,Je.BigScreenTemplateRenderer=Rse,Je.QuarkAlertDialog=$O,Je.QuarkBaseModal=Gx,Je.QuarkCollapse=hse,Je.QuarkCollapseItem=pse,Je.QuarkDutyCompact=l4,Je.QuarkMetricTrendChart=zp,Je.QuarkRobot=Vx,Je.QuarkRobotHalo=Bx,Je.QuarkTimeline=UO,Je.QuarkTimelineItem=WO,Je.QuarkTopHeader=zx,Je.QuarkUiButton=mf,Je.QuarkUiSegmented=Ex,Je.bigScreenPreviewFixtures=XO,Je.getBigScreenPreviewData=Ose,Object.defineProperty(Je,Symbol.toStringTag,{value:"Module"})}));