From d7b62c2157b94c2336aaf72fcafe3d6e1bbe7db2 Mon Sep 17 00:00:00 2001 From: snowykami Date: Thu, 3 Oct 2024 20:16:54 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E5=88=B7=E6=96=B0dns=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 4 ++-- .../web/assets/{index-iGIpaExt.js => index-DoQbpUlS.js} | 4 ++-- .../web/assets/{index-BLNcqiVI.css => index-QZ6KKedS.css} | 2 +- api/frontend/web/index.html | 4 ++-- api/frontend/web/svg/{location.svg => location-new.svg} | 0 5 files changed, 7 insertions(+), 7 deletions(-) rename api/frontend/web/assets/{index-iGIpaExt.js => index-DoQbpUlS.js} (99%) rename api/frontend/web/assets/{index-BLNcqiVI.css => index-QZ6KKedS.css} (54%) rename api/frontend/web/svg/{location.svg => location-new.svg} (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 665f5dd..32fd482 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,8 +41,8 @@ jobs: - name: Build run: | - export GOOS=${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'windows-latest' && 'windows'}} - export GOARCH=${{ matrix.arch }} + GOOS=${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'windows-latest' && 'windows'}} + GOARCH=${{ matrix.arch }} go build -o build/${{ GOOS }}-${{ matrix.arch }}/server-status-server main.go - name: Upload binaries diff --git a/api/frontend/web/assets/index-iGIpaExt.js b/api/frontend/web/assets/index-DoQbpUlS.js similarity index 99% rename from api/frontend/web/assets/index-iGIpaExt.js rename to api/frontend/web/assets/index-DoQbpUlS.js index 2a40ce8..a46d65c 100644 --- a/api/frontend/web/assets/index-iGIpaExt.js +++ b/api/frontend/web/assets/index-DoQbpUlS.js @@ -18,7 +18,7 @@ * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const rs=typeof document<"u";function OM(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function nB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&OM(r.default)}const ee=Object.assign;function Sp(r,t){const e={};for(const n in t){const a=t[n];e[n]=un(a)?a.map(r):r(a)}return e}const Jl=()=>{},un=Array.isArray,NM=/#/g,aB=/&/g,iB=/\//g,oB=/=/g,sB=/\?/g,BM=/\+/g,lB=/%5B/g,uB=/%5D/g,VM=/%5E/g,fB=/%60/g,zM=/%7B/g,cB=/%7C/g,FM=/%7D/g,hB=/%20/g;function _0(r){return encodeURI(""+r).replace(cB,"|").replace(lB,"[").replace(uB,"]")}function vB(r){return _0(r).replace(zM,"{").replace(FM,"}").replace(VM,"^")}function ay(r){return _0(r).replace(BM,"%2B").replace(hB,"+").replace(NM,"%23").replace(aB,"%26").replace(fB,"`").replace(zM,"{").replace(FM,"}").replace(VM,"^")}function pB(r){return ay(r).replace(oB,"%3D")}function dB(r){return _0(r).replace(NM,"%23").replace(sB,"%3F")}function gB(r){return r==null?"":dB(r).replace(iB,"%2F")}function wu(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const yB=/\/$/,mB=r=>r.replace(yB,"");function xp(r,t,e="/"){let n,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=r(i)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=bB(n??t,e),{fullPath:n+(i&&"?")+i+o,path:n,query:a,hash:wu(o)}}function _B(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function lS(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function SB(r,t,e){const n=t.matched.length-1,a=e.matched.length-1;return n>-1&&n===a&&Cs(t.matched[n],e.matched[a])&&GM(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Cs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function GM(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!xB(r[e],t[e]))return!1;return!0}function xB(r,t){return un(r)?uS(r,t):un(t)?uS(t,r):r===t}function uS(r,t){return un(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function bB(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let i=e.length-1,o,s;for(o=0;o1&&i--;else break;return e.slice(0,i).join("/")+"/"+n.slice(o).join("/")}const xa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Tu;(function(r){r.pop="pop",r.push="push"})(Tu||(Tu={}));var tu;(function(r){r.back="back",r.forward="forward",r.unknown=""})(tu||(tu={}));function wB(r){if(!r)if(rs){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),mB(r)}const TB=/^[^#]+#/;function CB(r,t){return r.replace(TB,"#")+t}function AB(r,t){const e=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:t.behavior,left:n.left-e.left-(t.left||0),top:n.top-e.top-(t.top||0)}}const Sv=()=>({left:window.scrollX,top:window.scrollY});function DB(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),a=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!a)return;t=AB(a,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function fS(r,t){return(history.state?history.state.position-t:-1)+r}const iy=new Map;function MB(r,t){iy.set(r,t)}function IB(r){const t=iy.get(r);return iy.delete(r),t}let LB=()=>location.protocol+"//"+location.host;function HM(r,t){const{pathname:e,search:n,hash:a}=t,i=r.indexOf("#");if(i>-1){let s=a.includes(r.slice(i))?r.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),lS(l,"")}return lS(e,r)+n+a}function PB(r,t,e,n){let a=[],i=[],o=null;const s=({state:h})=>{const v=HM(r,location),p=e.value,d=t.value;let g=0;if(h){if(e.value=v,t.value=h,o&&o===p){o=null;return}g=d?h.position-d.position:0}else n(v);a.forEach(y=>{y(e.value,p,{delta:g,type:Tu.pop,direction:g?g>0?tu.forward:tu.back:tu.unknown})})};function l(){o=e.value}function u(h){a.push(h);const v=()=>{const p=a.indexOf(h);p>-1&&a.splice(p,1)};return i.push(v),v}function f(){const{history:h}=window;h.state&&h.replaceState(ee({},h.state,{scroll:Sv()}),"")}function c(){for(const h of i)h();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:u,destroy:c}}function cS(r,t,e,n=!1,a=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:a?Sv():null}}function RB(r){const{history:t,location:e}=window,n={value:HM(r,e)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,f){const c=r.indexOf("#"),h=c>-1?(e.host&&document.querySelector("base")?r:r.slice(c))+l:LB()+r+l;try{t[f?"replaceState":"pushState"](u,"",h),a.value=u}catch(v){console.error(v),e[f?"replace":"assign"](h)}}function o(l,u){const f=ee({},t.state,cS(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,f,!0),n.value=l}function s(l,u){const f=ee({},a.value,t.state,{forward:l,scroll:Sv()});i(f.current,f,!0);const c=ee({},cS(n.value,l,null),{position:f.position+1},u);i(l,c,!1),n.value=l}return{location:n,state:a,push:s,replace:o}}function EB(r){r=wB(r);const t=RB(r),e=PB(r,t.state,t.location,t.replace);function n(i,o=!0){o||e.pauseListeners(),history.go(i)}const a=ee({location:"",base:r,go:n,createHref:CB.bind(null,r)},t,e);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function kB(r){return typeof r=="string"||r&&typeof r=="object"}function WM(r){return typeof r=="string"||typeof r=="symbol"}const UM=Symbol("");var hS;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(hS||(hS={}));function As(r,t){return ee(new Error,{type:r,[UM]:!0},t)}function Yn(r,t){return r instanceof Error&&UM in r&&(t==null||!!(r.type&t))}const vS="[^/]+?",OB={sensitive:!1,strict:!1,start:!0,end:!0},NB=/[.+*?^${}()[\]/\\]/g;function BB(r,t){const e=ee({},OB,t),n=[];let a=e.start?"^":"";const i=[];for(const u of r){const f=u.length?[]:[90];e.strict&&!u.length&&(a+="/");for(let c=0;ct.length?t.length===1&&t[0]===80?1:-1:0}function $M(r,t){let e=0;const n=r.score,a=t.score;for(;e0&&t[t.length-1]<0}const zB={type:0,value:""},FB=/[a-zA-Z0-9_]/;function GB(r){if(!r)return[[]];if(r==="/")return[[zB]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(v){throw new Error(`ERR (${e})/"${u}": ${v}`)}let e=0,n=e;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",f="";function c(){u&&(e===0?i.push({type:0,value:u}):e===1||e===2||e===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s{o(_)}:Jl}function o(c){if(WM(c)){const h=n.get(c);h&&(n.delete(c),e.splice(e.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=e.indexOf(c);h>-1&&(e.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return e}function l(c){const h=YB(c,e);e.splice(h,0,c),c.record.name&&!yS(c)&&n.set(c.record.name,c)}function u(c,h){let v,p={},d,g;if("name"in c&&c.name){if(v=n.get(c.name),!v)throw As(1,{location:c});g=v.record.name,p=ee(dS(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&dS(c.params,v.keys.map(_=>_.name))),d=v.stringify(p)}else if(c.path!=null)d=c.path,v=e.find(_=>_.re.test(d)),v&&(p=v.parse(d),g=v.record.name);else{if(v=h.name?n.get(h.name):e.find(_=>_.re.test(h.path)),!v)throw As(1,{location:c,currentLocation:h});g=v.record.name,p=ee({},h.params,c.params),d=v.stringify(p)}const y=[];let m=v;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:d,params:p,matched:y,meta:$B(y)}}r.forEach(c=>i(c));function f(){e.length=0,n.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:a}}function dS(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function gS(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:UB(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function UB(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const n in r.components)t[n]=typeof e=="object"?e[n]:e;return t}function yS(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function $B(r){return r.reduce((t,e)=>ee(t,e.meta),{})}function mS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}function YB(r,t){let e=0,n=t.length;for(;e!==n;){const i=e+n>>1;$M(r,t[i])<0?n=i:e=i+1}const a=XB(r);return a&&(n=t.lastIndexOf(a,n-1)),n}function XB(r){let t=r;for(;t=t.parent;)if(YM(t)&&$M(r,t)===0)return t}function YM({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function ZB(r){const t={};if(r===""||r==="?")return t;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let a=0;ai&&ay(i)):[n&&ay(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function qB(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=un(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const KB=Symbol(""),SS=Symbol(""),S0=Symbol(""),XM=Symbol(""),oy=Symbol("");function al(){let r=[];function t(n){return r.push(n),()=>{const a=r.indexOf(n);a>-1&&r.splice(a,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function Na(r,t,e,n,a,i=o=>o()){const o=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(As(4,{from:e,to:t})):h instanceof Error?l(h):kB(h)?l(As(2,{from:t,to:h})):(o&&n.enterCallbacks[a]===o&&typeof h=="function"&&o.push(h),s())},f=i(()=>r.call(n&&n.instances[a],t,e,u));let c=Promise.resolve(f);r.length<3&&(c=c.then(u)),c.catch(h=>l(h))})}function bp(r,t,e,n,a=i=>i()){const i=[];for(const o of r)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(OM(l)){const f=(l.__vccOpts||l)[t];f&&i.push(Na(f,e,n,o,s,a))}else{let u=l();i.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=nB(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const v=(c.__vccOpts||c)[t];return v&&Na(v,e,n,o,s,a)()}))}}return i}function xS(r){const t=ra(S0),e=ra(XM),n=He(()=>{const l=io(r.to);return t.resolve(l)}),a=He(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=e.matched;if(!f||!c.length)return-1;const h=c.findIndex(Cs.bind(null,f));if(h>-1)return h;const v=bS(l[u-2]);return u>1&&bS(f)===v&&c[c.length-1].path!==v?c.findIndex(Cs.bind(null,l[u-2])):h}),i=He(()=>a.value>-1&&tV(e.params,n.value.params)),o=He(()=>a.value>-1&&a.value===e.matched.length-1&&GM(e.params,n.value.params));function s(l={}){return JB(l)?t[io(r.replace)?"replace":"push"](io(r.to)).catch(Jl):Promise.resolve()}return{route:n,href:He(()=>n.value.href),isActive:i,isExactActive:o,navigate:s}}const jB=tf({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:xS,setup(r,{slots:t}){const e=vv(xS(r)),{options:n}=ra(S0),a=He(()=>({[wS(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[wS(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const i=t.default&&t.default(e);return r.custom?i:EM("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:a.value},i)}}}),QB=jB;function JB(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function tV(r,t){for(const e in t){const n=t[e],a=r[e];if(typeof n=="string"){if(n!==a)return!1}else if(!un(a)||a.length!==n.length||n.some((i,o)=>i!==a[o]))return!1}return!0}function bS(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const wS=(r,t,e)=>r??t??e,eV=tf({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=ra(oy),a=He(()=>r.route||n.value),i=ra(SS,0),o=He(()=>{let u=io(i);const{matched:f}=a.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=He(()=>a.value.matched[o.value]);Oc(SS,He(()=>o.value+1)),Oc(KB,s),Oc(oy,a);const l=Ea();return Kl(()=>[l.value,s.value,r.name],([u,f,c],[h,v,p])=>{f&&(f.instances[c]=u,v&&v!==f&&u&&u===h&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),u&&f&&(!v||!Cs(f,v)||!h)&&(f.enterCallbacks[c]||[]).forEach(d=>d(u))},{flush:"post"}),()=>{const u=a.value,f=r.name,c=s.value,h=c&&c.components[f];if(!h)return TS(e.default,{Component:h,route:u});const v=c.props[f],p=v?v===!0?u.params:typeof v=="function"?v(u):v:null,g=EM(h,ee({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return TS(e.default,{Component:g,route:u})||g}}});function TS(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const rV=eV;function nV(r){const t=WB(r.routes,r),e=r.parseQuery||ZB,n=r.stringifyQuery||_S,a=r.history,i=al(),o=al(),s=al(),l=hO(xa);let u=xa;rs&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Sp.bind(null,G=>""+G),c=Sp.bind(null,gB),h=Sp.bind(null,wu);function v(G,$){let K,j;return WM(G)?(K=t.getRecordMatcher(G),j=$):j=G,t.addRoute(j,K)}function p(G){const $=t.getRecordMatcher(G);$&&t.removeRoute($)}function d(){return t.getRoutes().map(G=>G.record)}function g(G){return!!t.getRecordMatcher(G)}function y(G,$){if($=ee({},$||l.value),typeof G=="string"){const k=xp(e,G,$.path),z=t.resolve({path:k.path},$),q=a.createHref(k.fullPath);return ee(k,z,{params:h(z.params),hash:wu(k.hash),redirectedFrom:void 0,href:q})}let K;if(G.path!=null)K=ee({},G,{path:xp(e,G.path,$.path).path});else{const k=ee({},G.params);for(const z in k)k[z]==null&&delete k[z];K=ee({},G,{params:c(k)}),$.params=c($.params)}const j=t.resolve(K,$),J=G.hash||"";j.params=f(h(j.params));const ct=_B(n,ee({},G,{hash:vB(J),path:j.path})),E=a.createHref(ct);return ee({fullPath:ct,hash:J,query:n===_S?qB(G.query):G.query||{}},j,{redirectedFrom:void 0,href:E})}function m(G){return typeof G=="string"?xp(e,G,l.value.path):ee({},G)}function _(G,$){if(u!==G)return As(8,{from:$,to:G})}function S(G){return w(G)}function b(G){return S(ee(m(G),{replace:!0}))}function x(G){const $=G.matched[G.matched.length-1];if($&&$.redirect){const{redirect:K}=$;let j=typeof K=="function"?K(G):K;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=m(j):{path:j},j.params={}),ee({query:G.query,hash:G.hash,params:j.path!=null?{}:G.params},j)}}function w(G,$){const K=u=y(G),j=l.value,J=G.state,ct=G.force,E=G.replace===!0,k=x(K);if(k)return w(ee(m(k),{state:typeof k=="object"?ee({},J,k.state):J,force:ct,replace:E}),$||K);const z=K;z.redirectedFrom=$;let q;return!ct&&SB(n,j,K)&&(q=As(16,{to:z,from:j}),Z(j,j,!0,!1)),(q?Promise.resolve(q):A(z,j)).catch(Y=>Yn(Y)?Yn(Y,2)?Y:U(Y):N(Y,z,j)).then(Y=>{if(Y){if(Yn(Y,2))return w(ee({replace:E},m(Y.to),{state:typeof Y.to=="object"?ee({},J,Y.to.state):J,force:ct}),$||z)}else Y=I(z,j,!0,E,J);return M(z,j,Y),Y})}function T(G,$){const K=_(G,$);return K?Promise.reject(K):Promise.resolve()}function C(G){const $=ht.values().next().value;return $&&typeof $.runWithContext=="function"?$.runWithContext(G):G()}function A(G,$){let K;const[j,J,ct]=aV(G,$);K=bp(j.reverse(),"beforeRouteLeave",G,$);for(const k of j)k.leaveGuards.forEach(z=>{K.push(Na(z,G,$))});const E=T.bind(null,G,$);return K.push(E),xt(K).then(()=>{K=[];for(const k of i.list())K.push(Na(k,G,$));return K.push(E),xt(K)}).then(()=>{K=bp(J,"beforeRouteUpdate",G,$);for(const k of J)k.updateGuards.forEach(z=>{K.push(Na(z,G,$))});return K.push(E),xt(K)}).then(()=>{K=[];for(const k of ct)if(k.beforeEnter)if(un(k.beforeEnter))for(const z of k.beforeEnter)K.push(Na(z,G,$));else K.push(Na(k.beforeEnter,G,$));return K.push(E),xt(K)}).then(()=>(G.matched.forEach(k=>k.enterCallbacks={}),K=bp(ct,"beforeRouteEnter",G,$,C),K.push(E),xt(K))).then(()=>{K=[];for(const k of o.list())K.push(Na(k,G,$));return K.push(E),xt(K)}).catch(k=>Yn(k,8)?k:Promise.reject(k))}function M(G,$,K){s.list().forEach(j=>C(()=>j(G,$,K)))}function I(G,$,K,j,J){const ct=_(G,$);if(ct)return ct;const E=$===xa,k=rs?history.state:{};K&&(j||E?a.replace(G.fullPath,ee({scroll:E&&k&&k.scroll},J)):a.push(G.fullPath,J)),l.value=G,Z(G,$,K,E),U()}let L;function P(){L||(L=a.listen((G,$,K)=>{if(!Tt.listening)return;const j=y(G),J=x(j);if(J){w(ee(J,{replace:!0}),j).catch(Jl);return}u=j;const ct=l.value;rs&&MB(fS(ct.fullPath,K.delta),Sv()),A(j,ct).catch(E=>Yn(E,12)?E:Yn(E,2)?(w(E.to,j).then(k=>{Yn(k,20)&&!K.delta&&K.type===Tu.pop&&a.go(-1,!1)}).catch(Jl),Promise.reject()):(K.delta&&a.go(-K.delta,!1),N(E,j,ct))).then(E=>{E=E||I(j,ct,!1),E&&(K.delta&&!Yn(E,8)?a.go(-K.delta,!1):K.type===Tu.pop&&Yn(E,20)&&a.go(-1,!1)),M(j,ct,E)}).catch(Jl)}))}let R=al(),O=al(),B;function N(G,$,K){U(G);const j=O.list();return j.length?j.forEach(J=>J(G,$,K)):console.error(G),Promise.reject(G)}function F(){return B&&l.value!==xa?Promise.resolve():new Promise((G,$)=>{R.add([G,$])})}function U(G){return B||(B=!G,P(),R.list().forEach(([$,K])=>G?K(G):$()),R.reset()),G}function Z(G,$,K,j){const{scrollBehavior:J}=r;if(!rs||!J)return Promise.resolve();const ct=!K&&IB(fS(G.fullPath,0))||(j||!K)&&history.state&&history.state.scroll||null;return aM().then(()=>J(G,$,ct)).then(E=>E&&DB(E)).catch(E=>N(E,G,$))}const Q=G=>a.go(G);let ft;const ht=new Set,Tt={currentRoute:l,listening:!0,addRoute:v,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:d,resolve:y,options:r,push:S,replace:b,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:F,install(G){const $=this;G.component("RouterLink",QB),G.component("RouterView",rV),G.config.globalProperties.$router=$,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>io(l)}),rs&&!ft&&l.value===xa&&(ft=!0,S(a.location).catch(J=>{}));const K={};for(const J in xa)Object.defineProperty(K,J,{get:()=>l.value[J],enumerable:!0});G.provide(S0,$),G.provide(XM,JD(K)),G.provide(oy,l);const j=G.unmount;ht.add(G),G.unmount=function(){ht.delete(G),ht.size<1&&(u=xa,L&&L(),L=null,l.value=xa,ft=!1,B=!1),j()}}};function xt(G){return G.reduce(($,K)=>$.then(()=>C(K)),Promise.resolve())}return Tt}function aV(r,t){const e=[],n=[],a=[],i=Math.max(t.matched.length,r.matched.length);for(let o=0;oCs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Cs(u,l))||a.push(l))}return[e,n,a]}const iV="";async function CS(){return(await fetch(`${iV}/api/status`)).json()}const oV="/svg/location.svg";/*! ***************************************************************************** + */const rs=typeof document<"u";function OM(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function nB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&OM(r.default)}const ee=Object.assign;function Sp(r,t){const e={};for(const n in t){const a=t[n];e[n]=un(a)?a.map(r):r(a)}return e}const Jl=()=>{},un=Array.isArray,NM=/#/g,aB=/&/g,iB=/\//g,oB=/=/g,sB=/\?/g,BM=/\+/g,lB=/%5B/g,uB=/%5D/g,VM=/%5E/g,fB=/%60/g,zM=/%7B/g,cB=/%7C/g,FM=/%7D/g,hB=/%20/g;function _0(r){return encodeURI(""+r).replace(cB,"|").replace(lB,"[").replace(uB,"]")}function vB(r){return _0(r).replace(zM,"{").replace(FM,"}").replace(VM,"^")}function ay(r){return _0(r).replace(BM,"%2B").replace(hB,"+").replace(NM,"%23").replace(aB,"%26").replace(fB,"`").replace(zM,"{").replace(FM,"}").replace(VM,"^")}function pB(r){return ay(r).replace(oB,"%3D")}function dB(r){return _0(r).replace(NM,"%23").replace(sB,"%3F")}function gB(r){return r==null?"":dB(r).replace(iB,"%2F")}function wu(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const yB=/\/$/,mB=r=>r.replace(yB,"");function xp(r,t,e="/"){let n,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=r(i)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=bB(n??t,e),{fullPath:n+(i&&"?")+i+o,path:n,query:a,hash:wu(o)}}function _B(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function lS(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function SB(r,t,e){const n=t.matched.length-1,a=e.matched.length-1;return n>-1&&n===a&&Cs(t.matched[n],e.matched[a])&&GM(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Cs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function GM(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!xB(r[e],t[e]))return!1;return!0}function xB(r,t){return un(r)?uS(r,t):un(t)?uS(t,r):r===t}function uS(r,t){return un(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function bB(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let i=e.length-1,o,s;for(o=0;o1&&i--;else break;return e.slice(0,i).join("/")+"/"+n.slice(o).join("/")}const xa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Tu;(function(r){r.pop="pop",r.push="push"})(Tu||(Tu={}));var tu;(function(r){r.back="back",r.forward="forward",r.unknown=""})(tu||(tu={}));function wB(r){if(!r)if(rs){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),mB(r)}const TB=/^[^#]+#/;function CB(r,t){return r.replace(TB,"#")+t}function AB(r,t){const e=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:t.behavior,left:n.left-e.left-(t.left||0),top:n.top-e.top-(t.top||0)}}const Sv=()=>({left:window.scrollX,top:window.scrollY});function DB(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),a=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!a)return;t=AB(a,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function fS(r,t){return(history.state?history.state.position-t:-1)+r}const iy=new Map;function MB(r,t){iy.set(r,t)}function IB(r){const t=iy.get(r);return iy.delete(r),t}let LB=()=>location.protocol+"//"+location.host;function HM(r,t){const{pathname:e,search:n,hash:a}=t,i=r.indexOf("#");if(i>-1){let s=a.includes(r.slice(i))?r.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),lS(l,"")}return lS(e,r)+n+a}function PB(r,t,e,n){let a=[],i=[],o=null;const s=({state:h})=>{const v=HM(r,location),p=e.value,d=t.value;let g=0;if(h){if(e.value=v,t.value=h,o&&o===p){o=null;return}g=d?h.position-d.position:0}else n(v);a.forEach(y=>{y(e.value,p,{delta:g,type:Tu.pop,direction:g?g>0?tu.forward:tu.back:tu.unknown})})};function l(){o=e.value}function u(h){a.push(h);const v=()=>{const p=a.indexOf(h);p>-1&&a.splice(p,1)};return i.push(v),v}function f(){const{history:h}=window;h.state&&h.replaceState(ee({},h.state,{scroll:Sv()}),"")}function c(){for(const h of i)h();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:u,destroy:c}}function cS(r,t,e,n=!1,a=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:a?Sv():null}}function RB(r){const{history:t,location:e}=window,n={value:HM(r,e)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,f){const c=r.indexOf("#"),h=c>-1?(e.host&&document.querySelector("base")?r:r.slice(c))+l:LB()+r+l;try{t[f?"replaceState":"pushState"](u,"",h),a.value=u}catch(v){console.error(v),e[f?"replace":"assign"](h)}}function o(l,u){const f=ee({},t.state,cS(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,f,!0),n.value=l}function s(l,u){const f=ee({},a.value,t.state,{forward:l,scroll:Sv()});i(f.current,f,!0);const c=ee({},cS(n.value,l,null),{position:f.position+1},u);i(l,c,!1),n.value=l}return{location:n,state:a,push:s,replace:o}}function EB(r){r=wB(r);const t=RB(r),e=PB(r,t.state,t.location,t.replace);function n(i,o=!0){o||e.pauseListeners(),history.go(i)}const a=ee({location:"",base:r,go:n,createHref:CB.bind(null,r)},t,e);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function kB(r){return typeof r=="string"||r&&typeof r=="object"}function WM(r){return typeof r=="string"||typeof r=="symbol"}const UM=Symbol("");var hS;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(hS||(hS={}));function As(r,t){return ee(new Error,{type:r,[UM]:!0},t)}function Yn(r,t){return r instanceof Error&&UM in r&&(t==null||!!(r.type&t))}const vS="[^/]+?",OB={sensitive:!1,strict:!1,start:!0,end:!0},NB=/[.+*?^${}()[\]/\\]/g;function BB(r,t){const e=ee({},OB,t),n=[];let a=e.start?"^":"";const i=[];for(const u of r){const f=u.length?[]:[90];e.strict&&!u.length&&(a+="/");for(let c=0;ct.length?t.length===1&&t[0]===80?1:-1:0}function $M(r,t){let e=0;const n=r.score,a=t.score;for(;e0&&t[t.length-1]<0}const zB={type:0,value:""},FB=/[a-zA-Z0-9_]/;function GB(r){if(!r)return[[]];if(r==="/")return[[zB]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(v){throw new Error(`ERR (${e})/"${u}": ${v}`)}let e=0,n=e;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",f="";function c(){u&&(e===0?i.push({type:0,value:u}):e===1||e===2||e===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s{o(_)}:Jl}function o(c){if(WM(c)){const h=n.get(c);h&&(n.delete(c),e.splice(e.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=e.indexOf(c);h>-1&&(e.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return e}function l(c){const h=YB(c,e);e.splice(h,0,c),c.record.name&&!yS(c)&&n.set(c.record.name,c)}function u(c,h){let v,p={},d,g;if("name"in c&&c.name){if(v=n.get(c.name),!v)throw As(1,{location:c});g=v.record.name,p=ee(dS(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&dS(c.params,v.keys.map(_=>_.name))),d=v.stringify(p)}else if(c.path!=null)d=c.path,v=e.find(_=>_.re.test(d)),v&&(p=v.parse(d),g=v.record.name);else{if(v=h.name?n.get(h.name):e.find(_=>_.re.test(h.path)),!v)throw As(1,{location:c,currentLocation:h});g=v.record.name,p=ee({},h.params,c.params),d=v.stringify(p)}const y=[];let m=v;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:d,params:p,matched:y,meta:$B(y)}}r.forEach(c=>i(c));function f(){e.length=0,n.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:a}}function dS(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function gS(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:UB(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function UB(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const n in r.components)t[n]=typeof e=="object"?e[n]:e;return t}function yS(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function $B(r){return r.reduce((t,e)=>ee(t,e.meta),{})}function mS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}function YB(r,t){let e=0,n=t.length;for(;e!==n;){const i=e+n>>1;$M(r,t[i])<0?n=i:e=i+1}const a=XB(r);return a&&(n=t.lastIndexOf(a,n-1)),n}function XB(r){let t=r;for(;t=t.parent;)if(YM(t)&&$M(r,t)===0)return t}function YM({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function ZB(r){const t={};if(r===""||r==="?")return t;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let a=0;ai&&ay(i)):[n&&ay(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function qB(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=un(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const KB=Symbol(""),SS=Symbol(""),S0=Symbol(""),XM=Symbol(""),oy=Symbol("");function al(){let r=[];function t(n){return r.push(n),()=>{const a=r.indexOf(n);a>-1&&r.splice(a,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function Na(r,t,e,n,a,i=o=>o()){const o=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(As(4,{from:e,to:t})):h instanceof Error?l(h):kB(h)?l(As(2,{from:t,to:h})):(o&&n.enterCallbacks[a]===o&&typeof h=="function"&&o.push(h),s())},f=i(()=>r.call(n&&n.instances[a],t,e,u));let c=Promise.resolve(f);r.length<3&&(c=c.then(u)),c.catch(h=>l(h))})}function bp(r,t,e,n,a=i=>i()){const i=[];for(const o of r)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(OM(l)){const f=(l.__vccOpts||l)[t];f&&i.push(Na(f,e,n,o,s,a))}else{let u=l();i.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=nB(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const v=(c.__vccOpts||c)[t];return v&&Na(v,e,n,o,s,a)()}))}}return i}function xS(r){const t=ra(S0),e=ra(XM),n=He(()=>{const l=io(r.to);return t.resolve(l)}),a=He(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=e.matched;if(!f||!c.length)return-1;const h=c.findIndex(Cs.bind(null,f));if(h>-1)return h;const v=bS(l[u-2]);return u>1&&bS(f)===v&&c[c.length-1].path!==v?c.findIndex(Cs.bind(null,l[u-2])):h}),i=He(()=>a.value>-1&&tV(e.params,n.value.params)),o=He(()=>a.value>-1&&a.value===e.matched.length-1&&GM(e.params,n.value.params));function s(l={}){return JB(l)?t[io(r.replace)?"replace":"push"](io(r.to)).catch(Jl):Promise.resolve()}return{route:n,href:He(()=>n.value.href),isActive:i,isExactActive:o,navigate:s}}const jB=tf({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:xS,setup(r,{slots:t}){const e=vv(xS(r)),{options:n}=ra(S0),a=He(()=>({[wS(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[wS(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const i=t.default&&t.default(e);return r.custom?i:EM("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:a.value},i)}}}),QB=jB;function JB(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function tV(r,t){for(const e in t){const n=t[e],a=r[e];if(typeof n=="string"){if(n!==a)return!1}else if(!un(a)||a.length!==n.length||n.some((i,o)=>i!==a[o]))return!1}return!0}function bS(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const wS=(r,t,e)=>r??t??e,eV=tf({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=ra(oy),a=He(()=>r.route||n.value),i=ra(SS,0),o=He(()=>{let u=io(i);const{matched:f}=a.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=He(()=>a.value.matched[o.value]);Oc(SS,He(()=>o.value+1)),Oc(KB,s),Oc(oy,a);const l=Ea();return Kl(()=>[l.value,s.value,r.name],([u,f,c],[h,v,p])=>{f&&(f.instances[c]=u,v&&v!==f&&u&&u===h&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),u&&f&&(!v||!Cs(f,v)||!h)&&(f.enterCallbacks[c]||[]).forEach(d=>d(u))},{flush:"post"}),()=>{const u=a.value,f=r.name,c=s.value,h=c&&c.components[f];if(!h)return TS(e.default,{Component:h,route:u});const v=c.props[f],p=v?v===!0?u.params:typeof v=="function"?v(u):v:null,g=EM(h,ee({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return TS(e.default,{Component:g,route:u})||g}}});function TS(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const rV=eV;function nV(r){const t=WB(r.routes,r),e=r.parseQuery||ZB,n=r.stringifyQuery||_S,a=r.history,i=al(),o=al(),s=al(),l=hO(xa);let u=xa;rs&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Sp.bind(null,G=>""+G),c=Sp.bind(null,gB),h=Sp.bind(null,wu);function v(G,$){let K,j;return WM(G)?(K=t.getRecordMatcher(G),j=$):j=G,t.addRoute(j,K)}function p(G){const $=t.getRecordMatcher(G);$&&t.removeRoute($)}function d(){return t.getRoutes().map(G=>G.record)}function g(G){return!!t.getRecordMatcher(G)}function y(G,$){if($=ee({},$||l.value),typeof G=="string"){const k=xp(e,G,$.path),z=t.resolve({path:k.path},$),q=a.createHref(k.fullPath);return ee(k,z,{params:h(z.params),hash:wu(k.hash),redirectedFrom:void 0,href:q})}let K;if(G.path!=null)K=ee({},G,{path:xp(e,G.path,$.path).path});else{const k=ee({},G.params);for(const z in k)k[z]==null&&delete k[z];K=ee({},G,{params:c(k)}),$.params=c($.params)}const j=t.resolve(K,$),J=G.hash||"";j.params=f(h(j.params));const ct=_B(n,ee({},G,{hash:vB(J),path:j.path})),E=a.createHref(ct);return ee({fullPath:ct,hash:J,query:n===_S?qB(G.query):G.query||{}},j,{redirectedFrom:void 0,href:E})}function m(G){return typeof G=="string"?xp(e,G,l.value.path):ee({},G)}function _(G,$){if(u!==G)return As(8,{from:$,to:G})}function S(G){return w(G)}function b(G){return S(ee(m(G),{replace:!0}))}function x(G){const $=G.matched[G.matched.length-1];if($&&$.redirect){const{redirect:K}=$;let j=typeof K=="function"?K(G):K;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=m(j):{path:j},j.params={}),ee({query:G.query,hash:G.hash,params:j.path!=null?{}:G.params},j)}}function w(G,$){const K=u=y(G),j=l.value,J=G.state,ct=G.force,E=G.replace===!0,k=x(K);if(k)return w(ee(m(k),{state:typeof k=="object"?ee({},J,k.state):J,force:ct,replace:E}),$||K);const z=K;z.redirectedFrom=$;let q;return!ct&&SB(n,j,K)&&(q=As(16,{to:z,from:j}),Z(j,j,!0,!1)),(q?Promise.resolve(q):A(z,j)).catch(Y=>Yn(Y)?Yn(Y,2)?Y:U(Y):N(Y,z,j)).then(Y=>{if(Y){if(Yn(Y,2))return w(ee({replace:E},m(Y.to),{state:typeof Y.to=="object"?ee({},J,Y.to.state):J,force:ct}),$||z)}else Y=I(z,j,!0,E,J);return M(z,j,Y),Y})}function T(G,$){const K=_(G,$);return K?Promise.reject(K):Promise.resolve()}function C(G){const $=ht.values().next().value;return $&&typeof $.runWithContext=="function"?$.runWithContext(G):G()}function A(G,$){let K;const[j,J,ct]=aV(G,$);K=bp(j.reverse(),"beforeRouteLeave",G,$);for(const k of j)k.leaveGuards.forEach(z=>{K.push(Na(z,G,$))});const E=T.bind(null,G,$);return K.push(E),xt(K).then(()=>{K=[];for(const k of i.list())K.push(Na(k,G,$));return K.push(E),xt(K)}).then(()=>{K=bp(J,"beforeRouteUpdate",G,$);for(const k of J)k.updateGuards.forEach(z=>{K.push(Na(z,G,$))});return K.push(E),xt(K)}).then(()=>{K=[];for(const k of ct)if(k.beforeEnter)if(un(k.beforeEnter))for(const z of k.beforeEnter)K.push(Na(z,G,$));else K.push(Na(k.beforeEnter,G,$));return K.push(E),xt(K)}).then(()=>(G.matched.forEach(k=>k.enterCallbacks={}),K=bp(ct,"beforeRouteEnter",G,$,C),K.push(E),xt(K))).then(()=>{K=[];for(const k of o.list())K.push(Na(k,G,$));return K.push(E),xt(K)}).catch(k=>Yn(k,8)?k:Promise.reject(k))}function M(G,$,K){s.list().forEach(j=>C(()=>j(G,$,K)))}function I(G,$,K,j,J){const ct=_(G,$);if(ct)return ct;const E=$===xa,k=rs?history.state:{};K&&(j||E?a.replace(G.fullPath,ee({scroll:E&&k&&k.scroll},J)):a.push(G.fullPath,J)),l.value=G,Z(G,$,K,E),U()}let L;function P(){L||(L=a.listen((G,$,K)=>{if(!Tt.listening)return;const j=y(G),J=x(j);if(J){w(ee(J,{replace:!0}),j).catch(Jl);return}u=j;const ct=l.value;rs&&MB(fS(ct.fullPath,K.delta),Sv()),A(j,ct).catch(E=>Yn(E,12)?E:Yn(E,2)?(w(E.to,j).then(k=>{Yn(k,20)&&!K.delta&&K.type===Tu.pop&&a.go(-1,!1)}).catch(Jl),Promise.reject()):(K.delta&&a.go(-K.delta,!1),N(E,j,ct))).then(E=>{E=E||I(j,ct,!1),E&&(K.delta&&!Yn(E,8)?a.go(-K.delta,!1):K.type===Tu.pop&&Yn(E,20)&&a.go(-1,!1)),M(j,ct,E)}).catch(Jl)}))}let R=al(),O=al(),B;function N(G,$,K){U(G);const j=O.list();return j.length?j.forEach(J=>J(G,$,K)):console.error(G),Promise.reject(G)}function F(){return B&&l.value!==xa?Promise.resolve():new Promise((G,$)=>{R.add([G,$])})}function U(G){return B||(B=!G,P(),R.list().forEach(([$,K])=>G?K(G):$()),R.reset()),G}function Z(G,$,K,j){const{scrollBehavior:J}=r;if(!rs||!J)return Promise.resolve();const ct=!K&&IB(fS(G.fullPath,0))||(j||!K)&&history.state&&history.state.scroll||null;return aM().then(()=>J(G,$,ct)).then(E=>E&&DB(E)).catch(E=>N(E,G,$))}const Q=G=>a.go(G);let ft;const ht=new Set,Tt={currentRoute:l,listening:!0,addRoute:v,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:d,resolve:y,options:r,push:S,replace:b,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:F,install(G){const $=this;G.component("RouterLink",QB),G.component("RouterView",rV),G.config.globalProperties.$router=$,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>io(l)}),rs&&!ft&&l.value===xa&&(ft=!0,S(a.location).catch(J=>{}));const K={};for(const J in xa)Object.defineProperty(K,J,{get:()=>l.value[J],enumerable:!0});G.provide(S0,$),G.provide(XM,JD(K)),G.provide(oy,l);const j=G.unmount;ht.add(G),G.unmount=function(){ht.delete(G),ht.size<1&&(u=xa,L&&L(),L=null,l.value=xa,ft=!1,B=!1),j()}}};function xt(G){return G.reduce(($,K)=>$.then(()=>C(K)),Promise.resolve())}return Tt}function aV(r,t){const e=[],n=[],a=[],i=Math.max(t.matched.length,r.matched.length);for(let o=0;oCs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Cs(u,l))||a.push(l))}return[e,n,a]}const iV="";async function CS(){return(await fetch(`${iV}/api/status`)).json()}const oV="/svg/location-new.svg";/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -77,4 +77,4 @@ PERFORMANCE OF THIS SOFTWARE. `:"
",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=_t(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,p=e.positionDefault,d=Il([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new gd;y.marker=m.makeTooltipMarker("item",xo(y.color),v);var _=hb(u.formatTooltip(f,!1,c)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?mb(b?H({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=_t(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(nt(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=yt(l),l.content=ur(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=e.positionDefault,p=Il(c,this._tooltipModel,v?{position:v}:null),d=p.get("content"),g=Math.random()+"",y=new gd;this._showOrMove(p,function(){var m=yt(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,e.offsetX,e.offsetY,e.position,n,y)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,p=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),d=p.color;if(h)if(nt(h)){var g=e.ecModel.get("useUTC"),y=W(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=zv(y.axisValue,v,g)),v=BL(v,a,!0)}else if(vt(h)){var _=it(function(S,b){S===this._ticket&&(c.setContent(b,f,e,d,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,e,d,l),c.show(e,d),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||W(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!W(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),vt(n)&&(n=n([a,i],s,o.el,p,{viewSize:[u,f],contentSize:c.slice()})),W(n))a=et(n[0],u),i=et(n[1],f);else if(gt(n)){var d=n;d.width=c[0],d.height=c[1];var g=xe(d,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(nt(n)&&l){var y=vK(n,p,c,e.get("borderWidth"));a=y[0],i=y[1]}else{var y=cK(a,i,o,u,f,h?null:20,v?null:20);a=y[0],i=y[1]}if(h&&(a-=DA(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=DA(v)?c[1]/2:v==="bottom"?c[1]:0),tk(e)){var y=hK(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(h,v){var p=c[v]||{},d=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&d.length===g.length,o&&D(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Rt.node||!n.getDom()||(Bu(this,"_updatePosition"),this._tooltipContent.dispose(),km("itemTooltip",n))},t.type="tooltip",t}(ue);function Il(r,t,e){var n=t.ecModel,a;e?(a=new Ut(e,n,n),a=new Ut(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ut&&(o=o.get("tooltip",!0)),nt(o)&&(o={formatter:o}),o&&(a=new Ut(o,a,n)))}return a}function AA(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function cK(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function hK(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function vK(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function DA(r){return r==="center"||r==="middle"}function pK(r,t,e){var n=N0(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=af(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=_t(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function dK(r){Lt(Tf),r.registerComponentModel(jq),r.registerComponentView(fK),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},pe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},pe)}var gK=["rect","polygon","keep","clear"];function yK(r,t){var e=qt(r?r.brush:[]);if(e.length){var n=[];D(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;W(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),mK(s),t&&!s.length&&s.push.apply(s,gK)}}function mK(r){var t={};D(r,function(e){t[e]=1}),r.length=0,D(t,function(e,n){r.push(n)})}var MA=D;function IA(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Fm(r,t,e){var n={};return MA(t,function(i){var o=n[i]=a();MA(r[i],function(s,l){if(Ce.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Ce(u),l==="opacity"&&(u=yt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ce(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function ak(r,t,e){var n;D(e,function(a){t.hasOwnProperty(a)&&IA(t[a])&&(n=!0)}),n&&D(e,function(a){t.hasOwnProperty(a)&&IA(t[a])?r[a]=yt(t[a]):delete r[a]})}function _K(r,t,e,n,a,i){var o={};D(r,function(c){var h=Ce.prepareVisualTypes(t[c]);o[c]=h});var s;function l(c){return c_(e,s,c)}function u(c,h){A2(e,s,c,h)}e.each(f);function f(c,h){s=c;var v=e.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var p=n.call(a,c),d=t[p],g=o[p],y=0,m=g.length;yt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&kA(t)}};function kA(r){return new Mt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var DK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new Z_(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){ik(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:yt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:yt(a),$from:n})},t.type="brush",t}(ue),MK="#ddd",IK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&ak(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:MK},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=X(e,function(n){return OA(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=OA(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(kt);function OA(r,t){return Dt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ut(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var LK=["rect","polygon","lineX","lineY","keep","clear"],PK=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return D(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var n={show:!0,type:LK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(Br);function RK(r){r.registerComponentView(DK),r.registerComponentModel(IK),r.registerPreprocessor(yK),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,bK),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},pe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},pe),ss("brush",PK)}var EK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(kt),kK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=St(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ft({style:ne(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Ft({style:ne(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),d=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!p&&!g,v.silent=!d&&!g,p&&f.on("click",function(){Mh(p,"_"+e.get("target"))}),d&&v.on("click",function(){Mh(d,"_"+e.get("subtarget"))}),_t(f).eventData=_t(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=xe(m,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new Vt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},t.type="title",t}(ue);function OK(r){r.registerComponentModel(EK),r.registerComponentView(kK)}var NA=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],a=e.axisType,i=this._names=[],o;a==="category"?(o=[],D(n,function(u,f){var c=_e(Gs(u),""),h;gt(u)?(h=yt(u),h.value=f):h=f,o.push(h),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new tr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={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:[]},t}(kt),ok=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=hi(NA.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,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:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(NA);me(ok,Yv.prototype);var NK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(ue),BK=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(vn),Eg=Math.PI,BA=zt(),VK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return De("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),o=FK(e,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Eg/2},c=i==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),v=h.get("show",!0),p=v?h.get("itemSize"):0,d=v?h.get("itemGap"):0,g=p+d,y=e.get(["label","rotate"])||0;y=y*Eg/180;var m,_,S,b=h.get("position",!0),x=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),C=0,A=c;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[A-p,0],A-=g)):(x&&(m=[A-p,0],A-=g),w&&(_=[0,0],C+=g),T&&(S=[A-p,0],A-=g));var M=[C,A];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:d}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Tr(),l=o.x,u=o.y+o.height;Vn(s,s,[-l,-u]),Ao(s,s,-Eg/2),Vn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),h=m(i.getBoundingRect()),v=[a.x,a.y],p=[i.x,i.y];p[0]=v[0]=f[0][0];var d=e.labelPosOpt;if(d==null||nt(d)){var g=d==="+"?0:1;_(v,c,f,1,g),_(p,h,f,1,1-g)}else{var g=d>=0?0:1;_(v,c,f,1,g),p[1]=v[1]+d}a.setPosition(v),i.setPosition(p),a.rotation=i.rotation=e.rotation,y(a),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType"),o=zK(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new BK("value",o,e.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new mt;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new we({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:H({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new we({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:dt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(e,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),v=c.getModel(["emphasis","itemStyle"]),p=c.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:it(o._changeTimeline,o,u.value)},g=VA(c,h,n,d);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),fo(g);var y=_t(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],D(u,function(f){var c=f.tickValue,h=l.getItemModel(c),v=h.getModel("label"),p=h.getModel(["emphasis","label"]),d=h.getModel(["progress","label"]),g=a.dataToCoord(f.tickValue),y=new Ft({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:it(o._changeTimeline,o,c),silent:!1,style:ne(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=ne(p),y.ensureState("progress").style=ne(d),n.add(y),fo(y),BA(y).dataIndex=c,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,n,a,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);h(e.nextBtnPosition,"next",it(this._changeTimeline,this,c?"-":"+")),h(e.prevBtnPosition,"prev",it(this._changeTimeline,this,c?"+":"-")),h(e.playPosition,f?"stop":"play",it(this._handlePlayClick,this,!f),!0);function h(v,p,d,g){if(v){var y=fn(St(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=GK(i,p+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,n.add(_),fo(_)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=it(u._handlePointerDrag,u),c.ondragend=it(u._handlePointerDragend,u),zA(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){zA(c,u._progressLine,s,a,i)}};this._currentPointer=VA(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,o=Fr(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var kg={min:bt(Pc,"min"),max:bt(Pc,"max"),average:bt(Pc,"average"),median:bt(Pc,"median")};function ju(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!XK(t)&&!W(t.coord)&&W(a)){var i=sk(t,e,n,r);if(t=yt(t),t.type&&kg[t.type]&&i.baseAxis&&i.valueAxis){var o=It(a,i.baseAxis.dim),s=It(a,i.valueAxis.dim),l=kg[t.type](e,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!W(a))t.coord=[];else for(var u=t.coord,f=0;f<2;f++)kg[u[f]]&&(u[f]=w1(e,e.mapDimension(a[f]),u[f]));return t}}function sk(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(ZK(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function ZK(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Qu(r,t){return r&&r.containData&&t.coord&&!Hm(t)?r.containData(t.coord):!0}function qK(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Hm(t)&&!Hm(e)?r.containZone(t.coord,e.coord):!0}function lk(r,t){return r?function(e,n,a,i){var o=i<2?e.coord&&e.coord[i]:e.value;return ja(o,t[i])}:function(e,n,a,i){return ja(e.value,t[i])}}function w1(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Og=zt(),T1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ut()},t.prototype.render=function(e,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){Og(s).keep=!1}),n.eachSeries(function(s){var l=da.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!Og(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(e){Og(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;D(e,function(i){var o=da.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?tL(l):W0(l))})}})},t.type="marker",t}(ue);function GA(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),o,s=et(i.get("x"),e.getWidth()),l=et(i.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var u=r.get(n.dimensions[0],a),f=r.get(n.dimensions[1],a);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var KK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=da.getMarkerModelFromSeries(i,"markPoint");o&&(GA(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new yf),c=jK(o,e,n);n.setData(c),GA(n.getData(),e,i),c.each(function(h){var v=c.getItemModel(h),p=v.getShallow("symbol"),d=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(vt(p)||vt(d)||vt(g)||vt(y)){var _=n.getRawValue(h),S=n.getDataParams(h);vt(p)&&(p=p(_,S)),vt(d)&&(d=d(_,S)),vt(g)&&(g=g(_,S)),vt(y)&&(y=y(_,S))}var b=v.getModel("itemStyle").getItemStyle(),x=vf(l,"color");b.fill||(b.fill=x),c.setItemVisual(h,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){_t(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(T1);function jK(r,t,e){var n;r?n=X(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return H(H({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new tr(n,e),i=X(e.get("data"),bt(ju,t));r&&(i=Zt(i,bt(Qu,r)));var o=lk(!!r,n);return a.initData(i,null,o),a}function QK(r){r.registerComponentModel(YK),r.registerComponentView(KK),r.registerPreprocessor(function(t){b1(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var JK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(da),Rc=zt(),tj=function(r,t,e,n){var a=r.getData(),i;if(W(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Ie(n.yAxis,n.xAxis);else{var u=sk(n,a,t,r);s=u.valueAxis;var f=eP(a,u.valueDataDim);l=w1(a,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=yt(n),p={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,p.coord[h]=1/0;var d=e.get("precision");d>=0&&Gt(l)&&(l=+l.toFixed(Math.min(d,20))),v.coord[c]=p.coord[c]=l,i=[v,p,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[ju(r,i[0]),ju(r,i[1]),H({},i[2])];return g[2].type=g[2].type||null,Dt(g[2],g[0]),Dt(g[2],g[1]),g};function Jh(r){return!isNaN(r)&&!isFinite(r)}function HA(r,t,e,n){var a=1-r,i=n.dimensions[r];return Jh(t[a])&&Jh(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function ej(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(HA(1,e,n,r)||HA(0,e,n,r)))return!0}return Qu(r,t[0])&&Qu(r,t[1])}function Ng(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=et(o.get("x"),a.getWidth()),u=et(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,c=r.get(f[0],t),h=r.get(f[1],t);s=i.dataToPoint([c,h])}if(Lo(i,"cartesian2d")){var v=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;Jh(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):Jh(r.get(f[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var rj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=da.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Rc(o).from,u=Rc(o).to;l.each(function(f){Ng(l,f,!0,i,a),Ng(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new X_);this.group.add(f.group);var c=nj(o,e,n),h=c.from,v=c.to,p=c.line;Rc(n).from=h,Rc(n).to=v,n.setData(p);var d=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");W(d)||(d=[d,d]),W(g)||(g=[g,g]),W(y)||(y=[y,y]),W(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),b.stroke==null&&(b.stroke=h.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),c.line.eachItemGraphicEl(function(S){_t(S).dataModel=n,S.traverse(function(b){_t(b).dataModel=n})});function _(S,b,x){var w=S.getItemModel(b);Ng(S,b,x,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=vf(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:St(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:St(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:St(w.get("symbolSize"),g[x?0:1]),symbol:St(w.get("symbol",!0),d[x?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(T1);function nj(r,t,e){var n;r?n=X(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return H(H({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new tr(n,e),i=new tr(n,e),o=new tr([],e),s=X(e.get("data"),bt(tj,t,r,e));r&&(s=Zt(s,bt(ej,r)));var l=lk(!!r,n);return a.initData(X(s,function(u){return u[0]}),null,l),i.initData(X(s,function(u){return u[1]}),null,l),o.initData(X(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function aj(r){r.registerComponentModel(JK),r.registerComponentView(rj),r.registerPreprocessor(function(t){b1(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var ij=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(da),Ec=zt(),oj=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=ju(r,a),s=ju(r,i),l=o.coord,u=s.coord;l[0]=Ie(l[0],-1/0),l[1]=Ie(l[1],-1/0),u[0]=Ie(u[0],1/0),u[1]=Ie(u[1],1/0);var f=C0([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function tv(r){return!isNaN(r)&&!isFinite(r)}function WA(r,t,e,n){var a=1-r;return tv(t[a])&&tv(e[a])}function sj(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return Lo(r,"cartesian2d")?e&&n&&(WA(1,e,n)||WA(0,e,n))?!0:qK(r,a,i):Qu(r,a)||Qu(r,i)}function UA(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=et(o.get(e[0]),a.getWidth()),u=et(o.get(e[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],t),c=r.getValues(["x1","y1"],t),h=i.clampData(f),v=i.clampData(c),p=[];e[0]==="x0"?p[0]=h[0]>v[0]?c[0]:f[0]:p[0]=h[0]>v[0]?f[0]:c[0],e[1]==="y0"?p[1]=h[1]>v[1]?c[1]:f[1]:p[1]=h[1]>v[1]?f[1]:c[1],s=n.getMarkerPosition(p,e,!0)}else{var d=r.get(e[0],t),g=r.get(e[1],t),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Lo(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(e[0],t),g=r.get(e[1],t);tv(d)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):tv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var $A=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],lj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=da.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=X($A,function(c){return UA(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new mt});this.group.add(f.group),this.markKeep(f);var c=uj(o,e,n);n.setData(c),c.each(function(h){var v=X($A,function(T){return UA(c,h,T,e,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(c.get("x0",h)),p.parse(c.get("x1",h))],_=[d.parse(c.get("y0",h)),d.parse(c.get("y1",h))];Fr(m),Fr(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),b=!S;c.setItemLayout(h,{points:v,allClipped:b});var x=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=vf(l,"color");x.fill||(x.fill=w,nt(x.fill)&&(x.fill=gh(x.fill,.4))),x.stroke||(x.stroke=w),c.setItemVisual(h,"style",x)}),c.diff(Ec(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var p=new ir({shape:{points:v.points}});c.setItemGraphicEl(h,p),f.group.add(p)}}).update(function(h,v){var p=Ec(f).data.getItemGraphicEl(v),d=c.getItemLayout(h);d.allClipped?p&&f.group.remove(p):(p?Ht(p,{shape:{points:d.points}},n,h):p=new ir({shape:{points:d.points}}),c.setItemGraphicEl(h,p),f.group.add(p))}).remove(function(h){var v=Ec(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var p=c.getItemModel(v),d=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),Oe(h,Ae(p),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:nt(d.fill)?gh(d.fill,1):"#000"}),ke(h,p),ce(h,null,null,p.get(["emphasis","disabled"])),_t(h).dataModel=n}),Ec(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(T1);function uj(r,t,e){var n,a,i=["x0","y0","x1","y1"];if(r){var o=X(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return H(H({},c),{name:u,ordinalMeta:null})});a=X(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new tr(a,e)}else a=[{name:"value",type:"float"}],n=new tr(a,e);var s=X(e.get("data"),bt(oj,t,r,e));r&&(s=Zt(s,bt(sj,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return ja(v,a[h])}:function(u,f,c,h){return ja(u.value,a[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}function fj(r){r.registerComponentModel(ij),r.registerComponentView(lj),r.registerPreprocessor(function(t){b1(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var cj=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Wm=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,a=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),W(n)&&D(n,function(i,o){nt(i)&&(i={type:i}),n[o]=Dt(i,cj(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(kt),jo=bt,Um=D,kc=mt,uk=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new kc),this.group.add(this._selectorGroup=new kc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var f=e.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=xe(f,c,h),p=this.layoutInner(e,o,v,i,l,u),d=xe(dt({width:p.width,height:p.height},f),c,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jE(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=ut(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Um(n.getData(),function(v,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===` `)){var g=new kc;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,v,n,e,_,b,S,c,i);x.on("click",jo(YA,d,null,i,h)).on("mouseover",jo($m,y.name,null,i,h)).on("mouseout",jo(Ym,y.name,null,i,h)),a.ssr&&x.eachChild(function(w){var T=_t(w);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),f.set(d,!0)}else a.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),A=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),I=Cr(A.fill);I&&I[3]===0&&(I[3]=.2,A=H(H({},A),{fill:ia(I,"rgba")}));var L=this._createItem(w,d,p,v,n,e,{},A,M,c,i);L.on("click",jo(YA,null,d,i,h)).on("mouseover",jo($m,null,d,i,h)).on("mouseout",jo(Ym,null,d,i,h)),a.ssr&&L.eachChild(function(P){var R=_t(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();Um(e,function(u){var f=u.type,c=new Ft({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Oe(c,{normal:h,emphasis:v},{defaultText:u.title}),fo(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,h){var v=e.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=hj(f,i,l,u,v,g,h),b=new kc,x=i.getModel("textStyle");if(vt(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(vj({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,C=s,A=o.get("formatter"),M=n;nt(A)&&A?M=A.replace("{name}",n??""):vt(A)&&(M=A(n));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Ft({style:ne(x,{text:M,x:T,y:d/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new Vt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Us({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(b),fo(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ho(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ho("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],p=e.get("selectorButtonGap",!0),d=e.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?v[d]+=f[g]+p:c[d]+=h[g]+p,v[1-d]+=f[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+p+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+v[1-d]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ue);function hj(r,t,e,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Um(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Ps(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var p=t.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?n.lineWidth>0&&d?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function vj(r){var t=r.icon||"roundRect",e=ye(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function YA(r,t,e,n){Ym(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),$m(r,t,e,n)}function fk(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=St(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=v[s]/2-p[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var b={x:0,y:0};if(b[o]=d?a[o]:v[o],b[s]=Math.max(v[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),c.__rectSize=a[o],d){var x={x:0,y:0};x[o]=Math.max(a[o]-p[o]-_,0),x[s]=b[s],c.setClipPath(new Vt({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Ht(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",nt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Bg[o],l=Vg[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,p={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var d=S(c);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(uk);function mj(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function _j(r){Lt(ck),r.registerComponentModel(gj),r.registerComponentView(yj),mj(r)}function Sj(r){Lt(ck),Lt(_j)}var xj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=hi(Ku.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ku),C1=zt();function bj(r,t,e){C1(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function wj(r,t){for(var e=C1(r).coordSysRecordMap,n=e.keys(),a=0;an[e+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Mj(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=C1(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ut());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=ZE(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Tj(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=ut());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){hk(a,i);return}var f=Dj(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),js(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Ij=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),bj(a,e,{pan:it(zg.pan,this),zoom:it(zg.zoom,this),scrollMove:it(zg.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){wj(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(g1),zg={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=Fg[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ro(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:qA(function(r,t,e,n,a,i){var o=Fg[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:qA(function(r,t,e,n,a,i){var o=Fg[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function qA(r){return function(t,e,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,a);if(Ro(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Fg={grid:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,n,a){var i=e.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function vk(r){y1(r),r.registerComponentModel(xj),r.registerComponentView(Ij),Mj(r)}var Lj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=hi(Ku.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Ku),Rl=Vt,KA=7,Pj=1,Gg=30,Rj=7,El="horizontal",jA="vertical",Ej=5,kj=["line","bar","candlestick","scatter"],Oj={easing:"cubicOut",duration:100,delay:0},Nj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),js(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Bu(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new mt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?Rj:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===El?{right:s.width-o.x-o.width,top:s.height-Gg-KA-i,width:o.width,height:Gg}:{right:KA,top:o.y,width:Gg,height:o.height},u=Zs(e.option);D(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var f=xe(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===jA&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===El&&!o?{scaleY:l?1:-1,scaleX:1}:a===El&&o?{scaleY:l?1:-1,scaleX:-1}:a===jA&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=n.x-u.x,e.y=n.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Rl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Rl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var v=[0,n[1]],p=[0,n[0]],d=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(C,A){if(_>0&&A%_){m+=y;return}var M=C==null||isNaN(C)||C==="",I=M?0:Yt(C,c,v,!0);M&&!S&&A?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function x(C){var A=b.getModel(C?"selectedDataBackground":"dataBackground"),M=new mt,I=new ir({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new or({shape:{points:f},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!a&&!(n!==!0&&It(kj,u.get("type"))<0)){var f=i.getComponent(Za(o),s).axis,c=Bj(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c),a={thisAxis:f,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=n.filler=new Rl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Rl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Pj,fill:"rgba(0,0,0,0)"}})),D([0,1],function(_){var S=l.get("handleIcon");!Ph[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=ye(S,-1,0,2,2,null,!0);b.attr({cursor:QA(this._orient),draggable:!0,drift:it(this._onDragMove,this,_),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=et(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),fo(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(a[_]=b);var C=l.getModel("textStyle");e.add(i[_]=new Ft({silent:!0,invisible:!0,style:ne(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=h;if(c){var p=et(l.get("moveHandleSize"),s[1]),d=n.moveHandle=new Vt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=ye(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));v=n.moveZone=new Vt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),v.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:QA(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Yt(e[0],[0,100],n,!0),Yt(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ro(n,i,o,a.get("zoomLock")?"all":e,s.minSpan!=null?Yt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Yt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Fr([Yt(i[0],o,l,!0),Yt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=Fr(a.slice()),o=this._size;D([0,1],function(v){var p=n.handles[v],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:a[v]+(v?-1:1),y:o[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fn[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new Ct(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Fr([Yt(a.x,o,s,!0),Yt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(la(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Rl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Oj:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=ZE(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(g1);function Bj(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function QA(r){return r==="vertical"?"ns-resize":"ew-resize"}function pk(r){r.registerComponentModel(Lj),r.registerComponentView(Nj),y1(r)}function Vj(r){Lt(vk),Lt(pk)}var dk={get:function(r,t,e){var n=yt((zj[r]||{})[t]);return e&&W(n)?n[n.length-1]:n}},zj={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},JA=Ce.mapVisual,Fj=Ce.eachVisual,Gj=W,tD=D,Hj=Fr,Wj=Yt,ev=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&ak(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Fm(this.option.controller,n,e),this.targetVisuals=Fm(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){D(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],W(e)&&(e=e.slice(),u=!0);var f=n?e:u?[c(e[0]),c(e[1])]:c(e);if(nt(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(vt(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?a[0]+" "+f[1]:e[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,n=Hj([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var a=e.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Dt(i,a),Dt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){Gj(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,h,v){var p=c[h],d=c[v];p&&!d&&(d=c[v]={},tD(p,function(g,y){if(Ce.isValidType(y)){var m=dk.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";tD(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=h&&yt(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&yt(v)||(s?m[0]:[m[0],m[0]])),_.symbol=JA(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;Fj(S,function(x){x>b&&(b=x)}),_.symbolSize=JA(S,function(x){return Wj(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(kt),eD=[20,140],Uj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=eD[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=eD[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):W(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=Fr((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=rD(this,"outOfRange",this.getExtent()),a=rD(this,"inRange",this.option.range.slice()),i=[];function o(v,p){i.push({value:v,color:e(v,p)})}for(var s=0,l=0,u=a.length,f=n.length;le[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new mt(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();$j([0,1],function(f){var c=o[f];c.setStyle("fill",n.handlesColor[f]),c.y=e[f];var h=bn(e[f],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=v/l[0],c.x=l[0]-v/2;var p=ln(a.handleLabelPoints[f],co(c,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",h),p=this.getControllerVisual(e,"symbolSize"),d=bn(e,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var m=ln(f.indicatorLabelPoint,co(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,C),_.animateTo(T,C)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;Mo[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||oD(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var p=n5(h,v);this._dispatchHighDown("downplay",ah(p[0],a)),this._dispatchHighDown("highlight",ah(p[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(to(e.target,function(l){var u=_t(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function Jj(r,t,e,n){for(var a=t.targetVisuals[n],i=Ce.prepareVisualTypes(a),o={color:vf(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Kj,jj),D(Qj,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(tQ))}function _k(r){r.registerComponentModel(Uj),r.registerComponentView(Zj),mk(r)}var eQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],rQ[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=yt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(l){return l=yt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=Ce.listVisualTypes(),i=this.isCategory();D(e.pieces,function(s){D(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&D(this.stateList,function(f){(e[f]||(e[f]={}))[l]=dk.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,o=(n?a:e).selected||{};if(a.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=yt(e)},t.prototype.getValueState=function(e){var n=Ce.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ce.findPieceIndex(l,a);f===e&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=e(h,c);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:n.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=hi(ev.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(ev),rQ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function fD(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var nQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),c=f.endsText,h=Ie(n.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],u,h,l),D(f.viewPieceList,function(v){var p=v.piece,d=new mt;d.onclick=it(this._onItemClick,this,p),this._enableHoverLink(d,v.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(g);d.add(new Ft({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(d)},this),c&&this._renderEndsText(e,c[1],u,h,l),ho(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:ah(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return yk(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,o){if(n){var s=new mt,l=this.visualMapModel.textStyleModel;s.add(new Ft({style:ne(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=X(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(ye(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=yt(a.selected),s=n.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(gk);function Sk(r){r.registerComponentModel(eQ),r.registerComponentView(nQ),mk(r)}function aQ(r){Lt(_k),Lt(Sk)}var iQ={label:{enabled:!0},decal:{show:!1}},cD=zt(),oQ={};function sQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=yt(iQ);Dt(n.label,r.getLocaleModel().get("aria"),!1),Dt(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=ut();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),cD(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(vt(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=Yy(h.ecModel,h.name,oQ,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var p=h.getRawData(),d={},g=cD(h).scope;v.each(function(b){var x=v.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=Yy(h.ecModel,w,g,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?H(H({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=dt(c.option,f),!!c.get("enabled")){if(c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,d=Math.min(h,p),g;if(!(h<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,C){if(C1?c.get(["series","multiple",I]):c.get(["series","single",I]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),B=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},fQ=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):wV(t)?t:null;if(e==null){var n="";Wt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Gt(e)?this._condVal.test(t+""):!1},r}(),cQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),hQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(a),a=[L,P]}function f(L,P,R,O){hs(L,R)&&hs(P,O)||a.push(L,P,R,O,R,O)}function c(L,P,R,O,B,N){var F=Math.abs(P-L),U=Math.tan(F/4)*4/3,Z=PT:M2&&n.push(a),n}function Zm(r,t,e,n,a,i,o,s,l,u){if(hs(r,e)&&hs(t,n)&&hs(a,o)&&hs(i,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-t,p=Math.sqrt(h*h+v*v);h/=p,v/=p;var d=e-r,g=n-t,y=a-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var C=[],A=[];ri(r,e,a,o,.5,C),ri(t,n,i,s,.5,A),Zm(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),Zm(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function AQ(r,t){var e=Xm(r),n=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),c=bk([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;va,o=bk([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,h=0;h1?null:new Ct(d*l+r,d*u+t)}function IQ(r,t,e){var n=new Ct;Ct.sub(n,e,t),n.normalize();var a=new Ct;Ct.sub(a,r,t);var i=a.dot(n);return i}function Jo(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function LQ(r,t,e){for(var n=r.length,a=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),LQ(t,u,f)}function rv(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);rv(r,i[0],a,n),rv(r,i[1],e-a,n)}return n}function PQ(r,t){for(var e=[],n=0;n0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function iv(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=X(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(c,e),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=X(i,function(s,l){return{cp:s,z:FQ(s[0],s[1],t,e,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Ck(r){return kQ(r.path,r.count)}function qm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function GQ(r,t,e){var n=[];function a(b){for(var x=0;x=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var WQ={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;SD(r)&&(u=r,f=t),SD(t)&&(u=t,f=r);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(nv(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?dt({delay:s(_,S)},l):l;D1(T,C,A),i(T,C,T,C,A)}}else for(var M=dt({dividePath:WQ[e],individualDelay:s&&function(B,N,F,U){return s(B+_,S)}},l),I=m?GQ(x,w,M):HQ(w,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,O=0;Ot.length,v=u?xD(f,u):xD(h?t:r,[h?r:t]),p=0,d=0;dAk))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Pt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function AD(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function DD(r){return W(r)?r.sort().join(","):r}function Va(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function KQ(r,t){var e=ut(),n=ut(),a=ut();return D(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=AD(i),f=DD(u);n.set(f,{dataGroupId:s,data:l}),W(u)&&D(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=AD(i),u=DD(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Va(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Va(s),data:s}]});else if(W(l)){var c=[];D(l,function(p){var d=n.get(p);d.data&&c.push({dataGroupId:d.dataGroupId,divide:Va(d.data),data:d.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Va(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Va(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Va(s)})}}}}),e}function MD(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Va(t.oldData[s]),groupIdDim:o.dimension})}),D(qt(r.to),function(o){var s=MD(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Va(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Dk(a,i,n)}function QQ(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){D(qt(n.seriesTransition),function(a){D(qt(a.to),function(i){for(var o=n.updatedSeries,s=0;st.status),n=Ea(null),a=Ea(null),i=Ea(null),o=Ea(null);let s=[];const l=Ea("#22c55e"),u=Ea("0"),f=He(()=>JQ(e.value.meta.os.name,e.value.meta.os.version)),c=He(()=>ID(e.value.hardware.mem.used,e.value.hardware.mem.total)),h=He(()=>e.value.hardware.swap.total>0?ID(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A");function v(){const p=ac(n.value),d=ac(a.value),g=ac(i.value),y=ac(o.value),m={color:"rgba(0, 0, 0, 0.8)",fontSize:13},_=["65%","90%"],S=["#4c4c4c","#e3e3e3"],b=["#4c4c4c","#bababa"];function x(){const w=Date.now()/1e3-e.value.meta.observed_at;u.value=w.toFixed(1),(s.length===0||s[s.length-1][0]!==e.value.meta.observed_at)&&s.push([e.value.meta.observed_at,e.value.hardware.net.up,e.value.hardware.net.down]),s.length>20&&s.shift(),w>30&&(l.value="#ff4d4f"),p.setOption({color:S,title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:m},series:[{type:"pie",radius:_,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:He(()=>[{value:e.value.hardware.cpu.percent},{value:100-e.value.hardware.cpu.percent}]).value}]}),d.setOption({color:S,title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:m},series:[{type:"pie",radius:_,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:e.value.hardware.mem.used},{value:e.value.hardware.mem.total-e.value.hardware.mem.used}]}]}),g.setOption({color:S,title:{text:e.value.hardware.swap.total>0?`${(e.value.hardware.swap.used/e.value.hardware.swap.total*100).toFixed(1)}%`:"N/A",left:"center",top:"center",textStyle:m},series:[{type:"pie",radius:_,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:e.value.hardware.swap.total>0?e.value.hardware.swap.used:0},{value:e.value.hardware.swap.total>0?e.value.hardware.swap.total-e.value.hardware.swap.used:100}]}]}),y.setOption({color:b,title:{text:"Network"},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{saveAsImage:{}}},grid:{top:"25%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:s.map(T=>T[0]),axisLabel:{formatter:function(T){return eJ(T,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(T){return Mk(T*8,null,"b")}}}],series:[{name:"Up",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(T=>T[1])},{name:"Down",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(T=>T[2])}]})}x(),Kl(()=>e.value,()=>{x()})}return v0(()=>{v()}),(p,d)=>(Ql(),lh("div",rJ,[Xt("div",nJ,[Xt("div",aJ,[Xt("span",null,wn(t.status.meta.name),1)]),Xt("div",iJ,[Xt("div",oJ,wn(u.value)+"s ago",1),Xt("div",{class:"dot",style:fv([{backgroundColor:l.value},{height:"15px",width:"15px","border-radius":"50%"}])},null,4)])]),Xt("div",sJ,[Xt("div",lJ,[Xt("img",{class:"icon",src:f.value.icon,alt:"system"},null,8,uJ),Xt("span",null,wn(f.value.name),1)]),Xt("div",fJ,[d[0]||(d[0]=Xt("img",{class:"icon",src:oV,alt:"system"},null,-1)),Xt("span",null,wn(t.status.meta.location),1)])]),Xt("div",cJ,[Xt("div",hJ,[Xt("div",{class:"chart",ref_key:"cpuChartRef",ref:n},null,512),d[1]||(d[1]=Xt("div",{class:"hw-title"},"CPU",-1)),Xt("div",vJ,wn(e.value.hardware.cpu.cores)+"C "+wn(e.value.hardware.cpu.logics)+"T",1)]),Xt("div",pJ,[Xt("div",{class:"chart",ref_key:"memoryChartRef",ref:a},null,512),d[2]||(d[2]=Xt("div",{class:"hw-title"},"Mem",-1)),Xt("div",dJ,wn(c.value),1)]),Xt("div",gJ,[Xt("div",{class:"chart",ref_key:"swapChartRef",ref:i},null,512),d[3]||(d[3]=Xt("div",{class:"hw-title"},"Swap",-1)),Xt("div",yJ,wn(h.value),1)])]),Xt("div",mJ,[Xt("div",{class:"net-chart",ref_key:"netChartRef",ref:o},null,512)])]))}}),SJ=_v(_J,[["__scopeId","data-v-c3a14672"]]),xJ={class:"grid-container"},bJ=tf({__name:"Home",setup(r){const t=Ea({});return v0(async()=>{t.value=await CS(),console.log("mounted");const e=setInterval(async()=>{t.value=await CS(),console.log("refresh")},1e3);p0(()=>{clearInterval(e),console.log("unmounted")})}),(e,n)=>(Ql(),lh("div",xJ,[(Ql(!0),lh(en,null,FO(t.value,(a,i)=>(Ql(),gN(SJ,{class:"grid-item",key:i,status:a},null,8,["status"]))),128))]))}}),wJ=_v(bJ,[["__scopeId","data-v-6bf3b93e"]]),TJ={};function CJ(r,t){return" Test "}const AJ=_v(TJ,[["render",CJ]]),DJ=[{path:"/",name:"主页",component:wJ},{path:"/test",name:"测试",component:AJ}],MJ=nV({history:EB("/"),routes:DJ}),Ik=QN(rB);Ik.use(MJ);Ik.mount("#app"); +`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function dj(r){r.registerAction("legendToggleSelect","legendselectchanged",bt(Pl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",bt(Pl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",bt(Pl,"inverseSelect")),r.registerAction("legendSelect","legendselected",bt(Pl,"select")),r.registerAction("legendUnSelect","legendunselected",bt(Pl,"unSelect"))}function ck(r){r.registerComponentModel(Wm),r.registerComponentView(uk),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,pj),r.registerSubTypeDefaulter("legend",function(){return"plain"}),dj(r)}var gj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,a){var i=Zs(e);r.prototype.init.call(this,e,n,a),XA(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),XA(this,this.option,e)},t.type="legend.scroll",t.defaultOption=hi(Wm.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Wm);function XA(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,ai(t,e,{type:"box",ignoreSize:!!a})}var ZA=mt,Bg=["width","height"],Vg=["x","y"],yj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new ZA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ZA)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=W(c)?c:[c,c];p("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Ft({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=cf(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:it(u._pageGo,u,y,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=d,f.add(m)}},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Bg[u],c=Vg[u],h=Bg[1-u],v=Vg[1-u];o&&ho("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=yt(a);o&&(y[f]=a[f]-d[f]-p);var m=this._layoutContentAndController(e,i,y,u,f,h,v,c);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[c]-=_}m[f]+=d[f]+p,g[1-u]+=m[v]+m[h]/2-d[h]/2,m[h]=Math.max(m[h],d[h]),m[v]=Math.min(m[v],d[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;ho(e.get("orient"),f,e.get("itemGap"),i?a.width:null,i?null:a.height),ho("horizontal",h,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=v[o]>a[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=St(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=v[s]/2-p[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var b={x:0,y:0};if(b[o]=d?a[o]:v[o],b[s]=Math.max(v[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),c.__rectSize=a[o],d){var x={x:0,y:0};x[o]=Math.max(a[o]-p[o]-_,0),x[s]=b[s],c.setClipPath(new Vt({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Ht(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",nt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Bg[o],l=Vg[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,p={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var d=S(c);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(uk);function mj(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function _j(r){Lt(ck),r.registerComponentModel(gj),r.registerComponentView(yj),mj(r)}function Sj(r){Lt(ck),Lt(_j)}var xj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=hi(Ku.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ku),C1=zt();function bj(r,t,e){C1(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function wj(r,t){for(var e=C1(r).coordSysRecordMap,n=e.keys(),a=0;an[e+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Mj(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=C1(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ut());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=ZE(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Tj(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=ut());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){hk(a,i);return}var f=Dj(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),js(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Ij=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),bj(a,e,{pan:it(zg.pan,this),zoom:it(zg.zoom,this),scrollMove:it(zg.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){wj(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(g1),zg={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=Fg[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ro(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:qA(function(r,t,e,n,a,i){var o=Fg[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:qA(function(r,t,e,n,a,i){var o=Fg[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function qA(r){return function(t,e,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,a);if(Ro(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Fg={grid:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,n,a){var i=e.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function vk(r){y1(r),r.registerComponentModel(xj),r.registerComponentView(Ij),Mj(r)}var Lj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=hi(Ku.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Ku),Rl=Vt,KA=7,Pj=1,Gg=30,Rj=7,El="horizontal",jA="vertical",Ej=5,kj=["line","bar","candlestick","scatter"],Oj={easing:"cubicOut",duration:100,delay:0},Nj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),js(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Bu(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new mt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?Rj:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===El?{right:s.width-o.x-o.width,top:s.height-Gg-KA-i,width:o.width,height:Gg}:{right:KA,top:o.y,width:Gg,height:o.height},u=Zs(e.option);D(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var f=xe(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===jA&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===El&&!o?{scaleY:l?1:-1,scaleX:1}:a===El&&o?{scaleY:l?1:-1,scaleX:-1}:a===jA&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=n.x-u.x,e.y=n.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Rl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Rl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var v=[0,n[1]],p=[0,n[0]],d=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(C,A){if(_>0&&A%_){m+=y;return}var M=C==null||isNaN(C)||C==="",I=M?0:Yt(C,c,v,!0);M&&!S&&A?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function x(C){var A=b.getModel(C?"selectedDataBackground":"dataBackground"),M=new mt,I=new ir({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new or({shape:{points:f},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!a&&!(n!==!0&&It(kj,u.get("type"))<0)){var f=i.getComponent(Za(o),s).axis,c=Bj(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c),a={thisAxis:f,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=n.filler=new Rl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Rl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Pj,fill:"rgba(0,0,0,0)"}})),D([0,1],function(_){var S=l.get("handleIcon");!Ph[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=ye(S,-1,0,2,2,null,!0);b.attr({cursor:QA(this._orient),draggable:!0,drift:it(this._onDragMove,this,_),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=et(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),fo(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(a[_]=b);var C=l.getModel("textStyle");e.add(i[_]=new Ft({silent:!0,invisible:!0,style:ne(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=h;if(c){var p=et(l.get("moveHandleSize"),s[1]),d=n.moveHandle=new Vt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=ye(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));v=n.moveZone=new Vt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),v.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:QA(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Yt(e[0],[0,100],n,!0),Yt(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ro(n,i,o,a.get("zoomLock")?"all":e,s.minSpan!=null?Yt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Yt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Fr([Yt(i[0],o,l,!0),Yt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=Fr(a.slice()),o=this._size;D([0,1],function(v){var p=n.handles[v],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:a[v]+(v?-1:1),y:o[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fn[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new Ct(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Fr([Yt(a.x,o,s,!0),Yt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(la(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Rl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Oj:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=ZE(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(g1);function Bj(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function QA(r){return r==="vertical"?"ns-resize":"ew-resize"}function pk(r){r.registerComponentModel(Lj),r.registerComponentView(Nj),y1(r)}function Vj(r){Lt(vk),Lt(pk)}var dk={get:function(r,t,e){var n=yt((zj[r]||{})[t]);return e&&W(n)?n[n.length-1]:n}},zj={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},JA=Ce.mapVisual,Fj=Ce.eachVisual,Gj=W,tD=D,Hj=Fr,Wj=Yt,ev=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&ak(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Fm(this.option.controller,n,e),this.targetVisuals=Fm(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){D(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],W(e)&&(e=e.slice(),u=!0);var f=n?e:u?[c(e[0]),c(e[1])]:c(e);if(nt(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(vt(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?a[0]+" "+f[1]:e[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,n=Hj([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var a=e.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Dt(i,a),Dt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){Gj(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,h,v){var p=c[h],d=c[v];p&&!d&&(d=c[v]={},tD(p,function(g,y){if(Ce.isValidType(y)){var m=dk.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";tD(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=h&&yt(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&yt(v)||(s?m[0]:[m[0],m[0]])),_.symbol=JA(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;Fj(S,function(x){x>b&&(b=x)}),_.symbolSize=JA(S,function(x){return Wj(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(kt),eD=[20,140],Uj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=eD[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=eD[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):W(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=Fr((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=rD(this,"outOfRange",this.getExtent()),a=rD(this,"inRange",this.option.range.slice()),i=[];function o(v,p){i.push({value:v,color:e(v,p)})}for(var s=0,l=0,u=a.length,f=n.length;le[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new mt(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();$j([0,1],function(f){var c=o[f];c.setStyle("fill",n.handlesColor[f]),c.y=e[f];var h=bn(e[f],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=v/l[0],c.x=l[0]-v/2;var p=ln(a.handleLabelPoints[f],co(c,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",h),p=this.getControllerVisual(e,"symbolSize"),d=bn(e,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var m=ln(f.indicatorLabelPoint,co(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,C),_.animateTo(T,C)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;Mo[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||oD(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var p=n5(h,v);this._dispatchHighDown("downplay",ah(p[0],a)),this._dispatchHighDown("highlight",ah(p[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(to(e.target,function(l){var u=_t(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function Jj(r,t,e,n){for(var a=t.targetVisuals[n],i=Ce.prepareVisualTypes(a),o={color:vf(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Kj,jj),D(Qj,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(tQ))}function _k(r){r.registerComponentModel(Uj),r.registerComponentView(Zj),mk(r)}var eQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],rQ[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=yt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(l){return l=yt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=Ce.listVisualTypes(),i=this.isCategory();D(e.pieces,function(s){D(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&D(this.stateList,function(f){(e[f]||(e[f]={}))[l]=dk.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,o=(n?a:e).selected||{};if(a.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=yt(e)},t.prototype.getValueState=function(e){var n=Ce.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ce.findPieceIndex(l,a);f===e&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=e(h,c);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:n.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=hi(ev.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(ev),rQ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function fD(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var nQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),c=f.endsText,h=Ie(n.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],u,h,l),D(f.viewPieceList,function(v){var p=v.piece,d=new mt;d.onclick=it(this._onItemClick,this,p),this._enableHoverLink(d,v.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(g);d.add(new Ft({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(d)},this),c&&this._renderEndsText(e,c[1],u,h,l),ho(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:ah(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return yk(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,o){if(n){var s=new mt,l=this.visualMapModel.textStyleModel;s.add(new Ft({style:ne(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=X(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(ye(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=yt(a.selected),s=n.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(gk);function Sk(r){r.registerComponentModel(eQ),r.registerComponentView(nQ),mk(r)}function aQ(r){Lt(_k),Lt(Sk)}var iQ={label:{enabled:!0},decal:{show:!1}},cD=zt(),oQ={};function sQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=yt(iQ);Dt(n.label,r.getLocaleModel().get("aria"),!1),Dt(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=ut();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),cD(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(vt(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=Yy(h.ecModel,h.name,oQ,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var p=h.getRawData(),d={},g=cD(h).scope;v.each(function(b){var x=v.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=Yy(h.ecModel,w,g,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?H(H({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=dt(c.option,f),!!c.get("enabled")){if(c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,d=Math.min(h,p),g;if(!(h<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,C){if(C1?c.get(["series","multiple",I]):c.get(["series","single",I]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),B=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},fQ=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):wV(t)?t:null;if(e==null){var n="";Wt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Gt(e)?this._condVal.test(t+""):!1},r}(),cQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),hQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(a),a=[L,P]}function f(L,P,R,O){hs(L,R)&&hs(P,O)||a.push(L,P,R,O,R,O)}function c(L,P,R,O,B,N){var F=Math.abs(P-L),U=Math.tan(F/4)*4/3,Z=PT:M2&&n.push(a),n}function Zm(r,t,e,n,a,i,o,s,l,u){if(hs(r,e)&&hs(t,n)&&hs(a,o)&&hs(i,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-t,p=Math.sqrt(h*h+v*v);h/=p,v/=p;var d=e-r,g=n-t,y=a-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var C=[],A=[];ri(r,e,a,o,.5,C),ri(t,n,i,s,.5,A),Zm(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),Zm(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function AQ(r,t){var e=Xm(r),n=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),c=bk([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;va,o=bk([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,h=0;h1?null:new Ct(d*l+r,d*u+t)}function IQ(r,t,e){var n=new Ct;Ct.sub(n,e,t),n.normalize();var a=new Ct;Ct.sub(a,r,t);var i=a.dot(n);return i}function Jo(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function LQ(r,t,e){for(var n=r.length,a=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),LQ(t,u,f)}function rv(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);rv(r,i[0],a,n),rv(r,i[1],e-a,n)}return n}function PQ(r,t){for(var e=[],n=0;n0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function iv(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=X(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(c,e),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=X(i,function(s,l){return{cp:s,z:FQ(s[0],s[1],t,e,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Ck(r){return kQ(r.path,r.count)}function qm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function GQ(r,t,e){var n=[];function a(b){for(var x=0;x=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var WQ={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;SD(r)&&(u=r,f=t),SD(t)&&(u=t,f=r);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(nv(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?dt({delay:s(_,S)},l):l;D1(T,C,A),i(T,C,T,C,A)}}else for(var M=dt({dividePath:WQ[e],individualDelay:s&&function(B,N,F,U){return s(B+_,S)}},l),I=m?GQ(x,w,M):HQ(w,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,O=0;Ot.length,v=u?xD(f,u):xD(h?t:r,[h?r:t]),p=0,d=0;dAk))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Pt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function AD(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function DD(r){return W(r)?r.sort().join(","):r}function Va(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function KQ(r,t){var e=ut(),n=ut(),a=ut();return D(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=AD(i),f=DD(u);n.set(f,{dataGroupId:s,data:l}),W(u)&&D(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=AD(i),u=DD(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Va(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Va(s),data:s}]});else if(W(l)){var c=[];D(l,function(p){var d=n.get(p);d.data&&c.push({dataGroupId:d.dataGroupId,divide:Va(d.data),data:d.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Va(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Va(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Va(s)})}}}}),e}function MD(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Va(t.oldData[s]),groupIdDim:o.dimension})}),D(qt(r.to),function(o){var s=MD(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Va(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Dk(a,i,n)}function QQ(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){D(qt(n.seriesTransition),function(a){D(qt(a.to),function(i){for(var o=n.updatedSeries,s=0;st.status),n=Ea(null),a=Ea(null),i=Ea(null),o=Ea(null);let s=[];const l=Ea("#22c55e"),u=Ea("0"),f=He(()=>JQ(e.value.meta.os.name,e.value.meta.os.version)),c=He(()=>ID(e.value.hardware.mem.used,e.value.hardware.mem.total)),h=He(()=>e.value.hardware.swap.total>0?ID(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A");function v(){const p=ac(n.value),d=ac(a.value),g=ac(i.value),y=ac(o.value),m={color:"rgba(0, 0, 0, 0.8)",fontSize:13},_=["65%","90%"],S=["#4c4c4c","#e3e3e3"],b=["#4c4c4c","#bababa"];function x(){const w=Date.now()/1e3-e.value.meta.observed_at;u.value=w.toFixed(1),(s.length===0||s[s.length-1][0]!==e.value.meta.observed_at)&&s.push([e.value.meta.observed_at,e.value.hardware.net.up,e.value.hardware.net.down]),s.length>20&&s.shift(),w>30&&(l.value="#ff4d4f"),p.setOption({color:S,title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:m},series:[{type:"pie",radius:_,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:He(()=>[{value:e.value.hardware.cpu.percent},{value:100-e.value.hardware.cpu.percent}]).value}]}),d.setOption({color:S,title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:m},series:[{type:"pie",radius:_,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:e.value.hardware.mem.used},{value:e.value.hardware.mem.total-e.value.hardware.mem.used}]}]}),g.setOption({color:S,title:{text:e.value.hardware.swap.total>0?`${(e.value.hardware.swap.used/e.value.hardware.swap.total*100).toFixed(1)}%`:"N/A",left:"center",top:"center",textStyle:m},series:[{type:"pie",radius:_,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:e.value.hardware.swap.total>0?e.value.hardware.swap.used:0},{value:e.value.hardware.swap.total>0?e.value.hardware.swap.total-e.value.hardware.swap.used:100}]}]}),y.setOption({color:b,title:{text:"Network"},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{saveAsImage:{}}},grid:{top:"25%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:s.map(T=>T[0]),axisLabel:{formatter:function(T){return eJ(T,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(T){return Mk(T*8,null,"b")}}}],series:[{name:"Up",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(T=>T[1])},{name:"Down",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(T=>T[2])}]})}x(),Kl(()=>e.value,()=>{x()})}return v0(()=>{v()}),(p,d)=>(Ql(),lh("div",rJ,[Xt("div",nJ,[Xt("div",aJ,[Xt("span",null,wn(t.status.meta.name),1)]),Xt("div",iJ,[Xt("div",oJ,wn(u.value)+"s ago",1),Xt("div",{class:"dot",style:fv([{backgroundColor:l.value},{height:"15px",width:"15px","border-radius":"50%"}])},null,4)])]),Xt("div",sJ,[Xt("div",lJ,[Xt("img",{class:"icon",src:f.value.icon,alt:"system"},null,8,uJ),Xt("span",null,wn(f.value.name),1)]),Xt("div",fJ,[d[0]||(d[0]=Xt("img",{class:"icon",src:oV,alt:"system"},null,-1)),Xt("span",null,wn(t.status.meta.location),1)])]),Xt("div",cJ,[Xt("div",hJ,[Xt("div",{class:"chart",ref_key:"cpuChartRef",ref:n},null,512),d[1]||(d[1]=Xt("div",{class:"hw-title"},"CPU",-1)),Xt("div",vJ,wn(e.value.hardware.cpu.cores)+"C "+wn(e.value.hardware.cpu.logics)+"T",1)]),Xt("div",pJ,[Xt("div",{class:"chart",ref_key:"memoryChartRef",ref:a},null,512),d[2]||(d[2]=Xt("div",{class:"hw-title"},"Mem",-1)),Xt("div",dJ,wn(c.value),1)]),Xt("div",gJ,[Xt("div",{class:"chart",ref_key:"swapChartRef",ref:i},null,512),d[3]||(d[3]=Xt("div",{class:"hw-title"},"Swap",-1)),Xt("div",yJ,wn(h.value),1)])]),Xt("div",mJ,[Xt("div",{class:"net-chart",ref_key:"netChartRef",ref:o},null,512)])]))}}),SJ=_v(_J,[["__scopeId","data-v-03e57024"]]),xJ={class:"grid-container"},bJ=tf({__name:"Home",setup(r){const t=Ea({});return v0(async()=>{t.value=await CS(),console.log("mounted");const e=setInterval(async()=>{t.value=await CS(),console.log("refresh")},1e3);p0(()=>{clearInterval(e),console.log("unmounted")})}),(e,n)=>(Ql(),lh("div",xJ,[(Ql(!0),lh(en,null,FO(t.value,(a,i)=>(Ql(),gN(SJ,{class:"grid-item",key:i,status:a},null,8,["status"]))),128))]))}}),wJ=_v(bJ,[["__scopeId","data-v-6bf3b93e"]]),TJ={};function CJ(r,t){return" Test "}const AJ=_v(TJ,[["render",CJ]]),DJ=[{path:"/",name:"主页",component:wJ},{path:"/test",name:"测试",component:AJ}],MJ=nV({history:EB("/"),routes:DJ}),Ik=QN(rB);Ik.use(MJ);Ik.mount("#app"); diff --git a/api/frontend/web/assets/index-BLNcqiVI.css b/api/frontend/web/assets/index-QZ6KKedS.css similarity index 54% rename from api/frontend/web/assets/index-BLNcqiVI.css rename to api/frontend/web/assets/index-QZ6KKedS.css index 1265b94..333d575 100644 --- a/api/frontend/web/assets/index-BLNcqiVI.css +++ b/api/frontend/web/assets/index-QZ6KKedS.css @@ -1 +1 @@ -:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#000;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.dark{color:#fff;background-color:#000}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.logo[data-v-13414ec4]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-13414ec4]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-13414ec4]:hover{filter:drop-shadow(0 0 2em #42b883aa)}footer[data-v-13414ec4]{text-align:center;padding:1em;color:#666}.meta-2[data-v-c3a14672],.labels[data-v-c3a14672]{margin-top:.5em}.labels .label[data-v-c3a14672]{padding:2px 5px;border-radius:5px;margin-right:10px;background-color:#000;color:#fff}.host[data-v-c3a14672]{padding:1em;border:1px solid #ccc;border-radius:20px;margin:.5em;flex-direction:column;justify-content:space-between}.icon[data-v-c3a14672]{margin-right:.3em;height:16px}.section[data-v-c3a14672]{display:flex;margin-right:10px;align-items:center}.charts-container[data-v-c3a14672]{margin-top:.5rem}.charts-container .hw-info[data-v-c3a14672]{width:30%;align-items:center}.charts-container .hw-info .chart[data-v-c3a14672]{width:100%;aspect-ratio:1}.charts-container .hw-info .hw-title[data-v-c3a14672]{text-align:center;font-size:.9rem}.charts-container .hw-info .hw-detail[data-v-c3a14672]{text-align:center;font-size:.7rem}.net[data-v-c3a14672]{margin-top:.5rem}.net .net-title[data-v-c3a14672]{font-size:.9rem}.net .net-detail[data-v-c3a14672]{font-size:.7rem}.net .net-chart[data-v-c3a14672]{width:100%;aspect-ratio:2}.grid-container[data-v-6bf3b93e]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px;padding:10px} +:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#000;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.dark{color:#fff;background-color:#000}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.logo[data-v-13414ec4]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-13414ec4]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-13414ec4]:hover{filter:drop-shadow(0 0 2em #42b883aa)}footer[data-v-13414ec4]{text-align:center;padding:1em;color:#666}.meta-2[data-v-03e57024],.labels[data-v-03e57024]{margin-top:.5em}.labels .label[data-v-03e57024]{padding:2px 5px;border-radius:5px;margin-right:10px;background-color:#000;color:#fff}.host[data-v-03e57024]{padding:1em;border:1px solid #ccc;border-radius:20px;margin:.5em;flex-direction:column;justify-content:space-between}.icon[data-v-03e57024]{margin-right:.3em;height:16px}.section[data-v-03e57024]{display:flex;margin-right:10px;align-items:center}.charts-container[data-v-03e57024]{margin-top:.5rem}.charts-container .hw-info[data-v-03e57024]{width:30%;align-items:center}.charts-container .hw-info .chart[data-v-03e57024]{width:100%;aspect-ratio:1}.charts-container .hw-info .hw-title[data-v-03e57024]{text-align:center;font-size:.9rem}.charts-container .hw-info .hw-detail[data-v-03e57024]{text-align:center;font-size:.7rem}.net[data-v-03e57024]{margin-top:.5rem}.net .net-title[data-v-03e57024]{font-size:.9rem}.net .net-detail[data-v-03e57024]{font-size:.7rem}.net .net-chart[data-v-03e57024]{width:100%;aspect-ratio:2}.grid-container[data-v-6bf3b93e]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px;padding:10px} diff --git a/api/frontend/web/index.html b/api/frontend/web/index.html index 853db0c..35c98e0 100644 --- a/api/frontend/web/index.html +++ b/api/frontend/web/index.html @@ -5,8 +5,8 @@ Server Status - - + +
diff --git a/api/frontend/web/svg/location.svg b/api/frontend/web/svg/location-new.svg similarity index 100% rename from api/frontend/web/svg/location.svg rename to api/frontend/web/svg/location-new.svg