0)return P.error(t("Config.Safe.index_95"));await H(Ie()),j()};return(a,t)=>{const l=Ue,i=ye,s=e;return le(),re(s,{label:a.$t("Config.Safe.index_91")},{content:se(()=>[de("div",dt,[ie(l,{value:oe(ze).limitIp,"onUpdate:value":t[0]||(t[0]=e=>oe(ze).limitIp=e),placeholder:a.$t("Config.Safe.index_92")},null,8,["value","placeholder"])]),ie(i,{class:"ml-12px",type:"primary",onClick:n},{default:se(()=>[fe(ue(a.$t("Public.Btn.Save")),1)]),_:1})]),desc:se(()=>[de("span",null,ue(a.$t("Config.Safe.index_93")),1),de("span",rt,ue(a.$t("Config.Safe.index_94")),1)]),_:1},8,["label"])}}}),ft={class:"p-20px"},pt={class:"text-error"},ct={class:"text-error"},_t={class:"w-210px"},xt=J({__name:"set",setup(e,{expose:a}){const{t:t}=Q(),n=ee(),l=ee(null),i=ae({port:D(ze.value.port)}),s={port:{trigger:["blur","input"],validator:()=>!!F(i.port)||new Error(t("Config.Safe.index_104"))}};return a({onConfirm:async()=>{var e;await n.value.validate(),await(null==(e=l.value)?void 0:e.validate());const a=Ie();a.port="".concat(i.port),await A(a),j("".concat(location.protocol,"//").concat(location.hostname,":").concat(i.port).concat(location.pathname))}}),(e,a)=>{const t=Ee,o=Be,d=be,r=x,u=Te;return le(),ne("div",ft,[ie(t,{class:"mb-20px"},{default:se(()=>[de("li",pt,ue(e.$t("Config.Safe.index_100")),1),de("li",ct,ue(e.$t("Config.Safe.index_101")),1)]),_:1}),ie(r,{ref_key:"formRef",ref:l,model:oe(i),rules:s},{default:se(()=>[ie(d,{label:e.$t("Config.Safe.index_96"),path:"port","label-width":"auto","label-style":{paddingLeft:"24px"}},{default:se(()=>[de("div",_t,[ie(o,{value:oe(i).port,"onUpdate:value":a[0]||(a[0]=e=>oe(i).port=e),min:1,max:65535,"show-button":!1,placeholder:""},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"]),ie(u,{ref_key:"riskRef",ref:n},{default:se(()=>[fe(ue(e.$t("Config.Safe.index_102"))+" ",1),de("a",{class:"bt-link",href:"https://www.aapanel.com/forum/d/599-how-to-release-the-aapanel-port",target:"_blank",onClick:Ce(()=>!1,["stop"])},ue(e.$t("Config.Safe.index_103")),1)]),_:1},512)])}}}),gt={class:"w-260px"},mt={class:"text-error"},vt=J({__name:"index",setup(a){const{t:t}=Q(),l=async()=>{n({title:t("Config.Safe.index_99"),width:400,footer:!0,component:xt})};return(a,t)=>{const n=Ue,i=ye,s=e;return le(),re(s,{label:a.$t("Config.Safe.index_96")},{content:se(()=>[de("div",gt,[ie(n,{value:oe(ze).port,disabled:!0,placeholder:""},null,8,["value"])]),ie(i,{class:"ml-12px",type:"primary",onClick:l},{default:se(()=>[fe(ue(a.$t("Public.Btn.Set")),1)]),_:1})]),desc:se(()=>[de("span",null,ue(a.$t("Config.Safe.index_97")),1),de("span",mt,ue(a.$t("Config.Safe.index_98")),1)]),_:1},8,["label"])}}}),Ct={class:"px-20px pt-28px pb-8px"},St={class:"w-240px"},bt=J({__name:"set",setup(e,{expose:a}){const{t:t}=Q(),n=ee(null),l=ae({adminPath:ze.value.adminPath}),i={adminPath:{trigger:["blur","input"],validator:()=>""!==l.adminPath.trim()||new Error(t("Config.Safe.index_108"))}};return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await V({admin_path:K(l.adminPath)}),ze.value.adminPath=l.adminPath}}),(e,a)=>{const t=Ue,s=be,o=x;return le(),ne("div",Ct,[ie(o,{ref_key:"formRef",ref:n,model:oe(l),rules:i},{default:se(()=>[ie(s,{label:e.$t("Config.Safe.index_105"),path:"adminPath"},{default:se(()=>[de("div",St,[ie(t,{value:oe(l).adminPath,"onUpdate:value":a[0]||(a[0]=e=>oe(l).adminPath=e),placeholder:""},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}}),ht={class:"w-260px"},yt=J({__name:"index",setup(a){const{t:t}=Q(),l=async()=>{n({title:t("Config.Safe.index_107"),width:440,footer:!0,component:bt})};return(a,t)=>{const n=Ue,i=ye,s=e;return le(),re(s,{label:a.$t("Config.Safe.index_105")},{content:se(()=>[de("div",ht,[ie(n,{value:oe(ze).adminPath,disabled:!0,placeholder:""},null,8,["value"])]),ie(i,{class:"ml-12px",type:"primary",onClick:l},{default:se(()=>[fe(ue(a.$t("Public.Btn.Set")),1)]),_:1})]),desc:se(()=>[de("span",null,ue(a.$t("Config.Safe.index_106")),1)]),_:1},8,["label"])}}}),wt={class:"px-20px py-24px"},$t={class:"w-200px"},kt={class:"text-error"},Pt=J({__name:"set",setup(e,{expose:a}){const{t:t}=Q(),n=ee(null),i=ae({status_code:ze.value.statusCode}),s={},o=[{value:403,label:t("Config.Safe.index_111")},{value:404,label:t("Config.Safe.index_112")},{value:416,label:t("Config.Safe.index_113")},{value:408,label:t("Config.Safe.index_114")},{value:400,label:t("Config.Safe.index_115")},{value:401,label:t("Config.Safe.index_116")}];return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await M({status_code:i.status_code}),ze.value.statusCode=i.status_code}}),(e,a)=>{const t=Le,d=be,r=x,u=l;return le(),ne("div",wt,[ie(r,{ref_key:"formRef",ref:n,model:oe(i),rules:s},{default:se(()=>[ie(d,{label:e.$t("Config.Safe.index_118"),path:"adminPath"},{default:se(()=>[de("div",$t,[ie(t,{value:oe(i).status_code,"onUpdate:value":a[0]||(a[0]=e=>oe(i).status_code=e),options:o},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"]),ie(u,null,{default:se(()=>[de("li",kt,ue(e.$t("Config.Safe.index_119")),1)]),_:1})])}}}),Ut={class:"w-260px"},jt=J({__name:"index",setup(a){const{t:t}=Q(),l=new Map([[403,t("Config.Safe.index_111")],[404,t("Config.Safe.index_112")],[416,t("Config.Safe.index_113")],[408,t("Config.Safe.index_114")],[400,t("Config.Safe.index_115")],[401,t("Config.Safe.index_116")]]),i=Se(()=>l.get(ze.value.statusCode)||"--"),s=async()=>{n({title:t("Config.Safe.index_117"),width:420,footer:!0,component:Pt})};return(a,t)=>{const n=Ue,l=ye,o=e;return le(),re(o,{label:a.$t("Config.Safe.index_109")},{content:se(()=>[de("div",Ut,[ie(n,{value:oe(i),disabled:!0,placeholder:""},null,8,["value"])]),ie(l,{class:"ml-12px",type:"primary",onClick:s},{default:se(()=>[fe(ue(a.$t("Public.Btn.Set")),1)]),_:1})]),desc:se(()=>[de("span",null,ue(a.$t("Config.Safe.index_110")),1)]),_:1},8,["label"])}}}),Bt={class:"px-20px py-24px"},Lt={class:"w-120px"},Rt={class:"text-error"},zt=J({__name:"set",setup(e,{expose:a}){const{t:t}=Q(),n=ee(null),i=ae({day:ze.value.pwdSetDay}),s={day:{trigger:["blur","input"],validator:()=>i.day<0?new Error(t("Config.Safe.index_128")):!(!i.day&&0!==i.day)||new Error(t("Config.Safe.index_129"))}};return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await N({expire:i.day}),He()}}),(e,a)=>{const t=Be,o=be,d=x,r=l;return le(),ne("div",Bt,[ie(d,{ref_key:"formRef",ref:n,model:oe(i),rules:s},{default:se(()=>[ie(o,{label:e.$t("Config.Safe.index_120"),path:"day"},{default:se(()=>[de("div",Lt,[ie(t,{value:oe(i).day,"onUpdate:value":a[0]||(a[0]=e=>oe(i).day=e),min:0,"show-button":!1,placeholder:""},{suffix:se(()=>[fe(ue(e.$t("Public.Unit.Day",oe(i).day)),1)]),_:1},8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"]),ie(r,{class:"mt-4px"},{default:se(()=>[de("li",Rt,ue(e.$t("Config.Safe.index_126")),1),de("li",null,ue(e.$t("Config.Safe.index_127")),1)]),_:1})])}}}),Et={class:"w-260px"},Tt=J({__name:"index",setup(a){const{t:t}=Q(),l=Se(()=>{const{pwdSetDay:e,pwdExpireDay:a,pwdExpireTime:n}=ze.value;return 0===e?t("Config.Safe.index_122"):t("Config.Safe.index_123",[W(n),a])}),i=async()=>{n({title:t("Config.Safe.index_124"),width:360,footer:!0,component:zt})};return(a,t)=>{const n=Ue,s=ye,o=e;return le(),re(o,{label:a.$t("Config.Safe.index_120")},{content:se(()=>[de("div",Et,[ie(n,{value:oe(l),disabled:!0,placeholder:""},null,8,["value"])]),ie(s,{class:"ml-12px",type:"primary",onClick:i},{default:se(()=>[fe(ue(a.$t("Public.Btn.Set")),1)]),_:1})]),desc:se(()=>[de("span",null,ue(a.$t("Config.Safe.index_121")),1)]),_:1},8,["label"])}}}),It={class:"p-20px"},Ht={class:"mb-12px"},Dt={class:"mb-12px"},At={class:"mb-20px"},Ft=J({__name:"set-add-result",props:{address:{default:""}},setup(e){const a=e,t=()=>{o(a.address)};return(e,a)=>{const n=Fe,i=ye,s=l;return le(),ne("div",It,[de("div",Ht,ue(e.$t("Config.Safe.index_147")),1),de("div",Dt,[ie(n,{value:e.address,readonly:"",rows:2},null,8,["value"])]),de("div",At,[ie(i,{type:"primary",onClick:t},{default:se(()=>[fe(ue(e.$t("Public.Btn.Copy")),1)]),_:1})]),ie(s,null,{default:se(()=>[de("li",null,ue(e.$t("Config.Safe.index_148")),1),de("li",null,ue(e.$t("Config.Safe.index_149")),1),de("li",null,ue(e.$t("Config.Safe.index_150")),1)]),_:1})])}}}),Vt={class:"p-20px pt-28px pb-8px"},Kt={class:"flex mb-24px"},Mt={class:"min-w-32px"},Nt={class:"flex-1 ml-16px"},Wt={class:"leading-24px text-error text-14px"},Zt={class:"w-160px"},qt=J({__name:"set-add",emits:["refresh"],setup(e,{expose:a,emit:t}){const l=t,{t:i}=Q(),s=C(),o=ee(null),d=ae({type:3,day:1}),r={day:{trigger:["blur","input"],validator:()=>0!==d.type||!(d.day<=0||d.day%1!=0)||new Error(i("Config.Safe.index_145"))}},u=e=>e%1==0,f=(e="")=>{const a="".concat(window.location.protocol,"//").concat(window.location.host),t="".concat(a,"/login?tmp_token=").concat(e);n({title:i("Config.Safe.index_146"),width:580,data:{address:t},component:Ft})};return a({onConfirm:async()=>{var e;await(null==(e=o.value)?void 0:e.validate());const{message:a}=await Z({expire_time:60*(0===d.type?24*d.day:d.type)*60+Math.floor(Date.now()/1e3)});$(a)&&(f(a.token),P.success(a.msg),l("refresh"))}}),(e,a)=>{const t=S,n=Re,l=ke,i=be,f=Be,p=x;return le(),ne("div",Vt,[de("div",Kt,[de("div",Mt,[ie(t,{name:"base-warning",size:"32",color:oe(s).warningColor},null,8,["color"])]),de("div",Nt,[de("div",Wt,[de("div",null,ue(e.$t("Config.Safe.index_140")),1),de("div",null,ue(e.$t("Config.Safe.index_141")),1)])])]),ie(p,{ref_key:"formRef",ref:o,model:oe(d),rules:r,"label-width":"140"},{default:se(()=>[ie(i,{label:e.$t("Config.Safe.index_142")},{default:se(()=>[ie(l,{value:oe(d).type,"onUpdate:value":a[0]||(a[0]=e=>oe(d).type=e)},{default:se(()=>[ie(n,{value:3},{default:se(()=>[fe("3 "+ue(e.$t("Public.Unit.Hour",3)),1)]),_:1}),ie(n,{value:6},{default:se(()=>[fe("6 "+ue(e.$t("Public.Unit.Hour",6)),1)]),_:1}),ie(n,{value:9},{default:se(()=>[fe("9 "+ue(e.$t("Public.Unit.Hour",9)),1)]),_:1}),ie(n,{value:12},{default:se(()=>[fe("12 "+ue(e.$t("Public.Unit.Hour",12)),1)]),_:1}),ie(n,{value:0},{default:se(()=>[fe(ue(e.$t("Config.Safe.index_143")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),xe(ie(i,{label:e.$t("Config.Safe.index_144"),path:"day"},{default:se(()=>[de("div",Zt,[ie(f,{value:oe(d).day,"onUpdate:value":a[1]||(a[1]=e=>oe(d).day=e),min:1,"show-button":!1,validator:u},{suffix:se(()=>[fe(ue(e.$t("Public.Unit.Day",oe(d).day)),1)]),_:1},8,["value"])])]),_:1},8,["label"]),[[ge,0===oe(d).type]])]),_:1},8,["model"])])}}}),Ot={class:"p-20px h-500px"},Xt=J({__name:"set-log",props:{id:{default:0}},setup(e){const a=e,{t:t}=Q(),{table:n,columns:l,setLoading:i}=d([{key:"type",title:t("Config.Safe.index_151"),width:120,ellipsis:{tooltip:!0}},{key:"addtime",title:t("Config.Safe.index_152"),width:140},{key:"log",title:t("Config.Safe.index_153"),ellipsis:{tooltip:!0}}]),s=async()=>{try{i(!0);const{message:e}=await q({id:a.id});n.data=v(e)?e:[]}finally{i(!1)}};return s(),(e,a)=>{const t=ye,i=r,o=We;return le(),ne("div",Ot,[ie(o,null,{toolsLeft:se(()=>[ie(t,{onClick:s},{default:se(()=>[fe(ue(e.$t("Public.Btn.Refresh")),1)]),_:1})]),table:se(()=>[ie(i,{"max-height":360,loading:oe(n).loading,data:oe(n).data,columns:oe(l)},null,8,["loading","data","columns"])]),_:1})])}}}),Yt={class:"h-500px p-20px"},Gt=J({__name:"set",setup(e){const{t:a}=Q(),t=()=>{n({title:a("Config.Safe.index_146"),width:580,footer:!0,component:qt,data:{onRefresh:()=>{x()}}})},{table:l,columns:i,setLoading:o}=d([{key:"login_addr",title:a("Config.Safe.index_154"),ellipsis:{tooltip:!0},render:e=>e.login_addr||a("Config.Safe.index_155")},{key:"state",title:a("Config.Safe.index_156"),width:100,render:e=>-1===e.state?ie("span",{class:"text-error"},[a("Config.Safe.index_166")]):1===e.state?a("Config.Safe.index_157"):ie("span",{class:"text-primary"},[a("Config.Safe.index_155")])},{key:"login_time",title:a("Config.Safe.index_158"),width:140,render:e=>0===e.login_time?a("Config.Safe.index_155"):W(e.login_time)},{key:"expire",title:a("Config.Safe.index_159"),width:140,render:e=>W(e.expire)},u({width:160,options:e=>[{label:a("Config.Safe.index_160"),type:"error",show:e.online_state,onClick:()=>{p(e)}},{label:a("Config.Safe.index_161"),show:1===e.state||-1===e.state,onClick:()=>{f(e)}},{label:a("Public.Btn.Del"),onClick:()=>{c(e)}}]})]),f=e=>{n({title:a("Config.Safe.index_161"),width:700,data:{id:e.id},component:Xt})},p=e=>{s({title:a("Config.Safe.index_162",[e.login_addr]),content:a("Config.Safe.index_163",[e.login_addr]),onConfirm:async()=>{await O({id:e.id}),x()}})},c=e=>{s({title:a("Config.Safe.index_164"),content:a("Config.Safe.index_165"),onConfirm:async()=>{await X({id:e.id}),x()}})},_=ae({p:1,rows:10}),x=async()=>{try{o(!0);const{message:e}=await Y(_e(_));$(e)&&(l.data=v(e.data)?e.data:[],l.total=G(e.page))}finally{o(!1)}};return x(),(e,a)=>{const n=ye,s=r,o=Ze,d=We;return le(),ne("div",Yt,[ie(d,null,{toolsLeft:se(()=>[ie(n,{type:"primary",onClick:t},{default:se(()=>[fe(ue(e.$t("Config.Safe.index_146")),1)]),_:1})]),table:se(()=>[ie(s,{"max-height":340,loading:oe(l).loading,data:oe(l).data,columns:oe(i)},null,8,["loading","data","columns"])]),pageRight:se(()=>[ie(o,{page:oe(_).p,"onUpdate:page":a[0]||(a[0]=e=>oe(_).p=e),"page-size":oe(_).rows,"onUpdate:pageSize":a[1]||(a[1]=e=>oe(_).rows=e),"item-count":oe(l).total,onRefresh:x},null,8,["page","page-size","item-count"])]),_:1})])}}}),Jt=J({__name:"index",setup(a){const{t:t}=Q(),l=()=>{n({title:t("Config.Safe.index_139"),width:740,component:Gt})};return(a,t)=>{const n=ye,i=e;return le(),re(i,{label:a.$t("Config.Safe.index_137")},{content:se(()=>[ie(n,{type:"primary",onClick:l},{default:se(()=>[fe(ue(a.$t("Public.Btn.Set")),1)]),_:1})]),desc:se(()=>[de("span",null,ue(a.$t("Config.Safe.index_138")),1)]),_:1},8,["label"])}}}),Qt=z(J({__name:"config",setup:e=>(e,t)=>(le(),ne("div",null,[ie(a,null,{default:se(()=>[fe(ue(e.$t("Config.Safe.index_1")),1)]),_:1}),ie(Ye),ie($a),ie(Ha),ie(tt),ie(lt),ie(ot),ie(ut),ie(vt),ie(yt),ie(jt),ie(Tt),ie(Jt)]))}),[["__scopeId","data-v-919bcd3c"]]);export{Qt as S};
+import{_ as e,a}from"./index106.js?v=1763625242172";import{d as t,u as n,_ as l,a as i,i as s,c as o,h as d,f as r}from"./public.js?v=1763625242172";import{a as u,g as f,s as p,b as c}from"./alarm.js?v=1763625242172";import{_}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{_ as x}from"./index.vue_vue_type_script_setup_true_lang11.js?v=1763625242172";import{x as g,T as m,ap as v,aU as C,aV as b,_ as S,aW as h,aX as y,c as w,m as $,am as k,aY as P,aZ as U,P as j,a_ as B,a$ as L,b0 as R,p as z,b1 as E,b2 as T,b3 as I,b4 as H,l as D,b5 as A,b6 as F,b7 as V,O as K,b8 as M,b9 as X,a9 as Z,ba as q,bb as N,bc as O,bd as W,be as Y,y as G}from"./page_layout.js?v=1763625242172";import{k as J,P as Q,r as ee,e as ae,x as te,R as ne,S as le,X as ie,a3 as se,V as oe,U as de,a2 as re,j as ue,a4 as fe,aj as pe,an as ce,N as _e,l as xe,v as ge,ab as me,F as ve,au as Ce,c as be}from"./vue.js?v=1763625242172";import{dj as Se,dP as he,aC as ye,_ as we,dk as $e,dU as ke,dT as Pe,au as Ue,d9 as je,df as Be,dV as Le,dZ as Re}from"./naive.js?v=1763625242172";import{s as ze,_ as Ee,f as Te,h as Ie,c as He}from"./index105.js?v=1763625242172";import{P as De}from"./open.js?v=1763625242172";import{_ as Ae}from"./index107.js?v=1763625242172";import{_ as Fe}from"./index99.js?v=1763625242172";import{s as Ve,a as Ke,g as Me}from"./ssl-lets-progress.js?v=1763625242172";import{_ as Xe}from"./index.vue_vue_type_script_setup_true_lang9.js?v=1763625242172";import{_ as Ze}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1763625242172";import{_ as qe}from"./index.vue_vue_type_script_setup_true_lang7.js?v=1763625242172";const Ne={class:"p-20px pt-28px pb-8px"},Oe={class:"w-300px"},We=J({__name:"set",props:{open:{type:Boolean,default:!1},taskList:{default:()=>[]}},emits:["refresh"],setup(e,{expose:a,emit:n}){const l=e,i=n,{t:s}=Q(),o=ee(null),d=ae({status:!0,method:[]}),r={method:{trigger:["change"],validator:()=>0!==d.method.length||new Error(s("Config.Safe.index_7"))}},p=te([]),{loading:c,setLoading:v}=t();return(()=>{const{open:e,taskList:a}=l;a.length>0&&(d.status=e||a[0].status,d.method=a[0].sender)})(),(async()=>{try{v(!0);const{message:e}=await f();p.value=g(e)?e:[]}finally{v(!1)}})(),a({onConfirm:async()=>{var e;await(null==(e=o.value)?void 0:e.validate()),await u((()=>{const e=p.value.filter((e=>"panel_safe_push"===e.source))[0];return{template_id:e.id,task_data:{task_data:{tid:e.id,type:e.source,title:e.title,status:d.status,count:0,interval:600,project:"",help:600},sender:d.method,number_rule:{day_num:0,total:0},time_rule:{send_interval:0,time_range:[0,86399]}}}})()),i("refresh")}}),(e,a)=>{const t=Se,n=he,l=x,i=_,s=m;return ne(),le("div",Ne,[ie(s,{show:oe(c)},{default:se((()=>[ie(i,{ref_key:"formRef",ref:o,model:oe(d),rules:r},{default:se((()=>[ie(n,{label:e.$t("Config.Safe.index_5")},{default:se((()=>[ie(t,{value:oe(d).status,"onUpdate:value":a[0]||(a[0]=e=>oe(d).status=e)},null,8,["value"])])),_:1},8,["label"]),ie(n,{label:e.$t("Config.Safe.index_6"),path:"method"},{default:se((()=>[de("div",Oe,[ie(l,{value:oe(d).method,"onUpdate:value":a[1]||(a[1]=e=>oe(d).method=e)},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])),_:1},8,["show"])])}}}),Ye=J({__name:"index",setup(a){const{t:l}=Q(),i=ee(!1),s=ee([]),o=async e=>{e?d(!0):(await p({task_id:s.value[0].id,status:0}),i.value=!1,s.value[0].status=!1)},d=(e=!1)=>{n({title:l("Config.Safe.index_4"),width:480,footer:!0,confirmText:l("Public.Btn.Save"),data:{open:e,taskList:s.value,onRefresh:f},component:We})},{loading:r,setLoading:u}=t(),f=async()=>{try{u(!0);const{message:e}=await c();if(g(e)){const a=e.filter((e=>"panel_safe_push"===e.keyword));a&&a.length>0?(i.value=a[0].status,s.value=a):(i.value=!1,s.value=[])}}finally{u(!1)}};return f(),(a,t)=>{const n=Se,l=ye,s=e;return ne(),re(s,{label:a.$t("Config.Safe.index_2")},{content:se((()=>[ie(n,{loading:oe(r),value:oe(i),"onUpdate:value":o},null,8,["loading","value"]),ie(l,{class:"ml-12px h-22px px-5px",size:"small",onClick:t[0]||(t[0]=e=>d())},{default:se((()=>[ue(fe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_3")),1)])),_:1},8,["label"])}}}),Ge={class:"flex p-20px"},Je={class:"min-w-32px"},Qe={class:"flex-1 ml-10px text-14px leading-22px"},ea={class:"flex items-center min-h-30px mb-12px text-error"},aa=J({__name:"close",emits:["setConfirm"],setup(e,{expose:a,emit:t}){const n=t,{t:l}=Q(),i=v(),s=ee(!1),o=()=>{d>0||n("setConfirm",{disabled:!s.value})};let d=5;return(()=>{n("setConfirm",{text:l("Config.Safe.index_16",[d]),disabled:!0});const e=setInterval((()=>{d--,n("setConfirm",{text:l("Config.Safe.index_16",[d])}),d<=0&&(clearInterval(e),n("setConfirm",{text:l("Config.Safe.index_17"),disabled:!s.value}))}),1e3)})(),a({onConfirm:async()=>(await C(),await b(),setTimeout((()=>{{const e="http:"===location.protocol?"https":"http";window.location.href="".concat(e,"://").concat(window.location.host).concat(ze.value.adminPath)}}),1500),!1)}),(e,a)=>{const t=S,n=we;return ne(),le("div",Ge,[de("div",Je,[ie(t,{name:"base-warning",color:oe(i).warningColor,size:"32"},null,8,["color"])]),de("div",Qe,[de("div",ea,fe(e.$t("Config.Safe.index_14")),1),ie(n,{checked:oe(s),"onUpdate:checked":[a[0]||(a[0]=e=>pe(s)?s.value=e:null),o]},{default:se((()=>[ue(fe(e.$t("Config.Safe.index_15")),1)])),_:1},8,["checked"])])])}}}),ta={class:"flex flex-wrap py-2px text-primary text-12px"},na={class:"mr-24px"},la={class:"mr-24px"},ia={class:"flex gap-20px mt-16px"},sa={class:"flex-1"},oa={class:"mb-8px"},da={class:"flex-1"},ra={class:"mb-8px"},ua={class:"mt-10px"},fa={class:"bt-link",href:"http://www.bt.cn/bbs/thread-704-1-1.html",target:"_blank"},pa=J({__name:"ssl-custom",setup(e){const a=ee(""),n=ee(""),i=ae({dns:[""],issuer:"--",notBefore:"--",notAfter:"--"}),s=async()=>{await h({privateKey:a.value,certPem:n.value},!0),r()},{loading:o,setLoading:d}=t(),r=async()=>{try{d(!0);const{message:e}=await y();w(e)&&(a.value=e.privateKey||"",n.value=e.certPem||"",i.dns=e.info.dns||[],i.issuer=e.info.issuer||"",i.notBefore=e.info.notBefore||"",i.notAfter=e.info.notAfter||"")}finally{d(!1)}};return r(),(e,t)=>{const d=$e,r=Fe,u=ye,f=l,p=m;return ne(),re(p,{show:oe(o)},{default:se((()=>[ie(d,{type:"success","show-icon":!1},{default:se((()=>[de("div",ta,[de("div",na,[ue(fe(e.$t("Config.Safe.index_37")),1),de("b",null,fe(oe(i).dns.join(",")||"--"),1)]),de("div",la,[ue(fe(e.$t("Config.Safe.index_38")),1),de("b",null,fe(oe(i).issuer),1)]),de("div",null,[ue(fe(e.$t("Config.Safe.index_39")),1),de("b",null,fe(oe(i).notAfter),1)])])])),_:1}),de("div",ia,[de("div",sa,[de("div",oa,fe(e.$t("Config.Safe.index_27")),1),ie(r,{value:oe(a),"onUpdate:value":t[0]||(t[0]=e=>pe(a)?a.value=e:null),rows:14,placeholder:""},null,8,["value"])]),de("div",da,[de("div",ra,fe(e.$t("Config.Safe.index_28")),1),ie(r,{value:oe(n),"onUpdate:value":t[1]||(t[1]=e=>pe(n)?n.value=e:null),rows:14,placeholder:""},null,8,["value"])])]),de("div",ua,[ie(u,{type:"primary",onClick:s},{default:se((()=>[ue(fe(e.$t("Public.Btn.Save")),1)])),_:1})]),ie(f,{class:"mt-12px"},{default:se((()=>[de("li",null,[ue(fe(e.$t("Config.Safe.index_40"))+" ",1),de("a",fa," ["+fe(e.$t("Public.Btn.Help"))+"] ",1)]),de("li",null,fe(e.$t("Config.Safe.index_42")),1),de("li",null,fe(e.$t("Config.Safe.index_43")),1)])),_:1})])),_:1},8,["show"])}}}),ca={class:"h-400px"},_a={class:"flex items-center"},xa={class:"min-w-18px mr-8px"},ga={class:"leading-18px"},ma={class:"w-400px mr-10px"},va={class:"text-primary font-bold"},Ca={class:"text-warning font-bold"},ba={class:"text-error"},Sa=J({__name:"ssl-lets",setup(e){const{t:a}=Q(),t=ee(null),i=ae({domain:"",hash:"",auth_type:"http",support:[]}),s={domain:{required:!0,trigger:"blur",message:a("Config.Safe.Ssl.index_10")}},o=ee(!1),d=ee(!1),r=ee(!1),u=()=>{g()},f=()=>{r.value=!1,d.value=!1,i.hash="",i.support=[]},p=()=>{window.open("/ssl_domain/domain")},c=async()=>{var e;await(null==(e=t.value)?void 0:e.validate());const{message:a}=await Ve({domain:_e(i)});w(a)&&(a.task_id?x(a.task_id):$.success(a.result))},x=e=>{n({hideClose:!0,data:{task_id:e},component:Ke})},g=async()=>{if(i.domain)try{o.value=!0;const{message:e}=await k({domain:i.domain});w(e)&&(d.value=!0,r.value=!!e.hash,i.hash=e.hash,i.support=e.support)}finally{o.value=!1}};return(async()=>{const{message:e}=await Me();w(e)&&(i.domain=e.domain)})(),(e,a)=>{const n=S,x=$e,m=ke,v=P,C=Pe,b=he,h=Ue,y=ye,w=je,$=_,k=l;return ne(),le("div",ca,[ie(x,{"show-icon":!1,class:"mb-20px"},{default:se((()=>[de("div",_a,[de("div",xa,[ie(n,{name:"base-info",size:17})]),de("span",ga,fe(e.$t("Config.Safe.Ssl.index_1")),1)])])),_:1}),ie($,{ref_key:"formRef",ref:t,model:oe(i),rules:s,"label-width":"140"},{default:se((()=>[ie(b,{label:e.$t("Config.Safe.Ssl.index_2")},{default:se((()=>[ie(C,{value:oe(i).auth_type,"onUpdate:value":a[0]||(a[0]=e=>oe(i).auth_type=e)},{default:se((()=>[ie(v,null,{default:se((()=>[ie(m,{value:"http"},{default:se((()=>[ue(fe(e.$t("SSL.SiteSSL.index_17")),1)])),_:1}),ie(m,{value:"dns"},{default:se((()=>[ue(fe(e.$t("SSL.index_12")),1)])),_:1})])),_:1})])),_:1},8,["value"])])),_:1},8,["label"]),"dns"===oe(i).auth_type?(ne(),re(b,{key:0,label:e.$t("Config.Safe.Ssl.index_4"),prop:"domain"},{default:se((()=>[de("div",ma,[ie(h,{value:oe(i).domain,"onUpdate:value":a[1]||(a[1]=e=>oe(i).domain=e),loading:oe(o),"input-props":{spellcheck:!1},placeholder:e.$t("Config.Safe.Ssl.index_5"),clearable:"",onBlur:u,onInput:f},null,8,["value","loading","placeholder"])]),ie(y,{onClick:g},{default:se((()=>[ue(fe(e.$t("Config.Safe.Ssl.index_12")),1)])),_:1})])),_:1},8,["label"])):ce("",!0),"http"===oe(i).auth_type?(ne(),re(b,{key:1,label:e.$t("Config.Safe.Ssl.index_4")},{default:se((()=>[ie(h,{class:"w-400px!",value:oe(i).domain,"onUpdate:value":a[2]||(a[2]=e=>oe(i).domain=e),placeholder:e.$t("Config.Safe.Ssl.index_5")},null,8,["value","placeholder"])])),_:1},8,["label"])):ce("",!0),oe(d)&&"dns"===oe(i).auth_type?(ne(),re(b,{key:2,label:" "},{default:se((()=>[oe(r)?(ne(),re(x,{key:0,type:"success",class:"min-w-500px"},{default:se((()=>[de("span",va,fe(e.$t("Config.Safe.Ssl.index_6",[oe(i).domain])),1)])),_:1})):(ne(),re(x,{key:1,type:"warning",class:"min-w-500px"},{default:se((()=>[ie(w,{class:"items-center"},{default:se((()=>[de("span",Ca,fe(e.$t("Config.Safe.Ssl.index_7",[oe(i).domain])),1),ie(y,{type:"primary",ghost:"",size:"small",onClick:p},{default:se((()=>[ue(fe(e.$t("Config.Safe.Ssl.index_8")),1)])),_:1})])),_:1})])),_:1}))])),_:1})):ce("",!0),ie(b,{label:" "},{default:se((()=>[ie(y,{type:"primary",disabled:!oe(r)&&"dns"===oe(i).auth_type,onClick:c},{default:se((()=>[ue(fe(e.$t("Config.Safe.Ssl.index_9")),1)])),_:1},8,["disabled"])])),_:1})])),_:1},8,["model"]),"http"===oe(i).auth_type?(ne(),re(k,{key:0},{default:se((()=>[de("li",ba,fe(e.$t("SSL.SiteSSL.index_15")),1),de("li",null,fe(e.$t("Site.Cert.index_21")),1),de("li",null,fe(e.$t("Site.Cert.index_23")),1),de("li",null,fe(e.$t("Site.Cert.index_24")),1)])),_:1})):ce("",!0)])}}}),ha={class:"p-16px"},ya=J({__name:"ssl",setup(e){const a=ee("custom"),t=[{key:"custom",label:"Custom SSL",component:pa},{key:"lets",label:"Lets Encrypt",component:Sa}];return(e,n)=>{const l=Ae;return ne(),le("div",ha,[ie(l,{value:oe(a),"onUpdate:value":n[0]||(n[0]=e=>pe(a)?a.value=e:null),options:t},null,8,["value"])])}}}),wa={class:"bt-link",href:"https://forum.aapanel.com/d/15210-aapanel-enable-panel-ssl-use-self-signed-certificate-browser-add-secure",target:"_blank"},$a=J({__name:"index",setup(a){const{t:t}=Q(),l=e=>{e?i():s()},i=()=>{n({title:t("Config.Safe.index_11"),width:600,footer:!0,component:De})},s=()=>{n({title:t("Config.Safe.index_12"),width:400,footer:!0,confirmType:"error",component:aa})},o=()=>{n({title:t("Config.Safe.index_13"),width:740,component:ya})};return(a,t)=>{const n=Se,i=ye,s=e;return ne(),re(s,{label:a.$t("Config.Safe.index_8")},{content:se((()=>[ie(n,{value:oe(ze).panelSSL,"onUpdate:value":l},null,8,["value"]),ie(i,{class:"ml-12px h-22px px-5px",size:"small",onClick:o},{default:se((()=>[ue(fe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_9")),1),de("a",wa,fe(a.$t("Public.Btn.Help")),1)])),_:1},8,["label"])}}}),ka={class:"p-20px"},Pa={class:"w-280px"},Ua={class:"w-280px"},ja={class:"text-error"},Ba=J({__name:"config",setup(e){const{t:a}=Q(),t=ee(null),n=ae({open:"True",basic_user:"",basic_pwd:""}),i={basic_user:{trigger:["blur","input"],validator:()=>"True"!==n.open||""!==n.basic_user.trim()||new Error(a("Config.Safe.index_56"))},basic_pwd:{trigger:["blur","input"],validator:()=>"True"!==n.open||""!==n.basic_pwd.trim()||new Error(a("Config.Safe.index_58"))}},s=async()=>{var e;await(null==(e=t.value)?void 0:e.validate()),await U(_e(n)),j()};return(e,a)=>{const o=Se,d=he,r=Ue,u=ye,f=_,p=l;return ne(),le("div",ka,[ie(f,{ref_key:"formRef",ref:t,model:oe(n),rules:i},{default:se((()=>[ie(d,{label:e.$t("Config.Safe.index_54")},{default:se((()=>[ie(o,{value:oe(n).open,"onUpdate:value":a[0]||(a[0]=e=>oe(n).open=e),"checked-value":"True","unchecked-value":"False"},null,8,["value"])])),_:1},8,["label"]),ie(d,{label:e.$t("Config.Safe.index_55"),path:"basic_user"},{default:se((()=>[de("div",Pa,[ie(r,{value:oe(n).basic_user,"onUpdate:value":a[1]||(a[1]=e=>oe(n).basic_user=e),placeholder:e.$t("Config.Safe.index_56")},null,8,["value","placeholder"])])])),_:1},8,["label"]),ie(d,{label:e.$t("Config.Safe.index_57"),path:"basic_pwd"},{default:se((()=>[de("div",Ua,[ie(r,{value:oe(n).basic_pwd,"onUpdate:value":a[2]||(a[2]=e=>oe(n).basic_pwd=e),placeholder:e.$t("Config.Safe.index_58")},null,8,["value","placeholder"])])])),_:1},8,["label"]),ie(d,{label:" ","show-feedback":!1},{default:se((()=>[ie(u,{type:"primary",onClick:s},{default:se((()=>[ue(fe(e.$t("Public.Btn.Save")),1)])),_:1})])),_:1})])),_:1},8,["model"]),ie(p,{class:"mt-20px pl-12px"},{default:se((()=>[de("li",ja,fe(e.$t("Config.Safe.index_59")),1),de("li",null,fe(e.$t("Config.Safe.index_48")),1),de("li",null,fe(e.$t("Config.Safe.index_49")),1),de("li",null,fe(e.$t("Config.Safe.index_50")),1),de("li",null,fe(e.$t("Config.Safe.index_51")),1)])),_:1})])}}}),La={class:"p-20px"},Ra={class:"text-error"},za={class:"flex items-center justify-between"},Ea={class:"bt-link",href:"https://www.bt.cn/bbs/thread-34374-1-1.html",target:"_blank"},Ta=J({__name:"confirm",setup(e,{expose:a}){const{t:t}=Q(),l=ee();return a({onConfirm:async()=>{await l.value.validate(),n({title:t("Config.Safe.index_53"),width:500,component:Ba})}}),(e,a)=>{const t=Xe,n=Ee,i=Te;return ne(),le("div",La,[ie(t,{class:"mb-20px"},{default:se((()=>[ue(fe(e.$t("Config.Safe.index_47")),1)])),_:1}),ie(n,{class:"mb-20px"},{default:se((()=>[de("li",Ra,fe(e.$t("Config.Safe.index_19")),1),de("li",null,fe(e.$t("Config.Safe.index_48")),1),de("li",null,fe(e.$t("Config.Safe.index_49")),1),de("li",null,fe(e.$t("Config.Safe.index_50")),1),de("li",null,fe(e.$t("Config.Safe.index_51")),1)])),_:1}),de("div",za,[ie(i,{ref_key:"riskRef",ref:l},{default:se((()=>[ue(fe(e.$t("Config.Safe.index_29")),1)])),_:1},512),de("a",Ea,fe(e.$t("Config.Safe.index_52")),1)])])}}}),Ia={class:"bt-link",href:"https://www.bt.cn/bbs/thread-34374-1-1.html",target:"_blank"},Ha=J({__name:"index",setup(a){const{t:t}=Q(),l=async e=>{e?n({title:t("Config.Safe.index_46"),width:650,footer:!0,component:Ta}):(await U({open:"False",basic_user:"",basic_pwd:""}),j())};return(a,t)=>{const n=Se,i=e;return ne(),re(i,{label:a.$t("Config.Safe.index_44")},{content:se((()=>[ie(n,{value:oe(ze).basicAuth,"onUpdate:value":l},null,8,["value"])])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_45")),1),de("a",Ia,fe(a.$t("Public.Btn.Help")),1)])),_:1},8,["label"])}}}),Da={class:"p-20px"},Aa={class:"mb-20px text-20px text-center text-[var(--setting-security-google-login-bind-title)]"},Fa={class:"px-36px"},Va={class:"mb-10px text-16px text-[var(--setting-security-google-login-bind-text)]"},Ka={class:"mb-20px px-24px py-16px bg-[var(--setting-security-google-login-key-bg)] rounded-4px leading-24px text-14px text-[var(--setting-security-google-login-key-text)] font-500"},Ma={class:"text-[var(--setting-security-google-login-bind-text)]"},Xa={class:"text-[var(--setting-security-google-login-bind-text)]"},Za={class:"mb-20px text-16px text-[var(--setting-security-google-login-bind-text)]"},qa={class:"bt-link",href:"",target:"_blank"},Na={class:"text-error"},Oa=z(J({__name:"config",setup(e){const a=ae({key:"--",username:"--"}),n=ee(""),{loading:i,setLoading:s}=t();return(async()=>{const{message:e}=await B();w(e)&&(a.key=e.key,a.username=e.username)})(),(async()=>{try{s(!0);const{message:e}=await L({act:1});w(e)&&(n.value=e.result)}finally{s(!1)}})(),(e,t)=>{const s=R,o=m,d=l;return ne(),le("div",Da,[de("div",Aa,fe(e.$t("Config.Safe.index_70")),1),de("div",Fa,[de("div",Va,fe(e.$t("Config.Safe.index_71")),1),de("div",Ka,[de("div",null,[ue(fe(e.$t("Config.Safe.index_72"))+" ",1),de("span",Ma,fe(oe(a).username),1)]),de("div",null,[ue(fe(e.$t("Config.Safe.index_73"))+" ",1),de("span",Xa,fe(oe(a).key),1)]),de("div",null,[ue(fe(e.$t("Config.Safe.index_74"))+" ",1),t[0]||(t[0]=de("span",{class:"text-[var(--setting-security-google-login-bind-text)]"},"Time based",-1))])]),de("div",Za,fe(e.$t("Config.Safe.index_75")),1),ie(o,{class:"flex justify-center h-150px",show:oe(i)},{default:se((()=>[xe(ie(s,{value:oe(n),size:150,padding:0},null,8,["value"]),[[ge,oe(n)]])])),_:1},8,["show"]),ie(d,null,{default:se((()=>[de("li",null,[ue(fe(e.$t("Config.Safe.index_76"))+" ",1),de("a",qa,fe(e.$t("Config.Safe.index_77")),1)]),de("li",Na,fe(e.$t("Config.Safe.index_78")),1)])),_:1})])])}}}),[["__scopeId","data-v-86cab381"]]),Wa={class:"p-20px"},Ya={class:"text-error"},Ga={class:"text-error"},Ja={class:"flex items-center justify-between"},Qa={class:"bt-link",href:"https://www.aapanel.com/forum/d/357-how-to-use-google-authenticator-in-the-aapanel",target:"_blank"},et=J({__name:"confirm",setup(e,{expose:a}){const{t:t}=Q(),l=ee();return a({onConfirm:async()=>{await l.value.validate();const{message:e}=await E({act:1});ze.value.dynamicPwd=!0,n({title:t("Config.Safe.index_62"),width:600,component:Oa}),w(e)&&$.success(e.result)}}),(e,a)=>{const t=Xe,n=Ee,i=Te;return ne(),le("div",Wa,[ie(t,{class:"mb-20px"},{default:se((()=>[ue(fe(e.$t("Config.Safe.index_47")),1)])),_:1}),ie(n,{class:"mb-20px"},{default:se((()=>[de("li",Ya,fe(e.$t("Config.Safe.index_19")),1),de("li",Ga,fe(e.$t("Config.Safe.index_69")),1),de("li",null,fe(e.$t("Config.Safe.index_66")),1),de("li",null,fe(e.$t("Config.Safe.index_67")),1)])),_:1}),de("div",Ja,[ie(i,{ref_key:"riskRef",ref:l},{default:se((()=>[ue(fe(e.$t("Config.Safe.index_68")),1)])),_:1},512),de("a",Qa,fe(e.$t("Config.Safe.index_168")),1)])])}}}),at={class:"bt-link",href:"https://www.aapanel.com/forum/d/357-how-to-use-google-authenticator-in-the-aapanel",target:"_blank"},tt=J({__name:"index",setup(a){const{t:t}=Q(),l=async e=>{e?i():(await E({act:0},!0),ze.value.dynamicPwd=!1)},i=()=>{ze.value.dynamicPwd?n({title:t("Config.Safe.index_62"),width:600,component:Oa}):n({title:t("Config.Safe.index_63"),width:670,footer:!0,component:et})};return(a,t)=>{const n=Se,s=ye,o=e;return ne(),re(o,{label:a.$t("Config.Safe.index_60")},{content:se((()=>[ie(n,{value:oe(ze).dynamicPwd,"onUpdate:value":l},null,8,["value"]),ie(s,{class:"ml-12px h-22px px-5px",size:"small",onClick:i},{default:se((()=>[ue(fe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_61")),1),de("a",at,fe(a.$t("Public.Btn.Help")),1)])),_:1},8,["label"])}}}),nt={class:"text-error"},lt=J({__name:"index",setup(a){const{t:t}=Q(),n=async e=>{i({title:t("Config.Safe.index_82",[t(e?"Config.Safe.index_83":"Config.Safe.index_84")]),content:()=>e?ie(me,{tag:"div",scope:"global",keypath:"Config.Safe.index_85"},{tips_:()=>ie("span",{class:"text-error"},[t("Config.Safe.index_86")])}):ie(ve,null,[t("Config.Safe.index_87")]),onConfirm:async()=>{await T(),ze.value.pwdComplexity=e}})};return(a,t)=>{const l=Se,i=e;return ne(),re(i,{label:a.$t("Config.Safe.index_79")},{content:se((()=>[ie(l,{value:oe(ze).pwdComplexity,"onUpdate:value":n},null,8,["value"])])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_80")),1),de("span",nt,fe(a.$t("Config.Safe.index_81")),1)])),_:1},8,["label"])}}}),it={class:"w-260px"},st={class:"text-error"},ot=J({__name:"index",setup(a){const t=async()=>{await I(Ie()),j()};return(a,n)=>{const l=Ue,i=ye,s=e;return ne(),re(s,{label:a.$t("Config.Safe.index_88")},{content:se((()=>[de("div",it,[ie(l,{value:oe(ze).domain,"onUpdate:value":n[0]||(n[0]=e=>oe(ze).domain=e),placeholder:""},null,8,["value"])]),ie(i,{class:"ml-12px",type:"primary",onClick:t},{default:se((()=>[ue(fe(a.$t("Public.Btn.Save")),1)])),_:1})])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_89")),1),de("span",st,fe(a.$t("Config.Safe.index_90")),1)])),_:1},8,["label"])}}}),dt={class:"w-260px"},rt={class:"text-error"},ut=J({__name:"index",setup(a){const{t:t}=Q(),n=async()=>{let e=/^((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}$/,a=ze.value.limitIp.split(",").join("-").split("-"),n=!0;if(a.length)for(let t=0;t0)return $.error(t("Config.Safe.index_95"));await H(Ie()),j()};return(a,t)=>{const l=Ue,i=ye,s=e;return ne(),re(s,{label:a.$t("Config.Safe.index_91")},{content:se((()=>[de("div",dt,[ie(l,{value:oe(ze).limitIp,"onUpdate:value":t[0]||(t[0]=e=>oe(ze).limitIp=e),placeholder:a.$t("Config.Safe.index_92")},null,8,["value","placeholder"])]),ie(i,{class:"ml-12px",type:"primary",onClick:n},{default:se((()=>[ue(fe(a.$t("Public.Btn.Save")),1)])),_:1})])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_93")),1),de("span",rt,fe(a.$t("Config.Safe.index_94")),1)])),_:1},8,["label"])}}}),ft={class:"p-20px"},pt={class:"text-error"},ct={class:"text-error"},_t={class:"w-210px"},xt=J({__name:"set",setup(e,{expose:a}){const{t:t}=Q(),n=ee(),l=ee(null),i=ae({port:D(ze.value.port)}),s={port:{trigger:["blur","input"],validator:()=>!!A(i.port)||new Error(t("Config.Safe.index_104"))}};return a({onConfirm:async()=>{var e;await n.value.validate(),await(null==(e=l.value)?void 0:e.validate());const a=Ie();a.port="".concat(i.port),await F(a),j("".concat(location.protocol,"//").concat(location.hostname,":").concat(i.port).concat(location.pathname))}}),(e,a)=>{const t=Ee,o=Be,d=he,r=_,u=Te;return ne(),le("div",ft,[ie(t,{class:"mb-20px"},{default:se((()=>[de("li",pt,fe(e.$t("Config.Safe.index_100")),1),de("li",ct,fe(e.$t("Config.Safe.index_101")),1)])),_:1}),ie(r,{ref_key:"formRef",ref:l,model:oe(i),rules:s},{default:se((()=>[ie(d,{label:e.$t("Config.Safe.index_96"),path:"port","label-width":"auto","label-style":{paddingLeft:"24px"}},{default:se((()=>[de("div",_t,[ie(o,{value:oe(i).port,"onUpdate:value":a[0]||(a[0]=e=>oe(i).port=e),min:1,max:65535,"show-button":!1,placeholder:""},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),ie(u,{ref_key:"riskRef",ref:n},{default:se((()=>[ue(fe(e.$t("Config.Safe.index_102"))+" ",1),de("a",{class:"bt-link",href:"https://www.aapanel.com/forum/d/599-how-to-release-the-aapanel-port",target:"_blank",onClick:Ce((()=>!1),["stop"])},fe(e.$t("Config.Safe.index_103")),1)])),_:1},512)])}}}),gt={class:"w-260px"},mt={class:"text-error"},vt=J({__name:"index",setup(a){const{t:t}=Q(),l=async()=>{n({title:t("Config.Safe.index_99"),width:400,footer:!0,component:xt})};return(a,t)=>{const n=Ue,i=ye,s=e;return ne(),re(s,{label:a.$t("Config.Safe.index_96")},{content:se((()=>[de("div",gt,[ie(n,{value:oe(ze).port,disabled:!0,placeholder:""},null,8,["value"])]),ie(i,{class:"ml-12px",type:"primary",onClick:l},{default:se((()=>[ue(fe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_97")),1),de("span",mt,fe(a.$t("Config.Safe.index_98")),1)])),_:1},8,["label"])}}}),Ct={class:"px-20px pt-28px pb-8px"},bt={class:"w-240px"},St=J({__name:"set",setup(e,{expose:a}){const{t:t}=Q(),n=ee(null),l=ae({adminPath:ze.value.adminPath}),i={adminPath:{trigger:["blur","input"],validator:()=>""!==l.adminPath.trim()||new Error(t("Config.Safe.index_108"))}};return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await V({admin_path:K(l.adminPath)}),ze.value.adminPath=l.adminPath}}),(e,a)=>{const t=Ue,s=he,o=_;return ne(),le("div",Ct,[ie(o,{ref_key:"formRef",ref:n,model:oe(l),rules:i},{default:se((()=>[ie(s,{label:e.$t("Config.Safe.index_105"),path:"adminPath"},{default:se((()=>[de("div",bt,[ie(t,{value:oe(l).adminPath,"onUpdate:value":a[0]||(a[0]=e=>oe(l).adminPath=e),placeholder:""},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}),ht={class:"w-260px"},yt=J({__name:"index",setup(a){const{t:t}=Q(),l=async()=>{n({title:t("Config.Safe.index_107"),width:440,footer:!0,component:St})};return(a,t)=>{const n=Ue,i=ye,s=e;return ne(),re(s,{label:a.$t("Config.Safe.index_105")},{content:se((()=>[de("div",ht,[ie(n,{value:oe(ze).adminPath,disabled:!0,placeholder:""},null,8,["value"])]),ie(i,{class:"ml-12px",type:"primary",onClick:l},{default:se((()=>[ue(fe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_106")),1)])),_:1},8,["label"])}}}),wt={class:"px-20px py-24px"},$t={class:"w-200px"},kt={class:"text-error"},Pt=J({__name:"set",setup(e,{expose:a}){const{t:t}=Q(),n=ee(null),i=ae({status_code:ze.value.statusCode}),s={},o=[{value:403,label:t("Config.Safe.index_111")},{value:404,label:t("Config.Safe.index_112")},{value:416,label:t("Config.Safe.index_113")},{value:408,label:t("Config.Safe.index_114")},{value:400,label:t("Config.Safe.index_115")},{value:401,label:t("Config.Safe.index_116")}];return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await M({status_code:i.status_code}),ze.value.statusCode=i.status_code}}),(e,a)=>{const t=Le,d=he,r=_,u=l;return ne(),le("div",wt,[ie(r,{ref_key:"formRef",ref:n,model:oe(i),rules:s},{default:se((()=>[ie(d,{label:e.$t("Config.Safe.index_118"),path:"adminPath"},{default:se((()=>[de("div",$t,[ie(t,{value:oe(i).status_code,"onUpdate:value":a[0]||(a[0]=e=>oe(i).status_code=e),options:o},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),ie(u,null,{default:se((()=>[de("li",kt,fe(e.$t("Config.Safe.index_119")),1)])),_:1})])}}}),Ut={class:"w-260px"},jt=J({__name:"index",setup(a){const{t:t}=Q(),l=new Map([[403,t("Config.Safe.index_111")],[404,t("Config.Safe.index_112")],[416,t("Config.Safe.index_113")],[408,t("Config.Safe.index_114")],[400,t("Config.Safe.index_115")],[401,t("Config.Safe.index_116")]]),i=be((()=>l.get(ze.value.statusCode)||"--")),s=async()=>{n({title:t("Config.Safe.index_117"),width:420,footer:!0,component:Pt})};return(a,t)=>{const n=Ue,l=ye,o=e;return ne(),re(o,{label:a.$t("Config.Safe.index_109")},{content:se((()=>[de("div",Ut,[ie(n,{value:oe(i),disabled:!0,placeholder:""},null,8,["value"])]),ie(l,{class:"ml-12px",type:"primary",onClick:s},{default:se((()=>[ue(fe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_110")),1)])),_:1},8,["label"])}}}),Bt={class:"px-20px py-24px"},Lt={class:"w-120px"},Rt={class:"text-error"},zt=J({__name:"set",setup(e,{expose:a}){const{t:t}=Q(),n=ee(null),i=ae({day:ze.value.pwdSetDay}),s={day:{trigger:["blur","input"],validator:()=>i.day<0?new Error(t("Config.Safe.index_128")):!(!i.day&&0!==i.day)||new Error(t("Config.Safe.index_129"))}};return a({onConfirm:async()=>{var e;await(null==(e=n.value)?void 0:e.validate()),await X({expire:i.day}),He()}}),(e,a)=>{const t=Be,o=he,d=_,r=l;return ne(),le("div",Bt,[ie(d,{ref_key:"formRef",ref:n,model:oe(i),rules:s},{default:se((()=>[ie(o,{label:e.$t("Config.Safe.index_120"),path:"day"},{default:se((()=>[de("div",Lt,[ie(t,{value:oe(i).day,"onUpdate:value":a[0]||(a[0]=e=>oe(i).day=e),min:0,"show-button":!1,placeholder:""},{suffix:se((()=>[ue(fe(e.$t("Public.Unit.Day",oe(i).day)),1)])),_:1},8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),ie(r,{class:"mt-4px"},{default:se((()=>[de("li",Rt,fe(e.$t("Config.Safe.index_126")),1),de("li",null,fe(e.$t("Config.Safe.index_127")),1)])),_:1})])}}}),Et={class:"w-260px"},Tt=J({__name:"index",setup(a){const{t:t}=Q(),l=be((()=>{const{pwdSetDay:e,pwdExpireDay:a,pwdExpireTime:n}=ze.value;return 0===e?t("Config.Safe.index_122"):t("Config.Safe.index_123",[Z(n),a])})),i=async()=>{n({title:t("Config.Safe.index_124"),width:360,footer:!0,component:zt})};return(a,t)=>{const n=Ue,s=ye,o=e;return ne(),re(o,{label:a.$t("Config.Safe.index_120")},{content:se((()=>[de("div",Et,[ie(n,{value:oe(l),disabled:!0,placeholder:""},null,8,["value"])]),ie(s,{class:"ml-12px",type:"primary",onClick:i},{default:se((()=>[ue(fe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_121")),1)])),_:1},8,["label"])}}}),It={class:"p-20px"},Ht={class:"mb-12px"},Dt={class:"mb-12px"},At={class:"mb-20px"},Ft=J({__name:"set-add-result",props:{address:{default:""}},setup(e){const a=e,t=()=>{s(a.address)};return(e,a)=>{const n=Fe,i=ye,s=l;return ne(),le("div",It,[de("div",Ht,fe(e.$t("Config.Safe.index_147")),1),de("div",Dt,[ie(n,{value:e.address,readonly:"",rows:2},null,8,["value"])]),de("div",At,[ie(i,{type:"primary",onClick:t},{default:se((()=>[ue(fe(e.$t("Public.Btn.Copy")),1)])),_:1})]),ie(s,null,{default:se((()=>[de("li",null,fe(e.$t("Config.Safe.index_148")),1),de("li",null,fe(e.$t("Config.Safe.index_149")),1),de("li",null,fe(e.$t("Config.Safe.index_150")),1)])),_:1})])}}}),Vt={class:"p-20px pt-28px pb-8px"},Kt={class:"flex mb-24px"},Mt={class:"min-w-32px"},Xt={class:"flex-1 ml-16px"},Zt={class:"leading-24px text-error text-14px"},qt={class:"w-160px"},Nt=J({__name:"set-add",emits:["refresh"],setup(e,{expose:a,emit:t}){const l=t,{t:i}=Q(),s=v(),o=ee(null),d=ae({type:3,day:1}),r={day:{trigger:["blur","input"],validator:()=>0!==d.type||!(d.day<=0||d.day%1!=0)||new Error(i("Config.Safe.index_145"))}},u=e=>e%1==0,f=(e="")=>{const a="".concat(window.location.protocol,"//").concat(window.location.host),t="".concat(a,"/login?tmp_token=").concat(e);n({title:i("Config.Safe.index_146"),width:580,data:{address:t},component:Ft})};return a({onConfirm:async()=>{var e;await(null==(e=o.value)?void 0:e.validate());const{message:a}=await q({expire_time:60*(0===d.type?24*d.day:d.type)*60+Math.floor(Date.now()/1e3)});w(a)&&(f(a.token),$.success(a.msg),l("refresh"))}}),(e,a)=>{const t=S,n=Re,l=Pe,i=he,f=Be,p=_;return ne(),le("div",Vt,[de("div",Kt,[de("div",Mt,[ie(t,{name:"base-warning",size:"32",color:oe(s).warningColor},null,8,["color"])]),de("div",Xt,[de("div",Zt,[de("div",null,fe(e.$t("Config.Safe.index_140")),1),de("div",null,fe(e.$t("Config.Safe.index_141")),1)])])]),ie(p,{ref_key:"formRef",ref:o,model:oe(d),rules:r,"label-width":"140"},{default:se((()=>[ie(i,{label:e.$t("Config.Safe.index_142")},{default:se((()=>[ie(l,{value:oe(d).type,"onUpdate:value":a[0]||(a[0]=e=>oe(d).type=e)},{default:se((()=>[ie(n,{value:3},{default:se((()=>[ue("3 "+fe(e.$t("Public.Unit.Hour",3)),1)])),_:1}),ie(n,{value:6},{default:se((()=>[ue("6 "+fe(e.$t("Public.Unit.Hour",6)),1)])),_:1}),ie(n,{value:9},{default:se((()=>[ue("9 "+fe(e.$t("Public.Unit.Hour",9)),1)])),_:1}),ie(n,{value:12},{default:se((()=>[ue("12 "+fe(e.$t("Public.Unit.Hour",12)),1)])),_:1}),ie(n,{value:0},{default:se((()=>[ue(fe(e.$t("Config.Safe.index_143")),1)])),_:1})])),_:1},8,["value"])])),_:1},8,["label"]),xe(ie(i,{label:e.$t("Config.Safe.index_144"),path:"day"},{default:se((()=>[de("div",qt,[ie(f,{value:oe(d).day,"onUpdate:value":a[1]||(a[1]=e=>oe(d).day=e),min:1,"show-button":!1,validator:u},{suffix:se((()=>[ue(fe(e.$t("Public.Unit.Day",oe(d).day)),1)])),_:1},8,["value"])])])),_:1},8,["label"]),[[ge,0===oe(d).type]])])),_:1},8,["model"])])}}}),Ot={class:"p-20px h-500px"},Wt=J({__name:"set-log",props:{id:{default:0}},setup(e){const a=e,{t:t}=Q(),{table:n,columns:l,setLoading:i}=o([{key:"type",title:t("Config.Safe.index_151"),width:120,ellipsis:{tooltip:!0}},{key:"addtime",title:t("Config.Safe.index_152"),width:140},{key:"log",title:t("Config.Safe.index_153"),ellipsis:{tooltip:!0}}]),s=async()=>{try{i(!0);const{message:e}=await N({id:a.id});n.data=g(e)?e:[]}finally{i(!1)}};return s(),(e,a)=>{const t=ye,i=d,o=Ze;return ne(),le("div",Ot,[ie(o,null,{toolsLeft:se((()=>[ie(t,{onClick:s},{default:se((()=>[ue(fe(e.$t("Public.Btn.Refresh")),1)])),_:1})])),table:se((()=>[ie(i,{"max-height":360,loading:oe(n).loading,data:oe(n).data,columns:oe(l)},null,8,["loading","data","columns"])])),_:1})])}}}),Yt={class:"h-500px p-20px"},Gt=J({__name:"set",setup(e){const{t:a}=Q(),t=()=>{n({title:a("Config.Safe.index_146"),width:580,footer:!0,component:Nt,data:{onRefresh:()=>{x()}}})},{table:l,columns:s,setLoading:u}=o([{key:"login_addr",title:a("Config.Safe.index_154"),ellipsis:{tooltip:!0},render:e=>e.login_addr||a("Config.Safe.index_155")},{key:"state",title:a("Config.Safe.index_156"),width:100,render:e=>-1===e.state?ie("span",{class:"text-error"},[a("Config.Safe.index_166")]):1===e.state?a("Config.Safe.index_157"):ie("span",{class:"text-primary"},[a("Config.Safe.index_155")])},{key:"login_time",title:a("Config.Safe.index_158"),width:140,render:e=>0===e.login_time?a("Config.Safe.index_155"):Z(e.login_time)},{key:"expire",title:a("Config.Safe.index_159"),width:140,render:e=>Z(e.expire)},r({width:160,options:e=>[{label:a("Config.Safe.index_160"),type:"error",show:e.online_state,onClick:()=>{p(e)}},{label:a("Config.Safe.index_161"),show:1===e.state||-1===e.state,onClick:()=>{f(e)}},{label:a("Public.Btn.Del"),onClick:()=>{c(e)}}]})]),f=e=>{n({title:a("Config.Safe.index_161"),width:700,data:{id:e.id},component:Wt})},p=e=>{i({title:a("Config.Safe.index_162",[e.login_addr]),content:a("Config.Safe.index_163",[e.login_addr]),onConfirm:async()=>{await O({id:e.id}),x()}})},c=e=>{i({title:a("Config.Safe.index_164"),content:a("Config.Safe.index_165"),onConfirm:async()=>{await W({id:e.id}),x()}})},_=ae({p:1,rows:10}),x=async()=>{try{u(!0);const{message:e}=await Y(_e(_));w(e)&&(l.data=g(e.data)?e.data:[],l.total=G(e.page))}finally{u(!1)}};return x(),(e,a)=>{const n=ye,i=d,o=qe,r=Ze;return ne(),le("div",Yt,[ie(r,null,{toolsLeft:se((()=>[ie(n,{type:"primary",onClick:t},{default:se((()=>[ue(fe(e.$t("Config.Safe.index_146")),1)])),_:1})])),table:se((()=>[ie(i,{"max-height":340,loading:oe(l).loading,data:oe(l).data,columns:oe(s)},null,8,["loading","data","columns"])])),pageRight:se((()=>[ie(o,{page:oe(_).p,"onUpdate:page":a[0]||(a[0]=e=>oe(_).p=e),"page-size":oe(_).rows,"onUpdate:pageSize":a[1]||(a[1]=e=>oe(_).rows=e),"item-count":oe(l).total,onRefresh:x},null,8,["page","page-size","item-count"])])),_:1})])}}}),Jt=J({__name:"index",setup(a){const{t:t}=Q(),l=()=>{n({title:t("Config.Safe.index_139"),width:740,component:Gt})};return(a,t)=>{const n=ye,i=e;return ne(),re(i,{label:a.$t("Config.Safe.index_137")},{content:se((()=>[ie(n,{type:"primary",onClick:l},{default:se((()=>[ue(fe(a.$t("Public.Btn.Set")),1)])),_:1})])),desc:se((()=>[de("span",null,fe(a.$t("Config.Safe.index_138")),1)])),_:1},8,["label"])}}}),Qt=z(J({__name:"config",setup:e=>(e,t)=>(ne(),le("div",null,[ie(a,null,{default:se((()=>[ue(fe(e.$t("Config.Safe.index_1")),1)])),_:1}),ie(Ye),ie($a),ie(Ha),ie(tt),ie(lt),ie(ot),ie(ut),ie(vt),ie(yt),ie(jt),ie(Tt),ie(Jt)]))}),[["__scopeId","data-v-919bcd3c"]]);export{Qt as S};
diff --git a/BTPanel/static/vite/js/config3.js b/BTPanel/static/vite/js/config3.js
index 479746cf..6a52ae14 100644
--- a/BTPanel/static/vite/js/config3.js
+++ b/BTPanel/static/vite/js/config3.js
@@ -1 +1 @@
-import{t as s,i as t}from"./page_layout.js?v=1762424784323";const{t:a}=t.global,e=t=>s.post("/project/quota/modify_path_quota",{data:JSON.stringify({path:t.path,quota_type:t.quota_type,quota_push:{module:"",status:!1,size:0,push_count:0},quota_storage:{size:t.size}})},{requestOptions:{loading:a("WP.api.tamper_8"),successMessage:!0,errorMessage:{close:!0}}}),o=t=>s.post("/project/quota/modify_database_quota",{data:JSON.stringify({db_name:t.db_name,quota_push:{module:"",status:!1,size:0,push_count:0},quota_storage:{size:t.size}})},{requestOptions:{loading:a("WP.api.tamper_8"),successMessage:!0,errorMessage:{close:!0}}}),u=()=>s.post("/config?action=get_msg_configs");export{o as a,u as g,e as m};
+import{i as s,bf as a}from"./page_layout.js?v=1763625242172";const{t:t}=s.global,e=s=>a.post("/project/quota/modify_path_quota",{data:JSON.stringify({path:s.path,quota_type:s.quota_type,quota_push:{module:"",status:!1,size:0,push_count:0},quota_storage:{size:s.size}})},{requestOptions:{loading:t("WP.api.tamper_8"),successMessage:!0,errorMessage:{close:!0}}}),o=s=>a.post("/project/quota/modify_database_quota",{data:JSON.stringify({db_name:s.db_name,quota_push:{module:"",status:!1,size:0,push_count:0},quota_storage:{size:s.size}})},{requestOptions:{loading:t("WP.api.tamper_8"),successMessage:!0,errorMessage:{close:!0}}}),u=()=>a.post("/config?action=get_msg_configs");export{o as a,u as g,e as m};
diff --git a/BTPanel/static/vite/js/config4.js b/BTPanel/static/vite/js/config4.js
index d20dc477..0fd36134 100644
--- a/BTPanel/static/vite/js/config4.js
+++ b/BTPanel/static/vite/js/config4.js
@@ -1 +1 @@
-import{fk as a,d as s,p as e}from"./page_layout.js?v=1762424784323";import{j as o,k as t}from"./tools2.js?v=1762424784323";import{k as l,r as p,R as r,V as n,S as i,W as m,a4 as u,U as c,ak as v}from"./vue.js?v=1762424784323";import"./naive.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";import"./public.js?v=1762424784323";import"./rules.js?v=1762424784323";const j={class:"p-20px"},d={class:"mb-16px text-desc"},f=e(l({__name:"config",setup(e,{expose:l}){const f=p([]),_=p([]);return(async()=>{const{message:a}=await o();s(a)&&(f.value=Object.keys(a).filter(s=>a[s]),_.value=Object.keys(a).map(a=>({label:a,value:a})))})(),l({onConfirm:async()=>{await t({data:f.value.reduce((a,s)=>(a[s]=!0,a),{})})}}),(s,e)=>{const o=a;return n(),r("div",j,[i("div",d,u(s.$t("Waf.Block.index_73")),1),m(o,{value:c(f),"onUpdate:value":e[0]||(e[0]=a=>v(f)?f.value=a:null),options:c(_)},null,8,["value","options"])])}}}),[["__scopeId","data-v-4f75b301"]]);export{f as default};
+import{c as a,f_ as s,p as e}from"./page_layout.js?v=1763625242172";import{j as o,k as t}from"./tools2.js?v=1763625242172";import{k as l,r as p,R as r,S as n,U as i,a4 as m,X as c,V as u,aj as j}from"./vue.js?v=1763625242172";import"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./public.js?v=1763625242172";import"./rules.js?v=1763625242172";const v={class:"p-20px"},_={class:"mb-16px text-desc"},d=e(l({__name:"config",setup(e,{expose:l}){const d=p([]),f=p([]);return(async()=>{const{message:s}=await o();a(s)&&(d.value=Object.keys(s).filter((a=>s[a])),f.value=Object.keys(s).map((a=>({label:a,value:a}))))})(),l({onConfirm:async()=>{await t({data:d.value.reduce(((a,s)=>(a[s]=!0,a)),{})})}}),(a,e)=>{const o=s;return r(),n("div",v,[i("div",_,m(a.$t("Waf.Block.index_73")),1),c(o,{value:u(d),"onUpdate:value":e[0]||(e[0]=a=>j(d)?d.value=a:null),options:u(f)},null,8,["value","options"])])}}}),[["__scopeId","data-v-4f75b301"]]);export{d as default};
diff --git a/BTPanel/static/vite/js/config5.js b/BTPanel/static/vite/js/config5.js
index cb17c797..d7f1bd30 100644
--- a/BTPanel/static/vite/js/config5.js
+++ b/BTPanel/static/vite/js/config5.js
@@ -1 +1 @@
-import{_ as e,c as t,f as a,h as l,u as i}from"./public.js?v=1762424784323";import{d as n,k as s}from"./page_layout.js?v=1762424784323";import{k as r,l as c,n as o,g as u}from"./setting.js?v=1762424784323";import{_ as f}from"./index.vue_vue_type_script_setup_true_lang.js?v=1762424784323";import{k as d,P as p,r as m,e as y,R as g,V as _,W as v,a3 as b,S as w,U as x,a4 as h,N as S,j as q}from"./vue.js?v=1762424784323";import{dR as W,au as j,df as k,aC as E}from"./naive.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";const U={class:"p-20px"},$={class:"w-220px"},P={class:"ml-8px text-desc"},R={class:"w-220px mr-8px"},C={class:"text-desc"},B={class:"w-220px mr-8px"},L={class:"text-desc"},A=d({__name:"form",props:{isEdit:{type:Boolean,default:!1},row:{}},emits:["refresh"],setup(t,{expose:a,emit:l}){const i=t,n=l,{t:s}=p(),o=m(null),u=y({url:"",frequency:30,cycle:60}),d={url:{trigger:["blur","input"],validator:()=>""!==u.url.trim()||new Error(s("Waf.Setting.config_55"))},frequency:{trigger:["blur","input"],validator:()=>!!u.frequency||new Error(s("Waf.Setting.config_56"))},cycle:{trigger:["blur","input"],validator:()=>!!u.cycle||new Error(s("Waf.Setting.config_57"))}};return(()=>{const{row:e,isEdit:t}=i;t&&e&&(u.url=e.url,u.frequency=e.frequency,u.cycle=e.cycle)})(),a({onConfirm:async()=>{var e;await(null==(e=o.value)?void 0:e.validate()),i.isEdit?await r(S(u)):await c(S(u)),n("refresh")}}),(t,a)=>{const l=j,i=W,n=k,s=f,r=e;return _(),g("div",U,[v(s,{ref_key:"formRef",ref:o,model:x(u),rules:d},{default:b(()=>[v(i,{label:"URL",path:"url"},{default:b(()=>[w("div",$,[v(l,{value:x(u).url,"onUpdate:value":a[0]||(a[0]=e=>x(u).url=e),placeholder:"/index.php"},null,8,["value"])]),w("span",P,h(t.$t("Waf.Setting.config_51")),1)]),_:1}),v(i,{label:t.$t("Waf.Setting.config_48"),path:"frequency"},{default:b(()=>[w("div",R,[v(n,{value:x(u).frequency,"onUpdate:value":a[1]||(a[1]=e=>x(u).frequency=e),min:1,"show-button":!1},null,8,["value"])]),w("span",C,h(t.$t("Public.Unit.Time",x(u).frequency)),1)]),_:1},8,["label"]),v(i,{label:t.$t("Waf.Setting.config_49"),path:"cycle"},{default:b(()=>[w("div",B,[v(n,{value:x(u).cycle,"onUpdate:value":a[2]||(a[2]=e=>x(u).cycle=e),min:1,"show-button":!1},null,8,["value"])]),w("span",L,h(t.$t("Public.Unit.Second",x(u).cycle)),1)]),_:1},8,["label"])]),_:1},8,["model"]),v(r,{class:"mt-12px"},{default:b(()=>[w("li",null,h(t.$t("Waf.Setting.config_54")),1)]),_:1})])}}}),D={class:"p-20px"},H={class:"flex mb-16px"},N=d({__name:"config",setup(e){const{t:r}=p(),c=e=>{i({title:e.title,width:570,footer:!0,data:{...e.data,onRefresh:()=>{S()}},component:A})},f=async()=>{c({title:r("Waf.Setting.config_46"),data:{isEdit:!1}})},{table:d,columns:m,setLoading:y}=t([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"frequency",title:r("Waf.Setting.config_48"),width:100,ellipsis:{tooltip:!0}},{key:"cycle",title:r("Waf.Setting.config_49"),width:120,ellipsis:{tooltip:!0},render:e=>r("Waf.Setting.config_50",[e.cycle])},a({width:100,options:e=>[{label:r("Public.Btn.Edit"),onClick:async()=>{(async e=>{c({title:r("Waf.Setting.config_47"),data:{row:e,isEdit:!0}})})(e)}},{label:r("Public.Btn.Del"),onClick:async()=>{await o({url:e.url}),S()}}]})]),S=async()=>{try{y(!0);const{message:e}=await u();n(e)&&(d.data=Object.entries(e.cc_uri_frequency).map(([e,t])=>({url:e,frequency:s(t.frequency),cycle:s(t.cycle)})))}finally{y(!1)}};return S(),(e,t)=>{const a=E,i=l;return _(),g("div",D,[w("div",H,[v(a,{type:"primary",onClick:f},{default:b(()=>[q(h(e.$t("Public.Btn.Add")),1)]),_:1})]),v(i,{"max-height":368,loading:x(d).loading,data:x(d).data,columns:x(m)},null,8,["loading","data","columns"])])}}});export{N as default};
+import{_ as e,c as t,f as a,h as l,u as i}from"./public.js?v=1763625242172";import{c as n,l as s}from"./page_layout.js?v=1763625242172";import{k as c,l as r,n as o,g as u}from"./setting.js?v=1763625242172";import{_ as f}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{k as p,P as d,r as m,e as y,R as g,S as _,X as v,a3 as b,U as w,V as x,a4 as h,N as S,j as q}from"./vue.js?v=1763625242172";import{au as W,dP as j,df as k,aC as E}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const U={class:"p-20px"},P={class:"w-220px"},$={class:"ml-8px text-desc"},C={class:"w-220px mr-8px"},R={class:"text-desc"},B={class:"w-220px mr-8px"},L={class:"text-desc"},A=p({__name:"form",props:{isEdit:{type:Boolean,default:!1},row:{}},emits:["refresh"],setup(t,{expose:a,emit:l}){const i=t,n=l,{t:s}=d(),o=m(null),u=y({url:"",frequency:30,cycle:60}),p={url:{trigger:["blur","input"],validator:()=>""!==u.url.trim()||new Error(s("Waf.Setting.config_55"))},frequency:{trigger:["blur","input"],validator:()=>!!u.frequency||new Error(s("Waf.Setting.config_56"))},cycle:{trigger:["blur","input"],validator:()=>!!u.cycle||new Error(s("Waf.Setting.config_57"))}};return(()=>{const{row:e,isEdit:t}=i;t&&e&&(u.url=e.url,u.frequency=e.frequency,u.cycle=e.cycle)})(),a({onConfirm:async()=>{var e;await(null==(e=o.value)?void 0:e.validate()),i.isEdit?await c(S(u)):await r(S(u)),n("refresh")}}),(t,a)=>{const l=W,i=j,n=k,s=f,c=e;return g(),_("div",U,[v(s,{ref_key:"formRef",ref:o,model:x(u),rules:p},{default:b((()=>[v(i,{label:"URL",path:"url"},{default:b((()=>[w("div",P,[v(l,{value:x(u).url,"onUpdate:value":a[0]||(a[0]=e=>x(u).url=e),placeholder:"/index.php"},null,8,["value"])]),w("span",$,h(t.$t("Waf.Setting.config_51")),1)])),_:1}),v(i,{label:t.$t("Waf.Setting.config_48"),path:"frequency"},{default:b((()=>[w("div",C,[v(n,{value:x(u).frequency,"onUpdate:value":a[1]||(a[1]=e=>x(u).frequency=e),min:1,"show-button":!1},null,8,["value"])]),w("span",R,h(t.$t("Public.Unit.Time",x(u).frequency)),1)])),_:1},8,["label"]),v(i,{label:t.$t("Waf.Setting.config_49"),path:"cycle"},{default:b((()=>[w("div",B,[v(n,{value:x(u).cycle,"onUpdate:value":a[2]||(a[2]=e=>x(u).cycle=e),min:1,"show-button":!1},null,8,["value"])]),w("span",L,h(t.$t("Public.Unit.Second",x(u).cycle)),1)])),_:1},8,["label"])])),_:1},8,["model"]),v(c,{class:"mt-12px"},{default:b((()=>[w("li",null,h(t.$t("Waf.Setting.config_54")),1)])),_:1})])}}}),D={class:"p-20px"},H={class:"flex mb-16px"},N=p({__name:"config",setup(e){const{t:c}=d(),r=e=>{i({title:e.title,width:570,footer:!0,data:{...e.data,onRefresh:()=>{S()}},component:A})},f=async()=>{r({title:c("Waf.Setting.config_46"),data:{isEdit:!1}})},{table:p,columns:m,setLoading:y}=t([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"frequency",title:c("Waf.Setting.config_48"),width:100,ellipsis:{tooltip:!0}},{key:"cycle",title:c("Waf.Setting.config_49"),width:120,ellipsis:{tooltip:!0},render:e=>c("Waf.Setting.config_50",[e.cycle])},a({width:100,options:e=>[{label:c("Public.Btn.Edit"),onClick:async()=>{(async e=>{r({title:c("Waf.Setting.config_47"),data:{row:e,isEdit:!0}})})(e)}},{label:c("Public.Btn.Del"),onClick:async()=>{await o({url:e.url}),S()}}]})]),S=async()=>{try{y(!0);const{message:e}=await u();n(e)&&(p.data=Object.entries(e.cc_uri_frequency).map((([e,t])=>({url:e,frequency:s(t.frequency),cycle:s(t.cycle)}))))}finally{y(!1)}};return S(),(e,t)=>{const a=E,i=l;return g(),_("div",D,[w("div",H,[v(a,{type:"primary",onClick:f},{default:b((()=>[q(h(e.$t("Public.Btn.Add")),1)])),_:1})]),v(i,{"max-height":368,loading:x(p).loading,data:x(p).data,columns:x(m)},null,8,["loading","data","columns"])])}}});export{N as default};
diff --git a/BTPanel/static/vite/js/config6.js b/BTPanel/static/vite/js/config6.js
index 71d483cc..db2fca03 100644
--- a/BTPanel/static/vite/js/config6.js
+++ b/BTPanel/static/vite/js/config6.js
@@ -1 +1 @@
-import{c as a,f as e,h as t,_ as l,u as i}from"./public.js?v=1762424784323";import{d as n}from"./page_layout.js?v=1762424784323";import{o as s,p as r,g as o}from"./setting.js?v=1762424784323";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1762424784323";import{_ as u}from"./index99.js?v=1762424784323";import{k as f,P as c,r as g,e as d,R as m,V as _,W as v,a3 as y,S,U as W,j as b,a4 as h}from"./vue.js?v=1762424784323";import{dR as w,dV as x,au as j,aC as k}from"./naive.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";const $={class:"p-20px"},U={class:"w-100px mr-8px"},R={class:"w-220px"},T={class:"w-328px"},C={class:"w-100px"},L=f({__name:"form",props:{isEdit:{type:Boolean,default:!1}},emits:["refresh"],setup(a,{expose:e,emit:t}){const l=t,{t:i}=c(),n=g(null),r=d({sType:"url",uri:"",param:"",type:1}),o=[{label:i("Waf.Setting.config_75"),value:"url"},{label:i("Waf.Setting.config_76"),value:"regular"}],f=[{label:i("Waf.Setting.config_68"),value:1},{label:i("Waf.Setting.config_69"),value:2},{label:i("Waf.Setting.config_70"),value:3},{label:i("Waf.Setting.config_71"),value:4}],b={uri:{trigger:["blur","input"],validator:()=>""!==r.uri.trim()||new Error(i("Waf.Setting.config_55"))}};return e({onConfirm:async()=>{var a;await(null==(a=n.value)?void 0:a.validate()),await s({stype:r.sType,uri:r.uri,param:r.param.replace(/\n/g,",").split(","),type:r.type}),l("refresh")}}),(a,e)=>{const t=x,l=j,i=w,s=u,c=p;return _(),m("div",$,[v(c,{ref_key:"formRef",ref:n,model:W(r),rules:b},{default:y(()=>[v(i,{label:a.$t("Waf.Setting.config_73"),path:"uri"},{default:y(()=>[S("div",U,[v(t,{value:W(r).sType,"onUpdate:value":e[0]||(e[0]=a=>W(r).sType=a),options:o},null,8,["value"])]),S("div",R,[v(l,{value:W(r).uri,"onUpdate:value":e[1]||(e[1]=a=>W(r).uri=a),placeholder:"URL"},null,8,["value"])])]),_:1},8,["label"]),v(i,{label:a.$t("Waf.Setting.config_65"),path:"param"},{default:y(()=>[S("div",T,[v(s,{value:W(r).param,"onUpdate:value":e[2]||(e[2]=a=>W(r).param=a),rows:4,placeholder:a.$t("Waf.Setting.config_74")},null,8,["value","placeholder"])])]),_:1},8,["label"]),v(i,{label:a.$t("Waf.Setting.config_67"),path:"type","show-feedback":!1},{default:y(()=>[S("div",C,[v(t,{value:W(r).type,"onUpdate:value":e[3]||(e[3]=a=>W(r).type=a),"consistent-menu-width":!1,options:f},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}}),B={class:"p-20px"},E={class:"flex mb-16px"},P=f({__name:"config",setup(s){const{t:p}=c(),u=async()=>{var a;a={title:p("Waf.Setting.config_64"),data:{isEdit:!1}},i({title:a.title,width:550,footer:!0,data:{...a.data,onRefresh:()=>{w()}},component:L})},{table:f,columns:g,setLoading:d}=a([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"param",title:p("Waf.Setting.config_65"),width:120,ellipsis:{tooltip:!0},render:a=>a.param?a.param.join(", "):"--"},{key:"sType",title:p("Waf.Setting.config_66"),width:80,render:a=>"regular"==a.sType?p("Waf.Setting.config_72"):"URL"},{key:"type",title:p("Waf.Setting.config_67"),width:90,render:a=>{var e="";switch(a.type){case 1:e=p("Waf.Setting.config_68");break;case 2:e=p("Waf.Setting.config_69");break;case 3:e=p("Waf.Setting.config_70");break;case 4:e=p("Waf.Setting.config_71")}return e}},e({width:60,options:a=>[{label:p("Public.Btn.Del"),onClick:async()=>{await r({uri:a.url}),w()}}]})]),w=async()=>{try{d(!0);const{message:a}=await o();n(a)&&(f.data=Object.entries(a.url_cc_param).map(([a,e])=>({url:a,type:e.type,param:e.param,sType:e.stype})))}finally{d(!1)}};return w(),(a,e)=>{const i=k,n=t,s=l;return _(),m("div",B,[S("div",E,[v(i,{type:"primary",onClick:u},{default:y(()=>[b(h(a.$t("Public.Btn.Add")),1)]),_:1})]),v(n,{"max-height":368,loading:W(f).loading,data:W(f).data,columns:W(g)},null,8,["loading","data","columns"]),v(s,{class:"mt-12px"},{default:y(()=>[S("li",null,h(a.$t("Waf.Setting.config_60")),1),S("li",null,h(a.$t("Waf.Setting.config_61")),1),S("li",null,h(a.$t("Waf.Setting.config_62")),1),S("li",null,h(a.$t("Waf.Setting.config_63")),1)]),_:1})])}}});export{P as default};
+import{c as a,f as e,h as t,_ as l,u as i}from"./public.js?v=1763625242172";import{c as n}from"./page_layout.js?v=1763625242172";import{o as s,p as r,g as o}from"./setting.js?v=1763625242172";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{_ as u}from"./index99.js?v=1763625242172";import{k as f,P as c,r as g,e as d,R as m,S as _,X as v,a3 as y,U as S,V as b,j as W,a4 as h}from"./vue.js?v=1763625242172";import{dV as w,au as x,dP as j,aC as k}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const $={class:"p-20px"},U={class:"w-100px mr-8px"},T={class:"w-220px"},R={class:"w-328px"},C={class:"w-100px"},L=f({__name:"form",props:{isEdit:{type:Boolean,default:!1}},emits:["refresh"],setup(a,{expose:e,emit:t}){const l=t,{t:i}=c(),n=g(null),r=d({sType:"url",uri:"",param:"",type:1}),o=[{label:i("Waf.Setting.config_75"),value:"url"},{label:i("Waf.Setting.config_76"),value:"regular"}],f=[{label:i("Waf.Setting.config_68"),value:1},{label:i("Waf.Setting.config_69"),value:2},{label:i("Waf.Setting.config_70"),value:3},{label:i("Waf.Setting.config_71"),value:4}],W={uri:{trigger:["blur","input"],validator:()=>""!==r.uri.trim()||new Error(i("Waf.Setting.config_55"))}};return e({onConfirm:async()=>{var a;await(null==(a=n.value)?void 0:a.validate()),await s({stype:r.sType,uri:r.uri,param:r.param.replace(/\n/g,",").split(","),type:r.type}),l("refresh")}}),(a,e)=>{const t=w,l=x,i=j,s=u,c=p;return m(),_("div",$,[v(c,{ref_key:"formRef",ref:n,model:b(r),rules:W},{default:y((()=>[v(i,{label:a.$t("Waf.Setting.config_73"),path:"uri"},{default:y((()=>[S("div",U,[v(t,{value:b(r).sType,"onUpdate:value":e[0]||(e[0]=a=>b(r).sType=a),options:o},null,8,["value"])]),S("div",T,[v(l,{value:b(r).uri,"onUpdate:value":e[1]||(e[1]=a=>b(r).uri=a),placeholder:"URL"},null,8,["value"])])])),_:1},8,["label"]),v(i,{label:a.$t("Waf.Setting.config_65"),path:"param"},{default:y((()=>[S("div",R,[v(s,{value:b(r).param,"onUpdate:value":e[2]||(e[2]=a=>b(r).param=a),rows:4,placeholder:a.$t("Waf.Setting.config_74")},null,8,["value","placeholder"])])])),_:1},8,["label"]),v(i,{label:a.$t("Waf.Setting.config_67"),path:"type","show-feedback":!1},{default:y((()=>[S("div",C,[v(t,{value:b(r).type,"onUpdate:value":e[3]||(e[3]=a=>b(r).type=a),"consistent-menu-width":!1,options:f},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}),P={class:"p-20px"},B={class:"flex mb-16px"},E=f({__name:"config",setup(s){const{t:p}=c(),u=async()=>{var a;a={title:p("Waf.Setting.config_64"),data:{isEdit:!1}},i({title:a.title,width:550,footer:!0,data:{...a.data,onRefresh:()=>{w()}},component:L})},{table:f,columns:g,setLoading:d}=a([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"param",title:p("Waf.Setting.config_65"),width:120,ellipsis:{tooltip:!0},render:a=>a.param?a.param.join(", "):"--"},{key:"sType",title:p("Waf.Setting.config_66"),width:80,render:a=>"regular"==a.sType?p("Waf.Setting.config_72"):"URL"},{key:"type",title:p("Waf.Setting.config_67"),width:90,render:a=>{var e="";switch(a.type){case 1:e=p("Waf.Setting.config_68");break;case 2:e=p("Waf.Setting.config_69");break;case 3:e=p("Waf.Setting.config_70");break;case 4:e=p("Waf.Setting.config_71")}return e}},e({width:60,options:a=>[{label:p("Public.Btn.Del"),onClick:async()=>{await r({uri:a.url}),w()}}]})]),w=async()=>{try{d(!0);const{message:a}=await o();n(a)&&(f.data=Object.entries(a.url_cc_param).map((([a,e])=>({url:a,type:e.type,param:e.param,sType:e.stype}))))}finally{d(!1)}};return w(),(a,e)=>{const i=k,n=t,s=l;return m(),_("div",P,[S("div",B,[v(i,{type:"primary",onClick:u},{default:y((()=>[W(h(a.$t("Public.Btn.Add")),1)])),_:1})]),v(n,{"max-height":368,loading:b(f).loading,data:b(f).data,columns:b(g)},null,8,["loading","data","columns"]),v(s,{class:"mt-12px"},{default:y((()=>[S("li",null,h(a.$t("Waf.Setting.config_60")),1),S("li",null,h(a.$t("Waf.Setting.config_61")),1),S("li",null,h(a.$t("Waf.Setting.config_62")),1),S("li",null,h(a.$t("Waf.Setting.config_63")),1)])),_:1})])}}});export{E as default};
diff --git a/BTPanel/static/vite/js/config7.js b/BTPanel/static/vite/js/config7.js
index 25d0b0c7..65160395 100644
--- a/BTPanel/static/vite/js/config7.js
+++ b/BTPanel/static/vite/js/config7.js
@@ -1 +1 @@
-import{c as a,f as t,h as l,_ as s}from"./public.js?v=1762424784323";import{k as e,P as n,r as i,R as o,V as r,S as u,W as c,aj as m,ak as p,U as f,a3 as d,j as g,a4 as _}from"./vue.js?v=1762424784323";import{w as v,m as j}from"./page_layout.js?v=1762424784323";import{q as x,t as y,v as b}from"./setting.js?v=1762424784323";import{au as h,aC as S}from"./naive.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";const W={class:"p-20px"},k={class:"flex mb-16px"},w={class:"flex-1 mr-16px"},$=e({__name:"config",setup(e){const{t:$}=n(),C=i(""),P=async()=>{""!==C.value.trim()?(await b({text:C.value}),C.value="",R()):j.error($("Waf.Setting.config_81"))},{table:U,columns:B,setLoading:L}=a([{key:"rule",title:"URL"},t({width:80,options:a=>[{label:$("Public.Btn.Del"),onClick:async()=>{await x({text:a.rule}),R()}}]})]),R=async()=>{try{L(!0);const{message:a}=await y();v(a)&&(U.data=a.map(a=>({rule:a})))}finally{L(!1)}};return R(),(a,t)=>{const e=h,n=S,i=l,v=s;return r(),o("div",W,[u("div",k,[u("div",w,[c(e,{value:f(C),"onUpdate:value":t[0]||(t[0]=a=>p(C)?C.value=a:null),placeholder:a.$t("Waf.Setting.config_78"),onKeyup:m(P,["enter"])},null,8,["value","placeholder"])]),c(n,{type:"primary",onClick:P},{default:d(()=>[g(_(a.$t("Public.Btn.Add")),1)]),_:1})]),c(i,{"max-height":368,loading:f(U).loading,data:f(U).data,columns:f(B)},null,8,["loading","data","columns"]),c(v,{class:"mt-16px"},{default:d(()=>[u("li",null,_(a.$t("Waf.Setting.config_77")),1),u("li",null,_(a.$t("Waf.Setting.config_79")),1),u("li",null,_(a.$t("Waf.Setting.config_80")),1)]),_:1})])}}});export{$ as default};
+import{c as a,f as t,h as l,_ as s}from"./public.js?v=1763625242172";import{k as e,P as n,r as i,R as o,S as r,U as u,X as c,V as m,aj as p,ak as f,a3 as d,j as g,a4 as _}from"./vue.js?v=1763625242172";import{x as v,m as x}from"./page_layout.js?v=1763625242172";import{q as j,t as y,v as b}from"./setting.js?v=1763625242172";import{au as h,aC as S}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const k={class:"p-20px"},W={class:"flex mb-16px"},$={class:"flex-1 mr-16px"},w=e({__name:"config",setup(e){const{t:w}=n(),C=i(""),P=async()=>{""!==C.value.trim()?(await b({text:C.value}),C.value="",R()):x.error(w("Waf.Setting.config_81"))},{table:U,columns:B,setLoading:L}=a([{key:"rule",title:"URL"},t({width:80,options:a=>[{label:w("Public.Btn.Del"),onClick:async()=>{await j({text:a.rule}),R()}}]})]),R=async()=>{try{L(!0);const{message:a}=await y();v(a)&&(U.data=a.map((a=>({rule:a}))))}finally{L(!1)}};return R(),(a,t)=>{const e=h,n=S,i=l,v=s;return o(),r("div",k,[u("div",W,[u("div",$,[c(e,{value:m(C),"onUpdate:value":t[0]||(t[0]=a=>p(C)?C.value=a:null),placeholder:a.$t("Waf.Setting.config_78"),onKeyup:f(P,["enter"])},null,8,["value","placeholder"])]),c(n,{type:"primary",onClick:P},{default:d((()=>[g(_(a.$t("Public.Btn.Add")),1)])),_:1})]),c(i,{"max-height":368,loading:m(U).loading,data:m(U).data,columns:m(B)},null,8,["loading","data","columns"]),c(v,{class:"mt-16px"},{default:d((()=>[u("li",null,_(a.$t("Waf.Setting.config_77")),1),u("li",null,_(a.$t("Waf.Setting.config_79")),1),u("li",null,_(a.$t("Waf.Setting.config_80")),1)])),_:1})])}}});export{w as default};
diff --git a/BTPanel/static/vite/js/config8.js b/BTPanel/static/vite/js/config8.js
index 93e21204..ff06f9a7 100644
--- a/BTPanel/static/vite/js/config8.js
+++ b/BTPanel/static/vite/js/config8.js
@@ -1 +1 @@
-import{c as a,f as e,h as t,_ as l,u as i}from"./public.js?v=1762424784323";import{p as s,w as n}from"./page_layout.js?v=1762424784323";import{B as r,C as o,D as u}from"./setting.js?v=1762424784323";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1762424784323";import{k as c,ad as f,ae as d,c as m,R as v,V as g,S as _,a4 as y,H as h,U as S,F as C,O as P,P as b,r as W,e as w,W as x,a3 as j,j as E}from"./vue.js?v=1762424784323";import{dR as R,dV as k,au as O,aC as T}from"./naive.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";const A={class:"param-list"},U=["onClick"],L=s(c({__name:"param",props:{value:{default:()=>[]},valueModifiers:{}},emits:f(["change"],["update:value"]),setup(a,{emit:e}){const t=e,l=d(a,"value"),i=["POST","GET","PUT","OPTIONS","HEAD","DELETE","TRACE","PATCH","MOVE","COPY","LINK","UNLINK","WRAPPED","PROPFIND","PROPPATCH","MKCOL","CONNECT","SRARCH"],s=m(()=>i.length===l.value.length),n=()=>{l.value=[],s.value||(l.value=i.map(a=>a)),t("change")};return(a,e)=>(g(),v("div",A,[_("div",{class:h(["param-item",{active:S(s)}]),onClick:n},y(a.$t("Public.SelectAll")),3),(g(),v(C,null,P(i,a=>{return _("div",{key:a,class:h(["param-item",{active:(e=a,l.value.includes(e))}]),onClick:e=>(a=>{const e=l.value.indexOf(a);-1===e?l.value.push(a):l.value.splice(e,1),t("change")})(a)},y(a),11,U);var e}),64))]))}}),[["__scopeId","data-v-d6f769f3"]]),N={class:"p-20px"},D={class:"w-100px mr-8px"},H={class:"w-220px"},I={class:"w-328px"},$=c({__name:"form",props:{isEdit:{type:Boolean,default:!1}},emits:["refresh"],setup(a,{expose:e,emit:t}){const l=t,{t:i}=b(),s=W(null),n=W(null),o=w({type:"refuse",url:"",param:[]}),u=[{label:i("Waf.Setting.config_111"),value:"refuse"},{label:i("Waf.Setting.config_110"),value:"accept"}],c={url:{trigger:["blur","input"],validator:()=>""!==o.url.trim()||new Error(i("Waf.Setting.config_55"))},param:{validator:()=>0!==o.param.length||new Error(i("Waf.Setting.config_112"))}},f=()=>{var a;null==(a=n.value)||a.restoreValidation()};return e({onConfirm:async()=>{var a;await(null==(a=s.value)?void 0:a.validate()),await r({type:o.type,url:o.url,param:o.param.join(",")}),l("refresh")}}),(a,e)=>{const t=k,l=O,i=R,r=p;return g(),v("div",N,[x(r,{ref_key:"formRef",ref:s,model:S(o),rules:c},{default:j(()=>[x(i,{label:a.$t("Waf.Setting.config_73"),path:"url"},{default:j(()=>[_("div",D,[x(t,{value:S(o).type,"onUpdate:value":e[0]||(e[0]=a=>S(o).type=a),options:u},null,8,["value"])]),_("div",H,[x(l,{value:S(o).url,"onUpdate:value":e[1]||(e[1]=a=>S(o).url=a),placeholder:"URL"},null,8,["value"])])]),_:1},8,["label"]),x(i,{ref_key:"paramItemRef",ref:n,label:a.$t("Waf.Setting.config_65"),path:"param"},{default:j(()=>[_("div",I,[x(L,{value:S(o).param,"onUpdate:value":e[2]||(e[2]=a=>S(o).param=a),onChange:f},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}}),B={class:"p-20px"},V={class:"flex mb-16px"},K=c({__name:"config",setup(s){const{t:r}=b(),p=async()=>{var a;a={title:r("Waf.Setting.config_64"),data:{isEdit:!1}},i({title:a.title,width:550,footer:!0,data:{...a.data,onRefresh:()=>{m()}},component:$})},{table:c,columns:f,setLoading:d}=a([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"type",title:r("Waf.Setting.config_73"),width:80,ellipsis:{tooltip:!0},render:a=>"refuse"===a.type?r("Waf.Setting.config_111"):r("Waf.Setting.config_110")},{key:"mode",title:r("Waf.Setting.config_93"),width:216,ellipsis:{tooltip:!0},render:a=>Object.entries(a.mode).map(([,a])=>a).join(", ")},e({width:60,options:a=>[{label:r("Public.Btn.Del"),onClick:async()=>{await o({url:a.url}),m()}}]})]),m=async()=>{try{d(!0);const{message:a}=await u();c.data=n(a)?a:[]}finally{d(!1)}};return m(),(a,e)=>{const i=T,s=t,n=l;return g(),v("div",B,[_("div",V,[x(i,{type:"primary",onClick:p},{default:j(()=>[E(y(a.$t("Public.Btn.Add")),1)]),_:1})]),x(s,{"max-height":270,loading:S(c).loading,data:S(c).data,columns:S(f)},null,8,["loading","data","columns"]),x(n,{class:"mt-12px"},{default:j(()=>[_("li",null,y(a.$t("Waf.Setting.config_108")),1),_("li",null,y(a.$t("Waf.Setting.config_109")),1)]),_:1})])}}});export{K as default};
+import{c as a,f as e,h as t,_ as l,u as i}from"./public.js?v=1763625242172";import{p as s,x as n}from"./page_layout.js?v=1763625242172";import{B as r,C as o,D as u}from"./setting.js?v=1763625242172";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{k as c,ad as f,ae as d,c as m,R as v,S as g,U as _,a4 as y,H as h,V as S,F as C,O as P,P as b,r as x,e as W,X as j,a3 as w,j as E}from"./vue.js?v=1763625242172";import{dV as k,au as O,dP as R,aC as T}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const A={class:"param-list"},U=["onClick"],L=s(c({__name:"param",props:{value:{default:()=>[]},valueModifiers:{}},emits:f(["change"],["update:value"]),setup(a,{emit:e}){const t=e,l=d(a,"value"),i=["POST","GET","PUT","OPTIONS","HEAD","DELETE","TRACE","PATCH","MOVE","COPY","LINK","UNLINK","WRAPPED","PROPFIND","PROPPATCH","MKCOL","CONNECT","SRARCH"],s=m((()=>i.length===l.value.length)),n=()=>{l.value=[],s.value||(l.value=i.map((a=>a))),t("change")};return(a,e)=>(v(),g("div",A,[_("div",{class:h(["param-item",{active:S(s)}]),onClick:n},y(a.$t("Public.SelectAll")),3),(v(),g(C,null,P(i,(a=>{return _("div",{key:a,class:h(["param-item",{active:(e=a,l.value.includes(e))}]),onClick:e=>(a=>{const e=l.value.indexOf(a);-1===e?l.value.push(a):l.value.splice(e,1),t("change")})(a)},y(a),11,U);var e})),64))]))}}),[["__scopeId","data-v-d6f769f3"]]),N={class:"p-20px"},D={class:"w-100px mr-8px"},H={class:"w-220px"},I={class:"w-328px"},$=c({__name:"form",props:{isEdit:{type:Boolean,default:!1}},emits:["refresh"],setup(a,{expose:e,emit:t}){const l=t,{t:i}=b(),s=x(null),n=x(null),o=W({type:"refuse",url:"",param:[]}),u=[{label:i("Waf.Setting.config_111"),value:"refuse"},{label:i("Waf.Setting.config_110"),value:"accept"}],c={url:{trigger:["blur","input"],validator:()=>""!==o.url.trim()||new Error(i("Waf.Setting.config_55"))},param:{validator:()=>0!==o.param.length||new Error(i("Waf.Setting.config_112"))}},f=()=>{var a;null==(a=n.value)||a.restoreValidation()};return e({onConfirm:async()=>{var a;await(null==(a=s.value)?void 0:a.validate()),await r({type:o.type,url:o.url,param:o.param.join(",")}),l("refresh")}}),(a,e)=>{const t=k,l=O,i=R,r=p;return v(),g("div",N,[j(r,{ref_key:"formRef",ref:s,model:S(o),rules:c},{default:w((()=>[j(i,{label:a.$t("Waf.Setting.config_73"),path:"url"},{default:w((()=>[_("div",D,[j(t,{value:S(o).type,"onUpdate:value":e[0]||(e[0]=a=>S(o).type=a),options:u},null,8,["value"])]),_("div",H,[j(l,{value:S(o).url,"onUpdate:value":e[1]||(e[1]=a=>S(o).url=a),placeholder:"URL"},null,8,["value"])])])),_:1},8,["label"]),j(i,{ref_key:"paramItemRef",ref:n,label:a.$t("Waf.Setting.config_65"),path:"param"},{default:w((()=>[_("div",I,[j(L,{value:S(o).param,"onUpdate:value":e[2]||(e[2]=a=>S(o).param=a),onChange:f},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}),B={class:"p-20px"},V={class:"flex mb-16px"},K=c({__name:"config",setup(s){const{t:r}=b(),p=async()=>{var a;a={title:r("Waf.Setting.config_64"),data:{isEdit:!1}},i({title:a.title,width:550,footer:!0,data:{...a.data,onRefresh:()=>{m()}},component:$})},{table:c,columns:f,setLoading:d}=a([{key:"url",title:"URL",ellipsis:{tooltip:!0}},{key:"type",title:r("Waf.Setting.config_73"),width:80,ellipsis:{tooltip:!0},render:a=>"refuse"===a.type?r("Waf.Setting.config_111"):r("Waf.Setting.config_110")},{key:"mode",title:r("Waf.Setting.config_93"),width:216,ellipsis:{tooltip:!0},render:a=>Object.entries(a.mode).map((([,a])=>a)).join(", ")},e({width:60,options:a=>[{label:r("Public.Btn.Del"),onClick:async()=>{await o({url:a.url}),m()}}]})]),m=async()=>{try{d(!0);const{message:a}=await u();c.data=n(a)?a:[]}finally{d(!1)}};return m(),(a,e)=>{const i=T,s=t,n=l;return v(),g("div",B,[_("div",V,[j(i,{type:"primary",onClick:p},{default:w((()=>[E(y(a.$t("Public.Btn.Add")),1)])),_:1})]),j(s,{"max-height":270,loading:S(c).loading,data:S(c).data,columns:S(f)},null,8,["loading","data","columns"]),j(n,{class:"mt-12px"},{default:w((()=>[_("li",null,y(a.$t("Waf.Setting.config_108")),1),_("li",null,y(a.$t("Waf.Setting.config_109")),1)])),_:1})])}}});export{K as default};
diff --git a/BTPanel/static/vite/js/config9.js b/BTPanel/static/vite/js/config9.js
index 56ae058f..e574867a 100644
--- a/BTPanel/static/vite/js/config9.js
+++ b/BTPanel/static/vite/js/config9.js
@@ -1 +1 @@
-import{c as a,f as l,h as t,_ as s}from"./public.js?v=1762424784323";import{k as n,P as e,r as i,R as o,V as r,S as u,W as c,aj as m,ak as f,U as p,a3 as d,j as g,a4 as _}from"./vue.js?v=1762424784323";import{w as v,m as j}from"./page_layout.js?v=1762424784323";import{E as y,F as x,G as b}from"./setting.js?v=1762424784323";import{au as h,aC as S}from"./naive.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";const W={class:"p-20px"},k={class:"flex mb-16px"},w={class:"flex-1 mr-16px"},$=n({__name:"config",setup(n){const{t:$}=e(),C=i(""),P=async()=>{""!==C.value.trim()?(await b({url_find:C.value}),C.value="",R()):j.error($("Waf.Setting.config_81"))},{table:U,columns:B,setLoading:L}=a([{key:"url",title:"URL"},l({width:80,options:a=>[{label:$("Public.Btn.Del"),onClick:async()=>{await y({url_find:a.url}),R()}}]})]),R=async()=>{try{L(!0);const{message:a}=await x();v(a)&&(U.data=a.map(a=>({url:a})))}finally{L(!1)}};return R(),(a,l)=>{const n=h,e=S,i=t,v=s;return r(),o("div",W,[u("div",k,[u("div",w,[c(n,{value:p(C),"onUpdate:value":l[0]||(l[0]=a=>f(C)?C.value=a:null),placeholder:a.$t("Waf.Setting.config_116"),onKeyup:m(P,["enter"])},null,8,["value","placeholder"])]),c(e,{type:"primary",onClick:P},{default:d(()=>[g(_(a.$t("Public.Btn.Add")),1)]),_:1})]),c(i,{"max-height":368,loading:p(U).loading,data:p(U).data,columns:p(B)},null,8,["loading","data","columns"]),c(v,{class:"mt-16px"},{default:d(()=>[u("li",null,_(a.$t("Waf.Setting.config_117")),1),u("li",null,_(a.$t("Waf.Setting.config_118")),1),u("li",null,_(a.$t("Waf.Setting.config_119")),1)]),_:1})])}}});export{$ as default};
+import{c as a,f as l,h as t,_ as s}from"./public.js?v=1763625242172";import{k as n,P as e,r as i,R as o,S as r,U as u,X as c,V as m,aj as f,ak as p,a3 as d,j as g,a4 as _}from"./vue.js?v=1763625242172";import{x as v,m as j}from"./page_layout.js?v=1763625242172";import{E as y,F as x,G as b}from"./setting.js?v=1763625242172";import{au as h,aC as S}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const k={class:"p-20px"},W={class:"flex mb-16px"},$={class:"flex-1 mr-16px"},w=n({__name:"config",setup(n){const{t:w}=e(),C=i(""),P=async()=>{""!==C.value.trim()?(await b({url_find:C.value}),C.value="",R()):j.error(w("Waf.Setting.config_81"))},{table:U,columns:B,setLoading:L}=a([{key:"url",title:"URL"},l({width:80,options:a=>[{label:w("Public.Btn.Del"),onClick:async()=>{await y({url_find:a.url}),R()}}]})]),R=async()=>{try{L(!0);const{message:a}=await x();v(a)&&(U.data=a.map((a=>({url:a}))))}finally{L(!1)}};return R(),(a,l)=>{const n=h,e=S,i=t,v=s;return o(),r("div",k,[u("div",W,[u("div",$,[c(n,{value:m(C),"onUpdate:value":l[0]||(l[0]=a=>f(C)?C.value=a:null),placeholder:a.$t("Waf.Setting.config_116"),onKeyup:p(P,["enter"])},null,8,["value","placeholder"])]),c(e,{type:"primary",onClick:P},{default:d((()=>[g(_(a.$t("Public.Btn.Add")),1)])),_:1})]),c(i,{"max-height":368,loading:m(U).loading,data:m(U).data,columns:m(B)},null,8,["loading","data","columns"]),c(v,{class:"mt-16px"},{default:d((()=>[u("li",null,_(a.$t("Waf.Setting.config_117")),1),u("li",null,_(a.$t("Waf.Setting.config_118")),1),u("li",null,_(a.$t("Waf.Setting.config_119")),1)])),_:1})])}}});export{w as default};
diff --git a/BTPanel/static/vite/js/count-legacy.js b/BTPanel/static/vite/js/count-legacy.js
index 4e8aec61..cedb74b6 100644
--- a/BTPanel/static/vite/js/count-legacy.js
+++ b/BTPanel/static/vite/js/count-legacy.js
@@ -1 +1 @@
-System.register(["./public-legacy.js?v=1762424784323","./vue-legacy.js?v=1762424784323","./naive-legacy.js?v=1762424784323","./page_layout-legacy.js?v=1762424784323","./common-legacy.js?v=1762424784323","./__commonjsHelpers__-legacy.js?v=1762424784323"],function(e,t){"use strict";var l,a,n,s,u,c,r,i,o,d;return{setters:[e=>{l=e.c,a=e.h},e=>{n=e.k,s=e.P,u=e.W,c=e.R,r=e.V,i=e.U,o=e.F},e=>{d=e.dh},null,null,null],execute:function(){const t={class:"p-20px"};e("default",n({__name:"count",props:{list:{default:()=>[]}},setup(e){const{t:n}=s(),{columns:m}=l([{key:"name",title:n("Waf.Site.index_15")},{key:"value",title:n("Waf.Site.index_16"),render:e=>u(d,{placement:"bottom-start","arrow-point-to-center":!0},{trigger:()=>u(o,null,[e.value>0?u("a",{class:"bt-link error",href:"javascript:;"},[e.value]):e.value]),default:()=>u("div",{class:"leading-18px"},[n("Waf.Site.index_42",[e.value])])})}]);return(e,l)=>{const n=a;return r(),c("div",t,[u(n,{data:e.list,columns:i(m)},null,8,["data","columns"])])}}}))}}});
+System.register(["./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,t){"use strict";var l,a,n,s,u,c,r,i,o,d;return{setters:[e=>{l=e.c,a=e.h},e=>{n=e.k,s=e.P,u=e.X,c=e.F,r=e.R,i=e.S,o=e.V},e=>{d=e.dh},null,null,null],execute:function(){const t={class:"p-20px"};e("default",n({__name:"count",props:{list:{default:()=>[]}},setup(e){const{t:n}=s(),{columns:m}=l([{key:"name",title:n("Waf.Site.index_15")},{key:"value",title:n("Waf.Site.index_16"),render:e=>u(d,{placement:"bottom-start","arrow-point-to-center":!0},{trigger:()=>u(c,null,[e.value>0?u("a",{class:"bt-link error",href:"javascript:;"},[e.value]):e.value]),default:()=>u("div",{class:"leading-18px"},[n("Waf.Site.index_42",[e.value])])})}]);return(e,l)=>{const n=a;return r(),i("div",t,[u(n,{data:e.list,columns:o(m)},null,8,["data","columns"])])}}}))}}}));
diff --git a/BTPanel/static/vite/js/count.js b/BTPanel/static/vite/js/count.js
index 6791cbe9..f417480e 100644
--- a/BTPanel/static/vite/js/count.js
+++ b/BTPanel/static/vite/js/count.js
@@ -1 +1 @@
-import{c as a,h as t}from"./public.js?v=1762424784323";import{k as e,P as s,W as o,R as r,V as l,U as i,F as n}from"./vue.js?v=1762424784323";import{dh as m}from"./naive.js?v=1762424784323";import"./page_layout.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";const u={class:"p-20px"},p=e({__name:"count",props:{list:{default:()=>[]}},setup(e){const{t:p}=s(),{columns:c}=a([{key:"name",title:p("Waf.Site.index_15")},{key:"value",title:p("Waf.Site.index_16"),render:a=>o(m,{placement:"bottom-start","arrow-point-to-center":!0},{trigger:()=>o(n,null,[a.value>0?o("a",{class:"bt-link error",href:"javascript:;"},[a.value]):a.value]),default:()=>o("div",{class:"leading-18px"},[p("Waf.Site.index_42",[a.value])])})}]);return(a,e)=>{const s=t;return l(),r("div",u,[o(s,{data:a.list,columns:i(c)},null,8,["data","columns"])])}}});export{p as default};
+import{c as a,h as t}from"./public.js?v=1763625242172";import{k as e,P as s,X as o,F as r,R as l,S as i,V as n}from"./vue.js?v=1763625242172";import{dh as m}from"./naive.js?v=1763625242172";import"./page_layout.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const u={class:"p-20px"},p=e({__name:"count",props:{list:{default:()=>[]}},setup(e){const{t:p}=s(),{columns:c}=a([{key:"name",title:p("Waf.Site.index_15")},{key:"value",title:p("Waf.Site.index_16"),render:a=>o(m,{placement:"bottom-start","arrow-point-to-center":!0},{trigger:()=>o(r,null,[a.value>0?o("a",{class:"bt-link error",href:"javascript:;"},[a.value]):a.value]),default:()=>o("div",{class:"leading-18px"},[p("Waf.Site.index_42",[a.value])])})}]);return(a,e)=>{const s=t;return l(),i("div",u,[o(s,{data:a.list,columns:n(c)},null,8,["data","columns"])])}}});export{p as default};
diff --git a/BTPanel/static/vite/js/custom-legacy.js b/BTPanel/static/vite/js/custom-legacy.js
index 027f362c..729d2a76 100644
--- a/BTPanel/static/vite/js/custom-legacy.js
+++ b/BTPanel/static/vite/js/custom-legacy.js
@@ -1 +1 @@
-System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1762424784323","./vue-legacy.js?v=1762424784323","./naive-legacy.js?v=1762424784323","./__commonjsHelpers__-legacy.js?v=1762424784323","./common-legacy.js?v=1762424784323"],function(e,a){"use strict";var l,r,s,t,u,n,c,o,_,g,i,p;return{setters:[e=>{l=e._},e=>{r=e.k,s=e.P,t=e.r,u=e.e,n=e.R,c=e.V,o=e.W,_=e.a3,g=e.U},e=>{i=e.dR,p=e.au},null,null],execute:function(){const a={class:"pt-20px"};e("default",r({__name:"custom",props:{data:{}},setup(e,{expose:r}){const{t:d}=s(),m=e,{row:v,callback:f}=m.data,y=t(null),j=u({args:""}),x={args:{required:!0,message:d("Crontab.Script.index_43"),trigger:["blur","input"]}};return r({onConfirm:async({hide:e})=>{await(y.value?.validate()),f?.(j.args,v),e()}}),(e,r)=>{const s=p,t=i,u=l;return c(),n("div",a,[o(u,{ref_key:"formRef",ref:y,model:g(j),rules:x},{default:_(()=>[o(t,{label:g(v).args_title,path:"args"},{default:_(()=>[o(s,{class:"w-250px!",value:g(j).args,"onUpdate:value":r[0]||(r[0]=e=>g(j).args=e),placeholder:g(v).args_ps},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])])}}}))}}});
+System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,r,s,t,u,n,c,o,_,g,i,p;return{setters:[e=>{l=e._},e=>{r=e.k,s=e.P,t=e.r,u=e.e,n=e.R,c=e.S,o=e.X,_=e.a3,g=e.V},e=>{i=e.au,p=e.dP},null,null],execute:function(){const a={class:"pt-20px"};e("default",r({__name:"custom",props:{data:{}},setup(e,{expose:r}){const{t:d}=s(),m=e,{row:v,callback:f}=m.data,y=t(null),j=u({args:""}),x={args:{required:!0,message:d("Crontab.Script.index_43"),trigger:["blur","input"]}};return r({onConfirm:async({hide:e})=>{await(y.value?.validate()),f?.(j.args,v),e()}}),(e,r)=>{const s=i,t=p,u=l;return n(),c("div",a,[o(u,{ref_key:"formRef",ref:y,model:g(j),rules:x},{default:_((()=>[o(t,{label:g(v).args_title,path:"args"},{default:_((()=>[o(s,{class:"w-250px!",value:g(j).args,"onUpdate:value":r[0]||(r[0]=e=>g(j).args=e),placeholder:g(v).args_ps},null,8,["value","placeholder"])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
diff --git a/BTPanel/static/vite/js/custom.js b/BTPanel/static/vite/js/custom.js
index 8c9014b8..cc7ff32f 100644
--- a/BTPanel/static/vite/js/custom.js
+++ b/BTPanel/static/vite/js/custom.js
@@ -1 +1 @@
-import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1762424784323";import{k as e,P as s,r,e as l,R as t,V as o,W as u,a3 as p,U as n}from"./vue.js?v=1762424784323";import{dR as i,au as m}from"./naive.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";import"./common.js?v=1762424784323";const _={class:"pt-20px"},d=e({__name:"custom",props:{data:{}},setup(e,{expose:d}){const{t:c}=s(),g=e,{row:v,callback:f}=g.data,j=r(null),x=l({args:""}),b={args:{required:!0,message:c("Crontab.Script.index_43"),trigger:["blur","input"]}};return d({onConfirm:async({hide:a})=>{var e;await(null==(e=j.value)?void 0:e.validate()),null==f||f(x.args,v),a()}}),(e,s)=>{const r=m,l=i,d=a;return o(),t("div",_,[u(d,{ref_key:"formRef",ref:j,model:n(x),rules:b},{default:p(()=>[u(l,{label:n(v).args_title,path:"args"},{default:p(()=>[u(r,{class:"w-250px!",value:n(x).args,"onUpdate:value":s[0]||(s[0]=a=>n(x).args=a),placeholder:n(v).args_ps},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{d as default};
+import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{k as e,P as s,r,e as l,R as t,S as o,X as u,a3 as p,V as n}from"./vue.js?v=1763625242172";import{au as i,dP as m}from"./naive.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./common.js?v=1763625242172";const _={class:"pt-20px"},d=e({__name:"custom",props:{data:{}},setup(e,{expose:d}){const{t:c}=s(),g=e,{row:v,callback:f}=g.data,j=r(null),x=l({args:""}),b={args:{required:!0,message:c("Crontab.Script.index_43"),trigger:["blur","input"]}};return d({onConfirm:async({hide:a})=>{var e;await(null==(e=j.value)?void 0:e.validate()),null==f||f(x.args,v),a()}}),(e,s)=>{const r=i,l=m,d=a;return t(),o("div",_,[u(d,{ref_key:"formRef",ref:j,model:n(x),rules:b},{default:p((()=>[u(l,{label:n(v).args_title,path:"args"},{default:p((()=>[u(r,{class:"w-250px!",value:n(x).args,"onUpdate:value":s[0]||(s[0]=a=>n(x).args=a),placeholder:n(v).args_ps},null,8,["value","placeholder"])])),_:1},8,["label"])])),_:1},8,["model"])])}}});export{d as default};
diff --git a/BTPanel/static/vite/js/details-legacy.js b/BTPanel/static/vite/js/details-legacy.js
index ccacbf87..510185db 100644
--- a/BTPanel/static/vite/js/details-legacy.js
+++ b/BTPanel/static/vite/js/details-legacy.js
@@ -1 +1 @@
-System.register(["./index-legacy177.js?v=1762424784323","./page_layout-legacy.js?v=1762424784323","./tools-legacy2.js?v=1762424784323","./public-legacy.js?v=1762424784323","./vue-legacy.js?v=1762424784323","./naive-legacy.js?v=1762424784323","./__commonjsHelpers__-legacy.js?v=1762424784323","./common-legacy.js?v=1762424784323","./rules-legacy.js?v=1762424784323"],function(e,l){"use strict";var a,t,n,s,c,i,d,o,u,f,_,p,r,b,v,x,g,m,y,h,j,k,w;return{setters:[e=>{a=e._},e=>{t=e.a6,n=e.dd,s=e.a7,c=e.p},e=>{i=e.a,d=e.b,o=e.h},e=>{u=e.d},e=>{f=e.k,_=e.t,p=e.P,r=e.c,b=e.r,v=e.R,x=e.V,g=e.W,m=e.S,y=e.a3,h=e.j,j=e.a4,k=e.U},e=>{w=e.dc},null,null,null],execute:function(){var l=document.createElement("style");l.textContent=".bt-code[data-v-f3ca0370]{font-size:15px;border-radius:4px;overflow:hidden}.bt-code[data-v-f3ca0370] .hljs{min-height:258px}.title[data-v-f3ca0370]{width:10%}.content[data-v-f3ca0370]{font-weight:700;width:40%}\n/*$vite$:1*/",document.head.appendChild(l);const W={class:"p-20px"},B={class:"flex justify-between"},$={class:"flex justify-between"},C={class:"mt-20px"},H={class:"mt-10px"};e("default",c(f({__name:"details",props:{row:{}},setup(e){const l=_(e,"row"),{t:c}=p(),f=r(()=>l.value.incoming_value.indexOf('b"')>-1?l.value.incoming_value.substring(2,l.value.incoming_value.length-1).split(" >> "):l.value.incoming_value.split(" >> ")),P=r(()=>f.value[1]||c("Waf.Block.index_72")),S=r(()=>f.value[2]||c("Waf.Block.index_72")),T=()=>{i(l.value)},U=()=>{d(l.value,!1)},z=b(""),{loading:A,setLoading:E}=u();return(async()=>{try{E(!0);const{message:e}=await o({path:l.value.http_log});z.value=e.result}finally{E(!1)}})(),(e,c)=>{const i=t,d=w,o=s,u=a;return x(),v("div",W,[g(o,{column:2,bordered:!0,"label-placement":"left","label-style":{width:"160px"},"content-style":{fontWeight:"bold"}},{default:y(()=>[g(i,{label:e.$t("Waf.Block.index_66")},{default:y(()=>[h(j(k(n)(k(l).time_localtime)),1)]),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_67")},{default:y(()=>[m("a",{class:"bt-link",href:"javascript:;",onClick:T},j(k(n)(k(l).ip)),1)]),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_15")},{default:y(()=>[h(j(k(n)(k(l).type)),1)]),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_21")},{default:y(()=>[h(j(k(n)(k(l).filter_rule)),1)]),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_68"),span:2},{default:y(()=>[m("div",B,[g(d,{class:"w-480px"},{default:y(()=>[h(j(k(n)(k(l).uri)),1)]),_:1}),m("a",{class:"bt-link",href:"javascript:;",onClick:U},j(e.$t("Waf.Block.index_23")),1)])]),_:1},8,["label"]),g(i,{label:"User-Agent",span:2},{default:y(()=>[g(d,{class:"w-570px"},{default:y(()=>[h(j(k(n)(k(l).user_agent)),1)]),_:1})]),_:1}),g(i,{label:e.$t("Waf.Block.index_69"),span:2},{default:y(()=>[m("div",$,[g(d,{class:"w-480px"},{default:y(()=>[h(j(k(n)(k(f)[0])),1)]),_:1})])]),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_70"),span:2},{default:y(()=>[g(d,{class:"w-570px"},{default:y(()=>[h(j(k(n)(k(P))),1)]),_:1})]),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_71"),span:2},{default:y(()=>[g(d,{class:"w-570px"},{default:y(()=>[h(j(k(n)(k(S))),1)]),_:1})]),_:1},8,["label"])]),_:1}),m("div",C,[c[0]||(c[0]=m("div",{class:"text-14px font-bold"},"HTTP",-1)),m("div",H,[g(u,{class:"h-260px",lang:"http",loading:k(A),content:k(z)},null,8,["loading","content"])])])])}}}),[["__scopeId","data-v-f3ca0370"]]))}}});
+System.register(["./index-legacy178.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./tools-legacy2.js?v=1763625242172","./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./rules-legacy.js?v=1763625242172"],(function(e,l){"use strict";var a,t,n,s,c,i,d,o,u,f,_,p,r,b,v,x,g,m,y,h,j,k,w;return{setters:[e=>{a=e._},e=>{t=e.dL,n=e.a7,s=e.a8,c=e.p},e=>{i=e.a,d=e.b,o=e.h},e=>{u=e.d},e=>{f=e.k,_=e.t,p=e.P,r=e.c,b=e.r,v=e.R,x=e.S,g=e.X,m=e.a3,y=e.j,h=e.a4,j=e.V,k=e.U},e=>{w=e.dc},null,null,null],execute:function(){var l=document.createElement("style");l.textContent=".bt-code[data-v-f3ca0370]{font-size:15px;border-radius:4px;overflow:hidden}.bt-code[data-v-f3ca0370] .hljs{min-height:258px}.title[data-v-f3ca0370]{width:10%}.content[data-v-f3ca0370]{font-weight:700;width:40%}\n",document.head.appendChild(l);const W={class:"p-20px"},B={class:"flex justify-between"},$={class:"flex justify-between"},C={class:"mt-20px"},H={class:"mt-10px"};e("default",c(f({__name:"details",props:{row:{}},setup(e){const l=_(e,"row"),{t:c}=p(),f=r((()=>l.value.incoming_value.indexOf('b"')>-1?l.value.incoming_value.substring(2,l.value.incoming_value.length-1).split(" >> "):l.value.incoming_value.split(" >> "))),L=r((()=>f.value[1]||c("Waf.Block.index_72"))),P=r((()=>f.value[2]||c("Waf.Block.index_72"))),S=()=>{i(l.value)},T=()=>{d(l.value,!1)},U=b(""),{loading:z,setLoading:A}=u();return(async()=>{try{A(!0);const{message:e}=await o({path:l.value.http_log});U.value=e.result}finally{A(!1)}})(),(e,c)=>{const i=n,d=w,o=s,u=a;return v(),x("div",W,[g(o,{column:2,bordered:!0,"label-placement":"left","label-style":{width:"160px"},"content-style":{fontWeight:"bold"}},{default:m((()=>[g(i,{label:e.$t("Waf.Block.index_66")},{default:m((()=>[y(h(j(t)(j(l).time_localtime)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_67")},{default:m((()=>[k("a",{class:"bt-link",href:"javascript:;",onClick:S},h(j(t)(j(l).ip)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_15")},{default:m((()=>[y(h(j(t)(j(l).type)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_21")},{default:m((()=>[y(h(j(t)(j(l).filter_rule)),1)])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_68"),span:2},{default:m((()=>[k("div",B,[g(d,{class:"w-480px"},{default:m((()=>[y(h(j(t)(j(l).uri)),1)])),_:1}),k("a",{class:"bt-link",href:"javascript:;",onClick:T},h(e.$t("Waf.Block.index_23")),1)])])),_:1},8,["label"]),g(i,{label:"User-Agent",span:2},{default:m((()=>[g(d,{class:"w-570px"},{default:m((()=>[y(h(j(t)(j(l).user_agent)),1)])),_:1})])),_:1}),g(i,{label:e.$t("Waf.Block.index_69"),span:2},{default:m((()=>[k("div",$,[g(d,{class:"w-480px"},{default:m((()=>[y(h(j(t)(j(f)[0])),1)])),_:1})])])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_70"),span:2},{default:m((()=>[g(d,{class:"w-570px"},{default:m((()=>[y(h(j(t)(j(L))),1)])),_:1})])),_:1},8,["label"]),g(i,{label:e.$t("Waf.Block.index_71"),span:2},{default:m((()=>[g(d,{class:"w-570px"},{default:m((()=>[y(h(j(t)(j(P))),1)])),_:1})])),_:1},8,["label"])])),_:1}),k("div",C,[c[0]||(c[0]=k("div",{class:"text-14px font-bold"},"HTTP",-1)),k("div",H,[g(u,{class:"h-260px",lang:"http",loading:j(z),content:j(U)},null,8,["loading","content"])])])])}}}),[["__scopeId","data-v-f3ca0370"]]))}}}));
diff --git a/BTPanel/static/vite/js/details-legacy2.js b/BTPanel/static/vite/js/details-legacy2.js
index ac660f31..5d926965 100644
--- a/BTPanel/static/vite/js/details-legacy2.js
+++ b/BTPanel/static/vite/js/details-legacy2.js
@@ -1 +1 @@
-System.register(["./public-legacy.js?v=1762424784323","./page_layout-legacy.js?v=1762424784323","./index-legacy80.js?v=1762424784323","./tools-legacy2.js?v=1762424784323","./vue-legacy.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1762424784323","./naive-legacy.js?v=1762424784323","./common-legacy.js?v=1762424784323","./__commonjsHelpers__-legacy.js?v=1762424784323","./rules-legacy.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1762424784323","./index-legacy99.js?v=1762424784323"],function(e,t){"use strict";var l,a,o,r,i,n,s,c,u,d,p,_,v,y,g,f,x,m;return{setters:[e=>{l=e.c,a=e.f,o=e.h},e=>{r=e.dd,i=e.w},e=>{n=e.g},e=>{s=e.s},e=>{c=e.k,u=e.t,d=e.P,p=e.X,_=e.aG,v=e.R,y=e.V,g=e.W,f=e.U,x=e.S},e=>{m=e._},null,null,null,null,null,null,null,null,null],execute:function(){const t={class:"h-full"},b=c({__name:"details-count",props:{data:{default:()=>({})}},setup(e){const l=u(e,"data"),{t:a}=d(),o=p("--color-bg-2"),r=p("--chart-tooltip-bg-color"),i=p("--color-text-1"),n=p("--color-text-2"),s=p("--color-text-3"),c=p("--color-border"),x=_({backgroundColor:o.value,title:h(),tooltip:{trigger:"item",confine:!0,backgroundColor:r.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},formatter(e){const t=e;return`${t.marker} ${t.name}: ${t.value} (${t.percent}%)`}},series:w()}),b=["#6ec71e","#4885FF","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"];function h(e=0){return{text:a("Waf.Report.index_17"),textStyle:{color:i.value,fontSize:17},subtext:`${e}`,subtextStyle:{color:n.value,fontSize:15},itemGap:20,left:"center",top:"42%"}}function w(e=[]){return[{type:"pie",data:e,radius:["50%","60%"],center:["50%","50%"],clockwise:!0,avoidLabelOverlap:!0,label:{show:!0,position:"outside",color:s.value,lineHeight:18,formatter:e=>""!==e.name?0===e.percent?"":a("Waf.Overview.index_33",[e.name,e.value,e.percent]):""},labelLine:{length:30,length2:30,lineStyle:{width:1,color:c.value}},itemStyle:{labelLine:{length:30,length2:30,lineStyle:{width:1,color:c.value}},color:e=>b[e.dataIndex]},emphasis:{scaleSize:15}}]}return(()=>{let e=0;const t=[];Object.entries(l.value).forEach(([l,a])=>{e+=a,t.push({name:l,value:a})}),x.title=h(e),x.series=w(t)})(),(e,l)=>(y(),v("div",t,[g(m,{type:"pie",height:"100%",option:f(x)},null,8,["option"])]))}}),h={class:"h-full"},w=c({__name:"details-uri",props:{data:{default:()=>[]}},setup(e){const t=u(e,"data"),{t:l}=d(),a=p("--color-bg-2"),o=p("--chart-tooltip-bg-color"),i=p("--color-text-1"),n=p("--color-text-2"),s=p("--color-border"),c=_({backgroundColor:a.value,tooltip:{trigger:"item",axisPointer:{type:"shadow",label:{color:"#fff",fontSize:"26"}},backgroundColor:o.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},formatter(e){const t=e;return`${t.marker} ${r(t.seriesName||"")}
\n\t\t\t${l("Waf.Report.index_16",[t.data])}
`}},legend:{top:"0%",data:t.value.slice(0,4).map(e=>e.name),textStyle:{fontSize:12,color:n.value},icon:"rect"},grid:{top:60,left:60,right:0,bottom:50},xAxis:[{type:"category",axisLabel:{color:i.value,fontSize:14,fontWeight:"bold"},data:[l("Waf.Report.index_15")]}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitNumber:4,axisLabel:{color:n.value},splitLine:{lineStyle:{type:"dashed",color:s.value}}}],color:["#4fa8f9","#6ec71e","#f56e6a","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"],series:t.value.slice(0,4).map(e=>({name:e.name,type:"bar",label:{show:!0,position:"top"},barMaxWidth:60,data:[e.value]}))});return(e,t)=>(y(),v("div",h,[g(m,{type:"bar",height:"100%",option:f(c)},null,8,["option"])]))}}),j={class:"p-20px"},S={class:"flex h-280px mb-16px"},k={class:"w-410px"},W={class:"w-500px"};e("default",c({__name:"details",props:{row:{}},setup(e){const t=u(e,"row"),{t:c}=d(),{table:p,columns:_}=l([{key:"time_localtime",title:c("Waf.Report.index_13"),width:140},{key:"server_name",title:c("Waf.Report.index_14"),ellipsis:{tooltip:!0}},{key:"ip_country",title:c("Waf.Report.index_8"),render:e=>e.ip_country||"--"},{key:"URI",title:"URI",ellipsis:{tooltip:!0},render:e=>r(e.uri)||"--"},{key:"filter_rule",title:c("Waf.Report.index_34"),width:140},a({width:80,options:e=>[{label:c("Public.Btn.Details"),onClick:async()=>{const{message:t}=await n({id:e.id});i(t)&&t.length>0&&s(t[0])}}]})]);p.data=t.value.data.list;const m=t.value.data.uri.map(e=>({name:e[0],value:e[1]}));return(e,l)=>{const a=o;return y(),v("div",j,[x("div",S,[x("div",k,[g(b,{data:f(t).data.type},null,8,["data"])]),x("div",W,[g(w,{data:f(m)},null,8,["data"])])]),g(a,{"max-height":300,data:f(p).data,columns:f(_)},null,8,["data","columns"])])}}}))}}});
+System.register(["./public-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./index-legacy80.js?v=1763625242172","./tools-legacy2.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./rules-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index-legacy99.js?v=1763625242172"],(function(e,t){"use strict";var l,a,o,r,i,n,s,c,u,d,p,_,v,y,g,f,x,m;return{setters:[e=>{l=e.c,a=e.f,o=e.h},e=>{r=e.dL,i=e.x},e=>{n=e.g},e=>{s=e.s},e=>{c=e.k,u=e.t,d=e.P,p=e.W,_=e.aG,v=e.R,y=e.S,g=e.X,f=e.V,x=e.U},e=>{m=e._},null,null,null,null,null,null,null,null,null],execute:function(){const t={class:"h-full"},b=c({__name:"details-count",props:{data:{default:()=>({})}},setup(e){const l=u(e,"data"),{t:a}=d(),o=p("--color-bg-2"),r=p("--chart-tooltip-bg-color"),i=p("--color-text-1"),n=p("--color-text-2"),s=p("--color-text-3"),c=p("--color-border"),x=_({backgroundColor:o.value,title:h(),tooltip:{trigger:"item",confine:!0,backgroundColor:r.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},formatter(e){const t=e;return`${t.marker} ${t.name}: ${t.value} (${t.percent}%)`}},series:w()}),b=["#6ec71e","#4885FF","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"];function h(e=0){return{text:a("Waf.Report.index_17"),textStyle:{color:i.value,fontSize:17},subtext:`${e}`,subtextStyle:{color:n.value,fontSize:15},itemGap:20,left:"center",top:"42%"}}function w(e=[]){return[{type:"pie",data:e,radius:["50%","60%"],center:["50%","50%"],clockwise:!0,avoidLabelOverlap:!0,label:{show:!0,position:"outside",color:s.value,lineHeight:18,formatter:e=>""!==e.name?0===e.percent?"":a("Waf.Overview.index_33",[e.name,e.value,e.percent]):""},labelLine:{length:30,length2:30,lineStyle:{width:1,color:c.value}},itemStyle:{labelLine:{length:30,length2:30,lineStyle:{width:1,color:c.value}},color:e=>b[e.dataIndex]},emphasis:{scaleSize:15}}]}return(()=>{let e=0;const t=[];Object.entries(l.value).forEach((([l,a])=>{e+=a,t.push({name:l,value:a})})),x.title=h(e),x.series=w(t)})(),(e,l)=>(v(),y("div",t,[g(m,{type:"pie",height:"100%",option:f(x)},null,8,["option"])]))}}),h={class:"h-full"},w=c({__name:"details-uri",props:{data:{default:()=>[]}},setup(e){const t=u(e,"data"),{t:l}=d(),a=p("--color-bg-2"),o=p("--chart-tooltip-bg-color"),i=p("--color-text-1"),n=p("--color-text-2"),s=p("--color-border"),c=_({backgroundColor:a.value,tooltip:{trigger:"item",axisPointer:{type:"shadow",label:{color:"#fff",fontSize:"26"}},backgroundColor:o.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},formatter(e){const t=e;return`${t.marker} ${r(t.seriesName||"")}
\n\t\t\t${l("Waf.Report.index_16",[t.data])}
`}},legend:{top:"0%",data:t.value.slice(0,4).map((e=>e.name)),textStyle:{fontSize:12,color:n.value},icon:"rect"},grid:{top:60,left:60,right:0,bottom:50},xAxis:[{type:"category",axisLabel:{color:i.value,fontSize:14,fontWeight:"bold"},data:[l("Waf.Report.index_15")]}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitNumber:4,axisLabel:{color:n.value},splitLine:{lineStyle:{type:"dashed",color:s.value}}}],color:["#4fa8f9","#6ec71e","#f56e6a","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"],series:t.value.slice(0,4).map((e=>({name:e.name,type:"bar",label:{show:!0,position:"top"},barMaxWidth:60,data:[e.value]})))});return(e,t)=>(v(),y("div",h,[g(m,{type:"bar",height:"100%",option:f(c)},null,8,["option"])]))}}),j={class:"p-20px"},S={class:"flex h-280px mb-16px"},k={class:"w-410px"},W={class:"w-500px"};e("default",c({__name:"details",props:{row:{}},setup(e){const t=u(e,"row"),{t:c}=d(),{table:p,columns:_}=l([{key:"time_localtime",title:c("Waf.Report.index_13"),width:140},{key:"server_name",title:c("Waf.Report.index_14"),ellipsis:{tooltip:!0}},{key:"ip_country",title:c("Waf.Report.index_8"),render:e=>e.ip_country||"--"},{key:"URI",title:"URI",ellipsis:{tooltip:!0},render:e=>r(e.uri)||"--"},{key:"filter_rule",title:c("Waf.Report.index_34"),width:140},a({width:80,options:e=>[{label:c("Public.Btn.Details"),onClick:async()=>{const{message:t}=await n({id:e.id});i(t)&&t.length>0&&s(t[0])}}]})]);p.data=t.value.data.list;const m=t.value.data.uri.map((e=>({name:e[0],value:e[1]})));return(e,l)=>{const a=o;return v(),y("div",j,[x("div",S,[x("div",k,[g(b,{data:f(t).data.type},null,8,["data"])]),x("div",W,[g(w,{data:f(m)},null,8,["data"])])]),g(a,{"max-height":300,data:f(p).data,columns:f(_)},null,8,["data","columns"])])}}}))}}}));
diff --git a/BTPanel/static/vite/js/details-legacy3.js b/BTPanel/static/vite/js/details-legacy3.js
index 2baf6110..1abc5703 100644
--- a/BTPanel/static/vite/js/details-legacy3.js
+++ b/BTPanel/static/vite/js/details-legacy3.js
@@ -1 +1 @@
-System.register(["./public-legacy.js?v=1762424784323","./page_layout-legacy.js?v=1762424784323","./index-legacy80.js?v=1762424784323","./tools-legacy2.js?v=1762424784323","./vue-legacy.js?v=1762424784323","./naive-legacy.js?v=1762424784323","./common-legacy.js?v=1762424784323","./__commonjsHelpers__-legacy.js?v=1762424784323","./rules-legacy.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1762424784323","./index-legacy99.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1762424784323"],function(e,t){"use strict";var l,i,s,n,u,a,_,c,r,p,d,y,o;return{setters:[e=>{l=e.c,i=e.f,s=e.h},e=>{n=e.dd,u=e.w},e=>{a=e.g},e=>{_=e.s},e=>{c=e.k,r=e.P,p=e.R,d=e.V,y=e.W,o=e.U},null,null,null,null,null,null,null,null,null,null],execute:function(){const t={class:"p-20px"};e("default",c({__name:"details",props:{list:{}},setup(e){const c=e,{t:g}=r(),{table:j,columns:v}=l([{key:"time_localtime",title:g("Waf.Report.index_13"),width:140},{key:"ip",title:g("Waf.Report.index_7"),width:120},{key:"server_name",title:g("Waf.Report.index_14"),width:120},{key:"ip_country",title:g("Waf.Report.index_8"),width:140,render:e=>e.ip_country||"--"},{key:"uri",title:"URI",ellipsis:{tooltip:!0},render:e=>n(e.uri)},{key:"filter_rule",title:g("Waf.Report.index_1"),width:140},i({width:80,options:e=>[{label:g("Public.Btn.Details"),onClick:async()=>{const{message:t}=await a({id:e.id});u(t)&&t.length>0&&_(t[0])}}]})]);return j.data=c.list,(e,l)=>{const i=s;return d(),p("div",t,[y(i,{"max-height":550,data:o(j).data,columns:o(v)},null,8,["data","columns"])])}}}))}}});
+System.register(["./public-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./index-legacy80.js?v=1763625242172","./tools-legacy2.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./rules-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index-legacy99.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1763625242172"],(function(e,t){"use strict";var l,i,s,n,u,a,_,c,r,p,y,d,o;return{setters:[e=>{l=e.c,i=e.f,s=e.h},e=>{n=e.dL,u=e.x},e=>{a=e.g},e=>{_=e.s},e=>{c=e.k,r=e.P,p=e.R,y=e.S,d=e.X,o=e.V},null,null,null,null,null,null,null,null,null,null],execute:function(){const t={class:"p-20px"};e("default",c({__name:"details",props:{list:{}},setup(e){const c=e,{t:g}=r(),{table:j,columns:x}=l([{key:"time_localtime",title:g("Waf.Report.index_13"),width:140},{key:"ip",title:g("Waf.Report.index_7"),width:120},{key:"server_name",title:g("Waf.Report.index_14"),width:120},{key:"ip_country",title:g("Waf.Report.index_8"),width:140,render:e=>e.ip_country||"--"},{key:"uri",title:"URI",ellipsis:{tooltip:!0},render:e=>n(e.uri)},{key:"filter_rule",title:g("Waf.Report.index_1"),width:140},i({width:80,options:e=>[{label:g("Public.Btn.Details"),onClick:async()=>{const{message:t}=await a({id:e.id});u(t)&&t.length>0&&_(t[0])}}]})]);return j.data=c.list,(e,l)=>{const i=s;return p(),y("div",t,[d(i,{"max-height":550,data:o(j).data,columns:o(x)},null,8,["data","columns"])])}}}))}}}));
diff --git a/BTPanel/static/vite/js/details-legacy4.js b/BTPanel/static/vite/js/details-legacy4.js
index 371471c1..f3bc9aca 100644
--- a/BTPanel/static/vite/js/details-legacy4.js
+++ b/BTPanel/static/vite/js/details-legacy4.js
@@ -1 +1 @@
-System.register(["./index-legacy.js?v=1762424784323","./vue-legacy.js?v=1762424784323","./page_layout-legacy.js?v=1762424784323","./public-legacy.js?v=1762424784323","./naive-legacy.js?v=1762424784323"],function(e,t){"use strict";var a,i,l,n,d,o,s,p,c,r,x,v,u,m,g,b,f,h,y,_,k,H,U,w,$,C,j,z,I,M,q;return{setters:[e=>{a=e.a},e=>{i=e.k,l=e.P,n=e.r,d=e.c,o=e.aq,s=e.a5,p=e.R,c=e.V,r=e.S,x=e.W,v=e.a4,u=e.F,m=e.O,g=e.H,b=e.U,f=e.ak,h=e.a3,y=e.ay,_=e.I,k=e.j},e=>{H=e.a8,U=e.g6,w=e.d,$=e.g7,C=e.g5,j=e.O,z=e.p},e=>{I=e.q},e=>{M=e._,q=e.aC}],execute:function(){var t=document.createElement("style");t.textContent='.card[data-v-76523929]{background:var(--home-update-detail-bg);margin-bottom:20px;border-radius:4px;padding:20px 24px}.version[data-v-76523929]{position:relative;margin-left:95px;padding:5px 0 0 2px;border-left:5px solid #e1e1e1}.version .active[data-v-76523929]{position:absolute;left:-10px;top:21px;display:block;width:15px;height:15px;margin-bottom:10px;background-color:#20a53a;border-radius:50%}.version .active[data-v-76523929]:after{content:"";position:relative;top:5px;left:5px;display:block;height:5px;width:5px;border-radius:50%;background-color:#fff}.version .date[data-v-76523929]{position:absolute;left:-90px;top:13px;line-height:30px;font-size:13px;color:var(--home-update-detail-date)}.version .text[data-v-76523929]{margin-top:7px;margin-left:5px;margin-bottom:5px;padding-left:15px;line-height:32px;border-bottom:1px solid #ececec;font-size:15px;color:#20a53a}.version .content[data-v-76523929]{line-height:24px;font-size:12px;min-height:40px;padding-left:20px;color:#888}\n/*$vite$:1*/',document.head.appendChild(t);const B={class:"w-650px"},L={class:"card"},O={class:"mb-12px font-bold text-18px text-center"},P={class:"min-h-172px text-13px"},S={class:"card"},T={class:"mb-10px text-16px text-center"},E={class:"h-180px overflow-auto"},F={class:"date"},R={class:"text"},V=["innerHTML"],W={class:"font-bold"},A={class:"text-error"};e("B",z(i({__name:"details",emits:["close"],setup(e,{emit:t}){const i=t,{t:z}=l(),D=n(!1),G=n(5),J=d(()=>G.value>0),K=d(()=>!D.value),N=n([]),Q=n([]),{height:X}=o(),Y=d(()=>X.value?.9*X.value+"px":"auto"),Z=()=>{const e=setInterval(()=>{G.value--,G.value<=0&&clearInterval(e)},1e3)},ee=()=>{i("close")},te=()=>{I({title:z("Home.Update.index_24"),content:z("Home.Update.index_25"),onConfirm:async()=>{await $(),await C(),j()}})};return(async()=>{const{message:e}=await U();w(e)&&(N.value=e.beta_ps.split("
").map(e=>e.trim()),Q.value=e.list,Z())})(),(e,t)=>{const i=s("i18n-t"),l=M,n=q,d=a;return c(),p("div",B,[r("div",{class:"p-20px overflow-auto",style:_({maxHeight:b(Y)})},[r("div",L,[r("div",O,v(e.$t("Home.Update.index_20")),1),r("ul",P,[(c(!0),p(u,null,m(b(N),(e,t)=>(c(),p("li",{key:e,class:g(["indent--15px pl-15px leading-20px",{"mt-8px":0!==t}])},v(e),3))),128))])]),r("div",S,[r("div",T,v(e.$t("Home.Update.index_21")),1),r("div",E,[(c(!0),p(u,null,m(b(Q),e=>(c(),p("div",{key:e.version,class:"version"},[t[1]||(t[1]=r("div",{class:"active"},null,-1)),r("div",F,v(b(H)(e.uptime,"yyyy-MM-dd")),1),r("div",R,v(e.version),1),r("div",{class:"content",innerHTML:e.upmsg},null,8,V)]))),128))])]),r("div",null,[x(l,{checked:b(D),"onUpdate:checked":t[0]||(t[0]=e=>f(D)?D.value=e:null),disabled:b(J)},{default:h(()=>[x(i,{tag:"div",class:"text-14px",keypath:"Home.Update.index_23_1"},y({title:h(()=>[r("span",W,v(e.$t("Home.Update.index_23_2")),1)]),_:2},[b(G)>0?{name:"wait",fn:h(()=>[r("span",A,v(e.$t("Home.Update.index_23_3",[b(G)])),1)]),key:"0"}:void 0]),1024)]),_:1},8,["checked","disabled"])])],4),x(d,null,{default:h(()=>[x(n,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:ee},{default:h(()=>[k(v(e.$t("Public.Btn.Cancel")),1)]),_:1}),x(n,{type:"primary",size:"small",disabled:b(K),onClick:te},{default:h(()=>[k(v(e.$t("Home.Update.index_19")),1)]),_:1},8,["disabled"])]),_:1})])}}}),[["__scopeId","data-v-76523929"]]))}}});
+System.register(["./index-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172"],(function(e,t){"use strict";var a,i,l,n,d,o,s,p,c,r,x,v,u,m,g,b,f,h,y,_,k,H,U,w,j,C,$,z,M,I,L;return{setters:[e=>{a=e.a},e=>{i=e.k,l=e.P,n=e.r,d=e.c,o=e.aq,s=e.a5,p=e.R,c=e.S,r=e.U,x=e.a4,v=e.F,u=e.O,m=e.H,g=e.V,b=e.X,f=e.a3,h=e.ay,y=e.aj,_=e.I,k=e.j},e=>{H=e.a9,U=e.gL,w=e.c,j=e.gM,C=e.gJ,$=e.P,z=e.p},e=>{M=e.p},e=>{I=e._,L=e.aC}],execute:function(){var t=document.createElement("style");t.textContent='.card[data-v-76523929]{background:var(--home-update-detail-bg);margin-bottom:20px;border-radius:4px;padding:20px 24px}.version[data-v-76523929]{position:relative;margin-left:95px;padding:5px 0 0 2px;border-left:5px solid #e1e1e1}.version .active[data-v-76523929]{position:absolute;left:-10px;top:21px;display:block;width:15px;height:15px;margin-bottom:10px;background-color:#20a53a;border-radius:50%}.version .active[data-v-76523929]:after{content:"";position:relative;top:5px;left:5px;display:block;height:5px;width:5px;border-radius:50%;background-color:#fff}.version .date[data-v-76523929]{position:absolute;left:-90px;top:13px;line-height:30px;font-size:13px;color:var(--home-update-detail-date)}.version .text[data-v-76523929]{margin-top:7px;margin-left:5px;margin-bottom:5px;padding-left:15px;line-height:32px;border-bottom:1px solid #ececec;font-size:15px;color:#20a53a}.version .content[data-v-76523929]{line-height:24px;font-size:12px;min-height:40px;padding-left:20px;color:#888}\n',document.head.appendChild(t);const P={class:"w-650px"},B={class:"card"},S={class:"mb-12px font-bold text-18px text-center"},T={class:"min-h-172px text-13px"},q={class:"card"},E={class:"mb-10px text-16px text-center"},F={class:"h-180px overflow-auto"},J={class:"date"},O={class:"text"},R=["innerHTML"],V={class:"font-bold"},X={class:"text-error"};e("B",z(i({__name:"details",emits:["close"],setup(e,{emit:t}){const i=t,{t:z}=l(),A=n(!1),D=n(5),G=d((()=>D.value>0)),K=d((()=>!A.value)),N=n([]),Q=n([]),{height:W}=o(),Y=d((()=>W.value?.9*W.value+"px":"auto")),Z=()=>{const e=setInterval((()=>{D.value--,D.value<=0&&clearInterval(e)}),1e3)},ee=()=>{i("close")},te=()=>{M({title:z("Home.Update.index_24"),content:z("Home.Update.index_25"),onConfirm:async()=>{await j(),await C(),$()}})};return(async()=>{const{message:e}=await U();w(e)&&(N.value=e.beta_ps.split("
").map((e=>e.trim())),Q.value=e.list,Z())})(),(e,t)=>{const i=s("i18n-t"),l=I,n=L,d=a;return p(),c("div",P,[r("div",{class:"p-20px overflow-auto",style:_({maxHeight:g(Y)})},[r("div",B,[r("div",S,x(e.$t("Home.Update.index_20")),1),r("ul",T,[(p(!0),c(v,null,u(g(N),((e,t)=>(p(),c("li",{key:e,class:m(["indent--15px pl-15px leading-20px",{"mt-8px":0!==t}])},x(e),3)))),128))])]),r("div",q,[r("div",E,x(e.$t("Home.Update.index_21")),1),r("div",F,[(p(!0),c(v,null,u(g(Q),(e=>(p(),c("div",{key:e.version,class:"version"},[t[1]||(t[1]=r("div",{class:"active"},null,-1)),r("div",J,x(g(H)(e.uptime,"yyyy-MM-dd")),1),r("div",O,x(e.version),1),r("div",{class:"content",innerHTML:e.upmsg},null,8,R)])))),128))])]),r("div",null,[b(l,{checked:g(A),"onUpdate:checked":t[0]||(t[0]=e=>y(A)?A.value=e:null),disabled:g(G)},{default:f((()=>[b(i,{tag:"div",class:"text-14px",keypath:"Home.Update.index_23_1"},h({title:f((()=>[r("span",V,x(e.$t("Home.Update.index_23_2")),1)])),_:2},[g(D)>0?{name:"wait",fn:f((()=>[r("span",X,x(e.$t("Home.Update.index_23_3",[g(D)])),1)])),key:"0"}:void 0]),1024)])),_:1},8,["checked","disabled"])])],4),b(d,null,{default:f((()=>[b(n,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:ee},{default:f((()=>[k(x(e.$t("Public.Btn.Cancel")),1)])),_:1}),b(n,{type:"primary",size:"small",disabled:g(K),onClick:te},{default:f((()=>[k(x(e.$t("Home.Update.index_19")),1)])),_:1},8,["disabled"])])),_:1})])}}}),[["__scopeId","data-v-76523929"]]))}}}));
diff --git a/BTPanel/static/vite/js/details.js b/BTPanel/static/vite/js/details.js
index 0a5aae98..d89a2c5a 100644
--- a/BTPanel/static/vite/js/details.js
+++ b/BTPanel/static/vite/js/details.js
@@ -1 +1 @@
-import{_ as a}from"./index177.js?v=1762424784323";import{a6 as l,dd as e,a7 as s,p as t}from"./page_layout.js?v=1762424784323";import{a as n,b as i,h as o}from"./tools2.js?v=1762424784323";import{d as c}from"./public.js?v=1762424784323";import{k as d,t as f,P as u,c as p,r as _,R as r,V as m,W as b,S as x,a3 as v,j as g,a4 as k,U as j}from"./vue.js?v=1762424784323";import{dc as W}from"./naive.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";import"./common.js?v=1762424784323";import"./rules.js?v=1762424784323";const w={class:"p-20px"},B={class:"flex justify-between"},h={class:"flex justify-between"},y={class:"mt-20px"},$={class:"mt-10px"},C=t(d({__name:"details",props:{row:{}},setup(t){const d=f(t,"row"),{t:C}=u(),H=p(()=>d.value.incoming_value.indexOf('b"')>-1?d.value.incoming_value.substring(2,d.value.incoming_value.length-1).split(" >> "):d.value.incoming_value.split(" >> ")),P=p(()=>H.value[1]||C("Waf.Block.index_72")),T=p(()=>H.value[2]||C("Waf.Block.index_72")),U=()=>{n(d.value)},A=()=>{i(d.value,!1)},I=_(""),{loading:L,setLoading:O}=c();return(async()=>{try{O(!0);const{message:a}=await o({path:d.value.http_log});I.value=a.result}finally{O(!1)}})(),(t,n)=>{const i=l,o=W,c=s,f=a;return m(),r("div",w,[b(c,{column:2,bordered:!0,"label-placement":"left","label-style":{width:"160px"},"content-style":{fontWeight:"bold"}},{default:v(()=>[b(i,{label:t.$t("Waf.Block.index_66")},{default:v(()=>[g(k(j(e)(j(d).time_localtime)),1)]),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_67")},{default:v(()=>[x("a",{class:"bt-link",href:"javascript:;",onClick:U},k(j(e)(j(d).ip)),1)]),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_15")},{default:v(()=>[g(k(j(e)(j(d).type)),1)]),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_21")},{default:v(()=>[g(k(j(e)(j(d).filter_rule)),1)]),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_68"),span:2},{default:v(()=>[x("div",B,[b(o,{class:"w-480px"},{default:v(()=>[g(k(j(e)(j(d).uri)),1)]),_:1}),x("a",{class:"bt-link",href:"javascript:;",onClick:A},k(t.$t("Waf.Block.index_23")),1)])]),_:1},8,["label"]),b(i,{label:"User-Agent",span:2},{default:v(()=>[b(o,{class:"w-570px"},{default:v(()=>[g(k(j(e)(j(d).user_agent)),1)]),_:1})]),_:1}),b(i,{label:t.$t("Waf.Block.index_69"),span:2},{default:v(()=>[x("div",h,[b(o,{class:"w-480px"},{default:v(()=>[g(k(j(e)(j(H)[0])),1)]),_:1})])]),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_70"),span:2},{default:v(()=>[b(o,{class:"w-570px"},{default:v(()=>[g(k(j(e)(j(P))),1)]),_:1})]),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_71"),span:2},{default:v(()=>[b(o,{class:"w-570px"},{default:v(()=>[g(k(j(e)(j(T))),1)]),_:1})]),_:1},8,["label"])]),_:1}),x("div",y,[n[0]||(n[0]=x("div",{class:"text-14px font-bold"},"HTTP",-1)),x("div",$,[b(f,{class:"h-260px",lang:"http",loading:j(L),content:j(I)},null,8,["loading","content"])])])])}}}),[["__scopeId","data-v-f3ca0370"]]);export{C as default};
+import{_ as a}from"./index178.js?v=1763625242172";import{dL as l,a7 as e,a8 as s,p as t}from"./page_layout.js?v=1763625242172";import{a as n,b as i,h as o}from"./tools2.js?v=1763625242172";import{d as c}from"./public.js?v=1763625242172";import{k as d,t as f,P as u,c as p,r as _,R as r,S as m,X as b,a3 as x,j as v,a4 as g,V as k,U as j}from"./vue.js?v=1763625242172";import{dc as W}from"./naive.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./common.js?v=1763625242172";import"./rules.js?v=1763625242172";const w={class:"p-20px"},B={class:"flex justify-between"},h={class:"flex justify-between"},y={class:"mt-20px"},$={class:"mt-10px"},C=t(d({__name:"details",props:{row:{}},setup(t){const d=f(t,"row"),{t:C}=u(),H=p((()=>d.value.incoming_value.indexOf('b"')>-1?d.value.incoming_value.substring(2,d.value.incoming_value.length-1).split(" >> "):d.value.incoming_value.split(" >> "))),L=p((()=>H.value[1]||C("Waf.Block.index_72"))),P=p((()=>H.value[2]||C("Waf.Block.index_72"))),T=()=>{n(d.value)},U=()=>{i(d.value,!1)},A=_(""),{loading:I,setLoading:O}=c();return(async()=>{try{O(!0);const{message:a}=await o({path:d.value.http_log});A.value=a.result}finally{O(!1)}})(),(t,n)=>{const i=e,o=W,c=s,f=a;return r(),m("div",w,[b(c,{column:2,bordered:!0,"label-placement":"left","label-style":{width:"160px"},"content-style":{fontWeight:"bold"}},{default:x((()=>[b(i,{label:t.$t("Waf.Block.index_66")},{default:x((()=>[v(g(k(l)(k(d).time_localtime)),1)])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_67")},{default:x((()=>[j("a",{class:"bt-link",href:"javascript:;",onClick:T},g(k(l)(k(d).ip)),1)])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_15")},{default:x((()=>[v(g(k(l)(k(d).type)),1)])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_21")},{default:x((()=>[v(g(k(l)(k(d).filter_rule)),1)])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_68"),span:2},{default:x((()=>[j("div",B,[b(o,{class:"w-480px"},{default:x((()=>[v(g(k(l)(k(d).uri)),1)])),_:1}),j("a",{class:"bt-link",href:"javascript:;",onClick:U},g(t.$t("Waf.Block.index_23")),1)])])),_:1},8,["label"]),b(i,{label:"User-Agent",span:2},{default:x((()=>[b(o,{class:"w-570px"},{default:x((()=>[v(g(k(l)(k(d).user_agent)),1)])),_:1})])),_:1}),b(i,{label:t.$t("Waf.Block.index_69"),span:2},{default:x((()=>[j("div",h,[b(o,{class:"w-480px"},{default:x((()=>[v(g(k(l)(k(H)[0])),1)])),_:1})])])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_70"),span:2},{default:x((()=>[b(o,{class:"w-570px"},{default:x((()=>[v(g(k(l)(k(L))),1)])),_:1})])),_:1},8,["label"]),b(i,{label:t.$t("Waf.Block.index_71"),span:2},{default:x((()=>[b(o,{class:"w-570px"},{default:x((()=>[v(g(k(l)(k(P))),1)])),_:1})])),_:1},8,["label"])])),_:1}),j("div",y,[n[0]||(n[0]=j("div",{class:"text-14px font-bold"},"HTTP",-1)),j("div",$,[b(f,{class:"h-260px",lang:"http",loading:k(I),content:k(A)},null,8,["loading","content"])])])])}}}),[["__scopeId","data-v-f3ca0370"]]);export{C as default};
diff --git a/BTPanel/static/vite/js/details2.js b/BTPanel/static/vite/js/details2.js
index 99ae977d..79581e31 100644
--- a/BTPanel/static/vite/js/details2.js
+++ b/BTPanel/static/vite/js/details2.js
@@ -1 +1 @@
-import{c as e,f as t,h as a}from"./public.js?v=1762424784323";import{dd as o,w as l}from"./page_layout.js?v=1762424784323";import{g as r}from"./index80.js?v=1762424784323";import{s as i}from"./tools2.js?v=1762424784323";import{k as s,t as n,P as c,X as p,aG as u,R as d,V as m,W as _,U as f,S as v}from"./vue.js?v=1762424784323";import{_ as x}from"./index.vue_vue_type_script_setup_true_lang15.js?v=1762424784323";import"./naive.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";import"./rules.js?v=1762424784323";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1762424784323";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1762424784323";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1762424784323";import"./index.vue_vue_type_script_setup_true_lang.js?v=1762424784323";import"./index99.js?v=1762424784323";const b={class:"h-full"},h=s({__name:"details-count",props:{data:{default:()=>({})}},setup(e){const t=n(e,"data"),{t:a}=c(),o=p("--color-bg-2"),l=p("--chart-tooltip-bg-color"),r=p("--color-text-1"),i=p("--color-text-2"),s=p("--color-text-3"),v=p("--color-border"),h=u({backgroundColor:o.value,title:g(),tooltip:{trigger:"item",confine:!0,backgroundColor:l.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},formatter(e){const t=e;return"".concat(t.marker," ").concat(t.name,": ").concat(t.value," (").concat(t.percent,"%)")}},series:w()}),y=["#6ec71e","#4885FF","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"];function g(e=0){return{text:a("Waf.Report.index_17"),textStyle:{color:r.value,fontSize:17},subtext:"".concat(e),subtextStyle:{color:i.value,fontSize:15},itemGap:20,left:"center",top:"42%"}}function w(e=[]){return[{type:"pie",data:e,radius:["50%","60%"],center:["50%","50%"],clockwise:!0,avoidLabelOverlap:!0,label:{show:!0,position:"outside",color:s.value,lineHeight:18,formatter:e=>""!==e.name?0===e.percent?"":a("Waf.Overview.index_33",[e.name,e.value,e.percent]):""},labelLine:{length:30,length2:30,lineStyle:{width:1,color:v.value}},itemStyle:{labelLine:{length:30,length2:30,lineStyle:{width:1,color:v.value}},color:e=>y[e.dataIndex]},emphasis:{scaleSize:15}}]}return(()=>{let e=0;const a=[];Object.entries(t.value).forEach(([t,o])=>{e+=o,a.push({name:t,value:o})}),h.title=g(e),h.series=w(a)})(),(e,t)=>(m(),d("div",b,[_(x,{type:"pie",height:"100%",option:f(h)},null,8,["option"])]))}}),y={class:"h-full"},g=s({__name:"details-uri",props:{data:{default:()=>[]}},setup(e){const t=n(e,"data"),{t:a}=c(),l=p("--color-bg-2"),r=p("--chart-tooltip-bg-color"),i=p("--color-text-1"),s=p("--color-text-2"),v=p("--color-border"),b=u({backgroundColor:l.value,tooltip:{trigger:"item",axisPointer:{type:"shadow",label:{color:"#fff",fontSize:"26"}},backgroundColor:r.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},formatter(e){const t=e;return''.concat(t.marker," ").concat(o(t.seriesName||""),"
\n\t\t\t").concat(a("Waf.Report.index_16",[t.data]),"
")}},legend:{top:"0%",data:t.value.slice(0,4).map(e=>e.name),textStyle:{fontSize:12,color:s.value},icon:"rect"},grid:{top:60,left:60,right:0,bottom:50},xAxis:[{type:"category",axisLabel:{color:i.value,fontSize:14,fontWeight:"bold"},data:[a("Waf.Report.index_15")]}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitNumber:4,axisLabel:{color:s.value},splitLine:{lineStyle:{type:"dashed",color:v.value}}}],color:["#4fa8f9","#6ec71e","#f56e6a","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"],series:t.value.slice(0,4).map(e=>({name:e.name,type:"bar",label:{show:!0,position:"top"},barMaxWidth:60,data:[e.value]}))});return(e,t)=>(m(),d("div",y,[_(x,{type:"bar",height:"100%",option:f(b)},null,8,["option"])]))}}),w={class:"p-20px"},j={class:"flex h-280px mb-16px"},S={class:"w-410px"},k={class:"w-500px"},W=s({__name:"details",props:{row:{}},setup(s){const p=n(s,"row"),{t:u}=c(),{table:x,columns:b}=e([{key:"time_localtime",title:u("Waf.Report.index_13"),width:140},{key:"server_name",title:u("Waf.Report.index_14"),ellipsis:{tooltip:!0}},{key:"ip_country",title:u("Waf.Report.index_8"),render:e=>e.ip_country||"--"},{key:"URI",title:"URI",ellipsis:{tooltip:!0},render:e=>o(e.uri)||"--"},{key:"filter_rule",title:u("Waf.Report.index_34"),width:140},t({width:80,options:e=>[{label:u("Public.Btn.Details"),onClick:async()=>{const{message:t}=await r({id:e.id});l(t)&&t.length>0&&i(t[0])}}]})]);x.data=p.value.data.list;const y=p.value.data.uri.map(e=>({name:e[0],value:e[1]}));return(e,t)=>{const o=a;return m(),d("div",w,[v("div",j,[v("div",S,[_(h,{data:f(p).data.type},null,8,["data"])]),v("div",k,[_(g,{data:f(y)},null,8,["data"])])]),_(o,{"max-height":300,data:f(x).data,columns:f(b)},null,8,["data","columns"])])}}});export{W as default};
+import{c as e,f as t,h as a}from"./public.js?v=1763625242172";import{dL as o,x as l}from"./page_layout.js?v=1763625242172";import{g as r}from"./index80.js?v=1763625242172";import{s as i}from"./tools2.js?v=1763625242172";import{k as s,t as n,P as c,W as p,aG as u,R as d,S as m,X as _,V as f,U as v}from"./vue.js?v=1763625242172";import{_ as x}from"./index.vue_vue_type_script_setup_true_lang15.js?v=1763625242172";import"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./rules.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import"./index99.js?v=1763625242172";const b={class:"h-full"},h=s({__name:"details-count",props:{data:{default:()=>({})}},setup(e){const t=n(e,"data"),{t:a}=c(),o=p("--color-bg-2"),l=p("--chart-tooltip-bg-color"),r=p("--color-text-1"),i=p("--color-text-2"),s=p("--color-text-3"),v=p("--color-border"),h=u({backgroundColor:o.value,title:g(),tooltip:{trigger:"item",confine:!0,backgroundColor:l.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},formatter(e){const t=e;return"".concat(t.marker," ").concat(t.name,": ").concat(t.value," (").concat(t.percent,"%)")}},series:w()}),y=["#6ec71e","#4885FF","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"];function g(e=0){return{text:a("Waf.Report.index_17"),textStyle:{color:r.value,fontSize:17},subtext:"".concat(e),subtextStyle:{color:i.value,fontSize:15},itemGap:20,left:"center",top:"42%"}}function w(e=[]){return[{type:"pie",data:e,radius:["50%","60%"],center:["50%","50%"],clockwise:!0,avoidLabelOverlap:!0,label:{show:!0,position:"outside",color:s.value,lineHeight:18,formatter:e=>""!==e.name?0===e.percent?"":a("Waf.Overview.index_33",[e.name,e.value,e.percent]):""},labelLine:{length:30,length2:30,lineStyle:{width:1,color:v.value}},itemStyle:{labelLine:{length:30,length2:30,lineStyle:{width:1,color:v.value}},color:e=>y[e.dataIndex]},emphasis:{scaleSize:15}}]}return(()=>{let e=0;const a=[];Object.entries(t.value).forEach((([t,o])=>{e+=o,a.push({name:t,value:o})})),h.title=g(e),h.series=w(a)})(),(e,t)=>(d(),m("div",b,[_(x,{type:"pie",height:"100%",option:f(h)},null,8,["option"])]))}}),y={class:"h-full"},g=s({__name:"details-uri",props:{data:{default:()=>[]}},setup(e){const t=n(e,"data"),{t:a}=c(),l=p("--color-bg-2"),r=p("--chart-tooltip-bg-color"),i=p("--color-text-1"),s=p("--color-text-2"),v=p("--color-border"),b=u({backgroundColor:l.value,tooltip:{trigger:"item",axisPointer:{type:"shadow",label:{color:"#fff",fontSize:"26"}},backgroundColor:r.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},formatter(e){const t=e;return''.concat(t.marker," ").concat(o(t.seriesName||""),"
\n\t\t\t").concat(a("Waf.Report.index_16",[t.data]),"
")}},legend:{top:"0%",data:t.value.slice(0,4).map((e=>e.name)),textStyle:{fontSize:12,color:s.value},icon:"rect"},grid:{top:60,left:60,right:0,bottom:50},xAxis:[{type:"category",axisLabel:{color:i.value,fontSize:14,fontWeight:"bold"},data:[a("Waf.Report.index_15")]}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitNumber:4,axisLabel:{color:s.value},splitLine:{lineStyle:{type:"dashed",color:v.value}}}],color:["#4fa8f9","#6ec71e","#f56e6a","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"],series:t.value.slice(0,4).map((e=>({name:e.name,type:"bar",label:{show:!0,position:"top"},barMaxWidth:60,data:[e.value]})))});return(e,t)=>(d(),m("div",y,[_(x,{type:"bar",height:"100%",option:f(b)},null,8,["option"])]))}}),w={class:"p-20px"},j={class:"flex h-280px mb-16px"},S={class:"w-410px"},k={class:"w-500px"},W=s({__name:"details",props:{row:{}},setup(s){const p=n(s,"row"),{t:u}=c(),{table:x,columns:b}=e([{key:"time_localtime",title:u("Waf.Report.index_13"),width:140},{key:"server_name",title:u("Waf.Report.index_14"),ellipsis:{tooltip:!0}},{key:"ip_country",title:u("Waf.Report.index_8"),render:e=>e.ip_country||"--"},{key:"URI",title:"URI",ellipsis:{tooltip:!0},render:e=>o(e.uri)||"--"},{key:"filter_rule",title:u("Waf.Report.index_34"),width:140},t({width:80,options:e=>[{label:u("Public.Btn.Details"),onClick:async()=>{const{message:t}=await r({id:e.id});l(t)&&t.length>0&&i(t[0])}}]})]);x.data=p.value.data.list;const y=p.value.data.uri.map((e=>({name:e[0],value:e[1]})));return(e,t)=>{const o=a;return d(),m("div",w,[v("div",j,[v("div",S,[_(h,{data:f(p).data.type},null,8,["data"])]),v("div",k,[_(g,{data:f(y)},null,8,["data"])])]),_(o,{"max-height":300,data:f(x).data,columns:f(b)},null,8,["data","columns"])])}}});export{W as default};
diff --git a/BTPanel/static/vite/js/details3.js b/BTPanel/static/vite/js/details3.js
index cde7950b..1c68f848 100644
--- a/BTPanel/static/vite/js/details3.js
+++ b/BTPanel/static/vite/js/details3.js
@@ -1 +1 @@
-import{c as t,f as e,h as i}from"./public.js?v=1762424784323";import{dd as s,w as r}from"./page_layout.js?v=1762424784323";import{g as p}from"./index80.js?v=1762424784323";import{s as a}from"./tools2.js?v=1762424784323";import{k as o,P as _,R as n,V as l,W as u,U as m}from"./vue.js?v=1762424784323";import"./naive.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";import"./rules.js?v=1762424784323";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1762424784323";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1762424784323";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1762424784323";import"./index.vue_vue_type_script_setup_true_lang.js?v=1762424784323";import"./index99.js?v=1762424784323";import"./index.vue_vue_type_script_setup_true_lang15.js?v=1762424784323";const d={class:"p-20px"},c=o({__name:"details",props:{list:{}},setup(o){const c=o,{t:j}=_(),{table:x,columns:y}=t([{key:"time_localtime",title:j("Waf.Report.index_13"),width:140},{key:"ip",title:j("Waf.Report.index_7"),width:120},{key:"server_name",title:j("Waf.Report.index_14"),width:120},{key:"ip_country",title:j("Waf.Report.index_8"),width:140,render:t=>t.ip_country||"--"},{key:"uri",title:"URI",ellipsis:{tooltip:!0},render:t=>s(t.uri)},{key:"filter_rule",title:j("Waf.Report.index_1"),width:140},e({width:80,options:t=>[{label:j("Public.Btn.Details"),onClick:async()=>{const{message:e}=await p({id:t.id});r(e)&&e.length>0&&a(e[0])}}]})]);return x.data=c.list,(t,e)=>{const s=i;return l(),n("div",d,[u(s,{"max-height":550,data:m(x).data,columns:m(y)},null,8,["data","columns"])])}}});export{c as default};
+import{c as t,f as e,h as i}from"./public.js?v=1763625242172";import{dL as s,x as r}from"./page_layout.js?v=1763625242172";import{g as p}from"./index80.js?v=1763625242172";import{s as a}from"./tools2.js?v=1763625242172";import{k as o,P as _,R as n,S as l,X as u,V as m}from"./vue.js?v=1763625242172";import"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./rules.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import"./index99.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang15.js?v=1763625242172";const d={class:"p-20px"},c=o({__name:"details",props:{list:{}},setup(o){const c=o,{t:j}=_(),{table:x,columns:y}=t([{key:"time_localtime",title:j("Waf.Report.index_13"),width:140},{key:"ip",title:j("Waf.Report.index_7"),width:120},{key:"server_name",title:j("Waf.Report.index_14"),width:120},{key:"ip_country",title:j("Waf.Report.index_8"),width:140,render:t=>t.ip_country||"--"},{key:"uri",title:"URI",ellipsis:{tooltip:!0},render:t=>s(t.uri)},{key:"filter_rule",title:j("Waf.Report.index_1"),width:140},e({width:80,options:t=>[{label:j("Public.Btn.Details"),onClick:async()=>{const{message:e}=await p({id:t.id});r(e)&&e.length>0&&a(e[0])}}]})]);return x.data=c.list,(t,e)=>{const s=i;return n(),l("div",d,[u(s,{"max-height":550,data:m(x).data,columns:m(y)},null,8,["data","columns"])])}}});export{c as default};
diff --git a/BTPanel/static/vite/js/details4.js b/BTPanel/static/vite/js/details4.js
index d09b485e..d365562d 100644
--- a/BTPanel/static/vite/js/details4.js
+++ b/BTPanel/static/vite/js/details4.js
@@ -1 +1 @@
-import{a}from"./index.js?v=1762424784323";import{k as e,P as s,r as t,c as l,aq as i,a5 as n,R as d,V as c,S as o,W as p,a4 as r,F as m,O as v,H as x,U as u,ak as _,a3 as b,ay as f,I as y,j as H}from"./vue.js?v=1762424784323";import{a8 as k,g6 as g,d as U,g7 as h,g5 as w,O as j,p as $}from"./page_layout.js?v=1762424784323";import{q as C}from"./public.js?v=1762424784323";import{_ as I,aC as M}from"./naive.js?v=1762424784323";const q={class:"w-650px"},z={class:"card"},B={class:"mb-12px font-bold text-18px text-center"},L={class:"min-h-172px text-13px"},O={class:"card"},P={class:"mb-10px text-16px text-center"},T={class:"h-180px overflow-auto"},F={class:"date"},R={class:"text"},S=["innerHTML"],V={class:"font-bold"},W={class:"text-error"},A=$(e({__name:"details",emits:["close"],setup(e,{emit:$}){const A=$,{t:D}=s(),E=t(!1),G=t(5),J=l(()=>G.value>0),K=l(()=>!E.value),N=t([]),Q=t([]),{height:X}=i(),Y=l(()=>X.value?"".concat(.9*X.value,"px"):"auto"),Z=()=>{const a=setInterval(()=>{G.value--,G.value<=0&&clearInterval(a)},1e3)},aa=()=>{A("close")},ea=()=>{C({title:D("Home.Update.index_24"),content:D("Home.Update.index_25"),onConfirm:async()=>{await h(),await w(),j()}})};return(async()=>{const{message:a}=await g();U(a)&&(N.value=a.beta_ps.split("
").map(a=>a.trim()),Q.value=a.list,Z())})(),(e,s)=>{const t=n("i18n-t"),l=I,i=M,g=a;return c(),d("div",q,[o("div",{class:"p-20px overflow-auto",style:y({maxHeight:u(Y)})},[o("div",z,[o("div",B,r(e.$t("Home.Update.index_20")),1),o("ul",L,[(c(!0),d(m,null,v(u(N),(a,e)=>(c(),d("li",{key:a,class:x(["indent--15px pl-15px leading-20px",{"mt-8px":0!==e}])},r(a),3))),128))])]),o("div",O,[o("div",P,r(e.$t("Home.Update.index_21")),1),o("div",T,[(c(!0),d(m,null,v(u(Q),a=>(c(),d("div",{key:a.version,class:"version"},[s[1]||(s[1]=o("div",{class:"active"},null,-1)),o("div",F,r(u(k)(a.uptime,"yyyy-MM-dd")),1),o("div",R,r(a.version),1),o("div",{class:"content",innerHTML:a.upmsg},null,8,S)]))),128))])]),o("div",null,[p(l,{checked:u(E),"onUpdate:checked":s[0]||(s[0]=a=>_(E)?E.value=a:null),disabled:u(J)},{default:b(()=>[p(t,{tag:"div",class:"text-14px",keypath:"Home.Update.index_23_1"},f({title:b(()=>[o("span",V,r(e.$t("Home.Update.index_23_2")),1)]),_:2},[u(G)>0?{name:"wait",fn:b(()=>[o("span",W,r(e.$t("Home.Update.index_23_3",[u(G)])),1)]),key:"0"}:void 0]),1024)]),_:1},8,["checked","disabled"])])],4),p(g,null,{default:b(()=>[p(i,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:aa},{default:b(()=>[H(r(e.$t("Public.Btn.Cancel")),1)]),_:1}),p(i,{type:"primary",size:"small",disabled:u(K),onClick:ea},{default:b(()=>[H(r(e.$t("Home.Update.index_19")),1)]),_:1},8,["disabled"])]),_:1})])}}}),[["__scopeId","data-v-76523929"]]);export{A as B};
+import{a}from"./index.js?v=1763625242172";import{k as e,P as s,r as t,c as l,aq as i,a5 as n,R as d,S as c,U as o,a4 as p,F as r,O as m,H as v,V as x,X as u,a3 as _,ay as b,aj as f,I as y,j as H}from"./vue.js?v=1763625242172";import{a9 as g,gL as k,c as U,gM as h,gJ as j,P as w,p as $}from"./page_layout.js?v=1763625242172";import{p as C}from"./public.js?v=1763625242172";import{_ as M,aC as I}from"./naive.js?v=1763625242172";const L={class:"w-650px"},P={class:"card"},z={class:"mb-12px font-bold text-18px text-center"},B={class:"min-h-172px text-13px"},T={class:"card"},q={class:"mb-10px text-16px text-center"},F={class:"h-180px overflow-auto"},J={class:"date"},O={class:"text"},R=["innerHTML"],S={class:"font-bold"},V={class:"text-error"},X=$(e({__name:"details",emits:["close"],setup(e,{emit:$}){const X=$,{t:A}=s(),D=t(!1),E=t(5),G=l((()=>E.value>0)),K=l((()=>!D.value)),N=t([]),Q=t([]),{height:W}=i(),Y=l((()=>W.value?"".concat(.9*W.value,"px"):"auto")),Z=()=>{const a=setInterval((()=>{E.value--,E.value<=0&&clearInterval(a)}),1e3)},aa=()=>{X("close")},ea=()=>{C({title:A("Home.Update.index_24"),content:A("Home.Update.index_25"),onConfirm:async()=>{await h(),await j(),w()}})};return(async()=>{const{message:a}=await k();U(a)&&(N.value=a.beta_ps.split("
").map((a=>a.trim())),Q.value=a.list,Z())})(),(e,s)=>{const t=n("i18n-t"),l=M,i=I,k=a;return d(),c("div",L,[o("div",{class:"p-20px overflow-auto",style:y({maxHeight:x(Y)})},[o("div",P,[o("div",z,p(e.$t("Home.Update.index_20")),1),o("ul",B,[(d(!0),c(r,null,m(x(N),((a,e)=>(d(),c("li",{key:a,class:v(["indent--15px pl-15px leading-20px",{"mt-8px":0!==e}])},p(a),3)))),128))])]),o("div",T,[o("div",q,p(e.$t("Home.Update.index_21")),1),o("div",F,[(d(!0),c(r,null,m(x(Q),(a=>(d(),c("div",{key:a.version,class:"version"},[s[1]||(s[1]=o("div",{class:"active"},null,-1)),o("div",J,p(x(g)(a.uptime,"yyyy-MM-dd")),1),o("div",O,p(a.version),1),o("div",{class:"content",innerHTML:a.upmsg},null,8,R)])))),128))])]),o("div",null,[u(l,{checked:x(D),"onUpdate:checked":s[0]||(s[0]=a=>f(D)?D.value=a:null),disabled:x(G)},{default:_((()=>[u(t,{tag:"div",class:"text-14px",keypath:"Home.Update.index_23_1"},b({title:_((()=>[o("span",S,p(e.$t("Home.Update.index_23_2")),1)])),_:2},[x(E)>0?{name:"wait",fn:_((()=>[o("span",V,p(e.$t("Home.Update.index_23_3",[x(E)])),1)])),key:"0"}:void 0]),1024)])),_:1},8,["checked","disabled"])])],4),u(k,null,{default:_((()=>[u(i,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:aa},{default:_((()=>[H(p(e.$t("Public.Btn.Cancel")),1)])),_:1}),u(i,{type:"primary",size:"small",disabled:x(K),onClick:ea},{default:_((()=>[H(p(e.$t("Home.Update.index_19")),1)])),_:1},8,["disabled"])])),_:1})])}}}),[["__scopeId","data-v-76523929"]]);export{X as B};
diff --git a/BTPanel/static/vite/js/disable-legacy.js b/BTPanel/static/vite/js/disable-legacy.js
index f062c66a..a9ab6f2c 100644
--- a/BTPanel/static/vite/js/disable-legacy.js
+++ b/BTPanel/static/vite/js/disable-legacy.js
@@ -1 +1 @@
-System.register(["./public-legacy.js?v=1762424784323","./vue-legacy.js?v=1762424784323","./page_layout-legacy.js?v=1762424784323","./site-legacy3.js?v=1762424784323","./naive-legacy.js?v=1762424784323","./common-legacy.js?v=1762424784323","./__commonjsHelpers__-legacy.js?v=1762424784323"],function(e,a){"use strict";var l,t,i,n,s,u,c,o,r,d,m,f,g,p,y,_,x,v,j,N,b,C,h,S;return{setters:[e=>{l=e.c,t=e.f,i=e.h,n=e._},e=>{s=e.k,u=e.P,c=e.r,o=e.R,r=e.V,d=e.S,m=e.W,f=e.aj,g=e.ak,p=e.U,y=e.a3,_=e.j,x=e.a4},e=>{v=e.w,j=e.m},e=>{N=e.w,b=e.x,C=e.y},e=>{h=e.au,S=e.aC},null,null],execute:function(){const a={class:"p-20px"},w={class:"flex mb-16px"},W={class:"flex-1 mr-16px"},k="disable_path";e("default",s({__name:"disable",props:{siteName:{default:""}},setup(e){const s=e,{t:$}=u(),P=c(""),B=async()=>{""!==P.value.trim()?(await C({siteName:s.siteName,ruleName:k,ruleValue:P.value}),P.value="",D()):j.error($("Waf.Site.Config.index_70"))},{table:U,columns:V,setLoading:A}=l([{key:"rule",title:$("Waf.Site.Config.index_66")},t({width:80,options:(e,a)=>[{label:$("Public.Btn.Del"),onClick:async()=>{await N({index:a,siteName:s.siteName,ruleName:k}),D()}}]})]),D=async()=>{try{A(!0);const{siteName:e}=s,{message:a}=await b({siteName:e,ruleName:k});v(a)&&(U.data=a.map(e=>({rule:e})))}finally{A(!1)}};return D(),(e,l)=>{const t=h,s=S,u=i,c=n;return r(),o("div",a,[d("div",w,[d("div",W,[m(t,{value:p(P),"onUpdate:value":l[0]||(l[0]=e=>g(P)?P.value=e:null),placeholder:e.$t("Waf.Site.Config.index_67"),onKeyup:f(B,["enter"])},null,8,["value","placeholder"])]),m(s,{type:"primary",onClick:B},{default:y(()=>[_(x(e.$t("Public.Btn.Add")),1)]),_:1})]),m(u,{"max-height":368,loading:p(U).loading,data:p(U).data,columns:p(V)},null,8,["loading","data","columns"]),m(c,{class:"mt-16px"},{default:y(()=>[d("li",null,x(e.$t("Waf.Site.Config.index_68")),1),d("li",null,x(e.$t("Waf.Site.Config.index_69")),1)]),_:1})])}}}))}}});
+System.register(["./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./site-legacy3.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,t,i,n,s,u,c,o,r,d,m,f,g,p,y,x,_,v,j,N,b,C,h,S;return{setters:[e=>{l=e.c,t=e.f,i=e.h,n=e._},e=>{s=e.k,u=e.P,c=e.r,o=e.R,r=e.S,d=e.U,m=e.X,f=e.V,g=e.aj,p=e.ak,y=e.a3,x=e.j,_=e.a4},e=>{v=e.x,j=e.m},e=>{N=e.w,b=e.x,C=e.y},e=>{h=e.au,S=e.aC},null,null],execute:function(){const a={class:"p-20px"},k={class:"flex mb-16px"},w={class:"flex-1 mr-16px"},W="disable_path";e("default",s({__name:"disable",props:{siteName:{default:""}},setup(e){const s=e,{t:$}=u(),P=c(""),B=async()=>{""!==P.value.trim()?(await C({siteName:s.siteName,ruleName:W,ruleValue:P.value}),P.value="",D()):j.error($("Waf.Site.Config.index_70"))},{table:U,columns:V,setLoading:A}=l([{key:"rule",title:$("Waf.Site.Config.index_66")},t({width:80,options:(e,a)=>[{label:$("Public.Btn.Del"),onClick:async()=>{await N({index:a,siteName:s.siteName,ruleName:W}),D()}}]})]),D=async()=>{try{A(!0);const{siteName:e}=s,{message:a}=await b({siteName:e,ruleName:W});v(a)&&(U.data=a.map((e=>({rule:e}))))}finally{A(!1)}};return D(),(e,l)=>{const t=h,s=S,u=i,c=n;return o(),r("div",a,[d("div",k,[d("div",w,[m(t,{value:f(P),"onUpdate:value":l[0]||(l[0]=e=>g(P)?P.value=e:null),placeholder:e.$t("Waf.Site.Config.index_67"),onKeyup:p(B,["enter"])},null,8,["value","placeholder"])]),m(s,{type:"primary",onClick:B},{default:y((()=>[x(_(e.$t("Public.Btn.Add")),1)])),_:1})]),m(u,{"max-height":368,loading:f(U).loading,data:f(U).data,columns:f(V)},null,8,["loading","data","columns"]),m(c,{class:"mt-16px"},{default:y((()=>[d("li",null,_(e.$t("Waf.Site.Config.index_68")),1),d("li",null,_(e.$t("Waf.Site.Config.index_69")),1)])),_:1})])}}}))}}}));
diff --git a/BTPanel/static/vite/js/disable.js b/BTPanel/static/vite/js/disable.js
index b5c9f670..19235439 100644
--- a/BTPanel/static/vite/js/disable.js
+++ b/BTPanel/static/vite/js/disable.js
@@ -1 +1 @@
-import{c as a,f as e,h as s,_ as l}from"./public.js?v=1762424784323";import{k as t,P as i,r as n,R as o,V as m,S as r,W as u,aj as d,ak as p,U as c,a3 as f,j as _,a4 as x}from"./vue.js?v=1762424784323";import{w as g,m as v}from"./page_layout.js?v=1762424784323";import{w as y,x as j,y as N}from"./site3.js?v=1762424784323";import{au as b,aC as C}from"./naive.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";const h={class:"p-20px"},w={class:"flex mb-16px"},S={class:"flex-1 mr-16px"},W="disable_path",k=t({__name:"disable",props:{siteName:{default:""}},setup(t){const k=t,{t:$}=i(),P=n(""),B=async()=>{""!==P.value.trim()?(await N({siteName:k.siteName,ruleName:W,ruleValue:P.value}),P.value="",D()):v.error($("Waf.Site.Config.index_70"))},{table:U,columns:V,setLoading:A}=a([{key:"rule",title:$("Waf.Site.Config.index_66")},e({width:80,options:(a,e)=>[{label:$("Public.Btn.Del"),onClick:async()=>{await y({index:e,siteName:k.siteName,ruleName:W}),D()}}]})]),D=async()=>{try{A(!0);const{siteName:a}=k,{message:e}=await j({siteName:a,ruleName:W});g(e)&&(U.data=e.map(a=>({rule:a})))}finally{A(!1)}};return D(),(a,e)=>{const t=b,i=C,n=s,g=l;return m(),o("div",h,[r("div",w,[r("div",S,[u(t,{value:c(P),"onUpdate:value":e[0]||(e[0]=a=>p(P)?P.value=a:null),placeholder:a.$t("Waf.Site.Config.index_67"),onKeyup:d(B,["enter"])},null,8,["value","placeholder"])]),u(i,{type:"primary",onClick:B},{default:f(()=>[_(x(a.$t("Public.Btn.Add")),1)]),_:1})]),u(n,{"max-height":368,loading:c(U).loading,data:c(U).data,columns:c(V)},null,8,["loading","data","columns"]),u(g,{class:"mt-16px"},{default:f(()=>[r("li",null,x(a.$t("Waf.Site.Config.index_68")),1),r("li",null,x(a.$t("Waf.Site.Config.index_69")),1)]),_:1})])}}});export{k as default};
+import{c as a,f as e,h as s,_ as l}from"./public.js?v=1763625242172";import{k as t,P as i,r as n,R as o,S as m,U as r,X as u,V as d,aj as p,ak as c,a3 as f,j as x,a4 as _}from"./vue.js?v=1763625242172";import{x as g,m as v}from"./page_layout.js?v=1763625242172";import{w as y,x as j,y as N}from"./site3.js?v=1763625242172";import{au as b,aC as C}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const h={class:"p-20px"},S={class:"flex mb-16px"},k={class:"flex-1 mr-16px"},w="disable_path",W=t({__name:"disable",props:{siteName:{default:""}},setup(t){const W=t,{t:$}=i(),P=n(""),B=async()=>{""!==P.value.trim()?(await N({siteName:W.siteName,ruleName:w,ruleValue:P.value}),P.value="",D()):v.error($("Waf.Site.Config.index_70"))},{table:U,columns:V,setLoading:A}=a([{key:"rule",title:$("Waf.Site.Config.index_66")},e({width:80,options:(a,e)=>[{label:$("Public.Btn.Del"),onClick:async()=>{await y({index:e,siteName:W.siteName,ruleName:w}),D()}}]})]),D=async()=>{try{A(!0);const{siteName:a}=W,{message:e}=await j({siteName:a,ruleName:w});g(e)&&(U.data=e.map((a=>({rule:a}))))}finally{A(!1)}};return D(),(a,e)=>{const t=b,i=C,n=s,g=l;return o(),m("div",h,[r("div",S,[r("div",k,[u(t,{value:d(P),"onUpdate:value":e[0]||(e[0]=a=>p(P)?P.value=a:null),placeholder:a.$t("Waf.Site.Config.index_67"),onKeyup:c(B,["enter"])},null,8,["value","placeholder"])]),u(i,{type:"primary",onClick:B},{default:f((()=>[x(_(a.$t("Public.Btn.Add")),1)])),_:1})]),u(n,{"max-height":368,loading:d(U).loading,data:d(U).data,columns:d(V)},null,8,["loading","data","columns"]),u(g,{class:"mt-16px"},{default:f((()=>[r("li",null,_(a.$t("Waf.Site.Config.index_68")),1),r("li",null,_(a.$t("Waf.Site.Config.index_69")),1)])),_:1})])}}});export{W as default};
diff --git a/BTPanel/static/vite/js/disk-legacy.js b/BTPanel/static/vite/js/disk-legacy.js
index d5d128d5..ca6958db 100644
--- a/BTPanel/static/vite/js/disk-legacy.js
+++ b/BTPanel/static/vite/js/disk-legacy.js
@@ -1 +1 @@
-System.register(["./vue-legacy.js?v=1762424784323","./page_layout-legacy.js?v=1762424784323","./public-legacy.js?v=1762424784323","./naive-legacy.js?v=1762424784323"],function(t,e){"use strict";var n,i,s,o,a,c,u,l,r,d,_,k,p,y,g,f,m,v;return{setters:[t=>{n=t.Z,i=t.P,s=t.r,o=t.e,a=t.W,c=t.j,u=t.F},t=>{l=t.n,r=t.am,d=t.an,_=t.ag,k=t.d,p=t.ao},t=>{y=t.d,g=t.f,f=t.k,m=t.a},t=>{v=t.bH}],execute:function(){t("u",n("diskStore",()=>{const{t:t}=i(),{loading:e,setLoading:n}=y(),D=s({device:"",mountpoint:"",fstype:"",total:0,used:0,free:0,used_percent:0,inodes_total:0,inodes_used:0,inodes_free:0,inodes_used_percent:0,is_group_quota:!1,is_user_quota:!1,is_default:!1,account_allocate:0,account_percent:0}),A=o({data:[]}),h=s(!1),w=s([{title:t("Account.Disk.disk_810348-0"),key:"mountpoint"},{title:t("Account.Disk.disk_810348-1"),key:"device"},{title:t("Account.Disk.disk_810348-9"),key:"is_group_quota",render:e=>e.is_user_quota?a("span",null,[t("Account.Disk.disk_810348-10")]):a("div",null,[a("span",{class:"text-warning"},[t("Account.Disk.disk_810348-11")]),c(" | "),a("span",{class:"text-primary cursor-pointer",onClick:()=>async function(t){await d(t),j()}(e.mountpoint)},[t("Account.Disk.disk_810348-12")])])},{title:t("Account.Disk.disk_810348-2"),key:"total",width:120,render:t=>l(t.total)},{title:t("Account.Disk.disk_810348-3"),key:"used",render:t=>{const e=Math.round(t.used_percent);return a(u,null,[a("div",{class:"mb-[.2rem]"},[e,c("% / "),l(t.used)]),a(v,{height:10,color:C(e),percentage:e,showIndicator:!1},null)])}},g({title:t("Public.Table.Action"),align:"right",width:200,options:e=>[{label:t("Account.Disk.disk_810348-4"),show:e.is_default&&!h.value,disabled:!0},{label:"重启服务",show:e.is_default&&h.value,type:"warning",onClick:async()=>f()},{label:t("Account.Disk.disk_810348-5"),show:!e.is_default,onClick:async()=>{m({title:t("Account.Disk.disk_810348-6"),content:t("Account.Disk.disk_810348-7",[e.mountpoint]),onConfirm:async()=>{await p({mountpoint:e.mountpoint}),h.value=!0,j()}})}}]})]),b=r(),C=t=>{const e=Math.round(t);return e>80?b.value.errorColor:e>60?b.value.warningColor:b.value.primaryColor},j=async()=>{try{n(!0);const t=await _();if(k(t)){A.data=t.message;const e=t.message.find(t=>t.is_default);if(e){const t={...e};t.account_percent=Math.round(t.account_allocate/t.total*100),D.value=t}}}finally{n(!1)}};return{loading:e,DefaultDisk:D,init:j,columns:w,table:A,diskColor:C}}))}}});
+System.register(["./vue-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172"],(function(t,e){"use strict";var n,i,s,o,a,c,u,l,r,d,_,k,p,y,g,f,m,v;return{setters:[t=>{n=t.Z,i=t.P,s=t.r,o=t.e,a=t.X,c=t.j,u=t.F},t=>{l=t.n,r=t.ao,d=t.ap,_=t.aq,k=t.ah,p=t.c},t=>{y=t.d,g=t.f,f=t.j,m=t.a},t=>{v=t.bH}],execute:function(){t("u",n("diskStore",(()=>{const{t:t}=i(),{loading:e,setLoading:n}=y(),D=s({device:"",mountpoint:"",fstype:"",total:0,used:0,free:0,used_percent:0,inodes_total:0,inodes_used:0,inodes_free:0,inodes_used_percent:0,is_group_quota:!1,is_user_quota:!1,is_default:!1,account_allocate:0,account_percent:0}),h=o({data:[]}),A=s(!1),w=s([{title:t("Account.Disk.disk_810348-0"),key:"mountpoint"},{title:t("Account.Disk.disk_810348-1"),key:"device"},{title:t("Account.Disk.disk_810348-9"),key:"is_group_quota",render:e=>e.is_user_quota?a("span",null,[t("Account.Disk.disk_810348-10")]):a("div",null,[a("span",{class:"text-warning"},[t("Account.Disk.disk_810348-11")]),c(" | "),a("span",{class:"text-primary cursor-pointer",onClick:()=>async function(t){await _(t),j()}(e.mountpoint)},[t("Account.Disk.disk_810348-12")])])},{title:t("Account.Disk.disk_810348-2"),key:"total",width:120,render:t=>l(t.total)},{title:t("Account.Disk.disk_810348-3"),key:"used",render:t=>{const e=Math.round(t.used_percent);return a(u,null,[a("div",{class:"mb-[.2rem]"},[e,c("% / "),l(t.used)]),a(v,{height:10,color:C(e),percentage:e,showIndicator:!1},null)])}},g({title:t("Public.Table.Action"),align:"right",width:200,options:e=>[{label:t("Account.Disk.disk_810348-4"),show:e.is_default&&!A.value,disabled:!0},{label:"重启服务",show:e.is_default&&A.value,type:"warning",onClick:async()=>f()},{label:t("Account.Disk.disk_810348-5"),show:!e.is_default,onClick:async()=>{m({title:t("Account.Disk.disk_810348-6"),content:t("Account.Disk.disk_810348-7",[e.mountpoint]),onConfirm:async()=>{await r({mountpoint:e.mountpoint}),A.value=!0,j()}})}}]})]),b=d(),C=t=>{const e=Math.round(t);return e>80?b.value.errorColor:e>60?b.value.warningColor:b.value.primaryColor},j=async()=>{try{n(!0);const t=await k();if(p(t)){h.data=t.message;const e=t.message.find((t=>t.is_default));if(e){const t={...e};t.account_percent=Math.round(t.account_allocate/t.total*100),D.value=t}}}finally{n(!1)}};return{loading:e,DefaultDisk:D,init:j,columns:w,table:h,diskColor:C}})))}}}));
diff --git a/BTPanel/static/vite/js/disk.js b/BTPanel/static/vite/js/disk.js
index ac1e9c9c..3b1638f3 100644
--- a/BTPanel/static/vite/js/disk.js
+++ b/BTPanel/static/vite/js/disk.js
@@ -1 +1 @@
-import{Z as t,P as s,r as a,e as o,W as n,j as e,F as i}from"./vue.js?v=1762424784323";import{n as c,am as u,an as l,ag as r,d,ao as _}from"./page_layout.js?v=1762424784323";import{d as k,f as p,k as m,a as f}from"./public.js?v=1762424784323";import{bH as y}from"./naive.js?v=1762424784323";const g=t("diskStore",()=>{const{t:t}=s(),{loading:g,setLoading:D}=k(),v=a({device:"",mountpoint:"",fstype:"",total:0,used:0,free:0,used_percent:0,inodes_total:0,inodes_used:0,inodes_free:0,inodes_used_percent:0,is_group_quota:!1,is_user_quota:!1,is_default:!1,account_allocate:0,account_percent:0}),A=o({data:[]}),h=a(!1),w=a([{title:t("Account.Disk.disk_810348-0"),key:"mountpoint"},{title:t("Account.Disk.disk_810348-1"),key:"device"},{title:t("Account.Disk.disk_810348-9"),key:"is_group_quota",render:s=>s.is_user_quota?n("span",null,[t("Account.Disk.disk_810348-10")]):n("div",null,[n("span",{class:"text-warning"},[t("Account.Disk.disk_810348-11")]),e(" | "),n("span",{class:"text-primary cursor-pointer",onClick:()=>async function(t){await l(t),j()}(s.mountpoint)},[t("Account.Disk.disk_810348-12")])])},{title:t("Account.Disk.disk_810348-2"),key:"total",width:120,render:t=>c(t.total)},{title:t("Account.Disk.disk_810348-3"),key:"used",render:t=>{const s=Math.round(t.used_percent);return n(i,null,[n("div",{class:"mb-[.2rem]"},[s,e("% / "),c(t.used)]),n(y,{height:10,color:C(s),percentage:s,showIndicator:!1},null)])}},p({title:t("Public.Table.Action"),align:"right",width:200,options:s=>[{label:t("Account.Disk.disk_810348-4"),show:s.is_default&&!h.value,disabled:!0},{label:"重启服务",show:s.is_default&&h.value,type:"warning",onClick:async()=>m()},{label:t("Account.Disk.disk_810348-5"),show:!s.is_default,onClick:async()=>{f({title:t("Account.Disk.disk_810348-6"),content:t("Account.Disk.disk_810348-7",[s.mountpoint]),onConfirm:async()=>{await _({mountpoint:s.mountpoint}),h.value=!0,j()}})}}]})]),b=u();const C=t=>{const s=Math.round(t);return s>80?b.value.errorColor:s>60?b.value.warningColor:b.value.primaryColor},j=async()=>{try{D(!0);const t=await r();if(d(t)){A.data=t.message;const s=t.message.find(t=>t.is_default);if(s){const t={...s};t.account_percent=Math.round(t.account_allocate/t.total*100),v.value=t}}}finally{D(!1)}};return{loading:g,DefaultDisk:v,init:j,columns:w,table:A,diskColor:C}});export{g as u};
+import{Z as t,P as s,r as a,e as o,X as e,j as i,F as n}from"./vue.js?v=1763625242172";import{n as c,ao as u,ap as l,aq as r,ah as d,c as _}from"./page_layout.js?v=1763625242172";import{d as k,f as p,j as m,a as f}from"./public.js?v=1763625242172";import{bH as y}from"./naive.js?v=1763625242172";const g=t("diskStore",(()=>{const{t:t}=s(),{loading:g,setLoading:D}=k(),h=a({device:"",mountpoint:"",fstype:"",total:0,used:0,free:0,used_percent:0,inodes_total:0,inodes_used:0,inodes_free:0,inodes_used_percent:0,is_group_quota:!1,is_user_quota:!1,is_default:!1,account_allocate:0,account_percent:0}),v=o({data:[]}),A=a(!1),w=a([{title:t("Account.Disk.disk_810348-0"),key:"mountpoint"},{title:t("Account.Disk.disk_810348-1"),key:"device"},{title:t("Account.Disk.disk_810348-9"),key:"is_group_quota",render:s=>s.is_user_quota?e("span",null,[t("Account.Disk.disk_810348-10")]):e("div",null,[e("span",{class:"text-warning"},[t("Account.Disk.disk_810348-11")]),i(" | "),e("span",{class:"text-primary cursor-pointer",onClick:()=>async function(t){await r(t),j()}(s.mountpoint)},[t("Account.Disk.disk_810348-12")])])},{title:t("Account.Disk.disk_810348-2"),key:"total",width:120,render:t=>c(t.total)},{title:t("Account.Disk.disk_810348-3"),key:"used",render:t=>{const s=Math.round(t.used_percent);return e(n,null,[e("div",{class:"mb-[.2rem]"},[s,i("% / "),c(t.used)]),e(y,{height:10,color:C(s),percentage:s,showIndicator:!1},null)])}},p({title:t("Public.Table.Action"),align:"right",width:200,options:s=>[{label:t("Account.Disk.disk_810348-4"),show:s.is_default&&!A.value,disabled:!0},{label:"重启服务",show:s.is_default&&A.value,type:"warning",onClick:async()=>m()},{label:t("Account.Disk.disk_810348-5"),show:!s.is_default,onClick:async()=>{f({title:t("Account.Disk.disk_810348-6"),content:t("Account.Disk.disk_810348-7",[s.mountpoint]),onConfirm:async()=>{await u({mountpoint:s.mountpoint}),A.value=!0,j()}})}}]})]),b=l();const C=t=>{const s=Math.round(t);return s>80?b.value.errorColor:s>60?b.value.warningColor:b.value.primaryColor},j=async()=>{try{D(!0);const t=await d();if(_(t)){v.data=t.message;const s=t.message.find((t=>t.is_default));if(s){const t={...s};t.account_percent=Math.round(t.account_allocate/t.total*100),h.value=t}}}finally{D(!1)}};return{loading:g,DefaultDisk:h,init:j,columns:w,table:v,diskColor:C}}));export{g as u};
diff --git a/BTPanel/static/vite/js/domain-form-legacy.js b/BTPanel/static/vite/js/domain-form-legacy.js
index b3a1c52c..ece48b9c 100644
--- a/BTPanel/static/vite/js/domain-form-legacy.js
+++ b/BTPanel/static/vite/js/domain-form-legacy.js
@@ -1 +1 @@
-System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1762424784323","./public-legacy.js?v=1762424784323","./utils-legacy3.js?v=1762424784323","./page_layout-legacy.js?v=1762424784323","./naive-legacy.js?v=1762424784323","./vue-legacy.js?v=1762424784323","./common-legacy.js?v=1762424784323","./__commonjsHelpers__-legacy.js?v=1762424784323"],function(e,l){"use strict";var r,a,t,o,d,u,i,p,n,c,s,_,y,v,m,x,h,b,g,f,S,w,j,L,D,U,$,k;return{setters:[e=>{r=e._},e=>{a=e.X,t=e.at},e=>{o=e.a,d=e.t,u=e.c,i=e.h},e=>{p=e.u},e=>{n=e.dR,c=e.au,s=e.dV,_=e.da,y=e.aC,v=e.df,m=e.dj},e=>{x=e.k,h=e.c,b=e.P,g=e.r,f=e.e,S=e.a2,w=e.V,j=e.a3,L=e.W,D=e.an,U=e.S,$=e.U,k=e.j},null,null],execute:function(){const l={class:"w-300px"};e("default",x({__name:"domain-form",props:{row:{},isEdit:{type:Boolean},onRefresh:{}},setup(e,{expose:x}){const P=p(),C=e,{isEdit:X,row:M,onRefresh:q}=C,E=h(()=>X&&M?M.provider_name.includes("CloudFlare"):o.value.includes("CloudFlare")),{t:R}=b(),T=g(null),F=f({record_type:"A",record_value:"",ttl:1,ps:"",proxy:0,priority:10,record:""}),V={record:{required:!0,trigger:"change",message:R("SSL.Domain.index_12")},record_value:{required:!0,trigger:["blur","change"],message:R("SSL.Domain.index_14")},ttl:{required:!0,trigger:"blur",type:"number",message:R("SSL.Domain.index_15")},priority:{required:!0,trigger:"blur",type:"number",message:"Please enter the priority"}},z=()=>{F.record_value=P.address},A=()=>({id:X&&M?M.id:null,pid:i.value,domain:u.value,record:F.record,record_type:F.record_type,record_value:F.record_value,ttl:F.ttl,ps:F.ps,proxy:E.value&&"MX"!==F.record_type?F.proxy:-1,priority:"MX"===F.record_type?F.priority:-1});return(()=>{const{row:e,isEdit:l}=C;l&&e&&(F.record=e.record,F.record_type=e.record_type,F.record_value=e.record_value,F.ttl=e.ttl,F.ps=e.ps,F.proxy=e.proxy,F.priority="MX"===F.record_type?e.priority:-1)})(),x({onConfirm:async()=>{await(T.value?.validate()),X&&M?await a(A()):await t(A()),q()}}),(e,a)=>{const t=c,o=n,u=s,i=y,p=_,x=v,h=m,b=r;return w(),S(b,{class:"p-20px",ref_key:"formRef",ref:T,model:$(F),rules:V},{default:j(()=>[L(o,{label:e.$t("SSL.Domain.index_11"),path:"record"},{default:j(()=>[U("div",l,[L(t,{value:$(F).record,"onUpdate:value":a[0]||(a[0]=e=>$(F).record=e),placeholder:e.$t("SSL.Domain.index_12")},null,8,["value","placeholder"])])]),_:1},8,["label"]),L(o,{label:e.$t("Ftp.Table.index_3"),path:"record_type"},{default:j(()=>[L(u,{class:"w-300px",value:$(F).record_type,"onUpdate:value":a[1]||(a[1]=e=>$(F).record_type=e),options:$(d),disabled:$(X)},null,8,["value","options","disabled"])]),_:1},8,["label"]),L(o,{label:e.$t("SSL.Domain.index_13"),path:"record_value"},{default:j(()=>[L(p,{class:"flex-nowrap!",size:5},{default:j(()=>[L(t,{class:"w-300px!",value:$(F).record_value,"onUpdate:value":a[2]||(a[2]=e=>$(F).record_value=e),placeholder:e.$t("SSL.Domain.index_14")},null,8,["value","placeholder"]),L(i,{onClick:z},{default:j(()=>a[7]||(a[7]=[k(" USE IP ",-1)])),_:1,__:[7]})]),_:1})]),_:1},8,["label"]),L(o,{label:"TTL",path:"ttl"},{default:j(()=>[L(x,{min:1,max:1800,"show-button":!1,class:"w-300px!",value:$(F).ttl,"onUpdate:value":a[3]||(a[3]=e=>$(F).ttl=e),placeholder:e.$t("SSL.Domain.index_15")},null,8,["value","placeholder"])]),_:1}),"MX"===$(F).record_type?(w(),S(o,{key:0,label:"Priority",path:"priority"},{default:j(()=>[L(x,{"show-button":!1,class:"w-300px!",value:$(F).priority,"onUpdate:value":a[4]||(a[4]=e=>$(F).priority=e),placeholder:"Please enter the priority",min:1,max:65535},null,8,["value"])]),_:1})):D("",!0),L(o,{label:e.$t("Public.Table.Ps"),path:"ps"},{default:j(()=>[L(t,{class:"w-300px!",value:$(F).ps,"onUpdate:value":a[5]||(a[5]=e=>$(F).ps=e),placeholder:e.$t("Crontab.arrange.index_27")},null,8,["value","placeholder"])]),_:1},8,["label"]),$(E)&&"MX"!==$(F).record_type?(w(),S(o,{key:1,label:e.$t("SSL.Domain.index_16"),path:"proxy"},{default:j(()=>[L(h,{value:$(F).proxy,"onUpdate:value":a[6]||(a[6]=e=>$(F).proxy=e),"checked-value":1,"unchecked-value":0},null,8,["value"])]),_:1},8,["label"])):D("",!0)]),_:1},8,["model"])}}}))}}});
+System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./utils-legacy3.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172"],(function(e,l){"use strict";var r,a,t,o,d,u,p,i,n,c,s,_,y,v,m,x,h,b,g,f,S,w,j,L,D,U,$,P;return{setters:[e=>{r=e._},e=>{a=e.u,t=e.db,o=e.h0},e=>{d=e.a,u=e.t,p=e.h,i=e.e},e=>{n=e.au,c=e.dP,s=e.dV,_=e.aC,y=e.d9,v=e.df,m=e.dj},e=>{x=e.k,h=e.c,b=e.P,g=e.r,f=e.e,S=e.R,w=e.a2,j=e.a3,L=e.X,D=e.U,U=e.V,$=e.j,P=e.an},null,null,null],execute:function(){const l={class:"w-300px"};e("default",x({__name:"domain-form",props:{row:{},isEdit:{type:Boolean},onRefresh:{}},setup(e,{expose:x}){const k=a(),C=e,{isEdit:X,row:M,onRefresh:q}=C,E=h((()=>X&&M?M.provider_name.includes("CloudFlare"):d.value.includes("CloudFlare"))),{t:R}=b(),T=g(null),F=f({record_type:"A",record_value:"",ttl:1,ps:"",proxy:0,priority:10,record:""}),V={record:{required:!0,trigger:"change",message:R("SSL.Domain.index_12")},record_value:{required:!0,trigger:["blur","change"],message:R("SSL.Domain.index_14")},ttl:{required:!0,trigger:"blur",type:"number",message:R("SSL.Domain.index_15")},priority:{required:!0,trigger:"blur",type:"number",message:"Please enter the priority"}},z=()=>{F.record_value=k.address},A=()=>({id:X&&M?M.id:null,pid:p.value,domain:i.value,record:F.record,record_type:F.record_type,record_value:F.record_value,ttl:F.ttl,ps:F.ps,proxy:E.value&&"MX"!==F.record_type?F.proxy:-1,priority:"MX"===F.record_type?F.priority:-1});return(()=>{const{row:e,isEdit:l}=C;l&&e&&(F.record=e.record,F.record_type=e.record_type,F.record_value=e.record_value,F.ttl=e.ttl,F.ps=e.ps,F.proxy=e.proxy,F.priority="MX"===F.record_type?e.priority:-1)})(),x({onConfirm:async()=>{await(T.value?.validate()),X&&M?await t(A()):await o(A()),q()}}),(e,a)=>{const t=n,o=c,d=s,p=_,i=y,x=v,h=m,b=r;return S(),w(b,{class:"p-20px",ref_key:"formRef",ref:T,model:U(F),rules:V},{default:j((()=>[L(o,{label:e.$t("SSL.Domain.index_11"),path:"record"},{default:j((()=>[D("div",l,[L(t,{value:U(F).record,"onUpdate:value":a[0]||(a[0]=e=>U(F).record=e),placeholder:e.$t("SSL.Domain.index_12")},null,8,["value","placeholder"])])])),_:1},8,["label"]),L(o,{label:e.$t("Ftp.Table.index_3"),path:"record_type"},{default:j((()=>[L(d,{class:"w-300px",value:U(F).record_type,"onUpdate:value":a[1]||(a[1]=e=>U(F).record_type=e),options:U(u),disabled:U(X)},null,8,["value","options","disabled"])])),_:1},8,["label"]),L(o,{label:e.$t("SSL.Domain.index_13"),path:"record_value"},{default:j((()=>[L(i,{class:"flex-nowrap!",size:5},{default:j((()=>[L(t,{class:"w-300px!",value:U(F).record_value,"onUpdate:value":a[2]||(a[2]=e=>U(F).record_value=e),placeholder:e.$t("SSL.Domain.index_14")},null,8,["value","placeholder"]),L(p,{onClick:z},{default:j((()=>a[7]||(a[7]=[$(" USE IP ")]))),_:1,__:[7]})])),_:1})])),_:1},8,["label"]),L(o,{label:"TTL",path:"ttl"},{default:j((()=>[L(x,{"show-button":!1,class:"w-300px!",value:U(F).ttl,"onUpdate:value":a[3]||(a[3]=e=>U(F).ttl=e),placeholder:e.$t("SSL.Domain.index_15")},null,8,["value","placeholder"])])),_:1}),"MX"===U(F).record_type?(S(),w(o,{key:0,label:"Priority",path:"priority"},{default:j((()=>[L(x,{"show-button":!1,class:"w-300px!",value:U(F).priority,"onUpdate:value":a[4]||(a[4]=e=>U(F).priority=e),placeholder:"Please enter the priority",min:1,max:65535},null,8,["value"])])),_:1})):P("",!0),L(o,{label:e.$t("Public.Table.Ps"),path:"ps"},{default:j((()=>[L(t,{class:"w-300px!",value:U(F).ps,"onUpdate:value":a[5]||(a[5]=e=>U(F).ps=e),placeholder:e.$t("Crontab.arrange.index_27")},null,8,["value","placeholder"])])),_:1},8,["label"]),U(E)&&"MX"!==U(F).record_type?(S(),w(o,{key:1,label:e.$t("SSL.Domain.index_16"),path:"proxy"},{default:j((()=>[L(h,{value:U(F).proxy,"onUpdate:value":a[6]||(a[6]=e=>U(F).proxy=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1},8,["label"])):P("",!0)])),_:1},8,["model"])}}}))}}}));
diff --git a/BTPanel/static/vite/js/domain-form.js b/BTPanel/static/vite/js/domain-form.js
index 4f3e0a11..07018341 100644
--- a/BTPanel/static/vite/js/domain-form.js
+++ b/BTPanel/static/vite/js/domain-form.js
@@ -1 +1 @@
-import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1762424784323";import{X as a,at as r}from"./public.js?v=1762424784323";import{a as l,t as o,c as t,h as d}from"./utils3.js?v=1762424784323";import{u as s}from"./page_layout.js?v=1762424784323";import{dR as p,au as i,dV as u,da as n,aC as c,df as _,dj as v}from"./naive.js?v=1762424784323";import{k as m,c as y,P as x,r as f,e as h,a2 as b,V as S,a3 as g,W as w,an as j,S as L,U as D,j as U}from"./vue.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";const $={class:"w-300px"},k=m({__name:"domain-form",props:{row:{},isEdit:{type:Boolean},onRefresh:{}},setup(m,{expose:k}){const P=s(),C=m,{isEdit:X,row:M,onRefresh:q}=C,E=y(()=>X&&M?M.provider_name.includes("CloudFlare"):l.value.includes("CloudFlare")),{t:R}=x(),T=f(null),F=h({record_type:"A",record_value:"",ttl:1,ps:"",proxy:0,priority:10,record:""}),V={record:{required:!0,trigger:"change",message:R("SSL.Domain.index_12")},record_value:{required:!0,trigger:["blur","change"],message:R("SSL.Domain.index_14")},ttl:{required:!0,trigger:"blur",type:"number",message:R("SSL.Domain.index_15")},priority:{required:!0,trigger:"blur",type:"number",message:"Please enter the priority"}},z=()=>{F.record_value=P.address},A=()=>({id:X&&M?M.id:null,pid:d.value,domain:t.value,record:F.record,record_type:F.record_type,record_value:F.record_value,ttl:F.ttl,ps:F.ps,proxy:E.value&&"MX"!==F.record_type?F.proxy:-1,priority:"MX"===F.record_type?F.priority:-1});return(()=>{const{row:e,isEdit:a}=C;a&&e&&(F.record=e.record,F.record_type=e.record_type,F.record_value=e.record_value,F.ttl=e.ttl,F.ps=e.ps,F.proxy=e.proxy,F.priority="MX"===F.record_type?e.priority:-1)})(),k({onConfirm:async()=>{var e;await(null==(e=T.value)?void 0:e.validate()),X&&M?await a(A()):await r(A()),q()}}),(a,r)=>{const l=i,t=p,d=u,s=c,m=n,y=_,x=v,f=e;return S(),b(f,{class:"p-20px",ref_key:"formRef",ref:T,model:D(F),rules:V},{default:g(()=>[w(t,{label:a.$t("SSL.Domain.index_11"),path:"record"},{default:g(()=>[L("div",$,[w(l,{value:D(F).record,"onUpdate:value":r[0]||(r[0]=e=>D(F).record=e),placeholder:a.$t("SSL.Domain.index_12")},null,8,["value","placeholder"])])]),_:1},8,["label"]),w(t,{label:a.$t("Ftp.Table.index_3"),path:"record_type"},{default:g(()=>[w(d,{class:"w-300px",value:D(F).record_type,"onUpdate:value":r[1]||(r[1]=e=>D(F).record_type=e),options:D(o),disabled:D(X)},null,8,["value","options","disabled"])]),_:1},8,["label"]),w(t,{label:a.$t("SSL.Domain.index_13"),path:"record_value"},{default:g(()=>[w(m,{class:"flex-nowrap!",size:5},{default:g(()=>[w(l,{class:"w-300px!",value:D(F).record_value,"onUpdate:value":r[2]||(r[2]=e=>D(F).record_value=e),placeholder:a.$t("SSL.Domain.index_14")},null,8,["value","placeholder"]),w(s,{onClick:z},{default:g(()=>r[7]||(r[7]=[U(" USE IP ",-1)])),_:1,__:[7]})]),_:1})]),_:1},8,["label"]),w(t,{label:"TTL",path:"ttl"},{default:g(()=>[w(y,{min:1,max:1800,"show-button":!1,class:"w-300px!",value:D(F).ttl,"onUpdate:value":r[3]||(r[3]=e=>D(F).ttl=e),placeholder:a.$t("SSL.Domain.index_15")},null,8,["value","placeholder"])]),_:1}),"MX"===D(F).record_type?(S(),b(t,{key:0,label:"Priority",path:"priority"},{default:g(()=>[w(y,{"show-button":!1,class:"w-300px!",value:D(F).priority,"onUpdate:value":r[4]||(r[4]=e=>D(F).priority=e),placeholder:"Please enter the priority",min:1,max:65535},null,8,["value"])]),_:1})):j("",!0),w(t,{label:a.$t("Public.Table.Ps"),path:"ps"},{default:g(()=>[w(l,{class:"w-300px!",value:D(F).ps,"onUpdate:value":r[5]||(r[5]=e=>D(F).ps=e),placeholder:a.$t("Crontab.arrange.index_27")},null,8,["value","placeholder"])]),_:1},8,["label"]),D(E)&&"MX"!==D(F).record_type?(S(),b(t,{key:1,label:a.$t("SSL.Domain.index_16"),path:"proxy"},{default:g(()=>[w(x,{value:D(F).proxy,"onUpdate:value":r[6]||(r[6]=e=>D(F).proxy=e),"checked-value":1,"unchecked-value":0},null,8,["value"])]),_:1},8,["label"])):j("",!0)]),_:1},8,["model"])}}});export{k as default};
+import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{u as a,db as r,h0 as l}from"./page_layout.js?v=1763625242172";import{a as o,t,h as d,e as s}from"./utils3.js?v=1763625242172";import{au as p,dP as i,dV as u,aC as n,d9 as c,df as _,dj as v}from"./naive.js?v=1763625242172";import{k as m,c as y,P as x,r as h,e as b,R as f,a2 as S,a3 as g,X as w,U as j,V as L,j as D,an as U}from"./vue.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./public.js?v=1763625242172";const $={class:"w-300px"},P=m({__name:"domain-form",props:{row:{},isEdit:{type:Boolean},onRefresh:{}},setup(m,{expose:P}){const k=a(),C=m,{isEdit:X,row:M,onRefresh:q}=C,E=y((()=>X&&M?M.provider_name.includes("CloudFlare"):o.value.includes("CloudFlare"))),{t:R}=x(),T=h(null),F=b({record_type:"A",record_value:"",ttl:1,ps:"",proxy:0,priority:10,record:""}),V={record:{required:!0,trigger:"change",message:R("SSL.Domain.index_12")},record_value:{required:!0,trigger:["blur","change"],message:R("SSL.Domain.index_14")},ttl:{required:!0,trigger:"blur",type:"number",message:R("SSL.Domain.index_15")},priority:{required:!0,trigger:"blur",type:"number",message:"Please enter the priority"}},z=()=>{F.record_value=k.address},A=()=>({id:X&&M?M.id:null,pid:d.value,domain:s.value,record:F.record,record_type:F.record_type,record_value:F.record_value,ttl:F.ttl,ps:F.ps,proxy:E.value&&"MX"!==F.record_type?F.proxy:-1,priority:"MX"===F.record_type?F.priority:-1});return(()=>{const{row:e,isEdit:a}=C;a&&e&&(F.record=e.record,F.record_type=e.record_type,F.record_value=e.record_value,F.ttl=e.ttl,F.ps=e.ps,F.proxy=e.proxy,F.priority="MX"===F.record_type?e.priority:-1)})(),P({onConfirm:async()=>{var e;await(null==(e=T.value)?void 0:e.validate()),X&&M?await r(A()):await l(A()),q()}}),(a,r)=>{const l=p,o=i,d=u,s=n,m=c,y=_,x=v,h=e;return f(),S(h,{class:"p-20px",ref_key:"formRef",ref:T,model:L(F),rules:V},{default:g((()=>[w(o,{label:a.$t("SSL.Domain.index_11"),path:"record"},{default:g((()=>[j("div",$,[w(l,{value:L(F).record,"onUpdate:value":r[0]||(r[0]=e=>L(F).record=e),placeholder:a.$t("SSL.Domain.index_12")},null,8,["value","placeholder"])])])),_:1},8,["label"]),w(o,{label:a.$t("Ftp.Table.index_3"),path:"record_type"},{default:g((()=>[w(d,{class:"w-300px",value:L(F).record_type,"onUpdate:value":r[1]||(r[1]=e=>L(F).record_type=e),options:L(t),disabled:L(X)},null,8,["value","options","disabled"])])),_:1},8,["label"]),w(o,{label:a.$t("SSL.Domain.index_13"),path:"record_value"},{default:g((()=>[w(m,{class:"flex-nowrap!",size:5},{default:g((()=>[w(l,{class:"w-300px!",value:L(F).record_value,"onUpdate:value":r[2]||(r[2]=e=>L(F).record_value=e),placeholder:a.$t("SSL.Domain.index_14")},null,8,["value","placeholder"]),w(s,{onClick:z},{default:g((()=>r[7]||(r[7]=[D(" USE IP ")]))),_:1,__:[7]})])),_:1})])),_:1},8,["label"]),w(o,{label:"TTL",path:"ttl"},{default:g((()=>[w(y,{"show-button":!1,class:"w-300px!",value:L(F).ttl,"onUpdate:value":r[3]||(r[3]=e=>L(F).ttl=e),placeholder:a.$t("SSL.Domain.index_15")},null,8,["value","placeholder"])])),_:1}),"MX"===L(F).record_type?(f(),S(o,{key:0,label:"Priority",path:"priority"},{default:g((()=>[w(y,{"show-button":!1,class:"w-300px!",value:L(F).priority,"onUpdate:value":r[4]||(r[4]=e=>L(F).priority=e),placeholder:"Please enter the priority",min:1,max:65535},null,8,["value"])])),_:1})):U("",!0),w(o,{label:a.$t("Public.Table.Ps"),path:"ps"},{default:g((()=>[w(l,{class:"w-300px!",value:L(F).ps,"onUpdate:value":r[5]||(r[5]=e=>L(F).ps=e),placeholder:a.$t("Crontab.arrange.index_27")},null,8,["value","placeholder"])])),_:1},8,["label"]),L(E)&&"MX"!==L(F).record_type?(f(),S(o,{key:1,label:a.$t("SSL.Domain.index_16"),path:"proxy"},{default:g((()=>[w(x,{value:L(F).proxy,"onUpdate:value":r[6]||(r[6]=e=>L(F).proxy=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1},8,["label"])):U("",!0)])),_:1},8,["model"])}}});export{P as default};
diff --git a/BTPanel/static/vite/js/domain-input-legacy.js b/BTPanel/static/vite/js/domain-input-legacy.js
index 832ff00c..ea75dbc6 100644
--- a/BTPanel/static/vite/js/domain-input-legacy.js
+++ b/BTPanel/static/vite/js/domain-input-legacy.js
@@ -1 +1 @@
-System.register(["./page_layout-legacy.js?v=1762424784323","./public-legacy.js?v=1762424784323","./vue-legacy.js?v=1762424784323","./naive-legacy.js?v=1762424784323"],function(e,a){"use strict";var l,d,u,t,s,n,i,c,o,p,r,v,_,f,x,b,k,m,h,g,y,S,L,$,C,U;return{setters:[e=>{l=e.aV,d=e.o,u=e.dt,t=e.d,s=e.p},e=>{n=e.j},e=>{i=e.k,c=e.ad,o=e.am,p=e.ae,r=e.a2,v=e.V,_=e.a3,f=e.W,x=e.an,b=e.R,k=e.S,m=e.j,h=e.a4,g=e.H},e=>{y=e.da,S=e.aX,L=e.aC,$=e.dh,C=e._,U=e.au}],execute:function(){var a=document.createElement("style");a.textContent=".n-button[data-v-4f4b9d13]{--n-padding: 0 12px}\n/*$vite$:1*/",document.head.appendChild(a);const j={key:1,class:"text-desc"},w=i({__name:"domain-input",props:c({is_wp:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{},parseList:{required:!0},parseListModifiers:{}}),emits:c(["update:domain"],["update:value","update:parseList"]),setup(e,{expose:a,emit:s}){const i=e,c=o(),w=p(e,"value"),B=p(e,"parseList"),D=s,M=async(e,a)=>{if(0===a&&D("update:domain",e),!e?.trim())return void(B.value[a]&&B.value.splice(a,1));const{message:l}=await n({domain:e});t(l)&&w.value[a]&&(B.value[a]={...l,auto:l.support.includes("auto"),ssl_cert:l.support.includes("ssl_cert"),cf_proxy:l.support.includes("cf_proxy")})},q=()=>{c.push("/ssl_domain/domain")};return a({onDomainItemBlur:M}),(e,a)=>{const t=U,s=L,n=S,c=C,o=d,p=$,I=l,V=y,E=u;return v(),r(E,{value:w.value,"onUpdate:value":a[0]||(a[0]=e=>w.value=e)},{default:_(({index:a})=>[f(t,{class:g(i.is_wp?"w-200px!":"w-140px!"),value:w.value[a],"onUpdate:value":e=>w.value[a]=e,placeholder:e.$t("Mail.Setting.index_20"),onBlur:e=>M(w.value[a],a)},null,8,["class","value","onUpdate:value","placeholder","onBlur"])]),action:_(({index:l})=>[f(V,{class:"items-center ml-5px"},{default:_(()=>[i.is_wp?x("",!0):(v(),r(n,{key:0},{default:_(()=>[f(s,{onClick:e=>(e=>{w.value.splice(e,1),B.value.splice(e,1),0===e&&D("update:domain",w.value[0]?w.value[0]:"")})(l),disabled:1===w.value.length,round:""},{default:_(()=>a[1]||(a[1]=[k("span",null,"-",-1)])),_:2,__:[1]},1032,["onClick","disabled"]),f(s,{onClick:e=>(e=>{w.value.splice(e+1,0,""),B.value.splice(e+1,0,{})})(l),round:""},{default:_(()=>a[2]||(a[2]=[k("span",null,"+",-1)])),_:2,__:[2]},1032,["onClick"])]),_:2},1024)),B.value[l]?.support?(v(),b("span",j,[f(I,null,{default:_(()=>[f(p,{trigger:"hover",disabled:B.value[l].support.includes("auto")},{trigger:_(()=>[f(c,{checked:B.value[l].auto,"onUpdate:checked":e=>B.value[l].auto=e,disabled:!B.value[l].support.includes("auto"),label:e.$t("SSL.Domain.index_34")},null,8,["checked","onUpdate:checked","disabled","label"])]),default:_(()=>[k("div",null,[m(h(e.$t("SSL.index_5"))+" ",1),f(o,{onClick:q},{default:_(()=>[m(h(e.$t("SSL.index_4")),1)]),_:1})])]),_:2},1032,["disabled"]),f(p,{trigger:"hover",disabled:B.value[l].support.includes("ssl_cert")},{trigger:_(()=>[f(c,{checked:B.value[l].ssl_cert,"onUpdate:checked":e=>B.value[l].ssl_cert=e,disabled:!B.value[l].support.includes("ssl_cert"),label:e.$t("SSL.index_7")},null,8,["checked","onUpdate:checked","disabled","label"])]),default:_(()=>[k("div",null,[m(h(e.$t("SSL.index_6"))+" ",1),f(o,{onClick:q},{default:_(()=>[m(h(e.$t("SSL.index_4")),1)]),_:1})])]),_:2},1032,["disabled"]),B.value[l].support.includes("cf_proxy")?(v(),r(c,{key:0,checked:B.value[l].cf_proxy,"onUpdate:checked":e=>B.value[l].cf_proxy=e,disabled:!B.value[l].support.includes("cf_proxy"),label:e.$t("SSL.index_8")},null,8,["checked","onUpdate:checked","disabled","label"])):x("",!0)]),_:2},1024)])):x("",!0)]),_:2},1024)]),_:1},8,["value"])}}});e("D",s(w,[["__scopeId","data-v-4f4b9d13"]]))}}});
+System.register(["./page_layout-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,d,u,t,s,n,i,c,o,p,r,v,_,f,x,m,k,b,h,g,y,S,L,U,C,$;return{setters:[e=>{l=e.am,d=e.c,u=e.o,t=e.aY,s=e.d$,n=e.p},e=>{i=e.k,c=e.ad,o=e.am,p=e.ae,r=e.R,v=e.a2,_=e.a3,f=e.X,x=e.H,m=e.U,k=e.an,b=e.S,h=e.j,g=e.a4},e=>{y=e.au,S=e.aC,L=e.aZ,U=e._,C=e.dh,$=e.d9}],execute:function(){var a=document.createElement("style");a.textContent=".n-button[data-v-4f4b9d13]{--n-padding: 0 12px}\n",document.head.appendChild(a);const w={key:1,class:"text-desc"},j=i({__name:"domain-input",props:c({is_wp:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{},parseList:{required:!0},parseListModifiers:{}}),emits:c(["update:domain"],["update:value","update:parseList"]),setup(e,{expose:a,emit:n}){const i=e,c=o(),j=p(e,"value"),B=p(e,"parseList"),D=n,M=async(e,a)=>{if(0===a&&D("update:domain",e),!e?.trim())return void(B.value[a]&&B.value.splice(a,1));const{message:u}=await l({domain:e});d(u)&&j.value[a]&&(B.value[a]={...u,auto:u.support.includes("auto"),ssl_cert:u.support.includes("ssl_cert"),cf_proxy:u.support.includes("cf_proxy")})},q=()=>{c.push("/ssl_domain/domain")};return a({onDomainItemBlur:M}),(e,a)=>{const l=y,d=S,n=L,c=U,o=u,p=C,I=t,E=$,H=s;return r(),v(H,{value:j.value,"onUpdate:value":a[0]||(a[0]=e=>j.value=e)},{default:_((({index:a})=>[f(l,{class:x(i.is_wp?"w-200px!":"w-140px!"),value:j.value[a],"onUpdate:value":e=>j.value[a]=e,placeholder:e.$t("Mail.Setting.index_20"),onBlur:e=>M(j.value[a],a)},null,8,["class","value","onUpdate:value","placeholder","onBlur"])])),action:_((({index:l})=>[f(E,{class:"items-center ml-5px"},{default:_((()=>[i.is_wp?k("",!0):(r(),v(n,{key:0},{default:_((()=>[f(d,{onClick:e=>(e=>{j.value.splice(e,1),B.value.splice(e,1),0===e&&D("update:domain",j.value[0]?j.value[0]:"")})(l),disabled:1===j.value.length,round:""},{default:_((()=>a[1]||(a[1]=[m("span",null,"-",-1)]))),_:2,__:[1]},1032,["onClick","disabled"]),f(d,{onClick:e=>(e=>{j.value.splice(e+1,0,""),B.value.splice(e+1,0,{})})(l),round:""},{default:_((()=>a[2]||(a[2]=[m("span",null,"+",-1)]))),_:2,__:[2]},1032,["onClick"])])),_:2},1024)),B.value[l]?.support?(r(),b("span",w,[f(I,null,{default:_((()=>[f(p,{trigger:"hover",disabled:B.value[l].support.includes("auto")},{trigger:_((()=>[f(c,{checked:B.value[l].auto,"onUpdate:checked":e=>B.value[l].auto=e,disabled:!B.value[l].support.includes("auto"),label:e.$t("SSL.Domain.index_34")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:_((()=>[m("div",null,[h(g(e.$t("SSL.index_5"))+" ",1),f(o,{onClick:q},{default:_((()=>[h(g(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),f(p,{trigger:"hover",disabled:B.value[l].support.includes("ssl_cert")},{trigger:_((()=>[f(c,{checked:B.value[l].ssl_cert,"onUpdate:checked":e=>B.value[l].ssl_cert=e,disabled:!B.value[l].support.includes("ssl_cert"),label:e.$t("SSL.index_7")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:_((()=>[m("div",null,[h(g(e.$t("SSL.index_6"))+" ",1),f(o,{onClick:q},{default:_((()=>[h(g(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),B.value[l].support.includes("cf_proxy")?(r(),v(c,{key:0,checked:B.value[l].cf_proxy,"onUpdate:checked":e=>B.value[l].cf_proxy=e,disabled:!B.value[l].support.includes("cf_proxy"),label:e.$t("SSL.index_8")},null,8,["checked","onUpdate:checked","disabled","label"])):k("",!0)])),_:2},1024)])):k("",!0)])),_:2},1024)])),_:1},8,["value"])}}});e("D",n(j,[["__scopeId","data-v-4f4b9d13"]]))}}}));
diff --git a/BTPanel/static/vite/js/domain-input.js b/BTPanel/static/vite/js/domain-input.js
index 8c6c6422..d05006d7 100644
--- a/BTPanel/static/vite/js/domain-input.js
+++ b/BTPanel/static/vite/js/domain-input.js
@@ -1 +1 @@
-import{aV as e,o as a,dt as l,d as s,p as u}from"./page_layout.js?v=1762424784323";import{j as d}from"./public.js?v=1762424784323";import{k as t,ad as i,am as o,ae as n,a2 as p,V as c,a3 as r,W as v,an as _,R as m,S as f,j as k,a4 as x,H as b}from"./vue.js?v=1762424784323";import{da as h,aX as S,aC as g,dh as y,_ as L,au as U}from"./naive.js?v=1762424784323";const $={key:1,class:"text-desc"},C=u(t({__name:"domain-input",props:i({is_wp:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{},parseList:{required:!0},parseListModifiers:{}}),emits:i(["update:domain"],["update:value","update:parseList"]),setup(u,{expose:t,emit:i}){const C=u,j=o(),w=n(u,"value"),B=n(u,"parseList"),D=i,M=async(e,a)=>{if(0===a&&D("update:domain",e),!(null==e?void 0:e.trim()))return void(B.value[a]&&B.value.splice(a,1));const{message:l}=await d({domain:e});s(l)&&w.value[a]&&(B.value[a]={...l,auto:l.support.includes("auto"),ssl_cert:l.support.includes("ssl_cert"),cf_proxy:l.support.includes("cf_proxy")})},q=()=>{j.push("/ssl_domain/domain")};return t({onDomainItemBlur:M}),(s,u)=>{const d=U,t=g,i=S,o=L,n=a,j=y,I=e,V=h,H=l;return c(),p(H,{value:w.value,"onUpdate:value":u[0]||(u[0]=e=>w.value=e)},{default:r(({index:e})=>[v(d,{class:b(C.is_wp?"w-200px!":"w-140px!"),value:w.value[e],"onUpdate:value":a=>w.value[e]=a,placeholder:s.$t("Mail.Setting.index_20"),onBlur:a=>M(w.value[e],e)},null,8,["class","value","onUpdate:value","placeholder","onBlur"])]),action:r(({index:e})=>[v(V,{class:"items-center ml-5px"},{default:r(()=>{var a;return[C.is_wp?_("",!0):(c(),p(i,{key:0},{default:r(()=>[v(t,{onClick:a=>(e=>{w.value.splice(e,1),B.value.splice(e,1),0===e&&D("update:domain",w.value[0]?w.value[0]:"")})(e),disabled:1===w.value.length,round:""},{default:r(()=>u[1]||(u[1]=[f("span",null,"-",-1)])),_:2,__:[1]},1032,["onClick","disabled"]),v(t,{onClick:a=>(e=>{w.value.splice(e+1,0,""),B.value.splice(e+1,0,{})})(e),round:""},{default:r(()=>u[2]||(u[2]=[f("span",null,"+",-1)])),_:2,__:[2]},1032,["onClick"])]),_:2},1024)),(null==(a=B.value[e])?void 0:a.support)?(c(),m("span",$,[v(I,null,{default:r(()=>[v(j,{trigger:"hover",disabled:B.value[e].support.includes("auto")},{trigger:r(()=>[v(o,{checked:B.value[e].auto,"onUpdate:checked":a=>B.value[e].auto=a,disabled:!B.value[e].support.includes("auto"),label:s.$t("SSL.Domain.index_34")},null,8,["checked","onUpdate:checked","disabled","label"])]),default:r(()=>[f("div",null,[k(x(s.$t("SSL.index_5"))+" ",1),v(n,{onClick:q},{default:r(()=>[k(x(s.$t("SSL.index_4")),1)]),_:1})])]),_:2},1032,["disabled"]),v(j,{trigger:"hover",disabled:B.value[e].support.includes("ssl_cert")},{trigger:r(()=>[v(o,{checked:B.value[e].ssl_cert,"onUpdate:checked":a=>B.value[e].ssl_cert=a,disabled:!B.value[e].support.includes("ssl_cert"),label:s.$t("SSL.index_7")},null,8,["checked","onUpdate:checked","disabled","label"])]),default:r(()=>[f("div",null,[k(x(s.$t("SSL.index_6"))+" ",1),v(n,{onClick:q},{default:r(()=>[k(x(s.$t("SSL.index_4")),1)]),_:1})])]),_:2},1032,["disabled"]),B.value[e].support.includes("cf_proxy")?(c(),p(o,{key:0,checked:B.value[e].cf_proxy,"onUpdate:checked":a=>B.value[e].cf_proxy=a,disabled:!B.value[e].support.includes("cf_proxy"),label:s.$t("SSL.index_8")},null,8,["checked","onUpdate:checked","disabled","label"])):_("",!0)]),_:2},1024)])):_("",!0)]}),_:2},1024)]),_:1},8,["value"])}}}),[["__scopeId","data-v-4f4b9d13"]]);export{C as D};
+import{am as e,c as a,o as l,aY as s,d$ as u,p as d}from"./page_layout.js?v=1763625242172";import{k as t,ad as i,am as n,ae as o,R as p,a2 as c,a3 as r,X as v,H as _,U as m,an as f,S as k,j as x,a4 as b}from"./vue.js?v=1763625242172";import{au as h,aC as S,aZ as g,_ as y,dh as L,d9 as U}from"./naive.js?v=1763625242172";const $={key:1,class:"text-desc"},C=d(t({__name:"domain-input",props:i({is_wp:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{},parseList:{required:!0},parseListModifiers:{}}),emits:i(["update:domain"],["update:value","update:parseList"]),setup(d,{expose:t,emit:i}){const C=d,w=n(),j=o(d,"value"),B=o(d,"parseList"),D=i,M=async(l,s)=>{if(0===s&&D("update:domain",l),!(null==l?void 0:l.trim()))return void(B.value[s]&&B.value.splice(s,1));const{message:u}=await e({domain:l});a(u)&&j.value[s]&&(B.value[s]={...u,auto:u.support.includes("auto"),ssl_cert:u.support.includes("ssl_cert"),cf_proxy:u.support.includes("cf_proxy")})},q=()=>{w.push("/ssl_domain/domain")};return t({onDomainItemBlur:M}),(e,a)=>{const d=h,t=S,i=g,n=y,o=l,w=L,I=s,H=U,R=u;return p(),c(R,{value:j.value,"onUpdate:value":a[0]||(a[0]=e=>j.value=e)},{default:r((({index:a})=>[v(d,{class:_(C.is_wp?"w-200px!":"w-140px!"),value:j.value[a],"onUpdate:value":e=>j.value[a]=e,placeholder:e.$t("Mail.Setting.index_20"),onBlur:e=>M(j.value[a],a)},null,8,["class","value","onUpdate:value","placeholder","onBlur"])])),action:r((({index:l})=>[v(H,{class:"items-center ml-5px"},{default:r((()=>{var s;return[C.is_wp?f("",!0):(p(),c(i,{key:0},{default:r((()=>[v(t,{onClick:e=>(e=>{j.value.splice(e,1),B.value.splice(e,1),0===e&&D("update:domain",j.value[0]?j.value[0]:"")})(l),disabled:1===j.value.length,round:""},{default:r((()=>a[1]||(a[1]=[m("span",null,"-",-1)]))),_:2,__:[1]},1032,["onClick","disabled"]),v(t,{onClick:e=>(e=>{j.value.splice(e+1,0,""),B.value.splice(e+1,0,{})})(l),round:""},{default:r((()=>a[2]||(a[2]=[m("span",null,"+",-1)]))),_:2,__:[2]},1032,["onClick"])])),_:2},1024)),(null==(s=B.value[l])?void 0:s.support)?(p(),k("span",$,[v(I,null,{default:r((()=>[v(w,{trigger:"hover",disabled:B.value[l].support.includes("auto")},{trigger:r((()=>[v(n,{checked:B.value[l].auto,"onUpdate:checked":e=>B.value[l].auto=e,disabled:!B.value[l].support.includes("auto"),label:e.$t("SSL.Domain.index_34")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:r((()=>[m("div",null,[x(b(e.$t("SSL.index_5"))+" ",1),v(o,{onClick:q},{default:r((()=>[x(b(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),v(w,{trigger:"hover",disabled:B.value[l].support.includes("ssl_cert")},{trigger:r((()=>[v(n,{checked:B.value[l].ssl_cert,"onUpdate:checked":e=>B.value[l].ssl_cert=e,disabled:!B.value[l].support.includes("ssl_cert"),label:e.$t("SSL.index_7")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:r((()=>[m("div",null,[x(b(e.$t("SSL.index_6"))+" ",1),v(o,{onClick:q},{default:r((()=>[x(b(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),B.value[l].support.includes("cf_proxy")?(p(),c(n,{key:0,checked:B.value[l].cf_proxy,"onUpdate:checked":e=>B.value[l].cf_proxy=e,disabled:!B.value[l].support.includes("cf_proxy"),label:e.$t("SSL.index_8")},null,8,["checked","onUpdate:checked","disabled","label"])):f("",!0)])),_:2},1024)])):f("",!0)]})),_:2},1024)])),_:1},8,["value"])}}}),[["__scopeId","data-v-4f4b9d13"]]);export{C as D};
diff --git a/BTPanel/static/vite/js/domain-verification-legacy.js b/BTPanel/static/vite/js/domain-verification-legacy.js
index 313bf56f..40bd711d 100644
--- a/BTPanel/static/vite/js/domain-verification-legacy.js
+++ b/BTPanel/static/vite/js/domain-verification-legacy.js
@@ -1 +1 @@
-System.register(["./page_layout-legacy.js?v=1762424784323","./public-legacy.js?v=1762424784323","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1762424784323","./naive-legacy.js?v=1762424784323","./vue-legacy.js?v=1762424784323","./common-legacy.js?v=1762424784323","./__commonjsHelpers__-legacy.js?v=1762424784323"],function(e,l){"use strict";var a,t,n,i,o,s,u,r,d,c,_,p,f,m,v,y,h,x,C,b,w,S,k,g,B,$,L,D,V,j,P,R,M,N,U,A,H;return{setters:[e=>{a=e.o,t=e._,n=e.d,i=e.m,o=e.a},e=>{s=e.i,u=e.c,r=e.f,d=e.aB,c=e.h,_=e._,p=e.a0,f=e.u},e=>{m=e._},e=>{v=e.dR,y=e.au,h=e.aC,x=e.da,C=e.d5},e=>{b=e.k,w=e.a5,S=e.R,k=e.V,g=e.S,B=e.W,$=e.a3,L=e.j,D=e.a4,V=e.U,j=e.P,P=e.af,R=e.e,M=e.r,N=e.c,U=e.n,A=e.a2,H=e._},null,null],execute:function(){const F={class:"text-14px mb-20px!"},q=b({__name:"dns-verification",props:{form:{}},setup:e=>(e,l)=>{const t=a,n=w("i18n-t"),i=y,o=h,u=v,r=x,d=m;return k(),S("div",null,[g("div",F,[B(n,{keypath:"SSL.Business.index_15",scope:"global"},{a:$(()=>[B(t,null,{default:$(()=>[L(D(e.form.domain_name),1)]),_:1})]),b:$(()=>[L(D(e.form.record_type),1)]),_:1})]),B(d,{model:e.form,"label-width":"100px"},{default:$(()=>[B(u,{label:e.$t("Mail.Domain.index_37")},{default:$(()=>[B(i,{class:"w-380px!",value:e.form.host_record,"onUpdate:value":l[0]||(l[0]=l=>e.form.host_record=l),readonly:""},null,8,["value"]),B(o,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=l=>V(s)(e.form.host_record))},{default:$(()=>[L(D(e.$t("Public.Btn.Copy")),1)]),_:1})]),_:1},8,["label"]),B(u,{label:e.$t("Mail.Domain.index_36")},{default:$(()=>[B(i,{class:"w-380px!",value:e.form.record_type,"onUpdate:value":l[2]||(l[2]=l=>e.form.record_type=l),readonly:""},null,8,["value"])]),_:1},8,["label"]),B(u,{label:e.$t("Mail.Domain.index_38")},{default:$(()=>[B(r,null,{default:$(()=>[B(i,{type:"textarea",class:"w-380px!",value:e.form.record_value,"onUpdate:value":l[3]||(l[3]=l=>e.form.record_value=l),readonly:""},null,8,["value"]),B(o,{type:"primary",onClick:l[4]||(l[4]=l=>V(s)(e.form.record_value))},{default:$(()=>[L(D(e.$t("Public.Btn.Copy")),1)]),_:1})]),_:1})]),_:1},8,["label"])]),_:1},8,["model"])])}}),E={class:"text-14px mb-20px!"},T={class:"text-primary"},G=b({__name:"http-verification",props:{form:{},paths:{}},setup(e){const{t:l}=j(),a=e,{form:i,paths:o}=P(a),{columns:_}=u([{title:"URL",key:"url",width:"50%",ellipsis:{tooltip:!0}},{title:"Verification Result",key:"status",render:e=>-1===e.status?B("span",{class:"color-error"},[L("Failed("),e.status,L(")"),B(t,{class:"ml-5px! cursor-pointer",name:"base-problem",onClick:()=>{window.open("https://www.aapanel.com/docs/Function/BusinessCertificate.html#http-and-https-file-verification-methods","_blank")}},null)]):B("span",{class:"text-primary"},[L("Success")])},r({width:150,options:e=>[{label:l("Public.Btn.Copy"),onClick:()=>{s(e.url)}},{label:l("Config.Panel.index_83_1"),onClick:()=>{window.open(e.url,"_blank")}},{label:"Re-verify",onClick:async()=>{try{const{message:l}=await d({url:e.url,content:a.form.file_content});n(l)&&(e.status=l.status)}catch(l){e.status=C(l,"message.status",-1)}}}]})]);return(e,l)=>{const a=y,t=h,n=v,u=x,r=m,d=c;return k(),S("div",null,[g("div",E,[l[6]||(l[6]=L(" Please add a verification file to the following domain name [ ",-1)),g("span",T,D(V(i).domain_name),1),l[7]||(l[7]=L(" ], the verification information is as follows: ",-1))]),B(r,{model:V(i),"label-width":"100px"},{default:$(()=>[B(n,{label:"File Location"},{default:$(()=>[B(a,{class:"w-380px!",value:V(i).file_path,"onUpdate:value":l[0]||(l[0]=e=>V(i).file_path=e),readonly:""},null,8,["value"]),B(t,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=e=>V(s)(V(i).file_path))},{default:$(()=>[L(D(e.$t("Public.Btn.Copy")),1)]),_:1})]),_:1}),B(n,{label:e.$t("file.fileName")},{default:$(()=>[B(a,{class:"w-380px!",value:V(i).file_name,"onUpdate:value":l[2]||(l[2]=e=>V(i).file_name=e),readonly:""},null,8,["value"]),B(t,{class:"ml-10px!",type:"primary",onClick:l[3]||(l[3]=e=>V(s)(V(i).file_name))},{default:$(()=>[L(D(e.$t("Public.Btn.Copy")),1)]),_:1})]),_:1},8,["label"]),B(n,{label:e.$t("SSL.Domain.index_13")},{default:$(()=>[B(u,null,{default:$(()=>[B(a,{type:"textarea",class:"w-380px!",value:V(i).file_content,"onUpdate:value":l[4]||(l[4]=e=>V(i).file_content=e),readonly:""},null,8,["value"]),B(t,{type:"primary",onClick:l[5]||(l[5]=e=>V(s)(V(i).file_content))},{default:$(()=>[L(D(e.$t("Public.Btn.Copy")),1)]),_:1})]),_:1})]),_:1},8,["label"])]),_:1},8,["model"]),B(d,{columns:V(_),data:V(o)},null,8,["columns","data"])])}}}),I={class:"p-40px",show:!1};e("default",b({__name:"domain-verification",props:{uc_id:{},verify:{},paths:{},request:{type:Boolean},onRefresh:{type:Function}},emits:["close"],setup(e,{emit:t}){const{t:s}=j(),u=e,{uc_id:r,verify:d,request:c,paths:m}=P(u),v=t,y=R({host_record:"",record_type:"",record_value:"",domain_name:"",file_path:"/.well-known/pki-validation/",file_name:"",file_content:""}),C=M([]),b=M(""),w=N(()=>"CNAME_CSR_HASH"==b.value),F=async()=>{const{message:e}=await p({uc_id:r.value});n(e)&&("PENDING"===e.certStatus?i.success(s("SSL.Business.index_23")):(u.onRefresh(),v("close")),y.host_record=e.data.DCVdnsHost,y.record_type=e.data.DCVdnsType,y.record_value=e.data.DCVdnsValue,y.domain_name=e.data.dcvList.map(e=>e.domainName).join(","),b.value=e.data.dcvList[0].dcvMethod,y.file_name=e.data.DCVfileName,y.file_content=e.data.DCVfileContent,C.value=e.paths)},E=()=>{v("close")};U(()=>{c.value?F():T()});const T=()=>{y.host_record=d.value.DCVdnsHost,y.record_type=d.value.DCVdnsType,y.record_value=d.value.DCVdnsValue,y.domain_name=d.value.dcvList.map(e=>e.domainName).join(","),b.value=d.value.dcvList[0].dcvMethod,y.file_name=d.value.DCVfileName,y.file_content=d.value.DCVfileContent,C.value=m?.value||[]},W=()=>{f({title:"Modify the verification method",width:500,minHeight:200,data:{uc_id:r.value,onRefresh:F},footer:!0,component:H(()=>o(()=>l.import("./change-verification-legacy.js?v=1762424784323"),void 0))})};return(e,l)=>{const t=a,n=_,i=h,o=x;return k(),S("div",I,[V(w)?(k(),A(q,{key:0,form:V(y)},null,8,["form"])):(k(),A(G,{key:1,form:V(y),paths:V(C)},null,8,["form","paths"])),B(n,{class:"my-20px"},{default:$(()=>[l[0]||(l[0]=g("li",null,"Check for the existence of CAA records, and if they exist, please remove the relevant CAA records.",-1)),g("li",null,D(e.$t("SSL.Business.index_16")),1),g("li",null,D(e.$t("SSL.Business.index_17")),1),g("li",null,D(e.$t("SSL.Business.index_18")),1),g("li",null,D(e.$t("SSL.Business.index_19")),1),g("li",null,[B(t,{href:"https://www.aapanel.com/docs/Function/BusinessCertificate.html",target:"_blank"},{default:$(()=>[L(D(e.$t("SSL.Business.index_20")),1)]),_:1})])]),_:1,__:[0]}),B(o,null,{default:$(()=>[B(i,{type:"primary",onClick:F},{default:$(()=>[L(D(e.$t("SSL.Business.index_21")),1)]),_:1}),B(i,{onClick:W},{default:$(()=>l[1]||(l[1]=[L("Modifiy verify",-1)])),_:1,__:[1]}),B(i,{onClick:E},{default:$(()=>[L(D(e.$t("SSL.Business.index_22")),1)]),_:1})]),_:1})])}}}))}}});
+System.register(["./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,l){"use strict";var a,t,n,i,o,s,u,r,c,d,_,p,f,m,v,y,h,x,C,b,w,S,k,g,B,$,L,D,V,j,P,M,N,R,U,A,H;return{setters:[e=>{a=e.o,t=e._,n=e.h8,i=e.c,o=e.du,s=e.m,u=e.a},e=>{r=e.i,c=e.c,d=e.f,_=e.h,p=e.u,f=e._},e=>{m=e._},e=>{v=e.au,y=e.aC,h=e.dP,x=e.d9,C=e.d5},e=>{b=e.k,w=e.a5,S=e.R,k=e.S,g=e.U,B=e.X,$=e.a3,L=e.j,D=e.a4,V=e.V,j=e.P,P=e.af,M=e.e,N=e.r,R=e.c,U=e.n,A=e.a2,H=e._},null,null],execute:function(){const F={class:"text-14px mb-20px!"},q=b({__name:"dns-verification",props:{form:{}},setup:e=>(e,l)=>{const t=a,n=w("i18n-t"),i=v,o=y,s=h,u=x,c=m;return S(),k("div",null,[g("div",F,[B(n,{keypath:"SSL.Business.index_15",scope:"global"},{a:$((()=>[B(t,null,{default:$((()=>[L(D(e.form.domain_name),1)])),_:1})])),b:$((()=>[L(D(e.form.record_type),1)])),_:1})]),B(c,{model:e.form,"label-width":"100px"},{default:$((()=>[B(s,{label:e.$t("Mail.Domain.index_37")},{default:$((()=>[B(i,{class:"w-380px!",value:e.form.host_record,"onUpdate:value":l[0]||(l[0]=l=>e.form.host_record=l),readonly:""},null,8,["value"]),B(o,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=l=>V(r)(e.form.host_record))},{default:$((()=>[L(D(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),B(s,{label:e.$t("Mail.Domain.index_36")},{default:$((()=>[B(i,{class:"w-380px!",value:e.form.record_type,"onUpdate:value":l[2]||(l[2]=l=>e.form.record_type=l),readonly:""},null,8,["value"])])),_:1},8,["label"]),B(s,{label:e.$t("Mail.Domain.index_38")},{default:$((()=>[B(u,null,{default:$((()=>[B(i,{type:"textarea",class:"w-380px!",value:e.form.record_value,"onUpdate:value":l[3]||(l[3]=l=>e.form.record_value=l),readonly:""},null,8,["value"]),B(o,{type:"primary",onClick:l[4]||(l[4]=l=>V(r)(e.form.record_value))},{default:$((()=>[L(D(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"])])}}),E={class:"text-14px mb-20px!"},T={class:"text-primary"},G=b({__name:"http-verification",props:{form:{},paths:{}},setup(e){const{t:l}=j(),a=e,{form:o,paths:s}=P(a),{columns:u}=c([{title:"URL",key:"url",width:"50%",ellipsis:{tooltip:!0}},{title:"Verification Result",key:"status",render:e=>-1===e.status?B("span",{class:"color-error"},[L("Failed("),e.status,L(")"),B(t,{class:"ml-5px! cursor-pointer",name:"base-problem",onClick:()=>{window.open("https://www.aapanel.com/docs/Function/BusinessCertificate.html#http-and-https-file-verification-methods","_blank")}},null)]):B("span",{class:"text-primary"},[L("Success")])},d({width:150,options:e=>[{label:l("Public.Btn.Copy"),onClick:()=>{r(e.url)}},{label:l("Config.Panel.index_83_1"),onClick:()=>{window.open(e.url,"_blank")}},{label:"Re-verify",onClick:async()=>{try{const{message:l}=await n({url:e.url,content:a.form.file_content});i(l)&&(e.status=l.status)}catch(l){e.status=C(l,"message.status",-1)}}}]})]);return(e,l)=>{const a=v,t=y,n=h,i=x,c=m,d=_;return S(),k("div",null,[g("div",E,[l[6]||(l[6]=L(" Please add a verification file to the following domain name [ ")),g("span",T,D(V(o).domain_name),1),l[7]||(l[7]=L(" ], the verification information is as follows: "))]),B(c,{model:V(o),"label-width":"100px"},{default:$((()=>[B(n,{label:"File Location"},{default:$((()=>[B(a,{class:"w-380px!",value:V(o).file_path,"onUpdate:value":l[0]||(l[0]=e=>V(o).file_path=e),readonly:""},null,8,["value"]),B(t,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=e=>V(r)(V(o).file_path))},{default:$((()=>[L(D(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1}),B(n,{label:e.$t("file.fileName")},{default:$((()=>[B(a,{class:"w-380px!",value:V(o).file_name,"onUpdate:value":l[2]||(l[2]=e=>V(o).file_name=e),readonly:""},null,8,["value"]),B(t,{class:"ml-10px!",type:"primary",onClick:l[3]||(l[3]=e=>V(r)(V(o).file_name))},{default:$((()=>[L(D(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),B(n,{label:e.$t("SSL.Domain.index_13")},{default:$((()=>[B(i,null,{default:$((()=>[B(a,{type:"textarea",class:"w-380px!",value:V(o).file_content,"onUpdate:value":l[4]||(l[4]=e=>V(o).file_content=e),readonly:""},null,8,["value"]),B(t,{type:"primary",onClick:l[5]||(l[5]=e=>V(r)(V(o).file_content))},{default:$((()=>[L(D(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"]),B(d,{columns:V(u),data:V(s)},null,8,["columns","data"])])}}}),I={class:"p-40px",show:!1};e("default",b({__name:"domain-verification",props:{uc_id:{},verify:{},paths:{},request:{type:Boolean},onRefresh:{type:Function}},emits:["close"],setup(e,{emit:t}){const{t:n}=j(),r=e,{uc_id:c,verify:d,request:_,paths:m}=P(r),v=t,h=M({host_record:"",record_type:"",record_value:"",domain_name:"",file_path:"/.well-known/pki-validation/",file_name:"",file_content:""}),C=N([]),b=N(""),w=R((()=>"CNAME_CSR_HASH"==b.value)),F=async()=>{const{message:e}=await o({uc_id:c.value});i(e)&&("PENDING"===e.certStatus?s.success(n("SSL.Business.index_23")):(r.onRefresh(),v("close")),h.host_record=e.data.DCVdnsHost,h.record_type=e.data.DCVdnsType,h.record_value=e.data.DCVdnsValue,h.domain_name=e.data.dcvList.map((e=>e.domainName)).join(","),b.value=e.data.dcvList[0].dcvMethod,h.file_name=e.data.DCVfileName,h.file_content=e.data.DCVfileContent,C.value=e.paths)},E=()=>{v("close")};U((()=>{_.value?F():T()}));const T=()=>{h.host_record=d.value.DCVdnsHost,h.record_type=d.value.DCVdnsType,h.record_value=d.value.DCVdnsValue,h.domain_name=d.value.dcvList.map((e=>e.domainName)).join(","),b.value=d.value.dcvList[0].dcvMethod,h.file_name=d.value.DCVfileName,h.file_content=d.value.DCVfileContent,C.value=m?.value||[]},X=()=>{p({title:"Modify the verification method",width:500,minHeight:200,data:{uc_id:c.value,onRefresh:F},footer:!0,component:H((()=>u((()=>l.import("./change-verification-legacy.js?v=1763625242172")),void 0)))})};return(e,l)=>{const t=a,n=f,i=y,o=x;return S(),k("div",I,[V(w)?(S(),A(q,{key:0,form:V(h)},null,8,["form"])):(S(),A(G,{key:1,form:V(h),paths:V(C)},null,8,["form","paths"])),B(n,{class:"my-20px"},{default:$((()=>[l[0]||(l[0]=g("li",null,"Check for the existence of CAA records, and if they exist, please remove the relevant CAA records.",-1)),g("li",null,D(e.$t("SSL.Business.index_16")),1),g("li",null,D(e.$t("SSL.Business.index_17")),1),g("li",null,D(e.$t("SSL.Business.index_18")),1),g("li",null,D(e.$t("SSL.Business.index_19")),1),g("li",null,[B(t,{href:"https://www.aapanel.com/docs/Function/BusinessCertificate.html",target:"_blank"},{default:$((()=>[L(D(e.$t("SSL.Business.index_20")),1)])),_:1})])])),_:1,__:[0]}),B(o,null,{default:$((()=>[B(i,{type:"primary",onClick:F},{default:$((()=>[L(D(e.$t("SSL.Business.index_21")),1)])),_:1}),B(i,{onClick:X},{default:$((()=>l[1]||(l[1]=[L("Modifiy verify")]))),_:1,__:[1]}),B(i,{onClick:E},{default:$((()=>[L(D(e.$t("SSL.Business.index_22")),1)])),_:1})])),_:1})])}}}))}}}));
diff --git a/BTPanel/static/vite/js/domain-verification.js b/BTPanel/static/vite/js/domain-verification.js
index 0dd3f28e..6ba0a0b2 100644
--- a/BTPanel/static/vite/js/domain-verification.js
+++ b/BTPanel/static/vite/js/domain-verification.js
@@ -1,2 +1,2 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/change-verification.js?v=1762424784323","js/public.js?v=1762424784323","js/page_layout.js?v=1762424784323","js/vue.js?v=1762424784323","js/__commonjsHelpers__.js?v=1762424784323","js/naive.js?v=1762424784323","js/common.js?v=1762424784323","css/page_layout.css?v=1762424784323","css/public.css?v=1762424784323","js/index.vue_vue_type_script_setup_true_lang.js?v=1762424784323"])))=>i.map(i=>d[i]);
-import{o as e,_ as a,d as l,m as t,a as s}from"./page_layout.js?v=1762424784323";import{i as n,c as o,f as i,aB as r,h as u,_ as d,a0 as c,u as _}from"./public.js?v=1762424784323";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1762424784323";import{dR as m,au as f,aC as v,da as y,d5 as h}from"./naive.js?v=1762424784323";import{k as x,a5 as C,R as b,V as w,S,W as k,a3 as B,j as L,a4 as $,U as D,P as V,af as j,e as g,r as P,c as R,n as M,a2 as N,_ as U}from"./vue.js?v=1762424784323";import"./common.js?v=1762424784323";import"./__commonjsHelpers__.js?v=1762424784323";const A={class:"text-14px mb-20px!"},H=x({__name:"dns-verification",props:{form:{}},setup:a=>(a,l)=>{const t=e,s=C("i18n-t"),o=f,i=v,r=m,u=y,d=p;return w(),b("div",null,[S("div",A,[k(s,{keypath:"SSL.Business.index_15",scope:"global"},{a:B(()=>[k(t,null,{default:B(()=>[L($(a.form.domain_name),1)]),_:1})]),b:B(()=>[L($(a.form.record_type),1)]),_:1})]),k(d,{model:a.form,"label-width":"100px"},{default:B(()=>[k(r,{label:a.$t("Mail.Domain.index_37")},{default:B(()=>[k(o,{class:"w-380px!",value:a.form.host_record,"onUpdate:value":l[0]||(l[0]=e=>a.form.host_record=e),readonly:""},null,8,["value"]),k(i,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=e=>D(n)(a.form.host_record))},{default:B(()=>[L($(a.$t("Public.Btn.Copy")),1)]),_:1})]),_:1},8,["label"]),k(r,{label:a.$t("Mail.Domain.index_36")},{default:B(()=>[k(o,{class:"w-380px!",value:a.form.record_type,"onUpdate:value":l[2]||(l[2]=e=>a.form.record_type=e),readonly:""},null,8,["value"])]),_:1},8,["label"]),k(r,{label:a.$t("Mail.Domain.index_38")},{default:B(()=>[k(u,null,{default:B(()=>[k(o,{type:"textarea",class:"w-380px!",value:a.form.record_value,"onUpdate:value":l[3]||(l[3]=e=>a.form.record_value=e),readonly:""},null,8,["value"]),k(i,{type:"primary",onClick:l[4]||(l[4]=e=>D(n)(a.form.record_value))},{default:B(()=>[L($(a.$t("Public.Btn.Copy")),1)]),_:1})]),_:1})]),_:1},8,["label"])]),_:1},8,["model"])])}}),F={class:"text-14px mb-20px!"},E={class:"text-primary"},T=x({__name:"http-verification",props:{form:{},paths:{}},setup(e){const{t:t}=V(),s=e,{form:d,paths:c}=j(s),{columns:_}=o([{title:"URL",key:"url",width:"50%",ellipsis:{tooltip:!0}},{title:"Verification Result",key:"status",render:e=>-1===e.status?k("span",{class:"color-error"},[L("Failed("),e.status,L(")"),k(a,{class:"ml-5px! cursor-pointer",name:"base-problem",onClick:()=>{window.open("https://www.aapanel.com/docs/Function/BusinessCertificate.html#http-and-https-file-verification-methods","_blank")}},null)]):k("span",{class:"text-primary"},[L("Success")])},i({width:150,options:e=>[{label:t("Public.Btn.Copy"),onClick:()=>{n(e.url)}},{label:t("Config.Panel.index_83_1"),onClick:()=>{window.open(e.url,"_blank")}},{label:"Re-verify",onClick:async()=>{try{const{message:a}=await r({url:e.url,content:s.form.file_content});l(a)&&(e.status=a.status)}catch(a){e.status=h(a,"message.status",-1)}}}]})]);return(e,a)=>{const l=f,t=v,s=m,o=y,i=p,r=u;return w(),b("div",null,[S("div",F,[a[6]||(a[6]=L(" Please add a verification file to the following domain name [ ",-1)),S("span",E,$(D(d).domain_name),1),a[7]||(a[7]=L(" ], the verification information is as follows: ",-1))]),k(i,{model:D(d),"label-width":"100px"},{default:B(()=>[k(s,{label:"File Location"},{default:B(()=>[k(l,{class:"w-380px!",value:D(d).file_path,"onUpdate:value":a[0]||(a[0]=e=>D(d).file_path=e),readonly:""},null,8,["value"]),k(t,{class:"ml-10px!",type:"primary",onClick:a[1]||(a[1]=e=>D(n)(D(d).file_path))},{default:B(()=>[L($(e.$t("Public.Btn.Copy")),1)]),_:1})]),_:1}),k(s,{label:e.$t("file.fileName")},{default:B(()=>[k(l,{class:"w-380px!",value:D(d).file_name,"onUpdate:value":a[2]||(a[2]=e=>D(d).file_name=e),readonly:""},null,8,["value"]),k(t,{class:"ml-10px!",type:"primary",onClick:a[3]||(a[3]=e=>D(n)(D(d).file_name))},{default:B(()=>[L($(e.$t("Public.Btn.Copy")),1)]),_:1})]),_:1},8,["label"]),k(s,{label:e.$t("SSL.Domain.index_13")},{default:B(()=>[k(o,null,{default:B(()=>[k(l,{type:"textarea",class:"w-380px!",value:D(d).file_content,"onUpdate:value":a[4]||(a[4]=e=>D(d).file_content=e),readonly:""},null,8,["value"]),k(t,{type:"primary",onClick:a[5]||(a[5]=e=>D(n)(D(d).file_content))},{default:B(()=>[L($(e.$t("Public.Btn.Copy")),1)]),_:1})]),_:1})]),_:1},8,["label"])]),_:1},8,["model"]),k(r,{columns:D(_),data:D(c)},null,8,["columns","data"])])}}}),q={class:"p-40px",show:!1},I=x({__name:"domain-verification",props:{uc_id:{},verify:{},paths:{},request:{type:Boolean},onRefresh:{type:Function}},emits:["close"],setup(a,{emit:n}){const{t:o}=V(),i=a,{uc_id:r,verify:u,request:p,paths:m}=j(i),f=n,h=g({host_record:"",record_type:"",record_value:"",domain_name:"",file_path:"/.well-known/pki-validation/",file_name:"",file_content:""}),x=P([]),C=P(""),A=R(()=>"CNAME_CSR_HASH"==C.value),F=async()=>{const{message:e}=await c({uc_id:r.value});l(e)&&("PENDING"===e.certStatus?t.success(o("SSL.Business.index_23")):(i.onRefresh(),f("close")),h.host_record=e.data.DCVdnsHost,h.record_type=e.data.DCVdnsType,h.record_value=e.data.DCVdnsValue,h.domain_name=e.data.dcvList.map(e=>e.domainName).join(","),C.value=e.data.dcvList[0].dcvMethod,h.file_name=e.data.DCVfileName,h.file_content=e.data.DCVfileContent,x.value=e.paths)},E=()=>{f("close")};M(()=>{p.value?F():I()});const I=()=>{h.host_record=u.value.DCVdnsHost,h.record_type=u.value.DCVdnsType,h.record_value=u.value.DCVdnsValue,h.domain_name=u.value.dcvList.map(e=>e.domainName).join(","),C.value=u.value.dcvList[0].dcvMethod,h.file_name=u.value.DCVfileName,h.file_content=u.value.DCVfileContent,x.value=(null==m?void 0:m.value)||[]},G=()=>{_({title:"Modify the verification method",width:500,minHeight:200,data:{uc_id:r.value,onRefresh:F},footer:!0,component:U(()=>s(()=>import("./change-verification.js?v=1762424784323"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])))})};return(a,l)=>{const t=e,s=d,n=v,o=y;return w(),b("div",q,[D(A)?(w(),N(H,{key:0,form:D(h)},null,8,["form"])):(w(),N(T,{key:1,form:D(h),paths:D(x)},null,8,["form","paths"])),k(s,{class:"my-20px"},{default:B(()=>[l[0]||(l[0]=S("li",null,"Check for the existence of CAA records, and if they exist, please remove the relevant CAA records.",-1)),S("li",null,$(a.$t("SSL.Business.index_16")),1),S("li",null,$(a.$t("SSL.Business.index_17")),1),S("li",null,$(a.$t("SSL.Business.index_18")),1),S("li",null,$(a.$t("SSL.Business.index_19")),1),S("li",null,[k(t,{href:"https://www.aapanel.com/docs/Function/BusinessCertificate.html",target:"_blank"},{default:B(()=>[L($(a.$t("SSL.Business.index_20")),1)]),_:1})])]),_:1,__:[0]}),k(o,null,{default:B(()=>[k(n,{type:"primary",onClick:F},{default:B(()=>[L($(a.$t("SSL.Business.index_21")),1)]),_:1}),k(n,{onClick:G},{default:B(()=>l[1]||(l[1]=[L("Modifiy verify",-1)])),_:1,__:[1]}),k(n,{onClick:E},{default:B(()=>[L($(a.$t("SSL.Business.index_22")),1)]),_:1})]),_:1})])}}});export{I as default};
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/change-verification.js?v=1763625242172","js/public.js?v=1763625242172","js/page_layout.js?v=1763625242172","js/vue.js?v=1763625242172","js/__commonjsHelpers__.js?v=1763625242172","js/naive.js?v=1763625242172","js/common.js?v=1763625242172","css/page_layout.css?v=1763625242172","css/public.css?v=1763625242172","js/index.vue_vue_type_script_setup_true_lang.js?v=1763625242172"])))=>i.map(i=>d[i]);
+import{o as e,_ as a,h8 as l,c as t,du as s,m as n,a as o}from"./page_layout.js?v=1763625242172";import{i,c as r,f as u,h as d,u as c,_}from"./public.js?v=1763625242172";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{au as m,aC as f,dP as v,d9 as y,d5 as h}from"./naive.js?v=1763625242172";import{k as x,a5 as C,R as b,S as w,U as S,X as k,a3 as B,j as L,a4 as $,V as D,P as V,af as j,e as P,r as g,c as R,n as M,a2 as N,_ as U}from"./vue.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const A={class:"text-14px mb-20px!"},H=x({__name:"dns-verification",props:{form:{}},setup:a=>(a,l)=>{const t=e,s=C("i18n-t"),n=m,o=f,r=v,u=y,d=p;return b(),w("div",null,[S("div",A,[k(s,{keypath:"SSL.Business.index_15",scope:"global"},{a:B((()=>[k(t,null,{default:B((()=>[L($(a.form.domain_name),1)])),_:1})])),b:B((()=>[L($(a.form.record_type),1)])),_:1})]),k(d,{model:a.form,"label-width":"100px"},{default:B((()=>[k(r,{label:a.$t("Mail.Domain.index_37")},{default:B((()=>[k(n,{class:"w-380px!",value:a.form.host_record,"onUpdate:value":l[0]||(l[0]=e=>a.form.host_record=e),readonly:""},null,8,["value"]),k(o,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=e=>D(i)(a.form.host_record))},{default:B((()=>[L($(a.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),k(r,{label:a.$t("Mail.Domain.index_36")},{default:B((()=>[k(n,{class:"w-380px!",value:a.form.record_type,"onUpdate:value":l[2]||(l[2]=e=>a.form.record_type=e),readonly:""},null,8,["value"])])),_:1},8,["label"]),k(r,{label:a.$t("Mail.Domain.index_38")},{default:B((()=>[k(u,null,{default:B((()=>[k(n,{type:"textarea",class:"w-380px!",value:a.form.record_value,"onUpdate:value":l[3]||(l[3]=e=>a.form.record_value=e),readonly:""},null,8,["value"]),k(o,{type:"primary",onClick:l[4]||(l[4]=e=>D(i)(a.form.record_value))},{default:B((()=>[L($(a.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"])])}}),F={class:"text-14px mb-20px!"},E={class:"text-primary"},T=x({__name:"http-verification",props:{form:{},paths:{}},setup(e){const{t:s}=V(),n=e,{form:o,paths:c}=j(n),{columns:_}=r([{title:"URL",key:"url",width:"50%",ellipsis:{tooltip:!0}},{title:"Verification Result",key:"status",render:e=>-1===e.status?k("span",{class:"color-error"},[L("Failed("),e.status,L(")"),k(a,{class:"ml-5px! cursor-pointer",name:"base-problem",onClick:()=>{window.open("https://www.aapanel.com/docs/Function/BusinessCertificate.html#http-and-https-file-verification-methods","_blank")}},null)]):k("span",{class:"text-primary"},[L("Success")])},u({width:150,options:e=>[{label:s("Public.Btn.Copy"),onClick:()=>{i(e.url)}},{label:s("Config.Panel.index_83_1"),onClick:()=>{window.open(e.url,"_blank")}},{label:"Re-verify",onClick:async()=>{try{const{message:a}=await l({url:e.url,content:n.form.file_content});t(a)&&(e.status=a.status)}catch(a){e.status=h(a,"message.status",-1)}}}]})]);return(e,a)=>{const l=m,t=f,s=v,n=y,r=p,u=d;return b(),w("div",null,[S("div",F,[a[6]||(a[6]=L(" Please add a verification file to the following domain name [ ")),S("span",E,$(D(o).domain_name),1),a[7]||(a[7]=L(" ], the verification information is as follows: "))]),k(r,{model:D(o),"label-width":"100px"},{default:B((()=>[k(s,{label:"File Location"},{default:B((()=>[k(l,{class:"w-380px!",value:D(o).file_path,"onUpdate:value":a[0]||(a[0]=e=>D(o).file_path=e),readonly:""},null,8,["value"]),k(t,{class:"ml-10px!",type:"primary",onClick:a[1]||(a[1]=e=>D(i)(D(o).file_path))},{default:B((()=>[L($(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1}),k(s,{label:e.$t("file.fileName")},{default:B((()=>[k(l,{class:"w-380px!",value:D(o).file_name,"onUpdate:value":a[2]||(a[2]=e=>D(o).file_name=e),readonly:""},null,8,["value"]),k(t,{class:"ml-10px!",type:"primary",onClick:a[3]||(a[3]=e=>D(i)(D(o).file_name))},{default:B((()=>[L($(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),k(s,{label:e.$t("SSL.Domain.index_13")},{default:B((()=>[k(n,null,{default:B((()=>[k(l,{type:"textarea",class:"w-380px!",value:D(o).file_content,"onUpdate:value":a[4]||(a[4]=e=>D(o).file_content=e),readonly:""},null,8,["value"]),k(t,{type:"primary",onClick:a[5]||(a[5]=e=>D(i)(D(o).file_content))},{default:B((()=>[L($(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"]),k(u,{columns:D(_),data:D(c)},null,8,["columns","data"])])}}}),q={class:"p-40px",show:!1},I=x({__name:"domain-verification",props:{uc_id:{},verify:{},paths:{},request:{type:Boolean},onRefresh:{type:Function}},emits:["close"],setup(a,{emit:l}){const{t:i}=V(),r=a,{uc_id:u,verify:d,request:p,paths:m}=j(r),v=l,h=P({host_record:"",record_type:"",record_value:"",domain_name:"",file_path:"/.well-known/pki-validation/",file_name:"",file_content:""}),x=g([]),C=g(""),A=R((()=>"CNAME_CSR_HASH"==C.value)),F=async()=>{const{message:e}=await s({uc_id:u.value});t(e)&&("PENDING"===e.certStatus?n.success(i("SSL.Business.index_23")):(r.onRefresh(),v("close")),h.host_record=e.data.DCVdnsHost,h.record_type=e.data.DCVdnsType,h.record_value=e.data.DCVdnsValue,h.domain_name=e.data.dcvList.map((e=>e.domainName)).join(","),C.value=e.data.dcvList[0].dcvMethod,h.file_name=e.data.DCVfileName,h.file_content=e.data.DCVfileContent,x.value=e.paths)},E=()=>{v("close")};M((()=>{p.value?F():I()}));const I=()=>{h.host_record=d.value.DCVdnsHost,h.record_type=d.value.DCVdnsType,h.record_value=d.value.DCVdnsValue,h.domain_name=d.value.dcvList.map((e=>e.domainName)).join(","),C.value=d.value.dcvList[0].dcvMethod,h.file_name=d.value.DCVfileName,h.file_content=d.value.DCVfileContent,x.value=(null==m?void 0:m.value)||[]},G=()=>{c({title:"Modify the verification method",width:500,minHeight:200,data:{uc_id:u.value,onRefresh:F},footer:!0,component:U((()=>o((()=>import("./change-verification.js?v=1763625242172")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))))})};return(a,l)=>{const t=e,s=_,n=f,o=y;return b(),w("div",q,[D(A)?(b(),N(H,{key:0,form:D(h)},null,8,["form"])):(b(),N(T,{key:1,form:D(h),paths:D(x)},null,8,["form","paths"])),k(s,{class:"my-20px"},{default:B((()=>[l[0]||(l[0]=S("li",null,"Check for the existence of CAA records, and if they exist, please remove the relevant CAA records.",-1)),S("li",null,$(a.$t("SSL.Business.index_16")),1),S("li",null,$(a.$t("SSL.Business.index_17")),1),S("li",null,$(a.$t("SSL.Business.index_18")),1),S("li",null,$(a.$t("SSL.Business.index_19")),1),S("li",null,[k(t,{href:"https://www.aapanel.com/docs/Function/BusinessCertificate.html",target:"_blank"},{default:B((()=>[L($(a.$t("SSL.Business.index_20")),1)])),_:1})])])),_:1,__:[0]}),k(o,null,{default:B((()=>[k(n,{type:"primary",onClick:F},{default:B((()=>[L($(a.$t("SSL.Business.index_21")),1)])),_:1}),k(n,{onClick:G},{default:B((()=>l[1]||(l[1]=[L("Modifiy verify")]))),_:1,__:[1]}),k(n,{onClick:E},{default:B((()=>[L($(a.$t("SSL.Business.index_22")),1)])),_:1})])),_:1})])}}});export{I as default};
diff --git a/BTPanel/static/vite/js/echarts-legacy.js b/BTPanel/static/vite/js/echarts-legacy.js
index 40a7bfeb..3874a6ce 100644
--- a/BTPanel/static/vite/js/echarts-legacy.js
+++ b/BTPanel/static/vite/js/echarts-legacy.js
@@ -1,4 +1,4 @@
-System.register(["./__commonjsHelpers__-legacy.js?v=1762424784323"],function(t,e){"use strict";var n;return{setters:[t=>{n=t.c}],execute:function(){t({B:Z_,D:Zy,E:bx,F:ei,H:ob,I:bw,J:function(t,e){if("world"===t){var n=ww[e.name];if(n){var i=[n[0],n[1]];e.setCenter(i)}}},K:B,N:go,Q:Td,T:oe,U:_d,V:K,W:Cd,X:Ad,Y:By,a:O,a0:gs,a1:$v,a2:io,a3:B_,a4:_e,a5:Ce,a6:Wt,a8:Dw,a9:eo,aa:L,ab:yt,ad:vV,ae:Uz,af:nN,ag:KB,ah:vE,ai:yw,aj:eF,ak:DB,al:EG,am:QT,an:lw,ao:JF,ap:gw,aq:function(){return Nnt||(Nnt=1,function(t){var e=c$();!function(){for(var n in e){if(null==e||!e.hasOwnProperty(n)||"default"===n||"__esModule"===n)return;t[n]=e[n]}}();var n=h$();!function(){for(var e in n){if(null==n||!n.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=n[e]}}(),kq(),function(){if(OJ)return x$;OJ=1;var t=c$();(function(){if(p$)return d$;p$=1,gW().__DEV__;var t=fK(),e=rq(),n=e.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});d$=n})(),function(){if(N$)return R$;N$=1,gW().__DEV__;var t=IW(),e=JY().fromPoints,n=S$(),i=w$(),r=D$(),o=FX(),a=PY(),s=P$(),l=s.Polyline,u=s.Polygon,h=sq(),c=A$(),d=c.prepareDataCoordInfo,p=c.getStackedOnPoint,f=W$(),g=f.createGridClipPath,v=f.createPolarClipPath;function m(t,e){if(t.length===e.length){for(var n=0;n=0;s--){var l=i[s].dimension,u=e.dimensions[l],h=e.getDimensionInfo(u);if("x"===(r=h&&h.coordDim)||"y"===r){a=i[s];break}}if(a){var c=n.getAxis(r),d=t.map(a.stops,function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}}),p=d.length,f=a.outerColors.slice();p&&d[0].coord>d[p-1].coord&&(d.reverse(),f.reverse());var g=10,v=d[0].coord-g,m=d[p-1].coord+g,y=m-v;if(y<.001)return"transparent";t.each(d,function(t){t.offset=(t.coord-v)/y}),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var x=new o.LinearGradient(0,0,0,0,d,!0);return x[r]=v,x[r+"2"]=m,x}}}function S(e,n,i){var r=e.get("showAllSymbol"),o="auto"===r;if(!r||o){var a=i.getAxesByScale("ordinal")[0];if(a&&(!o||!M(a,n))){var s=n.mapDimension(a.dim),l={};return t.each(a.getViewLabels(),function(t){l[t.tickValue]=1}),function(t){return!l.hasOwnProperty(n.get(s,t))}}}}function M(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var o=e.count(),a=Math.max(1,Math.round(o/5)),s=0;sr)return!1;return!0}function I(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=g(t,e,n);if(!n.get("clip",!0)){var o=r.shape,a=Math.max(o.width,o.height);i?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return r}return v(t,e,n)}var T=h.extend({type:"line",init:function(){var t=new o.Group,e=new n;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(e,n,i){var r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.mapArray(a.getItemLayout),h="polar"===r.type,c=this._coordSys,p=this._symbolDraw,f=this._polyline,g=this._polygon,v=this._lineGroup,y=e.get("animation"),M=!l.isEmpty(),T=l.get("origin"),C=_(r,a,d(r,a,T)),A=e.get("showSymbol"),D=A&&!h&&S(e,a,r),L=this._data;L&&L.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),L.setItemGraphicEl(e,null))}),A||p.remove(),o.add(v);var k,P=!h&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(k=r.getArea()).width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r1+=.5)),this._clipShapeForSymbol=k,f&&c.type===r.type&&P===this._step?(M&&!g?g=this._newPolygon(u,C,r,y):g&&!M&&(v.remove(g),g=this._polygon=null),v.setClipPath(I(r,!1,e)),A&&p.updateData(a,{isIgnore:D,clipShape:k}),a.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),m(this._stackedOnPoints,C)&&m(this._points,u)||(y?this._updateAnimation(a,C,r,i,P,T):(P&&(u=b(u,r,P),C=b(C,r,P)),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:C})))):(A&&p.updateData(a,{isIgnore:D,clipShape:k}),P&&(u=b(u,r,P),C=b(C,r,P)),f=this._newPolyline(u,r,y),M&&(g=this._newPolygon(u,C,r,y)),v.setClipPath(I(r,!0,e)));var O=w(a,r)||a.getVisual("color");f.useStyle(t.defaults(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var R=e.get("smooth");if(R=x(e.get("smooth")),f.setShape({smooth:R,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),g){var N=a.getCalculationInfo("stackedOnSeries"),E=0;g.useStyle(t.defaults(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),N&&(E=x(N.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:E,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=a,this._coordSys=r,this._stackedOnPoints=C,this._points=u,this._step=P,this._valueOrigin=T},dispose:function(){},highlight:function(t,e,n,r){var o=t.getData(),s=a.queryDataIndex(o,r);if(!(s instanceof Array)&&null!=s&&s>=0){var l=o.getItemGraphicEl(s);if(!l){var u=o.getItemLayout(s);if(!u)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u[0],u[1]))return;(l=new i(o,s)).position=u,l.setZ(t.get("zlevel"),t.get("z")),l.ignore=isNaN(u[0])||isNaN(u[1]),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else h.prototype.highlight.call(this,t,e,n,r)},downplay:function(t,e,n,i){var r=t.getData(),o=a.queryDataIndex(r,i);if(null!=o&&o>=0){var s=r.getItemGraphicEl(o);s&&(s.__temp?(r.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else h.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new l({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new u({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,a,s){var l=this._polyline,u=this._polygon,h=t.hostModel,c=r(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,s),d=c.current,p=c.stackedOnCurrent,f=c.next,g=c.stackedOnNext;if(a&&(d=b(c.current,n,a),p=b(c.stackedOnCurrent,n,a),f=b(c.next,n,a),g=b(c.stackedOnNext,n,a)),y(d,f)>3e3||u&&y(p,g)>3e3)return l.setShape({points:f}),void(u&&u.setShape({points:f,stackedOnPoints:g}));l.shape.__points=c.current,l.shape.points=d,o.updateProps(l,{shape:{points:f}},h),u&&(u.setShape({points:d,stackedOnPoints:p}),o.updateProps(u,{shape:{points:f,stackedOnPoints:g}},h));for(var v=[],m=c.status,x=0;xt&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});GJ=e}(),function(){if(KJ)return qJ;KJ=1,gW().__DEV__;var t=c$(),e=IW(),n=FX(),i=QJ().setLabel,r=HX(),o=tQ(),a=EZ(),s=EU(),l=Mq().throttle,u=W$().createClipPath,h=function(){if(jJ)return XJ;jJ=1;var t=FX().extendShape,e=t({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=Math.cos(l),d=Math.sin(l),p=Math.cos(u),f=Math.sin(u);(h?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(c*r+n,d*r+i),t.arc(c*s+n,d*s+i,a,-Math.PI+l,l,!h)),t.arc(n,i,o,l,u,!h),t.moveTo(p*o+n,f*o+i),t.arc(p*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&(t.arc(n,i,r,u,l,h),t.moveTo(c*r+n,f*r+i)),t.closePath()}});return XJ=e}(),c=["itemStyle","barBorderWidth"],d=[0,0];function p(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}e.extend(r.prototype,o);var f=t.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var r,o=this.group,a=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis();"cartesian2d"===u.type?r=h.isHorizontal():"polar"===u.type&&(r="angle"===h.dim);var c=t.isAnimationEnabled()?t:null,d=t.get("clip",!0),f=p(u,a);o.removeClipPath();var g=t.get("roundCap",!0),v=t.get("showBackground",!0),w=t.getModel("backgroundStyle"),M=w.get("barBorderRadius")||0,I=[],T=this._backgroundEls||[],C=function(t){var e=b[u.type](a,t),n=P(u,r,e);return n.useStyle(w.getBarItemStyle()),"cartesian2d"===u.type&&n.setShape("r",M),I[t]=n,n};a.diff(l).add(function(e){var n=a.getItemModel(e),i=b[u.type](a,e,n);if(v&&C(e),a.hasValue(e)){if(d&&m[u.type](f,i))return void o.remove(s);var s=y[u.type](e,i,r,c,!1,g);a.setItemGraphicEl(e,s),o.add(s),S(s,a,e,n,i,t,r,"polar"===u.type)}}).update(function(e,i){var s=a.getItemModel(e),h=b[u.type](a,e,s);if(v){var p;0===T.length?p=C(i):((p=T[i]).useStyle(w.getBarItemStyle()),"cartesian2d"===u.type&&p.setShape("r",M),I[e]=p);var x=b[u.type](a,e),_=k(r,x,u);n.updateProps(p,{shape:_},c,e)}var A=l.getItemGraphicEl(i);if(a.hasValue(e)){if(d&&m[u.type](f,h))return void o.remove(A);A?n.updateProps(A,{shape:h},c,e):A=y[u.type](e,h,r,c,!0,g),a.setItemGraphicEl(e,A),o.add(A),S(A,a,e,s,h,t,r,"polar"===u.type)}else o.remove(A)}).remove(function(t){var e=l.getItemGraphicEl(t);"cartesian2d"===u.type?e&&x(t,c,e):e&&_(t,c,e)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new s);A.removeAll();for(var D=0;D0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function w(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function S(t,r,o,a,s,l,u,h){var c=r.getItemVisual(o,"color"),d=r.getItemVisual(o,"opacity"),p=r.getVisual("borderColor"),f=a.getModel("itemStyle"),g=a.getModel("emphasis.itemStyle").getBarItemStyle();h||t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(e.defaults({stroke:w(s)?"none":p,fill:w(s)?"none":c,opacity:d},f.getBarItemStyle()));var v=a.getShallow("cursor");v&&t.attr("cursor",v);var m=u?s.height>0?"bottom":"top":s.width>0?"left":"right";h||i(t.style,g,a,c,l,o,m),w(s)&&(g.fill=g.stroke="none"),n.setHoverStyle(t,g)}function M(t,e){var n=t.get(c)||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,r)}var I=a.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o=0?n:null},30,!1);function A(t,e,n){var i=t.__baseDimIdx,r=1-i,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];d[0]=e,d[1]=n;for(var u=d[i],h=d[1-i],c=u-s,p=u+s,f=0,g=o.length/2;f=c&&m<=p&&(l<=y?h>=l&&h<=y:h>=y&&h<=l))return a[f]}return-1}function D(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function L(t,e,n){var i=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function k(t,e,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}function P(t,e,i){return new("polar"===t.type?n.Sector:n.Rect)({shape:k(e,i,t),silent:!0,z2:0})}qJ=f}(),zJ(),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,e.curry(i,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,r),t.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})}(),function(){if(bQ)return wQ;bQ=1;var t=c$(),e=IW();(function(){if(lQ)return sQ;lQ=1;var t=c$(),e=SQ(),n=IW(),i=PY(),r=qX().getPercentWithPrecision,o=MQ(),a=Yj().retrieveRawAttr,s=Rj().makeSeriesEncodeForNameBased,l=IQ(),u=t.extendSeriesModel({type:"series.pie",init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(n.bind(this.getData,this),n.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){u.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,i){return e(this,{coordDimensions:["value"],encodeDefaulter:n.curry(s,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,r=t.count();i0&&(c?"scale"!==d:"transition"!==p)){for(var v=s.getItemLayout(0),m=1;isNaN(v.startAngle)&&m=n.r0}}}),l=s;uQ=l}();var n=TQ(),i=CQ(),r=DQ(),o=LQ();n("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),t.registerVisual(i("pie")),t.registerLayout(e.curry(r,"pie")),t.registerProcessor(o("pie"))}(),function(){if(EQ)return e0;EQ=1;var t=c$();(function(){if(PQ)return kQ;PQ=1;var t=fK(),e=rq(),n=e.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});kQ=n})(),function(){if(NQ)return n0;NQ=1;var t=c$(),e=S$(),n=function(){if(RQ)return OQ;RQ=1;var t=FX(),e=ZK().createSymbol,n=GX(),i=4,r=t.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,e){var n=e.points,r=e.size,o=this.symbolProxy,a=o.shape;if(!((t.getContext?t.getContext():t)&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1}});function o(){this.group=new t.Group}var a=o.prototype;a.isPersistent=function(){return!this._incremental},a.updateData=function(t,e){this.group.removeAll();var n=new r({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},a.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild(function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)})}},a.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new n({silent:!0})),this.group.add(this._incremental)):this._incremental=null},a.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new r,this._incremental.addDisplayable(i,!0)):((i=new r({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental,n)},a._setCommon=function(t,n,r,o){var a=n.hostModel;o=o||{};var s=n.getVisual("symbolSize");t.setShape("size",s instanceof Array?s:[s,s]),t.softClipShape=o.clipShape||null,t.symbolProxy=e(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var l=t.shape.size[0]=0&&(t.dataIndex=n+(t.startIndex||0))}))},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var s=o;return OQ=s}(),i=Y$();t.extendChartView({type:"scatter",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=i().reset(t);o.progress&&o.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_getClipShape:function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},_updateSymbolDraw:function(t,i){var r=this._symbolDraw,o=i.pipelineContext.large;return r&&o===this._isLargeDraw||(r&&r.remove(),r=this._symbolDraw=o?new n:new e,this._isLargeDraw=o,this.group.removeAll()),this.group.add(r.group),r},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})}();var e=U$(),n=Y$();zJ(),t.registerVisual(e("scatter","circle")),t.registerLayout(n("scatter"))}(),function(){if(t0)return i0;t0=1;var t=c$();YQ||(YQ=1,function(){if(GQ)return BQ;GQ=1;var t=IW(),e=function(){if(VQ)return zQ;VQ=1;var t=IW(),e=u$();function n(t,n,i){e.call(this,t,n,i),this.type="value",this.angle=0,this.name="",this.model}t.inherits(n,e);var i=n;return zQ=i}(),n=DK(),i=qX(),r=FK(),o=r.getScaleExtent,a=r.niceScaleExtent,s=zj(),l=GK();function u(i,r,o){this._model=i,this.dimensions=[],this._indicatorAxes=t.map(i.getIndicatorModels(),function(t,i){var r="indicator_"+i,o=new e(r,"log"===t.get("axisType")?new l:new n);return o.name=t.get("name"),o.model=t,t.axis=o,this.dimensions.push(r),o},this),this.resize(i,o),this.cx,this.cy,this.r,this.r0,this.startAngle}u.prototype.getIndicatorAxes=function(){return this._indicatorAxes},u.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},u.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},u.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;ln[0]&&isFinite(f)&&isFinite(n[0]));else{s.getTicks().length-1>l&&(d=u(d));var p=Math.ceil(n[1]/d)*d,f=i.round(p-d*l);s.setExtent(f,p),s.setInterval(d)}})},u.dimensions=[],u.create=function(t,e){var n=[];return t.eachComponent("radar",function(i){var r=new u(i,t,e);n.push(r),i.coordinateSystem=r}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])}),n},s.register("radar",u);var h=u;BQ=h}(),function(){if(HQ)return FQ;HQ=1;var t=c$(),e=IW(),n=cJ(),i=HX(),r=HK(),o=n.valueAxis;function a(t,n){return e.defaults({show:n},t)}var s=t.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),o=this.get("scale"),a=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),h=this.get("name"),c=this.get("name.show"),d=this.get("name.formatter"),p=this.get("nameGap"),f=this.get("triggerEvent"),g=e.map(this.get("indicator")||[],function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var v=h;if(null!=g.color&&(v=e.defaults({color:g.color},h)),g=e.merge(e.clone(g),{boundaryGap:t,splitNumber:n,scale:o,axisLine:a,axisTick:s,axisType:l,axisLabel:u,name:g.text,nameLocation:"end",nameGap:p,nameTextStyle:v,triggerEvent:f},!1),c||(g.name=""),"string"==typeof d){var m=g.name;g.name=d.replace("{value}",null!=m?m:"")}else"function"==typeof d&&(g.name=d(g.name,g));var y=e.extend(new i(g,null,this.ecModel),r);return y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this.getIndicatorModels=function(){return g}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:e.merge({lineStyle:{color:"#bbb"}},o.axisLine),axisLabel:a(o.axisLabel,!1),axisTick:a(o.axisTick,!1),axisType:"interval",splitLine:a(o.splitLine,!0),splitArea:a(o.splitArea,!0),indicator:[]}}),l=s;FQ=l}(),function(){if(UQ)return WQ;UQ=1,gW().__DEV__;var t=c$(),e=IW(),n=xJ(),i=FX(),r=["axisLine","axisTickLabel","axisName"],o=t.extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),a=e.map(o,function(t){return new n(t.model,{position:[i.cx,i.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});e.each(a,function(t){e.each(r,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){var n=t.coordinateSystem,r=n.getIndicatorAxes();if(r.length){var o=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),d=l.get("color"),p=u.get("color");d=e.isArray(d)?d:[d],p=e.isArray(p)?p:[p];var f=[],g=[];if("circle"===o)for(var v=r[0].getTicksCoords(),m=n.cx,y=n.cy,x=0;x":"\n";return i(""===l?this.name:l)+u+n.map(s,function(e,n){var r=a.get(a.mapDimension(e.dim),t);return i(e.name+" : "+r)}).join(u)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,r=e.getValues(n.map(i.dimensions,function(t){return e.mapDimension(t)}),t,!0),o=0,a=r.length;o":"\n";return h.join(", ")+f+r(l+" : "+s)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});t.mixin(h,a);var c=h;x0=c})(),function(){if(V0)return z0;V0=1;var t=c$(),e=IW(),n=FX(),i=F0(),r="__seriesMapHighDown",o="__seriesMapCallKey",a=t.extendChartView({type:"map",render:function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(a=this._mapDraw)&&o.add(a.group);else if(t.needsDrawMap){var a=this._mapDraw||new i(n,!0);o.add(a.group),a.draw(t,e,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,i,a){var u=t.originalData,h=this.group;u.each(u.mapDimension("value"),function(i,a){if(!isNaN(i)){var c=u.getItemLayout(a);if(c&&c.point){var d=c.point,p=c.offset,f=new n.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*p,cy:d[1],r:3},silent:!0,z2:8+(p?0:n.Z2_EMPHASIS_LIFT+1)});if(!p){var g=t.mainSeries.getData(),v=u.getName(a),m=g.indexOfName(v),y=u.getItemModel(a),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(m),w=e.retrieve2(t.getFormattedLabel(m,"normal"),v),S=e.retrieve2(t.getFormattedLabel(m,"emphasis"),w),M=b[r],I=Math.random();if(!M){M=b[r]={};var T=e.curry(s,!0),C=e.curry(s,!1);b.on("mouseover",T).on("mouseout",C).on("emphasis",T).on("normal",C)}b[o]=I,e.extend(M,{recordVersion:I,circle:f,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),l(M,!1)}h.add(f)}}})}});function s(t){var e=this[r];e&&e.recordVersion===this[o]&&l(e,t)}function l(t,e){var i=t.circle,r=t.labelModel,o=t.hoverLabelModel,a=t.emphasisText,s=t.normalText;e?(i.style.extendFrom(n.setTextStyle({},o,{text:o.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=n.Z2_EMPHASIS_LIFT):(n.setTextStyle(i.style,r,{text:r.get("show")?s:null,textPosition:r.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}z0=a}(),l1(),h1();var e=c1(),n=d1(),i=p1(),r=f1(),o=TQ();t.registerLayout(e),t.registerVisual(n),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,i),t.registerPreprocessor(r),o("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])}(),function(){if(O1)return b1;O1=1;var t=c$();(function(){if(_1)return x1;_1=1;var t=rq(),e=S1(),n=sj().encodeHTML,i=HX(),r=t.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var n={name:t.name,children:t.data},r=t.leaves||{},o=new i(r,this,this.ecModel),a=e.createTree(n,this,s);function s(t){t.wrapMethod("getItemModel",function(t,e){var n=a.getNodeByDataIndex(e);return n.children.length&&n.isExpand||(t.parentModel=o),t})}var l=0;a.eachNode("preorder",function(t){t.depth>l&&(l=t.depth)});var u=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return a.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=u}),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],r=e.getNodeByDataIndex(t),o=r.getValue(),a=r.name;r&&r!==i;)a=r.parentNode.name+"."+a,r=r.parentNode;return n(a+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});x1=r})(),function(){if(T1)return I1;T1=1;var t=IW(),e=FX(),n=w$(),i=A1().radialCoordinate,r=c$(),o=JY(),a=u1(),s=O0(),l=L0(),u=G0().onIrrelevantElement;gW().__DEV__;var h=qX().parsePercent,c=e.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=h(e.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(d[0],d[1]),t.moveTo(o[0],o[1]),d[l]=o[l],t.lineTo(d[0],d[1]),d[l]=a[l],t.lineTo(d[0],d[1]),t.lineTo(a[0],a[1]);for(var p=1;pS.x)||(_-=Math.PI);var T=b?"left":"right",C=s.labelModel.get("rotate"),A=C*(Math.PI/180);x.setStyle({textPosition:s.labelModel.get("position")||T,textRotation:null==C?-_:A,textOrigin:"center",verticalAlign:"middle"})}v(a,u,c,r,m,g,y,o,s)}function v(n,i,r,o,a,s,l,u,h){var d=h.edgeShape,p=o.__edge;if("curve"===d)i.parentNode&&i.parentNode!==r&&(p||(p=o.__edge=new e.BezierCurve({shape:y(h,a,a),style:t.defaults({opacity:0,strokeNoScale:!0},h.lineStyle)})),e.updateProps(p,{shape:y(h,s,l),style:t.defaults({opacity:1},h.lineStyle)},n));else if("polyline"===d&&"orthogonal"===h.layout&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var f=i.children,g=[],v=0;v=0;m--){var y=v[m],x=y.node,_=y.width,b=y.text;g>f.width&&(g-=_-d,_=d,b=null);var w=new t.Polygon({shape:{points:l(c,0,_,p,m===v.length-1,0===m)},style:n.defaults(a.getItemStyle(),{lineJoin:"bevel",text:b,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:n.curry(h,x)});this.group.add(w),u(w,i,x),c+=_+o}},remove:function(){this.group.removeAll()}};var h=s;return G1=h}(),a=L0(),s=NU(),l=eU(),u=function(){if(Y1)return n2;Y1=1;var t=IW();function e(){var e,n=[],i={};return{add:function(e,r,o,a,s){return t.isString(a)&&(s=a,a=0),!i[e.id]&&(i[e.id]=1,n.push({el:e,target:r,time:o,delay:a,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var t=n.length,r=0,o=n.length;rv||Math.abs(t.dy)>v)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new s(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var u=l.create();l.translate(u,u,[-e,-n]),l.scale(u,u,[t.scale,t.scale]),l.translate(u,u,[e,n]),o.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&c(o,a)}}}}},this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(r.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new o(this.group))).render(t,e,n.node,d(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=C(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n}});function C(){return{nodeGroup:[],background:[],content:[]}}function A(t,i,r,o,a,s,l,u,h,c){if(l){var d=l.getLayout(),g=t.getData();if(g.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var v=d.width,b=d.height,T=d.borderWidth,C=d.invisible,A=l.getRawIndex(),L=u&&u.getRawIndex(),k=l.viewChildren,P=d.upperHeight,O=k&&k.length,R=l.getModel("itemStyle"),N=l.getModel("emphasis.itemStyle"),E=Y("nodeGroup",p);if(E){if(h.add(E),E.attr("position",[d.x||0,d.y||0]),E.__tmNodeWidth=v,E.__tmNodeHeight=b,d.isAboveViewRoot)return E;var z=l.getModel(),V=Y("background",f,c,w);if(V&&G(E,V,O&&d.upperLabelHeight),O)n.isHighDownDispatcher(E)&&n.setAsHighDownDispatcher(E,!1),V&&(n.setAsHighDownDispatcher(V,!0),g.setItemGraphicEl(l.dataIndex,V));else{var B=Y("content",f,c,S);B&&F(E,B),V&&n.isHighDownDispatcher(V)&&n.setAsHighDownDispatcher(V,!1),n.setAsHighDownDispatcher(E,!0),g.setItemGraphicEl(l.dataIndex,E)}return E}}}function G(e,i,r){if(i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:v,height:b}),C)H(i);else{i.invisible=!1;var o=l.getVisual("borderColor",!0),a=N.get("borderColor"),s=I(R);s.fill=o;var u=M(N);if(u.fill=a,r){var h=v-2*T;W(s,u,o,h,P,{x:T,y:0,width:h,height:P})}else s.text=u.text=null;i.setStyle(s),n.setElementHoverStyle(i,u)}e.add(i)}function F(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(v-2*T,0),o=Math.max(b-2*T,0);if(i.culling=!0,i.setShape({x:T,y:T,width:r,height:o}),C)H(i);else{i.invisible=!1;var a=l.getVisual("color",!0),s=I(R);s.fill=a;var u=M(N);W(s,u,a,r,o),i.setStyle(s),n.setElementHoverStyle(i,u)}e.add(i)}function H(t){!t.invisible&&s.push(t)}function W(i,r,o,a,s,u){var h=z.get("name"),c=z.getModel(u?x:m),p=z.getModel(u?_:y),f=c.getShallow("show");n.setLabelStyle(i,r,c,p,{defaultText:f?h:null,autoColor:o,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),U(i,u,d),U(r,u,d),u&&(i.textRect=e.clone(u)),i.truncate=f&&c.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function U(e,n,i){var r=e.text;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function Y(t,e,n,o){var s=null!=L&&r[t][L],l=a[t];return s?(r[t][L]=null,Z(l,s,t)):C||((s=new e({z:D(n,o)})).__tmDepth=n,s.__tmStorageName=t,X(l,s,t)),i[t][A]=s}function Z(t,n,i){(t[A]={}).old="nodeGroup"===i?n.position.slice():e.extend({},n.shape)}function X(t,e,n){var i=t[A]={},r=l.parentNode;if(r&&(!o||"drillDown"===o.direction)){var s=0,u=0,h=a.background[r.getRawIndex()];!o&&h&&h.old&&(s=h.old.width,u=h.old.height),i.old="nodeGroup"===n?[0,u]:{x:s,y:u,width:0,height:0}}i.fadein="nodeGroup"!==n}}function D(t,e){var n=t*b+e;return(n-1)/n}Z1=T}(),function(){if(j1)return i2;j1=1;for(var t=c$(),e=U1(),n=function(){},i=["treemapZoomToNode","treemapRender","treemapMove"],r=0;r ")),r.value&&(u+=" : "+o(r.value)),u}return c.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=n.map(this.option.categories||[],function(t){return null!=t.value?t:n.extend({value:0},t)}),i=new e(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(t){return i.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return c.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}});f2=c})(),function(){if(k2)return L2;k2=1;var t=c$(),e=IW(),n=S$(),i=T2(),r=L0(),o=O0(),a=G0().onIrrelevantElement,s=FX(),l=R2(),u=O2().getNodeGlobalScale,h="__focusNodeAdjacency",c="__unfocusNodeAdjacency",d=["itemStyle","opacity"],p=["lineStyle","opacity"];function f(t,e){var n=t.getVisual("opacity");return null!=n?n:t.getModel().get(e)}function g(t,e,n){var i=t.getGraphicEl(),r=f(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse(function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==n||(e=r),t.setStyle("opacity",e)}})}function v(t,e){var n=f(t,e),i=t.getGraphicEl();i.traverse(function(t){!t.isGroup&&t.setStyle("opacity",n)}),i.highlight&&i.highlight()}var m=t.extendChartView({type:"graph",init:function(t,e){var o=new n,a=new i,s=this.group;this._controller=new r(e.getZr()),this._controllerHost={target:s},s.add(o.group),s.add(a.group),this._symbolDraw=o,this._lineDraw=a,this._firstRender=!0},render:function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,d=this.group;if("view"===r.type){var p={position:r.position,scale:r.scale};this._firstRender?d.attr(p):s.updateProps(d,p,t)}l(t.getGraph(),u(t));var f=t.getData();o.updateData(f);var g=t.getEdgeData();a.updateData(g),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var v=t.forceLayout,m=t.get("force.layoutAnimation");v&&this._startForceLayoutIteration(v,m),f.eachItemGraphicEl(function(e,r){var o=f.getItemModel(r);e.off("drag").off("dragend");var a=o.get("draggable");a&&e.on("drag",function(){v&&(v.warmUp(),!this._layouting&&this._startForceLayoutIteration(v,m),v.setFixed(r),f.setItemLayout(r,e.position))},this).on("dragend",function(){v&&v.setUnfixed(r)},this),e.setDraggable(a&&v),e[h]&&e.off("mouseover",e[h]),e[c]&&e.off("mouseout",e[c]),o.get("focusNodeAdjacency")&&(e.on("mouseover",e[h]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[c]=function(){i._dispatchUnfocus(n)}))},this),f.graph.eachEdge(function(e){var r=e.getGraphicEl();r[h]&&r.off("mouseover",r[h]),r[c]&&r.off("mouseout",r[c]),e.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[h]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),r.on("mouseout",r[c]=function(){i._dispatchUnfocus(n)}))});var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),x=f.getLayout("cx"),_=f.getLayout("cy");f.eachItemGraphicEl(function(t,e){var n=f.getItemModel(e).get("label.rotate")||0,i=t.getSymbolPath();if(y){var r=f.getItemLayout(e),o=Math.atan2(r[1]-_,r[0]-x);o<0&&(o=2*Math.PI+o);var a=r[0]=t&&(0===e?0:r[e-1][0]).4?"bottom":"middle",textAlign:k<-.4?"left":k>.4?"right":"center"},{autoColor:E}),silent:!0}))}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){k=Math.cos(I),P=Math.sin(I);var V=new e.Line({shape:{x1:k*g+p,y1:P*g+f,x2:k*(g-M)+p,y2:P*(g-M)+f},silent:!0,style:D});"auto"===D.stroke&&V.setStyle({stroke:a((L+z/w)/b)}),d.add(V),I+=C}I-=C}else I+=T}},_renderPointer:function(n,i,o,s,l,u,h,c){var d=this.group,p=this._data;if(n.get("pointer.show")){var f=[+n.get("min"),+n.get("max")],g=[u,h],v=n.getData(),m=v.mapDimension("value");v.diff(p).add(function(i){var r=new t({shape:{angle:u}});e.initProps(r,{shape:{angle:a(v.get(m,i),f,g,!0)}},n),d.add(r),v.setItemGraphicEl(i,r)}).update(function(t,i){var r=p.getItemGraphicEl(i);e.updateProps(r,{shape:{angle:a(v.get(m,t),f,g,!0)}},n),d.add(r),v.setItemGraphicEl(t,r)}).remove(function(t){var e=p.getItemGraphicEl(t);d.remove(e)}).execute(),v.eachItemGraphicEl(function(t,n){var i=v.getItemModel(n),o=i.getModel("pointer");t.setShape({x:l.cx,y:l.cy,width:r(o.get("width"),l.r),r:r(o.get("length"),l.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",s(a(v.get(m,n),f,[0,1],!0))),e.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())}),this._data=v}else p&&p.eachItemGraphicEl(function(t){d.remove(t)})},_renderTitle:function(t,n,i,o,s){var l=t.getData(),u=l.mapDimension("value"),h=t.getModel("title");if(h.get("show")){var c=h.get("offsetCenter"),d=s.cx+r(c[0],s.r),p=s.cy+r(c[1],s.r),f=+t.get("min"),g=+t.get("max"),v=t.getData().get(u,0),m=o(a(v,[f,g],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},h,{x:d,y:p,text:l.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(t,n,i,o,s){var u=t.getModel("detail"),h=+t.get("min"),c=+t.get("max");if(u.get("show")){var d=u.get("offsetCenter"),p=s.cx+r(d[0],s.r),f=s.cy+r(d[1],s.r),g=r(u.get("width"),s.r),v=r(u.get("height"),s.r),m=t.getData(),y=m.get(m.mapDimension("value"),0),x=o(a(y,[h,c],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},u,{x:p,y:f,text:l(y,u.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(v)?null:v,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}}),c=h;g5=c}()),function(){if(C5)return A5;C5=1;var t=c$();(function(){if(w5)return b5;w5=1;var t=c$(),e=IW(),n=SQ(),i=PY().defaultEmphasis,r=Rj().makeSeriesEncodeForNameBased,o=IQ(),a=t.extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendVisualProvider=new o(e.bind(this.getData,this),e.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,i){return n(this,{coordDimensions:["value"],encodeDefaulter:e.curry(r,this)})},_defaultLabelLine:function(t){i(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=a.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}});b5=a})(),function(){if(M5)return S5;M5=1;var t=FX(),e=IW(),n=sq();function i(e,n){t.Group.call(this);var i=new t.Polygon,r=new t.Polyline,o=new t.Text;this.add(i),this.add(r),this.add(o),this.highDownOnUpdate=function(t,e){"emphasis"===e?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,n,!0)}var r=i.prototype,o=["itemStyle","opacity"];r.updateData=function(n,i,r){var a=this.childAt(0),s=n.hostModel,l=n.getItemModel(i),u=n.getItemLayout(i),h=n.getItemModel(i).get(o);h=null==h?1:h,a.useStyle({}),r?(a.setShape({points:u.points}),a.setStyle({opacity:0}),t.initProps(a,{style:{opacity:h}},s,i)):t.updateProps(a,{style:{opacity:h},shape:{points:u.points}},s,i);var c=l.getModel("itemStyle"),d=n.getItemVisual(i,"color");a.setStyle(e.defaults({lineJoin:"round",fill:d},c.getItemStyle(["opacity"]))),a.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(n,i),t.setHoverStyle(this)},r._updateLabel=function(e,n){var i=this.childAt(1),r=this.childAt(2),o=e.hostModel,a=e.getItemModel(n),s=e.getItemLayout(n).label,l=e.getItemVisual(n,"color");t.updateProps(i,{shape:{points:s.linePoints||s.linePoints}},o,n),t.updateProps(r,{style:{x:s.x,y:s.y}},o,n),r.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var u=a.getModel("label"),h=a.getModel("emphasis.label"),c=a.getModel("labelLine"),d=a.getModel("emphasis.labelLine");l=e.getItemVisual(n,"color"),t.setLabelStyle(r.style,r.hoverStyle={},u,h,{labelFetcher:e.hostModel,labelDataIndex:n,defaultText:e.getName(n),autoColor:l,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!c.get("show"),i.hoverIgnore=!d.get("show"),i.setStyle({stroke:l}),i.setStyle(c.getModel("lineStyle").getLineStyle()),i.hoverStyle=d.getModel("lineStyle").getLineStyle()},e.inherits(i,t.Group);var a=n.extend({type:"funnel",render:function(t,e,n){var r=t.getData(),o=this._data,a=this.group;r.diff(o).add(function(t){var e=new i(r,t);r.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var n=o.getItemGraphicEl(e);n.updateData(r,t),a.add(n),r.setItemGraphicEl(t,n)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),s=a;S5=s}();var e=CQ(),n=D5(),i=LQ();t.registerVisual(e("funnel")),t.registerLayout(n),t.registerProcessor(i("funnel"))}(),function(){if(f3)return P5;f3=1;var t=c$();x3(),function(){if(u3)return l3;u3=1;var t=IW(),e=t.each,n=t.createHashMap,i=rq(),r=fK(),o=i.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=this.getSource();return a(n,this),r(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,r){t===e&&i.push(n.getRawIndex(r))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function a(t,i){if(!t.encodeDefine){var r=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(r){var o=t.encodeDefine=n();e(r.dimensions,function(t){var e=s(t);o.set(t,e)})}}}function s(t){return+t.replace("dim","")}l3=o}(),function(){if(c3)return h3;c3=1;var t=FX(),e=sq(),n=.3,i=e.extend({type:"parallel",init:function(){this._dataGroup=new t.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,n,i,u){var h=this._dataGroup,c=e.getData(),d=this._data,p=e.coordinateSystem,f=p.dimensions,g=s(e);function v(t){l(a(c,h,t,f,p),c,t,g)}function m(n,i){var r=d.getItemGraphicEl(i),a=o(c,n,f,p);c.setItemGraphicEl(n,r);var s=u&&!1===u.animation?null:e;t.updateProps(r,{shape:{points:a}},s,n),l(r,c,n,g)}function y(t){var e=d.getItemGraphicEl(t);h.remove(e)}if(c.diff(d).add(v).update(m).remove(y).execute(),!this._initialized){this._initialized=!0;var x=r(p,e,function(){setTimeout(function(){h.removeClipPath()})});h.setClipPath(x)}this._data=c},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,u=s(e),h=t.start;h=0&&(s[a[l].depth]=new i(a[l],this,n));if(o&&r)return e(o,r,this,!0,u).data;function u(t,e){t.wrapMethod("getItemModel",function(t,e){return t.customizeGetParent(function(t){var n=this.parentModel,i=n.getData().getItemLayout(e).depth;return n.levelModels[i]||this.parentModel}),t}),e.wrapMethod("getItemModel",function(t,e){return t.customizeGetParent(function(t){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout().depth;return n.levelModels[i]||this.parentModel}),t})}},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var o=this.getDataParams(t,i),a=o.data,s=a.source+" -- "+a.target;return o.value&&(s+=" : "+o.value),n(s)}if("node"===i){var l=this.getGraph().getNodeByIndex(t).getLayout().value,u=this.getDataParams(t,i).data.name;return l&&(s=u+" : "+l),n(s)}return r.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var n=r.superCall(this,"getDataParams",t,e);if(null==n.value&&"node"===e){var i=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=i}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}});b3=r})(),function(){if(M3)return S3;M3=1;var t=FX(),e=c$(),n=IW(),i=["itemStyle","opacity"],r=["emphasis","itemStyle","opacity"],o=["lineStyle","opacity"],a=["emphasis","lineStyle","opacity"];function s(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function l(t,e,n){var i=t.getGraphicEl(),r=s(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",r)})}function u(t,e){var n=s(t,e),i=t.getGraphicEl();i.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",n)}),i.highlight&&i.highlight()}var h=t.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),c=e.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,n,i){var r=this,o=e.getGraph(),a=this.group,s=e.layoutInfo,l=s.width,u=s.height,c=e.getData(),p=e.getData("edge"),f=e.get("orient");this._model=e,a.removeAll(),a.attr("position",[s.x,s.y]),o.eachEdge(function(n){var i=new h;i.dataIndex=n.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,o,s,c,d,g,v,m,y=n.getModel("lineStyle"),x=y.get("curveness"),_=n.node1.getLayout(),b=n.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=n.node2.getLayout(),I=n.node2.getModel(),T=I.get("localX"),C=I.get("localY"),A=n.getLayout();switch(i.shape.extent=Math.max(1,A.dy),i.shape.orient=f,"vertical"===f?(r=(null!=w?w*l:_.x)+A.sy,o=(null!=S?S*u:_.y)+_.dy,s=(null!=T?T*l:M.x)+A.ty,d=r,g=o*(1-x)+(c=null!=C?C*u:M.y)*x,v=s,m=o*x+c*(1-x)):(r=(null!=w?w*l:_.x)+_.dx,o=(null!=S?S*u:_.y)+A.sy,d=r*(1-x)+(s=null!=T?T*l:M.x)*x,g=o,v=r*x+s*(1-x),m=c=(null!=C?C*u:M.y)+A.ty),i.setShape({x1:r,y1:o,x2:s,y2:c,cpx1:d,cpy1:g,cpx2:v,cpy2:m}),i.setStyle(y.getItemStyle()),i.style.fill){case"source":i.style.fill=n.node1.getVisual("color");break;case"target":i.style.fill=n.node2.getVisual("color")}t.setHoverStyle(i,n.getModel("emphasis.lineStyle").getItemStyle()),a.add(i),p.setItemGraphicEl(n.dataIndex,i)}),o.eachNode(function(n){var i=n.getLayout(),r=n.getModel(),o=r.get("localX"),s=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),p=new t.Rect({shape:{x:null!=o?o*l:i.x,y:null!=s?s*u:i.y,width:i.dx,height:i.dy},style:r.getModel("itemStyle").getItemStyle()}),f=n.getModel("emphasis.itemStyle").getItemStyle();t.setLabelStyle(p.style,f,h,d,{labelFetcher:e,labelDataIndex:n.dataIndex,defaultText:n.id,isRectText:!0}),p.setStyle("fill",n.getVisual("color")),t.setHoverStyle(p,f),a.add(p),c.setItemGraphicEl(n.dataIndex,p),p.dataType="node"}),c.eachItemGraphicEl(function(t,n){var o=c.getItemModel(n);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/u})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))}),p.eachItemGraphicEl(function(t,n){var o=p.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))}),!this._data&&e.get("animation")&&a.setClipPath(d(a.getBoundingRect(),e,function(){a.removeClipPath()})),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,s,h){var c=t.getData(),d=c.graph,p=h.dataIndex,f=c.getItemModel(p),g=h.edgeDataIndex;if(null!=p||null!=g){var v=d.getNodeByIndex(p),m=d.getEdgeByIndex(g);if(d.eachNode(function(t){l(t,i,.1)}),d.eachEdge(function(t){l(t,o,.1)}),v){u(v,r);var y=f.get("focusNodeAdjacency");"outEdges"===y?n.each(v.outEdges,function(t){t.dataIndex<0||(u(t,a),u(t.node2,r))}):"inEdges"===y?n.each(v.inEdges,function(t){t.dataIndex<0||(u(t,a),u(t.node1,r))}):"allEdges"===y&&n.each(v.edges,function(t){t.dataIndex<0||(u(t,a),t.node1!==v&&u(t.node1,r),t.node2!==v&&u(t.node2,r))})}m&&(u(m,a),u(m.node1,r),u(m.node2,r))}},unfocusNodeAdjacency:function(t,e,n,r){var a=t.getGraph();a.eachNode(function(t){l(t,i)}),a.eachEdge(function(t){l(t,o)})}});function d(e,n,i){var r=new t.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return t.initProps(r,{shape:{width:e.width+20}},n,i),r}S3=c}(),function(){if(I3)return P3;I3=1;var t=c$();Y2(),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}();var e=O3(),n=R3();t.registerLayout(e),t.registerVisual(n)}(),function(){if(U3)return Y3;U3=1;var t=c$();(function(){if(z3)return E3;z3=1;var t=IW(),e=rq(),n=X3().seriesModelMixin,i=e.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});t.mixin(i,n,!0),E3=i})(),function(){if(B3)return V3;B3=1;var t=IW(),e=sq(),n=FX(),i=EZ(),r=["itemStyle"],o=["emphasis","itemStyle"],a=e.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add(function(t){if(i.hasValue(t)){var e=l(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?u(s,n,i,t):n=l(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:t.noop}),s=i.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i0?"P":"N",a=i.getVisual("borderColor"+r)||i.getVisual("color"+r),l=n.getModel(o).getItemStyle(s);e.useStyle(l),e.style.fill=null,e.style.stroke=a}var m=l;J3=m}();var e=function(){if(e4)return t4;e4=1;var t=IW();function e(e){e&&t.isArray(e.series)&&t.each(e.series,function(e){t.isObject(e)&&"k"===e.type&&(e.type="candlestick")})}return t4=e}(),n=l4(),i=u4();t.registerPreprocessor(e),t.registerVisual(n),t.registerLayout(i)}(),function(){if(v4)return F4;v4=1;var t=c$();(function(){if(c4)return h4;c4=1;var t=fK(),e=rq(),n=e.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});h4=n})(),function(){if(g4)return f4;g4=1;var t=c$(),e=S$(),n=function(){if(p4)return d4;p4=1;var t=IW(),e=ZK().createSymbol,n=FX().Group,i=qX().parsePercent,r=w$(),o=3;function a(e){return t.isArray(e)||(e=[+e,+e]),e}function s(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}function l(t,e){n.call(this);var i=new r(t,e),o=new n;this.add(i),this.add(o),o.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var u=l.prototype;u.stopEffectAnimation=function(){this.childAt(1).removeAll()},u.startEffectAnimation=function(t){for(var n=t.symbolType,i=t.color,r=this.childAt(1),a=0;a "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}});m4=h})(),function(){if(L4)return D4;L4=1,gW().__DEV__;var t=c$(),e=T2(),n=W4(),i=I2(),r=U4(),o=function(){if(M4)return S4;M4=1;var t=U4(),e=IW(),n=W4(),i=PW();function r(t,e,i){n.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}var o=r.prototype;o.createLine=function(e,n,i){return new t(e,n,i)},o.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,o=1;o=0&&!(r[s]<=e);s--);s=Math.min(s,o-2)}else{for(var s=a;se);s++);s=Math.min(s-1,o-2)}i.lerp(t.position,n[s],n[s+1],(e-r[s])/(r[s+1]-r[s]));var l=n[s+1][0]-n[s][0],u=n[s+1][1]-n[s][1];t.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=e,t.ignore=!1}},e.inherits(r,n);var a=r;return S4=a}(),a=function(){if(T4)return I4;T4=1;var t=FX(),e=GX(),n=iZ(),i=uZ(),r=t.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*i,d=(l+h)/2-(u-s)*i;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var r=this.shape,o=r.segs,a=r.curveness;if(r.polyline)for(var s=0,l=0;l0)for(var h=o[l++],c=o[l++],d=1;d0){var g=(h+p)/2-(c-f)*a,v=(c+f)/2-(p-h)*a;if(i.containStroke(h,c,g,v,p,f))return s}else if(n.containStroke(h,c,p,f))return s;s++}return-1}});function o(){this.group=new t.Group}var a=o.prototype;a.isPersistent=function(){return!this._incremental},a.updateData=function(t){this.group.removeAll();var e=new r({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},a.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new e({silent:!0})),this.group.add(this._incremental)):this._incremental=null},a.incrementalUpdate=function(t,e){var n=new r;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)}))},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var s=o;return I4=s}(),s=Y4(),l=W$().createClipPath,u=t.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get("effect.trailLength"),s=n.getZr(),u="svg"===s.painter.getType();u||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||u||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a&&(u||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var h=t.get("clip",!0)&&l(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=s.reset(t);o.progress&&o.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,s){var l=this._lineDraw,u=this._showEffect(s),h=!!s.get("polyline"),c=s.pipelineContext.large;return l&&u===this._hasEffet&&h===this._isPolyline&&c===this._isLargeDraw||(l&&l.remove(),l=this._lineDraw=c?new a:new e(h?u?o:r:u?n:i),this._hasEffet=u,this._isPolyline=h,this._isLargeDraw=c,this.group.removeAll()),this.group.add(l.group),l},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});D4=u}();var e=Y4(),n=Z4();t.registerLayout(e),t.registerVisual(n)}(),G4||(G4=1,function(){if(N4)return R4;N4=1;var t=rq(),e=fK(),n=zj(),i=t.extend({type:"series.heatmap",getInitialData:function(t,n){return e(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=n.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});R4=i}(),function(){if(B4)return V4;B4=1,gW().__DEV__;var t=c$(),e=FX(),n=X4(),i=IW();function r(t,e,n){var r=t[1]-t[0],o=(e=i.map(e,function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}})).length,a=0;return function(t){for(var i=a;i=0;i--){var r;if((r=e[i].interval)[0]<=t&&t<=r[1]){a=i;break}}return i>=0&&i=e[0]&&t<=e[1]}}function a(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var s=t.extendChartView({type:"heatmap",render:function(t,e,n){var i;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):a(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,n,r,o,a){var s,l,u=t.coordinateSystem;if("cartesian2d"===u.type){var h=u.getAxis("x"),c=u.getAxis("y");s=h.getBandWidth(),l=c.getBandWidth()}for(var d=this.group,p=t.getData(),f="itemStyle",g="emphasis.itemStyle",v="label",m="emphasis.label",y=t.getModel(f).getItemStyle(["color"]),x=t.getModel(g).getItemStyle(),_=t.getModel(v),b=t.getModel(m),w=u.type,S="cartesian2d"===w?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=r;M0?1:a<0?-1:0}function f(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function g(t,n,i,r,a,s,l,u,h,c){var d=h.valueDim,p=h.categoryDim,f=Math.abs(i[p.wh]),g=t.getItemVisual(n,"symbolSize");e.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[p.index]=o(g[p.index],f),g[d.index]=o(g[d.index],r?f:Math.abs(s)),c.symbolSize=g,(c.symbolScale=[g[0]/u,g[1]/u])[d.index]*=(h.isHorizontal?-1:1)*l}function v(t,e,n,i,r){var o=t.get(l)||0;o&&(h.attr({scale:e.slice(),rotation:n}),h.updateTransform(),o/=h.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}function m(t,n,i,r,s,l,u,h,c,d,p,f){var g=p.categoryDim,v=p.valueDim,m=f.pxSign,y=Math.max(n[v.index]+h,0),x=y;if(r){var _=Math.abs(c),b=e.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=o(b,n[v.index]);var S=Math.max(y+2*b,0),M=w?0:2*b,I=a(r),T=I?r:R((_+M)/S);S=y+2*(b=(_-T*y)/2/(w?T:T-1)),M=w?0:2*b,I||"fixed"===r||(T=d?R((Math.abs(d)+M)/S):0),x=T*S-M,f.repeatTimes=T,f.symbolMargin=b}var C=m*(x/2),A=f.pathPosition=[];A[g.index]=i[g.wh]/2,A[v.index]="start"===u?C:"end"===u?c-C:c/2,l&&(A[0]+=l[0],A[1]+=l[1]);var D=f.bundlePosition=[];D[g.index]=i[g.xy],D[v.index]=i[v.xy];var L=f.barRectShape=e.extend({},i);L[v.wh]=m*Math.max(Math.abs(i[v.wh]),Math.abs(A[v.index]+C)),L[g.wh]=i[g.wh];var k=f.clipShape={};k[g.xy]=-i[g.xy],k[g.wh]=p.ecSize[g.wh],k[v.xy]=0,k[v.wh]=i[v.wh]}function y(t){var e=t.symbolPatternSize,n=i(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function x(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(k(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){k(t,function(t){t.trigger("emphasis")})}function v(){k(t,function(t){t.trigger("normal")})}}function _(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;function a(){this.trigger("emphasis")}function s(){this.trigger("normal")}o?P(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=y(n),r.add(o),P(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",a).on("mouseout",s)),T(o,n)}function b(t,i,r){var o=e.extend({},i.barRectShape),a=t.__pictorialBarRect;a?P(a,null,{shape:o},i,r):(a=t.__pictorialBarRect=new n.Rect({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function w(t,i,r,o){if(r.symbolClip){var a=t.__pictorialClipPath,s=e.extend({},r.clipShape),l=i.valueDim,u=r.animationModel,h=r.dataIndex;if(a)n.updateProps(a,{shape:s},u,h);else{s[l.wh]=0,a=new n.Rect({shape:s}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var c={};c[l.wh]=r.clipShape[l.wh],n[o?"updateProps":"initProps"](a,{shape:c},u,h)}}}function S(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=M,n.isAnimationEnabled=I,n}function M(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function I(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function T(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:n.slice()},400,"elasticOut")})}function C(t,e,i,r){var o=new n.Group,a=new n.Group;return o.add(a),o.__pictorialBundle=a,a.attr("position",i.bundlePosition.slice()),i.symbolRepeat?x(o,e,i):_(o,e,i),b(o,i,r),w(o,e,i,r),o.__pictorialShapeStr=L(t,i),o.__pictorialSymbolMeta=i,o}function A(t,e,i){var r=i.animationModel,o=i.dataIndex,a=t.__pictorialBundle;n.updateProps(a,{position:i.bundlePosition.slice()},r,o),i.symbolRepeat?x(t,e,i,!0):_(t,e,i,!0),b(t,i,!0),w(t,e,i,!0)}function D(t,i,r,o){var a=o.__pictorialBarRect;a&&(a.style.text=null);var s=[];k(o,function(t){s.push(t)}),o.__pictorialMainPath&&s.push(o.__pictorialMainPath),o.__pictorialClipPath&&(r=null),e.each(s,function(t){n.updateProps(t,{scale:[0,0]},r,i,function(){o.parent&&o.parent.remove(o)})}),t.setItemGraphicEl(i,null)}function L(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function k(t,n,i){e.each(t.__pictorialBundle.children(),function(e){e!==t.__pictorialBarRect&&n.call(i,e)})}function P(t,e,i,r,o,a){e&&t.attr(e),r.symbolClip&&!o?i&&t.attr(i):i&&n[o?"updateProps":"initProps"](t,i,r.animationModel,r.dataIndex,a)}function O(t,i,r){var o=r.color,a=r.dataIndex,l=r.itemModel,u=l.getModel("itemStyle").getItemStyle(["color"]),h=l.getModel("emphasis.itemStyle").getItemStyle(),c=l.getShallow("cursor");k(t,function(t){t.setColor(o),t.setStyle(e.defaults({fill:o,opacity:r.opacity},u)),n.setHoverStyle(t,h),c&&(t.cursor=c),t.z2=r.z2});var d={},p=i.valueDim.posDesc[+(r.boundingLength>0)],f=t.__pictorialBarRect;s(f.style,d,l,o,i.seriesModel,a,p),n.setHoverStyle(f,d)}function R(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var N=c;K4=N}();var n=BK().layout,i=U$();zJ(),t.registerLayout(e.curry(n,"pictorialBar")),t.registerVisual(i("pictorialBar","roundRect"))}(),function(){if(j6)return o6;j6=1;var t=c$();Q6(),function(){if(F6)return G6;F6=1;var t=rq(),e=aK(),n=nK().getDimensionTypeByAxis,i=rK(),r=IW(),o=PY().groupData,a=sj().encodeHTML,s=IQ(),l=2,u=t.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new s(r.bind(this.getData,this),r.bind(this.getRawData,this))},fixData:function(t){var e=t.length,n={},i=o(t,function(t){return n.hasOwnProperty(t[0])||(n[t[0]]=-1),t[2]}),r=[];i.buckets.each(function(t,e){r.push({name:e,dataList:t})});for(var a=r.length,s=0;so&&(o=u),i.push(u)}for(var h=0;ho&&(o=d)}return a.y0=r,a.max=o,a}return U6=n}(),n=t8(),i=LQ();t.registerLayout(e),t.registerVisual(n),t.registerProcessor(i("themeRiver"))}(),function(){if(h8)return c8;h8=1;var t=c$(),e=IW();(function(){if(n8)return e8;n8=1;var t=IW(),e=rq(),n=S1(),i=HX(),r=U1().wrapTreePathInfo,o=e.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,r){var o={name:e.name,children:e.data};a(o);var s=t.map(e.levels||[],function(t){return new i(t,this,r)},this),l=n.createTree(o,this,u);function u(t){t.wrapMethod("getItemModel",function(t,e){var n=l.getNodeByDataIndex(e),i=s[n.depth];return i&&(t.parentModel=i),t})}return l.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=r(i,this),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function a(e){var n=0;t.each(e.children,function(e){a(e);var i=e.value;t.isArray(i)&&(i=i[0]),n+=i});var i=e.value;t.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),t.isArray(e.value)?e.value[0]=i:e.value=i}e8=o})(),function(){if(a8)return o8;a8=1;var t=IW(),e=sq(),n=function(){if(r8)return i8;r8=1;var t=IW(),e=FX(),n={NONE:"none",ANCESTOR:"ancestor",SELF:"self"},i=2,r=4;function o(t,n,o){e.Group.call(this);var a=new e.Sector({z2:i});a.seriesIndex=n.seriesIndex;var s=new e.Text({z2:r,silent:t.getModel("label").get("silent")});function l(){s.ignore=s.hoverIgnore}function u(){s.ignore=s.normalIgnore}this.add(a),this.add(s),this.updateData(!0,t,"normal",n,o),this.on("emphasis",l).on("normal",u).on("mouseover",l).on("mouseout",u)}var a=o.prototype;a.updateData=function(n,i,r,o,a){this.node=i,i.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=i.dataIndex;var u=i.getModel(),h=i.getLayout(),d=t.extend({},h);d.label=null;var p=l(i,o,a);c(i,o,p);var f,g=u.getModel("itemStyle").getItemStyle();if("normal"===r)f=g;else{var v=u.getModel(r+".itemStyle").getItemStyle();f=t.merge(v,g)}f=t.defaults({lineJoin:"bevel",fill:f.fill||p},f),n?(s.setShape(d),s.shape.r=h.r0,e.updateProps(s,{shape:{r:h.r}},o,i.dataIndex),s.useStyle(f)):"object"==typeof f.fill&&f.fill.type||"object"==typeof s.style.fill&&s.style.fill.type?(e.updateProps(s,{shape:d},o),s.useStyle(f)):e.updateProps(s,{shape:d,style:f},o),this._updateLabel(o,p,r);var m=u.getShallow("cursor");if(m&&s.attr("cursor",m),n){var y=o.getShallow("highlightPolicy");this._initEvents(s,i,o,y)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,e.setHoverStyle(this)},a.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode(function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):h(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==n.NONE&&i.piece.childAt(0).trigger("downplay"))})},a.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,"normal")})},a.onHighlight=function(){this.updateData(!1,this.node,"highlight")},a.onDownplay=function(){this.updateData(!1,this.node,"downplay")},a._updateLabel=function(n,i,r){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===r||"emphasis"===r?a:o.getModel(r+".label"),l=o.getModel("emphasis.label"),u=s.get("formatter")?r:"normal",h=t.retrieve(n.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===T("show")&&(h="");var c=this.node.getLayout(),d=s.get("minAngle");null==d&&(d=a.get("minAngle")),d=d/180*Math.PI;var p=c.endAngle-c.startAngle;null!=d&&Math.abs(p)Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(g=c.r0+_,v>Math.PI/2&&(b="right")):"right"===b&&(g=c.r-_,v>Math.PI/2&&(b="left")):(g=(c.r+c.r0)/2,b="center"),f.attr("style",{text:h,textAlign:b,textVerticalAlign:T("verticalAlign")||"middle",opacity:T("opacity")});var w=g*m+c.cx,S=g*y+c.cy;f.attr("position",[w,S]);var M=T("rotate"),I=0;function T(t){var e=s.get(t);return null==e?a.get(t):e}"radial"===M?(I=-v)<-Math.PI/2&&(I+=Math.PI):"tangential"===M?(I=Math.PI/2-v)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):"number"==typeof M&&(I=M*Math.PI/180),f.attr("rotation",I)},a._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",s).on("highlight",l)},t.inherits(o,e.Group);var s=o;function l(t,e,n){var i=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(i=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(i)return i;if(0===t.depth)return n.option.color[0];var a=n.option.color.length;return o=n.option.color[u(t)%a]}function u(e){for(var n=e;n.depth>1;)n=n.parentNode;var i=e.getAncestors()[0];return t.indexOf(i.children,n)}function h(t,e,i){return i!==n.NONE&&(i===n.SELF?t===e:i===n.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function c(t,e,n){e.getData().setItemVisual(t.dataIndex,"color",n)}return i8=s}(),i=Yq(),r=sj().windowOpen,o="sunburstRootToNode",a=e.extend({type:"sunburst",init:function(){},render:function(e,r,o,a){var s=this;this.seriesModel=e,this.api=o,this.ecModel=r;var l=e.getData(),u=l.tree.root,h=e.getViewRoot(),c=this.group,d=e.get("renderLabelForZeroData"),p=[];h.eachNode(function(t){p.push(t)});var f=this._oldChildren||[];if(m(p,f),_(u,h),a&&a.highlight&&a.highlight.piece){var g=e.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(g)}else if(a&&a.unhighlight){var v=this.virtualPiece;!v&&u.children.length&&(v=u.children[0].piece),v&&v.onNormal()}function m(e,n){function r(t){return t.getId()}function o(t,i){y(null==t?null:e[t],null==i?null:n[i])}0===e.length&&0===n.length||new i(n,e,r,r).add(o).update(o).remove(t.curry(o,null)).execute()}function y(t,i){if(d||!t||t.getValue()||(t=null),t!==u&&i!==u)if(i&&i.piece)t?(i.piece.updateData(!1,t,"normal",e,r),l.setItemGraphicEl(t.dataIndex,i.piece)):x(i);else if(t){var o=new n(t,e,r);c.add(o),l.setItemGraphicEl(t.dataIndex,o)}}function x(t){t&&t.piece&&(c.remove(t.piece),t.piece=null)}function _(t,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,t,"normal",e,r):(s.virtualPiece=new n(t,e,r),c.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var o=function(t){s._rootToNode(i.parentNode)};i.piece._onclickEvent=o,s.virtualPiece.on("click",o)}else s.virtualPiece&&(c.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(i);else if("link"===o){var a=i.getModel(),s=a.get("link");if(s){var l=a.get("target",!0)||"_blank";r(s,l)}}n=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:o,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}}),s=a;o8=s}(),function(){if(s8)return d8;s8=1;var t=c$(),e=U1(),n="sunburstRootToNode";t.registerAction({type:n,update:"updateView"},function(t,i){function r(i,r){var o=e.retrieveTargetInfo(t,[n],i);if(o){var a=i.getViewRoot();a&&(t.direction=e.aboveViewRoot(a,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}i.eachComponent({mainType:"series",subType:"sunburst",query:t},r)});var i="sunburstHighlight";t.registerAction({type:i,update:"updateView"},function(t,n){function r(n,r){var o=e.retrieveTargetInfo(t,[i],n);o&&(t.highlight=o.node)}n.eachComponent({mainType:"series",subType:"sunburst",query:t},r)});var r="sunburstUnhighlight";t.registerAction({type:r,update:"updateView"},function(t,e){function n(e,n){t.unhighlight=!0}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})}();var n=CQ(),i=p8(),r=LQ();t.registerVisual(e.curry(n,"sunburst")),t.registerLayout(e.curry(i,"sunburst")),t.registerProcessor(e.curry(r,"sunburst"))}(),function(){if(M8)return A8;M8=1,gW().__DEV__;var t=IW(),e=FX(),n=b$().getDefaultLabel,i=fK(),r=BK().getLayoutOnAxis,o=Yq(),a=rq(),s=HX(),l=sq(),u=W$().createClipPath,h=function(){if(g8)return f8;g8=1;var t=IW();function e(e,n){return n=n||[0,0],t.map(["x","y"],function(t,i){var r=this.getAxis(t),o=n[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function n(n){var i=n.grid.getRect();return{coordSys:{type:"cartesian2d",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return f8=n}(),c=function(){if(m8)return v8;m8=1;var t=IW();function e(e,n){return n=n||[0,0],t.map([0,1],function(t){var i=n[t],r=e[t]/2,o=[],a=[];return o[t]=i-r,a[t]=i+r,o[1-t]=a[1-t]=n[1-t],Math.abs(this.dataToPoint(o)[t]-this.dataToPoint(a)[t])},this)}function n(n){var i=n.getBoundingRect();return{coordSys:{type:"geo",x:i.x,y:i.y,width:i.width,height:i.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return v8=n}(),d=function(){if(x8)return y8;x8=1;var t=IW();function e(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function n(n){var i=n.getRect();return{coordSys:{type:"singleAxis",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return y8=n}(),p=function(){if(b8)return _8;b8=1;var t=IW();function e(e,n){return t.map(["Radius","Angle"],function(t,i){var r=this["get"+t+"Axis"](),o=n[i],a=e[i]/2,s="dataTo"+t,l="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===t&&(l=l*Math.PI/180),l},this)}function n(n){var i=n.getRadiusAxis(),r=n.getAngleAxis(),o=i.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:o[1],r0:o[0]},api:{coord:t.bind(function(t){var e=i.dataToRadius(t[0]),o=r.dataToAngle(t[1]),a=n.coordToPoint([e,o]);return a.push(e,o*Math.PI/180),a}),size:t.bind(e,n)}}}return _8=n}(),f=function(){if(S8)return w8;function t(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}return S8=1,w8=t}(),g=e.CACHED_LABEL_STYLE_PROPERTIES,v=["itemStyle"],m=["emphasis","itemStyle"],y=["label"],x=["emphasis","label"],_="e\0\0",b={cartesian2d:h,geo:c,singleAxis:d,polar:p,calendar:f};function w(t){var n,i=t.type;if("path"===i){var r=t.shape,o=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=E(r);(n=e.makePath(a,null,o,r.layout||"center")).__customPathData=a}else if("image"===i)(n=new e.Image({})).__customImagePath=t.style.image;else if("text"===i)(n=new e.Text({})).__customText=t.style.text;else if("group"===i)n=new e.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');n=new(e.getShapeClass(i))}return n.__customGraphicType=i,n.name=t.name,n}function S(n,i,r,o,a,s,l){var u={},h=r.style||{};if(r.shape&&(u.shape=t.clone(r.shape)),r.position&&(u.position=r.position.slice()),r.scale&&(u.scale=r.scale.slice()),r.origin&&(u.origin=r.origin.slice()),r.rotation&&(u.rotation=r.rotation),"image"===n.type&&r.style){var c=u.style={};t.each(["x","y","width","height"],function(t){M(t,c,h,n.style,s)})}if("text"===n.type&&r.style&&(c=u.style={},t.each(["x","y"],function(t){M(t,c,h,n.style,s)}),!h.hasOwnProperty("textFill")&&h.fill&&(h.textFill=h.fill),!h.hasOwnProperty("textStroke")&&h.stroke&&(h.textStroke=h.stroke)),"group"!==n.type&&(n.useStyle(h),s)){n.style.opacity=0;var d=h.opacity;null==d&&(d=1),e.initProps(n,{style:{opacity:d}},o,i)}s?n.attr(u):e.updateProps(n,u,o,i),r.hasOwnProperty("z2")&&n.attr("z2",r.z2||0),r.hasOwnProperty("silent")&&n.attr("silent",r.silent),r.hasOwnProperty("invisible")&&n.attr("invisible",r.invisible),r.hasOwnProperty("ignore")&&n.attr("ignore",r.ignore),r.hasOwnProperty("info")&&n.attr("info",r.info);var p=r.styleEmphasis;e.setElementHoverStyle(n,p),l&&e.setAsHighDownDispatcher(n,!1!==p)}function M(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function I(i,o,a,s){var l=i.get("renderItem"),u=i.coordinateSystem,h={};u&&(h=u.prepareCustoms?u.prepareCustoms():b[u.type](u));var c,d,p,f,g,_=t.defaults({getWidth:s.getWidth,getHeight:s.getHeight,getZr:s.getZr,getDevicePixelRatio:s.getDevicePixelRatio,value:I,style:C,styleEmphasis:A,visual:D,barLayout:L,currentSeriesIndices:k,font:P},h.api||{}),w={context:{},seriesId:i.id,seriesName:i.name,seriesIndex:i.seriesIndex,coordSys:h.coordSys,dataInsideLength:o.count(),encode:T(i.getData())},S=!0;return function(e,n){return c=e,S=!0,l&&l(t.defaults({dataIndexInside:e,dataIndex:o.getRawIndex(e),actionType:n?n.type:null},w),_)};function M(t){null==t&&(t=c),S&&(d=o.getItemModel(t),p=d.getModel(y),f=d.getModel(x),g=o.getItemVisual(t,"color"),S=!1)}function I(t,e){return null==e&&(e=c),o.get(o.getDimension(t||0),e)}function C(r,a){null==a&&(a=c),M(a);var s=d.getModel(v).getItemStyle();null!=g&&(s.fill=g);var l=o.getItemVisual(a,"opacity");null!=l&&(s.opacity=l);var u=r?O(r,p):p;return e.setTextStyle(s,u,null,{autoColor:g,isRectText:!0}),s.text=u.getShallow("show")?t.retrieve2(i.getFormattedLabel(a,"normal"),n(o,a)):null,r&&R(s,r),s}function A(r,a){null==a&&(a=c),M(a);var s=d.getModel(m).getItemStyle(),l=r?O(r,f):f;return e.setTextStyle(s,l,null,{isRectText:!0},!0),s.text=l.getShallow("show")?t.retrieve3(i.getFormattedLabel(a,"emphasis"),i.getFormattedLabel(a,"normal"),n(o,a)):null,r&&R(s,r),s}function D(t,e){return null==e&&(e=c),o.getItemVisual(e,t)}function L(e){if(u.getBaseAxis){var n=u.getBaseAxis();return r(t.defaults({axis:n},e),s)}}function k(){return a.getCurrentSeriesIndices()}function P(t){return e.getFont(t,a)}}function T(e){var n={};return t.each(e.dimensions,function(t,i){var r=e.getDimensionInfo(t);if(!r.isExtraCoord){var o=r.coordDim;(n[o]=n[o]||[])[r.coordDimIndex]=i}}),n}function C(t,e,n,i,r,o){return(t=A(t,e,n,i,r,o,!0))&&o.setItemGraphicEl(e,t),t}function A(t,e,n,i,r,o,a){var s=!n,l=(n=n||{}).type,u=n.shape,h=n.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&z(u)&&E(u)!==t.__customPathData||"image"===l&&V(h,"image")&&h.image!==t.__customImagePath||"text"===l&&V(u,"text")&&h.text!==t.__customText)&&(r.remove(t),t=null),!s){var c=!t;return!t&&(t=w(n)),S(t,e,n,i,o,c,a),"group"===l&&D(t,e,n,i,o),r.add(t),t}}function D(t,e,n,i,r){var o=n.children,a=o?o.length:0,s=n.$mergeChildren,l="byName"===s||n.diffChildrenByName,u=!1===s;if(a||l||u)if(l)L({oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,animatableModel:i,group:t,data:r});else{u&&t.removeAll();for(var h=0;he[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function s(t){return t.getRadiusAxis().inverse?0:1}function l(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var u=i.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,n){if(this.group.removeAll(),e.get("show")){var i=e.axis,r=i.polar,a=r.getRadiusAxis().getExtent(),s=i.getTicksCoords(),u=i.getMinorTicksCoords(),h=t.map(i.getViewLabels(),function(e){return(e=t.clone(e)).coord=i.dataToCoord(e.tickValue),e});l(h),l(s),t.each(o,function(t){!e.get(t+".show")||i.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,r,s,u,a,h)},this)}},_axisLine:function(t,n,i,r,o){var a,l=t.getModel("axisLine.lineStyle"),u=s(n),h=u?0:1;(a=0===o[h]?new e.Circle({shape:{cx:n.cx,cy:n.cy,r:o[u]},style:l.getLineStyle(),z2:1,silent:!0}):new e.Ring({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[h]},style:l.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(a)},_axisTick:function(n,i,r,o,l){var u=n.getModel("axisTick"),h=(u.get("inside")?-1:1)*u.get("length"),c=l[s(i)],d=t.map(r,function(t){return new e.Line({shape:a(i,[c,c+h],t.coord)})});this.group.add(e.mergePath(d,{style:t.defaults(u.getModel("lineStyle").getLineStyle(),{stroke:n.get("axisLine.lineStyle.color")})}))},_minorTick:function(n,i,r,o,l){if(o.length){for(var u=n.getModel("axisTick"),h=n.getModel("minorTick"),c=(u.get("inside")?-1:1)*h.get("length"),d=l[s(i)],p=[],f=0;fm?"left":"right",_=Math.abs(v[1]-y)/g<.3?"middle":v[1]>y?"top":"bottom";c&&c[h]&&c[h].textStyle&&(l=new n(c[h].textStyle,d,d.ecModel));var b=new e.Text({silent:r.isLabelSilent(i)});this.group.add(b),e.setTextStyle(b.style,l,{x:v[0],y:v[1],textFill:l.getTextColor()||i.get("axisLine.lineStyle.color"),text:t.formattedLabel,textAlign:x,textVerticalAlign:_}),f&&(b.eventData=r.makeAxisEventDataBase(i),b.eventData.targetType="axisLabel",b.eventData.value=t.rawLabel)},this)},_splitLine:function(n,i,r,o,s){var l=n.getModel("splitLine").getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var c=[],d=0;dx?"left":"right",p=Math.abs(c[1]-_)/y<.3?"middle":c[1]>_?"top":"bottom"}return{position:c,align:d,verticalAlign:p}}var u={line:function(t,e,n,r,o){return"angle"===t.dim?{type:"Line",shape:i.makeLineShape(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r,o){var a=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,r[0],r[1],(-n-a/2)*s,(a/2-n)*s)}:{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};a.registerAxisPointerClass("PolarAxisPointer",s);var h=s;q8=h}(),t.registerLayout(e.curry(n,"bar")),t.extendComponentView({type:"polar"})}(),function(){if(o7)return m7;o7=1;var t=c$(),e=IW();function n(n,i){i.update="updateView",t.registerAction(i,function(t,i){var r={};return i.eachComponent({mainType:"geo",query:t},function(i){i[n](t.name);var o=i.coordinateSystem;e.each(o.regions,function(t){r[t.name]=i.isSelected(t.name)||!1})}),{selected:r,name:t.name}})}(function(){if(n7)return e7;n7=1;var t=IW(),e=PY(),n=uj(),i=HX(),r=MQ(),o=h1(),a=n.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){n.prototype.init.apply(this,arguments),e.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var e=this.option,n=this;e.regions=o.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=t.reduce(e.regions||[],function(t,e){return e.name&&t.set(e.name,new i(e,n)),t},t.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new i(null,this,this.ecModel)},getFormattedLabel:function(t,e){e=e||"normal";var n=this.getRegionModel(t).get(("normal"===e?"":e+".")+"label.formatter"),i={name:t};return"function"==typeof n?(i.status=e,n(i)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});t.mixin(a,r);var s=a;e7=s})(),h1(),function(){if(r7)return i7;r7=1;var t=F0(),e=c$(),n=e.extendComponentView({type:"geo",init:function(e,n){var i=new t(n,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});i7=n}(),l1(),n("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),n("select",{type:"geoSelect",event:"geoselected"}),n("unSelect",{type:"geoUnSelect",event:"geounselected"})}(),Q6(),x3(),d7||(d7=1,function(){if(s7)return a7;s7=1;var t=IW(),e=lj(),n=qX(),i=zj(),r=864e5;function o(t,e,n){this._model=t}function a(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}o.prototype={constructor:o,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=n.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var r=t.getDate();r=r<10?"0"+r:r;var o=t.getDay();return{y:e,m:i,d:r,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+r,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(n,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[r,7]:[7,r];t.each([0,1],function(t){c(a,t)&&(s[o[t]]=a[t]*l[t])});var u={width:i.getWidth(),height:i.getHeight()},h=this._rect=e.getLayoutRect(s,u);function c(t,e){return null!=t[e]&&"auto"!==t[e]}t.each([0,1],function(t){c(a,t)||(a[t]=h[o[t]]/l[t])}),this._sw=a[0],this._sh=a[1]},dataToPoint:function(e,n){t.isArray(e)&&(e=e[0]),null==n&&(n=!0);var i=this.getDateInfo(e),o=this._rangeInfo,a=i.formatedDate;if(n&&!(i.time>=o.start.time&&i.timea.end.time&&e.reverse(),e},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/r)-Math.floor(t[0].time/r)+1,i=new Date(t[0].time),o=i.getDate(),a=t[1].date.getDate();i.setDate(o+n-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-t[1].time)*l>0;)n-=l,i.setDate(s-l);var u=Math.floor((n+t[0].day+6)/7),h=e?1-u:u-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:u,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},o.dimensions=o.prototype.dimensions,o.getDimensionsInfo=o.prototype.getDimensionsInfo,o.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new o(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},i.register("calendar",o);var s=o;a7=s}(),function(){if(u7)return l7;u7=1;var t=IW(),e=uj(),n=lj(),i=n.getLayoutParams,r=n.sizeCalculable,o=n.mergeLayoutParam,a=e.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,r){var o=i(t);a.superApply(this,"init",arguments),s(t,o)},mergeOption:function(t,e){a.superApply(this,"mergeOption",arguments),s(this.option,t)}});function s(e,n){var i=e.cellSize;t.isArray(i)?1===i.length&&(i[1]=i[0]):i=e.cellSize=[i,i];var a=t.map([0,1],function(t){return r(n,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]});o(e,n,{type:"box",ignoreSize:a})}var l=a;l7=l}(),function(){if(c7)return h7;c7=1;var t=c$(),e=IW(),n=FX(),i=sj(),r=qX(),o={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},a={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},s=t.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,i){for(var r=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),s=r.getCellHeight(),l=e.start.time;l<=e.end.time;l=r.getNextNDay(l,1).time){var u=r.dataToRect([l],!1).tl,h=new n.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:o});i.add(h)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,i){var r=new n.Polyline({z2:20,shape:{points:t},style:e});i.add(r)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?i.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=r,o=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return"left"!==i&&"right"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,i,r){var o=t.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),s=o.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,h=(l[0][1]+l[1][1])/2,c="horizontal"===i?0:1,d={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],h],right:[l[c][0],h]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var f=o.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:p},v=this._formatterLabel(f,g),m=new n.Text({z2:30});n.setTextStyle(m.style,o,{text:v}),m.attr(this._yearTextPositionControl(m,d[s],i,s,a)),r.add(m)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,i,r){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),h=a.get("align"),c=[this._tlpoints,this._blpoints];e.isString(s)&&(s=o[s.toUpperCase()]||[]);var d="start"===u?0:1,p="horizontal"===i?0:1;l="start"===u?-l:l;for(var f="center"===h,g=0;g=0;h--)null==a[h]?a.splice(h,1):delete a[h].$action},_flatten:function(t,n,i){e.each(t,function(t){if(t){i&&(t.parentOption=i),n.push(t);var e=t.children;"group"===t.type&&e&&this._flatten(e,n,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function l(t,e,n,r){var o=n.type,s=new(a.hasOwnProperty(o)?a[o]:i.getShapeClass(o))(n);e.add(s),r.set(t,s),s.__ecGraphicId=t}function u(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){u(t,e)}),e.removeKey(t.__ecGraphicId),n.remove(t))}function h(t){return t=e.extend({},t),e.each(["id","parentId","$action","hv","bounding"].concat(r.LOCATION_PARAMS),function(e){delete t[e]}),t}function c(t,n){var i;return e.each(n,function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)}),i}function d(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function p(t,n,i){var o=e.extend({},i),a=t[n],s=i.$action||"merge";"merge"===s?a?(e.merge(a,o,!0),r.mergeLayoutParam(a,o,{ignoreSize:!0}),r.copyLayoutParams(i,a)):t[n]=o:"replace"===s?t[n]=o:"remove"===s&&a&&(t[n]=null)}function f(t,e){t&&(t.hv=e.hv=[c(e,["left","right"]),c(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function g(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}t.extendComponentView({type:"graphic",init:function(t,n){this._elMap=e.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var n=t.useElOptionsToUpdate();if(n){var i=this._elMap,r=this.group;e.each(n,function(e){var n=e.$action,o=e.id,a=i.get(o),s=e.parentId,c=null!=s?i.get(s):r,d=e.style;"text"===e.type&&d&&(e.hv&&e.hv[1]&&(d.textVerticalAlign=d.textBaseline=null),!d.hasOwnProperty("textFill")&&d.fill&&(d.textFill=d.fill),!d.hasOwnProperty("textStroke")&&d.stroke&&(d.textStroke=d.stroke));var p=h(e);n&&"merge"!==n?"replace"===n?(u(a,i),l(o,c,p,i)):"remove"===n&&u(a,i):a?a.attr(p):l(o,c,p,i);var f=i.get(o);f&&(f.__ecGraphicWidthOption=e.width,f.__ecGraphicHeightOption=e.height,g(f,t))})}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,a=this._elMap,s=e.getWidth(),l=e.getHeight(),u=0;u=0;u--){var d;if(h=n[u],d=a.get(h.id)){var p,f=(p=d.parent)===i?{width:s,height:l}:{width:p.__ecGraphicWidth,height:p.__ecGraphicHeight};r.positionElement(d,h,f,null,{hv:h.hv,boundingMode:h.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){u(e,t)}),this._elMap=e.createHashMap()},dispose:function(){this._clear()}})}(),d9||(d9=1,function(){if(v7)return g7;v7=1;var t=c$(),e=IW(),n=_7(),i=t.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){i.superApply(this,"optionUpdated",arguments),e.each(this.option.feature,function(t,i){var r=n.get(i);r&&e.merge(t,r.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),r=i;g7=r}(),function(){if(S7)return w7;S7=1;var t=c$(),e=IW(),n=oY(),i=_7(),r=FX(),o=HX(),a=Yq(),s=O7(),l=t.extendComponentView({type:"toolbox",render:function(t,l,h,c){var d=this.group;if(d.removeAll(),t.get("show")){var p=+t.get("itemSize"),f=t.get("feature")||{},g=this._features||(this._features={}),v=[];e.each(f,function(t,e){v.push(e)}),new a(this._featureNames||[],v).add(m).update(m).remove(e.curry(m,null)).execute(),this._featureNames=v,s.layout(d,t,h),d.add(s.makeBackground(d.getBoundingRect(),t)),d.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=n.getBoundingRect(e,n.makeFont(i)),o=t.position[0]+d.position[0],a=!1;t.position[1]+d.position[1]+p+r.height>h.getHeight()&&(i.textPosition="top",a=!0);var s=a?-5-r.height:p+8;o+r.width/2>h.getWidth()?(i.textPosition=["100%",s],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,s],i.textAlign="left")}})}function m(e,n){var r,a=v[e],s=v[n],d=f[a],p=new o(d,t,t.ecModel);if(c&&null!=c.newTitle&&c.featureName===a&&(d.title=c.newTitle),a&&!s){if(u(a))r={model:p,onclick:p.option.onclick,featureName:a};else{var m=i.get(a);if(!m)return;r=new m(p,l,h)}g[a]=r}else{if(!(r=g[s]))return;r.model=p,r.ecModel=l,r.api=h}a||!s?p.get("show")&&!r.unusable?(y(p,r,a),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},r.render&&r.render(p,l,h,c)):r.remove&&r.remove(l,h):r.dispose&&r.dispose(l,h)}function y(n,i,o){var a=n.getModel("iconStyle"),s=n.getModel("emphasis.iconStyle"),u=i.getIcons?i.getIcons():n.get("icon"),c=n.get("title")||{};if("string"==typeof u){var f=u,g=c;c={},(u={})[o]=f,c[o]=g}var v=n.iconPaths={};e.each(u,function(o,u){var f=r.createIcon(o,{},{x:-p/2,y:-p/2,width:p,height:p});f.setStyle(a.getItemStyle()),f.hoverStyle=s.getItemStyle(),f.setStyle({text:c[u],textAlign:s.get("textAlign"),textBorderRadius:s.get("textBorderRadius"),textPadding:s.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&f.attr("tooltip",e.extend({content:c[u],formatter:g.get("formatter",!0)||function(){return c[u]},formatterParams:{componentType:"toolbox",name:u,title:c[u],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),r.setHoverStyle(f),t.get("showTitle")&&(f.__title=c[u],f.on("mouseover",function(){var e=s.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:s.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:s.get("textBackgroundColor"),textPosition:s.get("textPosition")||n})}).on("mouseout",function(){f.setStyle({textFill:null,textBackgroundColor:null})})),f.trigger(n.get("iconStatus."+u)||"normal"),d.add(f),f.on("click",e.bind(i.onclick,i,l,h,u)),v[u]=f})}},updateView:function(t,n,i,r){e.each(this._features,function(t){t.updateView&&t.updateView(t.model,n,i,r)})},remove:function(t,n){e.each(this._features,function(e){e.remove&&e.remove(t,n)}),this.group.removeAll()},dispose:function(t,n){e.each(this._features,function(e){e.dispose&&e.dispose(t,n)})}});function u(t){return 0===t.indexOf("my")}w7=l}(),function(){if(I7)return M7;I7=1;var t=wW(),e=Tq(),n=_7(),i=e.toolbox.saveAsImage;function r(t){this.model=t}r.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:i.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:i.lang.slice()},r.prototype.unusable=!t.canvasSupported;var o=r.prototype;o.onclick=function(e,n){var i=this.model,r=i.get("name")||e.get("title.0.text")||"echarts",o="svg"===n.getZr().painter.getType()?"svg":i.get("type",!0)||"png",a=n.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!=typeof MouseEvent||t.browser.ie||t.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,r+"."+o)}else{var c=i.get("lang"),d='
';window.open().document.write(d)}else{var p=document.createElement("a");p.download=r+"."+o,p.target="_blank",p.href=a;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});p.dispatchEvent(f)}},n.register("saveAsImage",r);var a=r;M7=a}(),function(){if(C7)return T7;C7=1;var t=c$(),e=IW(),n=Tq(),i=_7(),r=n.toolbox.magicType,o="__ec_magicType_stack__";function a(t){this.model=t}a.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.clone(r.title),option:{},seriesIndex:{}};var s=a.prototype;s.getIcons=function(){var t=this.model,n=t.get("icon"),i={};return e.each(t.get("type"),function(t){n[t]&&(i[t]=n[t])}),i};var l={line:function(t,n,i,r){if("bar"===t)return e.merge({id:n,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.line")||{},!0)},bar:function(t,n,i,r){if("line"===t)return e.merge({id:n,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.bar")||{},!0)},stack:function(t,n,i,r){var a=i.get("stack")===o;if("line"===t||"bar"===t)return r.setIconStatus("stack",a?"normal":"emphasis"),e.merge({id:n,stack:a?"":o},r.get("option.stack")||{},!0)}},u=[["line","bar"],["stack"]];s.onclick=function(t,n,i){var a=this.model,s=a.get("seriesIndex."+i);if(l[i]){var h,c={series:[]},d=function(n){var r=n.subType,o=n.id,s=l[i](r,o,n,a);s&&(e.defaults(s,n.option),c.series.push(s));var u=n.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===i||"bar"===i)){var h=u.getAxesByScale("ordinal")[0];if(h){var d=h.dim+"Axis",p=t.queryComponents({mainType:d,index:n.get(name+"Index"),id:n.get(name+"Id")})[0].componentIndex;c[d]=c[d]||[];for(var f=0;f<=p;f++)c[d][p]=c[d][p]||{};c[d][p].boundaryGap="bar"===i}}};e.each(u,function(t){e.indexOf(t,i)>=0&&e.each(t,function(t){a.setIconStatus(t,"normal")})}),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==s?null:{seriesIndex:s}},d),"stack"===i&&(h=c.series&&c.series[0]&&c.series[0].stack===o?e.merge({stack:r.title.tiled},r.title):e.clone(r.title)),n.dispatchAction({type:"changeMagicType",currentType:i,newOption:c,newTitle:h,featureName:"magicType"})}},t.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),i.register("magicType",a);var h=a;T7=h}(),function(){if(D7)return A7;D7=1;var t=c$(),e=IW(),n=YW(),i=Tq(),r=_7(),o=i.toolbox.dataView,a=new Array(60).join("-"),s="\t";function l(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function u(t){var n=[];return e.each(t,function(t,i){var r=t.categoryAxis,o=t.valueAxis.dim,a=[" "].concat(e.map(t.series,function(t){return t.name})),l=[r.model.getCategories()];e.each(t.series,function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(o),function(t){return t}))});for(var u=[a.join(s)],h=0;h=0)return!0}var f=new RegExp("["+s+"]+","g");function g(t){for(var n=t.split(/\n+/g),i=d(n.shift()).split(f),r=[],o=e.map(i,function(t){return{name:t,data:[]}}),a=0;a1?"emphasis":"normal")}function v(t,e,n,r,o){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var s=new i(f(t.option),e,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(o,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(!!a&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}d._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},a=this.ecModel;this._brushController.updateCovers([]),new i(f(this.model.option),a,{include:["grid"]}).matchOutputRanges(t,a,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(s("x",n,e[0]),s("y",n,e[1])):s({lineX:"x",lineY:"y"}[i],n,e)}}),r.push(a,n),this._dispatchZoomAction(n)}function s(t,e,i){var r=e.getAxis(t),s=r.model,u=l(t,s,a),h=u.findRepresentativeAxisProxy(s).getMinMaxSpan();null==h.minValueSpan&&null==h.maxValueSpan||(i=o(0,i.slice(),r.scale.getExtent(),0,h.minValueSpan,h.maxValueSpan)),u&&(n[u.id]={dataZoomId:u.id,startValue:i[0],endValue:i[1]})}function l(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}},d._dispatchZoomAction=function(t){var n=[];u(t,function(t,i){n.push(e.clone(t))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},s.register("dataZoom",c),t.registerPreprocessor(function(t){if(t){var n=t.dataZoom||(t.dataZoom=[]);e.isArray(n)||(t.dataZoom=n=[n]);var i=t.toolbox;if(i&&(e.isArray(i)&&(i=i[0]),i&&i.feature)){var r=i.feature.dataZoom;o("xAxis",r),o("yAxis",r)}}function o(t,i){if(i){var r=t+"Index",o=i[r];null==o||"all"===o||e.isArray(o)||(o=!1===o||"none"===o?[]:[o]),a(t,function(a,s){if(null==o||"all"===o||-1!==e.indexOf(o,s)){var l={type:"select",$fromToolbox:!0,filterMode:i.filterMode||"filter",id:h+t+s};l[r]=s,n.push(l)}})}}function a(n,i){var r=t[n];e.isArray(r)||(r=r?[r]:[]),u(r,i)}}),l9=c}(),function(){if(c9)return h9;c9=1;var t=c$(),e=z7(),n=Tq(),i=_7(),r=n.toolbox.restore;function o(t){this.model=t}o.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.title};var a=o.prototype;a.onclick=function(t,n,i){e.clear(t),n.dispatchAction({type:"restore",from:this.uid})},i.register("restore",o),t.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),h9=o}()),function(){if(S9)return R9;S9=1;var t=c$();J6(),function(){if(v9)return g9;v9=1;var t=c$(),e=t.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});g9=e}(),function(){if(w9)return b9;w9=1;var t=c$(),e=IW(),n=wW(),i=function(){if(y9)return m9;y9=1;var t=IW(),e=cU(),n=YW(),i=UW(),r=wW(),o=sj(),a=t.each,s=o.toCamelCase,l=["","-webkit-","-moz-","-o-"],u="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function h(e){var n="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+e+"s "+n+",top "+e+"s "+n;return t.map(l,function(t){return t+"transition:"+i}).join(";")}function c(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*n/2)),n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),s=t.get("textShadowBlur")||0,l=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return s&&e.push("text-shadow:"+l+"px "+u+"px "+s+"px "+o),a(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function d(t){var n=[],i=t.get("transitionDuration"),l=t.get("backgroundColor"),u=t.getModel("textStyle"),d=t.get("padding");return i&&n.push(h(i)),l&&(r.canvasSupported?n.push("background-Color:"+l):(n.push("background-Color:#"+e.toHex(l)),n.push("filter:alpha(opacity=70)"))),a(["width","color","radius"],function(e){var i="border-"+e,r=s(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))}),n.push(c(u)),null!=d&&n.push("padding:"+o.normalizeCssArray(d).join("px ")+"px"),n.join(";")+";"}function p(t,e,n,r,o){var a=e&&e.painter;if(n){var s=a&&a.getViewportRoot();s&&i.transformLocalCoord(t,s,document.body,r,o)}else{t[0]=r,t[1]=o;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function f(t,e,i){if(r.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var a=this._zr=e.getZr(),s=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],p(this._styleCoord,a,s,e.getWidth()/2,e.getHeight()/2),s?document.body.appendChild(o):t.appendChild(o),this._container=t,this._show=!1,this._hideTimeout;var l=this;o.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},o.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=a.handler,i=a.painter.getViewportRoot();n.normalizeEvent(i,t,!0),e.dispatch("mousemove",t)}},o.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}f.prototype={constructor:f,_enterable:!0,update:function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText=u+d(t)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._styleCoord;p(n,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var g=f;return m9=g}(),r=function(){if(_9)return x9;_9=1;var t=IW(),e=BZ(),n=FX();function i(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function r(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],i(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}r.prototype={constructor:r,_enterable:!0,update:function(t){t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,i,r){this.el&&this._zr.remove(this.el);for(var o={},a=t,s="{marker",l="|}",u=a.indexOf(s);u>=0;){var h=a.indexOf(l),c=a.substr(u+s.length,h-u-s.length);c.indexOf("sub")>-1?o["marker"+c]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:i[c],textOffset:[3,0]}:o["marker"+c]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:i[c]},u=(a=a.substr(h+1)).indexOf("{marker")}var d=r.getModel("textStyle"),p=d.get("fontSize"),f=r.get("textLineHeight");null==f&&(f=Math.round(3*p/2)),this.el=new e({style:n.setTextStyle({},d,{rich:o,text:t,textBackgroundColor:r.get("backgroundColor"),textBorderRadius:r.get("borderRadius"),textFill:r.get("textStyle.color"),textPadding:r.get("padding"),textLineHeight:f}),z:r.get("z")}),this._zr.add(this.el);var g=this;this.el.on("mouseover",function(){g._enterable&&(clearTimeout(g._hideTimeout),g._show=!0),g._inContent=!0}),this.el.on("mouseout",function(){g._enterable&&g._show&&g.hideLater(g._hideDelay),g._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var n=this._styleCoord;i(n,this._zr,t,e),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var o=r;return x9=o}(),o=sj(),a=qX(),s=FX(),l=S6(),u=lj(),h=HX(),c=k6(),d=FK(),p=K6(),f=PY().getTooltipRenderMode,g=e.bind,v=e.each,m=a.parsePercent,y=new s.Rect({shape:{x:-1,y:-1,width:2,height:2}}),x=t.extendComponentView({type:"tooltip",init:function(t,e){if(!n.node){var o,a=t.getComponent("tooltip"),s=a.get("renderMode");this._renderMode=f(s),"html"===this._renderMode?(o=new i(e.getDom(),e,{appendToBody:a.get("appendToBody",!0)}),this._newLine="
"):(o=new r(e),this._newLine="\n"),this._tooltipContent=o}},render:function(t,e,i){if(!n.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");c.register("itemTooltip",this._api,g(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,i,r){if(r.from!==this.uid&&!n.node){var o=b(r,i);this._ticket="";var a=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var s=y;s.position=[r.x,r.y],s.update(),s.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:s},o)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,r))return;var u=l(r,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,position:r.position,target:u.el},o)}else null!=r.x&&null!=r.y&&(i.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:i.getZr().findHover(r.x,r.y).target},o))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(b(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===(t=_([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,n){var i=t.get("showDelay");n=e.bind(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},_showAxisTooltip:function(t,n){var i=this._ecModel,r=this._tooltipModel,a=[n.offsetX,n.offsetY],s=[],l=[],u=_([n.tooltipOption,r]),h=this._renderMode,c=this._newLine,f={};v(t,function(t){v(t.dataByAxis,function(t){var n=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,a=[];if(n&&null!=r){var u=p.getValueLabel(r,n.axis,i,t.seriesDataIndices,t.valueLabelOpt);e.each(t.seriesDataIndices,function(o){var s=i.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,p=s&&s.getDataParams(c);if(p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=d.getAxisRawValue(n.axis,r),p.axisValueLabel=u,p){l.push(p);var g,v=s.formatTooltip(c,!0,null,h);if(e.isObject(v)){g=v.html;var m=v.markers;e.merge(f,m)}else g=v;a.push(g)}});var g=u;"html"!==h?s.push(a.join(c)):s.push((g?o.encodeHTML(g)+c:"")+a.join(c))}})},this),s.reverse(),s=s.join(this._newLine+this._newLine);var g=n.position;this._showOrMove(u,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,g,a[0],a[1],this._tooltipContent,l):this._showTooltipContent(u,s,l,Math.random(),a[0],a[1],g,void 0,f)})},_showSeriesItemTooltip:function(t,n,i){var r=this._ecModel,o=n.seriesIndex,a=r.getSeriesByIndex(o),s=n.dataModel||a,l=n.dataIndex,u=n.dataType,h=s.getData(u),c=_([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),d=c.get("trigger");if(null==d||"item"===d){var p,f,g=s.getDataParams(l,u),v=s.formatTooltip(l,!1,u,this._renderMode);e.isObject(v)?(p=v.html,f=v.markers):(p=v,f=null);var m="item_"+s.name+"_"+l;this._showOrMove(c,function(){this._showTooltipContent(c,p,g,m,t.offsetX,t.offsetY,t.position,t.target,f)}),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;"string"==typeof i&&(i={content:i,formatter:i});var r=new h(i,this._tooltipModel,this._ecModel),o=r.get("content"),a=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},a,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,a,s,l,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent,c=t.get("formatter");s=s||t.get("position");var d=e;if(c&&"string"==typeof c)d=o.formatTpl(c,n,!0);else if("function"==typeof c){var p=g(function(e,i){e===this._ticket&&(h.setContent(i,u,t),this._updatePosition(t,s,r,a,h,n,l))},this);this._ticket=i,d=c(n,i,p)}h.setContent(d,u,t),h.show(t),this._updatePosition(t,s,r,a,h,n,l)}},_updatePosition:function(t,n,i,r,o,a,s){var l=this._api.getWidth(),h=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),d=t.get("align"),p=t.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"==typeof n&&(n=n([i,r],a,o.el,f,{viewSize:[l,h],contentSize:c.slice()})),e.isArray(n))i=m(n[0],l),r=m(n[1],h);else if(e.isObject(n)){n.width=c[0],n.height=c[1];var g=u.getLayoutRect(n,{width:l,height:h});i=g.x,r=g.y,d=null,p=null}else if("string"==typeof n&&s)i=(v=M(n,f,c))[0],r=v[1];else{var v;i=(v=w(i,r,o,l,h,d?null:20,p?null:20))[0],r=v[1]}d&&(i-=I(d)?c[0]/2:"right"===d?c[0]:0),p&&(r-=I(p)?c[1]/2:"bottom"===p?c[1]:0),t.get("confine")&&(i=(v=S(i,r,o,l,h))[0],r=v[1]),o.moveTo(i,r)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&v(e,function(e,i){var r=e.dataByAxis||{},o=(t[i]||{}).dataByAxis||[];(n&=r.length===o.length)&&v(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&v(r,function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){n.node||(this._tooltipContent.dispose(),c.unregister("itemTooltip",e))}});function _(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(h.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new h(n,e,e.ecModel))}return e}function b(t,n){return t.dispatchAction||e.bind(n.dispatchAction,n)}function w(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function S(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}function M(t,e,n){var i=n[0],r=n[1],o=5,a=0,s=0,l=e.width,u=e.height;switch(t){case"inside":a=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":a=e.x+l/2-i/2,s=e.y-r-o;break;case"bottom":a=e.x+l/2-i/2,s=e.y+u+o;break;case"left":a=e.x-i-o,s=e.y+u/2-r/2;break;case"right":a=e.x+l+o,s=e.y+u/2-r/2}return[a,s]}function I(t){return"center"===t||"middle"===t}b9=x}(),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}(),J6(),function(){if(W9)return N9;W9=1;var t=c$(),e=function(){if(I9)return M9;I9=1;var t=IW(),e=["rect","polygon","keep","clear"];function n(n,r){var o=n&&n.brush;if(t.isArray(o)||(o=o?[o]:[]),o.length){var a=[];t.each(o,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(a=a.concat(e))});var s=n&&n.toolbox;t.isArray(s)&&(s=s[0]),s||(s={feature:{}},n.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),h=u.type||(u.type=[]);h.push.apply(h,a),i(h),r&&!h.length&&h.push.apply(h,e)}}function i(e){var n={};t.each(e,function(t){n[t]=1}),e.length=0,t.each(n,function(t,n){e.push(n)})}return M9=n}();B9(),function(){if(k9)return L9;k9=1,gW().__DEV__;var t=c$(),e=IW(),n=V9(),i=HX(),r=["#ddd"],o=t.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&n.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:r},o.hasOwnProperty("liftZ")||(o.liftZ=5)},setAreas:function(t){t&&(this.areas=e.map(t,function(t){return a(this.option,t)},this))},setBrushOption:function(t){this.brushOption=a(this.option,t),this.brushType=this.brushOption.brushType}});function a(t,n){return e.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new i(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},n,!0)}var s=o;L9=s}(),function(){if(O9)return P9;O9=1;var t=c$(),e=IW(),n=n3(),i=B9().layoutCovers,r=t.extendComponentView({type:"brush",init:function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new n(i.getZr())).on("brush",e.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,o.apply(this,arguments)},updateTransform:function(t,e){return i(e),o.apply(this,arguments)},updateView:o,dispose:function(){this._brushController.dispose()},_onBrush:function(t,n){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:e.clone(t),$from:i}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:e.clone(t),$from:i})}});function o(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}P9=r}(),function(){if(G9)return att;G9=1;var t=c$();t.registerAction({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})}(),function(){if(H9)return F9;H9=1;var t=IW(),e=_7(),n=Tq(),i=n.toolbox.brush;function r(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}r.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.clone(i.title)};var o=r.prototype;o.render=o.updateView=function(e,n,i){var r,o,a;n.eachComponent({mainType:"brush"},function(t){r=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length}),this._brushType=r,this._brushMode=o,t.each(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===r)?"emphasis":"normal")})},o.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return t.each(e.get("type",!0),function(t){n[t]&&(i[t]=n[t])}),i},o.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.register("brush",r),F9=r}(),t.registerPreprocessor(e)}(),function(){if(U9)return stt;U9=1;var t=IW(),e=c$(),n=FX(),i=lj().getLayoutRect,r=sj().windowOpen;e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e.extendComponentView({type:"title",render:function(e,o,a){if(this.group.removeAll(),e.get("show")){var s=this.group,l=e.getModel("textStyle"),u=e.getModel("subtextStyle"),h=e.get("textAlign"),c=t.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),d=new n.Text({style:n.setTextStyle({},l,{text:e.get("text"),textFill:l.getTextColor()},{disableBox:!0}),z2:10}),p=d.getBoundingRect(),f=e.get("subtext"),g=new n.Text({style:n.setTextStyle({},u,{text:f,textFill:u.getTextColor(),y:p.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),m=e.get("sublink"),y=e.get("triggerEvent",!0);d.silent=!v&&!y,g.silent=!m&&!y,v&&d.on("click",function(){r(v,"_"+e.get("target"))}),m&&g.on("click",function(){r(m,"_"+e.get("subtarget"))}),d.eventData=g.eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,s.add(d),f&&s.add(g);var x=s.getBoundingRect(),_=e.getBoxLayoutParams();_.width=x.width,_.height=x.height;var b=i(_,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));h||("middle"===(h=e.get("left")||e.get("right"))&&(h="center"),"right"===h?b.x+=b.width:"center"===h&&(b.x+=b.width/2)),c||("center"===(c=e.get("top")||e.get("bottom"))&&(c="middle"),"bottom"===c?b.y+=b.height:"middle"===c&&(b.y+=b.height/2),c=c||"top"),s.attr("position",[b.x,b.y]);var w={textAlign:h,textVerticalAlign:c};d.setStyle(w),g.setStyle(w),x=s.getBoundingRect();var S=b.margin,M=e.getItemStyle(["color","opacity"]);M.fill=e.get("backgroundColor");var I=new n.Rect({shape:{x:x.x-S[3],y:x.y-S[0],width:x.width+S[1]+S[3],height:x.height+S[0]+S[2],r:e.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});s.add(I)}}})}(),function(){if(ott)return ltt;ott=1;var t=c$(),e=function(){if(Z9)return Y9;Z9=1;var t=IW();function e(e){var i=e&&e.timeline;t.isArray(i)||(i=i?[i]:[]),t.each(i,function(t){t&&n(t)})}function n(e){var n=e.type,o={number:"value",time:"time"};if(o[n]&&(e.axisType=o[n],delete e.type),i(e),r(e,"controlPosition")){var a=e.controlStyle||(e.controlStyle={});r(a,"position")||(a.position=e.controlPosition),"none"!==a.position||r(a,"show")||(a.show=!1,delete a.position),delete e.controlPosition}t.each(e.data||[],function(e){t.isObject(e)&&!t.isArray(e)&&(!r(e,"value")&&r(e,"name")&&(e.value=e.name),i(e))})}function i(e){var n=e.itemStyle||(e.itemStyle={}),i=n.emphasis||(n.emphasis={}),o=e.label||e.label||{},a=o.normal||(o.normal={}),s={normal:1,emphasis:1};t.each(o,function(t,e){s[e]||r(a,e)||(a[e]=t)}),i.label&&!r(o,"emphasis")&&(o.emphasis=i.label,delete i.label)}function r(t,e){return t.hasOwnProperty(e)}return Y9=e}();(function(){if(X9)return utt;X9=1;var t=uj();t.registerSubTypeDefaulter("timeline",function(){return"slider"})})(),function(){if(j9)return htt;j9=1;var t=c$(),e=IW();t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,n){var i=n.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),n.resetOption("timeline"),e.defaults({currentIndex:i.option.currentIndex},t)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)})}(),function(){if(J9)return $9;J9=1;var t=IW(),e=function(){if(K9)return q9;K9=1;var t=IW(),e=uj(),n=rK(),i=PY(),r=e.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){r.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,r=e.data||[],o=e.axisType,a=this._names=[];if("category"===o){var s=[];t.each(r,function(e,n){var r,o=i.getDataItemValue(e);t.isObject(e)?(r=t.clone(e)).value=n:r=n,s.push(r),t.isString(o)||null!=o&&!isNaN(o)||(o=""),a.push(o+"")}),r=s}var l={category:"ordinal",time:"time"}[o]||"number";(this._data=new n([{name:"value",type:l}],this)).initData(r,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),o=r;return q9=o}(),n=Zj(),i=e.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});t.mixin(i,n);var r=i;$9=r}(),function(){if(rtt)return itt;rtt=1;var t=IW(),e=NU(),n=eU(),i=FX(),r=lj(),o=ctt(),a=function(){if(ntt)return ett;ntt=1;var t=IW(),e=u$(),n=function(t,n,i,r){e.call(this,t,n,i),this.type=r||"value",this.model=null};n.prototype={constructor:n,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},t.inherits(n,e);var i=n;return ett=i}(),s=ZK().createSymbol,l=FK(),u=qX(),h=sj().encodeHTML,c=t.bind,d=t.each,p=Math.PI,f=o.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return h(s.scale.getLabel(t))},d(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](r,o,s,t)},this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),r=g(t,e);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:p/2},d="vertical"===i?r.height:r.width,f=t.getModel("controlStyle"),v=f.get("show",!0),m=v?f.get("itemSize"):0,y=v?f.get("itemGap"):0,x=m+y,_=t.get("label.rotate")||0;_=_*p/180;var b=f.get("position",!0),w=v&&f.get("showPlayBtn",!0),S=v&&f.get("showPrevBtn",!0),M=v&&f.get("showNextBtn",!0),I=0,T=d;return"left"===b||"bottom"===b?(w&&(o=[0,0],I+=x),S&&(a=[I,0],I+=x),M&&(s=[T-m,0],T-=x)):(w&&(o=[T-m,0],T-=x),S&&(a=[0,0],I+=x),M&&(s=[T-m,0],T-=x)),l=[I,T],t.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:c[i],labelRotation:_,labelPosOpt:n,labelAlign:t.get("label.align")||u[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||h[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:m,controlGap:y}},_position:function(t,e){var i=this._mainGroup,r=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var a=n.create(),s=o.x,l=o.y+o.height;n.translate(a,a,[-s,-l]),n.rotate(a,a,-p/2),n.translate(a,a,[s,l]),(o=o.clone()).applyTransform(a)}var u=y(o),h=y(i.getBoundingRect()),c=y(r.getBoundingRect()),d=i.position,f=r.position;f[0]=d[0]=u[0][0];var g,v=t.labelPosOpt;function m(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}isNaN(v)?(x(d,h,u,1,g="+"===v?0:1),x(f,c,u,1,1-g)):(x(d,h,u,1,g=v>=0?0:1),f[1]=d[1]+v),i.attr("position",d),r.attr("position",f),i.rotation=r.rotation=t.rotation,m(i),m(r)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=l.createScaleByModel(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return t})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var s=new a("value",r,t.axisExtent,i);return s.model=e,s},_createGroup:function(t){var e=this["_"+t]=new i.Group;return this.group.add(e),e},_renderAxisLine:function(e,n,r,o){var a=r.getExtent();o.get("lineStyle.show")&&n.add(new i.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:t.extend({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,r){var o=r.getData(),a=n.scale.getTicks();d(a,function(t){var a=n.dataToCoord(t),s=o.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),h={position:[a,0],onclick:c(this._changeTimeline,this,t)},d=m(s,l,e,h);i.setHoverStyle(d,u.getItemStyle()),s.get("tooltip")?(d.dataIndex=t,d.dataModel=r):d.dataIndex=d.dataModel=null},this)},_renderAxisLabel:function(t,e,n,r){if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();d(a,function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel("emphasis.label"),h=n.dataToCoord(r.tickValue),d=new i.Text({position:[h,0],rotation:t.labelRotation-t.rotation,onclick:c(this._changeTimeline,this,a),silent:!1});i.setTextStyle(d.style,l,{text:r.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(d),i.setHoverStyle(d,i.setTextStyle({},u))},this)}},_renderControl:function(t,e,n,r){var o=t.controlSize,a=t.rotation,s=r.getModel("controlStyle").getItemStyle(),l=r.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-o/2,o,o],h=r.getPlayState(),d=r.get("inverse",!0);function p(t,n,h,c){if(t){var d=v(r,n,u,{position:t,origin:[o/2,0],rotation:c?-a:0,rectHover:!0,style:s,onclick:h});e.add(d),i.setHoverStyle(d,l)}}p(t.nextBtnPosition,"controlStyle.nextIcon",c(this._changeTimeline,this,d?"-":"+")),p(t.prevBtnPosition,"controlStyle.prevIcon",c(this._changeTimeline,this,d?"+":"-")),p(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),c(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=c(s._handlePointerDrag,s),t.ondragend=c(s._handlePointerDragend,s),y(t,o,n,i,!0)},onUpdate:function(t){y(t,o,n,i)}};this._currentPointer=m(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=u.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&"number"==typeof h&&(h=+h.toFixed(Math.min(m,20))),g.coord[p]=v.coord[p]=h,o=[g,v,{type:l,valueIndex:o.valueIndex,value:h}]}return(o=[i.dataTransform(e,o[0]),i.dataTransform(e,o[1]),t.extend({},o[2])])[2].type=o[2].type||"",t.merge(o[2],o[0]),t.merge(o[2],o[1]),o};function l(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t,o=i.dimensions[t];return l(e[r])&&l(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function h(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(u(1,n,r,t)||u(0,n,r,t)))return!0}return i.dataFilter(t,e[0])&&i.dataFilter(t,e[1])}function c(t,e,i,r,o){var a,s=r.coordinateSystem,u=t.getItemModel(e),h=n.parsePercent(u.get("x"),o.getWidth()),c=n.parsePercent(u.get("y"),o.getHeight());if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,p=t.get(d[0],e),f=t.get(d[1],e);a=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),v=s.getAxis("y");d=s.dimensions,l(t.get(d[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[i?0:1]):l(t.get(d[1],e))&&(a[1]=v.toGlobalCoord(v.getExtent()[i?0:1]))}isNaN(h)||(a[0]=h),isNaN(c)||(a[1]=c)}else a=[h,c];t.setItemLayout(e,a)}var d=o.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each(function(e){c(r,e,!0,t,n),c(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(e,n,i,o){var a=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,new r);this.group.add(h.group);var d=p(a,e,n),f=d.from,g=d.to,v=d.line;n.__from=f,n.__to=g,n.setData(v);var m=n.get("symbol"),y=n.get("symbolSize");function x(t,n,i){var r=t.getItemModel(n);c(t,n,i,e,o),t.setItemVisual(n,{symbolRotate:r.get("symbolRotate"),symbolSize:r.get("symbolSize")||y[i?0:1],symbol:r.get("symbol",!0)||m[i?0:1],color:r.get("itemStyle.color")||l.getVisual("color")})}t.isArray(m)||(m=[m,m]),"number"==typeof y&&(y=[y,y]),d.from.each(function(t){x(f,t,!0),x(g,t,!1)}),v.each(function(t){var e=v.getItemModel(t).get("lineStyle.color");v.setItemVisual(t,{color:e||f.getItemVisual(t,"color")}),v.setItemLayout(t,[f.getItemLayout(t),g.getItemLayout(t)]),v.setItemVisual(t,{fromSymbolRotate:f.getItemVisual(t,"symbolRotate"),fromSymbolSize:f.getItemVisual(t,"symbolSize"),fromSymbol:f.getItemVisual(t,"symbol"),toSymbolRotate:g.getItemVisual(t,"symbolRotate"),toSymbolSize:g.getItemVisual(t,"symbolSize"),toSymbol:g.getItemVisual(t,"symbol")})}),h.updateData(v),d.line.eachItemGraphicEl(function(t,e){t.traverse(function(t){t.dataModel=n})}),h.__keep=!0,h.group.silent=n.get("silent")||e.get("silent")}});function p(n,r,o){var a;a=n?t.map(n&&n.dimensions,function(e){var n=r.getData().getDimensionInfo(r.getData().mapDimension(e))||{};return t.defaults({name:e},n)}):[{name:"value",type:"float"}];var l=new e(a,o),u=new e(a,o),c=new e([],o),d=t.map(o.get("data"),t.curry(s,r,n,o));n&&(d=t.filter(d,t.curry(h,n)));var p=n?i.dimValueGetter:function(t){return t.value};return l.initData(t.map(d,function(t){return t[0]}),null,p),u.initData(t.map(d,function(t){return t[1]}),null,p),c.initData(t.map(d,function(t){return t[2]})),c.hasItemOption=!0,{from:l,to:u,line:c}}Dtt=d}(),t.registerPreprocessor(function(t){t.markLine=t.markLine||{}})}(),function(){if(Ntt)return Btt;Ntt=1;var t=c$();(function(){if(Ott)return Ptt;Ott=1;var t=mtt(),e=t.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});Ptt=e})(),function(){if(Rtt)return Gtt;Rtt=1;var t=IW(),e=cU(),n=rK(),i=qX(),r=FX(),o=Itt(),a=Ttt(),s=function(e,n,i,r){var a=o.dataTransform(e,r[0]),s=o.dataTransform(e,r[1]),l=t.retrieve,u=a.coord,h=s.coord;u[0]=l(u[0],-1/0),u[1]=l(u[1],-1/0),h[0]=l(h[0],1/0),h[1]=l(h[1],1/0);var c=t.mergeAll([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c};function l(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t;return l(e[r])&&l(n[r])}function h(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!u(1,n,i)&&!u(0,n,i))||o.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||o.dataFilter(t,{coord:i,x:e.x1,y:e.y1})}function c(t,e,n,r,o){var a,s=r.coordinateSystem,u=t.getItemModel(e),h=i.parsePercent(u.get(n[0]),o.getWidth()),c=i.parsePercent(u.get(n[1]),o.getHeight());if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(n,e));else{var d=[g=t.get(n[0],e),v=t.get(n[1],e)];s.clampData&&s.clampData(d,d),a=s.dataToPoint(d,!0)}if("cartesian2d"===s.type){var p=s.getAxis("x"),f=s.getAxis("y"),g=t.get(n[0],e),v=t.get(n[1],e);l(g)?a[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):l(v)&&(a[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(h)||(a[0]=h),isNaN(c)||(a[1]=c)}else a=[h,c];return a}var d=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function p(e,i,r){var o,a,l=["x0","y0","x1","y1"];e?(o=t.map(e&&e.dimensions,function(e){var n=i.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return t.defaults({name:e},r)}),a=new n(t.map(l,function(t,e){return{name:t,type:o[e%2].type}}),r)):a=new n(o=[{name:"value",type:"float"}],r);var u=t.map(r.get("data"),t.curry(s,i,e,r));e&&(u=t.filter(u,t.curry(h,e)));var c=e?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return a.initData(u,null,c),a.hasItemOption=!0,a}a.extend({type:"markArea",updateTransform:function(e,n,i){n.eachSeries(function(e){var n=e.markAreaModel;if(n){var r=n.getData();r.each(function(n){var o=t.map(d,function(t){return c(r,n,t,e,i)});r.setItemLayout(n,o),r.getItemGraphicEl(n).setShape("points",o)})}},this)},renderSeries:function(n,i,o,a){var s=n.coordinateSystem,u=n.id,h=n.getData(),f=this.markerGroupMap,g=f.get(u)||f.set(u,{group:new r.Group});this.group.add(g.group),g.__keep=!0;var v=p(s,n,i);i.setData(v),v.each(function(e){var i=t.map(d,function(t){return c(v,e,t,n,a)}),r=!0;t.each(d,function(t){if(r){var n=v.get(t[0],e),i=v.get(t[1],e);(l(n)||s.getAxis("x").containData(n))&&(l(i)||s.getAxis("y").containData(i))&&(r=!1)}}),v.setItemLayout(e,{points:i,allClipped:r}),v.setItemVisual(e,{color:h.getVisual("color")})}),v.diff(g.__data).add(function(t){var e=v.getItemLayout(t);if(!e.allClipped){var n=new r.Polygon({shape:{points:e.points}});v.setItemGraphicEl(t,n),g.group.add(n)}}).update(function(t,e){var n=g.__data.getItemGraphicEl(e),o=v.getItemLayout(t);o.allClipped?n&&g.group.remove(n):(n?r.updateProps(n,{shape:{points:o.points}},i,t):n=new r.Polygon({shape:{points:o.points}}),v.setItemGraphicEl(t,n),g.group.add(n))}).remove(function(t){var e=g.__data.getItemGraphicEl(t);g.group.remove(e)}).execute(),v.eachItemGraphicEl(function(n,o){var a=v.getItemModel(o),s=a.getModel("label"),l=a.getModel("emphasis.label"),u=v.getItemVisual(o,"color");n.useStyle(t.defaults(a.getModel("itemStyle").getItemStyle(),{fill:e.modifyAlpha(u,.4),stroke:u})),n.hoverStyle=a.getModel("emphasis.itemStyle").getItemStyle(),r.setLabelStyle(n.style,n.hoverStyle,s,l,{labelFetcher:i,labelDataIndex:o,defaultText:v.getName(o)||"",isRectText:!0,autoColor:u}),r.setHoverStyle(n,{}),n.dataModel=i}),g.__data=v,g.group.silent=i.get("silent")||n.get("silent")}})}(),t.registerPreprocessor(function(t){t.markArea=t.markArea||{}})}(),ret||(ret=1,net(),function(){if(Ktt)return qtt;Ktt=1;var t=Htt(),e=lj(),n=e.mergeLayoutParam,i=e.getLayoutParams,r=t.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,n,a){var s=i(t);r.superCall(this,"init",t,e,n,a),o(this,t,s)},mergeOption:function(t,e){r.superCall(this,"mergeOption",t,e),o(this,this.option,t)}});function o(t,e,i){var r=[1,1];r[t.getOrient().index]=0,n(e,i,{type:"box",ignoreSize:r})}var a=r;qtt=a}(),function(){if(Jtt)return $tt;Jtt=1;var t=IW(),e=FX(),n=lj(),i=tet(),r=e.Group,o=["width","height"],a=["x","y"],s=i.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){s.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new r),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new r),this._showController},resetInner:function(){s.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(n,i,r,o,a,l,u){var h=this;s.superCall(this,"renderInner",n,i,r,o,a,l,u);var c=this._controllerGroup,d=i.get("pageIconSize",!0);t.isArray(d)||(d=[d,d]),f("pagePrev",0);var p=i.getModel("pageTextStyle");function f(n,r){var a=n+"DataIndex",s=e.createIcon(i.get("pageIcons",!0)[i.getOrient().name][r],{onclick:t.bind(h._pageGo,h,a,i,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=n,c.add(s)}c.add(new e.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),f("pageNext",1)},layoutInner:function(e,i,r,s,l,u){var h=this.getSelectorGroup(),c=e.getOrient().index,d=o[c],p=a[c],f=o[1-c],g=a[1-c];l&&n.box("horizontal",h,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),m=h.getBoundingRect(),y=[-m.x,-m.y],x=t.clone(r);l&&(x[d]=r[d]-m[d]-v);var _=this._layoutContentAndController(e,s,x,c,d,f,g);if(l){if("end"===u)y[c]+=_[d]+v;else{var b=m[d]+v;y[c]-=b,_[p]-=b}_[d]+=m[d]+v,y[1-c]+=_[g]+_[f]/2-m[f]/2,_[f]=Math.max(_[f],m[f]),_[g]=Math.min(_[g],m[g]+y[1-c]),h.attr("position",y)}return _},_layoutContentAndController:function(i,r,o,a,s,l,u){var h=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;n.box(i.get("orient"),h,i.get("itemGap"),a?o.width:null,a?null:o.height),n.box("horizontal",d,i.get("pageButtonItemGap",!0));var p=h.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[s]>o[s],v=[-p.x,-p.y];r||(v[a]=h.position[a]);var m=[0,0],y=[-f.x,-f.y],x=t.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));g&&("end"===i.get("pageButtonPosition",!0)?y[a]+=o[s]-f[s]:m[a]+=f[s]+x),y[1-a]+=p[l]/2-f[l]/2,h.attr("position",v),c.attr("position",m),d.attr("position",y);var _={x:0,y:0};if(_[s]=g?o[s]:p[s],_[l]=Math.max(p[l],f[l]),_[u]=Math.min(0,f[u]+y[1-a]),c.__rectSize=o[s],g){var b={x:0,y:0};b[s]=Math.max(o[s]-f[s]-x,0),b[l]=_[l],c.setClipPath(new e.Rect({shape:b})),c.__rectSize=b[s]}else d.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(i);return null!=w.pageIndex&&e.updateProps(h,{position:w.contentPosition},!!g&&i),this._updatePageInfoView(i,w),_},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(e,n){var i=this._controllerGroup;t.each(["pagePrev","pageNext"],function(t){var r=null!=n[t+"DataIndex"],o=i.childOfName(t);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var r=i.childOfName("pageText"),o=e.get("pageFormatter"),a=n.pageIndex,s=null!=a?a+1:0,l=n.pageCount;r&&o&&r.setStyle("text",t.isString(o)?o.replace("{current}",s).replace("{total}",l):o({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,s=o[r],l=a[r],u=this._findTargetItemIndex(e),h=n.children(),c=h[u],d=h.length,p=d?1:0,f={contentPosition:n.position.slice(),pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[r]=-g.s;for(var v=u+1,m=g,y=g,x=null;v<=d;++v)(!(x=_(h[v]))&&y.e>m.s+i||x&&!b(x,m.s))&&(m=y.i>m.i?y:x)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=m.i),++f.pageCount),y=x;for(v=u-1,m=g,y=g,x=null;v>=-1;--v)(x=_(h[v]))&&b(y,x.s)||!(m.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0;var e,n}}),l=s;$tt=l}(),function(){if(iet)return cet;iet=1;var t=c$();t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}()),net(),_et||(_et=1,pet(),Met()),Met(),pet(),lnt||(lnt=1,nnt(),hnt()),nnt(),hnt(),function(){if(gnt)return vnt;gnt=1,function(){if(dnt)return mnt;dnt=1;var t=wW(),e=PW().applyTransform,n=NU(),i=cU(),r=oY(),o=SY(),a=MY(),s=IY(),l=TY(),u=BZ(),h=EZ(),c=QY(),d=VX(),p=xnt(),f=c.CMD,g=Math.round,v=Math.sqrt,m=Math.abs,y=Math.cos,x=Math.sin,_=Math.max;if(!t.canvasSupported){var b=",",w="progid:DXImageTransform.Microsoft",S=21600,M=S/2,I=1e5,T=1e3,C=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=S+","+S,t.coordorigin="0,0"},A=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},D=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},L=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},k=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},P=function(t,e,n){return(parseFloat(t)||0)*I+(parseFloat(e)||0)*T+n},O=o.parsePercent,R=function(t,e,n){var r=i.parse(e);n=+n,isNaN(n)&&(n=1),r&&(t.color=D(r[0],r[1],r[2]),t.opacity=n*r[3])},N=function(t){var e=i.parse(t);return[D(e[0],e[1],e[2]),e[3]]},E=function(t,n,i){var r=n.fill;if(null!=r)if(r instanceof d){var o,a=0,s=[0,0],l=0,u=1,h=i.getBoundingRect(),c=h.width,p=h.height;if("linear"===r.type){o="gradient";var f=i.transform,g=[r.x*c,r.y*p],v=[r.x2*c,r.y2*p];f&&(e(g,g,f),e(v,v,f));var m=v[0]-g[0],y=v[1]-g[1];(a=180*Math.atan2(m,y)/Math.PI)<0&&(a+=360),a<1e-6&&(a=0)}else{o="gradientradial",g=[r.x*c,r.y*p],f=i.transform;var x=i.scale,b=c,w=p;s=[(g[0]-h.x)/b,(g[1]-h.y)/w],f&&e(g,g,f),b/=x[0]*S,w/=x[1]*S;var M=_(b,w);l=0/M,u=2*r.r/M-l}var I=r.colorStops.slice();I.sort(function(t,e){return t.offset-e.offset});for(var T=I.length,C=[],A=[],D=0;D=2){var P=C[0][0],O=C[1][0],E=C[0][1]*n.opacity,z=C[1][1]*n.opacity;t.type=o,t.method="none",t.focus="100%",t.angle=a,t.color=P,t.color2=O,t.colors=A.join(","),t.opacity=z,t.opacity2=E}"radial"===o&&(t.focusposition=s.join(","))}else R(t,r,n.opacity)},z=function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof d||R(t,e.stroke,e.opacity)},V=function(t,e,n,i){var r="fill"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof d&&k(t,o),o||(o=p.createNode(e)),r?E(o,n,i):z(o,n),L(t,o)):(t[r?"filled":"stroked"]="false",k(t,o))},B=[[],[],[]],G=function(t,n){var i,r,o,a,s,l,u=f.M,h=f.C,c=f.L,d=f.A,p=f.Q,m=[],_=t.data,w=t.len();for(a=0;a.01?W&&(U+=270/S):Math.abs(Y-z)<1e-4?W&&UE?A-=270/S:A+=270/S:W&&Yz?C+=270/S:C-=270/S),m.push(Z,g(((E-V)*O+k)*S-M),b,g(((z-G)*R+P)*S-M),b,g(((E+V)*O+k)*S-M),b,g(((z+G)*R+P)*S-M),b,g((U*O+k)*S-M),b,g((Y*R+P)*S-M),b,g((C*O+k)*S-M),b,g((A*R+P)*S-M)),s=C,l=A;break;case f.R:var X=B[0],j=B[1];X[0]=_[a++],X[1]=_[a++],j[0]=X[0]+_[a++],j[1]=X[1]+_[a++],n&&(e(X,X,n),e(j,j,n)),X[0]=g(X[0]*S-M),j[0]=g(j[0]*S-M),X[1]=g(X[1]*S-M),j[1]=g(j[1]*S-M),m.push(" m ",X[0],b,X[1]," l ",j[0],b,X[1]," l ",j[0],b,j[1]," l ",X[0],b,j[1]);break;case f.Z:m.push(" x ")}if(i>0){m.push(r);for(var q=0;qZ&&(Y=0,U={});var n,i=X.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(Fu){}e={style:i.fontStyle||W,variant:i.fontVariant||W,weight:i.fontWeight||W,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},U[t]=e,Y++}return e};r.$override("measureText",function(t,e){var n=p.doc;H||((H=n.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",p.doc.body.appendChild(H));try{H.style.font=e}catch(i){}return H.innerHTML="",H.appendChild(n.createTextNode(t)),{width:H.offsetWidth}});for(var q=new n,K=function(t,n,i,a){var s=this.style;this.__dirty&&o.normalizeTextStyle(s,!0);var l=s.text;if(null!=l&&(l+=""),l){if(s.rich){var u=r.parseRichText(l,s);l=[];for(var h=0;h{n=t.c}],execute:function(){t({$:E_,B:yx,D:ei,F:yw,G:function(t,e){if("world"===t){var n=xw[e.name];if(n){var i=[n[0],n[1]];e.setCenter(i)}}},H:nb,I:B,J:go,L:Id,N:oe,P:xd,Q:K,T:Td,U:Cd,V:Ey,Y:jv,_:io,a:O,a0:Tw,a2:eo,a3:L,a5:cV,a6:Bz,a7:$R,a8:YB,a9:cE,aa:gw,ab:KG,ac:MB,ad:kG,ae:qT,af:ow,ag:XF,ah:dw,ai:function(){return Lnt||(Lnt=1,function(t){var e=a$();!function(){for(var n in e){if(null==e||!e.hasOwnProperty(n)||"default"===n||"__esModule"===n)return;t[n]=e[n]}}();var n=o$();!function(){for(var e in n){if(null==n||!n.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=n[e]}}(),Tq(),function(){if(AJ)return f$;AJ=1;var t=a$();(function(){if(l$)return s$;l$=1,hW().__DEV__;var t=uK(),e=Qj(),n=e.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});s$=n})(),function(){if(L$)return D$;L$=1,hW().__DEV__;var t=_W(),e=XY().fromPoints,n=y$(),i=m$(),r=M$(),o=EX(),a=CY(),s=C$(),l=s.Polyline,u=s.Polygon,h=nq(),c=S$(),d=c.prepareDataCoordInfo,p=c.getStackedOnPoint,f=V$(),g=f.createGridClipPath,v=f.createPolarClipPath;function m(t,e){if(t.length===e.length){for(var n=0;n=0;s--){var l=i[s].dimension,u=e.dimensions[l],h=e.getDimensionInfo(u);if("x"===(r=h&&h.coordDim)||"y"===r){a=i[s];break}}if(a){var c=n.getAxis(r),d=t.map(a.stops,(function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),p=d.length,f=a.outerColors.slice();p&&d[0].coord>d[p-1].coord&&(d.reverse(),f.reverse());var g=10,v=d[0].coord-g,m=d[p-1].coord+g,y=m-v;if(y<.001)return"transparent";t.each(d,(function(t){t.offset=(t.coord-v)/y})),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var x=new o.LinearGradient(0,0,0,0,d,!0);return x[r]=v,x[r+"2"]=m,x}}}function S(e,n,i){var r=e.get("showAllSymbol"),o="auto"===r;if(!r||o){var a=i.getAxesByScale("ordinal")[0];if(a&&(!o||!M(a,n))){var s=n.mapDimension(a.dim),l={};return t.each(a.getViewLabels(),(function(t){l[t.tickValue]=1})),function(t){return!l.hasOwnProperty(n.get(s,t))}}}}function M(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var o=e.count(),a=Math.max(1,Math.round(o/5)),s=0;sr)return!1;return!0}function I(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=g(t,e,n);if(!n.get("clip",!0)){var o=r.shape,a=Math.max(o.width,o.height);i?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return r}return v(t,e,n)}var T=h.extend({type:"line",init:function(){var t=new o.Group,e=new n;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(e,n,i){var r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.mapArray(a.getItemLayout),h="polar"===r.type,c=this._coordSys,p=this._symbolDraw,f=this._polyline,g=this._polygon,v=this._lineGroup,y=e.get("animation"),M=!l.isEmpty(),T=l.get("origin"),C=_(r,a,d(r,a,T)),A=e.get("showSymbol"),D=A&&!h&&S(e,a,r),L=this._data;L&&L.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),L.setItemGraphicEl(e,null))})),A||p.remove(),o.add(v);var k,P=!h&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(k=r.getArea()).width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r1+=.5)),this._clipShapeForSymbol=k,f&&c.type===r.type&&P===this._step?(M&&!g?g=this._newPolygon(u,C,r,y):g&&!M&&(v.remove(g),g=this._polygon=null),v.setClipPath(I(r,!1,e)),A&&p.updateData(a,{isIgnore:D,clipShape:k}),a.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),m(this._stackedOnPoints,C)&&m(this._points,u)||(y?this._updateAnimation(a,C,r,i,P,T):(P&&(u=b(u,r,P),C=b(C,r,P)),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:C})))):(A&&p.updateData(a,{isIgnore:D,clipShape:k}),P&&(u=b(u,r,P),C=b(C,r,P)),f=this._newPolyline(u,r,y),M&&(g=this._newPolygon(u,C,r,y)),v.setClipPath(I(r,!0,e)));var O=w(a,r)||a.getVisual("color");f.useStyle(t.defaults(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var R=e.get("smooth");if(R=x(e.get("smooth")),f.setShape({smooth:R,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),g){var N=a.getCalculationInfo("stackedOnSeries"),E=0;g.useStyle(t.defaults(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),N&&(E=x(N.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:E,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=a,this._coordSys=r,this._stackedOnPoints=C,this._points=u,this._step=P,this._valueOrigin=T},dispose:function(){},highlight:function(t,e,n,r){var o=t.getData(),s=a.queryDataIndex(o,r);if(!(s instanceof Array)&&null!=s&&s>=0){var l=o.getItemGraphicEl(s);if(!l){var u=o.getItemLayout(s);if(!u)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u[0],u[1]))return;(l=new i(o,s)).position=u,l.setZ(t.get("zlevel"),t.get("z")),l.ignore=isNaN(u[0])||isNaN(u[1]),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else h.prototype.highlight.call(this,t,e,n,r)},downplay:function(t,e,n,i){var r=t.getData(),o=a.queryDataIndex(r,i);if(null!=o&&o>=0){var s=r.getItemGraphicEl(o);s&&(s.__temp?(r.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else h.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new l({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new u({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,a,s){var l=this._polyline,u=this._polygon,h=t.hostModel,c=r(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,s),d=c.current,p=c.stackedOnCurrent,f=c.next,g=c.stackedOnNext;if(a&&(d=b(c.current,n,a),p=b(c.stackedOnCurrent,n,a),f=b(c.next,n,a),g=b(c.stackedOnNext,n,a)),y(d,f)>3e3||u&&y(p,g)>3e3)return l.setShape({points:f}),void(u&&u.setShape({points:f,stackedOnPoints:g}));l.shape.__points=c.current,l.shape.points=d,o.updateProps(l,{shape:{points:f}},h),u&&(u.setShape({points:d,stackedOnPoints:p}),o.updateProps(u,{shape:{points:f,stackedOnPoints:g}},h));for(var v=[],m=c.status,x=0;xt&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});NJ=e}(),function(){if(YJ)return UJ;YJ=1,hW().__DEV__;var t=a$(),e=_W(),n=EX(),i=jJ().setLabel,r=zX(),o=qJ(),a=kZ(),s=kU(),l=xq().throttle,u=V$().createClipPath,h=function(){if(WJ)return HJ;WJ=1;var t=EX().extendShape,e=t({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=Math.cos(l),d=Math.sin(l),p=Math.cos(u),f=Math.sin(u);(h?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(c*r+n,d*r+i),t.arc(c*s+n,d*s+i,a,-Math.PI+l,l,!h)),t.arc(n,i,o,l,u,!h),t.moveTo(p*o+n,f*o+i),t.arc(p*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&(t.arc(n,i,r,u,l,h),t.moveTo(c*r+n,f*r+i)),t.closePath()}});return HJ=e}(),c=["itemStyle","barBorderWidth"],d=[0,0];function p(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}e.extend(r.prototype,o);var f=t.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var r,o=this.group,a=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis();"cartesian2d"===u.type?r=h.isHorizontal():"polar"===u.type&&(r="angle"===h.dim);var c=t.isAnimationEnabled()?t:null,d=t.get("clip",!0),f=p(u,a);o.removeClipPath();var g=t.get("roundCap",!0),v=t.get("showBackground",!0),w=t.getModel("backgroundStyle"),M=w.get("barBorderRadius")||0,I=[],T=this._backgroundEls||[],C=function(t){var e=b[u.type](a,t),n=P(u,r,e);return n.useStyle(w.getBarItemStyle()),"cartesian2d"===u.type&&n.setShape("r",M),I[t]=n,n};a.diff(l).add((function(e){var n=a.getItemModel(e),i=b[u.type](a,e,n);if(v&&C(e),a.hasValue(e)){if(d&&m[u.type](f,i))return void o.remove(s);var s=y[u.type](e,i,r,c,!1,g);a.setItemGraphicEl(e,s),o.add(s),S(s,a,e,n,i,t,r,"polar"===u.type)}})).update((function(e,i){var s=a.getItemModel(e),h=b[u.type](a,e,s);if(v){var p;0===T.length?p=C(i):((p=T[i]).useStyle(w.getBarItemStyle()),"cartesian2d"===u.type&&p.setShape("r",M),I[e]=p);var x=b[u.type](a,e),_=k(r,x,u);n.updateProps(p,{shape:_},c,e)}var A=l.getItemGraphicEl(i);if(a.hasValue(e)){if(d&&m[u.type](f,h))return void o.remove(A);A?n.updateProps(A,{shape:h},c,e):A=y[u.type](e,h,r,c,!0,g),a.setItemGraphicEl(e,A),o.add(A),S(A,a,e,s,h,t,r,"polar"===u.type)}else o.remove(A)})).remove((function(t){var e=l.getItemGraphicEl(t);"cartesian2d"===u.type?e&&x(t,c,e):e&&_(t,c,e)})).execute();var A=this._backgroundGroup||(this._backgroundGroup=new s);A.removeAll();for(var D=0;D0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function w(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function S(t,r,o,a,s,l,u,h){var c=r.getItemVisual(o,"color"),d=r.getItemVisual(o,"opacity"),p=r.getVisual("borderColor"),f=a.getModel("itemStyle"),g=a.getModel("emphasis.itemStyle").getBarItemStyle();h||t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(e.defaults({stroke:w(s)?"none":p,fill:w(s)?"none":c,opacity:d},f.getBarItemStyle()));var v=a.getShallow("cursor");v&&t.attr("cursor",v);var m=u?s.height>0?"bottom":"top":s.width>0?"left":"right";h||i(t.style,g,a,c,l,o,m),w(s)&&(g.fill=g.stroke="none"),n.setHoverStyle(t,g)}function M(t,e){var n=t.get(c)||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,r)}var I=a.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o=0?n:null}),30,!1);function A(t,e,n){var i=t.__baseDimIdx,r=1-i,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];d[0]=e,d[1]=n;for(var u=d[i],h=d[1-i],c=u-s,p=u+s,f=0,g=o.length/2;f=c&&m<=p&&(l<=y?h>=l&&h<=y:h>=y&&h<=l))return a[f]}return-1}function D(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function L(t,e,n){var i=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function k(t,e,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}function P(t,e,i){return new("polar"===t.type?n.Sector:n.Rect)({shape:k(e,i,t),silent:!0,z2:0})}UJ=f}(),PJ(),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,e.curry(i,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,r),t.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})}(),function(){if(vQ)return mQ;vQ=1;var t=a$(),e=_W();(function(){if(iQ)return nQ;iQ=1;var t=a$(),e=yQ(),n=_W(),i=CY(),r=UX().getPercentWithPrecision,o=xQ(),a=Gj().retrieveRawAttr,s=Dj().makeSeriesEncodeForNameBased,l=_Q(),u=t.extendSeriesModel({type:"series.pie",init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(n.bind(this.getData,this),n.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){u.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,i){return e(this,{coordDimensions:["value"],encodeDefaulter:n.curry(s,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,r=t.count();i0&&(c?"scale"!==d:"transition"!==p)){for(var v=s.getItemLayout(0),m=1;isNaN(v.startAngle)&&m=n.r0}}}),l=s;rQ=l}();var n=bQ(),i=wQ(),r=MQ(),o=IQ();n("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),t.registerVisual(i("pie")),t.registerLayout(e.curry(r,"pie")),t.registerProcessor(o("pie"))}(),function(){if(kQ)return KQ;kQ=1;var t=a$();(function(){if(CQ)return TQ;CQ=1;var t=uK(),e=Qj(),n=e.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});TQ=n})(),function(){if(LQ)return $Q;LQ=1;var t=a$(),e=y$(),n=function(){if(DQ)return AQ;DQ=1;var t=EX(),e=FK().createSymbol,n=NX(),i=4,r=t.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,e){var n=e.points,r=e.size,o=this.symbolProxy,a=o.shape;if(!((t.getContext?t.getContext():t)&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1}});function o(){this.group=new t.Group}var a=o.prototype;a.isPersistent=function(){return!this._incremental},a.updateData=function(t,e){this.group.removeAll();var n=new r({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},a.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)}))}},a.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new n({silent:!0})),this.group.add(this._incremental)):this._incremental=null},a.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new r,this._incremental.addDisplayable(i,!0)):((i=new r({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental,n)},a._setCommon=function(t,n,r,o){var a=n.hostModel;o=o||{};var s=n.getVisual("symbolSize");t.setShape("size",s instanceof Array?s:[s,s]),t.softClipShape=o.clipShape||null,t.symbolProxy=e(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var l=t.shape.size[0]=0&&(t.dataIndex=n+(t.startIndex||0))})))},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var s=o;return AQ=s}(),i=G$();t.extendChartView({type:"scatter",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=i().reset(t);o.progress&&o.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_getClipShape:function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},_updateSymbolDraw:function(t,i){var r=this._symbolDraw,o=i.pipelineContext.large;return r&&o===this._isLargeDraw||(r&&r.remove(),r=this._symbolDraw=o?new n:new e,this._isLargeDraw=o,this.group.removeAll()),this.group.add(r.group),r},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})}();var e=B$(),n=G$();PJ(),t.registerVisual(e("scatter","circle")),t.registerLayout(n("scatter"))}(),function(){if(qQ)return JQ;qQ=1;var t=a$();GQ||(GQ=1,function(){if(NQ)return RQ;NQ=1;var t=_W(),e=function(){if(OQ)return PQ;OQ=1;var t=_W(),e=r$();function n(t,n,i){e.call(this,t,n,i),this.type="value",this.angle=0,this.name="",this.model}t.inherits(n,e);var i=n;return PQ=i}(),n=MK(),i=UX(),r=EK(),o=r.getScaleExtent,a=r.niceScaleExtent,s=Pj(),l=NK();function u(i,r,o){this._model=i,this.dimensions=[],this._indicatorAxes=t.map(i.getIndicatorModels(),(function(t,i){var r="indicator_"+i,o=new e(r,"log"===t.get("axisType")?new l:new n);return o.name=t.get("name"),o.model=t,t.axis=o,this.dimensions.push(r),o}),this),this.resize(i,o),this.cx,this.cy,this.r,this.r0,this.startAngle}u.prototype.getIndicatorAxes=function(){return this._indicatorAxes},u.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},u.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},u.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;ln[0]&&isFinite(f)&&isFinite(n[0]));else{s.getTicks().length-1>l&&(d=u(d));var p=Math.ceil(n[1]/d)*d,f=i.round(p-d*l);s.setExtent(f,p),s.setInterval(d)}}))},u.dimensions=[],u.create=function(t,e){var n=[];return t.eachComponent("radar",(function(i){var r=new u(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},s.register("radar",u);var h=u;RQ=h}(),function(){if(zQ)return EQ;zQ=1;var t=a$(),e=_W(),n=aJ(),i=zX(),r=zK(),o=n.valueAxis;function a(t,n){return e.defaults({show:n},t)}var s=t.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),o=this.get("scale"),a=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),h=this.get("name"),c=this.get("name.show"),d=this.get("name.formatter"),p=this.get("nameGap"),f=this.get("triggerEvent"),g=e.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var v=h;if(null!=g.color&&(v=e.defaults({color:g.color},h)),g=e.merge(e.clone(g),{boundaryGap:t,splitNumber:n,scale:o,axisLine:a,axisTick:s,axisType:l,axisLabel:u,name:g.text,nameLocation:"end",nameGap:p,nameTextStyle:v,triggerEvent:f},!1),c||(g.name=""),"string"==typeof d){var m=g.name;g.name=d.replace("{value}",null!=m?m:"")}else"function"==typeof d&&(g.name=d(g.name,g));var y=e.extend(new i(g,null,this.ecModel),r);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:e.merge({lineStyle:{color:"#bbb"}},o.axisLine),axisLabel:a(o.axisLabel,!1),axisTick:a(o.axisTick,!1),axisType:"interval",splitLine:a(o.splitLine,!0),splitArea:a(o.splitArea,!0),indicator:[]}}),l=s;EQ=l}(),function(){if(BQ)return VQ;BQ=1,hW().__DEV__;var t=a$(),e=_W(),n=fJ(),i=EX(),r=["axisLine","axisTickLabel","axisName"],o=t.extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),a=e.map(o,(function(t){return new n(t.model,{position:[i.cx,i.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));e.each(a,(function(t){e.each(r,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var n=t.coordinateSystem,r=n.getIndicatorAxes();if(r.length){var o=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),d=l.get("color"),p=u.get("color");d=e.isArray(d)?d:[d],p=e.isArray(p)?p:[p];var f=[],g=[];if("circle"===o)for(var v=r[0].getTicksCoords(),m=n.cx,y=n.cy,x=0;x":"\n";return i(""===l?this.name:l)+u+n.map(s,(function(e,n){var r=a.get(a.mapDimension(e.dim),t);return i(e.name+" : "+r)})).join(u)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,r=e.getValues(n.map(i.dimensions,(function(t){return e.mapDimension(t)})),t,!0),o=0,a=r.length;o":"\n";return h.join(", ")+f+r(l+" : "+s)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});t.mixin(h,a);var c=h;f0=c})(),function(){if(O0)return P0;O0=1;var t=a$(),e=_W(),n=EX(),i=E0(),r="__seriesMapHighDown",o="__seriesMapCallKey",a=t.extendChartView({type:"map",render:function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(a=this._mapDraw)&&o.add(a.group);else if(t.needsDrawMap){var a=this._mapDraw||new i(n,!0);o.add(a.group),a.draw(t,e,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,i,a){var u=t.originalData,h=this.group;u.each(u.mapDimension("value"),(function(i,a){if(!isNaN(i)){var c=u.getItemLayout(a);if(c&&c.point){var d=c.point,p=c.offset,f=new n.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*p,cy:d[1],r:3},silent:!0,z2:8+(p?0:n.Z2_EMPHASIS_LIFT+1)});if(!p){var g=t.mainSeries.getData(),v=u.getName(a),m=g.indexOfName(v),y=u.getItemModel(a),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(m),w=e.retrieve2(t.getFormattedLabel(m,"normal"),v),S=e.retrieve2(t.getFormattedLabel(m,"emphasis"),w),M=b[r],I=Math.random();if(!M){M=b[r]={};var T=e.curry(s,!0),C=e.curry(s,!1);b.on("mouseover",T).on("mouseout",C).on("emphasis",T).on("normal",C)}b[o]=I,e.extend(M,{recordVersion:I,circle:f,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),l(M,!1)}h.add(f)}}}))}});function s(t){var e=this[r];e&&e.recordVersion===this[o]&&l(e,t)}function l(t,e){var i=t.circle,r=t.labelModel,o=t.hoverLabelModel,a=t.emphasisText,s=t.normalText;e?(i.style.extendFrom(n.setTextStyle({},o,{text:o.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=n.Z2_EMPHASIS_LIFT):(n.setTextStyle(i.style,r,{text:r.get("show")?s:null,textPosition:r.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}P0=a}(),i1(),o1();var e=a1(),n=s1(),i=l1(),r=u1(),o=bQ();t.registerLayout(e),t.registerVisual(n),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,i),t.registerPreprocessor(r),o("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])}(),function(){if(A1)return v1;A1=1;var t=a$();(function(){if(g1)return f1;g1=1;var t=Qj(),e=y1(),n=nj().encodeHTML,i=zX(),r=t.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var n={name:t.name,children:t.data},r=t.leaves||{},o=new i(r,this,this.ecModel),a=e.createTree(n,this,s);function s(t){t.wrapMethod("getItemModel",(function(t,e){var n=a.getNodeByDataIndex(e);return n.children.length&&n.isExpand||(t.parentModel=o),t}))}var l=0;a.eachNode("preorder",(function(t){t.depth>l&&(l=t.depth)}));var u=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return a.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=u})),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],r=e.getNodeByDataIndex(t),o=r.getValue(),a=r.name;r&&r!==i;)a=r.parentNode.name+"."+a,r=r.parentNode;return n(a+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});f1=r})(),function(){if(b1)return _1;b1=1;var t=_W(),e=EX(),n=m$(),i=S1().radialCoordinate,r=a$(),o=XY(),a=r1(),s=A0(),l=I0(),u=N0().onIrrelevantElement;hW().__DEV__;var h=UX().parsePercent,c=e.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=h(e.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(d[0],d[1]),t.moveTo(o[0],o[1]),d[l]=o[l],t.lineTo(d[0],d[1]),d[l]=a[l],t.lineTo(d[0],d[1]),t.lineTo(a[0],a[1]);for(var p=1;pS.x)||(_-=Math.PI);var T=b?"left":"right",C=s.labelModel.get("rotate"),A=C*(Math.PI/180);x.setStyle({textPosition:s.labelModel.get("position")||T,textRotation:null==C?-_:A,textOrigin:"center",verticalAlign:"middle"})}v(a,u,c,r,m,g,y,o,s)}function v(n,i,r,o,a,s,l,u,h){var d=h.edgeShape,p=o.__edge;if("curve"===d)i.parentNode&&i.parentNode!==r&&(p||(p=o.__edge=new e.BezierCurve({shape:y(h,a,a),style:t.defaults({opacity:0,strokeNoScale:!0},h.lineStyle)})),e.updateProps(p,{shape:y(h,s,l),style:t.defaults({opacity:1},h.lineStyle)},n));else if("polyline"===d&&"orthogonal"===h.layout&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var f=i.children,g=[],v=0;v=0;m--){var y=v[m],x=y.node,_=y.width,b=y.text;g>f.width&&(g-=_-d,_=d,b=null);var w=new t.Polygon({shape:{points:l(c,0,_,p,m===v.length-1,0===m)},style:n.defaults(a.getItemStyle(),{lineJoin:"bevel",text:b,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:n.curry(h,x)});this.group.add(w),u(w,i,x),c+=_+o}},remove:function(){this.group.removeAll()}};var h=s;return N1=h}(),a=I0(),s=LU(),l=KW(),u=function(){if(G1)return $1;G1=1;var t=_W();function e(){var e,n=[],i={};return{add:function(e,r,o,a,s){return t.isString(a)&&(s=a,a=0),!i[e.id]&&(i[e.id]=1,n.push({el:e,target:r,time:o,delay:a,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var t=n.length,r=0,o=n.length;rv||Math.abs(t.dy)>v)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new s(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var u=l.create();l.translate(u,u,[-e,-n]),l.scale(u,u,[t.scale,t.scale]),l.translate(u,u,[e,n]),o.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&c(o,a)}}}}}),this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(r.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new o(this.group))).render(t,e,n.node,d(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=C(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n}});function C(){return{nodeGroup:[],background:[],content:[]}}function A(t,i,r,o,a,s,l,u,h,c){if(l){var d=l.getLayout(),g=t.getData();if(g.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var v=d.width,b=d.height,T=d.borderWidth,C=d.invisible,A=l.getRawIndex(),L=u&&u.getRawIndex(),k=l.viewChildren,P=d.upperHeight,O=k&&k.length,R=l.getModel("itemStyle"),N=l.getModel("emphasis.itemStyle"),E=Y("nodeGroup",p);if(E){if(h.add(E),E.attr("position",[d.x||0,d.y||0]),E.__tmNodeWidth=v,E.__tmNodeHeight=b,d.isAboveViewRoot)return E;var z=l.getModel(),V=Y("background",f,c,w);if(V&&G(E,V,O&&d.upperLabelHeight),O)n.isHighDownDispatcher(E)&&n.setAsHighDownDispatcher(E,!1),V&&(n.setAsHighDownDispatcher(V,!0),g.setItemGraphicEl(l.dataIndex,V));else{var B=Y("content",f,c,S);B&&F(E,B),V&&n.isHighDownDispatcher(V)&&n.setAsHighDownDispatcher(V,!1),n.setAsHighDownDispatcher(E,!0),g.setItemGraphicEl(l.dataIndex,E)}return E}}}function G(e,i,r){if(i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:v,height:b}),C)H(i);else{i.invisible=!1;var o=l.getVisual("borderColor",!0),a=N.get("borderColor"),s=I(R);s.fill=o;var u=M(N);if(u.fill=a,r){var h=v-2*T;W(s,u,o,h,P,{x:T,y:0,width:h,height:P})}else s.text=u.text=null;i.setStyle(s),n.setElementHoverStyle(i,u)}e.add(i)}function F(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(v-2*T,0),o=Math.max(b-2*T,0);if(i.culling=!0,i.setShape({x:T,y:T,width:r,height:o}),C)H(i);else{i.invisible=!1;var a=l.getVisual("color",!0),s=I(R);s.fill=a;var u=M(N);W(s,u,a,r,o),i.setStyle(s),n.setElementHoverStyle(i,u)}e.add(i)}function H(t){!t.invisible&&s.push(t)}function W(i,r,o,a,s,u){var h=z.get("name"),c=z.getModel(u?x:m),p=z.getModel(u?_:y),f=c.getShallow("show");n.setLabelStyle(i,r,c,p,{defaultText:f?h:null,autoColor:o,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),U(i,u,d),U(r,u,d),u&&(i.textRect=e.clone(u)),i.truncate=f&&c.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function U(e,n,i){var r=e.text;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function Y(t,e,n,o){var s=null!=L&&r[t][L],l=a[t];return s?(r[t][L]=null,Z(l,s,t)):C||((s=new e({z:D(n,o)})).__tmDepth=n,s.__tmStorageName=t,X(l,s,t)),i[t][A]=s}function Z(t,n,i){(t[A]={}).old="nodeGroup"===i?n.position.slice():e.extend({},n.shape)}function X(t,e,n){var i=t[A]={},r=l.parentNode;if(r&&(!o||"drillDown"===o.direction)){var s=0,u=0,h=a.background[r.getRawIndex()];!o&&h&&h.old&&(s=h.old.width,u=h.old.height),i.old="nodeGroup"===n?[0,u]:{x:s,y:u,width:0,height:0}}i.fadein="nodeGroup"!==n}}function D(t,e){var n=t*b+e;return(n-1)/n}F1=T}(),function(){if(W1)return J1;W1=1;for(var t=a$(),e=B1(),n=function(){},i=["treemapZoomToNode","treemapRender","treemapMove"],r=0;r ")),r.value&&(u+=" : "+o(r.value)),u}return c.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=n.map(this.option.categories||[],(function(t){return null!=t.value?t:n.extend({value:0},t)})),i=new e(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray((function(t){return i.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return c.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}});u2=c})(),function(){if(T2)return I2;T2=1;var t=a$(),e=_W(),n=y$(),i=b2(),r=I0(),o=A0(),a=N0().onIrrelevantElement,s=EX(),l=D2(),u=A2().getNodeGlobalScale,h="__focusNodeAdjacency",c="__unfocusNodeAdjacency",d=["itemStyle","opacity"],p=["lineStyle","opacity"];function f(t,e){var n=t.getVisual("opacity");return null!=n?n:t.getModel().get(e)}function g(t,e,n){var i=t.getGraphicEl(),r=f(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==n||(e=r),t.setStyle("opacity",e)}}))}function v(t,e){var n=f(t,e),i=t.getGraphicEl();i.traverse((function(t){!t.isGroup&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var m=t.extendChartView({type:"graph",init:function(t,e){var o=new n,a=new i,s=this.group;this._controller=new r(e.getZr()),this._controllerHost={target:s},s.add(o.group),s.add(a.group),this._symbolDraw=o,this._lineDraw=a,this._firstRender=!0},render:function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,d=this.group;if("view"===r.type){var p={position:r.position,scale:r.scale};this._firstRender?d.attr(p):s.updateProps(d,p,t)}l(t.getGraph(),u(t));var f=t.getData();o.updateData(f);var g=t.getEdgeData();a.updateData(g),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var v=t.forceLayout,m=t.get("force.layoutAnimation");v&&this._startForceLayoutIteration(v,m),f.eachItemGraphicEl((function(e,r){var o=f.getItemModel(r);e.off("drag").off("dragend");var a=o.get("draggable");a&&e.on("drag",(function(){v&&(v.warmUp(),!this._layouting&&this._startForceLayoutIteration(v,m),v.setFixed(r),f.setItemLayout(r,e.position))}),this).on("dragend",(function(){v&&v.setUnfixed(r)}),this),e.setDraggable(a&&v),e[h]&&e.off("mouseover",e[h]),e[c]&&e.off("mouseout",e[c]),o.get("focusNodeAdjacency")&&(e.on("mouseover",e[h]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[c]=function(){i._dispatchUnfocus(n)}))}),this),f.graph.eachEdge((function(e){var r=e.getGraphicEl();r[h]&&r.off("mouseover",r[h]),r[c]&&r.off("mouseout",r[c]),e.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[h]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),r.on("mouseout",r[c]=function(){i._dispatchUnfocus(n)}))}));var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),x=f.getLayout("cx"),_=f.getLayout("cy");f.eachItemGraphicEl((function(t,e){var n=f.getItemModel(e).get("label.rotate")||0,i=t.getSymbolPath();if(y){var r=f.getItemLayout(e),o=Math.atan2(r[1]-_,r[0]-x);o<0&&(o=2*Math.PI+o);var a=r[0]=t&&(0===e?0:r[e-1][0]).4?"bottom":"middle",textAlign:k<-.4?"left":k>.4?"right":"center"},{autoColor:E}),silent:!0}))}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){k=Math.cos(I),P=Math.sin(I);var V=new e.Line({shape:{x1:k*g+p,y1:P*g+f,x2:k*(g-M)+p,y2:P*(g-M)+f},silent:!0,style:D});"auto"===D.stroke&&V.setStyle({stroke:a((L+z/w)/b)}),d.add(V),I+=C}I-=C}else I+=T}},_renderPointer:function(n,i,o,s,l,u,h,c){var d=this.group,p=this._data;if(n.get("pointer.show")){var f=[+n.get("min"),+n.get("max")],g=[u,h],v=n.getData(),m=v.mapDimension("value");v.diff(p).add((function(i){var r=new t({shape:{angle:u}});e.initProps(r,{shape:{angle:a(v.get(m,i),f,g,!0)}},n),d.add(r),v.setItemGraphicEl(i,r)})).update((function(t,i){var r=p.getItemGraphicEl(i);e.updateProps(r,{shape:{angle:a(v.get(m,t),f,g,!0)}},n),d.add(r),v.setItemGraphicEl(t,r)})).remove((function(t){var e=p.getItemGraphicEl(t);d.remove(e)})).execute(),v.eachItemGraphicEl((function(t,n){var i=v.getItemModel(n),o=i.getModel("pointer");t.setShape({x:l.cx,y:l.cy,width:r(o.get("width"),l.r),r:r(o.get("length"),l.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",s(a(v.get(m,n),f,[0,1],!0))),e.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=v}else p&&p.eachItemGraphicEl((function(t){d.remove(t)}))},_renderTitle:function(t,n,i,o,s){var l=t.getData(),u=l.mapDimension("value"),h=t.getModel("title");if(h.get("show")){var c=h.get("offsetCenter"),d=s.cx+r(c[0],s.r),p=s.cy+r(c[1],s.r),f=+t.get("min"),g=+t.get("max"),v=t.getData().get(u,0),m=o(a(v,[f,g],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},h,{x:d,y:p,text:l.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(t,n,i,o,s){var u=t.getModel("detail"),h=+t.get("min"),c=+t.get("max");if(u.get("show")){var d=u.get("offsetCenter"),p=s.cx+r(d[0],s.r),f=s.cy+r(d[1],s.r),g=r(u.get("width"),s.r),v=r(u.get("height"),s.r),m=t.getData(),y=m.get(m.mapDimension("value"),0),x=o(a(y,[h,c],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},u,{x:p,y:f,text:l(y,u.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(v)?null:v,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}}),c=h;h5=c}()),function(){if(w5)return S5;w5=1;var t=a$();(function(){if(m5)return v5;m5=1;var t=a$(),e=_W(),n=yQ(),i=CY().defaultEmphasis,r=Dj().makeSeriesEncodeForNameBased,o=_Q(),a=t.extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendVisualProvider=new o(e.bind(this.getData,this),e.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,i){return n(this,{coordDimensions:["value"],encodeDefaulter:e.curry(r,this)})},_defaultLabelLine:function(t){i(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=a.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}});v5=a})(),function(){if(x5)return y5;x5=1;var t=EX(),e=_W(),n=nq();function i(e,n){t.Group.call(this);var i=new t.Polygon,r=new t.Polyline,o=new t.Text;this.add(i),this.add(r),this.add(o),this.highDownOnUpdate=function(t,e){"emphasis"===e?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,n,!0)}var r=i.prototype,o=["itemStyle","opacity"];r.updateData=function(n,i,r){var a=this.childAt(0),s=n.hostModel,l=n.getItemModel(i),u=n.getItemLayout(i),h=n.getItemModel(i).get(o);h=null==h?1:h,a.useStyle({}),r?(a.setShape({points:u.points}),a.setStyle({opacity:0}),t.initProps(a,{style:{opacity:h}},s,i)):t.updateProps(a,{style:{opacity:h},shape:{points:u.points}},s,i);var c=l.getModel("itemStyle"),d=n.getItemVisual(i,"color");a.setStyle(e.defaults({lineJoin:"round",fill:d},c.getItemStyle(["opacity"]))),a.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(n,i),t.setHoverStyle(this)},r._updateLabel=function(e,n){var i=this.childAt(1),r=this.childAt(2),o=e.hostModel,a=e.getItemModel(n),s=e.getItemLayout(n).label,l=e.getItemVisual(n,"color");t.updateProps(i,{shape:{points:s.linePoints||s.linePoints}},o,n),t.updateProps(r,{style:{x:s.x,y:s.y}},o,n),r.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var u=a.getModel("label"),h=a.getModel("emphasis.label"),c=a.getModel("labelLine"),d=a.getModel("emphasis.labelLine");l=e.getItemVisual(n,"color"),t.setLabelStyle(r.style,r.hoverStyle={},u,h,{labelFetcher:e.hostModel,labelDataIndex:n,defaultText:e.getName(n),autoColor:l,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!c.get("show"),i.hoverIgnore=!d.get("show"),i.setStyle({stroke:l}),i.setStyle(c.getModel("lineStyle").getLineStyle()),i.hoverStyle=d.getModel("lineStyle").getLineStyle()},e.inherits(i,t.Group);var a=n.extend({type:"funnel",render:function(t,e,n){var r=t.getData(),o=this._data,a=this.group;r.diff(o).add((function(t){var e=new i(r,t);r.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(r,t),a.add(n),r.setItemGraphicEl(t,n)})).remove((function(t){var e=o.getItemGraphicEl(t);a.remove(e)})).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),s=a;y5=s}();var e=wQ(),n=M5(),i=IQ();t.registerVisual(e("funnel")),t.registerLayout(n),t.registerProcessor(i("funnel"))}(),function(){if(u3)return C5;u3=1;var t=a$();f3(),function(){if(r3)return i3;r3=1;var t=_W(),e=t.each,n=t.createHashMap,i=Qj(),r=uK(),o=i.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=this.getSource();return a(n,this),r(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function a(t,i){if(!t.encodeDefine){var r=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(r){var o=t.encodeDefine=n();e(r.dimensions,(function(t){var e=s(t);o.set(t,e)}))}}}function s(t){return+t.replace("dim","")}i3=o}(),function(){if(a3)return o3;a3=1;var t=EX(),e=nq(),n=.3,i=e.extend({type:"parallel",init:function(){this._dataGroup=new t.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,n,i,u){var h=this._dataGroup,c=e.getData(),d=this._data,p=e.coordinateSystem,f=p.dimensions,g=s(e);function v(t){l(a(c,h,t,f,p),c,t,g)}function m(n,i){var r=d.getItemGraphicEl(i),a=o(c,n,f,p);c.setItemGraphicEl(n,r);var s=u&&!1===u.animation?null:e;t.updateProps(r,{shape:{points:a}},s,n),l(r,c,n,g)}function y(t){var e=d.getItemGraphicEl(t);h.remove(e)}if(c.diff(d).add(v).update(m).remove(y).execute(),!this._initialized){this._initialized=!0;var x=r(p,e,(function(){setTimeout((function(){h.removeClipPath()}))}));h.setClipPath(x)}this._data=c},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,u=s(e),h=t.start;h=0&&(s[a[l].depth]=new i(a[l],this,n));if(o&&r)return e(o,r,this,!0,u).data;function u(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getData().getItemLayout(e).depth;return n.levelModels[i]||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout().depth;return n.levelModels[i]||this.parentModel})),t}))}},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var o=this.getDataParams(t,i),a=o.data,s=a.source+" -- "+a.target;return o.value&&(s+=" : "+o.value),n(s)}if("node"===i){var l=this.getGraph().getNodeByIndex(t).getLayout().value,u=this.getDataParams(t,i).data.name;return l&&(s=u+" : "+l),n(s)}return r.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var n=r.superCall(this,"getDataParams",t,e);if(null==n.value&&"node"===e){var i=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=i}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}});v3=r})(),function(){if(x3)return y3;x3=1;var t=EX(),e=a$(),n=_W(),i=["itemStyle","opacity"],r=["emphasis","itemStyle","opacity"],o=["lineStyle","opacity"],a=["emphasis","lineStyle","opacity"];function s(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function l(t,e,n){var i=t.getGraphicEl(),r=s(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",r)}))}function u(t,e){var n=s(t,e),i=t.getGraphicEl();i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var h=t.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),c=e.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,n,i){var r=this,o=e.getGraph(),a=this.group,s=e.layoutInfo,l=s.width,u=s.height,c=e.getData(),p=e.getData("edge"),f=e.get("orient");this._model=e,a.removeAll(),a.attr("position",[s.x,s.y]),o.eachEdge((function(n){var i=new h;i.dataIndex=n.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,o,s,c,d,g,v,m,y=n.getModel("lineStyle"),x=y.get("curveness"),_=n.node1.getLayout(),b=n.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=n.node2.getLayout(),I=n.node2.getModel(),T=I.get("localX"),C=I.get("localY"),A=n.getLayout();switch(i.shape.extent=Math.max(1,A.dy),i.shape.orient=f,"vertical"===f?(r=(null!=w?w*l:_.x)+A.sy,o=(null!=S?S*u:_.y)+_.dy,s=(null!=T?T*l:M.x)+A.ty,d=r,g=o*(1-x)+(c=null!=C?C*u:M.y)*x,v=s,m=o*x+c*(1-x)):(r=(null!=w?w*l:_.x)+_.dx,o=(null!=S?S*u:_.y)+A.sy,d=r*(1-x)+(s=null!=T?T*l:M.x)*x,g=o,v=r*x+s*(1-x),m=c=(null!=C?C*u:M.y)+A.ty),i.setShape({x1:r,y1:o,x2:s,y2:c,cpx1:d,cpy1:g,cpx2:v,cpy2:m}),i.setStyle(y.getItemStyle()),i.style.fill){case"source":i.style.fill=n.node1.getVisual("color");break;case"target":i.style.fill=n.node2.getVisual("color")}t.setHoverStyle(i,n.getModel("emphasis.lineStyle").getItemStyle()),a.add(i),p.setItemGraphicEl(n.dataIndex,i)})),o.eachNode((function(n){var i=n.getLayout(),r=n.getModel(),o=r.get("localX"),s=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),p=new t.Rect({shape:{x:null!=o?o*l:i.x,y:null!=s?s*u:i.y,width:i.dx,height:i.dy},style:r.getModel("itemStyle").getItemStyle()}),f=n.getModel("emphasis.itemStyle").getItemStyle();t.setLabelStyle(p.style,f,h,d,{labelFetcher:e,labelDataIndex:n.dataIndex,defaultText:n.id,isRectText:!0}),p.setStyle("fill",n.getVisual("color")),t.setHoverStyle(p,f),a.add(p),c.setItemGraphicEl(n.dataIndex,p),p.dataType="node"})),c.eachItemGraphicEl((function(t,n){var o=c.getItemModel(n);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/u})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),p.eachItemGraphicEl((function(t,n){var o=p.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),!this._data&&e.get("animation")&&a.setClipPath(d(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,s,h){var c=t.getData(),d=c.graph,p=h.dataIndex,f=c.getItemModel(p),g=h.edgeDataIndex;if(null!=p||null!=g){var v=d.getNodeByIndex(p),m=d.getEdgeByIndex(g);if(d.eachNode((function(t){l(t,i,.1)})),d.eachEdge((function(t){l(t,o,.1)})),v){u(v,r);var y=f.get("focusNodeAdjacency");"outEdges"===y?n.each(v.outEdges,(function(t){t.dataIndex<0||(u(t,a),u(t.node2,r))})):"inEdges"===y?n.each(v.inEdges,(function(t){t.dataIndex<0||(u(t,a),u(t.node1,r))})):"allEdges"===y&&n.each(v.edges,(function(t){t.dataIndex<0||(u(t,a),t.node1!==v&&u(t.node1,r),t.node2!==v&&u(t.node2,r))}))}m&&(u(m,a),u(m.node1,r),u(m.node2,r))}},unfocusNodeAdjacency:function(t,e,n,r){var a=t.getGraph();a.eachNode((function(t){l(t,i)})),a.eachEdge((function(t){l(t,o)}))}});function d(e,n,i){var r=new t.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return t.initProps(r,{shape:{width:e.width+20}},n,i),r}y3=c}(),function(){if(_3)return C3;_3=1;var t=a$();G2(),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}();var e=A3(),n=D3();t.registerLayout(e),t.registerVisual(n)}(),function(){if(B3)return G3;B3=1;var t=a$();(function(){if(P3)return k3;P3=1;var t=_W(),e=Qj(),n=H3().seriesModelMixin,i=e.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});t.mixin(i,n,!0),k3=i})(),function(){if(R3)return O3;R3=1;var t=_W(),e=nq(),n=EX(),i=kZ(),r=["itemStyle"],o=["emphasis","itemStyle"],a=e.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=l(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?u(s,n,i,t):n=l(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:t.noop}),s=i.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i0?"P":"N",a=i.getVisual("borderColor"+r)||i.getVisual("color"+r),l=n.getModel(o).getItemStyle(s);e.useStyle(l),e.style.fill=null,e.style.stroke=a}var m=l;X3=m}();var e=function(){if(K3)return q3;K3=1;var t=_W();function e(e){e&&t.isArray(e.series)&&t.each(e.series,(function(e){t.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}return q3=e}(),n=i4(),i=r4();t.registerPreprocessor(e),t.registerVisual(n),t.registerLayout(i)}(),function(){if(c4)return E4;c4=1;var t=a$();(function(){if(a4)return o4;a4=1;var t=uK(),e=Qj(),n=e.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});o4=n})(),function(){if(h4)return u4;h4=1;var t=a$(),e=y$(),n=function(){if(l4)return s4;l4=1;var t=_W(),e=FK().createSymbol,n=EX().Group,i=UX().parsePercent,r=m$(),o=3;function a(e){return t.isArray(e)||(e=[+e,+e]),e}function s(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function l(t,e){n.call(this);var i=new r(t,e),o=new n;this.add(i),this.add(o),o.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var u=l.prototype;u.stopEffectAnimation=function(){this.childAt(1).removeAll()},u.startEffectAnimation=function(t){for(var n=t.symbolType,i=t.color,r=this.childAt(1),a=0;a "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}});d4=h})(),function(){if(I4)return M4;I4=1,hW().__DEV__;var t=a$(),e=b2(),n=V4(),i=_2(),r=B4(),o=function(){if(x4)return y4;x4=1;var t=B4(),e=_W(),n=V4(),i=CW();function r(t,e,i){n.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}var o=r.prototype;o.createLine=function(e,n,i){return new t(e,n,i)},o.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,o=1;o=0&&!(r[s]<=e);s--);s=Math.min(s,o-2)}else{for(var s=a;se);s++);s=Math.min(s-1,o-2)}i.lerp(t.position,n[s],n[s+1],(e-r[s])/(r[s+1]-r[s]));var l=n[s+1][0]-n[s][0],u=n[s+1][1]-n[s][1];t.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=e,t.ignore=!1}},e.inherits(r,n);var a=r;return y4=a}(),a=function(){if(b4)return _4;b4=1;var t=EX(),e=NX(),n=JY(),i=rZ(),r=t.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*i,d=(l+h)/2-(u-s)*i;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var r=this.shape,o=r.segs,a=r.curveness;if(r.polyline)for(var s=0,l=0;l0)for(var h=o[l++],c=o[l++],d=1;d0){var g=(h+p)/2-(c-f)*a,v=(c+f)/2-(p-h)*a;if(i.containStroke(h,c,g,v,p,f))return s}else if(n.containStroke(h,c,p,f))return s;s++}return-1}});function o(){this.group=new t.Group}var a=o.prototype;a.isPersistent=function(){return!this._incremental},a.updateData=function(t){this.group.removeAll();var e=new r({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},a.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new e({silent:!0})),this.group.add(this._incremental)):this._incremental=null},a.incrementalUpdate=function(t,e){var n=new r;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)})))},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var s=o;return _4=s}(),s=G4(),l=V$().createClipPath,u=t.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get("effect.trailLength"),s=n.getZr(),u="svg"===s.painter.getType();u||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||u||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a&&(u||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var h=t.get("clip",!0)&&l(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=s.reset(t);o.progress&&o.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,s){var l=this._lineDraw,u=this._showEffect(s),h=!!s.get("polyline"),c=s.pipelineContext.large;return l&&u===this._hasEffet&&h===this._isPolyline&&c===this._isLargeDraw||(l&&l.remove(),l=this._lineDraw=c?new a:new e(h?u?o:r:u?n:i),this._hasEffet=u,this._isPolyline=h,this._isLargeDraw=c,this.group.removeAll()),this.group.add(l.group),l},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});M4=u}();var e=G4(),n=F4();t.registerLayout(e),t.registerVisual(n)}(),N4||(N4=1,function(){if(L4)return D4;L4=1;var t=Qj(),e=uK(),n=Pj(),i=t.extend({type:"series.heatmap",getInitialData:function(t,n){return e(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=n.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});D4=i}(),function(){if(R4)return O4;R4=1,hW().__DEV__;var t=a$(),e=EX(),n=H4(),i=_W();function r(t,e,n){var r=t[1]-t[0],o=(e=i.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}))).length,a=0;return function(t){for(var i=a;i=0;i--){var r;if((r=e[i].interval)[0]<=t&&t<=r[1]){a=i;break}}return i>=0&&i=e[0]&&t<=e[1]}}function a(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var s=t.extendChartView({type:"heatmap",render:function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):a(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,n,r,o,a){var s,l,u=t.coordinateSystem;if("cartesian2d"===u.type){var h=u.getAxis("x"),c=u.getAxis("y");s=h.getBandWidth(),l=c.getBandWidth()}for(var d=this.group,p=t.getData(),f="itemStyle",g="emphasis.itemStyle",v="label",m="emphasis.label",y=t.getModel(f).getItemStyle(["color"]),x=t.getModel(g).getItemStyle(),_=t.getModel(v),b=t.getModel(m),w=u.type,S="cartesian2d"===w?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=r;M0?1:a<0?-1:0}function f(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function g(t,n,i,r,a,s,l,u,h,c){var d=h.valueDim,p=h.categoryDim,f=Math.abs(i[p.wh]),g=t.getItemVisual(n,"symbolSize");e.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[p.index]=o(g[p.index],f),g[d.index]=o(g[d.index],r?f:Math.abs(s)),c.symbolSize=g,(c.symbolScale=[g[0]/u,g[1]/u])[d.index]*=(h.isHorizontal?-1:1)*l}function v(t,e,n,i,r){var o=t.get(l)||0;o&&(h.attr({scale:e.slice(),rotation:n}),h.updateTransform(),o/=h.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}function m(t,n,i,r,s,l,u,h,c,d,p,f){var g=p.categoryDim,v=p.valueDim,m=f.pxSign,y=Math.max(n[v.index]+h,0),x=y;if(r){var _=Math.abs(c),b=e.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=o(b,n[v.index]);var S=Math.max(y+2*b,0),M=w?0:2*b,I=a(r),T=I?r:R((_+M)/S);S=y+2*(b=(_-T*y)/2/(w?T:T-1)),M=w?0:2*b,I||"fixed"===r||(T=d?R((Math.abs(d)+M)/S):0),x=T*S-M,f.repeatTimes=T,f.symbolMargin=b}var C=m*(x/2),A=f.pathPosition=[];A[g.index]=i[g.wh]/2,A[v.index]="start"===u?C:"end"===u?c-C:c/2,l&&(A[0]+=l[0],A[1]+=l[1]);var D=f.bundlePosition=[];D[g.index]=i[g.xy],D[v.index]=i[v.xy];var L=f.barRectShape=e.extend({},i);L[v.wh]=m*Math.max(Math.abs(i[v.wh]),Math.abs(A[v.index]+C)),L[g.wh]=i[g.wh];var k=f.clipShape={};k[g.xy]=-i[g.xy],k[g.wh]=p.ecSize[g.wh],k[v.xy]=0,k[v.wh]=i[v.wh]}function y(t){var e=t.symbolPatternSize,n=i(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function x(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(k(t,(function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){k(t,(function(t){t.trigger("emphasis")}))}function v(){k(t,(function(t){t.trigger("normal")}))}}function _(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;function a(){this.trigger("emphasis")}function s(){this.trigger("normal")}o?P(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=y(n),r.add(o),P(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",a).on("mouseout",s)),T(o,n)}function b(t,i,r){var o=e.extend({},i.barRectShape),a=t.__pictorialBarRect;a?P(a,null,{shape:o},i,r):(a=t.__pictorialBarRect=new n.Rect({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function w(t,i,r,o){if(r.symbolClip){var a=t.__pictorialClipPath,s=e.extend({},r.clipShape),l=i.valueDim,u=r.animationModel,h=r.dataIndex;if(a)n.updateProps(a,{shape:s},u,h);else{s[l.wh]=0,a=new n.Rect({shape:s}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var c={};c[l.wh]=r.clipShape[l.wh],n[o?"updateProps":"initProps"](a,{shape:c},u,h)}}}function S(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=M,n.isAnimationEnabled=I,n}function M(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function I(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function T(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function C(t,e,i,r){var o=new n.Group,a=new n.Group;return o.add(a),o.__pictorialBundle=a,a.attr("position",i.bundlePosition.slice()),i.symbolRepeat?x(o,e,i):_(o,e,i),b(o,i,r),w(o,e,i,r),o.__pictorialShapeStr=L(t,i),o.__pictorialSymbolMeta=i,o}function A(t,e,i){var r=i.animationModel,o=i.dataIndex,a=t.__pictorialBundle;n.updateProps(a,{position:i.bundlePosition.slice()},r,o),i.symbolRepeat?x(t,e,i,!0):_(t,e,i,!0),b(t,i,!0),w(t,e,i,!0)}function D(t,i,r,o){var a=o.__pictorialBarRect;a&&(a.style.text=null);var s=[];k(o,(function(t){s.push(t)})),o.__pictorialMainPath&&s.push(o.__pictorialMainPath),o.__pictorialClipPath&&(r=null),e.each(s,(function(t){n.updateProps(t,{scale:[0,0]},r,i,(function(){o.parent&&o.parent.remove(o)}))})),t.setItemGraphicEl(i,null)}function L(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function k(t,n,i){e.each(t.__pictorialBundle.children(),(function(e){e!==t.__pictorialBarRect&&n.call(i,e)}))}function P(t,e,i,r,o,a){e&&t.attr(e),r.symbolClip&&!o?i&&t.attr(i):i&&n[o?"updateProps":"initProps"](t,i,r.animationModel,r.dataIndex,a)}function O(t,i,r){var o=r.color,a=r.dataIndex,l=r.itemModel,u=l.getModel("itemStyle").getItemStyle(["color"]),h=l.getModel("emphasis.itemStyle").getItemStyle(),c=l.getShallow("cursor");k(t,(function(t){t.setColor(o),t.setStyle(e.defaults({fill:o,opacity:r.opacity},u)),n.setHoverStyle(t,h),c&&(t.cursor=c),t.z2=r.z2}));var d={},p=i.valueDim.posDesc[+(r.boundingLength>0)],f=t.__pictorialBarRect;s(f.style,d,l,o,i.seriesModel,a,p),n.setHoverStyle(f,d)}function R(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var N=c;Y4=N}();var n=RK().layout,i=B$();PJ(),t.registerLayout(e.curry(n,"pictorialBar")),t.registerVisual(i("pictorialBar","roundRect"))}(),function(){if(W6)return t6;W6=1;var t=a$();j6(),function(){if(E6)return N6;E6=1;var t=Qj(),e=eK(),n=$q().getDimensionTypeByAxis,i=Qq(),r=_W(),o=CY().groupData,a=nj().encodeHTML,s=_Q(),l=2,u=t.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new s(r.bind(this.getData,this),r.bind(this.getRawData,this))},fixData:function(t){var e=t.length,n={},i=o(t,(function(t){return n.hasOwnProperty(t[0])||(n[t[0]]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var a=r.length,s=0;so&&(o=u),i.push(u)}for(var h=0;ho&&(o=d)}return a.y0=r,a.max=o,a}return B6=n}(),n=q6(),i=IQ();t.registerLayout(e),t.registerVisual(n),t.registerProcessor(i("themeRiver"))}(),function(){if(o8)return a8;o8=1;var t=a$(),e=_W();(function(){if($6)return K6;$6=1;var t=_W(),e=Qj(),n=y1(),i=zX(),r=B1().wrapTreePathInfo,o=e.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,r){var o={name:e.name,children:e.data};a(o);var s=t.map(e.levels||[],(function(t){return new i(t,this,r)}),this),l=n.createTree(o,this,u);function u(t){t.wrapMethod("getItemModel",(function(t,e){var n=l.getNodeByDataIndex(e),i=s[n.depth];return i&&(t.parentModel=i),t}))}return l.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=r(i,this),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function a(e){var n=0;t.each(e.children,(function(e){a(e);var i=e.value;t.isArray(i)&&(i=i[0]),n+=i}));var i=e.value;t.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),t.isArray(e.value)?e.value[0]=i:e.value=i}K6=o})(),function(){if(e8)return t8;e8=1;var t=_W(),e=nq(),n=function(){if(Q6)return J6;Q6=1;var t=_W(),e=EX(),n={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},i=2,r=4;function o(t,n,o){e.Group.call(this);var a=new e.Sector({z2:i});a.seriesIndex=n.seriesIndex;var s=new e.Text({z2:r,silent:t.getModel("label").get("silent")});function l(){s.ignore=s.hoverIgnore}function u(){s.ignore=s.normalIgnore}this.add(a),this.add(s),this.updateData(!0,t,"normal",n,o),this.on("emphasis",l).on("normal",u).on("mouseover",l).on("mouseout",u)}var a=o.prototype;a.updateData=function(n,i,r,o,a){this.node=i,i.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=i.dataIndex;var u=i.getModel(),h=i.getLayout(),d=t.extend({},h);d.label=null;var p=l(i,o,a);c(i,o,p);var f,g=u.getModel("itemStyle").getItemStyle();if("normal"===r)f=g;else{var v=u.getModel(r+".itemStyle").getItemStyle();f=t.merge(v,g)}f=t.defaults({lineJoin:"bevel",fill:f.fill||p},f),n?(s.setShape(d),s.shape.r=h.r0,e.updateProps(s,{shape:{r:h.r}},o,i.dataIndex),s.useStyle(f)):"object"==typeof f.fill&&f.fill.type||"object"==typeof s.style.fill&&s.style.fill.type?(e.updateProps(s,{shape:d},o),s.useStyle(f)):e.updateProps(s,{shape:d,style:f},o),this._updateLabel(o,p,r);var m=u.getShallow("cursor");if(m&&s.attr("cursor",m),n){var y=o.getShallow("highlightPolicy");this._initEvents(s,i,o,y)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,e.setHoverStyle(this)},a.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):h(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==n.NONE&&i.piece.childAt(0).trigger("downplay"))}))},a.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},a.onHighlight=function(){this.updateData(!1,this.node,"highlight")},a.onDownplay=function(){this.updateData(!1,this.node,"downplay")},a._updateLabel=function(n,i,r){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===r||"emphasis"===r?a:o.getModel(r+".label"),l=o.getModel("emphasis.label"),u=s.get("formatter")?r:"normal",h=t.retrieve(n.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===T("show")&&(h="");var c=this.node.getLayout(),d=s.get("minAngle");null==d&&(d=a.get("minAngle")),d=d/180*Math.PI;var p=c.endAngle-c.startAngle;null!=d&&Math.abs(p)Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(g=c.r0+_,v>Math.PI/2&&(b="right")):"right"===b&&(g=c.r-_,v>Math.PI/2&&(b="left")):(g=(c.r+c.r0)/2,b="center"),f.attr("style",{text:h,textAlign:b,textVerticalAlign:T("verticalAlign")||"middle",opacity:T("opacity")});var w=g*m+c.cx,S=g*y+c.cy;f.attr("position",[w,S]);var M=T("rotate"),I=0;function T(t){var e=s.get(t);return null==e?a.get(t):e}"radial"===M?(I=-v)<-Math.PI/2&&(I+=Math.PI):"tangential"===M?(I=Math.PI/2-v)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):"number"==typeof M&&(I=M*Math.PI/180),f.attr("rotation",I)},a._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",s).on("highlight",l)},t.inherits(o,e.Group);var s=o;function l(t,e,n){var i=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(i=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(i)return i;if(0===t.depth)return n.option.color[0];var a=n.option.color.length;return o=n.option.color[u(t)%a]}function u(e){for(var n=e;n.depth>1;)n=n.parentNode;var i=e.getAncestors()[0];return t.indexOf(i.children,n)}function h(t,e,i){return i!==n.NONE&&(i===n.SELF?t===e:i===n.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function c(t,e,n){e.getData().setItemVisual(t.dataIndex,"color",n)}return J6=s}(),i=Gq(),r=nj().windowOpen,o="sunburstRootToNode",a=e.extend({type:"sunburst",init:function(){},render:function(e,r,o,a){var s=this;this.seriesModel=e,this.api=o,this.ecModel=r;var l=e.getData(),u=l.tree.root,h=e.getViewRoot(),c=this.group,d=e.get("renderLabelForZeroData"),p=[];h.eachNode((function(t){p.push(t)}));var f=this._oldChildren||[];if(m(p,f),_(u,h),a&&a.highlight&&a.highlight.piece){var g=e.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(g)}else if(a&&a.unhighlight){var v=this.virtualPiece;!v&&u.children.length&&(v=u.children[0].piece),v&&v.onNormal()}function m(e,n){function r(t){return t.getId()}function o(t,i){y(null==t?null:e[t],null==i?null:n[i])}0===e.length&&0===n.length||new i(n,e,r,r).add(o).update(o).remove(t.curry(o,null)).execute()}function y(t,i){if(d||!t||t.getValue()||(t=null),t!==u&&i!==u)if(i&&i.piece)t?(i.piece.updateData(!1,t,"normal",e,r),l.setItemGraphicEl(t.dataIndex,i.piece)):x(i);else if(t){var o=new n(t,e,r);c.add(o),l.setItemGraphicEl(t.dataIndex,o)}}function x(t){t&&t.piece&&(c.remove(t.piece),t.piece=null)}function _(t,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,t,"normal",e,r):(s.virtualPiece=new n(t,e,r),c.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var o=function(t){s._rootToNode(i.parentNode)};i.piece._onclickEvent=o,s.virtualPiece.on("click",o)}else s.virtualPiece&&(c.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(i);else if("link"===o){var a=i.getModel(),s=a.get("link");if(s){var l=a.get("target",!0)||"_blank";r(s,l)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:o,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}}),s=a;t8=s}(),function(){if(n8)return s8;n8=1;var t=a$(),e=B1(),n="sunburstRootToNode";t.registerAction({type:n,update:"updateView"},(function(t,i){function r(i,r){var o=e.retrieveTargetInfo(t,[n],i);if(o){var a=i.getViewRoot();a&&(t.direction=e.aboveViewRoot(a,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}i.eachComponent({mainType:"series",subType:"sunburst",query:t},r)}));var i="sunburstHighlight";t.registerAction({type:i,update:"updateView"},(function(t,n){function r(n,r){var o=e.retrieveTargetInfo(t,[i],n);o&&(t.highlight=o.node)}n.eachComponent({mainType:"series",subType:"sunburst",query:t},r)}));var r="sunburstUnhighlight";t.registerAction({type:r,update:"updateView"},(function(t,e){function n(e,n){t.unhighlight=!0}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)}))}();var n=wQ(),i=l8(),r=IQ();t.registerVisual(e.curry(n,"sunburst")),t.registerLayout(e.curry(i,"sunburst")),t.registerProcessor(e.curry(r,"sunburst"))}(),function(){if(x8)return S8;x8=1,hW().__DEV__;var t=_W(),e=EX(),n=v$().getDefaultLabel,i=uK(),r=RK().getLayoutOnAxis,o=Gq(),a=Qj(),s=zX(),l=nq(),u=V$().createClipPath,h=function(){if(h8)return u8;h8=1;var t=_W();function e(e,n){return n=n||[0,0],t.map(["x","y"],(function(t,i){var r=this.getAxis(t),o=n[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function n(n){var i=n.grid.getRect();return{coordSys:{type:"cartesian2d",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return u8=n}(),c=function(){if(d8)return c8;d8=1;var t=_W();function e(e,n){return n=n||[0,0],t.map([0,1],(function(t){var i=n[t],r=e[t]/2,o=[],a=[];return o[t]=i-r,a[t]=i+r,o[1-t]=a[1-t]=n[1-t],Math.abs(this.dataToPoint(o)[t]-this.dataToPoint(a)[t])}),this)}function n(n){var i=n.getBoundingRect();return{coordSys:{type:"geo",x:i.x,y:i.y,width:i.width,height:i.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return c8=n}(),d=function(){if(f8)return p8;f8=1;var t=_W();function e(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function n(n){var i=n.getRect();return{coordSys:{type:"singleAxis",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}return p8=n}(),p=function(){if(v8)return g8;v8=1;var t=_W();function e(e,n){return t.map(["Radius","Angle"],(function(t,i){var r=this["get"+t+"Axis"](),o=n[i],a=e[i]/2,s="dataTo"+t,l="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===t&&(l=l*Math.PI/180),l}),this)}function n(n){var i=n.getRadiusAxis(),r=n.getAngleAxis(),o=i.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:o[1],r0:o[0]},api:{coord:t.bind((function(t){var e=i.dataToRadius(t[0]),o=r.dataToAngle(t[1]),a=n.coordToPoint([e,o]);return a.push(e,o*Math.PI/180),a})),size:t.bind(e,n)}}}return g8=n}(),f=function(){if(y8)return m8;function t(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}return y8=1,m8=t}(),g=e.CACHED_LABEL_STYLE_PROPERTIES,v=["itemStyle"],m=["emphasis","itemStyle"],y=["label"],x=["emphasis","label"],_="e\0\0",b={cartesian2d:h,geo:c,singleAxis:d,polar:p,calendar:f};function w(t){var n,i=t.type;if("path"===i){var r=t.shape,o=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=E(r);(n=e.makePath(a,null,o,r.layout||"center")).__customPathData=a}else if("image"===i)(n=new e.Image({})).__customImagePath=t.style.image;else if("text"===i)(n=new e.Text({})).__customText=t.style.text;else if("group"===i)n=new e.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');n=new(e.getShapeClass(i))}return n.__customGraphicType=i,n.name=t.name,n}function S(n,i,r,o,a,s,l){var u={},h=r.style||{};if(r.shape&&(u.shape=t.clone(r.shape)),r.position&&(u.position=r.position.slice()),r.scale&&(u.scale=r.scale.slice()),r.origin&&(u.origin=r.origin.slice()),r.rotation&&(u.rotation=r.rotation),"image"===n.type&&r.style){var c=u.style={};t.each(["x","y","width","height"],(function(t){M(t,c,h,n.style,s)}))}if("text"===n.type&&r.style&&(c=u.style={},t.each(["x","y"],(function(t){M(t,c,h,n.style,s)})),!h.hasOwnProperty("textFill")&&h.fill&&(h.textFill=h.fill),!h.hasOwnProperty("textStroke")&&h.stroke&&(h.textStroke=h.stroke)),"group"!==n.type&&(n.useStyle(h),s)){n.style.opacity=0;var d=h.opacity;null==d&&(d=1),e.initProps(n,{style:{opacity:d}},o,i)}s?n.attr(u):e.updateProps(n,u,o,i),r.hasOwnProperty("z2")&&n.attr("z2",r.z2||0),r.hasOwnProperty("silent")&&n.attr("silent",r.silent),r.hasOwnProperty("invisible")&&n.attr("invisible",r.invisible),r.hasOwnProperty("ignore")&&n.attr("ignore",r.ignore),r.hasOwnProperty("info")&&n.attr("info",r.info);var p=r.styleEmphasis;e.setElementHoverStyle(n,p),l&&e.setAsHighDownDispatcher(n,!1!==p)}function M(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function I(i,o,a,s){var l=i.get("renderItem"),u=i.coordinateSystem,h={};u&&(h=u.prepareCustoms?u.prepareCustoms():b[u.type](u));var c,d,p,f,g,_=t.defaults({getWidth:s.getWidth,getHeight:s.getHeight,getZr:s.getZr,getDevicePixelRatio:s.getDevicePixelRatio,value:I,style:C,styleEmphasis:A,visual:D,barLayout:L,currentSeriesIndices:k,font:P},h.api||{}),w={context:{},seriesId:i.id,seriesName:i.name,seriesIndex:i.seriesIndex,coordSys:h.coordSys,dataInsideLength:o.count(),encode:T(i.getData())},S=!0;return function(e,n){return c=e,S=!0,l&&l(t.defaults({dataIndexInside:e,dataIndex:o.getRawIndex(e),actionType:n?n.type:null},w),_)};function M(t){null==t&&(t=c),S&&(d=o.getItemModel(t),p=d.getModel(y),f=d.getModel(x),g=o.getItemVisual(t,"color"),S=!1)}function I(t,e){return null==e&&(e=c),o.get(o.getDimension(t||0),e)}function C(r,a){null==a&&(a=c),M(a);var s=d.getModel(v).getItemStyle();null!=g&&(s.fill=g);var l=o.getItemVisual(a,"opacity");null!=l&&(s.opacity=l);var u=r?O(r,p):p;return e.setTextStyle(s,u,null,{autoColor:g,isRectText:!0}),s.text=u.getShallow("show")?t.retrieve2(i.getFormattedLabel(a,"normal"),n(o,a)):null,r&&R(s,r),s}function A(r,a){null==a&&(a=c),M(a);var s=d.getModel(m).getItemStyle(),l=r?O(r,f):f;return e.setTextStyle(s,l,null,{isRectText:!0},!0),s.text=l.getShallow("show")?t.retrieve3(i.getFormattedLabel(a,"emphasis"),i.getFormattedLabel(a,"normal"),n(o,a)):null,r&&R(s,r),s}function D(t,e){return null==e&&(e=c),o.getItemVisual(e,t)}function L(e){if(u.getBaseAxis){var n=u.getBaseAxis();return r(t.defaults({axis:n},e),s)}}function k(){return a.getCurrentSeriesIndices()}function P(t){return e.getFont(t,a)}}function T(e){var n={};return t.each(e.dimensions,(function(t,i){var r=e.getDimensionInfo(t);if(!r.isExtraCoord){var o=r.coordDim;(n[o]=n[o]||[])[r.coordDimIndex]=i}})),n}function C(t,e,n,i,r,o){return(t=A(t,e,n,i,r,o,!0))&&o.setItemGraphicEl(e,t),t}function A(t,e,n,i,r,o,a){var s=!n,l=(n=n||{}).type,u=n.shape,h=n.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&z(u)&&E(u)!==t.__customPathData||"image"===l&&V(h,"image")&&h.image!==t.__customImagePath||"text"===l&&V(u,"text")&&h.text!==t.__customText)&&(r.remove(t),t=null),!s){var c=!t;return!t&&(t=w(n)),S(t,e,n,i,o,c,a),"group"===l&&D(t,e,n,i,o),r.add(t),t}}function D(t,e,n,i,r){var o=n.children,a=o?o.length:0,s=n.$mergeChildren,l="byName"===s||n.diffChildrenByName,u=!1===s;if(a||l||u)if(l)L({oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,animatableModel:i,group:t,data:r});else{u&&t.removeAll();for(var h=0;he[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function s(t){return t.getRadiusAxis().inverse?0:1}function l(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var u=i.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,n){if(this.group.removeAll(),e.get("show")){var i=e.axis,r=i.polar,a=r.getRadiusAxis().getExtent(),s=i.getTicksCoords(),u=i.getMinorTicksCoords(),h=t.map(i.getViewLabels(),(function(e){return(e=t.clone(e)).coord=i.dataToCoord(e.tickValue),e}));l(h),l(s),t.each(o,(function(t){!e.get(t+".show")||i.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,r,s,u,a,h)}),this)}},_axisLine:function(t,n,i,r,o){var a,l=t.getModel("axisLine.lineStyle"),u=s(n),h=u?0:1;(a=0===o[h]?new e.Circle({shape:{cx:n.cx,cy:n.cy,r:o[u]},style:l.getLineStyle(),z2:1,silent:!0}):new e.Ring({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[h]},style:l.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(a)},_axisTick:function(n,i,r,o,l){var u=n.getModel("axisTick"),h=(u.get("inside")?-1:1)*u.get("length"),c=l[s(i)],d=t.map(r,(function(t){return new e.Line({shape:a(i,[c,c+h],t.coord)})}));this.group.add(e.mergePath(d,{style:t.defaults(u.getModel("lineStyle").getLineStyle(),{stroke:n.get("axisLine.lineStyle.color")})}))},_minorTick:function(n,i,r,o,l){if(o.length){for(var u=n.getModel("axisTick"),h=n.getModel("minorTick"),c=(u.get("inside")?-1:1)*h.get("length"),d=l[s(i)],p=[],f=0;fm?"left":"right",_=Math.abs(v[1]-y)/g<.3?"middle":v[1]>y?"top":"bottom";c&&c[h]&&c[h].textStyle&&(l=new n(c[h].textStyle,d,d.ecModel));var b=new e.Text({silent:r.isLabelSilent(i)});this.group.add(b),e.setTextStyle(b.style,l,{x:v[0],y:v[1],textFill:l.getTextColor()||i.get("axisLine.lineStyle.color"),text:t.formattedLabel,textAlign:x,textVerticalAlign:_}),f&&(b.eventData=r.makeAxisEventDataBase(i),b.eventData.targetType="axisLabel",b.eventData.value=t.rawLabel)}),this)},_splitLine:function(n,i,r,o,s){var l=n.getModel("splitLine").getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var c=[],d=0;dx?"left":"right",p=Math.abs(c[1]-_)/y<.3?"middle":c[1]>_?"top":"bottom"}return{position:c,align:d,verticalAlign:p}}var u={line:function(t,e,n,r,o){return"angle"===t.dim?{type:"Line",shape:i.makeLineShape(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r,o){var a=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,r[0],r[1],(-n-a/2)*s,(a/2-n)*s)}:{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};a.registerAxisPointerClass("PolarAxisPointer",s);var h=s;U8=h}(),t.registerLayout(e.curry(n,"bar")),t.extendComponentView({type:"polar"})}(),function(){if(t7)return d7;t7=1;var t=a$(),e=_W();function n(n,i){i.update="updateView",t.registerAction(i,(function(t,i){var r={};return i.eachComponent({mainType:"geo",query:t},(function(i){i[n](t.name);var o=i.coordinateSystem;e.each(o.regions,(function(t){r[t.name]=i.isSelected(t.name)||!1}))})),{selected:r,name:t.name}}))}(function(){if($8)return K8;$8=1;var t=_W(),e=CY(),n=rj(),i=zX(),r=xQ(),o=o1(),a=n.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){n.prototype.init.apply(this,arguments),e.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var e=this.option,n=this;e.regions=o.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=t.reduce(e.regions||[],(function(t,e){return e.name&&t.set(e.name,new i(e,n)),t}),t.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new i(null,this,this.ecModel)},getFormattedLabel:function(t,e){e=e||"normal";var n=this.getRegionModel(t).get(("normal"===e?"":e+".")+"label.formatter"),i={name:t};return"function"==typeof n?(i.status=e,n(i)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});t.mixin(a,r);var s=a;K8=s})(),o1(),function(){if(Q8)return J8;Q8=1;var t=E0(),e=a$(),n=e.extendComponentView({type:"geo",init:function(e,n){var i=new t(n,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});J8=n}(),i1(),n("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),n("select",{type:"geoSelect",event:"geoselected"}),n("unSelect",{type:"geoUnSelect",event:"geounselected"})}(),j6(),f3(),s7||(s7=1,function(){if(n7)return e7;n7=1;var t=_W(),e=ij(),n=UX(),i=Pj(),r=864e5;function o(t,e,n){this._model=t}function a(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}o.prototype={constructor:o,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=n.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var r=t.getDate();r=r<10?"0"+r:r;var o=t.getDay();return{y:e,m:i,d:r,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+r,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(n,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[r,7]:[7,r];t.each([0,1],(function(t){c(a,t)&&(s[o[t]]=a[t]*l[t])}));var u={width:i.getWidth(),height:i.getHeight()},h=this._rect=e.getLayoutRect(s,u);function c(t,e){return null!=t[e]&&"auto"!==t[e]}t.each([0,1],(function(t){c(a,t)||(a[t]=h[o[t]]/l[t])})),this._sw=a[0],this._sh=a[1]},dataToPoint:function(e,n){t.isArray(e)&&(e=e[0]),null==n&&(n=!0);var i=this.getDateInfo(e),o=this._rangeInfo,a=i.formatedDate;if(n&&!(i.time>=o.start.time&&i.timea.end.time&&e.reverse(),e},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/r)-Math.floor(t[0].time/r)+1,i=new Date(t[0].time),o=i.getDate(),a=t[1].date.getDate();i.setDate(o+n-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-t[1].time)*l>0;)n-=l,i.setDate(s-l);var u=Math.floor((n+t[0].day+6)/7),h=e?1-u:u-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:u,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},o.dimensions=o.prototype.dimensions,o.getDimensionsInfo=o.prototype.getDimensionsInfo,o.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(t){var e=new o(t);n.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},i.register("calendar",o);var s=o;e7=s}(),function(){if(r7)return i7;r7=1;var t=_W(),e=rj(),n=ij(),i=n.getLayoutParams,r=n.sizeCalculable,o=n.mergeLayoutParam,a=e.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,r){var o=i(t);a.superApply(this,"init",arguments),s(t,o)},mergeOption:function(t,e){a.superApply(this,"mergeOption",arguments),s(this.option,t)}});function s(e,n){var i=e.cellSize;t.isArray(i)?1===i.length&&(i[1]=i[0]):i=e.cellSize=[i,i];var a=t.map([0,1],(function(t){return r(n,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));o(e,n,{type:"box",ignoreSize:a})}var l=a;i7=l}(),function(){if(a7)return o7;a7=1;var t=a$(),e=_W(),n=EX(),i=nj(),r=UX(),o={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},a={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},s=t.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,i){for(var r=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),s=r.getCellHeight(),l=e.start.time;l<=e.end.time;l=r.getNextNDay(l,1).time){var u=r.dataToRect([l],!1).tl,h=new n.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:o});i.add(h)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,i){var r=new n.Polyline({z2:20,shape:{points:t},style:e});i.add(r)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?i.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=r,o=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return"left"!==i&&"right"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,i,r){var o=t.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),s=o.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,h=(l[0][1]+l[1][1])/2,c="horizontal"===i?0:1,d={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],h],right:[l[c][0],h]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var f=o.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:p},v=this._formatterLabel(f,g),m=new n.Text({z2:30});n.setTextStyle(m.style,o,{text:v}),m.attr(this._yearTextPositionControl(m,d[s],i,s,a)),r.add(m)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,i,r){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),h=a.get("align"),c=[this._tlpoints,this._blpoints];e.isString(s)&&(s=o[s.toUpperCase()]||[]);var d="start"===u?0:1,p="horizontal"===i?0:1;l="start"===u?-l:l;for(var f="center"===h,g=0;g=0;h--)null==a[h]?a.splice(h,1):delete a[h].$action},_flatten:function(t,n,i){e.each(t,(function(t){if(t){i&&(t.parentOption=i),n.push(t);var e=t.children;"group"===t.type&&e&&this._flatten(e,n,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function l(t,e,n,r){var o=n.type,s=new(a.hasOwnProperty(o)?a[o]:i.getShapeClass(o))(n);e.add(s),r.set(t,s),s.__ecGraphicId=t}function u(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){u(t,e)})),e.removeKey(t.__ecGraphicId),n.remove(t))}function h(t){return t=e.extend({},t),e.each(["id","parentId","$action","hv","bounding"].concat(r.LOCATION_PARAMS),(function(e){delete t[e]})),t}function c(t,n){var i;return e.each(n,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}function d(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function p(t,n,i){var o=e.extend({},i),a=t[n],s=i.$action||"merge";"merge"===s?a?(e.merge(a,o,!0),r.mergeLayoutParam(a,o,{ignoreSize:!0}),r.copyLayoutParams(i,a)):t[n]=o:"replace"===s?t[n]=o:"remove"===s&&a&&(t[n]=null)}function f(t,e){t&&(t.hv=e.hv=[c(e,["left","right"]),c(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function g(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}t.extendComponentView({type:"graphic",init:function(t,n){this._elMap=e.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var n=t.useElOptionsToUpdate();if(n){var i=this._elMap,r=this.group;e.each(n,(function(e){var n=e.$action,o=e.id,a=i.get(o),s=e.parentId,c=null!=s?i.get(s):r,d=e.style;"text"===e.type&&d&&(e.hv&&e.hv[1]&&(d.textVerticalAlign=d.textBaseline=null),!d.hasOwnProperty("textFill")&&d.fill&&(d.textFill=d.fill),!d.hasOwnProperty("textStroke")&&d.stroke&&(d.textStroke=d.stroke));var p=h(e);n&&"merge"!==n?"replace"===n?(u(a,i),l(o,c,p,i)):"remove"===n&&u(a,i):a?a.attr(p):l(o,c,p,i);var f=i.get(o);f&&(f.__ecGraphicWidthOption=e.width,f.__ecGraphicHeightOption=e.height,g(f,t))}))}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,a=this._elMap,s=e.getWidth(),l=e.getHeight(),u=0;u=0;u--){var d;if(h=n[u],d=a.get(h.id)){var p,f=(p=d.parent)===i?{width:s,height:l}:{width:p.__ecGraphicWidth,height:p.__ecGraphicHeight};r.positionElement(d,h,f,null,{hv:h.hv,boundingMode:h.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){u(e,t)})),this._elMap=e.createHashMap()},dispose:function(){this._clear()}})}(),s9||(s9=1,function(){if(c7)return h7;c7=1;var t=a$(),e=_W(),n=g7(),i=t.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){i.superApply(this,"optionUpdated",arguments),e.each(this.option.feature,(function(t,i){var r=n.get(i);r&&e.merge(t,r.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),r=i;h7=r}(),function(){if(y7)return m7;y7=1;var t=a$(),e=_W(),n=tY(),i=g7(),r=EX(),o=zX(),a=Gq(),s=A7(),l=t.extendComponentView({type:"toolbox",render:function(t,l,h,c){var d=this.group;if(d.removeAll(),t.get("show")){var p=+t.get("itemSize"),f=t.get("feature")||{},g=this._features||(this._features={}),v=[];e.each(f,(function(t,e){v.push(e)})),new a(this._featureNames||[],v).add(m).update(m).remove(e.curry(m,null)).execute(),this._featureNames=v,s.layout(d,t,h),d.add(s.makeBackground(d.getBoundingRect(),t)),d.eachChild((function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=n.getBoundingRect(e,n.makeFont(i)),o=t.position[0]+d.position[0],a=!1;t.position[1]+d.position[1]+p+r.height>h.getHeight()&&(i.textPosition="top",a=!0);var s=a?-5-r.height:p+8;o+r.width/2>h.getWidth()?(i.textPosition=["100%",s],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,s],i.textAlign="left")}}))}function m(e,n){var r,a=v[e],s=v[n],d=f[a],p=new o(d,t,t.ecModel);if(c&&null!=c.newTitle&&c.featureName===a&&(d.title=c.newTitle),a&&!s){if(u(a))r={model:p,onclick:p.option.onclick,featureName:a};else{var m=i.get(a);if(!m)return;r=new m(p,l,h)}g[a]=r}else{if(!(r=g[s]))return;r.model=p,r.ecModel=l,r.api=h}a||!s?p.get("show")&&!r.unusable?(y(p,r,a),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},r.render&&r.render(p,l,h,c)):r.remove&&r.remove(l,h):r.dispose&&r.dispose(l,h)}function y(n,i,o){var a=n.getModel("iconStyle"),s=n.getModel("emphasis.iconStyle"),u=i.getIcons?i.getIcons():n.get("icon"),c=n.get("title")||{};if("string"==typeof u){var f=u,g=c;c={},(u={})[o]=f,c[o]=g}var v=n.iconPaths={};e.each(u,(function(o,u){var f=r.createIcon(o,{},{x:-p/2,y:-p/2,width:p,height:p});f.setStyle(a.getItemStyle()),f.hoverStyle=s.getItemStyle(),f.setStyle({text:c[u],textAlign:s.get("textAlign"),textBorderRadius:s.get("textBorderRadius"),textPadding:s.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&f.attr("tooltip",e.extend({content:c[u],formatter:g.get("formatter",!0)||function(){return c[u]},formatterParams:{componentType:"toolbox",name:u,title:c[u],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),r.setHoverStyle(f),t.get("showTitle")&&(f.__title=c[u],f.on("mouseover",(function(){var e=s.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:s.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:s.get("textBackgroundColor"),textPosition:s.get("textPosition")||n})})).on("mouseout",(function(){f.setStyle({textFill:null,textBackgroundColor:null})}))),f.trigger(n.get("iconStatus."+u)||"normal"),d.add(f),f.on("click",e.bind(i.onclick,i,l,h,u)),v[u]=f}))}},updateView:function(t,n,i,r){e.each(this._features,(function(t){t.updateView&&t.updateView(t.model,n,i,r)}))},remove:function(t,n){e.each(this._features,(function(e){e.remove&&e.remove(t,n)})),this.group.removeAll()},dispose:function(t,n){e.each(this._features,(function(e){e.dispose&&e.dispose(t,n)}))}});function u(t){return 0===t.indexOf("my")}m7=l}(),function(){if(_7)return x7;_7=1;var t=mW(),e=bq(),n=g7(),i=e.toolbox.saveAsImage;function r(t){this.model=t}r.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:i.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:i.lang.slice()},r.prototype.unusable=!t.canvasSupported;var o=r.prototype;o.onclick=function(e,n){var i=this.model,r=i.get("name")||e.get("title.0.text")||"echarts",o="svg"===n.getZr().painter.getType()?"svg":i.get("type",!0)||"png",a=n.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!=typeof MouseEvent||t.browser.ie||t.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,r+"."+o)}else{var c=i.get("lang"),d='
';window.open().document.write(d)}else{var p=document.createElement("a");p.download=r+"."+o,p.target="_blank",p.href=a;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});p.dispatchEvent(f)}},n.register("saveAsImage",r);var a=r;x7=a}(),function(){if(w7)return b7;w7=1;var t=a$(),e=_W(),n=bq(),i=g7(),r=n.toolbox.magicType,o="__ec_magicType_stack__";function a(t){this.model=t}a.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.clone(r.title),option:{},seriesIndex:{}};var s=a.prototype;s.getIcons=function(){var t=this.model,n=t.get("icon"),i={};return e.each(t.get("type"),(function(t){n[t]&&(i[t]=n[t])})),i};var l={line:function(t,n,i,r){if("bar"===t)return e.merge({id:n,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.line")||{},!0)},bar:function(t,n,i,r){if("line"===t)return e.merge({id:n,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.bar")||{},!0)},stack:function(t,n,i,r){var a=i.get("stack")===o;if("line"===t||"bar"===t)return r.setIconStatus("stack",a?"normal":"emphasis"),e.merge({id:n,stack:a?"":o},r.get("option.stack")||{},!0)}},u=[["line","bar"],["stack"]];s.onclick=function(t,n,i){var a=this.model,s=a.get("seriesIndex."+i);if(l[i]){var h,c={series:[]},d=function(n){var r=n.subType,o=n.id,s=l[i](r,o,n,a);s&&(e.defaults(s,n.option),c.series.push(s));var u=n.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===i||"bar"===i)){var h=u.getAxesByScale("ordinal")[0];if(h){var d=h.dim+"Axis",p=t.queryComponents({mainType:d,index:n.get(name+"Index"),id:n.get(name+"Id")})[0].componentIndex;c[d]=c[d]||[];for(var f=0;f<=p;f++)c[d][p]=c[d][p]||{};c[d][p].boundaryGap="bar"===i}}};e.each(u,(function(t){e.indexOf(t,i)>=0&&e.each(t,(function(t){a.setIconStatus(t,"normal")}))})),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==s?null:{seriesIndex:s}},d),"stack"===i&&(h=c.series&&c.series[0]&&c.series[0].stack===o?e.merge({stack:r.title.tiled},r.title):e.clone(r.title)),n.dispatchAction({type:"changeMagicType",currentType:i,newOption:c,newTitle:h,featureName:"magicType"})}},t.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),i.register("magicType",a);var h=a;b7=h}(),function(){if(M7)return S7;M7=1;var t=a$(),e=_W(),n=GW(),i=bq(),r=g7(),o=i.toolbox.dataView,a=new Array(60).join("-"),s="\t";function l(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function u(t){var n=[];return e.each(t,(function(t,i){var r=t.categoryAxis,o=t.valueAxis.dim,a=[" "].concat(e.map(t.series,(function(t){return t.name}))),l=[r.model.getCategories()];e.each(t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var u=[a.join(s)],h=0;h=0)return!0}var f=new RegExp("["+s+"]+","g");function g(t){for(var n=t.split(/\n+/g),i=d(n.shift()).split(f),r=[],o=e.map(i,(function(t){return{name:t,data:[]}})),a=0;a1?"emphasis":"normal")}function v(t,e,n,r,o){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var s=new i(f(t.option),e,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(o,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!a&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}d._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},a=this.ecModel;this._brushController.updateCovers([]),new i(f(this.model.option),a,{include:["grid"]}).matchOutputRanges(t,a,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(s("x",n,e[0]),s("y",n,e[1])):s({lineX:"x",lineY:"y"}[i],n,e)}})),r.push(a,n),this._dispatchZoomAction(n)}function s(t,e,i){var r=e.getAxis(t),s=r.model,u=l(t,s,a),h=u.findRepresentativeAxisProxy(s).getMinMaxSpan();null==h.minValueSpan&&null==h.maxValueSpan||(i=o(0,i.slice(),r.scale.getExtent(),0,h.minValueSpan,h.maxValueSpan)),u&&(n[u.id]={dataZoomId:u.id,startValue:i[0],endValue:i[1]})}function l(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}},d._dispatchZoomAction=function(t){var n=[];u(t,(function(t,i){n.push(e.clone(t))})),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},s.register("dataZoom",c),t.registerPreprocessor((function(t){if(t){var n=t.dataZoom||(t.dataZoom=[]);e.isArray(n)||(t.dataZoom=n=[n]);var i=t.toolbox;if(i&&(e.isArray(i)&&(i=i[0]),i&&i.feature)){var r=i.feature.dataZoom;o("xAxis",r),o("yAxis",r)}}function o(t,i){if(i){var r=t+"Index",o=i[r];null==o||"all"===o||e.isArray(o)||(o=!1===o||"none"===o?[]:[o]),a(t,(function(a,s){if(null==o||"all"===o||-1!==e.indexOf(o,s)){var l={type:"select",$fromToolbox:!0,filterMode:i.filterMode||"filter",id:h+t+s};l[r]=s,n.push(l)}}))}}function a(n,i){var r=t[n];e.isArray(r)||(r=r?[r]:[]),u(r,i)}})),i9=c}(),function(){if(a9)return o9;a9=1;var t=a$(),e=P7(),n=bq(),i=g7(),r=n.toolbox.restore;function o(t){this.model=t}o.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.title};var a=o.prototype;a.onclick=function(t,n,i){e.clear(t),n.dispatchAction({type:"restore",from:this.uid})},i.register("restore",o),t.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")})),o9=o}()),function(){if(y9)return D9;y9=1;var t=a$();X6(),function(){if(c9)return h9;c9=1;var t=a$(),e=t.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});h9=e}(),function(){if(m9)return v9;m9=1;var t=a$(),e=_W(),n=mW(),i=function(){if(p9)return d9;p9=1;var t=_W(),e=aU(),n=GW(),i=BW(),r=mW(),o=nj(),a=t.each,s=o.toCamelCase,l=["","-webkit-","-moz-","-o-"],u="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function h(e){var n="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+e+"s "+n+",top "+e+"s "+n;return t.map(l,(function(t){return t+"transition:"+i})).join(";")}function c(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*n/2)),n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),s=t.get("textShadowBlur")||0,l=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return s&&e.push("text-shadow:"+l+"px "+u+"px "+s+"px "+o),a(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function d(t){var n=[],i=t.get("transitionDuration"),l=t.get("backgroundColor"),u=t.getModel("textStyle"),d=t.get("padding");return i&&n.push(h(i)),l&&(r.canvasSupported?n.push("background-Color:"+l):(n.push("background-Color:#"+e.toHex(l)),n.push("filter:alpha(opacity=70)"))),a(["width","color","radius"],(function(e){var i="border-"+e,r=s(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))})),n.push(c(u)),null!=d&&n.push("padding:"+o.normalizeCssArray(d).join("px ")+"px"),n.join(";")+";"}function p(t,e,n,r,o){var a=e&&e.painter;if(n){var s=a&&a.getViewportRoot();s&&i.transformLocalCoord(t,s,document.body,r,o)}else{t[0]=r,t[1]=o;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function f(t,e,i){if(r.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var a=this._zr=e.getZr(),s=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],p(this._styleCoord,a,s,e.getWidth()/2,e.getHeight()/2),s?document.body.appendChild(o):t.appendChild(o),this._container=t,this._show=!1,this._hideTimeout;var l=this;o.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},o.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=a.handler,i=a.painter.getViewportRoot();n.normalizeEvent(i,t,!0),e.dispatch("mousemove",t)}},o.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}f.prototype={constructor:f,_enterable:!0,update:function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText=u+d(t)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._styleCoord;p(n,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var g=f;return d9=g}(),r=function(){if(g9)return f9;g9=1;var t=_W(),e=RZ(),n=EX();function i(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function r(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],i(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}r.prototype={constructor:r,_enterable:!0,update:function(t){t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,i,r){this.el&&this._zr.remove(this.el);for(var o={},a=t,s="{marker",l="|}",u=a.indexOf(s);u>=0;){var h=a.indexOf(l),c=a.substr(u+s.length,h-u-s.length);c.indexOf("sub")>-1?o["marker"+c]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:i[c],textOffset:[3,0]}:o["marker"+c]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:i[c]},u=(a=a.substr(h+1)).indexOf("{marker")}var d=r.getModel("textStyle"),p=d.get("fontSize"),f=r.get("textLineHeight");null==f&&(f=Math.round(3*p/2)),this.el=new e({style:n.setTextStyle({},d,{rich:o,text:t,textBackgroundColor:r.get("backgroundColor"),textBorderRadius:r.get("borderRadius"),textFill:r.get("textStyle.color"),textPadding:r.get("padding"),textLineHeight:f}),z:r.get("z")}),this._zr.add(this.el);var g=this;this.el.on("mouseover",(function(){g._enterable&&(clearTimeout(g._hideTimeout),g._show=!0),g._inContent=!0})),this.el.on("mouseout",(function(){g._enterable&&g._show&&g.hideLater(g._hideDelay),g._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var n=this._styleCoord;i(n,this._zr,t,e),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var o=r;return f9=o}(),o=nj(),a=UX(),s=EX(),l=y6(),u=ij(),h=zX(),c=T6(),d=EK(),p=Y6(),f=CY().getTooltipRenderMode,g=e.bind,v=e.each,m=a.parsePercent,y=new s.Rect({shape:{x:-1,y:-1,width:2,height:2}}),x=t.extendComponentView({type:"tooltip",init:function(t,e){if(!n.node){var o,a=t.getComponent("tooltip"),s=a.get("renderMode");this._renderMode=f(s),"html"===this._renderMode?(o=new i(e.getDom(),e,{appendToBody:a.get("appendToBody",!0)}),this._newLine="
"):(o=new r(e),this._newLine="\n"),this._tooltipContent=o}},render:function(t,e,i){if(!n.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");c.register("itemTooltip",this._api,g((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,i,r){if(r.from!==this.uid&&!n.node){var o=b(r,i);this._ticket="";var a=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var s=y;s.position=[r.x,r.y],s.update(),s.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:s},o)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,r))return;var u=l(r,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,position:r.position,target:u.el},o)}else null!=r.x&&null!=r.y&&(i.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:i.getZr().findHover(r.x,r.y).target},o))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(b(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===(t=_([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,n){var i=t.get("showDelay");n=e.bind(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},_showAxisTooltip:function(t,n){var i=this._ecModel,r=this._tooltipModel,a=[n.offsetX,n.offsetY],s=[],l=[],u=_([n.tooltipOption,r]),h=this._renderMode,c=this._newLine,f={};v(t,(function(t){v(t.dataByAxis,(function(t){var n=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,a=[];if(n&&null!=r){var u=p.getValueLabel(r,n.axis,i,t.seriesDataIndices,t.valueLabelOpt);e.each(t.seriesDataIndices,(function(o){var s=i.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,p=s&&s.getDataParams(c);if(p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=d.getAxisRawValue(n.axis,r),p.axisValueLabel=u,p){l.push(p);var g,v=s.formatTooltip(c,!0,null,h);if(e.isObject(v)){g=v.html;var m=v.markers;e.merge(f,m)}else g=v;a.push(g)}}));var g=u;"html"!==h?s.push(a.join(c)):s.push((g?o.encodeHTML(g)+c:"")+a.join(c))}}))}),this),s.reverse(),s=s.join(this._newLine+this._newLine);var g=n.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,g,a[0],a[1],this._tooltipContent,l):this._showTooltipContent(u,s,l,Math.random(),a[0],a[1],g,void 0,f)}))},_showSeriesItemTooltip:function(t,n,i){var r=this._ecModel,o=n.seriesIndex,a=r.getSeriesByIndex(o),s=n.dataModel||a,l=n.dataIndex,u=n.dataType,h=s.getData(u),c=_([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),d=c.get("trigger");if(null==d||"item"===d){var p,f,g=s.getDataParams(l,u),v=s.formatTooltip(l,!1,u,this._renderMode);e.isObject(v)?(p=v.html,f=v.markers):(p=v,f=null);var m="item_"+s.name+"_"+l;this._showOrMove(c,(function(){this._showTooltipContent(c,p,g,m,t.offsetX,t.offsetY,t.position,t.target,f)})),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;"string"==typeof i&&(i={content:i,formatter:i});var r=new h(i,this._tooltipModel,this._ecModel),o=r.get("content"),a=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},a,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,a,s,l,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent,c=t.get("formatter");s=s||t.get("position");var d=e;if(c&&"string"==typeof c)d=o.formatTpl(c,n,!0);else if("function"==typeof c){var p=g((function(e,i){e===this._ticket&&(h.setContent(i,u,t),this._updatePosition(t,s,r,a,h,n,l))}),this);this._ticket=i,d=c(n,i,p)}h.setContent(d,u,t),h.show(t),this._updatePosition(t,s,r,a,h,n,l)}},_updatePosition:function(t,n,i,r,o,a,s){var l=this._api.getWidth(),h=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),d=t.get("align"),p=t.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"==typeof n&&(n=n([i,r],a,o.el,f,{viewSize:[l,h],contentSize:c.slice()})),e.isArray(n))i=m(n[0],l),r=m(n[1],h);else if(e.isObject(n)){n.width=c[0],n.height=c[1];var g=u.getLayoutRect(n,{width:l,height:h});i=g.x,r=g.y,d=null,p=null}else if("string"==typeof n&&s)i=(v=M(n,f,c))[0],r=v[1];else{var v;i=(v=w(i,r,o,l,h,d?null:20,p?null:20))[0],r=v[1]}d&&(i-=I(d)?c[0]/2:"right"===d?c[0]:0),p&&(r-=I(p)?c[1]/2:"bottom"===p?c[1]:0),t.get("confine")&&(i=(v=S(i,r,o,l,h))[0],r=v[1]),o.moveTo(i,r)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&v(e,(function(e,i){var r=e.dataByAxis||{},o=(t[i]||{}).dataByAxis||[];(n&=r.length===o.length)&&v(r,(function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&v(r,(function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){n.node||(this._tooltipContent.dispose(),c.unregister("itemTooltip",e))}});function _(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(h.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new h(n,e,e.ecModel))}return e}function b(t,n){return t.dispatchAction||e.bind(n.dispatchAction,n)}function w(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function S(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}function M(t,e,n){var i=n[0],r=n[1],o=5,a=0,s=0,l=e.width,u=e.height;switch(t){case"inside":a=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":a=e.x+l/2-i/2,s=e.y-r-o;break;case"bottom":a=e.x+l/2-i/2,s=e.y+u+o;break;case"left":a=e.x-i-o,s=e.y+u/2-r/2;break;case"right":a=e.x+l+o,s=e.y+u/2-r/2}return[a,s]}function I(t){return"center"===t||"middle"===t}v9=x}(),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))}(),X6(),function(){if(V9)return L9;V9=1;var t=a$(),e=function(){if(_9)return x9;_9=1;var t=_W(),e=["rect","polygon","keep","clear"];function n(n,r){var o=n&&n.brush;if(t.isArray(o)||(o=o?[o]:[]),o.length){var a=[];t.each(o,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(a=a.concat(e))}));var s=n&&n.toolbox;t.isArray(s)&&(s=s[0]),s||(s={feature:{}},n.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),h=u.type||(u.type=[]);h.push.apply(h,a),i(h),r&&!h.length&&h.push.apply(h,e)}}function i(e){var n={};t.each(e,(function(t){n[t]=1})),e.length=0,t.each(n,(function(t,n){e.push(n)}))}return x9=n}();R9(),function(){if(T9)return I9;T9=1,hW().__DEV__;var t=a$(),e=_W(),n=O9(),i=zX(),r=["#ddd"],o=t.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&n.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:r},o.hasOwnProperty("liftZ")||(o.liftZ=5)},setAreas:function(t){t&&(this.areas=e.map(t,(function(t){return a(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=a(this.option,t),this.brushType=this.brushOption.brushType}});function a(t,n){return e.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new i(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},n,!0)}var s=o;I9=s}(),function(){if(A9)return C9;A9=1;var t=a$(),e=_W(),n=$5(),i=R9().layoutCovers,r=t.extendComponentView({type:"brush",init:function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new n(i.getZr())).on("brush",e.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,o.apply(this,arguments)},updateTransform:function(t,e){return i(e),o.apply(this,arguments)},updateView:o,dispose:function(){this._brushController.dispose()},_onBrush:function(t,n){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:e.clone(t),$from:i}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:e.clone(t),$from:i})}});function o(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}C9=r}(),function(){if(N9)return ett;N9=1;var t=a$();t.registerAction({type:"brush",event:"brush"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))}(),function(){if(z9)return E9;z9=1;var t=_W(),e=g7(),n=bq(),i=n.toolbox.brush;function r(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}r.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.clone(i.title)};var o=r.prototype;o.render=o.updateView=function(e,n,i){var r,o,a;n.eachComponent({mainType:"brush"},(function(t){r=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length})),this._brushType=r,this._brushMode=o,t.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===r)?"emphasis":"normal")}))},o.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return t.each(e.get("type",!0),(function(t){n[t]&&(i[t]=n[t])})),i},o.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.register("brush",r),E9=r}(),t.registerPreprocessor(e)}(),function(){if(B9)return ntt;B9=1;var t=_W(),e=a$(),n=EX(),i=ij().getLayoutRect,r=nj().windowOpen;e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e.extendComponentView({type:"title",render:function(e,o,a){if(this.group.removeAll(),e.get("show")){var s=this.group,l=e.getModel("textStyle"),u=e.getModel("subtextStyle"),h=e.get("textAlign"),c=t.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),d=new n.Text({style:n.setTextStyle({},l,{text:e.get("text"),textFill:l.getTextColor()},{disableBox:!0}),z2:10}),p=d.getBoundingRect(),f=e.get("subtext"),g=new n.Text({style:n.setTextStyle({},u,{text:f,textFill:u.getTextColor(),y:p.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),m=e.get("sublink"),y=e.get("triggerEvent",!0);d.silent=!v&&!y,g.silent=!m&&!y,v&&d.on("click",(function(){r(v,"_"+e.get("target"))})),m&&g.on("click",(function(){r(m,"_"+e.get("subtarget"))})),d.eventData=g.eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,s.add(d),f&&s.add(g);var x=s.getBoundingRect(),_=e.getBoxLayoutParams();_.width=x.width,_.height=x.height;var b=i(_,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));h||("middle"===(h=e.get("left")||e.get("right"))&&(h="center"),"right"===h?b.x+=b.width:"center"===h&&(b.x+=b.width/2)),c||("center"===(c=e.get("top")||e.get("bottom"))&&(c="middle"),"bottom"===c?b.y+=b.height:"middle"===c&&(b.y+=b.height/2),c=c||"top"),s.attr("position",[b.x,b.y]);var w={textAlign:h,textVerticalAlign:c};d.setStyle(w),g.setStyle(w),x=s.getBoundingRect();var S=b.margin,M=e.getItemStyle(["color","opacity"]);M.fill=e.get("backgroundColor");var I=new n.Rect({shape:{x:x.x-S[3],y:x.y-S[0],width:x.width+S[1]+S[3],height:x.height+S[0]+S[2],r:e.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});s.add(I)}}})}(),function(){if(ttt)return itt;ttt=1;var t=a$(),e=function(){if(F9)return G9;F9=1;var t=_W();function e(e){var i=e&&e.timeline;t.isArray(i)||(i=i?[i]:[]),t.each(i,(function(t){t&&n(t)}))}function n(e){var n=e.type,o={number:"value",time:"time"};if(o[n]&&(e.axisType=o[n],delete e.type),i(e),r(e,"controlPosition")){var a=e.controlStyle||(e.controlStyle={});r(a,"position")||(a.position=e.controlPosition),"none"!==a.position||r(a,"show")||(a.show=!1,delete a.position),delete e.controlPosition}t.each(e.data||[],(function(e){t.isObject(e)&&!t.isArray(e)&&(!r(e,"value")&&r(e,"name")&&(e.value=e.name),i(e))}))}function i(e){var n=e.itemStyle||(e.itemStyle={}),i=n.emphasis||(n.emphasis={}),o=e.label||e.label||{},a=o.normal||(o.normal={}),s={normal:1,emphasis:1};t.each(o,(function(t,e){s[e]||r(a,e)||(a[e]=t)})),i.label&&!r(o,"emphasis")&&(o.emphasis=i.label,delete i.label)}function r(t,e){return t.hasOwnProperty(e)}return G9=e}();(function(){if(H9)return rtt;H9=1;var t=rj();t.registerSubTypeDefaulter("timeline",(function(){return"slider"}))})(),function(){if(W9)return ott;W9=1;var t=a$(),e=_W();t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,n){var i=n.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),n.resetOption("timeline"),e.defaults({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(),function(){if(X9)return Z9;X9=1;var t=_W(),e=function(){if(Y9)return U9;Y9=1;var t=_W(),e=rj(),n=Qq(),i=CY(),r=e.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){r.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,r=e.data||[],o=e.axisType,a=this._names=[];if("category"===o){var s=[];t.each(r,(function(e,n){var r,o=i.getDataItemValue(e);t.isObject(e)?(r=t.clone(e)).value=n:r=n,s.push(r),t.isString(o)||null!=o&&!isNaN(o)||(o=""),a.push(o+"")})),r=s}var l={category:"ordinal",time:"time"}[o]||"number";(this._data=new n([{name:"value",type:l}],this)).initData(r,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),o=r;return U9=o}(),n=Fj(),i=e.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});t.mixin(i,n);var r=i;Z9=r}(),function(){if(Q9)return J9;Q9=1;var t=_W(),e=LU(),n=KW(),i=EX(),r=ij(),o=att(),a=function(){if($9)return K9;$9=1;var t=_W(),e=r$(),n=function(t,n,i,r){e.call(this,t,n,i),this.type=r||"value",this.model=null};n.prototype={constructor:n,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},t.inherits(n,e);var i=n;return K9=i}(),s=FK().createSymbol,l=EK(),u=UX(),h=nj().encodeHTML,c=t.bind,d=t.each,p=Math.PI,f=o.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return h(s.scale.getLabel(t))},d(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,o,s,t)}),this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),r=g(t,e);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:p/2},d="vertical"===i?r.height:r.width,f=t.getModel("controlStyle"),v=f.get("show",!0),m=v?f.get("itemSize"):0,y=v?f.get("itemGap"):0,x=m+y,_=t.get("label.rotate")||0;_=_*p/180;var b=f.get("position",!0),w=v&&f.get("showPlayBtn",!0),S=v&&f.get("showPrevBtn",!0),M=v&&f.get("showNextBtn",!0),I=0,T=d;return"left"===b||"bottom"===b?(w&&(o=[0,0],I+=x),S&&(a=[I,0],I+=x),M&&(s=[T-m,0],T-=x)):(w&&(o=[T-m,0],T-=x),S&&(a=[0,0],I+=x),M&&(s=[T-m,0],T-=x)),l=[I,T],t.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:c[i],labelRotation:_,labelPosOpt:n,labelAlign:t.get("label.align")||u[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||h[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:m,controlGap:y}},_position:function(t,e){var i=this._mainGroup,r=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var a=n.create(),s=o.x,l=o.y+o.height;n.translate(a,a,[-s,-l]),n.rotate(a,a,-p/2),n.translate(a,a,[s,l]),(o=o.clone()).applyTransform(a)}var u=y(o),h=y(i.getBoundingRect()),c=y(r.getBoundingRect()),d=i.position,f=r.position;f[0]=d[0]=u[0][0];var g,v=t.labelPosOpt;function m(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}isNaN(v)?(x(d,h,u,1,g="+"===v?0:1),x(f,c,u,1,1-g)):(x(d,h,u,1,g=v>=0?0:1),f[1]=d[1]+v),i.attr("position",d),r.attr("position",f),i.rotation=r.rotation=t.rotation,m(i),m(r)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=l.createScaleByModel(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return t}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var s=new a("value",r,t.axisExtent,i);return s.model=e,s},_createGroup:function(t){var e=this["_"+t]=new i.Group;return this.group.add(e),e},_renderAxisLine:function(e,n,r,o){var a=r.getExtent();o.get("lineStyle.show")&&n.add(new i.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:t.extend({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,r){var o=r.getData(),a=n.scale.getTicks();d(a,(function(t){var a=n.dataToCoord(t),s=o.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),h={position:[a,0],onclick:c(this._changeTimeline,this,t)},d=m(s,l,e,h);i.setHoverStyle(d,u.getItemStyle()),s.get("tooltip")?(d.dataIndex=t,d.dataModel=r):d.dataIndex=d.dataModel=null}),this)},_renderAxisLabel:function(t,e,n,r){if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();d(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel("emphasis.label"),h=n.dataToCoord(r.tickValue),d=new i.Text({position:[h,0],rotation:t.labelRotation-t.rotation,onclick:c(this._changeTimeline,this,a),silent:!1});i.setTextStyle(d.style,l,{text:r.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(d),i.setHoverStyle(d,i.setTextStyle({},u))}),this)}},_renderControl:function(t,e,n,r){var o=t.controlSize,a=t.rotation,s=r.getModel("controlStyle").getItemStyle(),l=r.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-o/2,o,o],h=r.getPlayState(),d=r.get("inverse",!0);function p(t,n,h,c){if(t){var d=v(r,n,u,{position:t,origin:[o/2,0],rotation:c?-a:0,rectHover:!0,style:s,onclick:h});e.add(d),i.setHoverStyle(d,l)}}p(t.nextBtnPosition,"controlStyle.nextIcon",c(this._changeTimeline,this,d?"-":"+")),p(t.prevBtnPosition,"controlStyle.prevIcon",c(this._changeTimeline,this,d?"+":"-")),p(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),c(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=c(s._handlePointerDrag,s),t.ondragend=c(s._handlePointerDragend,s),y(t,o,n,i,!0)},onUpdate:function(t){y(t,o,n,i)}};this._currentPointer=m(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=u.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&"number"==typeof h&&(h=+h.toFixed(Math.min(m,20))),g.coord[p]=v.coord[p]=h,o=[g,v,{type:l,valueIndex:o.valueIndex,value:h}]}return(o=[i.dataTransform(e,o[0]),i.dataTransform(e,o[1]),t.extend({},o[2])])[2].type=o[2].type||"",t.merge(o[2],o[0]),t.merge(o[2],o[1]),o};function l(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t,o=i.dimensions[t];return l(e[r])&&l(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function h(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(u(1,n,r,t)||u(0,n,r,t)))return!0}return i.dataFilter(t,e[0])&&i.dataFilter(t,e[1])}function c(t,e,i,r,o){var a,s=r.coordinateSystem,u=t.getItemModel(e),h=n.parsePercent(u.get("x"),o.getWidth()),c=n.parsePercent(u.get("y"),o.getHeight());if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,p=t.get(d[0],e),f=t.get(d[1],e);a=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),v=s.getAxis("y");d=s.dimensions,l(t.get(d[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[i?0:1]):l(t.get(d[1],e))&&(a[1]=v.toGlobalCoord(v.getExtent()[i?0:1]))}isNaN(h)||(a[0]=h),isNaN(c)||(a[1]=c)}else a=[h,c];t.setItemLayout(e,a)}var d=o.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each((function(e){c(r,e,!0,t,n),c(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(e,n,i,o){var a=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,new r);this.group.add(h.group);var d=p(a,e,n),f=d.from,g=d.to,v=d.line;n.__from=f,n.__to=g,n.setData(v);var m=n.get("symbol"),y=n.get("symbolSize");function x(t,n,i){var r=t.getItemModel(n);c(t,n,i,e,o),t.setItemVisual(n,{symbolRotate:r.get("symbolRotate"),symbolSize:r.get("symbolSize")||y[i?0:1],symbol:r.get("symbol",!0)||m[i?0:1],color:r.get("itemStyle.color")||l.getVisual("color")})}t.isArray(m)||(m=[m,m]),"number"==typeof y&&(y=[y,y]),d.from.each((function(t){x(f,t,!0),x(g,t,!1)})),v.each((function(t){var e=v.getItemModel(t).get("lineStyle.color");v.setItemVisual(t,{color:e||f.getItemVisual(t,"color")}),v.setItemLayout(t,[f.getItemLayout(t),g.getItemLayout(t)]),v.setItemVisual(t,{fromSymbolRotate:f.getItemVisual(t,"symbolRotate"),fromSymbolSize:f.getItemVisual(t,"symbolSize"),fromSymbol:f.getItemVisual(t,"symbol"),toSymbolRotate:g.getItemVisual(t,"symbolRotate"),toSymbolSize:g.getItemVisual(t,"symbolSize"),toSymbol:g.getItemVisual(t,"symbol")})})),h.updateData(v),d.line.eachItemGraphicEl((function(t,e){t.traverse((function(t){t.dataModel=n}))})),h.__keep=!0,h.group.silent=n.get("silent")||e.get("silent")}});function p(n,r,o){var a;a=n?t.map(n&&n.dimensions,(function(e){var n=r.getData().getDimensionInfo(r.getData().mapDimension(e))||{};return t.defaults({name:e},n)})):[{name:"value",type:"float"}];var l=new e(a,o),u=new e(a,o),c=new e([],o),d=t.map(o.get("data"),t.curry(s,r,n,o));n&&(d=t.filter(d,t.curry(h,n)));var p=n?i.dimValueGetter:function(t){return t.value};return l.initData(t.map(d,(function(t){return t[0]})),null,p),u.initData(t.map(d,(function(t){return t[1]})),null,p),c.initData(t.map(d,(function(t){return t[2]}))),c.hasItemOption=!0,{from:l,to:u,line:c}}Mtt=d}(),t.registerPreprocessor((function(t){t.markLine=t.markLine||{}}))}(),function(){if(Ltt)return Rtt;Ltt=1;var t=a$();(function(){if(Att)return Ctt;Att=1;var t=dtt(),e=t.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});Ctt=e})(),function(){if(Dtt)return Ntt;Dtt=1;var t=_W(),e=aU(),n=Qq(),i=UX(),r=EX(),o=_tt(),a=btt(),s=function(e,n,i,r){var a=o.dataTransform(e,r[0]),s=o.dataTransform(e,r[1]),l=t.retrieve,u=a.coord,h=s.coord;u[0]=l(u[0],-1/0),u[1]=l(u[1],-1/0),h[0]=l(h[0],1/0),h[1]=l(h[1],1/0);var c=t.mergeAll([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c};function l(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t;return l(e[r])&&l(n[r])}function h(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!u(1,n,i)&&!u(0,n,i))||o.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||o.dataFilter(t,{coord:i,x:e.x1,y:e.y1})}function c(t,e,n,r,o){var a,s=r.coordinateSystem,u=t.getItemModel(e),h=i.parsePercent(u.get(n[0]),o.getWidth()),c=i.parsePercent(u.get(n[1]),o.getHeight());if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(n,e));else{var d=[g=t.get(n[0],e),v=t.get(n[1],e)];s.clampData&&s.clampData(d,d),a=s.dataToPoint(d,!0)}if("cartesian2d"===s.type){var p=s.getAxis("x"),f=s.getAxis("y"),g=t.get(n[0],e),v=t.get(n[1],e);l(g)?a[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):l(v)&&(a[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(h)||(a[0]=h),isNaN(c)||(a[1]=c)}else a=[h,c];return a}var d=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function p(e,i,r){var o,a,l=["x0","y0","x1","y1"];e?(o=t.map(e&&e.dimensions,(function(e){var n=i.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return t.defaults({name:e},r)})),a=new n(t.map(l,(function(t,e){return{name:t,type:o[e%2].type}})),r)):a=new n(o=[{name:"value",type:"float"}],r);var u=t.map(r.get("data"),t.curry(s,i,e,r));e&&(u=t.filter(u,t.curry(h,e)));var c=e?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return a.initData(u,null,c),a.hasItemOption=!0,a}a.extend({type:"markArea",updateTransform:function(e,n,i){n.eachSeries((function(e){var n=e.markAreaModel;if(n){var r=n.getData();r.each((function(n){var o=t.map(d,(function(t){return c(r,n,t,e,i)}));r.setItemLayout(n,o),r.getItemGraphicEl(n).setShape("points",o)}))}}),this)},renderSeries:function(n,i,o,a){var s=n.coordinateSystem,u=n.id,h=n.getData(),f=this.markerGroupMap,g=f.get(u)||f.set(u,{group:new r.Group});this.group.add(g.group),g.__keep=!0;var v=p(s,n,i);i.setData(v),v.each((function(e){var i=t.map(d,(function(t){return c(v,e,t,n,a)})),r=!0;t.each(d,(function(t){if(r){var n=v.get(t[0],e),i=v.get(t[1],e);(l(n)||s.getAxis("x").containData(n))&&(l(i)||s.getAxis("y").containData(i))&&(r=!1)}})),v.setItemLayout(e,{points:i,allClipped:r}),v.setItemVisual(e,{color:h.getVisual("color")})})),v.diff(g.__data).add((function(t){var e=v.getItemLayout(t);if(!e.allClipped){var n=new r.Polygon({shape:{points:e.points}});v.setItemGraphicEl(t,n),g.group.add(n)}})).update((function(t,e){var n=g.__data.getItemGraphicEl(e),o=v.getItemLayout(t);o.allClipped?n&&g.group.remove(n):(n?r.updateProps(n,{shape:{points:o.points}},i,t):n=new r.Polygon({shape:{points:o.points}}),v.setItemGraphicEl(t,n),g.group.add(n))})).remove((function(t){var e=g.__data.getItemGraphicEl(t);g.group.remove(e)})).execute(),v.eachItemGraphicEl((function(n,o){var a=v.getItemModel(o),s=a.getModel("label"),l=a.getModel("emphasis.label"),u=v.getItemVisual(o,"color");n.useStyle(t.defaults(a.getModel("itemStyle").getItemStyle(),{fill:e.modifyAlpha(u,.4),stroke:u})),n.hoverStyle=a.getModel("emphasis.itemStyle").getItemStyle(),r.setLabelStyle(n.style,n.hoverStyle,s,l,{labelFetcher:i,labelDataIndex:o,defaultText:v.getName(o)||"",isRectText:!0,autoColor:u}),r.setHoverStyle(n,{}),n.dataModel=i})),g.__data=v,g.group.silent=i.get("silent")||n.get("silent")}})}(),t.registerPreprocessor((function(t){t.markArea=t.markArea||{}}))}(),Qtt||(Qtt=1,$tt(),function(){if(Ytt)return Utt;Ytt=1;var t=ztt(),e=ij(),n=e.mergeLayoutParam,i=e.getLayoutParams,r=t.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,n,a){var s=i(t);r.superCall(this,"init",t,e,n,a),o(this,t,s)},mergeOption:function(t,e){r.superCall(this,"mergeOption",t,e),o(this,this.option,t)}});function o(t,e,i){var r=[1,1];r[t.getOrient().index]=0,n(e,i,{type:"box",ignoreSize:r})}var a=r;Utt=a}(),function(){if(Xtt)return Ztt;Xtt=1;var t=_W(),e=EX(),n=ij(),i=qtt(),r=e.Group,o=["width","height"],a=["x","y"],s=i.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){s.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new r),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new r),this._showController},resetInner:function(){s.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(n,i,r,o,a,l,u){var h=this;s.superCall(this,"renderInner",n,i,r,o,a,l,u);var c=this._controllerGroup,d=i.get("pageIconSize",!0);t.isArray(d)||(d=[d,d]),f("pagePrev",0);var p=i.getModel("pageTextStyle");function f(n,r){var a=n+"DataIndex",s=e.createIcon(i.get("pageIcons",!0)[i.getOrient().name][r],{onclick:t.bind(h._pageGo,h,a,i,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=n,c.add(s)}c.add(new e.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),f("pageNext",1)},layoutInner:function(e,i,r,s,l,u){var h=this.getSelectorGroup(),c=e.getOrient().index,d=o[c],p=a[c],f=o[1-c],g=a[1-c];l&&n.box("horizontal",h,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),m=h.getBoundingRect(),y=[-m.x,-m.y],x=t.clone(r);l&&(x[d]=r[d]-m[d]-v);var _=this._layoutContentAndController(e,s,x,c,d,f,g);if(l){if("end"===u)y[c]+=_[d]+v;else{var b=m[d]+v;y[c]-=b,_[p]-=b}_[d]+=m[d]+v,y[1-c]+=_[g]+_[f]/2-m[f]/2,_[f]=Math.max(_[f],m[f]),_[g]=Math.min(_[g],m[g]+y[1-c]),h.attr("position",y)}return _},_layoutContentAndController:function(i,r,o,a,s,l,u){var h=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;n.box(i.get("orient"),h,i.get("itemGap"),a?o.width:null,a?null:o.height),n.box("horizontal",d,i.get("pageButtonItemGap",!0));var p=h.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[s]>o[s],v=[-p.x,-p.y];r||(v[a]=h.position[a]);var m=[0,0],y=[-f.x,-f.y],x=t.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));g&&("end"===i.get("pageButtonPosition",!0)?y[a]+=o[s]-f[s]:m[a]+=f[s]+x),y[1-a]+=p[l]/2-f[l]/2,h.attr("position",v),c.attr("position",m),d.attr("position",y);var _={x:0,y:0};if(_[s]=g?o[s]:p[s],_[l]=Math.max(p[l],f[l]),_[u]=Math.min(0,f[u]+y[1-a]),c.__rectSize=o[s],g){var b={x:0,y:0};b[s]=Math.max(o[s]-f[s]-x,0),b[l]=_[l],c.setClipPath(new e.Rect({shape:b})),c.__rectSize=b[s]}else d.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(i);return null!=w.pageIndex&&e.updateProps(h,{position:w.contentPosition},!!g&&i),this._updatePageInfoView(i,w),_},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(e,n){var i=this._controllerGroup;t.each(["pagePrev","pageNext"],(function(t){var r=null!=n[t+"DataIndex"],o=i.childOfName(t);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var r=i.childOfName("pageText"),o=e.get("pageFormatter"),a=n.pageIndex,s=null!=a?a+1:0,l=n.pageCount;r&&o&&r.setStyle("text",t.isString(o)?o.replace("{current}",s).replace("{total}",l):o({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,s=o[r],l=a[r],u=this._findTargetItemIndex(e),h=n.children(),c=h[u],d=h.length,p=d?1:0,f={contentPosition:n.position.slice(),pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[r]=-g.s;for(var v=u+1,m=g,y=g,x=null;v<=d;++v)(!(x=_(h[v]))&&y.e>m.s+i||x&&!b(x,m.s))&&(m=y.i>m.i?y:x)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=m.i),++f.pageCount),y=x;for(v=u-1,m=g,y=g,x=null;v>=-1;--v)(x=_(h[v]))&&b(y,x.s)||!(m.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n}}),l=s;Ztt=l}(),function(){if(Jtt)return oet;Jtt=1;var t=a$();t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}()),$tt(),get||(get=1,set(),xet()),xet(),set(),int||(int=1,$et(),ont()),$et(),ont(),function(){if(hnt)return cnt;hnt=1,function(){if(snt)return dnt;snt=1;var t=mW(),e=CW().applyTransform,n=LU(),i=aU(),r=tY(),o=yY(),a=xY(),s=_Y(),l=bY(),u=RZ(),h=kZ(),c=jY(),d=OX(),p=fnt(),f=c.CMD,g=Math.round,v=Math.sqrt,m=Math.abs,y=Math.cos,x=Math.sin,_=Math.max;if(!t.canvasSupported){var b=",",w="progid:DXImageTransform.Microsoft",S=21600,M=S/2,I=1e5,T=1e3,C=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=S+","+S,t.coordorigin="0,0"},A=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},D=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},L=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},k=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},P=function(t,e,n){return(parseFloat(t)||0)*I+(parseFloat(e)||0)*T+n},O=o.parsePercent,R=function(t,e,n){var r=i.parse(e);n=+n,isNaN(n)&&(n=1),r&&(t.color=D(r[0],r[1],r[2]),t.opacity=n*r[3])},N=function(t){var e=i.parse(t);return[D(e[0],e[1],e[2]),e[3]]},E=function(t,n,i){var r=n.fill;if(null!=r)if(r instanceof d){var o,a=0,s=[0,0],l=0,u=1,h=i.getBoundingRect(),c=h.width,p=h.height;if("linear"===r.type){o="gradient";var f=i.transform,g=[r.x*c,r.y*p],v=[r.x2*c,r.y2*p];f&&(e(g,g,f),e(v,v,f));var m=v[0]-g[0],y=v[1]-g[1];(a=180*Math.atan2(m,y)/Math.PI)<0&&(a+=360),a<1e-6&&(a=0)}else{o="gradientradial",g=[r.x*c,r.y*p],f=i.transform;var x=i.scale,b=c,w=p;s=[(g[0]-h.x)/b,(g[1]-h.y)/w],f&&e(g,g,f),b/=x[0]*S,w/=x[1]*S;var M=_(b,w);l=0/M,u=2*r.r/M-l}var I=r.colorStops.slice();I.sort((function(t,e){return t.offset-e.offset}));for(var T=I.length,C=[],A=[],D=0;D=2){var P=C[0][0],O=C[1][0],E=C[0][1]*n.opacity,z=C[1][1]*n.opacity;t.type=o,t.method="none",t.focus="100%",t.angle=a,t.color=P,t.color2=O,t.colors=A.join(","),t.opacity=z,t.opacity2=E}"radial"===o&&(t.focusposition=s.join(","))}else R(t,r,n.opacity)},z=function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof d||R(t,e.stroke,e.opacity)},V=function(t,e,n,i){var r="fill"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof d&&k(t,o),o||(o=p.createNode(e)),r?E(o,n,i):z(o,n),L(t,o)):(t[r?"filled":"stroked"]="false",k(t,o))},B=[[],[],[]],G=function(t,n){var i,r,o,a,s,l,u=f.M,h=f.C,c=f.L,d=f.A,p=f.Q,m=[],_=t.data,w=t.len();for(a=0;a.01?W&&(U+=270/S):Math.abs(Y-z)<1e-4?W&&UE?A-=270/S:A+=270/S:W&&Yz?C+=270/S:C-=270/S),m.push(Z,g(((E-V)*O+k)*S-M),b,g(((z-G)*R+P)*S-M),b,g(((E+V)*O+k)*S-M),b,g(((z+G)*R+P)*S-M),b,g((U*O+k)*S-M),b,g((Y*R+P)*S-M),b,g((C*O+k)*S-M),b,g((A*R+P)*S-M)),s=C,l=A;break;case f.R:var X=B[0],j=B[1];X[0]=_[a++],X[1]=_[a++],j[0]=X[0]+_[a++],j[1]=X[1]+_[a++],n&&(e(X,X,n),e(j,j,n)),X[0]=g(X[0]*S-M),j[0]=g(j[0]*S-M),X[1]=g(X[1]*S-M),j[1]=g(j[1]*S-M),m.push(" m ",X[0],b,X[1]," l ",j[0],b,X[1]," l ",j[0],b,j[1]," l ",X[0],b,j[1]);break;case f.Z:m.push(" x ")}if(i>0){m.push(r);for(var q=0;qZ&&(Y=0,U={});var n,i=X.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(Gu){}e={style:i.fontStyle||W,variant:i.fontVariant||W,weight:i.fontWeight||W,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},U[t]=e,Y++}return e};r.$override("measureText",(function(t,e){var n=p.doc;H||((H=n.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",p.doc.body.appendChild(H));try{H.style.font=e}catch(i){}return H.innerHTML="",H.appendChild(n.createTextNode(t)),{width:H.offsetWidth}}));for(var q=new n,K=function(t,n,i,a){var s=this.style;this.__dirty&&o.normalizeTextStyle(s,!0);var l=s.text;if(null!=l&&(l+=""),l){if(s.rich){var u=r.parseRichText(l,s);l=[];for(var h=0;h18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,o);var a,s,l="sans-serif",u="12px "+l,h=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)o=r*t.length;else for(var l=0;l>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,a),l=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,d=h.left,p=h.top;a.push(d,p),l=l&&o&&d===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Jt(s,a):Jt(a,s))}(s,a,r);if(l)return l(t,n,i),!0}return!1}function ne(t){return"CANVAS"===t.nodeName.toUpperCase()}var ie=/([&<>"'])/g,re={"&":"&","<":"<",">":">",'"':""","'":"'"};function oe(t){return null==t?"":(t+"").replace(ie,function(t,e){return re[e]})}var ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=[],le=o.browser.firefox&&+o.browser.version.split(".")[0]<39;function ue(t,e,n,i){return n=n||{},i?he(t,e,n):le&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):he(t,e,n),n}function he(t,e,n){if(o.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ne(t)){var a=t.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=r-a.top)}if(ee(se,t,i,r))return n.zrX=se[0],void(n.zrY=se[1])}n.zrX=n.zrY=0}function ce(t){return t||window.event}function de(t,e,n){if(null!=(e=ce(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ue(t,r,e,n)}else{ue(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ae.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function pe(t,e,n,i){t.addEventListener(e,n,i)}function fe(t,e,n,i){t.removeEventListener(e,n,i)}var ge=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function ve(t){return 2===t.which||3===t.which}var me=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=ye(r)/ye(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function _e(){return[1,0,0,1,0,0]}function be(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function we(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Se(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Me(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Ie(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function Te(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Ce(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Ae(t){var e=[1,0,0,1,0,0];return we(e,t),e}const De=Object.freeze(Object.defineProperty({__proto__:null,clone:Ae,copy:we,create:_e,identity:be,invert:Ce,mul:Se,rotate:Ie,scale:Te,translate:Me},Symbol.toStringTag,{value:"Module"}));var Le=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),ke=Math.min,Pe=Math.max,Oe=new Le,Re=new Le,Ne=new Le,Ee=new Le,ze=new Le,Ve=new Le,Be=t("G",function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=ke(t.x,this.x),n=ke(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pe(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return Me(r,r,[-e.x,-e.y]),Te(r,r,[n,i]),Me(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,d=!(of&&(f=x,gf&&(f=_,m=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Oe.x=Ne.x=n.x,Oe.y=Ee.y=n.y,Re.x=Ee.x=n.x+n.width,Re.y=Ne.y=n.y+n.height,Oe.transform(i),Ee.transform(i),Re.transform(i),Ne.transform(i),e.x=ke(Oe.x,Re.x,Ne.x,Ee.x),e.y=ke(Oe.y,Re.y,Ne.y,Ee.y);var l=Pe(Oe.x,Re.x,Ne.x,Ee.x),u=Pe(Oe.y,Re.y,Ne.y,Ee.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}()),Ge="silent";function Fe(){ge(this.event)}var He=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return i(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(qt),We=function(t,e){this.x=t,this.y=e},Ue=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ye=new Be(0,0,0,0),Ze=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new We(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new He,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new jt(a),a}return i(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(z(Ue,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=qe(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new We(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new We(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Fe}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new We(t,e);if(je(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Be(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Ye.copy(h.getBoundingRect()),h.transform&&Ye.applyTransform(h.transform),Ye.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,d=2*Math.PI,p=0;p=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Xe(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Ge)){e.target=a;break}}}function qe(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}function Ke(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function $e(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Je(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Qe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function tn(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=Qe(t[h],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(c=Je(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[p+l]=t[d+l];if(0===i){m=!0;break}}if(t[c--]=a[h--],1===--s){m=!0;break}if(0!==(v=s-Je(t[u],a,0,s,s-1,e))){for(s-=v,p=1+(c-=v),d=1+(h-=v),l=0;l=7||v>=7);if(m)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(p=1+(c-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else{if(0===s)throw new Error;for(d=c-(s-1),l=0;l=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else for(d=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Ke(t,n,i,e))s&&(l=s),$e(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Ze.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=qe(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Bt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var nn=1,rn=4,on=!1;function an(){on||(on=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ln,un=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sn}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(an(),u.z=0),isNaN(u.z2)&&(an(),u.z2=0),isNaN(u.zlevel)&&(an(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();t("r",ln),t("r",ln=o.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)});var hn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-hn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*hn.bounceIn(2*t):.5*hn.bounceOut(2*t-1)+.5}},cn=Math.pow,dn=Math.sqrt,pn=1e-8,fn=1e-4,gn=dn(3),vn=1/3,mn=It(),yn=It(),xn=It();function _n(t){return t>-1e-8&&tpn||t<-1e-8}function wn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Sn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Mn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if(_n(h)&&_n(c))_n(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[p++]=M);else{var f=c*c-4*h*d;if(_n(f)){var g=c/h,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v)}else if(f>0){var m=dn(f),y=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);(M=(-s-((y=y<0?-cn(-y,vn):cn(y,vn))+(x=x<0?-cn(-x,vn):cn(x,vn))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var _=(2*h*s-3*a*c)/(2*dn(h*h*h)),b=Math.acos(_)/3,w=dn(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(v=(-s+w*(S+gn*Math.sin(b)))/(3*a),(-s+w*(S-gn*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v),I>=0&&I<=1&&(o[p++]=I)}}return p}function In(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(_n(a))bn(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(_n(u))r[0]=-o/(2*a);else if(u>0){var h,c=dn(u),d=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function Tn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function Cn(t,e,n,i,r,o,a,s,l,u,h){var c,d,p,f,g,v=.005,m=1/0;mn[0]=l,mn[1]=u;for(var y=0;y<1;y+=.05)yn[0]=wn(t,n,r,a,y),yn[1]=wn(e,i,o,s,y),(f=Ft(mn,yn))=0&&f=0&&v=1?1:Mn(0,i,o,1,t,s)&&wn(0,r,a,1,s[0])}}}var zn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||wt,this.ondestroy=t.ondestroy||wt,this.onrestart=t.onrestart||wt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Z(t)?t:hn[t]||En(t)},t}(),Vn=function(t){this.value=t},Bn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Vn(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Gn=t("L",function(){function t(t){this._list=new Bn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Vn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()),Fn={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 Hn(t){return(t=Math.round(t))<0?0:t>255?255:t}function Wn(t){return t<0?0:t>1?1:t}function Un(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Hn(parseFloat(e)/100*255):Hn(parseInt(e,10))}function Yn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Wn(parseFloat(e)/100):Wn(parseFloat(e))}function Zn(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Xn(t,e,n){return t+(e-t)*n}function jn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function qn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Kn=new Gn(20),$n=null;function Jn(t,e){$n&&qn($n,e),$n=Kn.put(t,$n||e.slice())}function Qn(t,e){if(t){e=e||[];var n=Kn.get(t);if(n)return qn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Fn)return qn(e,Fn[i]),Jn(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(jn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Jn(t,e),e):void jn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(jn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Jn(t,e),e):void jn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?jn(e,+u[0],+u[1],+u[2],1):jn(e,0,0,0,1);h=Yn(u.pop());case"rgb":return u.length>=3?(jn(e,Un(u[0]),Un(u[1]),Un(u[2]),3===u.length?h:Yn(u[3])),Jn(t,e),e):void jn(e,0,0,0,1);case"hsla":return 4!==u.length?void jn(e,0,0,0,1):(u[3]=Yn(u[3]),ti(u,e),Jn(t,e),e);case"hsl":return 3!==u.length?void jn(e,0,0,0,1):(ti(u,e),Jn(t,e),e);default:return}}jn(e,0,0,0,1)}}function ti(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Yn(t[1]),r=Yn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return jn(e=e||[],Hn(255*Zn(a,o,n+1/3)),Hn(255*Zn(a,o,n)),Hn(255*Zn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function ei(t,e){var n=Qn(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return li(n,4===n.length?"rgba":"rgb")}}function ni(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Hn(Xn(a[0],s[0],l)),n[1]=Hn(Xn(a[1],s[1],l)),n[2]=Hn(Xn(a[2],s[2],l)),n[3]=Wn(Xn(a[3],s[3],l)),n}}var ii=ni;function ri(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Qn(e[r]),s=Qn(e[o]),l=i-r,u=li([Hn(Xn(a[0],s[0],l)),Hn(Xn(a[1],s[1],l)),Hn(Xn(a[2],s[2],l)),Wn(Xn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var oi=ri;function ai(t,e,n,i){var r=Qn(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=Yn(n)),null!=i&&(r[2]=Yn(i)),li(ti(r),"rgba")}function si(t,e){var n=Qn(t);if(n&&null!=e)return n[3]=Wn(e),li(n,"rgba")}function li(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function ui(t,e){var n=Qn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var hi=new Gn(100);function ci(t){if(X(t)){var e=hi.get(t);return e||(e=ei(t,-.1),hi.put(t,e)),e}if(tt(t)){var n=L({},t);return n.colorStops=V(t.colorStops,function(t){return{offset:t.offset,color:ei(t.color,-.1)}}),n}return t}const di=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:ni,fastMapToColor:ii,lerp:ri,lift:ei,liftColor:ci,lum:ui,mapToColor:oi,modifyAlpha:si,modifyHSL:ai,parse:Qn,random:function(){return li([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:li,toHex:function(t){var e=Qn(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}},Symbol.toStringTag,{value:"Module"}));var pi=Math.round;function fi(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Qn(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var gi=1e-4;function vi(t){return t-1e-4}function mi(t){return pi(1e3*t)/1e3}function yi(t){return pi(1e4*t)/1e4}var xi={left:"start",right:"end",center:"middle",middle:"middle"};function _i(t){return t&&!!t.image}function bi(t){return _i(t)||function(t){return t&&!!t.svgElement}(t)}function wi(t){return"linear"===t.type}function Si(t){return"radial"===t.type}function Mi(t){return t&&("linear"===t.type||"radial"===t.type)}function Ii(t){return"url(#"+t+")"}function Ti(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ci(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*St,r=ot(t.scaleX,1),o=ot(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+pi(a*St)+"deg, "+pi(s*St)+"deg)"),l.join(" ")}var Ai=o.hasGlobalWindow&&Z(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Di=Array.prototype.slice;function Li(t,e,n){return(e-t)*n+t}function ki(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(E(e)){var l=function(t){return E(t&&t[0])?2:1}(e);a=l,(1===l&&!q(e[0])||2===l&&!q(e[0][0]))&&(o=!0)}else if(q(e)&&!it(e))a=0;else if(X(e))if(isNaN(+e)){var u=Qn(e);u&&(s=u,a=3)}else a=0;else if(tt(e)){var h=L({},s);h.colorStops=V(e.colorStops,function(t){return{offset:t.offset,color:Qn(t.color)}}),wi(e)?a=4:Si(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=Z(n)?n:hn[n]||En(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Bi(i),l=Vi(i),u=0;u=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;ne);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:p((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:c?Gi:t[h];if(!Bi(s)&&!c||v||(v=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(Bi(s))1===s?ki(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,Ei(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Ei(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}());function Wi(){return(new Date).getTime()}var Ui,Yi,Zi=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return i(e,t),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 e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Wi()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,ln(function e(){t._running&&(ln(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=Wi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Wi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Wi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Hi(t,e.loop);return this.addAnimator(n),n},e}(qt),Xi=o.domSupported,ji=(Yi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ui=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:V(Ui,function(t){var e=t.replace("mouse","pointer");return Yi.hasOwnProperty(e)?e:t})}),qi=["mousemove","mouseup"],Ki=["pointermove","pointerup"],$i=!1;function Ji(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Qi(t){t&&(t.zrByTouch=!0)}function tr(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var er=function(t,e){this.stopPropagation=wt,this.stopImmediatePropagation=wt,this.preventDefault=wt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},nr={mousedown:function(t){t=de(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=de(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=de(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){tr(this,(t=de(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){$i=!0,t=de(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){$i||(t=de(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Qi(t=de(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),nr.mousemove.call(this,t),nr.mousedown.call(this,t)},touchmove:function(t){Qi(t=de(this.dom,t)),this.handler.processGesture(t,"change"),nr.mousemove.call(this,t)},touchend:function(t){Qi(t=de(this.dom,t)),this.handler.processGesture(t,"end"),nr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&nr.click.call(this,t)},pointerdown:function(t){nr.mousedown.call(this,t)},pointermove:function(t){Ji(t)||nr.mousemove.call(this,t)},pointerup:function(t){nr.mouseup.call(this,t)},pointerout:function(t){Ji(t)||nr.mouseout.call(this,t)}};z(["click","dblclick","contextmenu"],function(t){nr[t]=function(e){e=de(this.dom,e),this.trigger(t,e)}});var ir={pointermove:function(t){Ji(t)||ir.mousemove.call(this,t)},pointerup:function(t){ir.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function rr(t,e){var n=e.domHandlers;o.pointerEventsSupported?z(ji.pointer,function(i){ar(e,i,function(e){n[i].call(t,e)})}):(o.touchEventsSupported&&z(ji.touch,function(i){ar(e,i,function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(e)})}),z(ji.mouse,function(i){ar(e,i,function(r){r=ce(r),e.touching||n[i].call(t,r)})}))}function or(t,e){function n(n){ar(e,n,function(i){i=ce(i),tr(t,i.target)||(i=function(t,e){return de(t.dom,new er(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}o.pointerEventsSupported?z(Ki,n):o.touchEventsSupported||z(qi,n)}function ar(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,pe(t.domTarget,e,n,i)}function sr(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&fe(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var lr=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},ur=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new lr(e,nr),Xi&&(i._globalHandlerScope=new lr(document,ir)),rr(i,i._localHandlerScope),i}return i(e,t),e.prototype.dispose=function(){sr(this._localHandlerScope),Xi&&sr(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,Xi&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?or(this,e):sr(e)}},e}(qt),hr=1;o.hasGlobalWindow&&(hr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var cr=hr,dr="#333",pr="#ccc",fr=be,gr=5e-5;function vr(t){return t>gr||t<-5e-5}var mr=[],yr=[],xr=[1,0,0,1,0,0],_r=Math.abs,br=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return vr(this.rotation)||vr(this.x)||vr(this.y)||vr(this.scaleX-1)||vr(this.scaleY-1)||vr(this.skewX)||vr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):fr(n),t&&(e?Se(n,t,n):we(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(fr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(mr);var n=mr[0]<0?-1:1,i=mr[1]<0?-1:1,r=((mr[0]-n)*e+n)/mr[0]||0,o=((mr[1]-i)*e+i)/mr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Ce(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Se(yr,t.invTransform,e),e=yr);var n=this.originX,i=this.originY;(n||i)&&(xr[4]=n,xr[5]=i,Se(yr,e,xr),yr[4]-=n,yr[5]-=i,e=yr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Wt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Wt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&_r(t[0]-1)>1e-10&&_r(t[3]-1)>1e-10?Math.sqrt(_r(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Sr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;e[4]=-p*r-c*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=c*o,l&&Ie(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),wr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Sr(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Pr(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=kr(i[0],n.width),u+=kr(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Or="__zr_normal__",Rr=wr.concat(["ignore"]),Nr=B(wr,function(t,e){return t[e]=!0,t},{ignore:!1}),Er={},zr=new Be(0,0,0,0),Vr=function(){function t(t){this.id=I(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=zr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Er,n,u):Pr(Er,n,u),r.x=Er.x,r.y=Er.y,o=Er.align,a=Er.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,d=void 0;"center"===h?(c=.5*u.width,d=.5*u.height):(c=kr(h[0],u.width),d=kr(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=nn,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pr:dr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Qn(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,li(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},L(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(K(t))for(var n=H(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Or,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Or;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(O(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nn),s}T("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nn)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=O(i,t),o=O(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s)for(M={},d&&(S={}),_=0;_=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=O(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=O(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,o);var a,s,l="sans-serif",u="12px "+l,h=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)o=r*t.length;else for(var l=0;l>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,a),l=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,d=h.left,p=h.top;a.push(d,p),l=l&&o&&d===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Jt(s,a):Jt(a,s))}(s,a,r);if(l)return l(t,n,i),!0}return!1}function ne(t){return"CANVAS"===t.nodeName.toUpperCase()}var ie=/([&<>"'])/g,re={"&":"&","<":"<",">":">",'"':""","'":"'"};function oe(t){return null==t?"":(t+"").replace(ie,(function(t,e){return re[e]}))}var ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=[],le=o.browser.firefox&&+o.browser.version.split(".")[0]<39;function ue(t,e,n,i){return n=n||{},i?he(t,e,n):le&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):he(t,e,n),n}function he(t,e,n){if(o.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ne(t)){var a=t.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=r-a.top)}if(ee(se,t,i,r))return n.zrX=se[0],void(n.zrY=se[1])}n.zrX=n.zrY=0}function ce(t){return t||window.event}function de(t,e,n){if(null!=(e=ce(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ue(t,r,e,n)}else{ue(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ae.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function pe(t,e,n,i){t.addEventListener(e,n,i)}function fe(t,e,n,i){t.removeEventListener(e,n,i)}var ge=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function ve(t){return 2===t.which||3===t.which}var me=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=ye(r)/ye(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function _e(){return[1,0,0,1,0,0]}function be(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function we(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Se(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Me(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Ie(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function Te(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Ce(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Ae(t){var e=[1,0,0,1,0,0];return we(e,t),e}const De=Object.freeze(Object.defineProperty({__proto__:null,clone:Ae,copy:we,create:_e,identity:be,invert:Ce,mul:Se,rotate:Ie,scale:Te,translate:Me},Symbol.toStringTag,{value:"Module"}));var Le=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),ke=Math.min,Pe=Math.max,Oe=new Le,Re=new Le,Ne=new Le,Ee=new Le,ze=new Le,Ve=new Le,Be=t("E",function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=ke(t.x,this.x),n=ke(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pe(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return Me(r,r,[-e.x,-e.y]),Te(r,r,[n,i]),Me(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,d=!(of&&(f=x,gf&&(f=_,m=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Oe.x=Ne.x=n.x,Oe.y=Ee.y=n.y,Re.x=Ee.x=n.x+n.width,Re.y=Ne.y=n.y+n.height,Oe.transform(i),Ee.transform(i),Re.transform(i),Ne.transform(i),e.x=ke(Oe.x,Re.x,Ne.x,Ee.x),e.y=ke(Oe.y,Re.y,Ne.y,Ee.y);var l=Pe(Oe.x,Re.x,Ne.x,Ee.x),u=Pe(Oe.y,Re.y,Ne.y,Ee.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}()),Ge="silent";function Fe(){ge(this.event)}var He=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return i(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(qt),We=function(t,e){this.x=t,this.y=e},Ue=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ye=new Be(0,0,0,0),Ze=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new We(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new He,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new jt(a),a}return i(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(z(Ue,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=qe(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new We(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new We(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Fe}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new We(t,e);if(je(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Be(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Ye.copy(h.getBoundingRect()),h.transform&&Ye.applyTransform(h.transform),Ye.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,d=2*Math.PI,p=0;p=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Xe(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Ge)){e.target=a;break}}}function qe(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}function Ke(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function $e(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Je(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Qe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function tn(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=Qe(t[h],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(c=Je(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[p+l]=t[d+l];if(0===i){m=!0;break}}if(t[c--]=a[h--],1==--s){m=!0;break}if(0!=(v=s-Je(t[u],a,0,s,s-1,e))){for(s-=v,p=1+(c-=v),d=1+(h-=v),l=0;l=7||v>=7);if(m)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(p=1+(c-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else{if(0===s)throw new Error;for(d=c-(s-1),l=0;l=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else for(d=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Ke(t,n,i,e))s&&(l=s),$e(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Ze.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=qe(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Bt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var nn=1,rn=4,on=!1;function an(){on||(on=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ln,un=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sn}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(an(),u.z=0),isNaN(u.z2)&&(an(),u.z2=0),isNaN(u.zlevel)&&(an(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();ln=o.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var hn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-hn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*hn.bounceIn(2*t):.5*hn.bounceOut(2*t-1)+.5}},cn=Math.pow,dn=Math.sqrt,pn=1e-8,fn=1e-4,gn=dn(3),vn=1/3,mn=It(),yn=It(),xn=It();function _n(t){return t>-1e-8&&tpn||t<-1e-8}function wn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Sn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Mn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if(_n(h)&&_n(c))_n(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[p++]=M);else{var f=c*c-4*h*d;if(_n(f)){var g=c/h,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v)}else if(f>0){var m=dn(f),y=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);(M=(-s-((y=y<0?-cn(-y,vn):cn(y,vn))+(x=x<0?-cn(-x,vn):cn(x,vn))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var _=(2*h*s-3*a*c)/(2*dn(h*h*h)),b=Math.acos(_)/3,w=dn(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(v=(-s+w*(S+gn*Math.sin(b)))/(3*a),(-s+w*(S-gn*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v),I>=0&&I<=1&&(o[p++]=I)}}return p}function In(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(_n(a))bn(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(_n(u))r[0]=-o/(2*a);else if(u>0){var h,c=dn(u),d=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function Tn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function Cn(t,e,n,i,r,o,a,s,l,u,h){var c,d,p,f,g,v=.005,m=1/0;mn[0]=l,mn[1]=u;for(var y=0;y<1;y+=.05)yn[0]=wn(t,n,r,a,y),yn[1]=wn(e,i,o,s,y),(f=Ft(mn,yn))=0&&f=0&&v=1?1:Mn(0,i,o,1,t,s)&&wn(0,r,a,1,s[0])}}}var zn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||wt,this.ondestroy=t.ondestroy||wt,this.onrestart=t.onrestart||wt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Z(t)?t:hn[t]||En(t)},t}(),Vn=function(t){this.value=t},Bn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Vn(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Gn=function(){function t(t){this._list=new Bn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Vn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Fn={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 Hn(t){return(t=Math.round(t))<0?0:t>255?255:t}function Wn(t){return t<0?0:t>1?1:t}function Un(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Hn(parseFloat(e)/100*255):Hn(parseInt(e,10))}function Yn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Wn(parseFloat(e)/100):Wn(parseFloat(e))}function Zn(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Xn(t,e,n){return t+(e-t)*n}function jn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function qn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Kn=new Gn(20),$n=null;function Jn(t,e){$n&&qn($n,e),$n=Kn.put(t,$n||e.slice())}function Qn(t,e){if(t){e=e||[];var n=Kn.get(t);if(n)return qn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Fn)return qn(e,Fn[i]),Jn(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(jn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Jn(t,e),e):void jn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(jn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Jn(t,e),e):void jn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?jn(e,+u[0],+u[1],+u[2],1):jn(e,0,0,0,1);h=Yn(u.pop());case"rgb":return u.length>=3?(jn(e,Un(u[0]),Un(u[1]),Un(u[2]),3===u.length?h:Yn(u[3])),Jn(t,e),e):void jn(e,0,0,0,1);case"hsla":return 4!==u.length?void jn(e,0,0,0,1):(u[3]=Yn(u[3]),ti(u,e),Jn(t,e),e);case"hsl":return 3!==u.length?void jn(e,0,0,0,1):(ti(u,e),Jn(t,e),e);default:return}}jn(e,0,0,0,1)}}function ti(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Yn(t[1]),r=Yn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return jn(e=e||[],Hn(255*Zn(a,o,n+1/3)),Hn(255*Zn(a,o,n)),Hn(255*Zn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function ei(t,e){var n=Qn(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return li(n,4===n.length?"rgba":"rgb")}}function ni(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Hn(Xn(a[0],s[0],l)),n[1]=Hn(Xn(a[1],s[1],l)),n[2]=Hn(Xn(a[2],s[2],l)),n[3]=Wn(Xn(a[3],s[3],l)),n}}var ii=ni;function ri(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Qn(e[r]),s=Qn(e[o]),l=i-r,u=li([Hn(Xn(a[0],s[0],l)),Hn(Xn(a[1],s[1],l)),Hn(Xn(a[2],s[2],l)),Wn(Xn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var oi=ri;function ai(t,e,n,i){var r=Qn(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=Yn(n)),null!=i&&(r[2]=Yn(i)),li(ti(r),"rgba")}function si(t,e){var n=Qn(t);if(n&&null!=e)return n[3]=Wn(e),li(n,"rgba")}function li(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function ui(t,e){var n=Qn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var hi=new Gn(100);function ci(t){if(X(t)){var e=hi.get(t);return e||(e=ei(t,-.1),hi.put(t,e)),e}if(tt(t)){var n=L({},t);return n.colorStops=V(t.colorStops,(function(t){return{offset:t.offset,color:ei(t.color,-.1)}})),n}return t}const di=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:ni,fastMapToColor:ii,lerp:ri,lift:ei,liftColor:ci,lum:ui,mapToColor:oi,modifyAlpha:si,modifyHSL:ai,parse:Qn,random:function(){return li([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:li,toHex:function(t){var e=Qn(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}},Symbol.toStringTag,{value:"Module"}));var pi=Math.round;function fi(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Qn(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var gi=1e-4;function vi(t){return t-1e-4}function mi(t){return pi(1e3*t)/1e3}function yi(t){return pi(1e4*t)/1e4}var xi={left:"start",right:"end",center:"middle",middle:"middle"};function _i(t){return t&&!!t.image}function bi(t){return _i(t)||function(t){return t&&!!t.svgElement}(t)}function wi(t){return"linear"===t.type}function Si(t){return"radial"===t.type}function Mi(t){return t&&("linear"===t.type||"radial"===t.type)}function Ii(t){return"url(#"+t+")"}function Ti(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ci(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*St,r=ot(t.scaleX,1),o=ot(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+pi(a*St)+"deg, "+pi(s*St)+"deg)"),l.join(" ")}var Ai=o.hasGlobalWindow&&Z(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Di=Array.prototype.slice;function Li(t,e,n){return(e-t)*n+t}function ki(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(E(e)){var l=function(t){return E(t&&t[0])?2:1}(e);a=l,(1===l&&!q(e[0])||2===l&&!q(e[0][0]))&&(o=!0)}else if(q(e)&&!it(e))a=0;else if(X(e))if(isNaN(+e)){var u=Qn(e);u&&(s=u,a=3)}else a=0;else if(tt(e)){var h=L({},s);h.colorStops=V(e.colorStops,(function(t){return{offset:t.offset,color:Qn(t.color)}})),wi(e)?a=4:Si(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=Z(n)?n:hn[n]||En(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Bi(i),l=Vi(i),u=0;u=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;ne);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:p((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:c?Gi:t[h];if(!Bi(s)&&!c||v||(v=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(Bi(s))1===s?ki(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,Ei(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Ei(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function Wi(){return(new Date).getTime()}var Ui,Yi,Zi=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return i(e,t),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 e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Wi()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,ln((function e(){t._running&&(ln(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=Wi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Wi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Wi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Hi(t,e.loop);return this.addAnimator(n),n},e}(qt),Xi=o.domSupported,ji=(Yi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ui=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:V(Ui,(function(t){var e=t.replace("mouse","pointer");return Yi.hasOwnProperty(e)?e:t}))}),qi=["mousemove","mouseup"],Ki=["pointermove","pointerup"],$i=!1;function Ji(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Qi(t){t&&(t.zrByTouch=!0)}function tr(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var er=function(t,e){this.stopPropagation=wt,this.stopImmediatePropagation=wt,this.preventDefault=wt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},nr={mousedown:function(t){t=de(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=de(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=de(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){tr(this,(t=de(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){$i=!0,t=de(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){$i||(t=de(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Qi(t=de(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),nr.mousemove.call(this,t),nr.mousedown.call(this,t)},touchmove:function(t){Qi(t=de(this.dom,t)),this.handler.processGesture(t,"change"),nr.mousemove.call(this,t)},touchend:function(t){Qi(t=de(this.dom,t)),this.handler.processGesture(t,"end"),nr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&nr.click.call(this,t)},pointerdown:function(t){nr.mousedown.call(this,t)},pointermove:function(t){Ji(t)||nr.mousemove.call(this,t)},pointerup:function(t){nr.mouseup.call(this,t)},pointerout:function(t){Ji(t)||nr.mouseout.call(this,t)}};z(["click","dblclick","contextmenu"],(function(t){nr[t]=function(e){e=de(this.dom,e),this.trigger(t,e)}}));var ir={pointermove:function(t){Ji(t)||ir.mousemove.call(this,t)},pointerup:function(t){ir.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function rr(t,e){var n=e.domHandlers;o.pointerEventsSupported?z(ji.pointer,(function(i){ar(e,i,(function(e){n[i].call(t,e)}))})):(o.touchEventsSupported&&z(ji.touch,(function(i){ar(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),z(ji.mouse,(function(i){ar(e,i,(function(r){r=ce(r),e.touching||n[i].call(t,r)}))})))}function or(t,e){function n(n){ar(e,n,(function(i){i=ce(i),tr(t,i.target)||(i=function(t,e){return de(t.dom,new er(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}o.pointerEventsSupported?z(Ki,n):o.touchEventsSupported||z(qi,n)}function ar(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,pe(t.domTarget,e,n,i)}function sr(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&fe(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var lr=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},ur=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new lr(e,nr),Xi&&(i._globalHandlerScope=new lr(document,ir)),rr(i,i._localHandlerScope),i}return i(e,t),e.prototype.dispose=function(){sr(this._localHandlerScope),Xi&&sr(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,Xi&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?or(this,e):sr(e)}},e}(qt),hr=1;o.hasGlobalWindow&&(hr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var cr=hr,dr="#333",pr="#ccc",fr=be,gr=5e-5;function vr(t){return t>gr||t<-5e-5}var mr=[],yr=[],xr=[1,0,0,1,0,0],_r=Math.abs,br=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return vr(this.rotation)||vr(this.x)||vr(this.y)||vr(this.scaleX-1)||vr(this.scaleY-1)||vr(this.skewX)||vr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):fr(n),t&&(e?Se(n,t,n):we(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(fr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(mr);var n=mr[0]<0?-1:1,i=mr[1]<0?-1:1,r=((mr[0]-n)*e+n)/mr[0]||0,o=((mr[1]-i)*e+i)/mr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Ce(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Se(yr,t.invTransform,e),e=yr);var n=this.originX,i=this.originY;(n||i)&&(xr[4]=n,xr[5]=i,Se(yr,e,xr),yr[4]-=n,yr[5]-=i,e=yr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Wt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Wt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&_r(t[0]-1)>1e-10&&_r(t[3]-1)>1e-10?Math.sqrt(_r(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Sr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;e[4]=-p*r-c*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=c*o,l&&Ie(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),wr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Sr(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Pr(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=kr(i[0],n.width),u+=kr(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Or="__zr_normal__",Rr=wr.concat(["ignore"]),Nr=B(wr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Er={},zr=new Be(0,0,0,0),Vr=function(){function t(t){this.id=I(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=zr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Er,n,u):Pr(Er,n,u),r.x=Er.x,r.y=Er.y,o=Er.align,a=Er.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,d=void 0;"center"===h?(c=.5*u.width,d=.5*u.height):(c=kr(h[0],u.width),d=kr(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=nn,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pr:dr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Qn(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,li(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},L(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(K(t))for(var n=H(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Or,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Or;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(O(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nn),s}T("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nn)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=O(i,t),o=O(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s)for(M={},d&&(S={}),_=0;_=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=O(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=O(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function no(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return X(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function io(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),to),t=(+t).toFixed(e),n?t:+t}function ro(t){return t.sort(function(t,e){return t-e}),t}function oo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ao(t)}function ao(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function so(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function lo(t,e){var n=B(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=V(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=V(r,function(t){return Math.floor(t)}),s=B(a,function(t,e){return t+e},0),l=V(r,function(t,e){return t-a[e]});su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return V(a,function(t){return t/i})}function uo(t,e){var n=Math.max(oo(t),oo(e)),i=t+e;return n>to?i:io(i,n)}var ho=9007199254740991;function co(t){var e=2*Math.PI;return(t%e+e)%e}function po(t){return t>-1e-4&&t=10&&e++,e}function yo(t,e){var n=mo(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function xo(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function _o(t){t.sort(function(t,e){return s(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i=0||r&&O(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var la=sa([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ua=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return la(this,t,e)},t}(),ha=new Gn(50);function ca(t){if("string"==typeof t){var e=ha.get(t);return e&&e.image}return t}function da(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=ha.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!fa(e=o.image)&&o.pending.push(a):((e=c.loadImage(t,pa,pa)).__zrImageSrc=t,ha.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function pa(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Ir(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function ya(t,e,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=Ir(e,r);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?xa(e,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(e.length*o/a):0;a=Ir(e=e.substr(0,l),r)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function xa(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=Ta(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Ma[t]}function Ta(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+p>n)?h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=d,s="",h=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=d,h=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(h+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var Ca="__zr_style_"+Math.round(10*Math.random()),Aa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Da={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Aa[Ca]=!0;var La=["z","z2","invisible"],ka=["invisible"],Pa=function(t){function e(e){return t.call(this,e)||this}var n;return i(e,t),e.prototype._init=function(e){for(var n=H(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Ga[0]=Va(r)*n+t,Ga[1]=za(r)*i+e,Fa[0]=Va(o)*n+t,Fa[1]=za(o)*i+e,u(s,Ga,Fa),h(l,Ga,Fa),(r%=Ba)<0&&(r+=Ba),(o%=Ba)<0&&(o+=Ba),r>o&&!a?o+=Ba:rr&&(Ha[0]=Va(p)*n+t,Ha[1]=za(p)*i+e,u(s,Ha,s),h(l,Ha,l))}var Ka={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$a=[],Ja=[],Qa=[],ts=[],es=[],ns=[],is=Math.min,rs=Math.max,os=Math.cos,as=Math.sin,ss=Math.abs,ls=Math.PI,us=2*ls,hs="undefined"!=typeof Float32Array,cs=[];function ds(t){return Math.round(t/ls*1e8)/1e8%2*ls}function ps(t,e){var n=ds(t[0]);n<0&&(n+=us);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=us?r=n+us:e&&n-r>=us?r=n-us:!e&&n>r?r=n+(us-ds(n-r)):e&&n0&&(this._ux=ss(n/cr/t)||0,this._uy=ss(n/cr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ka.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=ss(t-this._xi),i=ss(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ka.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Ka.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ka.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),cs[0]=i,cs[1]=r,ps(cs,o),i=cs[0];var a=(r=cs[1])-i;return this.addData(Ka.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=os(r)*n+t,this._yi=as(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ka.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ka.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!hs||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Qa[0]=Qa[1]=es[0]=es[1]=Number.MAX_VALUE,ts[0]=ts[1]=ns[0]=ns[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||ss(v)>i||c===e-1)&&(f=Math.sqrt(D*D+v*v),r=g,o=x);break;case Ka.C:var m=t[c++],y=t[c++],x=(g=t[c++],t[c++]),_=t[c++],b=t[c++];f=An(r,o,m,y,g,x,_,b,10),r=_,o=b;break;case Ka.Q:f=Rn(r,o,m=t[c++],y=t[c++],g=t[c++],x=t[c++],10),r=g,o=x;break;case Ka.A:var w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],A=C+T;c+=1,p&&(a=os(T)*M+w,s=as(T)*I+S),f=rs(M,I)*is(us,Math.abs(C)),r=os(A)*M+w,o=as(A)*I+S;break;case Ka.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case Ka.Z:var D=a-r;v=s-o,f=Math.sqrt(D*D+v*v),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,d=this.data,p=this._ux,f=this._uy,g=this._len,v=e<1,m=0,y=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_0&&(t.lineTo(h,c),x=0),b){case Ka.M:n=r=d[_++],i=o=d[_++],t.moveTo(r,o);break;case Ka.L:a=d[_++],s=d[_++];var S=ss(a-r),M=ss(s-o);if(S>p||M>f){if(v){if(m+(j=l[y++])>u){var I=(u-m)/j;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=j}t.lineTo(a,s),r=a,o=s,x=0}else{var T=S*S+M*M;T>x&&(h=a,c=s,x=T)}break;case Ka.C:var C=d[_++],A=d[_++],D=d[_++],L=d[_++],k=d[_++],P=d[_++];if(v){if(m+(j=l[y++])>u){Tn(r,C,D,k,I=(u-m)/j,$a),Tn(o,A,L,P,I,Ja),t.bezierCurveTo($a[1],Ja[1],$a[2],Ja[2],$a[3],Ja[3]);break t}m+=j}t.bezierCurveTo(C,A,D,L,k,P),r=k,o=P;break;case Ka.Q:if(C=d[_++],A=d[_++],D=d[_++],L=d[_++],v){if(m+(j=l[y++])>u){Pn(r,C,D,I=(u-m)/j,$a),Pn(o,A,L,I,Ja),t.quadraticCurveTo($a[1],Ja[1],$a[2],Ja[2]);break t}m+=j}t.quadraticCurveTo(C,A,D,L),r=D,o=L;break;case Ka.A:var O=d[_++],R=d[_++],N=d[_++],E=d[_++],z=d[_++],V=d[_++],B=d[_++],G=!d[_++],F=N>E?N:E,H=ss(N-E)>.001,W=z+V,U=!1;if(v&&(m+(j=l[y++])>u&&(W=z+V*(u-m)/j,U=!0),m+=j),H&&t.ellipse?t.ellipse(O,R,N,E,B,z,W,G):t.arc(O,R,F,z,W,G),U)break t;w&&(n=os(z)*N+O,i=as(z)*E+R),r=os(W)*N+O,o=as(W)*E+R;break;case Ka.R:n=r=d[_],i=o=d[_+1],a=d[_++],s=d[_++];var Y=d[_++],Z=d[_++];if(v){if(m+(j=l[y++])>u){var X=u-m;t.moveTo(a,s),t.lineTo(a+is(X,Y),s),(X-=Y)>0&&t.lineTo(a+Y,s+is(X,Z)),(X-=Z)>0&&t.lineTo(a+rs(Y-X,0),s+Z),(X-=Y)>0&&t.lineTo(a,s+rs(Z-X,0));break t}m+=j}t.rect(a,s,Y,Z);break;case Ka.Z:if(v){var j;if(m+(j=l[y++])>u){I=(u-m)/j,t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}m+=j}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Ka,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function gs(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||h+ur&&(r+=_s);var d=Math.atan2(l,s);return d<0&&(d+=_s),d>=i&&d<=r||d+_s>=i&&d+_s<=r}function ws(t,e,n,i,r,o){if(o>e&&o>i||o