var JL=Object.defineProperty,QL=Object.defineProperties;var jL=Object.getOwnPropertyDescriptors;var Am=Object.getOwnPropertySymbols;var tI=Object.prototype.hasOwnProperty,eI=Object.prototype.propertyIsEnumerable;var Dm=(r,e,t)=>e in r?JL(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Mm=(r,e)=>{for(var t in e||(e={}))tI.call(e,t)&&Dm(r,t,e[t]);if(Am)for(var t of Am(e))eI.call(e,t)&&Dm(r,t,e[t]);return r},Lm=(r,e)=>QL(r,jL(e));var ra=(r,e,t)=>new Promise((a,n)=>{var i=l=>{try{s(t.next(l))}catch(u){n(u)}},o=l=>{try{s(t.throw(l))}catch(u){n(u)}},s=l=>l.done?a(l.value):Promise.resolve(l.value).then(i,o);s((t=t.apply(r,e)).next())});import{d as fn,r as rI,o as _t,c as It,E as pa,F as lr,a as N,g as df,l as Xt,$ as wd,e as zr,m as Ee,_ as hn,p as Si,q as xi,x as Uu,a0 as aI,a1 as nI,j as Gs,s as Ob,w as hg,V as vg,T as ar,C as Fr,W as cg,A as iI,a2 as Im,z as bd,a3 as Cd}from"./index.js?v=5b4be379";var oI="/luci-static/istorex/disk.png?v=14325490",sI="/luci-static/istorex/partition.png?v=d1e1a8fb",lI="/luci-static/istorex/folder.png?v=38e4700a";const Bb=r=>(Si("data-v-8009221e"),r=r(),xi(),r),uI=["onClick"],fI={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hI=Bb(()=>N("path",{d:"M14.4 4.80005L8.00002 11.2L1.60002 4.80005",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),vI=[hI],cI={key:1,width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dI=Bb(()=>N("path",{d:"M1.80005 1.59998L8.20005 7.99998L1.80005 14.4",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),pI=[dI],gI=["src"],yI={key:1,class:"empty"},mI=fn({__name:"folder-tree",props:{currPath:{type:Object,required:!0},folders:{type:Array,required:!0},onDisk:{type:Function,required:!0},context:{type:Object,required:!0}},setup(r){const e=r,t=(a,n)=>{a.folder&&(a.folder.openChildren=!a.folder.openChildren),e.onDisk(a,n)};return(a,n)=>{const i=rI("folder-tree",!0);return r.folders.length?(_t(!0),It(lr,{key:0},pa(r.folders,(o,s)=>(_t(),It("div",{key:s,class:"folder-body"},[N("div",{class:"content",onClick:l=>t({disk:r.context.disk,mount:r.context.mount,folder:o},"folder"),style:wd(o.rootPath&&r.currPath.join().includes(o.rootPath)?"background-color:#ecf5ff;":"")},[o.openChildren?(_t(),It("svg",fI,vI)):(_t(),It("svg",cI,pI)),N("img",{src:df(lI)},null,8,gI),N("span",null,Xt(o.name),1)],12,uI),o.openChildren?(_t(),It(lr,{key:0},[o.childrens?(_t(),zr(i,{key:0,currPath:r.currPath,"on-disk":r.onDisk,folders:o.childrens,context:{disk:r.context.disk,mount:r.context.mount}},null,8,["currPath","on-disk","folders","context"])):Ee("",!0)],64)):Ee("",!0)]))),128)):(_t(),It("div",yI,"\u7A7A\u76EE\u5F55"))}}});var _I=hn(mI,[["__scopeId","data-v-8009221e"]]);const yl=r=>(Si("data-v-2ec06138"),r=r(),xi(),r),SI={class:"disk-item"},xI={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wI=yl(()=>N("path",{d:"M14.4 4.80005L8.00002 11.2L1.60002 4.80005",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),bI=[wI],CI={key:1,width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TI=yl(()=>N("path",{d:"M1.80005 1.59998L8.20005 7.99998L1.80005 14.4",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),AI=[TI],DI={class:"disk-item_icon"},MI=["src"],LI={class:"disk-item_f"},II={class:"disk-item_venderModel"},PI={class:"disk-item_used"},RI={key:0,class:"tag",style:{color:"#3a9a50",background:"rgba(97, 216, 4, 0.2)"}},EI=yl(()=>N("div",{class:"auto"},null,-1)),kI={class:"disk-item-r"},OI={class:"disk-children"},BI=["onClick"],NI={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},VI=yl(()=>N("path",{d:"M14.4 4.80005L8.00002 11.2L1.60002 4.80005",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),zI=[VI],FI={key:1,width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GI=yl(()=>N("path",{d:"M1.80005 1.59998L8.20005 7.99998L1.80005 14.4",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),HI=[GI],WI={class:"disk-item_icon"},$I=["src"],UI={class:"disk-children-item_f"},YI=["onClick"],ZI=fn({__name:"disk-item",props:{currPath:{type:Object,required:!0},disk:{type:Object,required:!0},onRefresh:{type:Function,required:!0},onDisk:{type:Function,required:!0}},setup(r){const e=r,t=(i,o)=>{o==="disk"&&i.disk&&(i.disk.openChildren=!i.disk.openChildren),o==="mount"&&i.mount&&(i.mount.openChildren=!i.mount.openChildren),e.onDisk({disk:i.disk,mount:i.mount,folder:null},o)},a=i=>{nI({step:"format",data:{path:i.path},callback:()=>{e.onRefresh()}})},n=()=>{};return(i,o)=>(_t(),It("ul",SI,[N("li",{class:"disk-info",onClick:o[0]||(o[0]=s=>t({disk:r.disk,mount:null},"disk")),style:wd(r.disk.path&&r.currPath.includes(r.disk.path)?"background-color:#ecf5ff;":"")},[r.disk.openChildren?(_t(),It("svg",xI,bI)):(_t(),It("svg",CI,AI)),N("div",DI,[N("img",{src:df(oI)},null,8,MI)]),N("div",LI,[N("div",null,[N("div",II,Xt(r.disk.venderModel),1),N("div",PI,Xt(r.disk.used)+"/"+Xt(r.disk.size),1)]),r.disk.isSystemRoot?(_t(),It("span",RI,"Root\u76D8")):Ee("",!0)]),EI,N("div",kI,Xt(r.disk.path),1)],4),Uu(N("div",OI,[(_t(!0),It(lr,null,pa(r.disk.childrens,s=>(_t(),It("div",null,[N("li",{class:"disk-children-item",onClick:l=>t({disk:r.disk,mount:s},"mount"),style:wd(s.mountPoint&&r.currPath.includes(s.mountPoint)?"background-color:#ecf5ff;":"")},[s.openChildren?(_t(),It("svg",NI,zI)):(_t(),It("svg",FI,HI)),N("div",WI,[N("img",{src:df(sI)},null,8,$I)]),N("div",UI,[N("div",null,[N("span",null,Xt(s.name)+"\u3010"+Xt(s.filesystem)+"\u3011"+Xt(s.mountPoint),1),N("div",null,Xt(r.disk.used)+"/"+Xt(r.disk.size),1)]),s.filesystem!=="No FileSystem"&&!s.mountPoint?(_t(),It("span",{key:0,onClick:n,class:"tag",style:{color:"#4b6fed",background:"#e3eaff"}}," \u9700\u8981\u6302\u8F7D ")):Ee("",!0),s.filesystem==="No FileSystem"&&!s.mountPoint?(_t(),It("span",{key:1,onClick:()=>a(s),class:"tag",style:{color:"#df493f",background:"#ffe3e2"}}," \u9700\u8981\u683C\u5F0F\u5316 ",8,YI)):Ee("",!0)])],12,BI),s.openChildren?(_t(),zr(_I,{key:0,currPath:r.currPath,context:{disk:r.disk,mount:s},folders:s.childrens?s.childrens:[],"on-disk":r.onDisk},null,8,["currPath","context","folders","on-disk"])):Ee("",!0)]))),256))],512),[[aI,r.disk.openChildren]])]))}});var Pm=hn(ZI,[["__scopeId","data-v-2ec06138"]]);const XI={class:"content"},qI={class:"header"},KI={class:"disk-list"},JI=fn({__name:"index",props:{close:Function,onOk:Function},setup(r){const e=r,t=()=>{e.close&&e.close()},a=()=>{e.onOk&&e.onOk(o.value),e.close&&e.close()},n=Gs({disks:[],raids:[]}),i=Gs([]),o=Ob(""),s=(u,f)=>ra(this,null,function*(){var c,d,p,g,y,m,_,S,w,x,b,C,T;const h={path:"",order:"date",orderBy:"asc",filter:"dir"};console.log("locationType",f),f==="mount"&&((c=u.mount)==null?void 0:c.mountPoint)&&(h.path="/local/root"+((d=u.mount)==null?void 0:d.mountPoint),o.value=(p=u.mount)==null?void 0:p.mountPoint,i[2]=""),f==="folder"&&((g=u.folder)==null?void 0:g.rootPath)&&(h.path="/local"+u.folder.rootPath,o.value=u.folder.rootPath),(y=u.disk)!=null&&y.path&&(i[0]=(m=u.disk)==null?void 0:m.path),(_=u.mount)!=null&&_.mountPoint&&(i[1]=(S=u.mount)==null?void 0:S.mountPoint),(w=u.folder)!=null&&w.rootPath&&(i[2]=(x=u.folder)==null?void 0:x.rootPath);const v=yield Fr.Linkease.File.List.POST(h);(b=v.data.result)!=null&&b.entries&&(f==="mount"&&u.mount&&(u.mount.childrens=(C=v.data.result)==null?void 0:C.entries),f==="folder"&&u.folder&&(u.folder.childrens=(T=v.data.result)==null?void 0:T.entries))}),l=()=>ra(this,null,function*(){const u=ar.Loading("\u52A0\u8F7D\u4E2D..."),f=yield Promise.all([Fr.Nas.Disk.Status.GET(),Fr.Raid.List.GET()]);u.Close();try{if(f[0]){const h=f[0];h!=null&&h.data.result&&(n.disks=(h==null?void 0:h.data.result.disks)||[])}if(f[1]){const h=f[1];h.data.result&&(n.raids=h.data.result.disks||[])}}catch(h){ar.Warning(h)}});return l(),(u,f)=>(_t(),zr(vg,{onHandleClose:t,title:"\u9009\u62E9\u4F4D\u7F6E",width:"572px"},{default:hg(()=>[N("div",XI,[N("div",qI,[N("div",null,[N("span",null,Xt(`\u76EE\u7684\u5730\uFF1A${o.value?o.value:"\u8BF7\u9009\u62E9"}`),1)]),N("div",{onClick:l},"\u5237\u65B0\u76EE\u5F55")]),N("div",KI,[(_t(!0),It(lr,null,pa(n.disks,h=>(_t(),zr(Pm,{currPath:i,disk:h,onDisk:s,onRefresh:l},null,8,["currPath","disk"]))),256)),(_t(!0),It(lr,null,pa(n.raids,h=>(_t(),zr(Pm,{currPath:i,disk:h,onDisk:s,onRefresh:l},null,8,["currPath","disk"]))),256))])]),N("div",{class:"dialog-footer"},[N("div",null,[N("button",{onClick:t},"\u53D6\u6D88"),N("button",{onClick:a},"\u786E\u5B9A")])])]),_:1}))}});var QI=hn(JI,[["__scopeId","data-v-0763aef7"]]);class jI extends cg{Open(e){this.openWindow(QI,e)}}const tP=new jI;const dg=r=>(Si("data-v-e79621ae"),r=r(),xi(),r),eP={class:"content"},rP={class:"form-container1"},aP=dg(()=>N("div",{class:"label-name"},[N("span",null,"\u9009\u62E9\u4F4D\u7F6E")],-1)),nP={class:"label-value"},iP=["value"],oP=dg(()=>N("div",{class:"label-name"},[N("span",null,"\u5171\u4EAB\u540D\u79F0 ")],-1)),sP={class:"label-value"},lP=dg(()=>N("div",{class:"label-name"},[N("span",null,"\u5171\u4EAB\u65B9\u5F0F")],-1)),uP={class:"label-value"},fP={class:"label-flex"},hP={class:"label-radio"},vP={class:"label-radio"},cP={class:"dialog-footer"},dP=fn({__name:"main-form",props:{context:{type:Object,required:!0}},emits:["onNext"],setup(r,{emit:e}){const t=r;console.log("form",t.context);const a=()=>{if(!t.context.path)return ar.Message("\u8BF7\u9009\u62E9\u4F4D\u7F6E");if(!t.context.name)return ar.Message("\u8BF7\u8F93\u5165\u5171\u4EAB\u540D\u79F0");if(!t.context.samba&&!t.context.webdav)return ar.Message("\u8BF7\u9009\u62E9\u5171\u4EAB\u65B9\u5F0F");e("onNext")};return(n,i)=>(_t(),It("div",eP,[N("form",rP,[N("div",null,[aP,N("div",nP,[N("input",{value:t.context.path,type:"text"},null,8,iP),N("span",{class:"button",onClick:i[0]||(i[0]=o=>n.$emit("openDisk",!0))},"\u6D4F\u89C8")])]),N("div",null,[oP,N("div",sP,[Uu(N("input",{"onUpdate:modelValue":i[1]||(i[1]=o=>t.context.name=o),type:"text"},null,512),[[iI,t.context.name,void 0,{trim:!0}]])])]),N("div",null,[lP,N("div",uP,[N("div",fP,[N("label",hP,[Uu(N("input",{type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=o=>t.context.samba=o)},null,512),[[Im,t.context.samba]]),bd("Samba ")]),N("label",vP,[Uu(N("input",{type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=o=>t.context.webdav=o)},null,512),[[Im,t.context.webdav]]),bd("WebDav ")])])])])]),N("div",cP,[N("div",null,[N("button",{onClick:i[4]||(i[4]=o=>n.$emit("onCancel",!1))},"\u53D6\u6D88"),N("button",{onClick:a},"\u4E0B\u4E00\u6B65")])])]))}});var pP=hn(dP,[["__scopeId","data-v-e79621ae"]]);const ml=r=>(Si("data-v-6363551b"),r=r(),xi(),r),gP=ml(()=>N("span",{class:"title"},"\u786E\u8BA4\u4FE1\u606F",-1)),yP={class:"detail"},mP=ml(()=>N("span",null,"\u5171\u4EAB\u540D\u79F0:",-1)),_P=ml(()=>N("span",null,"\u5171\u4EAB\u4F4D\u7F6E:",-1)),SP=ml(()=>N("span",null,"\u5171\u4EAB\u65B9\u5F0F:",-1)),xP=ml(()=>N("span",null,"\u5171\u4EAB\u7528\u6237:",-1)),wP={class:"dialog-footer"},bP=fn({__name:"form-confirm",props:{context:{type:Object,required:!0},mode:{type:String,required:!0}},setup(r){const e=r;return(t,a)=>(_t(),It(lr,null,[N("div",null,[N("div",null,[gP,N("div",yP,[N("div",null,[mP,N("span",null,Xt(r.context.name),1)]),N("div",null,[_P,N("span",null,Xt(r.context.path),1)]),N("div",null,[SP,N("span",null,Xt(`${r.context.samba?"Samba":""} ${r.context.webdav?"WebDav":""}`),1)]),N("div",null,[xP,(_t(!0),It(lr,null,pa(r.context.users,(n,i)=>(_t(),It("span",{key:i},Xt(`${n.userName}(${n.ro?"\u53EA\u8BFB":"\u8BFB\u5199"})${r.context.users.length-1===i?"":"\u3001"}`),1))),128))])])])]),N("div",wP,[N("div",null,[N("button",{onClick:a[0]||(a[0]=n=>t.$emit("onCancel"))},"\u4E0A\u4E00\u6B65"),N("button",{onClick:a[1]||(a[1]=n=>t.$emit("onOk"))},Xt(e.mode==="edit"?"\u7F16\u8F91":"\u521B\u5EFA"),1)])])],64))}});var CP=hn(bP,[["__scopeId","data-v-6363551b"]]);const TP=r=>(Si("data-v-26847234"),r=r(),xi(),r),AP={class:"ul-container"},DP={class:"ul-container_body"},MP={class:"page-table"},LP=TP(()=>N("thead",null,[N("tr",null,[N("th",null,"\u7528\u6237"),N("th",null,"\u8BFB\u5199"),N("th",null,"\u53EA\u8BFB"),N("th",null,"\u65E0\u6743\u9650")])],-1)),IP=["checked","onChange"],PP=["checked","onChange"],RP=["checked","onChange"],EP={class:"dialog-footer"},kP=fn({__name:"user-table",props:{context:{type:Object,required:!0}},setup(r){const e=r,t=Gs({users:e.context.users}),a=()=>ra(this,null,function*(){try{const o=yield Fr.Share.User.GET();if(o!=null&&o.data){const{result:s}=o.data;s&&(t.users=s.users.map(l=>Lm(Mm({},l),{ro:!1,rw:!0})))}}catch(o){console.log(o)}}),n=(o,s)=>{s?s==="ro"?(o.ro=!0,o.rw=!1):(o.ro=!1,o.rw=!0):(o.rw=!1,o.ro=!1)};e.context.users.length||a();function i(){Cd({callback:o=>{t.users=[...t.users,o]}})}return(o,s)=>(_t(),It(lr,null,[N("button",{class:"add-user",onClick:i},"\u65B0\u589E"),N("ul",AP,[N("div",DP,[N("table",MP,[LP,N("tbody",null,[(_t(!0),It(lr,null,pa(t.users,l=>(_t(),It("tr",null,[N("th",null,Xt(l.userName),1),N("th",null,[N("input",{type:"radio",checked:l.rw,onChange:u=>n(l,"rw")},null,40,IP)]),N("th",null,[N("input",{type:"radio",checked:l.ro,onChange:u=>n(l,"ro")},null,40,PP)]),N("th",null,[N("input",{type:"radio",checked:!l.ro&&!l.rw,onChange:u=>n(l)},null,40,RP)])]))),256))])])])]),N("div",EP,[N("div",null,[N("button",{onClick:s[0]||(s[0]=l=>o.$emit("onCancel",!1))},"\u4E0A\u4E00\u6B65"),N("button",{onClick:s[1]||(s[1]=l=>o.$emit("onOk",t.users))},"\u4E0B\u4E00\u6B65")])])],64))}});var OP=hn(kP,[["__scopeId","data-v-26847234"]]);const hh=r=>(Si("data-v-9c961df4"),r=r(),xi(),r),BP={key:0},NP={key:0,class:"no-data"},VP=hh(()=>N("span",null,"\u6682\u65F6\u8FD8\u6CA1\u6709\u4EFB\u4F55\u5171\u4EAB\u6587\u4EF6",-1)),zP={key:1,class:"list"},FP=hh(()=>N("div",{class:"img"},[N("svg",{width:"71",height:"63",viewBox:"0 0 71 63",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[N("rect",{width:"71",height:"63",fill:"url(#pattern0)"}),N("defs",null,[N("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},[N("use",{"xlink:href":"#image0_57_1478",transform:"matrix(0.00892857 0 0 0.0100624 0 -0.00311791)"})]),N("image",{id:"image0_57_1478",width:"112",height:"100","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABkCAYAAABep7TGAAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSIbQAAlJCb4JIDSAlhBZAehFshCRAKDEGgogdXVRw7WIBG7oqotgBsSN2FsXeF0RUlHWxYEPlTQrouq98b75v7vz3nzP/OXPuzL13AFA/xRWLc1ANAHJF+ZLYkADG2OQUBukZIAMToAJwgHF5eWJWdHQEgGWw/Xt5fwsgsva6g0zrn/3/tWjyBXk8AJBoiNP4ebxciA8BgFfyxJJ8AIgy3nxqvliGYQXaEhggxAtlOEOBK2U4TYH3yW3iY9kQNwNAVuVyJRkAqF2FPKOAlwE11HohdhLxhSIA1BkQ++bmTuZDnAqxDbQRQyzTZ6b9oJPxN820IU0uN2MIK+YiL+RAYZ44hzvt/0zH/y65OdJBH1awqmZKQmNlc4Z5u5M9OVyGVSHuEaVFRkGsBfFHIV9uDzFKzZSGJijsUUNeHhvmDOhC7MTnBoZDbAhxsCgnMkLJp6ULgzkQwxWCFgrzOfEQ60G8UJAXFKe02SyZHKv0hdalS9gsJX+BK5H7lfl6JM1OYCn132QKOEp9TK0oMz4JYirEFgXCxEiI1SB2zMuOC1fajC7KZEcO2kiksbL4LSCOFYhCAhT6WEG6JDhWaV+amzc4X2xzppATqcQH8jPjQxX5wZp5XHn8cC7YVYGIlTCoI8gbGzE4F74gMEgxd+y5QJQQp9T5KM4PiFWMxaninGilPW4myAmR8WYQu+YVxCnH4on5cEEq9PF0cX50vCJOvCiLGxatiAdfBiIAGwQCBpDCmgYmgywgbO2p74F3ip5gwAUSkAEEwEHJDI5IkveI4DUOFIE/IRKAvKFxAfJeASiA/NchVnF1AOny3gL5iGzwFOJcEA5y4L1UPko05C0RPIGM8B/eubDyYLw5sMr6/z0/yH5nWJCJUDLSQY8M9UFLYhAxkBhKDCba4ga4L+6NR8CrP6zOOBP3HJzHd3vCU0Ib4THhJqGdcHeSsFjyU5RjQDvUD1bmIu3HXOBWUNMND8B9oDpUxnVxA+CAu0I/LNwPenaDLFsZtywrjJ+0/zaDH56G0o7iREEpwyj+FJufR6rZqbkNqchy/WN+FLGmDeWbPdTzs3/2D9nnwzb8Z0tsIXYQO4+dxi5ix7B6wMBOYg1YC3ZchodW1xP56hr0FiuPJxvqCP/hb/DJyjKZ51Tj1O30RdGXLyiUvaMBe7J4mkSYkZnPYMEvgoDBEfEcRzCcnZxdAJB9XxSvr7cx8u8GotvynZv3BwA+JwcGBo5+58JOArDfA27/I985Gyb8dKgAcOEITyopUHC47EKAbwl1uNP0gTEwBzZwPs7AHXgDfxAEwkAUiAfJYCKMPhOucwmYCmaAuaAElIFlYDVYDzaBrWAn2AMOgHpwDJwG58BlcBXcBPfh6ukCL0EveA/6EQQhITSEjugjJoglYo84I0zEFwlCIpBYJBlJRTIQESJFZiDzkDJkBbIe2YJUI/uRI8hp5CLShtxFOpBu5A3yGcVQVVQbNUKt0JEoE2Wh4Wg8OgHNQKegReh8dAm6Fq1Cd6N16Gn0MnoTbUdfon0YwFQwXcwUc8CYGBuLwlKwdEyCzcJKsXKsCqvFGuFzvo61Yz3YJ5yI03EG7gBXcCiegPPwKfgsfDG+Ht+J1+HN+HW8A+/FvxFoBEOCPcGLwCGMJWQQphJKCOWE7YTDhLNwL3UR3hOJRF2iNdED7sVkYhZxOnExcQNxL/EUsY3YSewjkUj6JHuSDymKxCXlk0pI60i7SSdJ10hdpI9kFbIJ2ZkcTE4hi8jF5HLyLvIJ8jXyM3I/RYNiSfGiRFH4lGmUpZRtlEbKFUoXpZ+qSbWm+lDjqVnUudS11FrqWeoD6lsVFRUzFU+VGBWhyhyVtSr7VC6odKh8UtVStVNlq45XlaouUd2hekr1rupbGo1mRfOnpdDyaUto1bQztEe0j2p0NUc1jhpfbbZahVqd2jW1V+oUdUt1lvpE9SL1cvWD6lfUezQoGlYabA2uxiyNCo0jGrc1+jTpmqM0ozRzNRdr7tK8qPlci6RlpRWkxdear7VV64xWJx2jm9PZdB59Hn0b/Sy9S5uoba3N0c7SLtPeo92q3aujpeOqk6hTqFOhc1ynXRfTtdLl6OboLtU9oHtL9/Mwo2GsYYJhi4bVDrs27IPecD1/PYFeqd5evZt6n/UZ+kH62frL9ev1HxrgBnYGMQZTDTYanDXoGa493Hs4b3jp8APD7xmihnaGsYbTDbcathj2GRkbhRiJjdYZnTHqMdY19jfOMl5lfMK424Ru4msiNFllctLkBUOHwWLkMNYymhm9poamoaZS0y2mrab9ZtZmCWbFZnvNHppTzZnm6earzJvMey1MLMZYzLCosbhnSbFkWmZarrE8b/nBytoqyWqBVb3Vc2s9a451kXWN9QMbmo2fzRSbKpsbtkRbpm227Qbbq3aonZtdpl2F3RV71N7dXmi/wb5tBGGE5wjRiKoRtx1UHVgOBQ41Dh2Ouo4RjsWO9Y6vRlqMTBm5fOT5kd+c3JxynLY53R+lNSpsVPGoxlFvnO2cec4VzjdcaC7BLrNdGlxeu9q7Clw3ut5xo7uNcVvg1uT21d3DXeJe697tYeGR6lHpcZupzYxmLmZe8CR4BnjO9jzm+cnL3Svf64DXX94O3tneu7yfj7YeLRi9bXSnj5kP12eLT7svwzfVd7Nvu5+pH9evyu+xv7k/33+7/zOWLSuLtZv1KsApQBJwOOAD24s9k30qEAsMCSwNbA3SCkoIWh/0KNgsOCO4Jrg3xC1kesipUEJoeOjy0NscIw6PU83pDfMImxnWHK4aHhe+PvxxhF2EJKJxDDombMzKMQ8iLSNFkfVRIIoTtTLqYbR19JToozHEmOiYipinsaNiZ8Sej6PHTYrbFfc+PiB+afz9BJsEaUJTonri+MTqxA9JgUkrktrHjhw7c+zlZINkYXJDCiklMWV7St+4oHGrx3WNdxtfMv7WBOsJhRMuTjSYmDPx+CT1SdxJB1MJqUmpu1K/cKO4Vdy+NE5aZVovj81bw3vJ9+ev4ncLfAQrBM/SfdJXpD/P8MlYmdGd6ZdZntkjZAvXC19nhWZtyvqQHZW9I3sgJylnby45NzX3iEhLlC1qnmw8uXBym9heXCJun+I1ZfWUXkm4ZHsekjchryFfG/7It0htpL9IOwp8CyoKPk5NnHqwULNQVNgyzW7aomnPioKLfpuOT+dNb5phOmPujI6ZrJlbZiGz0mY1zTafPX9215yQOTvnUudmz/292Kl4RfG7eUnzGucbzZ8zv/OXkF9qStRKJCW3F3gv2LQQXyhc2LrIZdG6Rd9K+aWXypzKysu+LOYtvvTrqF/X/jqwJH1J61L3pRuXEZeJlt1a7rd85wrNFUUrOleOWVm3irGqdNW71ZNWXyx3Ld+0hrpGuqZ9bcTahnUW65at+7I+c/3NioCKvZWGlYsqP2zgb7i20X9j7SajTWWbPm8Wbr6zJWRLXZVVVflW4taCrU+3JW47/xvzt+rtBtvLtn/dIdrRvjN2Z3O1R3X1LsNdS2vQGmlN9+7xu6/uCdzTUOtQu2Wv7t6yfWCfdN+L/an7bx0IP9B0kHmw9pDlocrD9MOldUjdtLre+sz69obkhrYjYUeaGr0bDx91PLrjmOmxiuM6x5eeoJ6Yf2LgZNHJvlPiUz2nM053Nk1qun9m7JkbzTHNrWfDz144F3zuzHnW+ZMXfC4cu+h18cgl5qX6y+6X61rcWg7/7vb74Vb31rorHlcarnpebWwb3Xbimt+109cDr5+7wblx+WbkzbZbCbfu3B5/u/0O/87zuzl3X98ruNd/f84DwoPShxoPyx8ZPqr6w/aPve3u7cc7AjtaHsc9vt/J63z5JO/Jl675T2lPy5+ZPKt+7vz8WHdw99UX4150vRS/7O8p+VPzz8pXNq8O/eX/V0vv2N6u15LXA28Wv9V/u+Od67umvui+R+9z3/d/KP2o/3HnJ+an85+TPj/rn/qF9GXtV9uvjd/Cvz0YyB0YEHMlXPmvAAYrmp4OwJsdANCSAaDD8xl1nOL8Jy+I4swqR+A/YcUZUV7cAaiF/+8xPfDv5jYA+7bB4xfUVx8PQDQNgHhPgLq4DNXBs5r8XCkrRHgO2Bz5NS03Dfybojhz/hD3zy2QqbqCn9t/Ae5cfEE5Hk+sAAAAbGVYSWZNTQAqAAAACAAEARoABQAAAAEAAAA+ARsABQAAAAEAAABGASgAAwAAAAEAAgAAh2kABAAAAAEAAABOAAAAAAAAAJAAAAABAAAAkAAAAAEAAqACAAQAAAABAAAAcKADAAQAAAABAAAAZAAAAAAhyIn1AAAACXBIWXMAABYlAAAWJQFJUiTwAAADjUlEQVR4Ae2czWoTURTHz51JQmxJrSDFnYgi+ARufQafwGfwZQR34kZB8AncCS50I7gptVZE/OgiVPuVzMcd762Q6MKY0PxPcm7+A4G0Mznnf3+/nExmkXFN2ISbWQKZ2eQMfkaAAo2/ESiQAo0TMB6fE0iBxgkYj88JpEDjBIzH5wRSoHECxuNzAinQOAHj8TmBFGicgPH4nEAKNE7AeHxOoHGBLWR+f/JVys/Ppfz+Upr6FNlqVDvrbErn6l1pbd0R1+6N/p/qE+gEVv1XqvKiJF8cyHD3sVT91yL1MFVvo3VBBTblodrkjVYUnjS+lGLvqdSHO/GvP3cl9xwqcJG0/GBfik/PJL6JUt6SFRilVf23Un57ET5KB8k6TFpgtFbsPZHq53Y4OVZJSkxeYOMLKXYeih/uB4HpnQ+TFxjHrj75IoPtB+KPPgaHdfxXMhv0OnCZKNUH7+T4zX1xzk2I9fc+52Z9f/9+fda7Jp3r9yTfuDWh13x2zZpwPl0XWCX+kuDfDx/2jR8+nDdne5Th+FKqH+9l+OGRyipXTqAKVfHiT+M5F79RIJ4xtAMFQvHii1MgnjG0AwVC8eKLYy8jzr6yZ//56o5f5EI6TLxcmV8iqEDX6kje25S8uyYy8zXV/BapXampCvF1rtIWKjDrrK2cvGjNtdph3RsqArHnwDh1KzR5Y2MunDZ0JhArcLwiPgMRoEAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yYIHxJ/g6PzXWAjZdn3DTO9eZ7tBzHgUVmHW3xHWvhIirJdG11iVbv3FONdO9HHqXCnfhpuSXa2mOd8N9OovpEqVwVPuS5Bdvq6zEhVsvpncbWxV0y9EE+hG6HEtMOwUFGvdLgRRonIDx+JxACjROwHh8TiAFGidgPD4nkAKNEzAenxNIgcYJGI/PCaRA4wSMx+cEUqBxAsbjcwIp0DgB4/E5gRRonIDx+JxACjROwHh8TiAFGidgPD4n0LjAX3BSxpPyLY/MAAAAAElFTkSuQmCC"})])])],-1)),GP={class:"name"},HP={class:"action"},WP=["onClick"],$P=hh(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M18.9763 4.54325C19.1776 4.35138 19.4462 4.24614 19.7243 4.25011C20.0025 4.25408 20.2679 4.36696 20.4637 4.5645L26.2544 10.4051C26.3566 10.5081 26.4367 10.6309 26.4897 10.7661C26.5426 10.9012 26.5673 11.0458 26.5622 11.1908C26.5571 11.3359 26.5224 11.4783 26.4601 11.6095C26.3979 11.7406 26.3094 11.8575 26.2002 11.9531L12.2474 24.174C12.048 24.349 11.7902 24.443 11.5249 24.4375L6.35269 24.327C6.07478 24.3212 5.81023 24.2066 5.61577 24.008C5.42131 23.8094 5.31244 23.5425 5.3125 23.2645V18.0115C5.31247 17.8677 5.34165 17.7253 5.39827 17.5931C5.45489 17.4609 5.53776 17.3415 5.64187 17.2423L18.9763 4.54325ZM20.3862 21.6261L28.3496 21.7812C28.4892 21.784 28.6268 21.8141 28.7547 21.8701C28.8825 21.926 28.9981 22.0065 29.0949 22.1071C29.1916 22.2077 29.2676 22.3263 29.3185 22.4563C29.3693 22.5862 29.3941 22.7249 29.3914 22.8645C29.3887 23.004 29.3585 23.1416 29.3026 23.2695C29.2467 23.3974 29.1661 23.513 29.0656 23.6097C28.965 23.7064 28.8463 23.7824 28.7164 23.8333C28.5864 23.8842 28.4477 23.909 28.3082 23.9062L20.3448 23.7511C20.2052 23.7483 20.0676 23.7181 19.9398 23.6621C19.8119 23.6061 19.6964 23.5255 19.5997 23.4249C19.503 23.3243 19.4271 23.2056 19.3762 23.0756C19.3254 22.9456 19.3007 22.8069 19.3035 22.6674C19.3063 22.5278 19.3365 22.3902 19.3925 22.2624C19.4485 22.1346 19.5291 22.019 19.6297 21.9223C19.7304 21.8256 19.8491 21.7497 19.979 21.6989C20.109 21.6481 20.2477 21.6233 20.3872 21.6261H20.3862ZM19.6881 6.8L7.4375 18.4662V22.2243L11.1562 22.304L23.9498 11.0989L19.6881 6.8ZM28.2976 26.9386C28.5794 26.9365 28.8504 27.0464 29.0512 27.2442C29.2519 27.442 29.3659 27.7114 29.368 27.9932C29.3701 28.275 29.2602 28.546 29.0625 28.7468C28.8647 28.9475 28.5953 29.0615 28.3135 29.0636L7.446 29.2188C7.16421 29.2209 6.89312 29.1109 6.69237 28.9132C6.49161 28.7154 6.37764 28.446 6.37553 28.1642C6.37342 27.8824 6.48333 27.6113 6.6811 27.4106C6.87886 27.2098 7.14827 27.0959 7.43006 27.0938L28.2976 26.9386Z",fill:"black","fill-opacity":"0.8"})],-1)),UP=[$P],YP=["onClick"],ZP=hh(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M12.7331 30.5258C11.8785 30.5264 11.0527 30.2169 10.4091 29.6546C9.76556 29.0923 9.34796 28.3155 9.2339 27.4686L6.27084 10.719C6.24075 10.5628 6.24576 10.4019 6.28552 10.248C6.32529 10.094 6.3988 9.95078 6.50075 9.82873C6.60269 9.70667 6.7305 9.60882 6.87493 9.54227C7.01936 9.47571 7.17679 9.44212 7.3358 9.44392H26.9326C27.0917 9.44369 27.2489 9.47864 27.3929 9.54627C27.5369 9.61391 27.6642 9.71254 27.7657 9.83513C27.8688 9.9554 27.9437 10.0971 27.9851 10.25C28.0264 10.4029 28.0331 10.5631 28.0048 10.719L25.1069 27.512C24.9898 28.3532 24.5727 29.1237 23.9323 29.6815C23.2919 30.2394 22.4715 30.5469 21.6222 30.5476L12.7331 30.5258ZM8.63259 11.6101L11.3783 27.1208C11.4153 27.4559 11.5734 27.766 11.8229 27.9927C12.0723 28.2195 12.396 28.3474 12.7331 28.3524H21.5788C21.9155 28.3488 22.2391 28.2212 22.4877 27.994C22.7363 27.7668 22.8924 27.4559 22.9263 27.1208L25.672 11.5956L8.63259 11.6101Z",fill:"black","fill-opacity":"0.8"}),N("path",{d:"M14.1239 26.2153C13.8356 26.2153 13.5592 26.1008 13.3554 25.897C13.1517 25.6932 13.0372 25.4168 13.0372 25.1286C13.0372 24.8404 13.1517 24.564 13.3554 24.3602C13.5592 24.1564 13.8356 24.0419 14.1239 24.0419H19.9196C20.2078 24.0419 20.4842 24.1564 20.688 24.3602C20.8918 24.564 21.0063 24.8404 21.0063 25.1286C21.0063 25.4168 20.8918 25.6932 20.688 25.897C20.4842 26.1008 20.2078 26.2153 19.9196 26.2153H14.1239ZM6.70535 8.12542C6.41714 8.12542 6.14073 8.01093 5.93694 7.80714C5.73314 7.60334 5.61865 7.32694 5.61865 7.03873C5.61865 6.75052 5.73314 6.47411 5.93694 6.27032C6.14073 6.06652 6.41714 5.95203 6.70535 5.95203H27.2656C27.5538 5.95203 27.8303 6.06652 28.034 6.27032C28.2378 6.47411 28.3523 6.75052 28.3523 7.03873C28.3523 7.32694 28.2378 7.60334 28.034 7.80714C27.8303 8.01093 27.5538 8.12542 27.2656 8.12542H6.6981H6.70535ZM15.7539 5.64776C15.4657 5.64776 15.1893 5.53327 14.9855 5.32947C14.7817 5.12568 14.6672 4.84927 14.6672 4.56106C14.6672 4.27285 14.7817 3.99645 14.9855 3.79265C15.1893 3.58886 15.4657 3.47437 15.7539 3.47437H17.652C17.9402 3.47437 18.2166 3.58886 18.4204 3.79265C18.6242 3.99645 18.7387 4.27285 18.7387 4.56106C18.7387 4.84927 18.6242 5.12568 18.4204 5.32947C18.2166 5.53327 17.9402 5.64776 17.652 5.64776H15.7539Z",fill:"black","fill-opacity":"0.8"})],-1)),XP=[ZP],qP=fn({__name:"index",props:{close:Function},setup(r){const e=r,t=Ob(!1),n=Gs({title:"\u5171\u4EAB\u6587\u4EF6",services:[],step:0,mode:"edit",users:[],shareServiceCreateRequestParams:{name:"",path:"",webdav:!1,samba:!0,users:[]}}),i=()=>{e.close&&e.close()},o=()=>{n.step=1,n.mode="create"},s=g=>ra(this,null,function*(){confirm("\u786E\u5B9A\u5220\u9664\uFF1F")&&(yield Fr.Share.Service.DELETE(g)).data.success===0&&d()}),l=()=>{tP.Open({onOk:g=>{console.log("arr1111",g);const y=g.split("/");n.shareServiceCreateRequestParams.path=g,console.log("arr",y),n.shareServiceCreateRequestParams.name=y[y.length-1]}})},u=()=>{n.step=2,n.title="\u786E\u8BA4\u7528\u6237\u6743\u9650"},f=g=>{if(n.shareServiceCreateRequestParams.users=g,n.shareServiceCreateRequestParams.users.length===0)return ar.Message("\u8BF7\u9009\u62E9\u5171\u4EAB\u7528\u6237");n.step=3,n.title=void 0},h=()=>ra(this,null,function*(){var m,_;const g=ar.Loading("\u4FDD\u5B58\u4E2D...");n.users.forEach(S=>{(S.ro||S.rw)&&n.shareServiceCreateRequestParams.users.push(S)});let y;n.mode==="create"?y=yield Fr.Share.Service.ADD(n.shareServiceCreateRequestParams):y=yield Fr.Share.Service.UPDATE(n.shareServiceCreateRequestParams),y.data.success===0?(g.Close(),ar.Message("\u4FDD\u5B58\u6210\u529F"),c()):((m=y.data)!=null&&m.error&&ar.Message((_=y.data)==null?void 0:_.error),g.Close())}),v=()=>{n.step=n.step-1,n.title="\u5171\u4EAB\u6587\u4EF6",n.step===0&&c()},c=()=>{n.step=0,n.title="\u5171\u4EAB\u6587\u4EF6",n.shareServiceCreateRequestParams.path="",n.shareServiceCreateRequestParams.name="",n.shareServiceCreateRequestParams.samba=!1,n.shareServiceCreateRequestParams.webdav=!1,n.shareServiceCreateRequestParams.users=[],d()},d=()=>ra(this,null,function*(){try{t.value=!0;const g=ar.Loading("\u52A0\u8F7D\u4E2D..."),y=yield Fr.Share.Service.GET();if(y!=null&&y.data){const{result:m,error:_}=y.data;if(_)throw _;m&&(n.services=m.services)}g.Close(),t.value=!1}catch(g){console.log(g)}}),p=g=>{n.step=1,n.mode="edit",console.log("serviceservice",g),n.shareServiceCreateRequestParams.name=g.name,n.shareServiceCreateRequestParams.path=g.path,n.shareServiceCreateRequestParams.samba=g.samba,n.shareServiceCreateRequestParams.webdav=g.webdav,n.shareServiceCreateRequestParams.users=g.users};return d(),(g,y)=>(_t(),zr(vg,{onHandleClose:i,title:n.title,width:"572px"},{default:hg(()=>[n.step===0?(_t(),It("div",BP,[n.services.length===0&&t.value===!1?(_t(),It("div",NP,[N("div",null,[VP,N("div",{class:"btns"},[N("span",{onClick:o},"\u7ACB\u5373\u6DFB\u52A0")])])])):Ee("",!0),n.services.length!==0?(_t(),It("div",zP,[N("button",{onClick:o},"\u65B0\u589E"),(_t(!0),It(lr,null,pa(n.services,(m,_)=>(_t(),It("div",{key:_},[N("div",null,[FP,N("div",GP,[N("span",null,Xt(m.name),1),N("span",null,Xt(m.path),1),N("div",null,[N("span",null,"\u5171\u4EAB\u65B9\u5F0F: "+Xt(`${m.samba?"Samba":""} ${m.webdav?"WebDav":""}`),1),N("span",null,[bd("\u5171\u4EAB\u7528\u6237:"),(_t(!0),It(lr,null,pa(m.users.filter(S=>S.ro||S.rw),(S,w)=>(_t(),It("span",{key:w},Xt(`${S.userName}(${S.ro?"\u53EA\u8BFB":"\u8BFB\u5199"}) `),1))),128))])])]),N("div",HP,[N("span",{onClick:S=>p(m)},UP,8,WP),N("span",{onClick:S=>s({name:m.name})},XP,8,YP)])])]))),128))])):Ee("",!0)])):Ee("",!0),n.step===1?(_t(),zr(pP,{key:1,onOnNext:u,onOnCancel:v,onOpenDisk:l,context:n.shareServiceCreateRequestParams},null,8,["context"])):Ee("",!0),n.step===2?(_t(),zr(OP,{key:2,context:n.shareServiceCreateRequestParams,onOnCancel:v,onOnOk:f},null,8,["context"])):Ee("",!0),n.step===3?(_t(),zr(CP,{key:3,mode:n.mode,context:n.shareServiceCreateRequestParams,onOnCancel:v,onOnOk:h},null,8,["mode","context"])):Ee("",!0)]),_:1},8,["title"]))}});var KP=hn(qP,[["__scopeId","data-v-9c961df4"]]);class JP extends cg{Open(){this.openWindow(KP)}}const PK=new JP;const _l=r=>(Si("data-v-4a2e9fae"),r=r(),xi(),r),QP={key:0,class:"no-data"},jP=_l(()=>N("span",null,"\u6682\u65F6\u8FD8\u6CA1\u6709\u4EFB\u4F55\u5171\u4EAB\u7528\u6237",-1)),tR={class:"btns"},eR={key:1,class:"list"},rR={class:"page-table"},aR=_l(()=>N("thead",null,[N("tr",null,[N("th",null,"\u59D3\u540D"),N("th",null,"\u5BC6\u7801"),N("th",null,"\u64CD\u4F5C")])],-1)),nR=_l(()=>N("th",null,"******",-1)),iR={class:"action"},oR=["onClick"],sR=["onClick"],lR=_l(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M18.9763 4.54325C19.1776 4.35138 19.4462 4.24614 19.7243 4.25011C20.0025 4.25408 20.2679 4.36696 20.4637 4.5645L26.2544 10.4051C26.3566 10.5081 26.4367 10.6309 26.4897 10.7661C26.5426 10.9012 26.5673 11.0458 26.5622 11.1908C26.5571 11.3359 26.5224 11.4783 26.4601 11.6095C26.3979 11.7406 26.3094 11.8575 26.2002 11.9531L12.2474 24.174C12.048 24.349 11.7902 24.443 11.5249 24.4375L6.35269 24.327C6.07478 24.3212 5.81023 24.2066 5.61577 24.008C5.42131 23.8094 5.31244 23.5425 5.3125 23.2645V18.0115C5.31247 17.8677 5.34165 17.7253 5.39827 17.5931C5.45489 17.4609 5.53776 17.3415 5.64187 17.2423L18.9763 4.54325ZM20.3862 21.6261L28.3496 21.7812C28.4892 21.784 28.6268 21.8141 28.7547 21.8701C28.8825 21.926 28.9981 22.0065 29.0949 22.1071C29.1916 22.2077 29.2676 22.3263 29.3185 22.4563C29.3693 22.5862 29.3941 22.7249 29.3914 22.8645C29.3887 23.004 29.3585 23.1416 29.3026 23.2695C29.2467 23.3974 29.1661 23.513 29.0656 23.6097C28.965 23.7064 28.8463 23.7824 28.7164 23.8333C28.5864 23.8842 28.4477 23.909 28.3082 23.9062L20.3448 23.7511C20.2052 23.7483 20.0676 23.7181 19.9398 23.6621C19.8119 23.6061 19.6964 23.5255 19.5997 23.4249C19.503 23.3243 19.4271 23.2056 19.3762 23.0756C19.3254 22.9456 19.3007 22.8069 19.3035 22.6674C19.3063 22.5278 19.3365 22.3902 19.3925 22.2624C19.4485 22.1346 19.5291 22.019 19.6297 21.9223C19.7304 21.8256 19.8491 21.7497 19.979 21.6989C20.109 21.6481 20.2477 21.6233 20.3872 21.6261H20.3862ZM19.6881 6.8L7.4375 18.4662V22.2243L11.1562 22.304L23.9498 11.0989L19.6881 6.8ZM28.2976 26.9386C28.5794 26.9365 28.8504 27.0464 29.0512 27.2442C29.2519 27.442 29.3659 27.7114 29.368 27.9932C29.3701 28.275 29.2602 28.546 29.0625 28.7468C28.8647 28.9475 28.5953 29.0615 28.3135 29.0636L7.446 29.2188C7.16421 29.2209 6.89312 29.1109 6.69237 28.9132C6.49161 28.7154 6.37764 28.446 6.37553 28.1642C6.37342 27.8824 6.48333 27.6113 6.6811 27.4106C6.87886 27.2098 7.14827 27.0959 7.43006 27.0938L28.2976 26.9386Z",fill:"black","fill-opacity":"0.8"})],-1)),uR=[lR],fR=["onClick"],hR=_l(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M12.7331 30.5258C11.8785 30.5264 11.0527 30.2169 10.4091 29.6546C9.76556 29.0923 9.34796 28.3155 9.2339 27.4686L6.27084 10.719C6.24075 10.5628 6.24576 10.4019 6.28552 10.248C6.32529 10.094 6.3988 9.95078 6.50075 9.82873C6.60269 9.70667 6.7305 9.60882 6.87493 9.54227C7.01936 9.47571 7.17679 9.44212 7.3358 9.44392H26.9326C27.0917 9.44369 27.2489 9.47864 27.3929 9.54627C27.5369 9.61391 27.6642 9.71254 27.7657 9.83513C27.8688 9.9554 27.9437 10.0971 27.9851 10.25C28.0264 10.4029 28.0331 10.5631 28.0048 10.719L25.1069 27.512C24.9898 28.3532 24.5727 29.1237 23.9323 29.6815C23.2919 30.2394 22.4715 30.5469 21.6222 30.5476L12.7331 30.5258ZM8.63259 11.6101L11.3783 27.1208C11.4153 27.4559 11.5734 27.766 11.8229 27.9927C12.0723 28.2195 12.396 28.3474 12.7331 28.3524H21.5788C21.9155 28.3488 22.2391 28.2212 22.4877 27.994C22.7363 27.7668 22.8924 27.4559 22.9263 27.1208L25.672 11.5956L8.63259 11.6101Z",fill:"black","fill-opacity":"0.8"}),N("path",{d:"M14.1239 26.2153C13.8356 26.2153 13.5592 26.1008 13.3554 25.897C13.1517 25.6932 13.0372 25.4168 13.0372 25.1286C13.0372 24.8404 13.1517 24.564 13.3554 24.3602C13.5592 24.1564 13.8356 24.0419 14.1239 24.0419H19.9196C20.2078 24.0419 20.4842 24.1564 20.688 24.3602C20.8918 24.564 21.0063 24.8404 21.0063 25.1286C21.0063 25.4168 20.8918 25.6932 20.688 25.897C20.4842 26.1008 20.2078 26.2153 19.9196 26.2153H14.1239ZM6.70535 8.12542C6.41714 8.12542 6.14073 8.01093 5.93694 7.80714C5.73314 7.60334 5.61865 7.32694 5.61865 7.03873C5.61865 6.75052 5.73314 6.47411 5.93694 6.27032C6.14073 6.06652 6.41714 5.95203 6.70535 5.95203H27.2656C27.5538 5.95203 27.8303 6.06652 28.034 6.27032C28.2378 6.47411 28.3523 6.75052 28.3523 7.03873C28.3523 7.32694 28.2378 7.60334 28.034 7.80714C27.8303 8.01093 27.5538 8.12542 27.2656 8.12542H6.6981H6.70535ZM15.7539 5.64776C15.4657 5.64776 15.1893 5.53327 14.9855 5.32947C14.7817 5.12568 14.6672 4.84927 14.6672 4.56106C14.6672 4.27285 14.7817 3.99645 14.9855 3.79265C15.1893 3.58886 15.4657 3.47437 15.7539 3.47437H17.652C17.9402 3.47437 18.2166 3.58886 18.4204 3.79265C18.6242 3.99645 18.7387 4.27285 18.7387 4.56106C18.7387 4.84927 18.6242 5.12568 18.4204 5.32947C18.2166 5.53327 17.9402 5.64776 17.652 5.64776H15.7539Z",fill:"black","fill-opacity":"0.8"})],-1)),vR=[hR],cR=fn({__name:"index",props:{close:Function},setup(r){const e=r,t=Gs({loading:!1,users:[]}),a=()=>{e.close&&e.close()};function n(l=!0){Cd({callback:()=>{i()}})}const i=()=>ra(this,null,function*(){t.loading=!0;const l=ar.Loading("\u52A0\u8F7D\u4E2D...");try{const u=yield Fr.Share.User.GET();if(u!=null&&u.data){const{result:f}=u.data;f&&(t.users=f.users)}}catch(u){console.log(u)}t.loading=!1,l.Close()}),o=l=>{console.log("editUser",l),Cd({user:l,callback:()=>{i()}})},s=l=>ra(this,null,function*(){confirm("\u786E\u5B9A\u5220\u9664\uFF1F")&&(yield Fr.Share.User.DELETE(l)).data.success===0&&i()});return i(),(l,u)=>(_t(),zr(vg,{onHandleClose:a,title:"\u5171\u4EAB\u7528\u6237",width:"612px"},{default:hg(()=>[t.loading===!1&&t.users.length===0?(_t(),It("div",QP,[N("div",null,[jP,N("div",tR,[N("span",{onClick:u[0]||(u[0]=()=>n())},"\u7ACB\u5373\u6DFB\u52A0")])])])):Ee("",!0),t.loading===!1&&t.users.length!==0?(_t(),It("div",eR,[N("button",{onClick:u[1]||(u[1]=()=>n())},"\u65B0\u589E"),N("table",rR,[aR,N("tbody",null,[(_t(!0),It(lr,null,pa(t.users,f=>(_t(),It("tr",null,[N("th",null,Xt(f.userName),1),nR,N("th",iR,[N("span",{onClick:h=>df(ar).Message(f.password)},"\u67E5\u770B\u5BC6\u7801",8,oR),N("span",{onClick:h=>o(f)},uR,8,sR),N("span",{onClick:h=>s(f)},vR,8,fR)])]))),256))])])])):Ee("",!0)]),_:1}))}});var dR=hn(cR,[["__scopeId","data-v-4a2e9fae"]]);class pR extends cg{Open(){this.openWindow(dR)}}const RK=new pR;/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Td=function(r,e){return Td=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])},Td(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Td(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var gR=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),yR=function(){function r(){this.browser=new gR,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!="undefined"}return r}(),Vn=new yR;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Vn.wxa=!0,Vn.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Vn.worker=!0:typeof navigator=="undefined"?(Vn.node=!0,Vn.svgSupported=!0):mR(navigator.userAgent,Vn);function mR(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!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var At=Vn,pg=12,Nb="sans-serif",tn=pg+"px "+Nb,_R=20,SR=100,xR="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function wR(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-_R)/SR;e[a]=n}return e}var bR=wR(xR),ga={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var n=ga.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||tn),r.measureText(t);t=t||"",a=a||tn;var i=/(\d+)px/.exec(a),o=i&&+i[1]||pg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=bR[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}},Vb=Zr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),zb=Zr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),xo=Object.prototype.toString,vh=Array.prototype,CR=vh.forEach,TR=vh.filter,gg=vh.slice,AR=vh.map,Rm=function(){}.constructor,Hl=Rm?Rm.prototype:null,yg="__proto__",DR=2311;function Fb(){return DR++}function mg(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,r)}function at(r){if(r==null||typeof r!="object")return r;var e=r,t=xo.call(r);if(t==="[object Array]"){if(!Ts(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=at(r[a])}}else if(zb[t]){if(!Ts(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(!Vb[t]&&!Ts(r)&&!Hs(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==yg&&(e[o]=at(r[o]))}return e}function ht(r,e,t){if(!et(e)||!et(r))return t?at(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==yg){var n=r[a],i=e[a];et(i)&&et(n)&&!F(i)&&!F(n)&&!Hs(i)&&!Hs(n)&&!Em(i)&&!Em(n)&&!Ts(i)&&!Ts(n)?ht(n,i,t):(t||!(a in r))&&(r[a]=at(e[a]))}return r}function _g(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ht(t,r[a],e);return t}function V(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==yg&&(r[t]=e[t]);return r}function tt(r,e,t){for(var a=St(e),n=0;n<a.length;n++){var i=a[n];(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}return r}ga.createCanvas;function dt(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 MR(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 te(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 tt(r,e,t)}function Se(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,e,t){if(!!(r&&e))if(r.forEach&&r.forEach===CR)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 G(r,e,t){if(!r)return[];if(!e)return Sg(r);if(r.map&&r.map===AR)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 Zr(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 Et(r,e,t){if(!r)return[];if(!e)return Sg(r);if(r.filter&&r.filter===TR)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 LR(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 St(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 IR(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(gg.call(arguments)))}}var Y=Hl&&J(Hl.bind)?Hl.call.bind(Hl.bind):IR;function ot(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(gg.call(arguments)))}}function F(r){return Array.isArray?Array.isArray(r):xo.call(r)==="[object Array]"}function J(r){return typeof r=="function"}function U(r){return typeof r=="string"}function Ad(r){return xo.call(r)==="[object String]"}function Mt(r){return typeof r=="number"}function et(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Em(r){return!!Vb[xo.call(r)]}function Ue(r){return!!zb[xo.call(r)]}function Hs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ch(r){return r.colorStops!=null}function PR(r){return r.image!=null}function RR(r){return xo.call(r)==="[object RegExp]"}function Ws(r){return r!==r}function le(){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 ft(r,e){return r!=null?r:e}function Ur(r,e,t){return r!=null?r:e!=null?e:t}function Sg(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return gg.apply(r,e)}function xg(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 Me(r,e){if(!r)throw new Error(e)}function Sr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Gb="__ec_primitive__";function pf(r){r[Gb]=!0}function Ts(r){return r[Gb]}var ER=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 St(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r}(),Hb=typeof Map=="function";function kR(){return Hb?new Map:new ER}var OR=function(){function r(e){var t=F(e);this.data=kR();var a=this;e instanceof r?e.each(n):e&&A(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 Hb?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function q(r){return new OR(r)}function gf(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 dh(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&V(t,e),t}function Wb(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Z(r,e){return r.hasOwnProperty(e)}function Kt(){}var Yu=180/Math.PI;function wi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Ce(r,e){return r[0]=e[0],r[1]=e[1],r}function fa(r){return[r[0],r[1]]}function BR(r,e,t){return r[0]=e,r[1]=t,r}function km(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Dd(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function qn(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Md(r){return Math.sqrt(NR(r))}function NR(r){return r[0]*r[0]+r[1]*r[1]}function Zu(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function wo(r,e){var t=Md(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Ld(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Ga=Ld;function VR(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var ai=VR;function Xu(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 he(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 Ha(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Wa(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Ii=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),zR=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 Ii(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 Ii(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 Ii(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ii(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ii(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ii(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),FR=zR,GR=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,f=i[e][u];return f&&f.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 f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r}(),hr=GR,HR=Math.log(2);function Id(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)/HR);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&n||(h+=(c%2?-1:1)*r[t][v]*Id(r,e-1,f,u,n|d,i),c++)}return i[o]=h,h}function Om(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=Id(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)*Id(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var Bm="___zrEVENTSAVED",jh=[];function WR(r,e,t,a,n){return Pd(jh,e,a,n,!0)&&Pd(r,t,jh[0],jh[1])}function Pd(r,e,t,a,n){if(e.getBoundingClientRect&&At.domSupported&&!$b(e)){var i=e[Bm]||(e[Bm]={}),o=$R(e,i),s=UR(o,i,n);if(s)return s(r,t,a),!0}return!1}function $R(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 t}function UR(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 f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?Om(s,o):Om(o,s))}function $b(r){return r.nodeName.toUpperCase()==="CANVAS"}var YR=/([&<>"'])/g,ZR={"&":"&","<":"<",">":">",'"':""","'":"'"};function ke(r){return r==null?"":(r+"").replace(YR,function(e,t){return ZR[t]})}var XR=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tv=[],qR=At.browser.firefox&&+At.browser.version.split(".")[0]<39;function Rd(r,e,t,a){return t=t||{},a?Nm(r,e,t):qR&&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):Nm(r,e,t),t}function Nm(r,e,t){if(At.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if($b(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Pd(tv,r,a,n)){t.zrX=tv[0],t.zrY=tv[1];return}}t.zrX=t.zrY=0}function wg(r){return r||window.event}function Je(r,e,t){if(e=wg(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&&Rd(r,o,e,t)}else{Rd(r,e,e,t);var i=KR(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&XR.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function KR(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 Ed(r,e,t,a){r.addEventListener(e,t,a)}function JR(r,e,t,a){r.removeEventListener(e,t,a)}var ya=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Vm(r){return r.which===2||r.which===3}var QR=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=Rd(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 ev)if(ev.hasOwnProperty(t)){var a=ev[t](this._track,e);if(a)return a}},r}();function zm(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function jR(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var ev={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=zm(a)/zm(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=jR(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function ur(){return[1,0,0,1,0,0]}function ph(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function bg(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 ha(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 Xr(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 bi(r,e,t){var a=e[0],n=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=n*f+s*u,r[3]=-n*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function Cg(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 bo(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 tE(r){var e=ur();return bg(e,r),e}var eE=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}(),ut=eE,Wl=Math.min,$l=Math.max,dn=new ut,pn=new ut,gn=new ut,yn=new ut,Vo=new ut,zo=new ut,rE=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Wl(e.x,this.x),a=Wl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=$l(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=$l(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){var t=this,a=e.width/t.width,n=e.height/t.height,i=ur();return Xr(i,i,[-t.x,-t.y]),Cg(i,i,[a,n]),Xr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(i<l||u<n||s<f||h<o);if(t){var c=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(p,g),S=Math.min(y,m);i<l||u<n?_>d&&(d=_,p<g?ut.set(zo,-p,0):ut.set(zo,g,0)):_<c&&(c=_,p<g?ut.set(Vo,p,0):ut.set(Vo,-g,0)),s<f||h<o?S>d&&(d=S,y<m?ut.set(zo,0,-y):ut.set(zo,0,m)):_<c&&(c=_,y<m?ut.set(Vo,0,y):ut.set(Vo,0,-m))}return t&&ut.copy(t,v?Vo:zo),v},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(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.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(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}dn.x=gn.x=t.x,dn.y=yn.y=t.y,pn.x=yn.x=t.x+t.width,pn.y=gn.y=t.y+t.height,dn.transform(a),yn.transform(a),pn.transform(a),gn.transform(a),e.x=Wl(dn.x,pn.x,gn.x,yn.x),e.y=Wl(dn.y,pn.y,gn.y,yn.y);var l=$l(dn.x,pn.x,gn.x,yn.x),u=$l(dn.y,pn.y,gn.y,yn.y);e.width=l-e.x,e.height=u-e.y},r}(),vt=rE,Ub="silent";function aE(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:nE}}function nE(){ya(this.event)}var iE=function(r){k(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}(hr),Fo=function(){function r(e,t){this.x=e,this.y=t}return r}(),oE=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rv=new vt(0,0,0,0),Yb=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Fo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new iE,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new FR(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(oE,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=Zb(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 Fo(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.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 Fo(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=aE(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 Fo(t,a);if(Fm(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new vt(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(rv.copy(v.getBoundingRect()),v.transform&&rv.applyTransform(v.transform),rv.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(Fm(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new QR);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 Fo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(hr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Yb.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=Zb(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||Ga(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function sE(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.parent}return n?Ub:!0}return!1}function Fm(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=sE(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==Ub)){e.target=o;break}}}function Zb(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var lE=Yb,Xb=32,Go=7;function uE(r){for(var e=0;r>=Xb;)e|=r&1,r>>=1;return r+e}function Gm(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++;fE(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function fE(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function Hm(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 av(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 f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function nv(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 f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function hE(r,e){var t=Go,a,n,i=0;r.length;var o=[];a=[],n=[];function s(c,d){a[i]=c,n[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var d=a[c],p=n[c],g=a[c+1],y=n[c+1];n[c]=p+y,c===i-3&&(a[c+1]=a[c+2],n[c+1]=n[c+2]),i--;var m=nv(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=av(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?h(d,p,g,y):v(d,p,g,y)))}function h(c,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[c+y];var m=0,_=p,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var w=t,x,b,C;;){x=0,b=0,C=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],b++,x=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],x++,b=0,--d===1){C=!0;break}while((x|b)<w);if(C)break;do{if(x=nv(r[_],o,m,d,0,e),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(b=av(o[m],r,_,g,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=r[_+y];if(S+=b,_+=b,g-=b,g===0){C=!0;break}}if(r[S++]=o[m++],--d===1){C=!0;break}w--}while(x>=Go||b>=Go);if(C)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function v(c,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=c+d-1,_=g-1,S=p+g-1,w=0,x=0;if(r[S--]=r[m--],--d===0){for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=t;;){var C=0,T=0,D=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],C++,T=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],T++,C=0,--g===1){D=!0;break}while((C|T)<b);if(D)break;do{if(C=d-nv(o[_],r,c,d,d-1,e),C!==0){for(S-=C,m-=C,d-=C,x=S+1,w=m+1,y=C-1;y>=0;y--)r[x+y]=r[w+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(T=g-av(r[m],o,0,g,g-1,e),T!==0){for(S-=T,_-=T,g-=T,x=S+1,w=_+1,y=0;y<T;y++)r[x+y]=o[w+y];if(g<=1){D=!0;break}}if(r[S--]=r[m--],--d===0){D=!0;break}b--}while(C>=Go||T>=Go);if(D)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),g===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function qu(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<Xb){i=Gm(r,t,a,e),Hm(r,t,a,t+i,e);return}var o=hE(r,e),s=uE(n);do{if(i=Gm(r,t,a,e),i<s){var l=n;l>s&&(l=s),Hm(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 He=1,cs=2,Ji=4,Wm=!1;function iv(){Wm||(Wm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $m(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var vE=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$m}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,qu(a,$m)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=He),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(iv(),f.z=0),isNaN(f.z2)&&(iv(),f.z2=0),isNaN(f.zlevel)&&(iv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,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=dt(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}(),cE=vE,qb;qb=At.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var kd=qb,Ku={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-Ku.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?Ku.bounceIn(r*2)*.5:Ku.bounceOut(r*2-1)*.5+.5}},Kb=Ku,Ul=Math.pow,Ka=Math.sqrt,yf=1e-8,Jb=1e-4,Um=Ka(3),Yl=1/3,Nr=wi(),er=wi(),oo=wi();function $a(r){return r>-yf&&r<yf}function Qb(r){return r>yf||r<-yf}function ae(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 Ym(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function mf(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,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if($a(f)&&$a(h))if($a(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if($a(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y)}else if(p>0){var m=Ka(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Ul(-_,Yl):_=Ul(_,Yl),S<0?S=-Ul(-S,Yl):S=Ul(S,Yl);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*Ka(f*f*f)),x=Math.acos(w)/3,b=Ka(f),C=Math.cos(x),d=(-s-2*b*C)/(3*o),y=(-s+b*(C+Um*Math.sin(x)))/(3*o),T=(-s+b*(C-Um*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y),T>=0&&T<=1&&(i[c++]=T)}}return c}function jb(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($a(o)){if(Qb(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if($a(f))n[0]=-i/(2*o);else if(f>0){var h=Ka(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function en(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,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function t2(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,y;Nr[0]=l,Nr[1]=u;for(var m=0;m<1;m+=.05)er[0]=ae(r,t,n,o,m),er[1]=ae(e,a,i,s,m),g=ai(Nr,er),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<Jb);_++)d=h-v,p=h+v,er[0]=ae(r,t,n,o,d),er[1]=ae(e,a,i,s,d),g=ai(er,Nr),d>=0&&g<c?(h=d,c=g):(oo[0]=ae(r,t,n,o,p),oo[1]=ae(e,a,i,s,p),y=ai(oo,Nr),p<=1&&y<c?(h=p,c=y):v*=.5);return f&&(f[0]=ae(r,t,n,o,h),f[1]=ae(e,a,i,s,h)),Ka(c)}function dE(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=ae(r,t,n,o,d),g=ae(e,a,i,s,d),y=p-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=p,f=g}return h}function se(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function Od(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function pE(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if($a(i)){if(Qb(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if($a(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Ka(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function e2(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function $s(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 r2(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Nr[0]=o,Nr[1]=s;for(var v=0;v<1;v+=.05){er[0]=se(r,t,n,v),er[1]=se(e,a,i,v);var c=ai(Nr,er);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<Jb);d++){var p=u-f,g=u+f;er[0]=se(r,t,n,p),er[1]=se(e,a,i,p);var c=ai(er,Nr);if(p>=0&&c<h)u=p,h=c;else{oo[0]=se(r,t,n,g),oo[1]=se(e,a,i,g);var y=ai(oo,Nr);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=se(r,t,n,u),l[1]=se(e,a,i,u)),Ka(h)}function gE(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=se(r,t,n,v),d=se(e,a,i,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var yE=/cubic-bezier\(([0-9,\.e ]+)\)/;function Tg(r){var e=r&&yE.exec(r);if(e){var t=e[1].split(","),a=+Sr(t[0]),n=+Sr(t[1]),i=+Sr(t[2]),o=+Sr(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:mf(0,a,i,1,l,s)&&ae(0,n,o,1,s[0])}}}var mE=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||Kt,this.ondestroy=e.ondestroy||Kt,this.onrestart=e.onrestart||Kt,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=J(e)?e:Kb[e]||Tg(e)},r}(),_E=mE,a2=function(){function r(e){this.value=e}return r}(),SE=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new a2(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}(),xE=function(){function r(e){this._list=new SE,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 a2(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}(),Sl=xE,Zm={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 br(r){return r=Math.round(r),r<0?0:r>255?255:r}function wE(r){return r=Math.round(r),r<0?0:r>360?360:r}function Us(r){return r<0?0:r>1?1:r}function ov(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?br(parseFloat(e)/100*255):br(parseInt(e,10))}function ni(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Us(parseFloat(e)/100):Us(parseFloat(e))}function sv(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 Ua(r,e,t){return r+(e-r)*t}function Ke(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Bd(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var n2=new Sl(20),Zl=null;function Pi(r,e){Zl&&Bd(Zl,e),Zl=n2.put(r,Zl||e.slice())}function We(r,e){if(!!r){e=e||[];var t=n2.get(r);if(t)return Bd(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Zm)return Bd(e,Zm[a]),Pi(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)){Ke(e,0,0,0,1);return}return Ke(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),Pi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Ke(e,0,0,0,1);return}return Ke(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Pi(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(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ke(e,+u[0],+u[1],+u[2],1):Ke(e,0,0,0,1);f=ni(u.pop());case"rgb":if(u.length>=3)return Ke(e,ov(u[0]),ov(u[1]),ov(u[2]),u.length===3?f:ni(u[3])),Pi(r,e),e;Ke(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ke(e,0,0,0,1);return}return u[3]=ni(u[3]),Nd(u,e),Pi(r,e),e;case"hsl":if(u.length!==3){Ke(e,0,0,0,1);return}return Nd(u,e),Pi(r,e),e;default:return}}Ke(e,0,0,0,1)}}function Nd(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=ni(r[1]),n=ni(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Ke(e,br(sv(o,i,t+1/3)*255),br(sv(o,i,t)*255),br(sv(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function bE(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 f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Vd(r,e){var t=We(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 va(t,t.length===4?"rgba":"rgb")}}function lv(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]=br(Ua(o[0],s[0],l)),t[1]=br(Ua(o[1],s[1],l)),t[2]=br(Ua(o[2],s[2],l)),t[3]=Us(Ua(o[3],s[3],l)),t}}function CE(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=We(e[n]),s=We(e[i]),l=a-n,u=va([br(Ua(o[0],s[0],l)),br(Ua(o[1],s[1],l)),br(Ua(o[2],s[2],l)),Us(Ua(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function As(r,e,t,a){var n=We(r);if(r)return n=bE(n),e!=null&&(n[0]=wE(e)),t!=null&&(n[1]=ni(t)),a!=null&&(n[2]=ni(a)),va(Nd(n),"rgba")}function _f(r,e){var t=We(r);if(t&&e!=null)return t[3]=Us(e),va(t,"rgba")}function va(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 Sf(r,e){var t=We(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var xf=Math.round;function Ys(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=We(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e==null?1:e}}var Xm=1e-4;function Ya(r){return r<Xm&&r>-Xm}function Xl(r){return xf(r*1e3)/1e3}function zd(r){return xf(r*1e4)/1e4}function TE(r){return"matrix("+Xl(r[0])+","+Xl(r[1])+","+Xl(r[2])+","+Xl(r[3])+","+zd(r[4])+","+zd(r[5])+")"}var AE={left:"start",right:"end",center:"middle",middle:"middle"};function DE(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function ME(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function LE(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 i2(r){return r&&!!r.image}function IE(r){return r&&!!r.svgElement}function Ag(r){return i2(r)||IE(r)}function o2(r){return r.type==="linear"}function s2(r){return r.type==="radial"}function l2(r){return r&&(r.type==="linear"||r.type==="radial")}function gh(r){return"url(#"+r+")"}function u2(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 f2(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Yu,n=ft(r.scaleX,1),i=ft(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("+xf(o*Yu)+"deg, "+xf(s*Yu)+"deg)"),l.join(" ")}var PE=function(){return At.hasGlobalWindow&&J(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Fd=Array.prototype.slice;function oa(r,e,t){return(e-r)*t+r}function uv(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=oa(e[i],t[i],a);return r}function RE(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]=oa(e[o][s],t[o][s],a)}return r}function ql(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function qm(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 EE(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 kE(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]:Fd.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 f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function Ds(r){if(Se(r)){var e=r.length;if(Se(r[0])){for(var t=[],a=0;a<e;a++)t.push(Fd.call(r[a]));return t}return Fd.call(r)}return r}function Ju(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 OE(r){return Se(r&&r[0])?2:1}var Kl=0,Qu=1,h2=2,ds=3,Gd=4,Hd=5,Km=6;function Jm(r){return r===Gd||r===Hd}function Jl(r){return r===Qu||r===h2}var Ho=[0,0,0,0],BE=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=Km,l=t;if(Se(t)){var u=OE(t);s=u,(u===1&&!Mt(t[0])||u===2&&!Mt(t[0][0]))&&(o=!0)}else if(Mt(t)&&!Ws(t))s=Kl;else if(U(t))if(!isNaN(+t))s=Kl;else{var f=We(t);f&&(l=f,s=ds)}else if(ch(t)){var h=V({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:We(c.color)}}),o2(t)?s=Gd:s2(t)&&(s=Hd),l=h}i===0?this.valType=s:(s!==this.valType||s===Km)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=J(a)?a:Kb[a]||Tg(a)),n.push(v),v},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=Jl(n),u=Jm(n),f=0;f<i;f++){var h=a[f],v=h.value,c=o.value;h.percent=h.time/e,s||(l&&f!==i-1?kE(v,c,n):u&&EE(v.colorStops,c.colorStops))}if(!s&&n!==Hd&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,f=0;f<i;f++)n===Kl?a[f].additiveValue=a[f].value-d:n===ds?a[f].additiveValue=ql([],a[f].value,d,-1):Jl(n)&&(a[f].additiveValue=n===Qu?ql([],a[f].value,d,-1):qm([],a[f].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===ds,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>t);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(!!(c&&d)){this._lastFr=f,this._lastFrP=t;var g=d.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?Ho:e[l];if((Jl(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:d.rawValue;else if(Jl(i))i===Qu?uv(m,c[n],d[n],y):RE(m,c[n],d[n],y);else if(Jm(i)){var _=c[n],S=d[n],w=i===Gd;e[l]={type:w?"linear":"radial",x:oa(_.x,S.x,y),y:oa(_.y,S.y,y),colorStops:G(_.colorStops,function(b,C){var T=S.colorStops[C];return{offset:oa(b.offset,T.offset,y),color:Ju(uv([],b.color,T.color,y))}}),global:S.global},w?(e[l].x2=oa(_.x2,S.x2,y),e[l].y2=oa(_.y2,S.y2,y)):e[l].r=oa(_.r,S.r,y)}else if(u)uv(m,c[n],d[n],y),a||(e[l]=Ju(m));else{var x=oa(c[n],d[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Kl?e[a]=e[a]+n:t===ds?(We(e[a],Ho),ql(Ho,Ho,n,1),e[a]=Ju(Ho)):t===Qu?ql(e[a],e[a],n,1):t===h2&&qm(e[a],e[a],n,1)},r}(),Dg=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){mg("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,St(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 BE(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===ds&&u&&(u=Ju(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ds(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ds(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,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var v=new _E({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){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,c);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,c)},ondestroy:function(){t._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.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 G(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]=Ds(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||St(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 ro(){return new Date().getTime()}var NE=function(r){k(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=ro()-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&&(kd(a),!t._paused&&t.update())}kd(a)},e.prototype.start=function(){this._running||(this._time=ro(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ro(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ro()-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 Dg(t,a.loop);return this.addAnimator(n),n},e}(hr),VE=NE,zE=300,fv=At.domSupported,hv=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=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Qm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},jm=!1;function Wd(r){var e=r.pointerType;return e==="pen"||e==="touch"}function FE(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 vv(r){r&&(r.zrByTouch=!0)}function GE(r,e){return Je(r.dom,new HE(r,e),!0)}function v2(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 HE=function(){function r(e,t){this.stopPropagation=Kt,this.stopImmediatePropagation=Kt,this.preventDefault=Kt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),yr={mousedown:function(r){r=Je(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Je(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=Je(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Je(this.dom,r);var e=r.toElement||r.relatedTarget;v2(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){jm=!0,r=Je(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){jm||(r=Je(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Je(this.dom,r),vv(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),yr.mousemove.call(this,r),yr.mousedown.call(this,r)},touchmove:function(r){r=Je(this.dom,r),vv(r),this.handler.processGesture(r,"change"),yr.mousemove.call(this,r)},touchend:function(r){r=Je(this.dom,r),vv(r),this.handler.processGesture(r,"end"),yr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<zE&&yr.click.call(this,r)},pointerdown:function(r){yr.mousedown.call(this,r)},pointermove:function(r){Wd(r)||yr.mousemove.call(this,r)},pointerup:function(r){yr.mouseup.call(this,r)},pointerout:function(r){Wd(r)||yr.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){yr[r]=function(e){e=Je(this.dom,e),this.trigger(r,e)}});var $d={pointermove:function(r){Wd(r)||$d.mousemove.call(this,r)},pointerup:function(r){$d.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 WE(r,e){var t=e.domHandlers;At.pointerEventsSupported?A(hv.pointer,function(a){ju(e,a,function(n){t[a].call(r,n)})}):(At.touchEventsSupported&&A(hv.touch,function(a){ju(e,a,function(n){t[a].call(r,n),FE(e)})}),A(hv.mouse,function(a){ju(e,a,function(n){n=wg(n),e.touching||t[a].call(r,n)})}))}function $E(r,e){At.pointerEventsSupported?A(Qm.pointer,t):At.touchEventsSupported||A(Qm.mouse,t);function t(a){function n(i){i=wg(i),v2(r,i.target)||(i=GE(r,i),e.domHandlers[a].call(r,i))}ju(e,a,n,{capture:!0})}}function ju(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Ed(r.domTarget,e,t,a)}function cv(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&JR(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var t0=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),UE=function(r){k(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 t0(t,yr),fv&&(n._globalHandlerScope=new t0(document,$d)),WE(n,n._localHandlerScope),n}return e.prototype.dispose=function(){cv(this._localHandlerScope),fv&&cv(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,fv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?$E(this,a):cv(a)}},e}(hr),YE=UE,c2=1;At.hasGlobalWindow&&(c2=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var wf=c2,Ud=.4,Yd="#333",Zd="#ccc",ZE="#eee",e0=ph,r0=5e-5;function mn(r){return r>r0||r<-r0}var _n=[],Ri=[],dv=ur(),pv=Math.abs,XE=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(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 mn(this.rotation)||mn(this.x)||mn(this.y)||mn(this.scaleX-1)||mn(this.scaleY-1)||mn(this.skewX)||mn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(e0(a),this.invTransform=null);return}a=a||ur(),t?this.getLocalTransform(a):e0(a),e&&(t?ha(a,e,a):bg(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(_n);var a=_n[0]<0?-1:1,n=_n[1]<0?-1:1,i=((_n[0]-a)*t+a)/_n[0]||0,o=((_n[1]-n)*t+n)/_n[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ur(),bo(this.invTransform,e)},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&&(ha(Ri,e.invTransform,t),t=Ri);var a=this.originX,n=this.originY;(a||n)&&(dv[4]=a,dv[5]=n,ha(Ri,t,dv),Ri[4]-=a,Ri[5]-=n,t=Ri),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&&he(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&he(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&pv(e[0]-1)>1e-10&&pv(e[3]-1)>1e-10?Math.sqrt(pv(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){d2(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,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-v*p*o,t[5]=-p*o-c*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&bi(t,t,u),t[4]+=a+f,t[5]+=n+h,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}(),qr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function d2(r,e){for(var t=0;t<qr.length;t++){var a=qr[t];r[a]=e[a]}}var la=XE,a0={};function $e(r,e){e=e||tn;var t=a0[e];t||(t=a0[e]=new Sl(500));var a=t.get(r);return a==null&&(a=ga.measureText(r,e).width,t.put(r,a)),a}function n0(r,e,t,a){var n=$e(r,e),i=yh(e),o=ps(0,n,t),s=Qi(0,i,a),l=new vt(o,s,n,i);return l}function xl(r,e,t,a){var n=((r||"")+"").split(`
`),i=n.length;if(i===1)return n0(n[0],e,t,a);for(var o=new vt(0,0,0,0),s=0;s<n.length;s++){var l=n0(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function ps(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Qi(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function yh(r){return $e("\u56FD",r)}function Tr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function bf(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,f="left",h="top";if(a instanceof Array)l+=Tr(a[0],t.width),u+=Tr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var gv="__zr_normal__",yv=qr.concat(["ignore"]),qE=Zr(qr,function(r,e){return r[e]=!0,r},{ignore:!1}),Ei={},KE=new vt(0,0,0,0),Mg=function(){function r(e){this.id=Fb(),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;if(i.copyTransform(t),a.position!=null){var f=KE;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ei,a,f):bf(Ei,a,f),i.x=Ei.x,i.y=Ei.y,o=Ei.align,s=Ei.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Tr(h[0],f.width),c=Tr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=He,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()?Zd:Yd},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&We(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,va(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||{},V(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(et(e))for(var a=e,n=St(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!==gv)){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,yv)},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(gv,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===gv,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(dt(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){mg("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.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._toggleHoverLayerFlag(!1),this.__dirty&=~He),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],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],v=!!(h&&h.hoverLayer||a);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(e.join(","),c,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~He)}},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=dt(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=dt(n,e),o=dt(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];V(t,i),i.textConfig&&(a=a||{},V(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=V({},n?this.textConfig:a.textConfig),V(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<yv.length;f++){var h=yv[f],v=i&&qE[h];t&&t[h]!=null?v?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&a[h]!=null&&(v?(u=!0,l[h]=a[h]):this[h]=a[h])}if(!i)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},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;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new la,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),V(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|=He;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},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,i=new Dg(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=dt(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){mv(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){mv(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=mv(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.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=He;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))}(),r}();te(Mg,hr);te(Mg,la);function mv(r,e,t,a,n){t=t||{};var i=[];p2(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var v=0;v<i.length;v++){var c=i[v];f&&c.done(f),h&&c.aborted(h),t.force&&c.duration(t.duration),c.start(t.easing)}return i}function _v(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function JE(r){return Se(r[0])}function QE(r,e,t){if(Se(e[t]))if(Se(r[t])||(r[t]=[]),Ue(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),_v(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(JE(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?_v(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else _v(i,n,o);i.length=n.length}else r[t]=e[t]}function jE(r,e){return r===e||Se(r)&&Se(e)&&tk(r,e)}function tk(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 p2(r,e,t,a,n,i,o,s){for(var l=St(a),u=n.duration,f=n.delay,h=n.additive,v=n.setToFinal,c=!et(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=a[y];if(m!=null&&t[y]!=null&&(c||i[y]))if(et(m)&&!Se(m)&&!ch(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}p2(r,y,t[y],m,n,i&&i[y],o,s)}else p.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),p.push(y))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var w=d[S];if(w.targetName===e){var x=w.stopTracks(p);if(x){var b=dt(d,w);d.splice(b,1)}}}if(n.force||(p=Et(p,function(M){return!jE(a[M],t[M])}),_=p.length),_>0||n.force&&!o.length){var C=void 0,T=void 0,D=void 0;if(s){T={},v&&(C={});for(var S=0;S<_;S++){var y=p[S];T[y]=t[y],v?C[y]=a[y]:t[y]=a[y]}}else if(v){D={};for(var S=0;S<_;S++){var y=p[S];D[y]=Ds(t[y]),QE(t,a,y)}}var w=new Dg(t,!1,!1,h?Et(d,function(L){return L.targetName===e}):null);w.targetName=e,n.scope&&(w.scope=n.scope),v&&C&&w.whenWithKeys(0,C,p),D&&w.whenWithKeys(0,D,p),w.whenWithKeys(u==null?500:u,s?T:a,p).delay(f||0),r.addAnimator(w,e),o.push(w)}}var g2=Mg,y2=function(r){k(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){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),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=dt(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=dt(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 vt(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(),f=l.getLocalTransform(i);f?(vt.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e}(g2);y2.prototype.type="group";var nt=y2;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var tf={},m2={};function ek(r){delete m2[r]}function rk(r){if(!r)return!1;if(typeof r=="string")return Sf(r,1)<Ud;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=Sf(e[n].color,1);return t/=a,t<Ud}return!1}var ak=function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new cE,o=a.renderer||"canvas";tf[o]||(o=St(tf)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new tf[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!At.node&&!At.worker&&!l?new YE(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,h=f==null||f==="auto"?At.touchEventsSupported:!!f,v=44,c;h&&(c=ft(a.pointerSize,v)),this.handler=new lE(i,s,u,s.root,c),this.animation=new VE({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},r.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=rk(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){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(e){var t,a=ro();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=ro();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-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.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof nt&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,ek(this.id)},r}();function i0(r,e){var t=new ak(Fb(),r,e);return m2[t.id]=t,t}function nk(r,e){tf[r]=e}var o0=1e-4,_2=20;function ik(r){return r.replace(/^\s+|\s+$/g,"")}function Rt(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}function W(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return U(r)?ik(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Zt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),_2),r=(+r).toFixed(e),t?r:+r}function or(r){return r.sort(function(e,t){return e-t}),r}function Gr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return ok(r)}function ok(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 Math.max(0,o-a)}function S2(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function sk(r,e){var t=Zr(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=G(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=a*100,o=G(n,function(c){return Math.floor(c)}),s=Zr(o,function(c,d){return c+d},0),l=G(n,function(c,d){return c-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(c){return c/a})}function lk(r,e){var t=Math.max(Gr(r),Gr(e)),a=r+e;return t>_2?a:Zt(a,t)}var s0=9007199254740991;function x2(r){var e=Math.PI*2;return(r%e+e)%e}function Cf(r){return r>-o0&&r<o0}var uk=/^(?:(\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 Kr(r){if(r instanceof Date)return r;if(U(r)){var e=uk.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(Math.round(r))}function fk(r){return Math.pow(10,Lg(r))}function Lg(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function w2(r,e){var t=Lg(r),a=Math.pow(10,t),n=r/a,i;return 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,t>=-20?+r.toFixed(t<0?-t:0):r}function Sv(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function l0(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,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function ma(r){var e=parseFloat(r);return e==r&&(e!==0||!U(r)||r.indexOf("x")<=0)?e:NaN}function b2(r){return!isNaN(ma(r))}function C2(){return Math.round(Math.random()*9)}function T2(r,e){return e===0?r:T2(e,r%e)}function u0(r,e){return r==null?e:e==null?r:r*e/T2(r,e)}function Pt(r){throw new Error(r)}function f0(r,e,t){return(e-r)*t+r}var A2="series\0",D2="\0_ec_\0";function kt(r){return r instanceof Array?r:r==null?[]:[r]}function ci(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 h0=["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 Co(r){return et(r)&&!F(r)&&!(r instanceof Date)?r.value:r}function hk(r){return et(r)&&!(r instanceof Array)}function M2(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=q();A(e,function(l,u){if(!et(l)){e[u]=null;return}});var s=vk(r,o,t);return(a||n)&&ck(s,r,o,e),a&&dk(s,e),a||n?pk(s,e,n):i&&gk(s,e),yk(s),s}function vk(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"||Zs(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function ck(r,e,t,a){A(a,function(n,i){if(!(!n||n.id==null)){var o=Ms(n.id),s=t.get(o);if(s!=null){var l=r[s];Me(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function dk(r,e){A(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)&&!Zs(t)&&!Zs(i)&&L2("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function pk(r,e,t){A(e,function(a){if(!!a){for(var n,i=0;(n=r[i])&&(n.newOption||Zs(n.existing)||n.existing&&a.id!=null&&!L2("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function gk(r,e){A(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function yk(r){var e=q();A(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),A(r,function(t){var a=t.newOption;Me(!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={})}),A(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(!!et(i)){if(o.name=i.name!=null?Ms(i.name):n?n.name:A2+a,n)o.id=Ms(n.id);else if(i.id!=null)o.id=Ms(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 L2(r,e,t){var a=ee(e[r],null),n=ee(t[r],null);return a!=null&&n!=null&&a===n}function Ms(r){return ee(r,"")}function ee(r,e){return r==null?e:U(r)?r:Mt(r)||Ad(r)?r+"":e}function Ig(r){var e=r.name;return!!(e&&e.indexOf(A2))}function Zs(r){return r&&r.id!=null&&Ms(r.id).indexOf(D2)===0}function mk(r){return D2+r}function _k(r,e,t){A(r,function(a){var n=a.newOption;et(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=Sk(e,n,a.existing,t))})}function Sk(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function xk(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,f=o.length;u<f;u++){var h=ee(o[u].seriesId,null);if(h==null)return;for(var v=kt(o[u].dataIndex),c=l&&l[h],d=0,p=v.length;d<p;d++){var g=v[d];c&&c[g]?c[g]=null:(s[h]||(s[h]={}))[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 f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function di(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return F(e.dataIndex)?G(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return F(e.name)?G(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Ct(){var r="__ec_inner_"+wk++;return function(e){return e[r]||(e[r]={})}}var wk=C2();function Ls(r,e,t){var a=Pg(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,f){var h=wl(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Pg(r,e){var t;if(U(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=q(),i={},o=!1;return A(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&dt(e.includeMainTypes,f)<0)){o=o||!!f;var v=n.get(f)||n.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Qt={useDefault:!0,enableAll:!1,enableNone:!1},bk={useDefault:!1,enableAll:!0,enableNone:!0};function wl(r,e,t,a){a=a||Qt;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}return n==="none"||n===!1?(Me(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(Me(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s)}function I2(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function Ck(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function Tk(r){return r==="auto"?At.domSupported?"html":"richText":r||"html"}function Xd(r,e){var t=q(),a=[];return A(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function P2(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(Mt(a)){var o=f0(t||0,a,n);return Zt(o,i?Math.max(Gr(t||0),Gr(a)):e)}else{if(U(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=f0(c,d,n);s[h]=Zt(o,i?Math.max(Gr(c),Gr(d)):e)}}return s}}var Ak=".",Sn="___EC__COMPONENT__CONTAINER___",R2="___EC__EXTENDED_CLASS___";function Hr(r){var e={main:"",sub:""};if(r){var t=r.split(Ak);e.main=t[0]||"",e.sub=t[1]||""}return e}function Dk(r){Me(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Mk(r){return!!(r&&r[R2])}function Rg(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return Lk(a)?n=function(i){k(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(t.$constructor||a).apply(this,arguments)},MR(n,this)),V(n.prototype,t),n[R2]=!0,n.extend=this.extend,n.superCall=Rk,n.superApply=Ek,n.superClass=a,n}}function Lk(r){return J(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function E2(r,e){r.extend=e.extend}var Ik=Math.round(Math.random()*10);function Pk(r){var e=["__\0is_clz",Ik++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function Rk(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 Ek(r,e,t){return this.superClass.prototype[e].apply(r,t)}function mh(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){Dk(n),a.prototype.type=n;var i=Hr(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Sn){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Sn]&&(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=Hr(a),i=[],o=e[n.main];return o&&o[Sn]?A(o,function(s,l){l!==Sn&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Hr(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return A(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Hr(a),i=e[n.main];return i&&i[Sn]};function t(a){var n=e[a.main];return(!n||!n[Sn])&&(n=e[a.main]={},n[Sn]=!0),n}}function pi(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&&dt(n,l)>=0||i&&dt(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var kk=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Ok=pi(kk),Bk=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return Ok(this,e,t)},r}(),qd=new Sl(50);function Nk(r){if(typeof r=="string"){var e=qd.get(r);return e&&e.image}else return r}function Eg(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=qd.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!_h(e)&&i.pending.push(o)):(e=ga.loadImage(r,v0,v0),e.__zrImageSrc=r,qd.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function v0(){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 _h(r){return r&&r.width&&r.height}var xv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Vk(r,e,t,a,n){if(!e)return"";var i=(r+"").split(`
`);n=k2(e,t,a,n);for(var o=0,s=i.length;o<s;o++)i[o]=O2(i[o],n);return i.join(`
`)}function k2(r,e,t,a){a=a||{};var n=V({},a);n.font=e,t=ft(t,"..."),n.maxIterations=ft(a.maxIterations,2);var i=n.minChar=ft(a.minChar,0);n.cnCharWidth=$e("\u56FD",e);var o=n.ascCharWidth=$e("a",e);n.placeholder=ft(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=$e(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function O2(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=$e(r,a);if(i<=t)return r;for(var o=0;;o++){if(i<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?zk(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=$e(r,a)}return r===""&&(r=e.placeholder),r}function zk(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function Fk(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=yh(n),s=ft(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,h;f!=null&&(t==="break"||t==="breakAll")?h=r?B2(r,e.font,f,t==="breakAll",0).lines:[]:h=r?r.split(`
`):[];var v=h.length*s,c=ft(e.height,v);if(v>c&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&i&&f!=null)for(var p=k2(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<h.length;g++)h[g]=O2(h[g],p);for(var y=c,m=0,g=0;g<h.length;g++)m=Math.max($e(h[g],n),m);f==null&&(f=m);var _=m;return a&&(y+=a[0]+a[2],_+=a[1]+a[3],f+=a[1]+a[3]),l&&(_=f),{lines:h,height:c,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:v,width:f}}var Gk=function(){function r(){}return r}(),c0=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),Hk=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function Wk(r,e){var t=new Hk;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,n=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=xv.lastIndex=0,l;(l=xv.exec(r))!=null;){var u=l.index;u>s&&wv(t,r.substring(s,u),e,o),wv(t,l[2],e,o,l[1]),s=xv.lastIndex}s<r.length&&wv(t,r.substring(s,r.length),e,o);var f=[],h=0,v=0,c=e.padding,d=i==="truncate",p=e.lineOverflow==="truncate";function g(O,z,H){O.width=z,O.lineHeight=H,h+=H,v=Math.max(v,z)}t:for(var y=0;y<t.lines.length;y++){for(var m=t.lines[y],_=0,S=0,w=0;w<m.tokens.length;w++){var x=m.tokens[w],b=x.styleName&&e.rich[x.styleName]||{},C=x.textPadding=b.padding,T=C?C[1]+C[3]:0,D=x.font=b.font||e.font;x.contentHeight=yh(D);var M=ft(b.height,x.contentHeight);if(x.innerHeight=M,C&&(M+=C[0]+C[2]),x.height=M,x.lineHeight=Ur(b.lineHeight,e.lineHeight,M),x.align=b&&b.align||e.align,x.verticalAlign=b&&b.verticalAlign||"middle",p&&n!=null&&h+x.lineHeight>n){w>0?(m.tokens=m.tokens.slice(0,w),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var L=b.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")x.percentWidth=L,f.push(x),x.contentWidth=$e(x.text,D);else{if(I){var P=b.backgroundColor,R=P&&P.image;R&&(R=Nk(R),_h(R)&&(x.width=Math.max(x.width,R.width*M/R.height)))}var E=d&&a!=null?a-S:null;E!=null&&E<x.width?!I||E<T?(x.text="",x.width=x.contentWidth=0):(x.text=Vk(x.text,E-T,D,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=$e(x.text,D)):x.contentWidth=$e(x.text,D)}x.width+=T,S+=x.width,b&&(_=Math.max(_,x.lineHeight))}g(m,S,_)}t.outerWidth=t.width=ft(a,v),t.outerHeight=t.height=ft(n,h),t.contentHeight=h,t.contentWidth=v,c&&(t.outerWidth+=c[1]+c[3],t.outerHeight+=c[0]+c[2]);for(var y=0;y<f.length;y++){var x=f[y],B=x.percentWidth;x.width=parseInt(B,10)/100*t.width}return t}function wv(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(a){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Tr(o.width,a.width)+c;s.length>0&&d+a.accumWidth>a.width&&(f=e.split(`
`),u=!0),a.accumWidth=d}else{var p=B2(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=e.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new Gk;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:$e(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new c0)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new c0([m]))}}function $k(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Uk=Zr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function Yk(r){return $k(r)?!!Uk[r]:!0}function B2(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=$e(v,e),d=a?!1:!Yk(v);if(i.length?f+c>t:n+f+c>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):d?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Kd="__zr_style_"+Math.round(Math.random()*10),ii={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Sh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ii[Kd]=!0;var d0=["z","z2","invisible"],Zk=["invisible"],Xk=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=St(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(){},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&&qk(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(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 vt(0,0,0,0)),a?vt.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 vt(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:V(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=cs,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&cs)},e.prototype.styleUpdated=function(){this.__dirty&=~cs},e.prototype.createStyle=function(t){return dh(ii,t)},e.prototype.useStyle=function(t){t[Kd]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Kd]},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,d0)},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;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=St(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var d=St(u),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?Zk:d0,v=0;v<p.length;v++){var c=p[v];a&&a[c]!=null?this[c]=a[c]:l&&n[c]!=null&&(this[c]=n[c])}},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 V(t,a),t},e.prototype.getAnimationStyleProps=function(){return Sh},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=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=He|cs}(),e}(g2),bv=new vt(0,0,0,0),Cv=new vt(0,0,0,0);function qk(r,e,t){return bv.copy(r.getBoundingRect()),r.transform&&bv.applyTransform(r.transform),Cv.width=e,Cv.height=t,!bv.intersect(Cv)}var fr=Xk,Oe=Math.min,Be=Math.max,Tv=Math.sin,Av=Math.cos,xn=Math.PI*2,Ql=wi(),jl=wi(),tu=wi();function xh(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=Oe(n,a[0]),i=Be(i,a[0]),o=Oe(o,a[1]),s=Be(s,a[1]);e[0]=n,e[1]=o,t[0]=i,t[1]=s}}function p0(r,e,t,a,n,i){n[0]=Oe(r,t),n[1]=Oe(e,a),i[0]=Be(r,t),i[1]=Be(e,a)}var g0=[],y0=[];function Kk(r,e,t,a,n,i,o,s,l,u){var f=jb,h=ae,v=f(r,t,n,o,g0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var d=h(r,t,n,o,g0[c]);l[0]=Oe(d,l[0]),u[0]=Be(d,u[0])}v=f(e,a,i,s,y0);for(var c=0;c<v;c++){var p=h(e,a,i,s,y0[c]);l[1]=Oe(p,l[1]),u[1]=Be(p,u[1])}l[0]=Oe(r,l[0]),u[0]=Be(r,u[0]),l[0]=Oe(o,l[0]),u[0]=Be(o,u[0]),l[1]=Oe(e,l[1]),u[1]=Be(e,u[1]),l[1]=Oe(s,l[1]),u[1]=Be(s,u[1])}function Jk(r,e,t,a,n,i,o,s){var l=e2,u=se,f=Be(Oe(l(r,t,n),1),0),h=Be(Oe(l(e,a,i),1),0),v=u(r,t,n,f),c=u(e,a,i,h);o[0]=Oe(r,n,v),o[1]=Oe(e,i,c),s[0]=Be(r,n,v),s[1]=Be(e,i,c)}function Qk(r,e,t,a,n,i,o,s,l){var u=Ha,f=Wa,h=Math.abs(n-i);if(h%xn<1e-4&&h>1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(Ql[0]=Av(n)*t+r,Ql[1]=Tv(n)*a+e,jl[0]=Av(i)*t+r,jl[1]=Tv(i)*a+e,u(s,Ql,jl),f(l,Ql,jl),n=n%xn,n<0&&(n=n+xn),i=i%xn,i<0&&(i=i+xn),n>i&&!o?i+=xn:n<i&&o&&(n+=xn),o){var v=i;i=n,n=v}for(var c=0;c<i;c+=Math.PI/2)c>n&&(tu[0]=Av(c)*t+r,tu[1]=Tv(c)*a+e,u(s,tu,s),f(l,tu,l))}var Ot={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wn=[],bn=[],Lr=[],Ma=[],Ir=[],Pr=[],Dv=Math.min,Mv=Math.max,Cn=Math.cos,Tn=Math.sin,aa=Math.abs,Jd=Math.PI,Na=Jd*2,Lv=typeof Float32Array!="undefined",Wo=[];function Iv(r){var e=Math.round(r/Jd*1e8)/1e8;return e%2*Jd}function N2(r,e){var t=Iv(r[0]);t<0&&(t+=Na);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=Na?n=t+Na:e&&t-n>=Na?n=t-Na:!e&&t>n?n=t+(Na-Iv(t-n)):e&&t<n&&(n=t-(Na-Iv(n-t))),r[0]=t,r[1]=n}var Jr=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=aa(a/wf/e)||0,this._uy=aa(a/wf/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(Ot.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=aa(e-this._xi),n=aa(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Ot.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(Ot.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(Ot.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(),Wo[0]=n,Wo[1]=i,N2(Wo,o),n=Wo[0],i=Wo[1];var s=i-n;return this.addData(Ot.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=Cn(i)*a+e,this._yi=Tn(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(Ot.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ot.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){var t=e.length;!(this.data&&this.data.length===t)&&Lv&&(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){e instanceof Array||(e=[e]);for(var t=e.length,a=0,n=this._len,i=0;i<t;i++)a+=e[i].len();Lv&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+a));for(var i=0;i<t;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(e,t,a,n,i,o,s,l,u){if(!!this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},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,Lv&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Lr[0]=Lr[1]=Ir[0]=Ir[1]=Number.MAX_VALUE,Ma[0]=Ma[1]=Pr[0]=Pr[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 Ot.M:t=n=e[o++],a=i=e[o++],Ir[0]=n,Ir[1]=i,Pr[0]=n,Pr[1]=i;break;case Ot.L:p0(t,a,e[o],e[o+1],Ir,Pr),t=e[o++],a=e[o++];break;case Ot.C:Kk(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ir,Pr),t=e[o++],a=e[o++];break;case Ot.Q:Jk(t,a,e[o++],e[o++],e[o],e[o+1],Ir,Pr),t=e[o++],a=e[o++];break;case Ot.A:var u=e[o++],f=e[o++],h=e[o++],v=e[o++],c=e[o++],d=e[o++]+c;o+=1;var p=!e[o++];l&&(n=Cn(c)*h+u,i=Tn(c)*v+f),Qk(u,f,h,v,c,d,p,Ir,Pr),t=Cn(d)*h+u,a=Tn(d)*v+f;break;case Ot.R:n=t=e[o++],i=a=e[o++];var g=e[o++],y=e[o++];p0(n,i,n+g,i+y,Ir,Pr);break;case Ot.Z:t=n,a=i;break}Ha(Lr,Lr,Ir),Wa(Ma,Ma,Pr)}return o===0&&(Lr[0]=Lr[1]=Ma[0]=Ma[1]=0),new vt(Lr[0],Lr[1],Ma[0]-Lr[0],Ma[1]-Lr[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,f=0,h=0,v=0;v<t;){var c=e[v++],d=v===1;d&&(i=e[v],o=e[v+1],s=i,l=o);var p=-1;switch(c){case Ot.M:i=s=e[v++],o=l=e[v++];break;case Ot.L:{var g=e[v++],y=e[v++],m=g-i,_=y-o;(aa(m)>a||aa(_)>n||v===t-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Ot.C:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++],x=e[v++],b=e[v++];p=dE(i,o,S,w,g,y,x,b,10),i=x,o=b;break}case Ot.Q:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++];p=gE(i,o,S,w,g,y,10),i=g,o=y;break}case Ot.A:var C=e[v++],T=e[v++],D=e[v++],M=e[v++],L=e[v++],I=e[v++],P=I+L;v+=1,e[v++],d&&(s=Cn(L)*D+C,l=Tn(L)*M+T),p=Mv(D,M)*Dv(Na,Math.abs(I)),i=Cn(P)*D+C,o=Tn(P)*M+T;break;case Ot.R:{s=i=e[v++],l=o=e[v++];var R=e[v++],E=e[v++];p=R*2+E*2;break}case Ot.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,d,p,g=0,y=0,m,_=0,S,w;if(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*p,!m))return;t:for(var x=0;x<o;){var b=a[x++],C=x===1;switch(C&&(u=a[x],f=a[x+1],s=u,l=f),b!==Ot.L&&_>0&&(e.lineTo(S,w),_=0),b){case Ot.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case Ot.L:{h=a[x++],v=a[x++];var T=aa(h-u),D=aa(v-f);if(T>n||D>i){if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;e.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break t}g+=M}e.lineTo(h,v),u=h,f=v,_=0}else{var I=T*T+D*D;I>_&&(S=h,w=v,_=I)}break}case Ot.C:{var P=a[x++],R=a[x++],E=a[x++],B=a[x++],O=a[x++],z=a[x++];if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;en(u,P,E,O,L,wn),en(f,R,B,z,L,bn),e.bezierCurveTo(wn[1],bn[1],wn[2],bn[2],wn[3],bn[3]);break t}g+=M}e.bezierCurveTo(P,R,E,B,O,z),u=O,f=z;break}case Ot.Q:{var P=a[x++],R=a[x++],E=a[x++],B=a[x++];if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;$s(u,P,E,L,wn),$s(f,R,B,L,bn),e.quadraticCurveTo(wn[1],bn[1],wn[2],bn[2]);break t}g+=M}e.quadraticCurveTo(P,R,E,B),u=E,f=B;break}case Ot.A:var H=a[x++],$=a[x++],X=a[x++],Q=a[x++],j=a[x++],pt=a[x++],xt=a[x++],gt=!a[x++],rt=X>Q?X:Q,yt=aa(X-Q)>.001,st=j+pt,K=!1;if(c){var M=d[y++];g+M>m&&(st=j+pt*(m-g)/M,K=!0),g+=M}if(yt&&e.ellipse?e.ellipse(H,$,X,Q,xt,j,st,gt):e.arc(H,$,rt,j,st,gt),K)break t;C&&(s=Cn(j)*X+H,l=Tn(j)*Q+$),u=Cn(st)*X+H,f=Tn(st)*Q+$;break;case Ot.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var lt=a[x++],Gt=a[x++];if(c){var M=d[y++];if(g+M>m){var wt=m-g;e.moveTo(h,v),e.lineTo(h+Dv(wt,lt),v),wt-=lt,wt>0&&e.lineTo(h+lt,v+Dv(wt,Gt)),wt-=Gt,wt>0&&e.lineTo(h+Mv(lt-wt,0),v+Gt),wt-=lt,wt>0&&e.lineTo(h,v+Mv(Gt-wt,0));break t}g+=M}e.rect(h,v,lt,Gt);break;case Ot.Z:if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=M}e.closePath(),u=s,f=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.CMD=Ot,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function za(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 f=l*i-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function jk(r,e,t,a,n,i,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>e+h&&f>a+h&&f>i+h&&f>s+h||f<e-h&&f<a-h&&f<i-h&&f<s-h||u>r+h&&u>t+h&&u>n+h&&u>o+h||u<r-h&&u<t-h&&u<n-h&&u<o-h)return!1;var v=t2(r,e,t,a,n,i,o,s,u,f,null);return v<=h/2}function V2(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 f=r2(r,e,t,a,n,i,s,l,null);return f<=u/2}var m0=Math.PI*2;function xr(r){return r%=m0,r<0&&(r+=m0),r}var $o=Math.PI*2;function t5(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(a-n)%$o<1e-4)return!0;if(i){var h=a;a=xr(n),n=xr(h)}else a=xr(a),n=xr(n);a>n&&(n+=$o);var v=Math.atan2(l,s);return v<0&&(v+=$o),v>=a&&v<=n||v+$o>=a&&v+$o<=n}function sa(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 La=Jr.CMD,An=Math.PI*2,e5=1e-4;function r5(r,e){return Math.abs(r-e)<e5}var Te=[-1,-1,-1],je=[-1,-1];function a5(){var r=je[0];je[0]=je[1],je[1]=r}function n5(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 f=mf(e,a,i,s,u,Te);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=Te[p],y=g===0||g===1?.5:1,m=ae(r,t,n,o,g);m<l||(v<0&&(v=jb(e,a,i,s,je),je[1]<je[0]&&v>1&&a5(),c=ae(e,a,i,s,je[0]),v>1&&(d=ae(e,a,i,s,je[1]))),v===2?g<je[0]?h+=c<e?y:-y:g<je[1]?h+=d<c?y:-y:h+=s<d?y:-y:g<je[0]?h+=c<e?y:-y:h+=s<c?y:-y)}return h}function i5(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=pE(e,a,i,s,Te);if(l===0)return 0;var u=e2(e,a,i);if(u>=0&&u<=1){for(var f=0,h=se(e,a,i,u),v=0;v<l;v++){var c=Te[v]===0||Te[v]===1?.5:1,d=se(r,t,n,Te[v]);d<o||(Te[v]<u?f+=h<e?c:-c:f+=i<h?c:-c)}return f}else{var c=Te[0]===0||Te[0]===1?.5:1,d=se(r,t,n,Te[0]);return d<o?0:i<e?c:-c}}function o5(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);Te[0]=-l,Te[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=An-1e-4){a=0,n=An;var f=i?1:-1;return o>=Te[0]+r&&o<=Te[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=An,n+=An);for(var v=0,c=0;c<2;c++){var d=Te[c];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=An+p),(p>=a&&p<=n||p+An>=a&&p+An<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function z2(r,e,t,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,v,c,d=0;d<o;){var p=i[d++],g=d===1;switch(p===La.M&&d>1&&(t||(s+=sa(l,u,f,h,a,n))),g&&(l=i[d],u=i[d+1],f=l,h=u),p){case La.M:f=i[d++],h=i[d++],l=f,u=h;break;case La.L:if(t){if(za(l,u,i[d],i[d+1],e,a,n))return!0}else s+=sa(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case La.C:if(t){if(jk(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=n5(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 La.Q:if(t){if(V2(l,u,i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=i5(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case La.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],w=i[d++],x=i[d++];d+=1;var b=!!(1-i[d++]);v=Math.cos(w)*_+y,c=Math.sin(w)*S+m,g?(f=v,h=c):s+=sa(l,u,v,c,a,n);var C=(a-y)*S/_+y;if(t){if(t5(y,m,S,w,w+x,b,e,C,n))return!0}else s+=o5(y,m,S,w,w+x,b,C,n);l=Math.cos(w+x)*_+y,u=Math.sin(w+x)*S+m;break;case La.R:f=l=i[d++],h=u=i[d++];var T=i[d++],D=i[d++];if(v=f+T,c=h+D,t){if(za(f,h,v,h,e,a,n)||za(v,h,v,c,e,a,n)||za(v,c,f,c,e,a,n)||za(f,c,f,h,e,a,n))return!0}else s+=sa(v,h,v,c,a,n),s+=sa(f,c,f,h,a,n);break;case La.Z:if(t){if(za(l,u,f,h,e,a,n))return!0}else s+=sa(l,u,f,h,a,n);l=f,u=h;break}}return!t&&!r5(u,h)&&(s+=sa(l,u,f,h,a,n)||0),s!==0}function s5(r,e,t){return z2(r,0,!1,e,t)}function l5(r,e,t,a){return z2(r,e,!0,t,a)}var Tf=tt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ii),u5={style:tt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Sh.style)},Pv=qr.concat(["invisible","culling","z","z2","zlevel","parent"]),f5=function(r){k(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<Pv.length;++s)n[Pv[s]]=this[Pv[s]];n.__dirty|=He}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=St(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?V(this.style,s):this.useStyle(s):o==="shape"?V(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(U(t)){var a=Sf(t,0);return a>.5?Yd:a>.2?ZE:Zd}else if(t)return Zd}return Yd},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(U(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Sf(t,0)<Ud;if(i===o)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Ji},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 Jr(!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&Ji)&&(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 f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}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)),l5(s,l/u,t,a)))return!0}if(this.hasFill())return s5(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ji,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:V(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ji)},e.prototype.createStyle=function(t){return dh(Tf,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=V({},this.shape))},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;if(a&&a.shape?o?i?u=a.shape:(u=V({},n.shape),V(u,a.shape)):(u=V({},i?this.shape:n.shape),V(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=V({},this.shape);for(var f={},h=St(u),v=0;v<h.length;v++){var c=h[v];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(t,{shape:f},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 u5},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=function(i){k(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 at(t.style)},o.prototype.getDefaultShape=function(){return at(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=He|cs|Ji}(),e}(fr),mt=f5,h5=tt({strokeFirst:!0,font:tn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Tf),F2=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return 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.createStyle=function(t){return dh(h5,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=xl(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(fr);F2.prototype.type="tspan";var Xs=F2,v5=tt({x:0,y:0},ii),c5={style:tt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Sh.style)};function d5(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var G2=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return dh(v5,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=d5(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 c5},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new vt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(fr);G2.prototype.type="image";var pe=G2;function p5(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),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+f,a+i),f!==0&&r.arc(t+f,a+i-f,f,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)}var ao=Math.round;function H2(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&&(ao(a*2)===ao(n*2)&&(r.x1=r.x2=Kn(a,s,!0)),ao(i*2)===ao(o*2)&&(r.y1=r.y2=Kn(i,s,!0))),r}}function W2(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=Kn(a,s,!0),r.y=Kn(n,s,!0),r.width=Math.max(Kn(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Kn(n+o,s,!1)-r.y,o===0?0:1)),r}}function Kn(r,e,t){if(!e)return r;var a=ao(r*2);return(a+ao(e))%2===0?a/2:(a+(t?1:-1))/2}var g5=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),y5={},$2=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new g5},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=W2(y5,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?p5(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(mt);$2.prototype.type="rect";var bt=$2,_0={fill:"#000"},S0=2,m5={style:tt({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},Sh.style)},U2=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=_0,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,x5(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 vt(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||_0},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,a){if(!a)return t;var n=a.rich,i=t.rich||n&&{};return V(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=St(a),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},V(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return m5},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||tn,n=t.padding,i=D0(t),o=Fk(i,t),s=Rv(t),l=!!t.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,v=o.lines,c=o.lineHeight,d=this._defaultStyle,p=t.x||0,g=t.y||0,y=t.align||d.align||"left",m=t.verticalAlign||d.verticalAlign||"top",_=p,S=Qi(g,o.contentHeight,m);if(s||n){var w=ps(p,f,y),x=Qi(g,u,m);s&&this._renderBackground(t,t,w,x,f,u)}S+=c/2,n&&(_=A0(p,y,n),m==="top"?S+=n[0]:m==="bottom"&&(S-=n[2]));for(var b=0,C=!1,T=T0("fill"in t?t.fill:(C=!0,d.fill)),D=C0("stroke"in t?t.stroke:!l&&(!d.autoStroke||C)?(b=S0,d.stroke):null),M=t.textShadowBlur>0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<v.length;P++){var R=this._getOrCreateChild(Xs),E=R.createStyle();R.useStyle(E),E.text=v[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=t.opacity,E.strokeFirst=!0,M&&(E.shadowBlur=t.textShadowBlur||0,E.shadowColor=t.textShadowColor||"transparent",E.shadowOffsetX=t.textShadowOffsetX||0,E.shadowOffsetY=t.textShadowOffsetY||0),E.stroke=D,E.fill=T,D&&(E.lineWidth=t.lineWidth||b,E.lineDash=t.lineDash,E.lineDashOffset=t.lineDashOffset||0),E.font=a,w0(E,t),S+=c,L&&R.setBoundingRect(new vt(ps(E.x,t.width,E.textAlign),Qi(E.y,I,E.textBaseline),h,I))}},e.prototype._updateRichTexts=function(){var t=this.style,a=D0(t),n=Wk(a,t),i=n.width,o=n.outerWidth,s=n.outerHeight,l=t.padding,u=t.x||0,f=t.y||0,h=this._defaultStyle,v=t.align||h.align,c=t.verticalAlign||h.verticalAlign,d=ps(u,o,v),p=Qi(f,s,c),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+i;Rv(t)&&this._renderBackground(t,t,d,p,o,s);for(var _=!!t.backgroundColor,S=0;S<n.lines.length;S++){for(var w=n.lines[S],x=w.tokens,b=x.length,C=w.lineHeight,T=w.width,D=0,M=g,L=m,I=b-1,P=void 0;D<b&&(P=x[D],!P.align||P.align==="left");)this._placeToken(P,t,C,y,M,"left",_),T-=P.width,M+=P.width,D++;for(;I>=0&&(P=x[I],P.align==="right");)this._placeToken(P,t,C,y,L,"right",_),T-=P.width,L-=P.width,I--;for(M+=(i-(M-g)-(m-L)-T)/2;D<=I;)P=x[D],this._placeToken(P,t,C,y,M+P.width/2,"center",_),M+=P.width,D++;y+=C}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=i+n/2;f==="top"?h=i+t.height/2:f==="bottom"&&(h=i+n-t.height/2);var v=!t.isLineHolder&&Rv(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,d=t.textPadding;d&&(o=A0(o,s,d),h-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Xs),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=T0("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),w=C0("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=S0,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(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||tn,g.opacity=Ur(u.opacity,a.opacity,1),w0(g,u),w&&(g.lineWidth=Ur(u.lineWidth,a.lineWidth,_),g.lineDash=ft(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var b=t.contentWidth,C=t.contentHeight;p.setBoundingRect(new vt(ps(g.x,b,g.textAlign),Qi(g.y,C,g.textBaseline),b,C))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,d=this,p,g;if(v||t.lineHeight||u&&f){p=this._getOrCreateChild(bt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=ft(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(pe),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ft(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ur(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return Z2(t)&&(a=[t.fontStyle,t.fontWeight,Y2(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Sr(a)||t.textFont||t.font},e}(fr),_5={left:!0,right:1,center:1},S5={top:1,bottom:1,middle:1},x0=["fontStyle","fontWeight","fontSize","fontFamily"];function Y2(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?pg+"px":r+"px"}function w0(r,e){for(var t=0;t<x0.length;t++){var a=x0[t],n=e[a];n!=null&&(r[a]=n)}}function Z2(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function x5(r){return b0(r),A(r.rich,b0),r}function b0(r){if(r){r.font=U2.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||_5[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||S5[t]?t:"top";var a=r.padding;a&&(r.padding=xg(r.padding))}}function C0(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function T0(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function A0(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function D0(r){var e=r.text;return e!=null&&(e+=""),e}function Rv(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Dt=U2,it=Ct(),Qd=function(r,e,t,a){if(a){var n=it(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,a.type==="group"&&a.traverse(function(i){var o=it(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e})}},M0=1,L0={},X2=Ct(),kg=Ct(),Og=0,bl=1,wh=2,Le=["emphasis","blur","select"],qs=["normal","emphasis","blur","select"],To=10,w5=9,oi="highlight",ef="downplay",Is="select",rf="unselect",Ps="toggleSelect";function ki(r){return r!=null&&r!=="none"}var I0=new Sl(100);function P0(r){if(U(r)){var e=I0.get(r);return e||(e=Vd(r,-.1),I0.put(r,e)),e}else if(ch(r)){var t=V({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:Vd(a.color,-.1)}}),t}return r}function bh(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function q2(r){bh(r,"emphasis",wh)}function K2(r){r.hoverState===wh&&bh(r,"normal",Og)}function Bg(r){bh(r,"blur",bl)}function J2(r){r.hoverState===bl&&bh(r,"normal",Og)}function b5(r){r.selected=!0}function C5(r){r.selected=!1}function R0(r,e,t){e(r,t)}function Ca(r,e,t){R0(r,e,t),r.isGroup&&r.traverse(function(a){R0(a,e,t)})}function Af(r,e){switch(e){case"emphasis":r.hoverState=wh;break;case"normal":r.hoverState=Og;break;case"blur":r.hoverState=bl;break;case"select":r.selected=!0}}function T5(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==null?a&&a[s]:l}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 A5(r,e,t,a){var n=t&&dt(t,"select")>=0,i=!1;if(r instanceof mt){var o=X2(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(ki(s)||ki(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=V({},a),u=V({},u),u.fill=s):!ki(u.fill)&&ki(s)?(i=!0,a=V({},a),u=V({},u),u.fill=P0(s)):!ki(u.stroke)&&ki(l)&&(i||(a=V({},a),u=V({},u)),u.stroke=P0(l)),a.style=u}}if(a&&a.z2==null){i||(a=V({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f!=null?f:To)}return a}function D5(r,e,t){if(t&&t.z2==null){t=V({},t);var a=r.z2SelectLift;t.z2=r.z2+(a!=null?a:w5)}return t}function M5(r,e,t){var a=dt(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:T5(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=V({},t),o=V({opacity:a?n:i.opacity*.1},o),t.style=o),t}function Ev(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return A5(this,r,e,t);if(r==="blur")return M5(this,r,t);if(r==="select")return D5(this,r,t)}return t}function gi(r){r.stateProxy=Ev;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Ev),t&&(t.stateProxy=Ev)}function E0(r,e){!eC(r,e)&&!r.__highByOuter&&Ca(r,q2)}function k0(r,e){!eC(r,e)&&!r.__highByOuter&&Ca(r,K2)}function _a(r,e){r.__highByOuter|=1<<(e||0),Ca(r,q2)}function Sa(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ca(r,K2)}function Q2(r){Ca(r,Bg)}function Ng(r){Ca(r,J2)}function j2(r){Ca(r,b5)}function tC(r){Ca(r,C5)}function eC(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function rC(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=kg(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){J2(u)}),s&&t.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function jd(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&Ng(v)}}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 f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!v||e==="series"&&f)){var c=a.getViewOfSeriesModel(u);if(c.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Bg(g)}),Se(e))i(u.getData(),e);else if(et(e))for(var d=St(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),kg(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var h=a.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function tp(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(!!a){kg(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Bg(i)})}}}function L5(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(!!n){var i=di(n,e);i=(F(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=it(o);jd(a,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&jd(a,f,h,t)}}}function Vg(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(it(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function I5(r,e,t){var a=it(r),n=Vg(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&tp(a.componentMainType,a.componentIndex,t),A(i,function(s){return E0(s,e)})):(jd(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&tp(a.componentMainType,a.componentIndex,t),E0(r,e))}function P5(r,e,t){rC(t);var a=it(r),n=Vg(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?A(n,function(i){return k0(i,e)}):k0(r,e)}function R5(r,e,t){if(!!rp(e)){var a=e.dataType,n=r.getData(a),i=di(n,e);F(i)||(i=[i]),r[e.type===Ps?"toggleSelect":e.type===Is?"select":"unselect"](i,a)}}function O0(r){var e=r.getAllData();A(e,function(t){var a=t.data,n=t.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?j2(i):tC(i)})})}function E5(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();A(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 si(r,e,t){Jn(r,!0),Ca(r,gi),ep(r,e,t)}function k5(r){Jn(r,!1)}function $t(r,e,t,a){a?k5(r):si(r,e,t)}function ep(r,e,t){var a=it(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var B0=["emphasis","blur","select"],O5={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ce(r,e,t,a){t=t||"itemStyle";for(var n=0;n<B0.length;n++){var i=B0[n],o=e.getModel([i,t]),s=r.ensureState(i);s.style=a?a(o):o[O5[t]]()}}function Jn(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 Ks(r){return!!(r&&r.__highDownDispatcher)}function B5(r,e,t){var a=it(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function N5(r){var e=L0[r];return e==null&&M0<=32&&(e=L0[r]=M0++),e}function rp(r){var e=r.type;return e===Is||e===rf||e===Ps}function N0(r){var e=r.type;return e===oi||e===ef}function V5(r){var e=X2(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 Oi=Jr.CMD,z5=[[],[],[]],V0=Math.sqrt,F5=Math.atan2;function aC(r,e){if(!!e){var t=r.data,a=r.len(),n,i,o,s,l,u,f=Oi.M,h=Oi.C,v=Oi.L,c=Oi.R,d=Oi.A,p=Oi.Q;for(o=0,s=0;o<a;){switch(n=t[o++],s=o,i=0,n){case f:i=1;break;case v:i=1;break;case h:i=3;break;case p:i=2;break;case d:var g=e[4],y=e[5],m=V0(e[0]*e[0]+e[1]*e[1]),_=V0(e[2]*e[2]+e[3]*e[3]),S=F5(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case c:u[0]=t[o++],u[1]=t[o++],he(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],he(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var w=z5[l];w[0]=t[o++],w[1]=t[o++],he(w,w,e),t[s++]=w[0],t[s++]=w[1]}}r.increaseVersion()}}var kv=Math.sqrt,eu=Math.sin,ru=Math.cos,Uo=Math.PI;function z0(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function ap(r,e){return(r[0]*e[0]+r[1]*e[1])/(z0(r)*z0(e))}function F0(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(ap(r,e))}function G0(r,e,t,a,n,i,o,s,l,u,f){var h=l*(Uo/180),v=ru(h)*(r-t)/2+eu(h)*(e-a)/2,c=-1*eu(h)*(r-t)/2+ru(h)*(e-a)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=kv(d),s*=kv(d));var p=(n===i?-1:1)*kv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,y=p*-s*v/o,m=(r+t)/2+ru(h)*g-eu(h)*y,_=(e+a)/2+eu(h)*g+ru(h)*y,S=F0([1,0],[(v-g)/o,(c-y)/s]),w=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],b=F0(w,x);if(ap(w,x)<=-1&&(b=Uo),ap(w,x)>=1&&(b=0),b<0){var C=Math.round(b/Uo*1e6)/1e6;b=Uo*2+C%2*Uo}f.addData(u,m,_,o,s,S,b,h,i)}var G5=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,H5=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function W5(r){var e=new Jr;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=Jr.CMD,l=r.match(G5);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(H5)||[],d=c.length,p=0;p<d;p++)c[p]=parseFloat(c[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,C=t,T=a,D=void 0,M=void 0;switch(h){case"l":t+=c[g++],a+=c[g++],v=s.L,e.addData(v,t,a);break;case"L":t=c[g++],a=c[g++],v=s.L,e.addData(v,t,a);break;case"m":t+=c[g++],a+=c[g++],v=s.M,e.addData(v,t,a),n=t,i=a,h="l";break;case"M":t=c[g++],a=c[g++],v=s.M,e.addData(v,t,a),n=t,i=a,h="L";break;case"h":t+=c[g++],v=s.L,e.addData(v,t,a);break;case"H":t=c[g++],v=s.L,e.addData(v,t,a);break;case"v":a+=c[g++],v=s.L,e.addData(v,t,a);break;case"V":a=c[g++],v=s.L,e.addData(v,t,a);break;case"C":v=s.C,e.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),t=c[g-2],a=c[g-1];break;case"c":v=s.C,e.addData(v,c[g++]+t,c[g++]+a,c[g++]+t,c[g++]+a,c[g++]+t,c[g++]+a),t+=c[g-2],a+=c[g-1];break;case"S":y=t,m=a,D=e.len(),M=e.data,o===s.C&&(y+=t-M[D-4],m+=a-M[D-3]),v=s.C,C=c[g++],T=c[g++],t=c[g++],a=c[g++],e.addData(v,y,m,C,T,t,a);break;case"s":y=t,m=a,D=e.len(),M=e.data,o===s.C&&(y+=t-M[D-4],m+=a-M[D-3]),v=s.C,C=t+c[g++],T=a+c[g++],t+=c[g++],a+=c[g++],e.addData(v,y,m,C,T,t,a);break;case"Q":C=c[g++],T=c[g++],t=c[g++],a=c[g++],v=s.Q,e.addData(v,C,T,t,a);break;case"q":C=c[g++]+t,T=c[g++]+a,t+=c[g++],a+=c[g++],v=s.Q,e.addData(v,C,T,t,a);break;case"T":y=t,m=a,D=e.len(),M=e.data,o===s.Q&&(y+=t-M[D-4],m+=a-M[D-3]),t=c[g++],a=c[g++],v=s.Q,e.addData(v,y,m,t,a);break;case"t":y=t,m=a,D=e.len(),M=e.data,o===s.Q&&(y+=t-M[D-4],m+=a-M[D-3]),t+=c[g++],a+=c[g++],v=s.Q,e.addData(v,y,m,t,a);break;case"A":_=c[g++],S=c[g++],w=c[g++],x=c[g++],b=c[g++],C=t,T=a,t=c[g++],a=c[g++],v=s.A,G0(C,T,t,a,x,b,_,S,w,v,e);break;case"a":_=c[g++],S=c[g++],w=c[g++],x=c[g++],b=c[g++],C=t,T=a,t+=c[g++],a+=c[g++],v=s.A,G0(C,T,t,a,x,b,_,S,w,v,e);break}}(h==="z"||h==="Z")&&(v=s.Z,e.addData(v),t=n,a=i),o=v}return e.toStatic(),e}var nC=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(mt);function iC(r){return r.setData!=null}function oC(r,e){var t=W5(r),a=V({},e);return a.buildPath=function(n){if(iC(n)){n.setData(t.data);var i=n.getContext();i&&n.rebuildPath(i,1)}else{var i=n;t.rebuildPath(i,1)}},a.applyTransform=function(n){aC(t,n),this.dirtyShape()},a}function sC(r,e){return new nC(oC(r,e))}function $5(r,e){var t=oC(r,e),a=function(n){k(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i}(nC);return a}function U5(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 mt(e);return o.createPathProxy(),o.buildPath=function(s){if(iC(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function zg(r,e){e=e||{};var t=new mt;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?aC(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 Y5=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),lC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Y5},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}(mt);lC.prototype.type="circle";var Qr=lC,Z5=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),uC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Z5},e.prototype.buildPath=function(t,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,f=l*n;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),t.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),t.closePath()},e}(mt);uC.prototype.type="ellipse";var Fg=uC,fC=Math.PI,Ov=fC*2,Dn=Math.sin,Bi=Math.cos,X5=Math.acos,ye=Math.atan2,H0=Math.abs,Rs=Math.sqrt,gs=Math.max,Rr=Math.min,gr=1e-4;function q5(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,h=s-i,v=h*l-f*u;if(!(v*v<gr))return v=(f*(e-i)-h*(r-n))/v,[r+v*l,e+v*u]}function au(r,e,t,a,n,i,o){var s=r-t,l=e-a,u=(o?i:-i)/Rs(s*s+l*l),f=u*l,h=-u*s,v=r+f,c=e+h,d=t+f,p=a+h,g=(v+d)/2,y=(c+p)/2,m=d-v,_=p-c,S=m*m+_*_,w=n-i,x=v*p-d*c,b=(_<0?-1:1)*Rs(gs(0,w*w*S-x*x)),C=(x*_-m*b)/S,T=(-x*m-_*b)/S,D=(x*_+m*b)/S,M=(-x*m+_*b)/S,L=C-g,I=T-y,P=D-g,R=M-y;return L*L+I*I>P*P+R*R&&(C=D,T=M),{cx:C,cy:T,x0:-f,y0:-h,x1:C*(n/w-1),y1:T*(n/w-1)}}function K5(r){var e;if(F(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 J5(r,e){var t,a=gs(e.r,0),n=gs(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 f=e.cx,h=e.cy,v=!!e.clockwise,c=H0(u-l),d=c>Ov&&c%Ov;if(d>gr&&(c=d),!(a>gr))r.moveTo(f,h);else if(c>Ov-gr)r.moveTo(f+a*Bi(l),h+a*Dn(l)),r.arc(f,h,a,l,u,!v),n>gr&&(r.moveTo(f+n*Bi(u),h+n*Dn(u)),r.arc(f,h,n,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,C=void 0,T=void 0,D=void 0,M=void 0,L=void 0,I=void 0,P=void 0,R=a*Bi(l),E=a*Dn(l),B=n*Bi(u),O=n*Dn(u),z=c>gr;if(z){var H=e.cornerRadius;H&&(t=K5(H),p=t[0],g=t[1],y=t[2],m=t[3]);var $=H0(a-n)/2;if(_=Rr($,y),S=Rr($,m),w=Rr($,p),x=Rr($,g),T=b=gs(_,S),D=C=gs(w,x),(b>gr||C>gr)&&(M=a*Bi(u),L=a*Dn(u),I=n*Bi(l),P=n*Dn(l),c<fC)){var X=q5(R,E,I,P,M,L,B,O);if(X){var Q=R-X[0],j=E-X[1],pt=M-X[0],xt=L-X[1],gt=1/Dn(X5((Q*pt+j*xt)/(Rs(Q*Q+j*j)*Rs(pt*pt+xt*xt)))/2),rt=Rs(X[0]*X[0]+X[1]*X[1]);T=Rr(b,(a-rt)/(gt+1)),D=Rr(C,(n-rt)/(gt-1))}}}if(!z)r.moveTo(f+R,h+E);else if(T>gr){var yt=Rr(y,T),st=Rr(m,T),K=au(I,P,R,E,a,yt,v),lt=au(M,L,B,O,a,st,v);r.moveTo(f+K.cx+K.x0,h+K.cy+K.y0),T<b&&yt===st?r.arc(f+K.cx,h+K.cy,T,ye(K.y0,K.x0),ye(lt.y0,lt.x0),!v):(yt>0&&r.arc(f+K.cx,h+K.cy,yt,ye(K.y0,K.x0),ye(K.y1,K.x1),!v),r.arc(f,h,a,ye(K.cy+K.y1,K.cx+K.x1),ye(lt.cy+lt.y1,lt.cx+lt.x1),!v),st>0&&r.arc(f+lt.cx,h+lt.cy,st,ye(lt.y1,lt.x1),ye(lt.y0,lt.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);if(!(n>gr)||!z)r.lineTo(f+B,h+O);else if(D>gr){var yt=Rr(p,D),st=Rr(g,D),K=au(B,O,M,L,n,-st,v),lt=au(R,E,I,P,n,-yt,v);r.lineTo(f+K.cx+K.x0,h+K.cy+K.y0),D<C&&yt===st?r.arc(f+K.cx,h+K.cy,D,ye(K.y0,K.x0),ye(lt.y0,lt.x0),!v):(st>0&&r.arc(f+K.cx,h+K.cy,st,ye(K.y0,K.x0),ye(K.y1,K.x1),!v),r.arc(f,h,n,ye(K.cy+K.y1,K.cx+K.x1),ye(lt.cy+lt.y1,lt.cx+lt.x1),v),yt>0&&r.arc(f+lt.cx,h+lt.cy,yt,ye(lt.y1,lt.x1),ye(lt.y0,lt.x0),!v))}else r.lineTo(f+B,h+O),r.arc(f,h,n,u,l,v)}r.closePath()}}}var Q5=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}(),hC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Q5},e.prototype.buildPath=function(t,a){J5(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(mt);hC.prototype.type="sector";var Ve=hC,j5=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),vC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new j5},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}(mt);vC.prototype.type="ring";var Ch=vC;function t3(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,f,h;if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)Ha(f,f,r[v]),Wa(h,h,r[v]);Ha(f,f,a[0]),Wa(h,h,a[1])}for(var v=0,c=r.length;v<c;v++){var d=r[v];if(t)l=r[v?v-1:c-1],u=r[(v+1)%c];else if(v===0||v===c-1){n.push(fa(r[v]));continue}else l=r[v-1],u=r[v+1];qn(i,u,l),Zu(i,i,e);var p=Ld(d,l),g=Ld(d,u),y=p+g;y!==0&&(p/=y,g/=y),Zu(o,i,-p),Zu(s,i,g);var m=km([],d,o),_=km([],d,s);a&&(Wa(m,m,f),Ha(m,m,h),Wa(_,_,f),Ha(_,_,h)),n.push(m),n.push(_)}return t&&n.push(n.shift()),n}function cC(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=t3(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],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var e3=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),dC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new e3},e.prototype.buildPath=function(t,a){cC(t,a,!0)},e}(mt);dC.prototype.type="polygon";var ze=dC,r3=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),pC=function(r){k(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 r3},e.prototype.buildPath=function(t,a){cC(t,a,!1)},e}(mt);pC.prototype.type="polyline";var Fe=pC,a3={},n3=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),gC=function(r){k(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 n3},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=H2(a3,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}(mt);gC.prototype.type="line";var ue=gC,Pe=[],i3=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 W0(r,e,t){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(t?Ym:ae)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?Ym:ae)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Od:se)(r.x1,r.cpx1,r.x2,e),(t?Od:se)(r.y1,r.cpy1,r.y2,e)]}var yC=function(r){k(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 i3},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,f=a.cpx2,h=a.cpy2,v=a.percent;v!==0&&(t.moveTo(n,i),f==null||h==null?(v<1&&($s(n,l,o,v,Pe),l=Pe[1],o=Pe[2],$s(i,u,s,v,Pe),u=Pe[1],s=Pe[2]),t.quadraticCurveTo(l,u,o,s)):(v<1&&(en(n,l,f,o,v,Pe),l=Pe[1],f=Pe[2],o=Pe[3],en(i,u,h,s,v,Pe),u=Pe[1],h=Pe[2],s=Pe[3]),t.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(t){return W0(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=W0(this.shape,t,!0);return wo(a,a)},e}(mt);yC.prototype.type="bezier-curve";var Th=yC,o3=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}(),mC=function(r){k(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 o3},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,f=Math.cos(s),h=Math.sin(s);t.moveTo(f*o+n,h*o+i),t.arc(n,i,o,s,l,!u)},e}(mt);mC.prototype.type="arc";var Gg=mC,s3=function(r){k(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),mt.prototype.getBoundingRect.call(this)},e}(mt),Hg=s3,l3=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}(),_C=l3,u3=function(r){k(e,r);function e(t,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=t==null?0:t,l.y=a==null?0:a,l.x2=n==null?1:n,l.y2=i==null?0:i,l.type="linear",l.global=s||!1,l}return e}(_C),Cl=u3,f3=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,i)||this;return s.x=t==null?.5:t,s.y=a==null?.5:a,s.r=n==null?.5:n,s.type="radial",s.global=o||!1,s}return e}(_C),SC=f3,Mn=[0,0],Ln=[0,0],nu=new ut,iu=new ut,h3=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new ut;for(var a=0;a<2;a++)this._axes[a]=new ut;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);ut.sub(n[0],a[1],a[0]),ut.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){var a=!0,n=!t;return nu.set(1/0,1/0),iu.set(0,0),!this._intersectCheckOneSide(this,e,nu,iu,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,nu,iu,n,-1)&&(a=!1,n)||n||ut.copy(t,a?nu:iu),a},r.prototype._intersectCheckOneSide=function(e,t,a,n,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Mn),this._getProjMinMaxOnAxis(l,t._corners,Ln),Mn[1]<Ln[0]||Mn[0]>Ln[1]){if(s=!1,i)return s;var f=Math.abs(Ln[0]-Mn[1]),h=Math.abs(Mn[0]-Ln[1]);Math.min(f,h)>n.len()&&(f<h?ut.scale(n,u,-f*o):ut.scale(n,u,h*o))}else if(a){var f=Math.abs(Ln[0]-Mn[1]),h=Math.abs(Mn[0]-Ln[1]);Math.min(f,h)<a.len()&&(f<h?ut.scale(a,u,f*o):ut.scale(a,u,-h*o))}}return s},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 f=t[u].dot(n)+i[e];s=Math.min(f,s),l=Math.max(f,l)}a[0]=s,a[1]=l},r}(),Df=h3,v3=[],c3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,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.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 vt(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(v3)),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}(fr),d3=c3,xC=Ct();function Ao(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,f=void 0,h=void 0;a?(u=ft(a.duration,200),f=ft(a.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(h=i.delay)),J(h)&&(h=h(t,n)),J(u)&&(u=u(t));var v={duration:u||0,delay:h,easing:f};return v}else return null}function Wg(r,e,t,a,n,i,o){var s=!1,l;J(n)?(o=i,i=n,n=null):et(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 f=Ao(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope: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 Lt(r,e,t,a,n,i){Wg("update",r,e,t,a,n,i)}function Ft(r,e,t,a,n,i){Wg("enter",r,e,t,a,n,i)}function so(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 rn(r,e,t,a,n,i){so(r)||Wg("leave",r,e,t,a,n,i)}function $0(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),rn(r,{style:{opacity:0}},e,t,a)}function Js(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||$0(n,e,t,a)}):$0(r,e,t,a)}function Ar(r){xC(r).oldStyle=r.style}function p3(r){return xC(r).oldStyle}var Mf=Math.max,Lf=Math.min,np={};function g3(r){return mt.extend(r)}var y3=$5;function m3(r,e){return y3(r,e)}function Dr(r,e){np[r]=e}function $g(r){if(np.hasOwnProperty(r))return np[r]}function Ah(r,e,t,a){var n=sC(r,e);return t&&(a==="center"&&(t=bC(t,n.getBoundingRect())),CC(n,t)),n}function wC(r,e,t){var a=new pe({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(bC(e,i))}}});return a}function bC(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 nr=U5;function CC(r,e){if(!!r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function ho(r,e){return H2(r,r,{lineWidth:e}),r}function _3(r){return W2(r.shape,r.shape,r.style),r}var af=Kn;function li(r,e){for(var t=ph([]);r&&r!==e;)ha(t,r.getLocalTransform(),t),r=r.parent;return t}function Cr(r,e,t){return e&&!Se(e)&&(e=la.getLocalTransform(e)),t&&(e=bo([],e)),he([],r,e)}function Dh(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=Cr(i,e,t),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function U0(r){return!r.isGroup}function S3(r){return r.shape!=null}function Tl(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){U0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return S3(o)&&(s.shape=V({},o.shape)),s}var i=a(r);e.traverse(function(o){if(U0(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Lt(o,l,t,it(o).dataIndex)}}})}function TC(r,e){return G(r,function(t){var a=t[0];a=Mf(a,e.x),a=Lf(a,e.x+e.width);var n=t[1];return n=Mf(n,e.y),n=Lf(n,e.y+e.height),[a,n]})}function x3(r,e){var t=Mf(r.x,e.x),a=Lf(r.x+r.width,e.x+e.width),n=Mf(r.y,e.y),i=Lf(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 Al(r,e,t){var a=V({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),tt(n,t),new pe(a)):Ah(r.replace("path://",""),a,t,"center")}function ys(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(AC(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function AC(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,h=s-i,v=Bv(f,h,l,u);if(w3(v))return!1;var c=r-n,d=e-i,p=Bv(c,d,l,u)/v;if(p<0||p>1)return!1;var g=Bv(c,d,f,h)/v;return!(g<0||g>1)}function Bv(r,e,t,a){return r*a-t*e}function w3(r){return r<=1e-6&&r>=-1e-6}function Do(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=U(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&&A(St(l),function(f){Z(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=it(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:tt({content:a,formatterParams:s},n)}}function Y0(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function vn(r,e){if(r)if(F(r))for(var t=0;t<r.length;t++)Y0(r[t],e);else Y0(r,e)}Dr("circle",Qr);Dr("ellipse",Fg);Dr("sector",Ve);Dr("ring",Ch);Dr("polygon",ze);Dr("polyline",Fe);Dr("rect",bt);Dr("line",ue);Dr("bezierCurve",Th);Dr("arc",Gg);var Dl=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Lt,initProps:Ft,removeElement:rn,removeElementWithFadeOut:Js,isElementRemoved:so,extendShape:g3,extendPath:m3,registerShape:Dr,getShapeClass:$g,makePath:Ah,makeImage:wC,mergePath:nr,resizePath:CC,subPixelOptimizeLine:ho,subPixelOptimizeRect:_3,subPixelOptimize:af,getTransform:li,applyTransform:Cr,transformDirection:Dh,groupTransition:Tl,clipPointsByRect:TC,clipRectByRect:x3,createIcon:Al,linePolygonIntersect:ys,lineLineIntersect:AC,setTooltipConfig:Do,traverseElements:vn,Group:nt,Image:pe,Text:Dt,Circle:Qr,Ellipse:Fg,Sector:Ve,Ring:Ch,Polygon:ze,Polyline:Fe,Rect:bt,Line:ue,BezierCurve:Th,Arc:Gg,IncrementalDisplayable:d3,CompoundPath:Hg,LinearGradient:Cl,RadialGradient:SC,BoundingRect:vt,OrientedBoundingRect:Df,Point:ut,Path:mt},Symbol.toStringTag,{value:"Module"})),Mh={};function DC(r,e){for(var t=0;t<Le.length;t++){var a=Le[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 ip(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=J(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<Le.length;u++){var f=Le[u],h=e[f];l[f]=ft(a?a.getFormattedLabel(n,f,null,i,h&&h.get("formatter")):null,s)}return l}function de(r,e,t,a){t=t||Mh;for(var n=r instanceof Dt,i=!1,o=0;o<qs.length;o++){var s=e[qs[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new Dt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=ip(t,e),f=e.normal,h=!!f.getShallow("show"),v=Nt(f,a&&a.normal,t,!1,!n);v.text=u.normal,n||r.setTextConfig(If(f,t,!1));for(var o=0;o<Le.length;o++){var c=Le[o],s=e[c];if(s){var d=l.ensureState(c),p=!!ft(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=Nt(s,a&&a[c],t,!0,!n),d.style.text=u[c],!n){var g=r.ensureState(c);g.textConfig=If(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),t.enableTextSetter&&(Mo(l).setLabelText=function(y){var m=ip(t,e,y);DC(l,m)})}else l&&(l.ignore=!0);r.dirty()}function ie(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<Le.length;a++){var n=Le[a];t[n]=r.getModel([n,e])}return t}function Nt(r,e,t,a,n){var i={};return b3(i,r,t,a,n),e&&V(i,e),i}function If(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=ft(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",a}function b3(r,e,t,a,n){t=t||Mh;var i=e.ecModel,o=i&&i.option.textStyle,s=C3(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);K0(l[u]={},f,o,t,a,n,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var v=e.get("minMargin");v!=null&&(r.margin=v),K0(r,e,o,t,a,n,!0,!1)}function C3(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Mh).rich;if(t){e=e||{};for(var a=St(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var Z0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],X0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],q0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function K0(r,e,t,a,n,i,o,s){t=!n&&t||Mh;var l=a&&a.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),h=ft(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),i||(u=u||t.color,f=f||t.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var v=ft(e.getShallow("textBorderWidth"),t.textBorderWidth);v!=null&&(r.lineWidth=v);var c=ft(e.getShallow("textBorderType"),t.textBorderType);c!=null&&(r.lineDash=c);var d=ft(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&h==null&&!s&&(h=a&&a.defaultOpacity),h!=null&&(r.opacity=h),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<Z0.length;p++){var g=Z0[p],y=ft(e.getShallow(g),t[g]);y!=null&&(r[g]=y)}for(var p=0;p<X0.length;p++){var g=X0[p],y=e.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!a.disableBox){for(var p=0;p<q0.length;p++){var g=q0[p],y=e.getShallow(g);y!=null&&(r[g]=y)}var _=e.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function MC(r,e){var t=e&&e.getModel("textStyle");return Sr([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 Mo=Ct();function LC(r,e,t,a){if(!!r){var n=Mo(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 IC(r,e,t,a,n){var i=Mo(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=ft(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var h=P2(t,i.precision,s,l,f);i.interpolatedValue=f===1?null:h;var v=ip({labelDataIndex:e,labelFetcher:n,defaultText:o?o(h):h+""},i.statesModels,h);DC(r,v)}r.percent=0,(i.prevValue==null?Ft:Lt)(r,{percent:1},a,e,null,u)}var T3=["textStyle","color"],Nv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Vv=new Dt,A3=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(T3):null)},r.prototype.getFont=function(){return MC({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<Nv.length;a++)t[Nv[a]]=this.getShallow(Nv[a]);return Vv.useStyle(t),Vv.update(),Vv.getBoundingRect()},r}(),D3=A3,PC=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],M3=pi(PC),L3=function(){function r(){}return r.prototype.getLineStyle=function(e){return M3(this,e)},r}(),RC=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],I3=pi(RC),P3=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return I3(this,e,t)},r}(),Ci=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){ht(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(at(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(!At.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}();Rg(Ci);Pk(Ci);te(Ci,L3);te(Ci,P3);te(Ci,Bk);te(Ci,D3);var Vt=Ci,R3=Math.round(Math.random()*10);function Lo(r){return[r||"",R3++].join("_")}function E3(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=Hr(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=Hr(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function k3(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,h=u.noEntryList,v={};for(A(i,function(m){v[m]=!0});h.length;){var c=h.pop(),d=f[c],p=!!v[c];p&&(s.call(l,c,d.originalDeps.slice()),delete v[c]),A(d.successor,p?y:g)}A(v,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){v[m]=!0,g(m)}};function t(i){var o={},s=[];return A(i,function(l){var u=a(o,l),f=u.originalDeps=e(l),h=n(f,i);u.entryCount=h.length,u.entryCount===0&&s.push(l),A(h,function(v){dt(u.predecessor,v)<0&&u.predecessor.push(v);var c=a(o,v);dt(c.successor,v)<0&&c.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 A(i,function(l){dt(o,l)>=0&&s.push(l)}),s}}function cn(r,e){return ht(ht({},r,!0),e,!0)}var O3={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"}},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:". "}}}},B3={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},Pf="ZH",Ug="EN",Qs=Ug,nf={},Yg={},EC=At.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Pf)>-1?Pf:Qs}():Qs;function kC(r,e){r=r.toUpperCase(),Yg[r]=new Vt(e),nf[r]=e}function N3(r){if(U(r)){var e=nf[r.toUpperCase()]||{};return r===Pf||r===Ug?at(e):ht(at(e),at(nf[Qs]),!1)}else return ht(at(r),at(nf[Qs]),!1)}function op(r){return Yg[r]}function V3(){return Yg[Qs]}kC(Ug,O3);kC(Pf,B3);var Zg=1e3,Xg=Zg*60,Es=Xg*60,ir=Es*24,J0=ir*365,ms={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},ou="{yyyy}-{MM}-{dd}",Q0={year:"{yyyy}",month:"{yyyy}-{MM}",day:ou,hour:ou+" "+ms.hour,minute:ou+" "+ms.minute,second:ou+" "+ms.second,millisecond:ms.none},zv=["year","month","day","hour","minute","second","millisecond"],OC=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ia(r,e){return r+="","0000".substr(0,e-r.length)+r}function lo(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 z3(r){return r===lo(r)}function F3(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Lh(r,e,t,a){var n=Kr(r),i=n[qg(t)](),o=n[uo(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Ih(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[js(t)](),h=(f-1)%12+1,v=n[Ph(t)](),c=n[Rh(t)](),d=n[Eh(t)](),p=a instanceof Vt?a:op(a||EC)||V3(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ia(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Ia(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ia(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ia(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ia(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ia(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ia(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Ia(d,3)).replace(/{S}/g,d+"")}function G3(r,e,t,a,n){var i=null;if(U(t))i=t;else if(J(t))i=t(r.value,e,{level:r.level});else{var o=V({},ms);if(r.level>0)for(var s=0;s<zv.length;++s)o[zv[s]]="{primary|"+o[zv[s]]+"}";var l=t?t.inherit===!1?t:tt(t,o):o,u=BC(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var f=OC.indexOf(u),s=f-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(F(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return Lh(new Date(r.value),i,n,a)}function BC(r,e){var t=Kr(r),a=t[uo(e)]()+1,n=t[Ih(e)](),i=t[js(e)](),o=t[Ph(e)](),s=t[Rh(e)](),l=t[Eh(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&n===1,d=c&&a===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function j0(r,e,t){var a=Mt(r)?Kr(r):r;switch(e=e||BC(r,t),e){case"year":return a[qg(t)]();case"half-year":return a[uo(t)]()>=6?1:0;case"quarter":return Math.floor((a[uo(t)]()+1)/4);case"month":return a[uo(t)]();case"day":return a[Ih(t)]();case"half-day":return a[js(t)]()/24;case"hour":return a[js(t)]();case"minute":return a[Ph(t)]();case"second":return a[Rh(t)]();case"millisecond":return a[Eh(t)]()}}function qg(r){return r?"getUTCFullYear":"getFullYear"}function uo(r){return r?"getUTCMonth":"getMonth"}function Ih(r){return r?"getUTCDate":"getDate"}function js(r){return r?"getUTCHours":"getHours"}function Ph(r){return r?"getUTCMinutes":"getMinutes"}function Rh(r){return r?"getUTCSeconds":"getSeconds"}function Eh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function H3(r){return r?"setUTCFullYear":"setFullYear"}function NC(r){return r?"setUTCMonth":"setMonth"}function VC(r){return r?"setUTCDate":"setDate"}function zC(r){return r?"setUTCHours":"setHours"}function FC(r){return r?"setUTCMinutes":"setMinutes"}function GC(r){return r?"setUTCSeconds":"setSeconds"}function HC(r){return r?"setUTCMilliseconds":"setMilliseconds"}function WC(r){if(!b2(r))return U(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function $C(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 Io=xg;function sp(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Sr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Kr(r):r;if(isNaN(+l)){if(s)return"-"}else return Lh(l,a,t)}if(e==="ordinal")return Ad(r)?n(r):Mt(r)&&i(r)?r+"":"-";var u=ma(r);return i(u)?WC(u):Ad(r)?n(r):typeof r=="boolean"?r+"":"-"}var t1=["a","b","c","d","e","f","g"],Fv=function(r,e){return"{"+r+(e==null?"":e)+"}"};function UC(r,e,t){F(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=t1[i];r=r.replace(Fv(o),Fv(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(Fv(t1[l],s),t?ke(u):u)}return r}function W3(r,e,t){return A(e,function(a,n){r=r.replace("{"+n+"}",t?ke(a):a)}),r}function $3(r,e){var t=U(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:'+ke(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ke(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 yi(r,e){return e=e||"transparent",U(r)?r:et(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Rf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var of=A,YC=["left","right","top","bottom","width","height"],Qn=[["width","left","right"],["height","top","bottom"]];function Kg(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 f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=i+p,c>a||l.newline?(i=0,c=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=c+t:o=d+t)})}var ui=Kg;ot(Kg,"vertical");ot(Kg,"horizontal");function U3(r,e,t){var a=e.width,n=e.height,i=W(r.left,a),o=W(r.top,n),s=W(r.right,a),l=W(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Io(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function re(r,e,t){t=Io(t||0);var a=e.width,n=e.height,i=W(r.left,a),o=W(r.top,n),s=W(r.right,a),l=W(r.bottom,n),u=W(r.width,a),f=W(r.height,n),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new vt(i+t[3],o+t[0],u,f);return d.margin=t,d}function kh(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 vt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=re(tt({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function Y3(r,e){return r[Qn[e][0]]!=null||r[Qn[e][1]]!=null&&r[Qn[e][2]]!=null}function tl(r){var e=r.layoutMode||r.constructor.layoutMode;return et(e)?e:e?{type:e}:null}function an(r,e,t){var a=t&&t.ignoreSize;!F(a)&&(a=[a,a]);var n=o(Qn[0],0),i=o(Qn[1],1);u(Qn[0],r,n),u(Qn[1],r,i);function o(f,h){var v={},c=0,d={},p=0,g=2;if(of(f,function(_){d[_]=r[_]}),of(f,function(_){s(e,_)&&(v[_]=d[_]=e[_]),l(v,_)&&c++,l(d,_)&&p++}),a[h])return l(e,f[1])?d[f[2]]=null:l(e,f[2])&&(d[f[1]]=null),d;if(p===g||!c)return d;if(c>=g)return v;for(var y=0;y<f.length;y++){var m=f[y];if(!s(v,m)&&s(r,m)){v[m]=r[m];break}}return v}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,v){of(f,function(c){h[c]=v[c]})}}function Po(r){return ZC({},r)}function ZC(r,e){return e&&r&&of(YC,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var Z3=Ct(),Ro=function(r){k(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=Lo("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=tl(this),i=n?Po(t):{},o=a.getTheme();ht(t,o.get(this.mainType)),ht(t,this.getDefaultOption()),n&&an(t,i,n)},e.prototype.mergeOption=function(t,a){ht(this.option,t,!0);var n=tl(this);n&&an(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Mk(t))return t.defaultOption;var a=Z3(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=ht(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return wl(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},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}(Vt);E2(Ro,Vt);mh(Ro);E3(Ro);k3(Ro,X3);function X3(r){var e=[];return A(Ro.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return Hr(t).main}),r!=="dataset"&&dt(e,"dataset")<=0&&e.unshift("dataset"),e}var Tt=Ro,XC="";typeof navigator!="undefined"&&(XC=navigator.platform||"");var Ni="rgba(0, 0, 0, 0.2)",q3={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ni,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ni,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ni,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ni,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ni,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ni,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:XC.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},qC=q(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),vr="original",xe="arrayRows",cr="objectRows",jr="keyedColumns",Ja="typedArray",KC="unknown",Yr="column",Eo="row",fe={Must:1,Might:2,Not:3},JC=Ct();function K3(r){JC(r).datasetMap=q()}function QC(r,e,t){var a={},n=Qg(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=JC(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),A(r,function(p,g){var y=et(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(i,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}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 Jg(r,e,t){var a={},n=Qg(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===cr||i===jr)&&A(o,function(f,h){(et(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},v=[],c=0,d=Math.min(5,t);c<d;c++){var p=tT(e.data,i,e.seriesLayoutBy,o,e.startIndex,c);v.push(p);var g=p===fe.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&v[f.n]===fe.Not)&&(f.n=c),y(f)&&v[f.n]!==fe.Not)return f;g||(p===fe.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){a.value=[l.v];var u=s!=null?s:l.n;a.itemName=[u],a.seriesName=[u]}return a}function Qg(r){var e=r.get("data",!0);if(!e)return wl(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Qt).models[0]}function J3(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:wl(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Qt).models}function jC(r,e){return tT(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function tT(r,e,t,a,n,i){var o,s=5;if(Ue(r))return fe.Not;var l,u;if(a){var f=a[i];et(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(u!=null)return u==="ordinal"?fe.Must:fe.Not;if(e===xe){var h=r;if(t===Eo){for(var v=h[i],c=0;c<(v||[]).length&&c<s;c++)if((o=S(v[n+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[n+c];if(d&&(o=S(d[i]))!=null)return o}}else if(e===cr){var p=r;if(!l)return fe.Not;for(var c=0;c<p.length&&c<s;c++){var g=p[c];if(g&&(o=S(g[l]))!=null)return o}}else if(e===jr){var y=r;if(!l)return fe.Not;var v=y[l];if(!v||Ue(v))return fe.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(e===vr)for(var m=r,c=0;c<m.length&&c<s;c++){var g=m[c],_=Co(g);if(!F(_))return fe.Not;if((o=S(_[i]))!=null)return o}function S(w){var x=U(w);if(w!=null&&isFinite(w)&&w!=="")return x?fe.Might:fe.Not;if(x&&w!=="-")return fe.Must}return fe.Not}var lp=q();function Q3(r,e){Me(lp.get(r)==null&&e),lp.set(r,e)}function j3(r,e,t){var a=lp.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var e1=Ct(),tO=Ct(),jg=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=kt(this.get("color",!0)),i=this.get("colorLayer",!0);return eT(this,e1,n,i,e,t,a)},r.prototype.clearColorPalette=function(){rO(this,e1)},r}();function up(r,e,t,a){var n=kt(r.get(["aria","decal","decals"]));return eT(r,tO,n,null,e,t,a)}function eO(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 eT(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 f=o==null||!a?t:eO(a,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function rO(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var su,Yo,r1,a1="\0_ec_inner",aO=1,rT=function(r){k(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 Vt(i),this._locale=new Vt(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=o1(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,o1(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?r1(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&&A(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=q(),u=a&&a.replaceMergeMainTypeMap;K3(this),A(t,function(h,v){h!=null&&(Tt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?at(h):ht(n[v],h,!0))}),u&&u.each(function(h,v){Tt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Tt.topologicalTravel(s,Tt.getAllClassMainTypes(),f,this);function f(h){var v=j3(this,h,kt(t[h])),c=i.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=M2(c,v,d);_k(p,h,Tt),n[h]=null,i.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;A(p,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=h==="series",T=Tt.getClass(h,S.keyInfo.subType,!C);if(!T)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===T)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var D=V({componentIndex:w},S.keyInfo);x=new T(b,this,this,D),V(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,i.set(h,y),o.set(h,m),h==="series"&&su(this)}this._seriesIndices||su(this)},e.prototype.getOption=function(){var t=at(this.option);return A(t,function(a,n){if(Tt.hasClass(n)){for(var i=kt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Zs(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[a1],t},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=[],A(kt(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=n1("id",i,s):o!=null?l=n1("name",o,s):l=Et(s,function(u){return!!u}),i1(l,t)},e.prototype.findComponents=function(t){var a=t.query,n=t.mainType,i=s(a),o=i?this.queryComponents(i):Et(this._componentsMap.get(n),function(u){return!!u});return l(i1(o,t));function s(u){var f=n+"Index",h=n+"Id",v=n+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:n,index:u[f],id:u[h],name:u[v]}:null}function l(u){return t.filter?Et(u,t.filter):u}},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(J(t)){var o=a,s=t;i.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=U(t)?i.get(t):et(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=ee(t,null);return Et(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 Et(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return Et(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){Yo(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){A(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){Yo(this),A(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 A(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return Yo(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){Yo(this);var n=[];A(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=q(n)},e.prototype.restoreData=function(t){su(this);var a=this._componentsMap,n=[];a.each(function(i,o){Tt.hasClass(o)&&n.push(o)}),Tt.topologicalTravel(n,Tt.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&(i!=="series"||!nO(o,t))&&o.restoreData()})})},e.internalField=function(){su=function(t){var a=t._seriesIndices=[];A(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=q(a)},Yo=function(t){},r1=function(t,a){t.option={},t.option[a1]=aO,t._componentsMap=q({series:[]}),t._componentsCount=q();var n=a.aria;et(n)&&n.enabled==null&&(n.enabled=!0),iO(a,t._theme.option),ht(a,q3,!1),t._mergeOption(a,null)}}(),e}(Vt);function nO(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 iO(r,e){var t=r.color&&!r.colorLayer;A(e,function(a,n){n==="colorLayer"&&t||Tt.hasClass(n)||(typeof a=="object"?r[n]=r[n]?ht(r[n],a,!1):at(a):r[n]==null&&(r[n]=a))})}function n1(r,e,t){if(F(e)){var a=q();return A(e,function(i){if(i!=null){var o=ee(i,null);o!=null&&a.set(i,!0)}}),Et(t,function(i){return i&&a.get(i[r])})}else{var n=ee(e,null);return Et(t,function(i){return i&&n!=null&&i[r]===n})}}function i1(r,e){return e.hasOwnProperty("subType")?Et(r,function(t){return t&&t.subType===e.subType}):r}function o1(r){var e=q();return r&&A(kt(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}te(rT,jg);var aT=rT,oO=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],sO=function(){function r(e){A(oO,function(t){this[t]=Y(e[t],e)},this)}return r}(),nT=sO,Gv={},lO=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];A(Gv,function(n,i){var o=n.create(e,t);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(e,t){A(this._coordinateSystems,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){Gv[e]=t},r.get=function(e){return Gv[e]},r}(),Ml=lO,uO=/^(min|max)?(.+)$/,fO=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(A(kt(e.series),function(o){o&&o.data&&Ue(o.data)&&pf(o.data)}),A(kt(e.dataset),function(o){o&&o.source&&Ue(o.source)&&pf(o.source)})),e=at(e);var n=this._optionBackup,i=hO(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=[],at(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=at(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)re r),_s(r),Jt(r,"label"),Jt(r,"upperLabel"),Jt(r,"edgeLabel"),r.emphasis&&(Jt(r.emphasis,"label"),Jt(r.emphasis,"upperLabel"),Jt(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Hv(e),Qe(e));var t=r.markLine;t&&(Hv(t),Qe(t));var a=r.markArea;a&&Qe(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Ue(i))for(var o=0;o<i.length;o++)Qe(i[o]);A(r.categories,function(u){_s(u)})}if(n&&!Ue(n))for(var o=0;o<n.length;o++)Qe(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Qe(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)F(l[o])?(Qe(l[o][0]),Qe(l[o][1])):Qe(l[o]);r.type==="gauge"?(Jt(r,"axisLabel"),Jt(r,"title"),Jt(r,"detail")):r.type==="treemap"?(_e(r.breadcrumb,"itemStyle"),A(r.levels,function(u){_s(u)})):r.type==="tree"&&_s(r.leaves)}}function na(r){return F(r)?r:r?[r]:[]}function l1(r){return(F(r)?r[0]:r)||{}}function yO(r,e){dr(na(r.series),function(a){el(a)&&gO(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),dr(t,function(a){dr(na(r[a]),function(n){n&&(Jt(n,"axisLabel"),Jt(n.axisPointer,"label"))})}),dr(na(r.parallel),function(a){var n=a&&a.parallelAxisDefault;Jt(n,"axisLabel"),Jt(n&&n.axisPointer,"label")}),dr(na(r.calendar),function(a){_e(a,"itemStyle"),Jt(a,"dayLabel"),Jt(a,"monthLabel"),Jt(a,"yearLabel")}),dr(na(r.radar),function(a){Jt(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),dr(na(r.geo),function(a){el(a)&&(Qe(a),dr(na(a.regions),function(n){Qe(n)}))}),dr(na(r.timeline),function(a){Qe(a),_e(a,"label"),_e(a,"itemStyle"),_e(a,"controlStyle",!0);var n=a.data;F(n)&&A(n,function(i){et(i)&&(_e(i,"label"),_e(i,"itemStyle"))})}),dr(na(r.toolbox),function(a){_e(a,"iconStyle"),dr(a.feature,function(n){_e(n,"iconStyle")})}),Jt(l1(r.axisPointer),"label"),Jt(l1(r.tooltip).axisPointer,"label")}function mO(r,e){for(var t=e.split(","),a=r,n=0;n<t.length (r,e,t){var a=t[0].name,n=r[a];return n?n.length:0},Pn[vr]=y1,Pn);function hT(r,e){var t=LO[ry(r,e)];return t}var $v=function(r,e,t){return r[e]},IO=(Rn={},Rn[xe]=$v,Rn[cr]=function(r,e,t){return r[t]},Rn[jr]=$v,Rn[vr]=function(r,e,t){var a=Co(r);return a instanceof Array?a[e]:a},Rn[Ja]=$v,Rn);function vT(r){var e=IO[r];return e}function ry(r,e){return r===xe?r+"_"+e:r}function vo(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 vT(i)(a,o,s)}else{var l=a;return i===vr&&(l=Co(a)),l}}}}var PO=/\{@(.+?)\}/g,ay=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"],f=l&&l.stroke,h=this.mainType,v=h==="series",c=a.userOutput&&a.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.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&&F(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(J(i))return l.status=t,l.dimensionIndex=n,i(l);if(U(i)){var f=UC(i,l);return f.replace(PO,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var p=vo(s,e,d);if(o&&F(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return vo(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function m1(r){var e,t;return et(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function ks(r){return new RO(r)}var RO=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=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||c<d)){var p=this._progress;if(F(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],c,d,l,u);else this._doProgress(p,c,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}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){_1.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:_1.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),F(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){(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}(),_1=function(){var r,e,t,a,n,i={reset:function(l,u,f,h){e=l,r=u,t=f,a=h,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 Qa(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Mt(r)&&r!=null&&r!=="-"&&(r=+Kr(r)),r==null||r===""?NaN:+r)}var EO=q({number:function(r){return parseFloat(r)},time:function(r){return+Kr(r)},trim:function(r){return U(r)?Sr(r):r}});function cT(r){return EO.get(r)}var dT={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}},kO=function(){function r(e,t){if(!Mt(t)){var a="";Pt(a)}this._opFn=dT[e],this._rvalFloat=ma(t)}return r.prototype.evaluate=function(e){return Mt(e)?this._opFn(e,this._rvalFloat):this._opFn(ma(e),this._rvalFloat)},r}(),pT=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=Mt(e)?e:ma(e),n=Mt(t)?t:ma(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=U(e),l=U(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),OO=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ma(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=ma(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function BO(r,e){return r==="eq"||r==="ne"?new OO(r==="eq",e):Z(dT,r)?new kO(r,e):null}var NO=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 Qa(e,t)},r}();function VO(r,e){var t=new NO,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Yr&&Pt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Z(l,y)&&Pt(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=fT(n,Yr);e.__isBuiltIn&&(t.getRawDataItem=function(p){return h(a,i,s,p)},t.getRawData=Y(zO,null,r)),t.cloneRawData=Y(FO,null,r);var v=hT(n,Yr);t.count=Y(v,null,a,i,s);var c=vT(n);t.retrieveValue=function(p,g){var y=h(a,i,s,p);return d(y,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return c(p,g,y.name)}};return t.getDimensionInfo=Y(GO,null,s,l),t.cloneAllDimensionInfo=Y(HO,null,s),t}function zO(r){var e=r.sourceFormat;if(!ny(e)){var t="";Pt(t)}return r.data}function FO(r){var e=r.sourceFormat,t=r.data;if(!ny(e)){var a="";Pt(a)}if(e===xe){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===cr){for(var n=[],i=0,o=t.length;i<o;i++)n.push(V({},t[i]));return n}}function GO(r,e,t){if(t!=null){if(Mt(t)||!isNaN(t)&&!Z(e,t))return r[t];if(Z(e,t))return e[t]}}function HO(r){return at(r)}var gT=q();function WO(r){r=at(r);var e=r.type,t="";e||Pt(t);var a=e.split(":");a.length!==2&&Pt(t);var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),r.__isBuiltIn=n,gT.set(e,r)}function $O(r,e,t){var a=kt(r),n=a.length,i="";n||Pt(i);for(var o=0,s=n;o<s;o++){var l=a[o];e=UO(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function UO(r,e,t,a){var n="";e.length||Pt(n),et(r)||Pt(n);var i=r.type,o=gT.get(i);o||Pt(n);var s=G(e,function(u){return VO(u,o)}),l=kt(o.transform({upstream:s[0],upstreamList:s,config:at(r.config)}));return G(l,function(u,f){var h="";et(u)||Pt(h),u.data||Pt(h);var v=sT(u.data);ny(v)||Pt(h);var c,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),c={seriesLayoutBy:Yr,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:Yr,sourceHeader:0,dimensions:u.dimensions};return fp(u.data,c,null)})}function ny(r){return r===xe||r===cr}var Bh="undefined",YO=typeof Uint32Array===Bh?Array:Uint32Array,ZO=typeof Uint16Array===Bh?Array:Uint16Array,yT=typeof Int32Array===Bh?Array:Int32Array,S1=typeof Float64Array===Bh?Array:Float64Array,mT={float:S1,int:yT,ordinal:Array,number:Array,time:S1},Uv;function Xo(r){return r>65535?YO:ZO}function Vi(){return[1/0,-1/0]}function XO(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function x1(r,e,t,a,n){var i=mT[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 hp=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=Uv[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],lT(n),this._dimensions=G(t,function(o){return{type:o.type,property:o.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 mT[t||"float"](this._rawCount),this._rawExtent[i]=Vi(),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]=Vi());for(var l=i[e],u=o;u<s;u++){var f=a[u]=t.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,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){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 f=n[u];x1(a,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,d=0;d<i;d++){var f=n[d],p=Uv.arrayRows.call(this,e[c]||h,f.property,c,d);a[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},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=G(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Vi()),x1(i,f,h.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var v=[],c=e;c<t;c++){v=n.getItem(c,v);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(v,u[d],c,d);p[c]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[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(i){isNaN(i)||t.push(i)});var a=t.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/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.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var v=this.getRawIndex(f),c=t-i[v],d=Math.abs(c);d<=a&&((d<s||d===s&&c>=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},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=Xo(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=Xo(a._rawCount),o=new i(n),s=[],l=e.length,u=0,f=e[0],h=a._chunks,v=0;v<n;v++){var c=void 0,d=a.getRawIndex(v);if(l===0)c=t(v);else if(l===1){var p=h[f][d];c=t(p,v)}else{for(var g=0;g<l;g++)s[g]=h[e[g]][d];s[g]=v,c=t.apply(null,s)}c&&(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=St(e),i=n.length;if(!i)return this;var o=t.count(),s=Xo(t._rawCount),l=new s(o),u=0,f=n[0],h=e[f][0],v=e[f][1],c=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var g=c[n[0]],y=0;y<a;y++){var m=g[y];(m>=h&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=c[n[0]],_=c[n[1]],S=e[n[1]][0],w=e[n[1]][1],y=0;y<a;y++){var m=g[y],x=_[y];(m>=h&&m<=v||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var b=t.getRawIndex(y),m=c[n[0]][b];(m>=h&&m<=v||isNaN(m))&&(l[u++]=b)}else for(var y=0;y<o;y++){for(var C=!0,b=t.getRawIndex(y),T=0;T<i;T++){var D=n[T],m=c[D][b];(m<e[D][0]||m>e[D][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(y))}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,f=0;f<t.length;f++)u[t[f]]=Vi();for(var h=0;h<s;h++){for(var v=e.getRawIndex(h),c=0;c<o;c++)l[c]=n[t[c]][v];l[o]=h;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=t[f],g=d[f],y=u[p],m=n[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[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),f,h,v,c=new(Xo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),w=i[S];isNaN(w)||(m+=w)}m/=g-p;var x=d,b=Math.min(d+l,o),C=d-1,T=i[u];f=-1,v=x;for(var D=-1,M=0,_=x;_<b;_++){var S=this.getRawIndex(_),w=i[S];if(isNaN(w)){M++,D<0&&(D=S);continue}h=Math.abs((C-y)*(w-T)-(C-_)*(m-T)),h>f&&(f=h,v=S)}M>0&&M<b-x&&(c[s++]=Math.min(D,v),v=Math.max(D,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),a._count=s,a._indices=c,a.getRawIndex=this._getRawIdx,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],f=this.count(),h=i._rawExtent[e]=Vi(),v=new(Xo(this._rawCount))(Math.ceil(f/l)),c=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(d+n(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,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){var t=this._chunks[e],a=Vi();if(!t)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),h=t[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},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&&Zr(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?XO(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=at(this._extent),e._rawExtent=at(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 Qa(t[i],this._dimensions[i])}Uv={arrayRows:e,objectRows:function(t,a,n,i){return Qa(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Qa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),_T=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(lu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ue(s)?Ja:vr,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=ft(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=ft(h.sourceHeader,v.sourceHeader),p=ft(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[fp(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[fp(_,this._getSourceMetaRawOption(),null)],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(n!=null){var i="";e.length!==1&&b1(i)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&b1(h),s.push(f),l.push(u._getVersionSign())}),a?o=$O(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[TO(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){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];lu(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new hp,s.initData(new uT(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(lu(e)){var t=Qg(e);return t?[t.getSourceManager()]:[]}else return G(J3(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(lu(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 w1(r){var e=r.option.transform;e&&pf(r.option.transform)}function lu(r){return r.mainType==="series"}function b1(r){throw new Error(r)}var ST="line-height:1";function xT(r,e){var t=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ke(a+"")+"px;color:"+ke(t)+";font-weight:"+ke(n+""),valueStyle:"font-size:"+ke(o+"")+"px;color:"+ke(i)+";font-weight:"+ke(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var qO=[0,10,20,30],KO=["",`
`,`
`,`
`];function oe(r,e){return e.type=r,e}function vp(r){return r.type==="section"}function wT(r){return vp(r)?JO:QO}function bT(r){if(vp(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return A(r.blocks,function(n){var i=bT(n);i>=e&&(e=i+ +(a&&(!i||vp(n)&&!n.noHeader)))}),e}return 0}function JO(r,e,t,a){var n=e.noHeader,i=jO(bT(e)),o=[],s=e.blocks||[];Me(!s||F(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new pT(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,p){var g=e.valueFormatter,y=wT(d)(g?V(V({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(i.richText):cp(o.join(""),n?t:i.html);if(n)return h;var v=sp(e.header,"ordinal",r.useUTC),c=xT(a,r.renderMode).nameStyle;return r.renderMode==="richText"?CT(r,v,c)+i.richText+h:cp('<div style="'+c+";"+ST+';">'+ke(v)+"</div>"+h,t)}function QO(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],G(S,function(w,x){return sp(w,F(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":sp(l,"ordinal",u),c=e.valueType,d=o?[]:f(e.value),p=!s||!i,g=!s&&i,y=xT(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":CT(r,v,m))+(o?"":r4(r,d,p,g,_)):cp((s?"":h)+(i?"":t4(v,!s,m))+(o?"":e4(d,p,g,_)),t)}}function C1(r,e,t,a,n,i){if(!!r){var o=wT(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function jO(r){return{html:qO[r],richText:KO[r]}}function cp(r,e){var t='<div style="clear:both"></div>',a="margin: "+e+"px 0 0";return'<div style="'+a+";"+ST+';">'+r+t+"</div>"}function t4(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+ke(r)+"</span>"}function e4(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=F(r)?r:[r],'<span style="'+i+";"+a+'">'+G(r,function(o){return ke(o)}).join(" ")+"</span>"}function CT(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function r4(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(F(e)?e.join(" "):e,i)}function TT(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return yi(a)}function AT(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var Yv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=C2()}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=$3({color:t,type:e,renderMode:a,markerId:n});return U(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};F(t)?A(t,function(i){return V(a,i)}):V(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function DT(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=F(s),u=TT(e,t),f,h,v,c;if(o>1||l&&!o){var d=a4(s,e,t,i,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);c=f=vo(n,t,i[0]),h=p.type}else c=f=l?s[0]:s;var g=Ig(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return oe("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[oe("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Sr(_),value:f,valueType:h})].concat(v||[])})}function a4(r,e,t,a,n){var i=e.getData(),o=Zr(r,function(h,v,c){var d=i.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(h){f(vo(i,t,h),h)}):A(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(oe("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Pa=Ct();function uu(r,e){return r.getName(e)||r.getId(e)}var sf="__universalTransitionEnabled",Nh=function(r){k(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=ks({count:i4,reset:o4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Pa(this).sourceManager=new _T(this);i.prepareSource();var o=this.getInitialData(t,n);A1(o,this),this.dataTask.context.data=o,Pa(this).dataBeforeProcessed=o,T1(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=tl(this),i=n?Po(t):{},o=this.subType;Tt.hasClass(o)&&(o+="Series"),ht(t,a.getTheme().get(this.subType)),ht(t,this.getDefaultOption()),ci(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&an(t,i,n)},e.prototype.mergeOption=function(t,a){t=ht(this.option,t,!0),this.fillDataTextStyle(t.data);var n=tl(this);n&&an(this.option,t,n);var i=Pa(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);A1(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Pa(this).dataBeforeProcessed=o,T1(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Ue(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ci(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=dp(this);if(a){var n=a.context.data;return t==null?n:n.getLinkedData(t)}else return Pa(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=dp(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}Pa(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return q(t)},e.prototype.getSourceManager=function(){return Pa(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Pa(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.formatTooltip=function(t,a,n){return DT({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(At.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=jg.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=uu(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=St(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[uu(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[sf])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"){et(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=a[f],v=uu(t,h);u[v]=!0,this._selectedDataIndicesMap[v]=t.getRawIndex(h)}}else if(s==="single"||s===!0){var c=a[l-1],v=uu(t,c);o.selectedMap=(n={},n[v]=!0,n),this._selectedDataIndicesMap=(i={},i[v]=t.getRawIndex(c),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 Tt.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}(Tt);te(Nh,ay);te(Nh,jg);E2(Nh,Tt);function T1(r){var e=r.name;Ig(r)||(r.name=n4(r)||e)}function n4(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return A(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function i4(r){return r.model.getRawData().count()}function o4(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),s4}function s4(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function A1(r,e){A(gf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ot(l4,e))})}function l4(r,e){var t=dp(r);return t&&t.setOutputEnd((e||this).count()),e}function dp(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 Ht=Nh,iy=function(){function r(){this.group=new nt,this.uid=Lo("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}();Rg(iy);mh(iy);var Ut=iy;function ko(){var r=Ct();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 MT=Ct(),u4=ko(),oy=function(){function r(){this.group=new nt,this.uid=Lo("viewChart"),this.renderTask=ks({plan:f4,reset:h4}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);!i||M1(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);!i||M1(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.updateLayout=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){vn(this.group,e)},r.markUpdateMethod=function(e,t){MT(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function D1(r,e,t){r&&Ks(r)&&(e==="emphasis"?_a:Sa)(r,t)}function M1(r,e,t){var a=di(r,e),n=e&&e.highlightKey!=null?N5(e.highlightKey):null;a!=null?A(kt(a),function(i){D1(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){D1(i,t,n)})}Rg(oy);mh(oy);function f4(r){return u4(r.model)}function h4(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&MT(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),v4[l]}var v4={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)}}},zt=oy,Ef="\0__throttleOriginMethod",L1="\0__throttleRate",I1="\0__throttleType";function sy(r,e,t){var a,n=0,i=0,o=null,s,l,u,f;e=e||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];a=new Date().getTime(),l=this,u=c;var p=f||e,g=f||t;f=null,s=a-(g?n:i)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Oo(r,e,t,a){var n=r[e];if(!!n){var i=n[Ef]||n,o=n[I1],s=n[L1];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=sy(i,t,a==="debounce"),n[Ef]=i,n[I1]=a,n[L1]=t}return n}}function rl(r,e){var t=r[e];t&&t[Ef]&&(t.clear&&t.clear(),r[e]=t[Ef])}var P1=Ct(),R1={itemStyle:pi(RC,!0),lineStyle:pi(PC,!0)},c4={lineStyle:"stroke",itemStyle:"fill"};function LT(r,e){var t=r.visualStyleMapper||R1[e];return t||(console.warn("Unknown style type '"+e+"'."),R1.itemStyle)}function IT(r,e){var t=r.visualDrawType||c4[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var d4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=LT(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=IT(r,a),u=o[l],f=J(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||J(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||J(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=V({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},qo=new Vt,p4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=LT(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){qo.option=l[a];var u=n(qo),f=o.ensureUniqueItemVisual(s,"style");V(f,u),qo.option.decal&&(o.setItemVisual(s,"decal",qo.option.decal),qo.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},g4={performRawSeries:!0,overallReset:function(r){var e=q();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),P1(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=P1(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=IT(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",d=a.count();v[l]=t.getColorFromPalette(c,o,d)}})}})}},fu=Math.PI;function y4(r,e){e=e||{},tt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new nt,a=new bt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Dt({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 bt({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 Gg({shape:{startAngle:-fu/2,endAngle:-fu/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:fu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:fu*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),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var m4=function(){function r(e,t,a,n){this._stageTaskMap=q(),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.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=q();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Me(!(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;A(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(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=q(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||ks({plan:b4,reset:C4,count:A4}));c.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||ks({reset:_4});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=q(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";Me(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(h=!1,A(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,ks({reset:S4,onDirty:w4})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,i._pipe(p,y)}v&&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 J(e)&&(e={overallReset:e,seriesType:D4(e)}),e.uid=Lo("stageHandler"),t&&(e.visualType=t),e},r}();function _4(r){r.overallReset(r.ecModel,r.api,r.payload)}function S4(r){return r.overallProgress&&x4}function x4(){this.agent.dirty(),this.getDownstream().dirty()}function w4(){this.agent&&this.agent.dirty()}function b4(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function C4(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=kt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return PT(a)}):T4}var T4=PT(0);function PT(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 A4(r){return r.data.count()}function D4(r){kf=null;try{r(al,RT)}catch(e){}return kf}var al={},RT={},kf;ET(al,aT);ET(RT,nT);al.eachSeriesByType=al.eachRawSeriesByType=function(r){kf=r};al.eachComponent=function(r){r.mainType==="series"&&r.subType&&(kf=r.subType)};function ET(r,e){for(var t in e.prototype)r[t]=Kt}var kT=m4,E1=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],M4={color:E1,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],E1]},be="#B9B8CE",k1="#100C2A",hu=function(){return{axisLine:{lineStyle:{color:be}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},O1=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],OT={darkMode:!0,color:O1,backgroundColor:k1,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:be}},textStyle:{color:be},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:be}},dataZoom:{borderColor:"#71708A",textStyle:{color:be},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:be}},timeline:{lineStyle:{color:be},label:{color:be},controlStyle:{color:be,borderColor:be}},calendar:{itemStyle:{color:k1},dayLabel:{color:be},monthLabel:{color:be},yearLabel:{color:be}},timeAxis:hu(),logAxis:hu(),valueAxis:hu(),categoryAxis:hu(),line:{symbol:"circle"},graph:{color:O1},gauge:{title:{color:be},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:be},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};OT.categoryAxis.splitLine.show=!1;var L4=OT,I4=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(U(e)){var i=Hr(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(t.mainType=d,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(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 f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),pp=["symbol","symbolSize","symbolRotate","symbolOffset"],B1=pp.concat(["symbolKeepAspect"]),P4={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<pp.length;o++){var s=pp[o],l=r.get(s);J(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(V({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=St(n);function f(h,v){for(var c=r.getRawValue(v),d=r.getDataParams(v),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(v,g,n[g](c,d))}}return{dataEach:i?f:null}}},R4={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<B1.length;s++){var l=B1[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function ly(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)}}function Ll(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)}}function BT(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}}function NT(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=V({},n),o.dispatchAction(V(n,{type:a[1],seriesIndex:t(i,n)}))})})}function zi(r,e,t,a,n){var i=r+e;t.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=di(h,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:F(v)?h.getName(v[0]):h.getName(v),selected:U(l)?l:V({},l)})}})}function E4(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(zi("map","selectchanged",e,n,a),zi("pie","selectchanged",e,n,a)):a.fromAction==="select"?(zi("map","selected",e,n,a),zi("pie","selected",e,n,a)):a.fromAction==="unselect"&&(zi("map","unselected",e,n,a),zi("pie","unselected",e,n,a))})}function jn(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var k4=Math.round(Math.random()*9),O4=typeof Object.defineProperty=="function",B4=function(){function r(){this._id="__ec_inner_"+k4++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return O4?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}(),N4=B4,V4=mt.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()}}),z4=mt.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()}}),F4=mt.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),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-h*c,l+s+v*c,t,a-d,t,a),r.bezierCurveTo(t,a-d,t-f+h*c,l+s+v*c,t-f,l+s),r.closePath()}}),G4=mt.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()}}),H4={line:ue,rect:bt,roundRect:bt,square:bt,circle:Qr,diamond:z4,pin:F4,arrow:G4,triangle:V4},W4={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}},Of={};A(H4,function(r,e){Of[e]=new r});var $4=mt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=bf(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=Of[a];n||(a="rect",n=Of[a]),W4[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function U4(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function jt(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 vt(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=Ah(r.slice(7),{},new vt(e,t,a,n),o?"center":"cover"):l=new $4({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=U4,i&&l.setColor(i),l}function Bo(r){return F(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ti(r,e){if(r!=null)return F(r)||(r=[r,r]),[W(r[0],e[0])||0,W(ft(r[1],r[0]),e[1])||0]}function ti(r){return isFinite(r)}function Y4(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=ti(a)?a:0,n=ti(n)?n:1,i=ti(i)?i:0,o=ti(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function Z4(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=ti(o)?o:.5,s=ti(s)?s:.5,l=l>=0&&ti(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function gp(r,e,t){for(var a=e.type==="radial"?Z4(r,e,t):Y4(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function X4(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 vu(r){return parseInt(r,10)}function no(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]||vu(s[a])||vu(r.style[a]))-(vu(s[i])||0)-(vu(s[o])||0)|0}function q4(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Mt(r)?[r]:F(r)?r:null}function uy(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&q4(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=G(t,function(i){return i/n}),a/=n)}return[t,a]}var K4=new Jr(!0);function Bf(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function N1(r){return typeof r=="string"&&r!=="none"}function Nf(r){var e=r.fill;return e!=null&&e!=="none"}function V1(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 z1(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 yp(r,e,t){var a=Eg(e.image,e.__image,t);if(_h(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)*Yu),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function J4(r,e,t,a){var n,i=Bf(t),o=Nf(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||K4,h=e.__dirty;if(!a){var v=t.fill,c=t.stroke,d=o&&!!v.colorStops,p=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||p)&&(x=e.getBoundingRect()),d&&(m=h?gp(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(_=h?gp(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?yp(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(w=h||!e.__canvasStrokePattern?yp(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(w?r.strokeStyle=w:i=!1)}var b=e.getGlobalScale();f.setScale(b[0],b[1],e.segmentIgnoreThreshold);var C,T;r.setLineDash&&t.lineDash&&(n=uy(e),C=n[0],T=n[1]);var D=!0;(u||h&Ji)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=T),a||(t.strokeFirst?(i&&z1(r,t),o&&V1(r,t)):(o&&V1(r,t),i&&z1(r,t))),C&&r.setLineDash([])}function Q4(r,e,t){var a=e.__image=Eg(t.image,e.__image,e,e.onload);if(!(!a||!_h(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,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(a,u,f,h,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function j4(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||tn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=uy(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Bf(t)&&r.strokeText(n,t.x,t.y),Nf(t)&&r.fillText(n,t.x,t.y)):(Nf(t)&&r.fillText(n,t.x,t.y),Bf(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var F1=["shadowBlur","shadowOffsetX","shadowOffsetY"],G1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function VT(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){Ne(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?ii.opacity:o}(a||e.blend!==t.blend)&&(i||(Ne(r,n),i=!0),r.globalCompositeOperation=e.blend||ii.blend);for(var s=0;s<F1.length;s++){var l=F1[s];(a||e[l]!==t[l])&&(i||(Ne(r,n),i=!0),r[l]=r.dpr*(e[l]||0))}return(a||e.shadowColor!==t.shadowColor)&&(i||(Ne(r,n),i=!0),r.shadowColor=e.shadowColor||ii.shadowColor),i}function H1(r,e,t,a,n){var i=nl(e,n.inHover),o=a?null:t&&nl(t,n.inHover)||{};if(i===o)return!1;var s=VT(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(Ne(r,n),s=!0),N1(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(Ne(r,n),s=!0),N1(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(Ne(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||(Ne(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<G1.length;f++){var h=G1[f],v=h[0];(a||i[v]!==o[v])&&(s||(Ne(r,n),s=!0),r[v]=i[v]||h[1])}return s}function tB(r,e,t,a,n){return VT(r,nl(e,n.inHover),t&&nl(t,n.inHover),a,n)}function zT(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 eB(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),zT(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}function rB(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 W1=1,$1=2,U1=3,Y1=4;function aB(r){var e=Nf(r),t=Bf(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 Ne(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function nl(r,e){return e&&r.__hoverStyle||r.style}function FT(r,e){ei(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ei(r,e,t,a){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~He,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||X4(i,o))&&(o&&o.length&&(Ne(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(Ne(r,t),r.save(),eB(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof mt&&e.autoBatch&&aB(e.style);s||rB(n,u.transform)?(Ne(r,t),zT(r,e)):f||Ne(r,t);var h=nl(e,t.inHover);e instanceof mt?(t.lastDrawType!==W1&&(l=!0,t.lastDrawType=W1),H1(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),J4(r,e,h,f),f&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof Xs?(t.lastDrawType!==U1&&(l=!0,t.lastDrawType=U1),H1(r,e,u,l,t),j4(r,e,h)):e instanceof pe?(t.lastDrawType!==$1&&(l=!0,t.lastDrawType=$1),tB(r,e,u,l,t),Q4(r,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==Y1&&(l=!0,t.lastDrawType=Y1),nB(r,e,t)),f&&a&&Ne(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function nB(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},o,s;for(o=e.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ei(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ei(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Zv=new N4,Z1=new Sl(100),X1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function co(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&Zv.delete(r);var i=Zv.get(r);if(i)return i;var o=tt(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,Zv.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],h=!0,v=0;v<X1.length;++v){var c=o[X1[v]];if(c!=null&&!F(c)&&!U(c)&&!Mt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(n?"-svg":"");var p=Z1.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=HT(o.dashArrayX),y=iB(o.dashArrayY),m=GT(o.symbol),_=oB(g),S=WT(y),w=!n&&ga.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},b=T(),C;w&&(w.width=b.width*t,w.height=b.height*t,C=w.getContext("2d")),D(),h&&Z1.put(d,w||x),u.image=w,u.svgElement=x,u.svgWidth=b.width,u.svgHeight=b.height;function T(){for(var M=1,L=0,I=_.length;L<I;++L)M=u0(M,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=u0(P,m[L].length);M*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var M=0,L=0;L<y.length;++L)M+=y[L];if(M<=0)return;for(var I=-S,P=0,R=0,E=0;I<b.height;){if(P%2===0){for(var B=R/2%m.length,O=0,z=0,H=0;O<b.width*2;){for(var $=0,L=0;L<g[E].length;++L)$+=g[E][L];if($<=0)break;if(z%2===0){var X=(1-o.symbolSize)*.5,Q=O+g[E][z]*X,j=I+y[P]*X,pt=g[E][z]*o.symbolSize,xt=y[P]*o.symbolSize,gt=H/2%m[B].length;rt(Q,j,pt,xt,m[B][gt])}O+=g[E][z],++H,++z,z===g[E].length&&(z=0)}++E,E===g.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function rt(yt,st,K,lt,Gt){var wt=n?1:t,Yt=jt(Gt,yt*wt,st*wt,K*wt,lt*wt,o.color,o.symbolKeepAspect);if(n){var Wt=a.painter.renderOneToVNode(Yt);Wt&&x.children.push(Wt)}else FT(C,Yt)}}}}function GT(r){if(!r||r.length===0)return[["rect"]];if(U(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!U(r[t])){e=!1;break}if(e)return GT([r]);for(var a=[],t=0;t<r.length;++t)U(r[t])?a.push([r[t]]):a.push(r[t]);return a}function HT(r){if(!r||r.length===0)return[[0,0]];if(Mt(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!Mt(r[a])){t=!1;break}if(t)return HT([r]);for(var n=[],a=0;a<r.length;++a)if(Mt(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else{var e=G(r[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function iB(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Mt(r)){var e=Math.ceil(r);return[e,e]}var t=G(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function oB(r){return G(r,function(e){return WT(e)})}function WT(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function sB(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=co(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=co(n,e)}}})}var lB=new hr,mr=lB,$T={};function uB(r,e){$T[r]=e}function fB(r){return $T[r]}var hB=1,vB=800,cB=900,dB=1e3,pB=2e3,gB=5e3,UT=1e3,yB=1100,fy=2e3,YT=3e3,mB=4e3,Vh=4500,_B=4600,SB=5e3,xB=6e3,ZT=7e3,wB={PROCESSOR:{FILTER:dB,SERIES_FILTER:vB,STATISTIC:gB},VISUAL:{LAYOUT:UT,PROGRESSIVE_LAYOUT:yB,GLOBAL:fy,CHART:YT,POST_CHART_LAYOUT:_B,COMPONENT:mB,BRUSH:SB,CHART_ITEM:Vh,ARIA:xB,DECAL:ZT}},me="__flagInMainProcess",Re="__pendingUpdate",Xv="__needsUpdateStatus",q1=/^[a-zA-Z0-9_]+$/,qv="__connectUpdateStatus",K1=0,bB=1,CB=2;function XT(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return KT(this,r,e)}}function qT(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return KT(this,r,e)}}function KT(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),hr.prototype[e].apply(r,t)}var JT=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(hr),QT=JT.prototype;QT.on=qT("on");QT.off=qT("off");var Fi,Kv,cu,Ra,Jv,Qv,jv,Ko,Jo,J1,Q1,tc,j1,du,t_,jT,Ye,e_,tA=function(r){k(e,r);function e(t,a,n){var i=r.call(this,new I4)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},U(a)&&(a=eA[a]),i._dom=t;var o="canvas",s="auto",l=!1,u=i._zr=i0(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:ft(n.useDirtyRect,l),useCoarsePointer:ft(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=sy(Y(u.flush,u),17),a=at(a),a&&oT(a,!0),i._theme=a,i._locale=N3(n.locale||EC),i._coordSysMgr=new Ml;var f=i._api=t_(i);function h(v,c){return v.__prio-c.__prio}return qu(zf,h),qu(mp,h),i._scheduler=new kT(i,f,mp,zf),i._messageCenter=new JT,i._initEvents(),i.resize=Y(i.resize,i),u.animation.on("frame",i._onframe,i),J1(u,i),Q1(u,i),pf(i),i}return e.prototype._onframe=function(){if(!this._disposed){e_(this);var t=this._scheduler;if(this[Re]){var a=this[Re].silent;this[me]=!0;try{Fi(this),Ra.update.call(this,null,this[Re].updateParams)}catch(l){throw this[me]=!1,this[Re]=null,l}this._zr.flush(),this[me]=!1,this[Re]=null,Ko.call(this,a),Jo.call(this,a)}else if(t.unfinished){var n=hB,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Qv(this,i),t.performVisualTasks(i),du(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>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[me]){if(this._disposed){this.id;return}var i,o,s;if(et(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[me]=!0,!this._model||a){var l=new pO(this._api),u=this._theme,f=this._model=new aT;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},_p);var h={seriesTransition:s,optionChanged:!0};if(n)this[Re]={silent:i,updateParams:h},this[me]=!1,this.getZr().wakeUp();else{try{Fi(this),Ra.update.call(this,null,h)}catch(v){throw this[Re]=null,this[me]=!1,v}this._ssr||this._zr.flush(),this[Re]=null,this[me]=!1,Ko.call(this,i),Jo.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||At.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;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;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!At.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(r_[n]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();A(Bs,function(_,S){if(_.group===n){var w=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(at(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:w,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=ga.createCanvas(),y=i0(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(v,function(_){var S=_.left-l,w=_.top-u;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new bt({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),A(v,function(_){var S=new pe({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return Jv(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return Jv(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=Ls(n,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Ls(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?ly(s,l,a):Ll(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;A(TB,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&jn(s,function(d){var p=it(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=V({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),A(Os,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),A(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),E4(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&I2(this.getDom(),vy,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(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 Bs[a.id]},e.prototype.resize=function(t){if(!this[me]){if(this._disposed){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[Re]&&(i==null&&(i=this[Re].silent),n=!0,this[Re]=null),this[me]=!0;try{n&&Fi(this),Ra.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)})}catch(o){throw this[me]=!1,o}this[me]=!1,Ko.call(this,i),Jo.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(et(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!Sp[t]){var n=Sp[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=V({},t);return a.type=Os[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(et(a)||(a={silent:!!a}),!!Vf[t.type]&&!!this._model){if(this[me]){this._pendingActions.push(t);return}var n=a.silent;jv.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&At.browser.weChat&&this._throttledZrFlush(),Ko.call(this,n),Jo.call(this,n)}},e.prototype.updateLabelLayout=function(){mr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Fi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Kv(h,!0),Kv(h,!1),v.plan()},Kv=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<p.length;_++)p[_].__alive=!1;v?c.eachComponent(function(x,b){x!=="series"&&S(b)}):c.eachSeries(S);function S(x){var b=x.__requireNewView;x.__requireNewView=!1;var C="_ec_"+x.id+"_"+x.type,T=!b&&g[C];if(!T){var D=Hr(x.type),M=v?Ut.getClass(D.main,D.sub):zt.getClass(D.sub);T=new M,T.init(c,m),g[C]=T,p.push(T),y.add(T.group)}x.__viewId=T.__id=C,T.__alive=!0,T.__model=x,T.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!v&&d.prepareView(T,x,c,m)}for(var _=0;_<p.length;){var w=p[_];w.__alive?_++:(!v&&w.renderTask.dispose(),y.remove(w.group),w.dispose(c,m),p.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},cu=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){A([].concat(h._componentsViews).concat(h._chartsViews),w);return}var y={};y[d+"Id"]=c[d+"Id"],y[d+"Index"]=c[d+"Index"],y[d+"Name"]=c[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=c.excludeSeriesId,S;_!=null&&(S=q(),A(kt(_),function(x){var b=ee(x,null);b!=null&&S.set(b,!0)})),g&&g.eachComponent(m,function(x){var b=S&&S.get(x.id)!=null;if(!b)if(N0(c))if(x instanceof Ht)c.type===oi&&!c.notBlur&&!x.get(["emphasis","disabled"])&&L5(x,c,h._api);else{var C=Vg(x.mainType,x.componentIndex,c.name,h._api),T=C.focusSelf,D=C.dispatchers;c.type===oi&&T&&!c.notBlur&&tp(x.mainType,x.componentIndex,h._api),D&&A(D,function(M){c.type===oi?_a(M):Sa(M)})}else rp(c)&&x instanceof Ht&&(R5(x,c,h._api),O0(x),Ye(h))},h),g&&g.eachComponent(m,function(x){var b=S&&S.get(x.id)!=null;b||w(h[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function w(x){x&&x.__alive&&x[v]&&x[v](x.__model,g,h._api,c)}},Ra={prepareAndUpdate:function(h){Fi(this),Ra.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!c){c.setUpdatePayload(h),y.restoreData(c,h),y.performSeriesTasks(c),g.create(c,d),y.performDataProcessorTasks(c,h),Qv(this,c),g.update(c,d),t(c),y.performVisualTasks(c,h),tc(this,c,d,h,v);var m=c.get("backgroundColor")||"transparent",_=c.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),mr.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(!!c){c.setUpdatePayload(h);var p=[];c.eachComponent(function(y,m){if(y!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,c,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=q();c.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,c,d,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),t(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),du(this,c,d,h,{},g),mr.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;!v||(v.setUpdatePayload(h),zt.markUpdateMethod(h,"updateView"),t(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),tc(this,v,this._api,h,{}),mr.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;!c||(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),zt.markUpdateMethod(h,"updateVisual"),t(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,c,v._api,h)}}),c.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,c,v._api,h)}),mr.trigger("afterupdate",c,this._api))},updateLayout:function(h){Ra.update.call(this,h)}},Jv=function(h,v,c,d){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=Ls(p,c),_=0;_<g.length;_++){var S=g[_];if(S[v]&&(y=S[v](p,m,d))!=null)return y}},Qv=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},jv=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,y=Vf[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),w=_[0]!=null&&Hr(_[0]);this[me]=!0;var x=[h],b=!1;h.batch&&(b=!0,x=G(h.batch,function(P){return P=tt(V({},P),h),P.batch=null,P}));var C=[],T,D=rp(h),M=N0(h);if(M&&rC(this._api),A(x,function(P){if(T=y.action(P,c._model,c._api),T=T||V({},P),T.type=m.event||T.type,C.push(T),M){var R=Pg(h),E=R.queryOptionMap,B=R.mainTypeSpecified,O=B?E.keys()[0]:"series";cu(c,S,P,O),Ye(c)}else D?(cu(c,S,P,"series"),Ye(c)):w&&cu(c,S,P,w.main,w.sub)}),S!=="none"&&!M&&!D&&!w)try{this[Re]?(Fi(this),Ra.update.call(this,h),this[Re]=null):Ra[S].call(this,h)}catch(P){throw this[me]=!1,P}if(b?T={type:m.event||p,escapeConnect:g,batch:C}:T=C[0],this[me]=!1,!v){var L=this._messageCenter;if(L.trigger(T.type,T),D){var I={type:"selectchanged",escapeConnect:g,selected:E5(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(I.type,I)}}},Ko=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();jv.call(this,c,h)}},Jo=function(h){!h&&this.trigger("updated")},J1=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[Re]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Q1=function(h,v){h.on("mouseover",function(c){var d=c.target,p=jn(d,Ks);p&&(I5(p,c,v._api),Ye(v))}).on("mouseout",function(c){var d=c.target,p=jn(d,Ks);p&&(P5(p,c,v._api),Ye(v))}).on("click",function(c){var d=c.target,p=jn(d,function(m){return it(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=it(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function a(h){var v=[],c=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,w=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?c:v).push({zlevel:S,z:w,idx:_.componentIndex,type:m,key:x})}),d){var p=v.concat(c),g,y;qu(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(p,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,w=m.key;g!=null&&(S=Math.max(g,S)),w?(S===g&&w!==y&&S++,y=w):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}tc=function(h,v,c,d,p){a(v),j1(h,v,c,d,p),A(h._chartsViews,function(g){g.__alive=!1}),du(h,v,c,d,p),A(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},j1=function(h,v,c,d,p,g){A(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,c,d),s(m,y),f(m,y)})},du=function(h,v,c,d,p,g){var y=h._scheduler;p=V(p||{},{updatedSeries:v.getSeries()}),mr.trigger("series:beforeupdate",v,c,p);var m=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;y.updatePayload(w,d),u(_,S),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),O0(_)}),y.unfinished=m||y.unfinished,mr.trigger("series:layoutlabels",v,c,p),mr.trigger("series:transition",v,c,p),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),i(h,v),mr.trigger("series:afterupdate",v,c,p)},Ye=function(h){h[Xv]=!0,h.getZr().wakeUp()},e_=function(h){!h[Xv]||(h.getZr().storage.traverse(function(v){so(v)||n(v)}),h[Xv]=!1)};function n(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var p=c[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}h.selected&&h.states.select&&v.push("select"),h.hoverState===wh&&h.states.emphasis?v.push("emphasis"):h.hoverState===bl&&h.states.blur&&v.push("blur"),h.useStates(v)}function i(h,v){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!At.node&&!At.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(p){return l(p,c,d,-1/0),!0})}}function l(h,v,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],v,c,d),d);else h.z=v,h.zlevel=c,d=Math.max(h.z2,d);if(p&&(p.z=v,p.zlevel=c,isFinite(d)&&(p.z2=d+2)),g){var S=h.textGuideLineConfig;g.z=v,g.zlevel=c,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,v){v.eachRendered(function(c){if(!so(c)){var d=c.getTextContent(),p=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=c.get("duration"),g=p>0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(so(y))return;if(y instanceof mt&&V5(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}t_=function(h){return new(function(v){k(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){_a(d,p),Ye(h)},c.prototype.leaveEmphasis=function(d,p){Sa(d,p),Ye(h)},c.prototype.enterBlur=function(d){Q2(d),Ye(h)},c.prototype.leaveBlur=function(d){Ng(d),Ye(h)},c.prototype.enterSelect=function(d){j2(d),Ye(h)},c.prototype.leaveSelect=function(d){tC(d),Ye(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c}(nT))(h)},jT=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[qv]=d}}A(Os,function(c,d){h._messageCenter.on(d,function(p){if(r_[h.group]&&h[qv]!==K1){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),y=[];A(Bs,function(m){m!==h&&m.group===h.group&&y.push(m)}),v(y,K1),A(y,function(m){m[qv]!==bB&&m.dispatchAction(g)}),v(y,CB)}})})}}(),e}(hr),hy=tA.prototype;hy.on=XT("on");hy.off=XT("off");hy.one=function(r,e,t){var a=this;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 TB=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Vf={},Os={},mp=[],_p=[],zf=[],eA={},Sp={},Bs={},r_={},AB=+new Date-0,vy="_echarts_instance_";function DB(r,e,t){var a=!(t&&t.ssr);if(a){var n=MB(r);if(n)return n}var i=new tA(r,e,t);return i.id="ec_"+AB++,Bs[i.id]=i,a&&I2(r,vy,i.id),jT(i),mr.trigger("afterinit",i),i}function MB(r){return Bs[Ck(r,vy)]}function rA(r,e){eA[r]=e}function aA(r){dt(_p,r)<0&&_p.push(r)}function nA(r,e){dy(mp,r,e,pB)}function LB(r){cy("afterinit",r)}function IB(r){cy("afterupdate",r)}function cy(r,e){mr.on(r,e)}function ta(r,e,t){J(e)&&(t=e,e="");var a=et(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),e=r.event,!Os[e]&&(Me(q1.test(a)&&q1.test(e)),Vf[a]||(Vf[a]={action:t,actionInfo:r}),Os[e]=a)}function PB(r,e){Ml.register(r,e)}function RB(r,e){dy(zf,r,e,UT,"layout")}function Ai(r,e){dy(zf,r,e,YT,"visual")}var a_=[];function dy(r,e,t,a,n){if((J(e)||et(e))&&(t=e,e=a),!(dt(a_,t)>=0)){a_.push(t);var i=kT.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function iA(r,e){Sp[r]=e}function EB(r,e,t){var a=fB("registerMap");a&&a(r,e,t)}var kB=WO;Ai(fy,d4);Ai(Vh,p4);Ai(Vh,g4);Ai(fy,P4);Ai(Vh,R4);Ai(ZT,sB);aA(oT);nA(cB,bO);iA("default",y4);ta({type:oi,event:oi,update:oi},Kt);ta({type:ef,event:ef,update:ef},Kt);ta({type:Is,event:Is,update:Is},Kt);ta({type:rf,event:rf,update:rf},Kt);ta({type:Ps,event:Ps,update:Ps},Kt);rA("light",M4);rA("dark",L4);function Qo(r){return r==null?0:r.length||1}function n_(r){return r}var OB=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||n_,this._newKeyGetter=n||n_,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=Qo(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,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],f=n[l],h=Qo(u),v=Qo(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=Qo(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=Qo(l);u===0?(t[s]=o,i&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}(),xa=OB,BB=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 NB(r,e){var t={},a=t.encode={},n=q(),i=[],o=[],s={};A(r.dimensions,function(v){var c=r.getDimensionInfo(v),d=c.coordDim;if(d){var p=c.coordDimIndex;ec(a,d)[p]=v,c.isExtraCoord||(n.set(d,1),VB(c.type)&&(i[0]=v),ec(s,d)[p]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}qC.each(function(g,y){var m=ec(a,y),_=c.otherDims[y];_!=null&&_!==!1&&(m[_]=c.name)})});var l=[],u={};n.each(function(v,c){var d=a[c];u[c]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=G(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var h=a.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new BB(s,e),t}function ec(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Ff(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function VB(r){return!(r==="ordinal"||r==="time")}var zB=function(){function r(e){this.otherDims={},e!=null&&V(this,e)}return r}(),lf=zB,FB=Ct(),GB={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},oA=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=uA(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return ft(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=lT(this.source),a=!fA(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=t?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=t?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=GB[u]||"f",f&&(n+=f.uid),n+="$"}var c=this.source,d=[c.seriesLayoutBy,c.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 sA(r){return r instanceof oA}function lA(r){for(var e=q(),t=0;t<(r||[]).length;t++){var a=r[t],n=et(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function uA(r){var e=FB(r);return e.dimNameMap||(e.dimNameMap=lA(r.dimensionsDefine))}function fA(r){return r>30}var jo=et,Ea=G,HB=typeof Int32Array=="undefined"?Array:Int32Array,WB="e\0\0",i_=-1,$B=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],UB=["_approximateExtent"],o_,pu,ts,es,rc,gu,ac,YB=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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;sA(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={},f=0;f<a.length;f++){var h=a[f],v=U(h)?new lf({name:h}):h instanceof lf?h:new lf(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),i[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),n&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=q();A(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(Mt(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);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 hp&&(i=e),!i){var o=this.dimensions,s=ty(e)||Se(e)?new uT(e,o.length):e;i=new hp;var l=Ea(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=NB(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.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&&ac(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!==Ja&&!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===vr;if(l&&!n.pure)for(var u=[],f=e;f<t;f++){var h=n.getItem(f,u);if(!this.hasItemOption&&hk(h)&&(this.hasItemOption=!0),h){var v=h.name;i[f]==null&&v!=null&&(i[f]=ee(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=ee(c,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)ac(this,f);o_(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},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){jo(e)?V(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=ts(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 pu(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))},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 F(e)?n.getValues(Ea(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],n=a[t];return n==null||isNaN(n)?i_:n},r.prototype.indicesOfNearest=function(e,t,a){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,a)},r.prototype.each=function(e,t,a){J(e)&&(a=t,t=e,e=[]);var n=a||this,i=Ea(es(e),this._getStoreDimIndex,this);this._store.each(i,n?Y(t,n):t)},r.prototype.filterSelf=function(e,t,a){J(e)&&(a=t,t=e,e=[]);var n=a||this,i=Ea(es(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Y(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=St(e);return A(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){J(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=Ea(es(e),this._getStoreDimIndex,this),s=gu(this);return s._store=this._store.map(o,i?Y(t,i):t),s},r.prototype.modify=function(e,t,a,n){var i=a||n||this,o=Ea(es(e),this._getStoreDimIndex,this);this._store.modify(o,i?Y(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=gu(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.lttbDownSample=function(e,t){var a=gu(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 Vt(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new xa(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return pu(e,a)},function(a){return pu(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||{},jo(e)?V(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],n=a&&a[t];return n==null?this.getVisual(t):n},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),F(i)?i=i.slice():jo(i)&&(i=V({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,jo(t)?V(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){jo(e)?V(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?V(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;Qd(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(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:Ea(this.dimensions,this._getDimInfo,this),this.hostModel)),rc(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];!J(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(Sg(arguments)))})},r.internalField=function(){o_=function(e){var t=e._invertedIndicesMap;A(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new HB(o.categories.length);for(var l=0;l<a.length;l++)a[l]=i_;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},ts=function(e,t,a){return ee(e._getCategory(t,a),null)},pu=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=ts(e,e._idDimIdx,t)),a==null&&(a=WB+t),a},es=function(e){return F(e)||(e=e!=null?[e]:[]),e},gu=function(e){var t=new r(e._schema?e._schema:Ea(e.dimensions,e._getDimInfo,e),e.hostModel);return rc(t,e),t},rc=function(e,t){A($B.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,A(UB,function(a){e[a]=at(t[a])}),e._calculationInfo=V({},t._calculationInfo)},ac=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=ts(e,i,t)),l==null&&o!=null&&(n[t]=l=ts(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}}}(),r}(),De=YB;function Il(r,e){ty(r)||(r=ey(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=q(),i=[],o=XB(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&fA(o),l=a===r.dimensionsDefine,u=l?uA(r):lA(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=q(f),v=new yT(o),c=0;c<v.length;c++)v[c]=-1;function d(T){var D=v[T];if(D<0){var M=a[T],L=et(M)?M:{name:M},I=new lf,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var R=i.length;return v[T]=R,I.storeDimIndex=T,i.push(I),I}return i[D]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(T,D){var M=kt(T).slice();if(M.length===1&&!U(M[0])&&M[0]<0){h.set(D,!1);return}var L=h.set(D,[]);A(M,function(I,P){var R=U(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,g(d(R),D,P))})});var p=0;A(t,function(T){var D,M,L,I;if(U(T))D=T,I={};else{I=T,D=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=V({},I),I.ordinalMeta=P,M=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=h.get(D);if(R!==!1){if(R=kt(R),!R.length)for(var E=0;E<(M&&M.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}A(R,function(B,O){var z=d(B);if(l&&I.type!=null&&(z.type=I.type),g(tt(z,I),D,O),z.name==null&&M){var H=M[O];!et(H)&&(H={name:H}),z.name=z.displayName=H.name,z.defaultTooltip=H.defaultTooltip}L&&tt(z.otherDims,L)})}});function g(T,D,M){qC.get(D)!=null?T.otherDims[D]=M:(T.coordDim=D,T.coordDimIndex=M,n.set(D,!0))}var y=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function w(T){T.name==null&&(T.name=T.coordDim)}if(s)A(i,function(T){w(T)}),i.sort(function(T,D){return T.storeDimIndex-D.storeDimIndex});else for(var x=0;x<o;x++){var b=d(x),C=b.coordDim;C==null&&(b.coordDim=qB(S,n,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),w(b),b.type==null&&(jC(r,x)===fe.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return ZB(i),new oA({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function ZB(r){for(var e=q(),t=0;t<r.length;t++){var a=r[t],n=a.name,i=e.get(n)||0;i>0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function XB(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return A(e,function(i){var o;et(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function qB(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 KB=function(){function r(e){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=e}return r}();function JB(r){var e=r.get("coordinateSystem"),t=new KB(e),a=QB[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var QB={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Qt).models[0],i=r.getReferringComponents("yAxis",Qt).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),Gi(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),Gi(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Qt).models[0];e.coordSysDims=["single"],t.set("single",n),Gi(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Qt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Gi(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),Gi(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();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Gi(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Gi(r){return r.get("type")==="category"}function jB(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;tN(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(A(i,function(m,_){U(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;A(i,function(m){m.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function tN(r){return!sA(r.schema)}function nn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function hA(r,e){return nn(r,e)?r.getCalculationInfo("stackResultDimension"):e}function eN(r,e){var t=r.get("coordinateSystem"),a=Ml.get(t),n;return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Ff(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function rN(r,e,t){var a,n;return t&&A(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 Ta(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=ey(r)):(n=a.getSource(),i=n.sourceFormat===vr);var o=JB(e),s=eN(e,o),l=t.useEncodeDefaulter,u=J(l)?l:l?ot(QC,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=Il(n,f),v=rN(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),d=jB(e,{schema:h,store:c}),p=new De(h,e);p.setCalculationInfo(d);var g=v!=null&&aN(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:c,null,g),p}function aN(r){if(r.sourceFormat===vr){var e=nN(r.data||[]);return!F(Co(e))}}function nN(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var vA=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();mh(vA);var Aa=vA,iN=0,oN=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++iN}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,sN);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(!U(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,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)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r}();function sN(r){return et(r)&&r.value!=null?r.value:r+""}var xp=oN;function wp(r){return r.type==="interval"||r.type==="log"}function lN(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=w2(i/e,!0);t!=null&&o<t&&(o=n.interval=t),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=cA(o),l=n.niceTickExtent=[Zt(Math.ceil(r[0]/o)*o,s),Zt(Math.floor(r[1]/o)*o,s)];return uN(l,r),n}function nc(r){var e=Math.pow(10,Lg(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Zt(t*e)}function cA(r){return Gr(r)+2}function s_(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function uN(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),s_(r,0,e),s_(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function zh(r,e){return r>=e[0]&&r<=e[1]}function Fh(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Gh(r,e){return r*(e[1]-e[0])+e[0]}var dA=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new xp({})),F(n)&&(n=new xp({categories:G(n,function(i){return et(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:U(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),zh(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Fh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Gh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return 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=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n.push(f),i[f]=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(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Aa);Aa.registerClass(dA);var py=dA,En=Zt,pA=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return zh(t,this._extent)},e.prototype.normalize=function(t){return Fh(t,this._extent)},e.prototype.scale=function(t){return Gh(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]<a[0]&&(a[0]=t[0]),t[1]>a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=cA(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(t?s.push({value:En(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=En(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(t?s.push({value:En(f+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,f=[],h=s.value-l.value,v=h/t;u<t-1;){var c=En(l.value+(u+1)*v);c>i[0]&&c<i[1]&&f.push(c),u++}n.push(f)}return n},e.prototype.getLabel=function(t,a){if(t==null)return"";var n=a&&a.precision;n==null?n=Gr(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=En(t.value,n,!0);return WC(i)},e.prototype.calcNiceTicks=function(t,a,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(!!isFinite(o)){o<0&&(o=-o,i.reverse());var s=lN(i,t,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);t.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(a[0]=En(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=En(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e}(Aa);Aa.registerClass(pA);var on=pA,gA=typeof Float32Array!="undefined",fN=gA?Float32Array:Array;function Wr(r){return F(r)?gA?new Float32Array(r):r:new fN(r)}var bp="__ec_stack_";function gy(r){return r.get("stack")||bp+r.seriesIndex}function yy(r){return r.dim+r.index}function hN(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i<r.count;i++)e.push(tt({bandWidth:n,axisKey:a,stackId:bp+i},r));for(var o=_A(e),s=[],i=0;i<r.count;i++){var l=o[a][bp+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function yA(r,e){var t=[];return e.eachSeriesByType(r,function(a){wA(a)&&t.push(a)}),t}function vN(r){var e={};A(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(c,p);e[v]?e[v].push(y):e[v]=[y]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function mA(r){var e=vN(r),t=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=W(a.get("barWidth"),s),p=W(a.get("barMaxWidth"),s),g=W(a.get("barMinWidth")||(bA(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:yy(i),stackId:gy(a)})}),_A(t)}function _A(r){var e={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return A(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=St(i).length;s=Math.max(35-l*4,15)+"%"}var u=W(s,o),f=W(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;A(i,function(y,m){y.width||(y.width=c),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function cN(r,e,t){if(r&&e){var a=r[yy(e)];return a!=null&&t!=null?a[gy(t)]:a}}function SA(r,e){var t=yA(r,e),a=mA(t);A(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=gy(n),u=a[yy(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function xA(r){return{seriesType:r,plan:ko(),reset:function(e){if(!!wA(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),f=t.getCalculationInfo("stackResultDimension"),h=nn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=dN(n,i),d=bA(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&Wr(w*3),b=d&&l&&Wr(w*3),C=d&&Wr(w),T=a.master.getRect(),D=v?T.width:T.height,M,L=S.getStore(),I=0;(M=_.next())!=null;){var P=L.get(h?g:o,M),R=L.get(s,M),E=c,B=void 0;h&&(B=+P-L.get(o,M));var O=void 0,z=void 0,H=void 0,$=void 0;if(v){var X=a.dataToPoint([P,R]);if(h){var Q=a.dataToPoint([B,R]);E=Q[0]}O=E,z=X[1]+m,H=X[0]-E,$=y,Math.abs(H)<p&&(H=(H<0?-1:1)*p)}else{var X=a.dataToPoint([R,P]);if(h){var Q=a.dataToPoint([R,B]);E=Q[1]}O=X[0]+m,z=E,H=y,$=X[1]-E,Math.abs($)<p&&($=($<=0?-1:1)*p)}d?(x[I]=O,x[I+1]=z,x[I+2]=v?H:$,b&&(b[I]=v?T.x:O,b[I+1]=v?z:T.y,b[I+2]=D),C[M]=M):S.setItemLayout(M,{x:O,y:z,width:H,height:$}),I+=3}d&&S.setLayout({largePoints:x,largeDataIndices:C,largeBackgroundPoints:b,valueAxisHorizontal:v})}}}}}}function wA(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function bA(r){return r.pipelineContext&&r.pipelineContext.large}function dN(r,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var pN=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},CA=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="time",a}return e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return Lh(t.value,Q0[F3(lo(this._minLevelUnit))]||Q0.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return G3(t,a,n,o,i)},e.prototype.getTicks=function(){var t=this._interval,a=this._extent,n=[];if(!t)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=wN(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1]&&(a[0]-=ir,a[1]+=ir),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-ir}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,n){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=yu.length,l=Math.min(pN(yu,this._approxInterval,0,s),s-1);this._interval=yu[l][1],this._minLevelUnit=yu[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Mt(t)?t:+Kr(t)},e.prototype.contain=function(t){return zh(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Fh(this.parse(t),this._extent)},e.prototype.scale=function(t){return Gh(t,this._extent)},e.type="time",e}(on),yu=[["second",Zg],["minute",Xg],["hour",Es],["quarter-day",Es*6],["half-day",Es*12],["day",ir*1.2],["half-week",ir*3.5],["week",ir*7],["month",ir*31],["quarter",ir*95],["half-year",J0/2],["year",J0]];function gN(r,e,t,a){var n=Kr(e),i=Kr(t),o=function(d){return j0(n,d,a)===j0(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function yN(r,e){return r/=ir,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function mN(r){var e=30*ir;return r/=e,r>6?6:r>3?3:r>2?2:1}function _N(r){return r/=Es,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function l_(r,e){return r/=e?Xg:Zg,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function SN(r){return w2(r,!0)}function xN(r,e,t){var a=new Date(r);switch(lo(e)){case"year":case"month":a[NC(t)](0);case"day":a[VC(t)](1);case"hour":a[zC(t)](0);case"minute":a[FC(t)](0);case"second":a[GC(t)](0),a[HC(t)](0)}return a.getTime()}function wN(r,e,t,a){var n=1e4,i=OC,o=0;function s(D,M,L,I,P,R,E){for(var B=new Date(M),O=M,z=B[I]();O<L&&O<=a[1];)E.push({value:O}),z+=D,B[P](z),O=B.getTime();E.push({value:O,notAdd:!0})}function l(D,M,L){var I=[],P=!M.length;if(!gN(lo(D),a[0],a[1],t)){P&&(M=[{value:xN(new Date(a[0]),D,t)},{value:a[1]}]);for(var R=0;R<M.length-1;R++){var E=M[R].value,B=M[R+1].value;if(E!==B){var O=void 0,z=void 0,H=void 0,$=!1;switch(D){case"year":O=Math.max(1,Math.round(e/ir/365)),z=qg(t),H=H3(t);break;case"half-year":case"quarter":case"month":O=mN(e),z=uo(t),H=NC(t);break;case"week":case"half-week":case"day":O=yN(e),z=Ih(t),H=VC(t),$=!0;break;case"half-day":case"quarter-day":case"hour":O=_N(e),z=js(t),H=zC(t);break;case"minute":O=l_(e,!0),z=Ph(t),H=FC(t);break;case"second":O=l_(e,!1),z=Rh(t),H=GC(t);break;case"millisecond":O=SN(e),z=Eh(t),H=HC(t);break}s(O,E,B,z,H,$,I),D==="year"&&L.length>1&&R===0&&L.unshift({value:L[0].value-O})}}for(var R=0;R<I.length;R++)L.push(I[R]);return I}}for(var u=[],f=[],h=0,v=0,c=0;c<i.length&&o++<n;++c){var d=lo(i[c]);if(!!z3(i[c])){l(i[c],u[u.length-1]||[],f);var p=i[c+1]?lo(i[c+1]):null;if(d!==p){if(f.length){v=h,f.sort(function(D,M){return D.value-M.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}}for(var S=Et(G(u,function(D){return Et(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),w=[],x=S.length-1,c=0;c<S.length;++c)for(var b=S[c],C=0;C<b.length;++C)w.push({value:b[C].value,level:x-c});w.sort(function(D,M){return D.value-M.value});for(var T=[],c=0;c<w.length;++c)(c===0||w[c].value!==w[c-1].value)&&T.push(w[c]);return T}Aa.registerClass(CA);var TA=CA,u_=Aa.prototype,Ns=on.prototype,bN=Zt,CN=Math.floor,TN=Math.ceil,mu=Math.pow,pr=Math.log,my=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new on,t._interval=0,t}return e.prototype.getTicks=function(t){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=Ns.getTicks.call(this,t);return G(o,function(s){var l=s.value,u=Zt(mu(this.base,l));return u=l===n[0]&&this._fixMin?_u(u,i[0]):u,u=l===n[1]&&this._fixMax?_u(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,a){var n=pr(this.base);t=pr(Math.max(0,t))/n,a=pr(Math.max(0,a))/n,Ns.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=u_.getExtent.call(this);a[0]=mu(t,a[0]),a[1]=mu(t,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=_u(a[0],i[0])),this._fixMax&&(a[1]=_u(a[1],i[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=pr(t[0])/pr(a),t[1]=pr(t[1])/pr(a),u_.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=fk(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Zt(TN(a[0]/i)*i),Zt(CN(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Ns.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=pr(t)/pr(this.base),zh(t,this._extent)},e.prototype.normalize=function(t){return t=pr(t)/pr(this.base),Fh(t,this._extent)},e.prototype.scale=function(t){return t=Gh(t,this._extent),mu(this.base,t)},e.type="log",e}(Aa),AA=my.prototype;AA.getMinorTicks=Ns.getMinorTicks;AA.getLabel=Ns.getLabel;function _u(r,e){return bN(r,Gr(e))}Aa.registerClass(my);var AN=my,DN=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);J(i)?this._modelMinNum=Su(e,i({min:a[0],max:a[1]})):i!=="dataMin"&&(this._modelMinNum=Su(e,i));var o=this._modelMaxRaw=t.get("max",!0);if(J(o)?this._modelMaxNum=Su(e,o({min:a[0],max:a[1]})):o!=="dataMax"&&(this._modelMaxNum=Su(e,o)),n)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=F(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Tr(l[0],1),Tr(l[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?n?0:NaN:t-i[0]*o),l==null&&(l=e?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Ws(s)||Ws(l)||e&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[LN[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=MN[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),MN={min:"_determinedMin",max:"_determinedMax"},LN={min:"_dataMin",max:"_dataMax"};function DA(r,e,t){var a=r.rawExtentInfo;return a||(a=new DN(r,e,t),r.rawExtentInfo=a,a)}function Su(r,e){return e==null?null:Ws(e)?NaN:r.parse(e)}function MA(r,e){var t=r.type,a=DA(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=yA("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=mA(s),f=IN(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function IN(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=cN(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;A(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;A(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/i,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function po(r,e){var t=e,a=MA(r,t),n=a.extent,i=t.get("splitNumber");r instanceof AN&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Hh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new py({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new TA({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Aa.getClass(e)||on)}}function PN(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Pl(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(e):U(e)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(e):J(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(_y(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function _y(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function RN(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof py?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Pl(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var h=a?a[f]:{value:i[0]+f},v=s(h,f),c=o.getTextRect(v),d=EN(c,o.get("rotate")||0);l?l.union(d):l=d}return l}}function EN(r,e){var t=e*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(t))+Math.abs(n*Math.sin(t)),o=a*Math.abs(Math.sin(t))+Math.abs(n*Math.cos(t)),s=new vt(r.x,r.y,i,o);return s}function Sy(r){var e=r.get("interval");return e==null?"auto":e}function LA(r){return r.type==="category"&&Sy(r.getLabelModel())===0}function Gf(r,e){var t={};return A(r.mapDimensionsAll(e),function(a){t[hA(r,a)]=!0}),St(t)}function kN(r,e,t){e&&A(Gf(e,t),function(a){var n=e.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var Rl=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),f_=[],ON={registerPreprocessor:aA,registerProcessor:nA,registerPostInit:LB,registerPostUpdate:IB,registerUpdateLifecycle:cy,registerAction:ta,registerCoordinateSystem:PB,registerLayout:RB,registerVisual:Ai,registerTransform:kB,registerLoading:iA,registerMap:EB,registerImpl:uB,PRIORITY:wB,ComponentModel:Tt,ComponentView:Ut,SeriesModel:Ht,ChartView:zt,registerComponentModel:function(r){Tt.registerClass(r)},registerComponentView:function(r){Ut.registerClass(r)},registerSeriesModel:function(r){Ht.registerClass(r)},registerChartView:function(r){zt.registerClass(r)},registerSubTypeDefaulter:function(r,e){Tt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){nk(r,e)}};function ct(r){if(F(r)){A(r,function(e){ct(e)});return}dt(f_,r)>=0||(f_.push(r),J(r)&&(r={install:r}),r.install(ON))}var BN=1e-8;function h_(r,e){return Math.abs(r-e)<BN}function Un(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+=sa(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];return(!h_(n[0],s[0])||!h_(n[1],s[1]))&&(a+=sa(n[0],n[1],s[0],s[1],e,t)),a!==0}var NN=[];function ic(r,e){for(var t=0;t<r.length;t++)he(r[t],r[t],e)}function v_(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])&&(Ha(e,e,i),Wa(t,t,i))}}function VN(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],f=i*u-l*o;e+=f,t+=(i+l)*f,a+=(o+u)*f,i=l,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}var IA=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}(),c_=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),d_=function(){function r(e){this.type="linestring",this.points=e}return r}(),PA=function(r){k(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 VN(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 A(o,function(s){s.type==="polygon"?v_(s.exterior,n,i,t):A(s.points,function(l){v_(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 vt(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;t: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(Un(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Un(u[f],t[0],t[1]))continue t;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 vt(t,a,n,i),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var v=f[h];v.type==="polygon"?(ic(v.exterior,u),A(v.interiors,function(c){ic(c,u)})):A(v.points,function(c){ic(c,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}(IA),zN=function(r){k(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=ph(NN),o=t;o&&!o.isGeoSVGGraphicRoot;)ha(i,o.getLocalTransform(),i),o=o.parent;return bo(i,i),he(n,n,i),n},e}(IA);function FN(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var a=e.features;return A(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(!!o)switch(i.type){case"LineString":i.coordinates=RA(s,o,t);break;case"Polygon":oc(s,o,t);break;case"MultiLineString":oc(s,o,t);break;case"MultiPolygon":A(s,function(l,u){return oc(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function oc(r,e,t){for(var a=0;a<r.length;a++)r[a]=RA(r[a],e[a],t)}function RA(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 GN(r,e){return r=FN(r),G(Et(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 c_(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new c_(l[0],l.slice(1)))});break;case"LineString":i.push(new d_([n.coordinates]));break;case"MultiLineString":i.push(new d_(n.coordinates))}var s=new PA(a[e||"name"],i,a.cp);return s.properties=a,s})}var il=Ct();function HN(r){return r.type==="category"?$N(r):YN(r)}function WN(r,e){return r.type==="category"?UN(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function $N(r){var e=r.getLabelModel(),t=EA(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function EA(r,e){var t=kA(r,"labels"),a=Sy(e),n=OA(t,a);if(n)return n;var i,o;return J(a)?i=VA(r,a):(o=a==="auto"?ZN(r):a,i=NA(r,o)),BA(t,a,{labels:i,labelCategoryInterval:o})}function UN(r,e){var t=kA(r,"ticks"),a=Sy(e),n=OA(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),J(a))i=VA(r,a,!0);else if(a==="auto"){var s=EA(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=NA(r,o,!0);return BA(t,a,{ticks:i,tickCategoryInterval:o})}function YN(r){var e=r.scale.getTicks(),t=Pl(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function kA(r,e){return il(r)[e]||(il(r)[e]=[])}function OA(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function BA(r,e,t){return r.push({key:e,value:t}),t}function ZN(r){var e=il(r).autoInterval;return e!=null?e:il(r).autoInterval=r.calculateCategoryInterval()}function XN(r){var e=qN(r),t=Pl(r),a=(e.axisRotate-e.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var d=0,p=0,g=xl(t({value:l}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),c=Math.max(c,p,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=il(r.model),w=r.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function qN(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 NA(r,e,t){var a=Pl(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=LA(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);c&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function VA(r,e,t){var a=r.scale,n=Pl(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var p_=[0,1],KN=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(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return S2(e||this.scale.getExtent(),this._extent)},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._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),g_(a,n.count())),Rt(e,p_,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),g_(a,n.count()));var i=Rt(e,a,p_,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=WN(this,t),n=a.ticks,i=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return JN(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=G(a,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return HN(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return XN(this)},r}();function g_(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function JN(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;A(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]});function v(c,d){return c=Zt(c),d=Zt(d),h?c>d:c<d}}var Mr=KN,rs=Math.PI*2,kn=Jr.CMD,QN=["top","right","bottom","left"];function jN(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 t6(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 f=o*t+r,h=s*t+e;if(Math.abs(a-n)%rs<1e-4)return l[0]=f,l[1]=h,u-t;if(i){var v=a;a=xr(n),n=xr(v)}else a=xr(a),n=xr(n);a>n&&(n+=rs);var c=Math.atan2(s,o);if(c<0&&(c+=rs),c>=a&&c<=n||c+rs>=a&&c+rs<=n)return l[0]=f,l[1]=h,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Hf(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=e+d*h;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function zA(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),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var _r=[];function e6(r,e,t){var a=zA(e.x,e.y,e.width,e.height,r.x,r.y,_r);return t.set(_r[0],_r[1]),a}function r6(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c<f.length;){var d=f[c++];c===1&&(a=f[c],n=f[c+1],i=a,o=n);var p=u;switch(d){case kn.M:i=f[c++],o=f[c++],a=i,n=o;break;case kn.L:p=Hf(a,n,f[c],f[c+1],h,v,_r,!0),a=f[c++],n=f[c++];break;case kn.C:p=t2(a,n,f[c++],f[c++],f[c++],f[c++],f[c],f[c+1],h,v,_r),a=f[c++],n=f[c++];break;case kn.Q:p=r2(a,n,f[c++],f[c++],f[c],f[c+1],h,v,_r),a=f[c++],n=f[c++];break;case kn.A:var g=f[c++],y=f[c++],m=f[c++],_=f[c++],S=f[c++],w=f[c++];c+=1;var x=!!(1-f[c++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,c<=1&&(i=s,o=l);var b=(h-g)*_/m+g;p=t6(g,y,_,S,S+w,x,b,v,_r),a=Math.cos(S+w)*m+g,n=Math.sin(S+w)*_+y;break;case kn.R:i=a=f[c++],o=n=f[c++];var C=f[c++],T=f[c++];p=zA(i,o,C,T,h,v,_r);break;case kn.Z:p=Hf(a,n,i,o,h,v,_r,!0),a=i,n=o;break}p<u&&(u=p,t.set(_r[0],_r[1]))}return u}var wr=new ut,Bt=new ut,qt=new ut,$r=new ut,Vr=new ut;function y_(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||QN,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),h=f&&bo([],f),v=e.get("length2")||0;u&&qt.copy(u);for(var c=0;c<o.length;c++){var d=o[c];jN(d,0,s,wr,$r),ut.scaleAndAdd(Bt,wr,$r,v),Bt.transform(h);var p=r.getBoundingRect(),g=u?u.distance(Bt):r instanceof mt?r6(Bt,r.path,qt):e6(Bt,p,qt);g<l&&(l=g,Bt.transform(f),qt.transform(f),qt.toArray(i[0]),Bt.toArray(i[1]),wr.toArray(i[2]))}FA(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var Wf=[],Ae=new ut;function FA(r,e){if(e<=180&&e>0){e=e/180*Math.PI,wr.fromArray(r[0]),Bt.fromArray(r[1]),qt.fromArray(r[2]),ut.sub($r,wr,Bt),ut.sub(Vr,qt,Bt);var t=$r.len(),a=Vr.len();if(!(t<.001||a<.001)){$r.scale(1/t),Vr.scale(1/a);var n=$r.dot(Vr),i=Math.cos(e);if(i<n){var o=Hf(Bt.x,Bt.y,qt.x,qt.y,wr.x,wr.y,Wf,!1);Ae.fromArray(Wf),Ae.scaleAndAdd(Vr,o/Math.tan(Math.PI-e));var s=qt.x!==Bt.x?(Ae.x-Bt.x)/(qt.x-Bt.x):(Ae.y-Bt.y)/(qt.y-Bt.y);if(isNaN(s))return;s<0?ut.copy(Ae,Bt):s>1&&ut.copy(Ae,qt),Ae.toArray(r[1])}}}}function a6(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,wr.fromArray(r[0]),Bt.fromArray(r[1]),qt.fromArray(r[2]),ut.sub($r,Bt,wr),ut.sub(Vr,qt,Bt);var a=$r.len(),n=Vr.len();if(!(a<.001||n<.001)){$r.scale(1/a),Vr.scale(1/n);var i=$r.dot(e),o=Math.cos(t);if(i<o){var s=Hf(Bt.x,Bt.y,qt.x,qt.y,wr.x,wr.y,Wf,!1);Ae.fromArray(Wf);var l=Math.PI/2,u=Math.acos(Vr.dot(e)),f=l+u-t;if(f>=l)ut.copy(Ae,qt);else{Ae.scaleAndAdd(Vr,s/Math.tan(Math.PI/2-f));var h=qt.x!==Bt.x?(Ae.x-Bt.x)/(qt.x-Bt.x):(Ae.y-Bt.y)/(qt.y-Bt.y);if(isNaN(h))return;h<0?ut.copy(Ae,Bt):h>1&&ut.copy(Ae,qt)}Ae.toArray(r[1])}}}}function m_(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&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function n6(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=Ga(a[0],a[1]),i=Ga(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=Xu([],a[1],a[0],o/n),l=Xu([],a[1],a[2],o/i),u=Xu([],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 f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function xy(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<qs.length;l++){var u=qs[l],f=e[u],h=u==="normal";if(f){var v=f.get("show"),c=h?s:ft(n.states[u]&&n.states[u].ignore,s);if(c||!ft(v,o)){var d=h?a:a&&a.states[u];d&&(d.ignore=!0);continue}a||(a=new Fe,r.setTextGuideLine(a),!h&&(s||!o)&&m_(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),m_(a,!1,u,f)}}if(a){tt(a.style,t),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=n6}}function wy(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<Le.length;a++){var n=Le[a];t[n]=r.getModel([n,e])}return t}function GA(r){for(var e=[],t=0;t<r.length;t++){var a=r[t];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Df(o,i):null;e.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:f,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return e}function HA(r,e,t,a,n,i){var o=r.length;if(o<2)return;r.sort(function(C,T){return C.rect[e]-T.rect[e]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var v=r[h],c=v.rect;l=c[e]-s,l<0&&(c[e]-=l,v.label[e]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=c[e]+c[t]}f>0&&i&&w(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=p.rect[e]-a,m=n-g.rect[e]-g.rect[t]}function S(C,T,D){if(C<0){var M=Math.min(T,-C);if(M>0){w(M*D,0,o);var L=M+C;L<0&&x(-L*D,1)}else x(-C*D,1)}}function w(C,T,D){C!==0&&(u=!0);for(var M=T;M<D;M++){var L=r[M],I=L.rect;I[e]+=C,L.label[e]+=C}}function x(C,T){for(var D=[],M=0,L=1;L<o;L++){var I=r[L-1].rect,P=Math.max(r[L].rect[e]-I[e]-I[t],0);D.push(P),M+=P}if(!!M){var R=Math.min(Math.abs(C)/M,T);if(C>0)for(var L=0;L<o-1;L++){var E=D[L]*R;w(E,0,L+1)}else for(var L=o-1;L>0;L--){var E=D[L-1]*R;w(-E,L,o)}}}function b(C){var T=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(o-1)),M=0;M<o-1;M++)if(T>0?w(D,0,M+1):w(-D,o-M-1,o),C-=D,C<=0)return}return u}function i6(r,e,t,a){return HA(r,"x","width",e,t,a)}function WA(r,e,t,a){return HA(r,"y","height",e,t,a)}function $A(r){var e=[];r.sort(function(p,g){return g.priority-p.priority});var t=new vt(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;t.copy(i.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=i.obb,v=!1,c=0;c<e.length;c++){var d=e[c];if(!!t.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new Df(d.localRect,d.transform)),h||(h=new Df(s,l)),h.intersect(d.obb)){v=!0;break}}}v?(a(u),f&&a(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function o6(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function s6(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:o6(a&&a.shape.points)}}var __=["align","verticalAlign","width","height","fontSize"],we=new la,sc=Ct(),l6=Ct();function xu(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var wu=["x","y","rotation"],u6=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(),f=n.getBoundingRect().plain();vt.applyTransform(f,f,u),u?we.setLocalTransform(u):(we.x=we.y=we.rotation=we.originX=we.originY=0,we.scaleX=we.scaleY=1),we.rotation=xr(we.rotation);var h=n.__hostTarget,v;if(h){v=h.getBoundingRect().plain();var c=h.getComputedTransform();vt.applyTransform(v,v,c)}var d=v&&h.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:we.x,y:we.y,scaleX:we.scaleX,scaleY:we.scaleY,rotation:we.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");!(J(n)||St(n).length)||e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=it(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){return function(){y_(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;J(o.layoutOption)?f=o.layoutOption(s6(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*h:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=W(f.x,t),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=W(f.y,a),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var c=l.getTextGuideLine();c&&(c.setShape({points:f.labelLinePoints}),v=!1)}var d=sc(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<__.length;p++){var g=__[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=GA(this._labelList),i=Et(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Et(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});i6(i,0,t),WA(o,0,a);var s=Et(n,function(l){return l.layoutOption.hideOverlap});$A(s)},r.prototype.processLabelsOverall=function(){var e=this;A(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=sc(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=it(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 f=o.getVisual("drawType");l.stroke=u[f]}var h=s.getModel("labelLine");xy(e,wy(s),l),y_(e,h)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!so(e))){var i=sc(a),o=i.oldLayout,s=it(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=t.getData(s.dataType);if(o){a.attr(o);var v=e.prevStates;v&&(dt(v,"select")>=0&&a.attr(i.oldLayoutSelect),dt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Lt(a,u,t,l)}else if(a.attr(u),!Mo(a).valueAnimation){var h=ft(a.style.opacity,1);a.style.opacity=0,Ft(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};xu(c,u,wu),xu(c,a.states.select,wu)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};xu(d,u,wu),xu(d,a.states.emphasis,wu)}IC(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=l6(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Lt(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,Ft(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r}(),f6=u6,lc=Ct();function h6(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=lc(t).labelManager;n||(n=lc(t).labelManager=new f6),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=lc(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var v6=function(r){k(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){return Ta(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new nt,n=jt("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=jt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Ht),c6=v6;function go(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=vo(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(vo(r,e,t[o]));return i.join(" ")}}function UA(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!F(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 d6=function(r){k(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){this.removeAll();var s=jt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=p6,this._symbolType=t,this.add(s)},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(){_a(this.childAt(0))},e.prototype.downplay=function(){Sa(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=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Lt(v,c,s,a),Ar(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ft(v,c,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,f,h,v,c,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=ie(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Ti(t.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),b=x.fill;if(s instanceof pe){var C=s.style;s.useStyle(V({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},x))}else s.__isEmptyBrush?s.useStyle(V({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,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 M=o&&o.useNameLabel;de(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:b,defaultOpacity:x.opacity});function L(R){return M?t.getName(R):go(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),$t(this,v,c,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=it(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&rn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();rn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Bo(t.getItemVisual(a,"symbolSize"))},e}(nt);function p6(r,e){this.parent.drift(r,e)}var El=d6;function uc(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function S_(r){return r!=null&&!et(r)&&(r={isIgnore:r}),r||{}}function x_(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:ie(e),cursorStyle:e.get("cursor")}}var g6=function(){function r(e){this.group=new nt,this._SymbolCtor=e||El}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=S_(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=x_(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(uc(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),d=f(h);if(!uc(e,d,h,t)){a.remove(c);return}var p=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)a.remove(c),c=new o(e,h,l,u),c.setPosition(d);else{c.updateData(e,h,l,u);var y={x:d[0],y:d[1]};s?c.attr(y):Lt(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=x_(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=S_(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(uc(t,o,i,a)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){vn(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}(),kl=g6;function YA(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=y6(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=G(r.dimensions,function(d){return e.mapDimension(d)}),v=!1,c=e.getCalculationInfo("stackResultDimension");return nn(e,h[0])&&(v=!0,h[0]=c),nn(e,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function y6(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:Mt(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function ZA(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 m6(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 _6(r,e,t,a,n,i,o,s){for(var l=m6(r,e),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=YA(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],w=!0,x=void 0,b=void 0;switch(S.cmd){case"=":x=S.idx*2,b=S.idx1*2;var C=y[x],T=y[x+1],D=m[b],M=m[b+1];(isNaN(C)||isNaN(T))&&(C=D,T=M),u.push(C,T),f.push(D,M),h.push(t[x],t[x+1]),v.push(a[b],a[b+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=n.dataToPoint([e.get(I[0],L),e.get(I[1],L)]);b=L*2,u.push(P[0],P[1]),f.push(m[b],m[b+1]);var R=ZA(g,n,e,L);h.push(R[0],R[1]),v.push(a[b],a[b+1]),p.push(e.getRawIndex(L));break;case"-":w=!1}w&&(c.push(S),d.push(d.length))}d.sort(function(pt,xt){return p[pt]-p[xt]});for(var E=u.length,B=Wr(E),O=Wr(E),z=Wr(E),H=Wr(E),$=[],_=0;_<d.length;_++){var X=d[_],Q=_*2,j=X*2;B[Q]=u[j],B[Q+1]=u[j+1],O[Q]=f[j],O[Q+1]=f[j+1],z[Q]=h[j],z[Q+1]=h[j+1],H[Q]=v[j],H[Q+1]=v[j+1],$[_]=c[X]}return{current:B,next:O,stackedOnCurrent:z,stackedOnNext:H,status:$}}var ka=Math.min,Oa=Math.max;function fi(r,e){return isNaN(r)||isNaN(e)}function Cp(r,e,t,a,n,i,o,s,l){for(var u,f,h,v,c,d,p=t,g=0;g<a;g++){var y=e[p*2],m=e[p*2+1];if(p>=n||p<0)break;if(fi(y,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var w=p+i,x=e[w*2],b=e[w*2+1];x===y&&b===m&&g<a;)g++,w+=i,p+=i,x=e[w*2],b=e[w*2+1],y=e[p*2],m=e[p*2+1],_=y-u,S=m-f;var C=g+1;if(l)for(;fi(x,b)&&C<a;)C++,w+=i,x=e[w*2],b=e[w*2+1];var T=.5,D=0,M=0,L=void 0,I=void 0;if(C>=a||fi(x,b))c=y,d=m;else{D=x-u,M=b-f;var P=y-u,R=x-y,E=m-f,B=b-m,O=void 0,z=void 0;if(s==="x"){O=Math.abs(P),z=Math.abs(R);var H=D>0?1:-1;c=y-H*O*o,d=m,L=y+H*z*o,I=m}else if(s==="y"){O=Math.abs(E),z=Math.abs(B);var $=M>0?1:-1;c=y,d=m-$*O*o,L=y,I=m+$*z*o}else O=Math.sqrt(P*P+E*E),z=Math.sqrt(R*R+B*B),T=z/(z+O),c=y-D*o*(1-T),d=m-M*o*(1-T),L=y+D*o*T,I=m+M*o*T,L=ka(L,Oa(x,y)),I=ka(I,Oa(b,m)),L=Oa(L,ka(x,y)),I=Oa(I,ka(b,m)),D=L-y,M=I-m,c=y-D*O/z,d=m-M*O/z,c=ka(c,Oa(u,y)),d=ka(d,Oa(f,m)),c=Oa(c,ka(u,y)),d=Oa(d,ka(f,m)),D=y-c,M=m-d,L=y+D*z/O,I=m+M*z/O}r.bezierCurveTo(h,v,c,d,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var XA=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),S6=function(r){k(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:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new XA},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&fi(n[o*2-2],n[o*2-1]);o--);for(;i<o&&fi(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Cp(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=Jr.CMD,s,l,u=a==="x",f=[],h=0;h<i.length;){var v=i[h++],c=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=i[h++],l=i[h++];break;case o.L:if(c=i[h++],d=i[h++],_=u?(t-s)/(c-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=d;break;case o.C:c=i[h++],d=i[h++],p=i[h++],g=i[h++],y=i[h++],m=i[h++];var w=u?mf(s,c,p,y,t,f):mf(l,d,g,m,t,f);if(w>0)for(var x=0;x<w;x++){var b=f[x];if(b<=1&&b>=0){var S=u?ae(l,d,g,m,b):ae(s,c,p,y,b);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(mt),x6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(XA),qA=function(r){k(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 x6},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&&fi(n[s*2-2],n[s*2-1]);s--);for(;o<s&&fi(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Cp(t,n,o,s,s,1,a.smooth,l,a.connectNulls);Cp(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e}(mt);function KA(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var h=new bt({shape:{x:o,y:s,width:l,height:u}});if(e){var v=r.getBaseAxis(),c=v.isHorizontal(),d=v.inverse;c?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=J(n)?function(g){n(g,h)}:null;Ft(h,{shape:{width:l,height:u,x:o,y:s}},t,null,a,p)}return h}function JA(r,e,t){var a=r.getArea(),n=Zt(a.r0,1),i=Zt(a.r,1),o=new Ve({shape:{cx:Zt(r.cx,1),cy:Zt(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,Ft(o,{shape:{endAngle:a.endAngle,r:i}},t)}return o}function Wh(r,e,t,a,n){if(r){if(r.type==="polar")return JA(r,e,t);if(r.type==="cartesian2d")return KA(r,e,t,a,n)}else return null;return null}function Di(r,e){return r.type===e}function w_(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function b_(r){for(var e=1/0,t=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(s)||(t=Math.min(s,t),n=Math.max(s,n))}return[[e,t],[a,n]]}function C_(r,e){var t=b_(r),a=t[0],n=t[1],i=b_(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function T_(r){return Mt(r)?r:r?.5:0}function w6(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=Wr(a*2),i=0;i<a;i++){var o=ZA(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Ba(r,e,t,a){var n=e.getBaseAxis(),i=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(a){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),t){case"end":l[i]=f[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var v=(u[i]+f[i])/2,c=[];l[i]=c[i]=v,l[1-i]=u[1-i],c[1-i]=f[1-i],o.push(l[0],l[1]),o.push(c[0],c[1]);break;default:l[i]=u[i],l[1-i]=f[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function b6(r,e){var t=[],a=r.length,n,i;function o(f,h,v){var c=f.coord,d=(v-c)/(h.coord-c),p=CE(d,[f.color,h.color]);return{coord:v,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 C6(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){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){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=b6(u,n==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[c-1].coord+d,y=g-p;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new Cl(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function T6(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(!!i&&!(n&&A6(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function A6(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(El.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function D6(r,e){return isNaN(r)||isNaN(e)}function M6(r){for(var e=r.length/2;e>0&&D6(r[e*2-2],r[e*2-1]);e--);return e-1}function A_(r,e){return[r[e*2],r[e*2+1]]}function L6(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],!(isNaN(o)||isNaN(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 QA(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Le.length;e++)if(r.get([Le[e],"endLabel","show"]))return!0;return!1}function fc(r,e,t,a){if(Di(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=QA(a)?function(c,d){r._endLabelOnDuring(c,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=KA(e,t,a,function(){var c=r._endLabel;c&&t&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,f),f}else return JA(e,t,a)}function I6(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 P6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new nt,a=new kl;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),f=t.getModel("areaStyle"),h=l.getLayout("points")||[],v=o.type==="polar",c=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=!a.ssr&&t.isAnimationEnabled(),_=!f.isEmpty(),S=f.get("origin"),w=YA(o,l,S),x=_&&w6(o,l,w),b=t.get("showSymbol"),C=t.get("connectNulls"),T=b&&!v&&T6(t,l,o),D=this._data;D&&D.eachItemGraphicEl(function(xt,gt){xt.__temp&&(s.remove(xt),D.setItemGraphicEl(gt,null))}),b||d.remove(),s.add(y);var M=v?!1:t.get("step"),L;o&&o.getArea&&t.get("clip",!0)&&(L=o.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=C6(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&c.type===o.type&&M===this._step))b&&d.updateData(l,{isIgnore:T,clipShape:L,disableAnimation:!0,getSymbolPoint:function(xt){return[h[xt*2],h[xt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,L),M&&(h=Ba(h,o,M,C),x&&(x=Ba(x,o,M,C))),p=this._newPolyline(h),_?g=this._newPolygon(h,x):g&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,yi(I)),y.setClipPath(fc(this,o,!0,t));else{_&&!g?g=this._newPolygon(h,x):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,yi(I));var P=y.getClipPath();if(P){var R=fc(this,o,!1,t);Ft(P,{shape:R.shape},t)}else y.setClipPath(fc(this,o,!0,t));b&&d.updateData(l,{isIgnore:T,clipShape:L,disableAnimation:!0,getSymbolPoint:function(xt){return[h[xt*2],h[xt*2+1]]}}),(!w_(this._stackedOnPoints,x)||!w_(this._points,h))&&(m?this._doUpdateAnimation(l,x,o,n,M,S,C):(M&&(h=Ba(h,o,M,C),x&&(x=Ba(x,o,M,C))),p.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:x})))}var E=t.getModel("emphasis"),B=E.get("focus"),O=E.get("blurScope"),z=E.get("disabled");if(p.useStyle(tt(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),ce(p,t,"lineStyle"),p.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=p.getState("emphasis").style;H.lineWidth=+p.style.lineWidth+1}it(p).seriesIndex=t.seriesIndex,$t(p,B,O,z);var $=T_(t.get("smooth")),X=t.get("smoothMonotone");if(p.setShape({smooth:$,smoothMonotone:X,connectNulls:C}),g){var Q=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(tt(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(j=T_(Q.get("smooth"))),g.setShape({smooth:$,stackedOnSmooth:j,smoothMonotone:X,connectNulls:C}),ce(g,t,"areaStyle"),it(g).seriesIndex=t.seriesIndex,$t(g,B,O,z)}var pt=function(xt){i._changePolyState(xt)};l.eachItemGraphicEl(function(xt){xt&&(xt.onHoverStateChange=pt)}),this._polyline.onHoverStateChange=pt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){it(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=di(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;u=new El(o,s),u.x=f,u.