index-684980a2.js 1.2 MB
import{o as se,c as ce,a as $,d as Q,g as _R,f as SR,r as Ce,h as xR,i as By,j as Cr,n as QA,w as fh,k as fc,l as JA,m as d_,p as bR,q as ch,s as je,v as hh,x as Vy,y as Jo,z as zy,A as wR,B as Ye,C as br,D as eC,E as yt,t as Oe,G as tC,T as rC,H as TR,I as To,J as AR,K as Qs,L as CR,F as bt,M as MR,N as nC,O as Wp,P as p_,_ as kt,Q as Ra,R as ka,S as es,u as DR,U as Vr,V as aC,W as iC,X as IR,b as wr,Y as vh,e as Yi,Z as LR}from"./index-8f89ad36.js";/*! Element Plus Icons Vue v2.1.0 */var ou=(r,t)=>{let e=r.__vccOpts||r;for(let[n,a]of t)e[n]=a;return e},PR={name:"CircleCloseFilled"},ER={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},RR=$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),kR=[RR];function OR(r,t,e,n,a,i){return se(),ce("svg",ER,kR)}var oC=ou(PR,[["render",OR],["__file","circle-close-filled.vue"]]),NR={name:"Close"},BR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VR=$("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),zR=[VR];function GR(r,t,e,n,a,i){return se(),ce("svg",BR,zR)}var FR=ou(NR,[["render",GR],["__file","close.vue"]]),HR={name:"InfoFilled"},WR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UR=$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),$R=[UR];function YR(r,t,e,n,a,i){return se(),ce("svg",WR,$R)}var sC=ou(HR,[["render",YR],["__file","info-filled.vue"]]),XR={name:"SuccessFilled"},ZR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qR=$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),jR=[qR];function KR(r,t,e,n,a,i){return se(),ce("svg",ZR,jR)}var lC=ou(XR,[["render",KR],["__file","success-filled.vue"]]),QR={name:"WarningFilled"},JR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ek=$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),tk=[ek];function rk(r,t,e,n,a,i){return se(),ce("svg",JR,tk)}var uC=ou(QR,[["render",rk],["__file","warning-filled.vue"]]);const nk=(r,t,e,n,a,i,o=68,s=111,l={},u)=>{let f=Date.now().toString(36)+Math.random().toString(36).substring(2,7),c=Cesium.Cartesian3.fromDegrees(n[0],n[1],n[2]),h=new Cesium.Cartesian3(a[0],a[1],a[2]),v=Cesium.Cartesian3.add(c,h,new Cesium.Cartesian3);r.entities.add({className:t,id:u??t+f,name:u??t+f,position:v,params:l,billboard:{image:e,width:o,height:s,disableDepthTestDistance:Number.POSITIVE_INFINITY,show:new Cesium.CallbackProperty(function(){return i.min&&i.max?r.camera.positionCartographic.height>i.min&&r.camera.positionCartographic.height<i.max:i.min?r.camera.positionCartographic.height>i.min:i.max?r.camera.positionCartographic.height<i.max:!0},!1)}})};function zo(r,t,e){this._definitionChanged=new Cesium.Event,this.duration=r,this.image=t,this._time=performance.now(),this._repeat=new Cesium.Cartesian2(e,1)}Object.defineProperties(zo.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:Cesium.createPropertyDescriptor("color"),duration:Cesium.createPropertyDescriptor("duration"),repeat:Cesium.createPropertyDescriptor("repeat")});zo.prototype.getType=function(r){return"Spriteline1"};zo.prototype.getValue=function(r,t){return Cesium.defined(t)||(t={}),t.image=this.image,t.time=(performance.now()-this._time)%this.duration/this.duration,t.repeat=this._repeat,t};zo.prototype.equals=function(r){return this===r||r instanceof zo&&this.duration===r.duration};Cesium.Material.Spriteline1Type="Spriteline1";Cesium.Material.Spriteline1Source=`
czm_material czm_getMaterial(czm_materialInput materialInput)
    {
        czm_material material = czm_getDefaultMaterial(materialInput);
        vec2 st = materialInput.st; // 应用repeat坐标
        st = repeat * st ; // 应用repeat坐标
        vec4 colorImage = texture(image, vec2(fract(st.s - time), st.t));
        // y轴平铺2次,x轴平铺1次
        material.alpha = colorImage.a;
        material.diffuse = colorImage.rgb*1.5;
        return material;
    }
`;Cesium.Material._materialCache.addMaterial(Cesium.Material.Spriteline1Type,{fabric:{type:Cesium.Material.Spriteline1Type,uniforms:{color:new Cesium.Color(1,0,0,.5),image:"",transparent:!0,time:20,repeat:new Cesium.Cartesian2(2,0)},source:Cesium.Material.Spriteline1Source},translucent:function(r){return!0}});function fC(r,t){return function(){return r.apply(t,arguments)}}const{toString:ak}=Object.prototype,{getPrototypeOf:Gy}=Object,dh=(r=>t=>{const e=ak.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),_n=r=>(r=r.toLowerCase(),t=>dh(t)===r),ph=r=>t=>typeof t===r,{isArray:ts}=Array,Ml=ph("undefined");function ik(r){return r!==null&&!Ml(r)&&r.constructor!==null&&!Ml(r.constructor)&&Tr(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const cC=_n("ArrayBuffer");function ok(r){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(r):t=r&&r.buffer&&cC(r.buffer),t}const sk=ph("string"),Tr=ph("function"),hC=ph("number"),gh=r=>r!==null&&typeof r=="object",lk=r=>r===!0||r===!1,zf=r=>{if(dh(r)!=="object")return!1;const t=Gy(r);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},uk=_n("Date"),fk=_n("File"),ck=_n("Blob"),hk=_n("FileList"),vk=r=>gh(r)&&Tr(r.pipe),dk=r=>{let t;return r&&(typeof FormData=="function"&&r instanceof FormData||Tr(r.append)&&((t=dh(r))==="formdata"||t==="object"&&Tr(r.toString)&&r.toString()==="[object FormData]"))},pk=_n("URLSearchParams"),gk=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function su(r,t,{allOwnKeys:e=!1}={}){if(r===null||typeof r>"u")return;let n,a;if(typeof r!="object"&&(r=[r]),ts(r))for(n=0,a=r.length;n<a;n++)t.call(null,r[n],n,r);else{const i=e?Object.getOwnPropertyNames(r):Object.keys(r),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,r[s],s,r)}}function vC(r,t){t=t.toLowerCase();const e=Object.keys(r);let n=e.length,a;for(;n-- >0;)if(a=e[n],t===a.toLowerCase())return a;return null}const dC=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),pC=r=>!Ml(r)&&r!==dC;function Up(){const{caseless:r}=pC(this)&&this||{},t={},e=(n,a)=>{const i=r&&vC(t,a)||a;zf(t[i])&&zf(n)?t[i]=Up(t[i],n):zf(n)?t[i]=Up({},n):ts(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&su(arguments[n],e);return t}const yk=(r,t,e,{allOwnKeys:n}={})=>(su(t,(a,i)=>{e&&Tr(a)?r[i]=fC(a,e):r[i]=a},{allOwnKeys:n}),r),mk=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),_k=(r,t,e,n)=>{r.prototype=Object.create(t.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:t.prototype}),e&&Object.assign(r.prototype,e)},Sk=(r,t,e,n)=>{let a,i,o;const s={};if(t=t||{},r==null)return t;do{for(a=Object.getOwnPropertyNames(r),i=a.length;i-- >0;)o=a[i],(!n||n(o,r,t))&&!s[o]&&(t[o]=r[o],s[o]=!0);r=e!==!1&&Gy(r)}while(r&&(!e||e(r,t))&&r!==Object.prototype);return t},xk=(r,t,e)=>{r=String(r),(e===void 0||e>r.length)&&(e=r.length),e-=t.length;const n=r.indexOf(t,e);return n!==-1&&n===e},bk=r=>{if(!r)return null;if(ts(r))return r;let t=r.length;if(!hC(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=r[t];return e},wk=(r=>t=>r&&t instanceof r)(typeof Uint8Array<"u"&&Gy(Uint8Array)),Tk=(r,t)=>{const n=(r&&r[Symbol.iterator]).call(r);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(r,i[0],i[1])}},Ak=(r,t)=>{let e;const n=[];for(;(e=r.exec(t))!==null;)n.push(e);return n},Ck=_n("HTMLFormElement"),Mk=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,a){return n.toUpperCase()+a}),g_=(({hasOwnProperty:r})=>(t,e)=>r.call(t,e))(Object.prototype),Dk=_n("RegExp"),gC=(r,t)=>{const e=Object.getOwnPropertyDescriptors(r),n={};su(e,(a,i)=>{let o;(o=t(a,i,r))!==!1&&(n[i]=o||a)}),Object.defineProperties(r,n)},Ik=r=>{gC(r,(t,e)=>{if(Tr(r)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const n=r[e];if(Tr(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Lk=(r,t)=>{const e={},n=a=>{a.forEach(i=>{e[i]=!0})};return ts(r)?n(r):n(String(r).split(t)),e},Pk=()=>{},Ek=(r,t)=>(r=+r,Number.isFinite(r)?r:t),uv="abcdefghijklmnopqrstuvwxyz",y_="0123456789",yC={DIGIT:y_,ALPHA:uv,ALPHA_DIGIT:uv+uv.toUpperCase()+y_},Rk=(r=16,t=yC.ALPHA_DIGIT)=>{let e="";const{length:n}=t;for(;r--;)e+=t[Math.random()*n|0];return e};function kk(r){return!!(r&&Tr(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const Ok=r=>{const t=new Array(10),e=(n,a)=>{if(gh(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=ts(n)?[]:{};return su(n,(o,s)=>{const l=e(o,a+1);!Ml(l)&&(i[s]=l)}),t[a]=void 0,i}}return n};return e(r,0)},Nk=_n("AsyncFunction"),Bk=r=>r&&(gh(r)||Tr(r))&&Tr(r.then)&&Tr(r.catch),F={isArray:ts,isArrayBuffer:cC,isBuffer:ik,isFormData:dk,isArrayBufferView:ok,isString:sk,isNumber:hC,isBoolean:lk,isObject:gh,isPlainObject:zf,isUndefined:Ml,isDate:uk,isFile:fk,isBlob:ck,isRegExp:Dk,isFunction:Tr,isStream:vk,isURLSearchParams:pk,isTypedArray:wk,isFileList:hk,forEach:su,merge:Up,extend:yk,trim:gk,stripBOM:mk,inherits:_k,toFlatObject:Sk,kindOf:dh,kindOfTest:_n,endsWith:xk,toArray:bk,forEachEntry:Tk,matchAll:Ak,isHTMLForm:Ck,hasOwnProperty:g_,hasOwnProp:g_,reduceDescriptors:gC,freezeMethods:Ik,toObjectSet:Lk,toCamelCase:Mk,noop:Pk,toFiniteNumber:Ek,findKey:vC,global:dC,isContextDefined:pC,ALPHABET:yC,generateString:Rk,isSpecCompliantForm:kk,toJSONObject:Ok,isAsyncFn:Nk,isThenable:Bk};function Ve(r,t,e,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),n&&(this.request=n),a&&(this.response=a)}F.inherits(Ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mC=Ve.prototype,_C={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{_C[r]={value:r}});Object.defineProperties(Ve,_C);Object.defineProperty(mC,"isAxiosError",{value:!0});Ve.from=(r,t,e,n,a,i)=>{const o=Object.create(mC);return F.toFlatObject(r,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Ve.call(o,r.message,t,e,n,a),o.cause=r,o.name=r.name,i&&Object.assign(o,i),o};const Vk=null;function $p(r){return F.isPlainObject(r)||F.isArray(r)}function SC(r){return F.endsWith(r,"[]")?r.slice(0,-2):r}function m_(r,t,e){return r?r.concat(t).map(function(a,i){return a=SC(a),!e&&i?"["+a+"]":a}).join(e?".":""):t}function zk(r){return F.isArray(r)&&!r.some($p)}const Gk=F.toFlatObject(F,{},null,function(t){return/^is[A-Z]/.test(t)});function yh(r,t,e){if(!F.isObject(r))throw new TypeError("target must be an object");t=t||new FormData,e=F.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!F.isUndefined(g[p])});const n=e.metaTokens,a=e.visitor||f,i=e.dots,o=e.indexes,l=(e.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(t);if(!F.isFunction(a))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(F.isDate(d))return d.toISOString();if(!l&&F.isBlob(d))throw new Ve("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(d)||F.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,p,g){let y=d;if(d&&!g&&typeof d=="object"){if(F.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(F.isArray(d)&&zk(d)||(F.isFileList(d)||F.endsWith(p,"[]"))&&(y=F.toArray(d)))return p=SC(p),y.forEach(function(_,S){!(F.isUndefined(_)||_===null)&&t.append(o===!0?m_([p],S,i):o===null?p:p+"[]",u(_))}),!1}return $p(d)?!0:(t.append(m_(g,p,i),u(d)),!1)}const c=[],h=Object.assign(Gk,{defaultVisitor:f,convertValue:u,isVisitable:$p});function v(d,p){if(!F.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));c.push(d),F.forEach(d,function(y,m){(!(F.isUndefined(y)||y===null)&&a.call(t,y,F.isString(m)?m.trim():m,p,h))===!0&&v(y,p?p.concat(m):[m])}),c.pop()}}if(!F.isObject(r))throw new TypeError("data must be an object");return v(r),t}function __(r){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fy(r,t){this._pairs=[],r&&yh(r,this,t)}const xC=Fy.prototype;xC.append=function(t,e){this._pairs.push([t,e])};xC.toString=function(t){const e=t?function(n){return t.call(this,n,__)}:__;return this._pairs.map(function(a){return e(a[0])+"="+e(a[1])},"").join("&")};function Fk(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bC(r,t,e){if(!t)return r;const n=e&&e.encode||Fk,a=e&&e.serialize;let i;if(a?i=a(t,e):i=F.isURLSearchParams(t)?t.toString():new Fy(t,e).toString(n),i){const o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class Hk{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){F.forEach(this.handlers,function(n){n!==null&&t(n)})}}const S_=Hk,wC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wk=typeof URLSearchParams<"u"?URLSearchParams:Fy,Uk=typeof FormData<"u"?FormData:null,$k=typeof Blob<"u"?Blob:null,Yk=(()=>{let r;return typeof navigator<"u"&&((r=navigator.product)==="ReactNative"||r==="NativeScript"||r==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Xk=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),zr={isBrowser:!0,classes:{URLSearchParams:Wk,FormData:Uk,Blob:$k},isStandardBrowserEnv:Yk,isStandardBrowserWebWorkerEnv:Xk,protocols:["http","https","file","blob","url","data"]};function Zk(r,t){return yh(r,new zr.classes.URLSearchParams,Object.assign({visitor:function(e,n,a,i){return zr.isNode&&F.isBuffer(e)?(this.append(n,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function qk(r){return F.matchAll(/\w+|\[(\w*)]/g,r).map(t=>t[0]==="[]"?"":t[1]||t[0])}function jk(r){const t={},e=Object.keys(r);let n;const a=e.length;let i;for(n=0;n<a;n++)i=e[n],t[i]=r[i];return t}function TC(r){function t(e,n,a,i){let o=e[i++];const s=Number.isFinite(+o),l=i>=e.length;return o=!o&&F.isArray(a)?a.length:o,l?(F.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!F.isObject(a[o]))&&(a[o]=[]),t(e,n,a[o],i)&&F.isArray(a[o])&&(a[o]=jk(a[o])),!s)}if(F.isFormData(r)&&F.isFunction(r.entries)){const e={};return F.forEachEntry(r,(n,a)=>{t(qk(n),a,e,0)}),e}return null}function Kk(r,t,e){if(F.isString(r))try{return(t||JSON.parse)(r),F.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(e||JSON.stringify)(r)}const Hy={transitional:wC,adapter:zr.isNode?"http":"xhr",transformRequest:[function(t,e){const n=e.getContentType()||"",a=n.indexOf("application/json")>-1,i=F.isObject(t);if(i&&F.isHTMLForm(t)&&(t=new FormData(t)),F.isFormData(t))return a&&a?JSON.stringify(TC(t)):t;if(F.isArrayBuffer(t)||F.isBuffer(t)||F.isStream(t)||F.isFile(t)||F.isBlob(t))return t;if(F.isArrayBufferView(t))return t.buffer;if(F.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Zk(t,this.formSerializer).toString();if((s=F.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return yh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(e.setContentType("application/json",!1),Kk(t)):t}],transformResponse:[function(t){const e=this.transitional||Hy.transitional,n=e&&e.forcedJSONParsing,a=this.responseType==="json";if(t&&F.isString(t)&&(n&&!this.responseType||a)){const o=!(e&&e.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Ve.from(s,Ve.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zr.classes.FormData,Blob:zr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],r=>{Hy.headers[r]={}});const Wy=Hy,Qk=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Jk=r=>{const t={};let e,n,a;return r&&r.split(`
`).forEach(function(o){a=o.indexOf(":"),e=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!e||t[e]&&Qk[e])&&(e==="set-cookie"?t[e]?t[e].push(n):t[e]=[n]:t[e]=t[e]?t[e]+", "+n:n)}),t},x_=Symbol("internals");function xs(r){return r&&String(r).trim().toLowerCase()}function Gf(r){return r===!1||r==null?r:F.isArray(r)?r.map(Gf):String(r)}function eO(r){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=e.exec(r);)t[n[1]]=n[2];return t}const tO=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function fv(r,t,e,n,a){if(F.isFunction(n))return n.call(this,t,e);if(a&&(t=e),!!F.isString(t)){if(F.isString(n))return t.indexOf(n)!==-1;if(F.isRegExp(n))return n.test(t)}}function rO(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}function nO(r,t){const e=F.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+e,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}class mh{constructor(t){t&&this.set(t)}set(t,e,n){const a=this;function i(s,l,u){const f=xs(l);if(!f)throw new Error("header name must be a non-empty string");const c=F.findKey(a,f);(!c||a[c]===void 0||u===!0||u===void 0&&a[c]!==!1)&&(a[c||l]=Gf(s))}const o=(s,l)=>F.forEach(s,(u,f)=>i(u,f,l));return F.isPlainObject(t)||t instanceof this.constructor?o(t,e):F.isString(t)&&(t=t.trim())&&!tO(t)?o(Jk(t),e):t!=null&&i(e,t,n),this}get(t,e){if(t=xs(t),t){const n=F.findKey(this,t);if(n){const a=this[n];if(!e)return a;if(e===!0)return eO(a);if(F.isFunction(e))return e.call(this,a,n);if(F.isRegExp(e))return e.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=xs(t),t){const n=F.findKey(this,t);return!!(n&&this[n]!==void 0&&(!e||fv(this,this[n],n,e)))}return!1}delete(t,e){const n=this;let a=!1;function i(o){if(o=xs(o),o){const s=F.findKey(n,o);s&&(!e||fv(n,n[s],s,e))&&(delete n[s],a=!0)}}return F.isArray(t)?t.forEach(i):i(t),a}clear(t){const e=Object.keys(this);let n=e.length,a=!1;for(;n--;){const i=e[n];(!t||fv(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const e=this,n={};return F.forEach(this,(a,i)=>{const o=F.findKey(n,i);if(o){e[o]=Gf(a),delete e[i];return}const s=t?rO(i):String(i).trim();s!==i&&delete e[i],e[s]=Gf(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return F.forEach(this,(n,a)=>{n!=null&&n!==!1&&(e[a]=t&&F.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[x_]=this[x_]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=xs(o);n[s]||(nO(a,o),n[s]=!0)}return F.isArray(t)?t.forEach(i):i(t),this}}mh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);F.reduceDescriptors(mh.prototype,({value:r},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(n){this[e]=n}}});F.freezeMethods(mh);const Pn=mh;function cv(r,t){const e=this||Wy,n=t||e,a=Pn.from(n.headers);let i=n.data;return F.forEach(r,function(s){i=s.call(e,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function AC(r){return!!(r&&r.__CANCEL__)}function lu(r,t,e){Ve.call(this,r??"canceled",Ve.ERR_CANCELED,t,e),this.name="CanceledError"}F.inherits(lu,Ve,{__CANCEL__:!0});function aO(r,t,e){const n=e.config.validateStatus;!e.status||!n||n(e.status)?r(e):t(new Ve("Request failed with status code "+e.status,[Ve.ERR_BAD_REQUEST,Ve.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}const iO=zr.isStandardBrowserEnv?function(){return{write:function(e,n,a,i,o,s){const l=[];l.push(e+"="+encodeURIComponent(n)),F.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),F.isString(i)&&l.push("path="+i),F.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function oO(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function sO(r,t){return t?r.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):r}function CC(r,t){return r&&!oO(t)?sO(r,t):t}const lO=zr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function a(i){let o=i;return t&&(e.setAttribute("href",o),o=e.href),e.setAttribute("href",o),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return n=a(window.location.href),function(o){const s=F.isString(o)?a(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function uO(r){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return t&&t[1]||""}function fO(r,t){r=r||10;const e=new Array(r),n=new Array(r);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[i];o||(o=u),e[a]=l,n[a]=u;let c=i,h=0;for(;c!==a;)h+=e[c++],c=c%r;if(a=(a+1)%r,a===i&&(i=(i+1)%r),u-o<t)return;const v=f&&u-f;return v?Math.round(h*1e3/v):void 0}}function b_(r,t){let e=0;const n=fO(50,250);return a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-e,l=n(s),u=i<=o;e=i;const f={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};f[t?"download":"upload"]=!0,r(f)}}const cO=typeof XMLHttpRequest<"u",hO=cO&&function(r){return new Promise(function(e,n){let a=r.data;const i=Pn.from(r.headers).normalize(),o=r.responseType;let s;function l(){r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}F.isFormData(a)&&(zr.isStandardBrowserEnv||zr.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(r.auth){const v=r.auth.username||"",d=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";i.set("Authorization","Basic "+btoa(v+":"+d))}const f=CC(r.baseURL,r.url);u.open(r.method.toUpperCase(),bC(f,r.params,r.paramsSerializer),!0),u.timeout=r.timeout;function c(){if(!u)return;const v=Pn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:r,request:u};aO(function(y){e(y),l()},function(y){n(y),l()},p),u=null}if("onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(c)},u.onabort=function(){u&&(n(new Ve("Request aborted",Ve.ECONNABORTED,r,u)),u=null)},u.onerror=function(){n(new Ve("Network Error",Ve.ERR_NETWORK,r,u)),u=null},u.ontimeout=function(){let d=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const p=r.transitional||wC;r.timeoutErrorMessage&&(d=r.timeoutErrorMessage),n(new Ve(d,p.clarifyTimeoutError?Ve.ETIMEDOUT:Ve.ECONNABORTED,r,u)),u=null},zr.isStandardBrowserEnv){const v=(r.withCredentials||lO(f))&&r.xsrfCookieName&&iO.read(r.xsrfCookieName);v&&i.set(r.xsrfHeaderName,v)}a===void 0&&i.setContentType(null),"setRequestHeader"in u&&F.forEach(i.toJSON(),function(d,p){u.setRequestHeader(p,d)}),F.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),o&&o!=="json"&&(u.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&u.addEventListener("progress",b_(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",b_(r.onUploadProgress)),(r.cancelToken||r.signal)&&(s=v=>{u&&(n(!v||v.type?new lu(null,r,u):v),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const h=uO(f);if(h&&zr.protocols.indexOf(h)===-1){n(new Ve("Unsupported protocol "+h+":",Ve.ERR_BAD_REQUEST,r));return}u.send(a||null)})},Ff={http:Vk,xhr:hO};F.forEach(Ff,(r,t)=>{if(r){try{Object.defineProperty(r,"name",{value:t})}catch{}Object.defineProperty(r,"adapterName",{value:t})}});const MC={getAdapter:r=>{r=F.isArray(r)?r:[r];const{length:t}=r;let e,n;for(let a=0;a<t&&(e=r[a],!(n=F.isString(e)?Ff[e.toLowerCase()]:e));a++);if(!n)throw n===!1?new Ve(`Adapter ${e} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(F.hasOwnProp(Ff,e)?`Adapter '${e}' is not available in the build`:`Unknown adapter '${e}'`);if(!F.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:Ff};function hv(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new lu(null,r)}function w_(r){return hv(r),r.headers=Pn.from(r.headers),r.data=cv.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),MC.getAdapter(r.adapter||Wy.adapter)(r).then(function(n){return hv(r),n.data=cv.call(r,r.transformResponse,n),n.headers=Pn.from(n.headers),n},function(n){return AC(n)||(hv(r),n&&n.response&&(n.response.data=cv.call(r,r.transformResponse,n.response),n.response.headers=Pn.from(n.response.headers))),Promise.reject(n)})}const T_=r=>r instanceof Pn?r.toJSON():r;function Go(r,t){t=t||{};const e={};function n(u,f,c){return F.isPlainObject(u)&&F.isPlainObject(f)?F.merge.call({caseless:c},u,f):F.isPlainObject(f)?F.merge({},f):F.isArray(f)?f.slice():f}function a(u,f,c){if(F.isUndefined(f)){if(!F.isUndefined(u))return n(void 0,u,c)}else return n(u,f,c)}function i(u,f){if(!F.isUndefined(f))return n(void 0,f)}function o(u,f){if(F.isUndefined(f)){if(!F.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,c){if(c in t)return n(u,f);if(c in r)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f)=>a(T_(u),T_(f),!0)};return F.forEach(Object.keys(Object.assign({},r,t)),function(f){const c=l[f]||a,h=c(r[f],t[f],f);F.isUndefined(h)&&c!==s||(e[f]=h)}),e}const DC="1.5.0",Uy={};["object","boolean","number","function","string","symbol"].forEach((r,t)=>{Uy[r]=function(n){return typeof n===r||"a"+(t<1?"n ":" ")+r}});const A_={};Uy.transitional=function(t,e,n){function a(i,o){return"[Axios v"+DC+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new Ve(a(o," has been removed"+(e?" in "+e:"")),Ve.ERR_DEPRECATED);return e&&!A_[o]&&(A_[o]=!0,console.warn(a(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(i,o,s):!0}};function vO(r,t,e){if(typeof r!="object")throw new Ve("options must be an object",Ve.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const s=r[i],l=s===void 0||o(s,i,r);if(l!==!0)throw new Ve("option "+i+" must be "+l,Ve.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Ve("Unknown option "+i,Ve.ERR_BAD_OPTION)}}const Yp={assertOptions:vO,validators:Uy},Zn=Yp.validators;class cc{constructor(t){this.defaults=t,this.interceptors={request:new S_,response:new S_}}request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Go(this.defaults,e);const{transitional:n,paramsSerializer:a,headers:i}=e;n!==void 0&&Yp.assertOptions(n,{silentJSONParsing:Zn.transitional(Zn.boolean),forcedJSONParsing:Zn.transitional(Zn.boolean),clarifyTimeoutError:Zn.transitional(Zn.boolean)},!1),a!=null&&(F.isFunction(a)?e.paramsSerializer={serialize:a}:Yp.assertOptions(a,{encode:Zn.function,serialize:Zn.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&F.merge(i.common,i[e.method]);i&&F.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),e.headers=Pn.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(e)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let f,c=0,h;if(!l){const d=[w_.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,u),h=d.length,f=Promise.resolve(e);c<h;)f=f.then(d[c++],d[c++]);return f}h=s.length;let v=e;for(c=0;c<h;){const d=s[c++],p=s[c++];try{v=d(v)}catch(g){p.call(this,g);break}}try{f=w_.call(this,v)}catch(d){return Promise.reject(d)}for(c=0,h=u.length;c<h;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=Go(this.defaults,t);const e=CC(t.baseURL,t.url);return bC(e,t.params,t.paramsSerializer)}}F.forEach(["delete","get","head","options"],function(t){cc.prototype[t]=function(e,n){return this.request(Go(n||{},{method:t,url:e,data:(n||{}).data}))}});F.forEach(["post","put","patch"],function(t){function e(n){return function(i,o,s){return this.request(Go(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}cc.prototype[t]=e(),cc.prototype[t+"Form"]=e(!0)});const Hf=cc;class $y{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(i){e=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new lu(i,o,s),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}static source(){let t;return{token:new $y(function(a){t=a}),cancel:t}}}const dO=$y;function pO(r){return function(e){return r.apply(null,e)}}function gO(r){return F.isObject(r)&&r.isAxiosError===!0}const Xp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xp).forEach(([r,t])=>{Xp[t]=r});const yO=Xp;function IC(r){const t=new Hf(r),e=fC(Hf.prototype.request,t);return F.extend(e,Hf.prototype,t,{allOwnKeys:!0}),F.extend(e,t,null,{allOwnKeys:!0}),e.create=function(a){return IC(Go(r,a))},e}const ft=IC(Wy);ft.Axios=Hf;ft.CanceledError=lu;ft.CancelToken=dO;ft.isCancel=AC;ft.VERSION=DC;ft.toFormData=yh;ft.AxiosError=Ve;ft.Cancel=ft.CanceledError;ft.all=function(t){return Promise.all(t)};ft.spread=pO;ft.isAxiosError=gO;ft.mergeConfig=Go;ft.AxiosHeaders=Pn;ft.formToJSON=r=>TC(F.isHTMLForm(r)?new FormData(r):r);ft.getAdapter=MC.getAdapter;ft.HttpStatusCode=yO;ft.default=ft;const LC=ft;var C_;const uu=typeof window<"u",mO=r=>typeof r=="string",_O=()=>{};uu&&((C_=window==null?void 0:window.navigator)!=null&&C_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Yy(r){return typeof r=="function"?r():Q(r)}function SO(r){return r}function Xy(r){return _R()?(SR(r),!0):!1}function xO(r,t=!0){By()?Cr(r):t?r():QA(r)}function bO(r,t,e={}){const{immediate:n=!0}=e,a=Ce(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,r(...u)},Yy(t))}return n&&(a.value=!0,uu&&l()),Xy(s),{isPending:xR(a),start:l,stop:s}}function PC(r){var t;const e=Yy(r);return(t=e==null?void 0:e.$el)!=null?t:e}const EC=uu?window:void 0;function wO(...r){let t,e,n,a;if(mO(r[0])||Array.isArray(r[0])?([e,n,a]=r,t=EC):[t,e,n,a]=r,!t)return _O;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const i=[],o=()=>{i.forEach(f=>f()),i.length=0},s=(f,c,h,v)=>(f.addEventListener(c,h,v),()=>f.removeEventListener(c,h,v)),l=fh(()=>[PC(t),Yy(a)],([f,c])=>{o(),f&&i.push(...e.flatMap(h=>n.map(v=>s(f,h,v,c))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Xy(u),u}function TO(r,t=!1){const e=Ce(),n=()=>e.value=!!r();return n(),xO(n,t),e}const M_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},D_="__vueuse_ssr_handlers__";M_[D_]=M_[D_]||{};var I_=Object.getOwnPropertySymbols,AO=Object.prototype.hasOwnProperty,CO=Object.prototype.propertyIsEnumerable,MO=(r,t)=>{var e={};for(var n in r)AO.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&I_)for(var n of I_(r))t.indexOf(n)<0&&CO.call(r,n)&&(e[n]=r[n]);return e};function DO(r,t,e={}){const n=e,{window:a=EC}=n,i=MO(n,["window"]);let o;const s=TO(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=fh(()=>PC(r),c=>{l(),s.value&&a&&c&&(o=new ResizeObserver(t),o.observe(c,i))},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return Xy(f),{isSupported:s,stop:f}}var L_;(function(r){r.UP="UP",r.RIGHT="RIGHT",r.DOWN="DOWN",r.LEFT="LEFT",r.NONE="NONE"})(L_||(L_={}));var IO=Object.defineProperty,P_=Object.getOwnPropertySymbols,LO=Object.prototype.hasOwnProperty,PO=Object.prototype.propertyIsEnumerable,E_=(r,t,e)=>t in r?IO(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,EO=(r,t)=>{for(var e in t||(t={}))LO.call(t,e)&&E_(r,e,t[e]);if(P_)for(var e of P_(t))PO.call(t,e)&&E_(r,e,t[e]);return r};const RO={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};EO({linear:SO},RO);var kO=typeof global=="object"&&global&&global.Object===Object&&global;const OO=kO;var NO=typeof self=="object"&&self&&self.Object===Object&&self,BO=OO||NO||Function("return this")();const Zy=BO;var VO=Zy.Symbol;const Fo=VO;var RC=Object.prototype,zO=RC.hasOwnProperty,GO=RC.toString,bs=Fo?Fo.toStringTag:void 0;function FO(r){var t=zO.call(r,bs),e=r[bs];try{r[bs]=void 0;var n=!0}catch{}var a=GO.call(r);return n&&(t?r[bs]=e:delete r[bs]),a}var HO=Object.prototype,WO=HO.toString;function UO(r){return WO.call(r)}var $O="[object Null]",YO="[object Undefined]",R_=Fo?Fo.toStringTag:void 0;function kC(r){return r==null?r===void 0?YO:$O:R_&&R_ in Object(r)?FO(r):UO(r)}function XO(r){return r!=null&&typeof r=="object"}var ZO="[object Symbol]";function qy(r){return typeof r=="symbol"||XO(r)&&kC(r)==ZO}function qO(r,t){for(var e=-1,n=r==null?0:r.length,a=Array(n);++e<n;)a[e]=t(r[e],e,r);return a}var jO=Array.isArray;const jy=jO;var KO=1/0,k_=Fo?Fo.prototype:void 0,O_=k_?k_.toString:void 0;function OC(r){if(typeof r=="string")return r;if(jy(r))return qO(r,OC)+"";if(qy(r))return O_?O_.call(r):"";var t=r+"";return t=="0"&&1/r==-KO?"-0":t}function NC(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var QO="[object AsyncFunction]",JO="[object Function]",eN="[object GeneratorFunction]",tN="[object Proxy]";function rN(r){if(!NC(r))return!1;var t=kC(r);return t==JO||t==eN||t==QO||t==tN}var nN=Zy["__core-js_shared__"];const vv=nN;var N_=function(){var r=/[^.]+$/.exec(vv&&vv.keys&&vv.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function aN(r){return!!N_&&N_ in r}var iN=Function.prototype,oN=iN.toString;function sN(r){if(r!=null){try{return oN.call(r)}catch{}try{return r+""}catch{}}return""}var lN=/[\\^$.*+?()[\]{}|]/g,uN=/^\[object .+?Constructor\]$/,fN=Function.prototype,cN=Object.prototype,hN=fN.toString,vN=cN.hasOwnProperty,dN=RegExp("^"+hN.call(vN).replace(lN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pN(r){if(!NC(r)||aN(r))return!1;var t=rN(r)?dN:uN;return t.test(sN(r))}function gN(r,t){return r==null?void 0:r[t]}function BC(r,t){var e=gN(r,t);return pN(e)?e:void 0}function yN(r,t){return r===t||r!==r&&t!==t}var mN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_N=/^\w*$/;function SN(r,t){if(jy(r))return!1;var e=typeof r;return e=="number"||e=="symbol"||e=="boolean"||r==null||qy(r)?!0:_N.test(r)||!mN.test(r)||t!=null&&r in Object(t)}var xN=BC(Object,"create");const Dl=xN;function bN(){this.__data__=Dl?Dl(null):{},this.size=0}function wN(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var TN="__lodash_hash_undefined__",AN=Object.prototype,CN=AN.hasOwnProperty;function MN(r){var t=this.__data__;if(Dl){var e=t[r];return e===TN?void 0:e}return CN.call(t,r)?t[r]:void 0}var DN=Object.prototype,IN=DN.hasOwnProperty;function LN(r){var t=this.__data__;return Dl?t[r]!==void 0:IN.call(t,r)}var PN="__lodash_hash_undefined__";function EN(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=Dl&&t===void 0?PN:t,this}function Bi(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Bi.prototype.clear=bN;Bi.prototype.delete=wN;Bi.prototype.get=MN;Bi.prototype.has=LN;Bi.prototype.set=EN;function RN(){this.__data__=[],this.size=0}function _h(r,t){for(var e=r.length;e--;)if(yN(r[e][0],t))return e;return-1}var kN=Array.prototype,ON=kN.splice;function NN(r){var t=this.__data__,e=_h(t,r);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():ON.call(t,e,1),--this.size,!0}function BN(r){var t=this.__data__,e=_h(t,r);return e<0?void 0:t[e][1]}function VN(r){return _h(this.__data__,r)>-1}function zN(r,t){var e=this.__data__,n=_h(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this}function rs(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}rs.prototype.clear=RN;rs.prototype.delete=NN;rs.prototype.get=BN;rs.prototype.has=VN;rs.prototype.set=zN;var GN=BC(Zy,"Map");const FN=GN;function HN(){this.size=0,this.__data__={hash:new Bi,map:new(FN||rs),string:new Bi}}function WN(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function Sh(r,t){var e=r.__data__;return WN(t)?e[typeof t=="string"?"string":"hash"]:e.map}function UN(r){var t=Sh(this,r).delete(r);return this.size-=t?1:0,t}function $N(r){return Sh(this,r).get(r)}function YN(r){return Sh(this,r).has(r)}function XN(r,t){var e=Sh(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this}function Xi(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Xi.prototype.clear=HN;Xi.prototype.delete=UN;Xi.prototype.get=$N;Xi.prototype.has=YN;Xi.prototype.set=XN;var ZN="Expected a function";function Ky(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(ZN);var e=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=e.cache;if(i.has(a))return i.get(a);var o=r.apply(this,n);return e.cache=i.set(a,o)||i,o};return e.cache=new(Ky.Cache||Xi),e}Ky.Cache=Xi;var qN=500;function jN(r){var t=Ky(r,function(n){return e.size===qN&&e.clear(),n}),e=t.cache;return t}var KN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,QN=/\\(\\)?/g,JN=jN(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(KN,function(e,n,a,i){t.push(a?i.replace(QN,"$1"):n||e)}),t});const eB=JN;function tB(r){return r==null?"":OC(r)}function rB(r,t){return jy(r)?r:SN(r,t)?[r]:eB(tB(r))}var nB=1/0;function aB(r){if(typeof r=="string"||qy(r))return r;var t=r+"";return t=="0"&&1/r==-nB?"-0":t}function iB(r,t){t=rB(t,r);for(var e=0,n=t.length;r!=null&&e<n;)r=r[aB(t[e++])];return e&&e==n?r:void 0}function oB(r,t,e){var n=r==null?void 0:iB(r,t);return n===void 0?e:n}function sB(r){for(var t=-1,e=r==null?0:r.length,n={};++t<e;){var a=r[t];n[a[0]]=a[1]}return n}const lB=r=>r===void 0,Il=r=>typeof r=="number",uB=r=>typeof Element>"u"?!1:r instanceof Element,fB=r=>fc(r)?!Number.isNaN(Number(r)):!1,B_=r=>Object.keys(r);function cB(r,t="px"){if(!r)return"";if(Il(r)||fB(r))return`${r}${t}`;if(fc(r))return r}const VC="__epPropKey",hc=r=>r,hB=r=>JA(r)&&!!r[VC],zC=(r,t)=>{if(!JA(r)||hB(r))return r;const{values:e,required:n,default:a,type:i,validator:o}=r,l={type:i,required:!!n,validator:e||o?u=>{let f=!1,c=[];if(e&&(c=Array.from(e),d_(r,"default")&&c.push(a),f||(f=c.includes(u))),o&&(f||(f=o(u))),!f&&c.length>0){const h=[...new Set(c)].map(v=>JSON.stringify(v)).join(", ");bR(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return f}:void 0,[VC]:!0};return d_(r,"default")&&(l.default=a),l},Qy=r=>sB(Object.entries(r).map(([t,e])=>[t,zC(e,t)])),vB=hc([String,Object,Function]),dB={Close:FR,SuccessFilled:lC,InfoFilled:sC,WarningFilled:uC,CircleCloseFilled:oC},V_={success:lC,warning:uC,error:oC,info:sC},GC=(r,t)=>{if(r.install=e=>{for(const n of[r,...Object.values(t??{})])e.component(n.name,n)},t)for(const[e,n]of Object.entries(t))r[e]=n;return r},pB=(r,t)=>(r.install=e=>{r._context=e._context,e.config.globalProperties[t]=r},r),gB={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},yB=["","default","small","large"],mB=r=>r;var _B={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const SB=r=>(t,e)=>xB(t,e,Q(r)),xB=(r,t,e)=>oB(e,r,r).replace(/\{(\w+)\}/g,(n,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),bB=r=>{const t=je(()=>Q(r).name),e=hh(r)?r:Ce(r);return{lang:t,locale:e,t:SB(r)}},FC=Symbol("localeContextKey"),wB=r=>{const t=r||ch(FC,Ce());return bB(je(()=>t.value||_B))},Zp="el",TB="is-",Ba=(r,t,e,n,a)=>{let i=`${r}-${t}`;return e&&(i+=`-${e}`),n&&(i+=`__${n}`),a&&(i+=`--${a}`),i},HC=Symbol("namespaceContextKey"),AB=r=>{const t=r||ch(HC,Ce(Zp));return je(()=>Q(t)||Zp)},Jy=(r,t)=>{const e=AB(t);return{namespace:e,b:(p="")=>Ba(e.value,r,p,"",""),e:p=>p?Ba(e.value,r,"",p,""):"",m:p=>p?Ba(e.value,r,"","",p):"",be:(p,g)=>p&&g?Ba(e.value,r,p,g,""):"",em:(p,g)=>p&&g?Ba(e.value,r,"",p,g):"",bm:(p,g)=>p&&g?Ba(e.value,r,p,"",g):"",bem:(p,g,y)=>p&&g&&y?Ba(e.value,r,p,g,y):"",is:(p,...g)=>{const y=g.length>=1?g[0]:!0;return p&&y?`${TB}${p}`:""},cssVar:p=>{const g={};for(const y in p)p[y]&&(g[`--${e.value}-${y}`]=p[y]);return g},cssVarName:p=>`--${e.value}-${p}`,cssVarBlock:p=>{const g={};for(const y in p)p[y]&&(g[`--${e.value}-${r}-${y}`]=p[y]);return g},cssVarBlockName:p=>`--${e.value}-${r}-${p}`}},z_=Ce(0),WC=2e3,UC=Symbol("zIndexContextKey"),CB=r=>{const t=r||ch(UC,void 0),e=je(()=>{const i=Q(t);return Il(i)?i:WC}),n=je(()=>e.value+z_.value);return{initialZIndex:e,currentZIndex:n,nextZIndex:()=>(z_.value++,n.value)}};zC({type:String,values:yB,required:!1});const MB=Symbol("size"),$C=Symbol(),vc=Ce();function YC(r,t=void 0){const e=By()?ch($C,vc):vc;return r?je(()=>{var n,a;return(a=(n=e.value)==null?void 0:n[r])!=null?a:t}):e}function DB(r,t){const e=YC(),n=Jy(r,je(()=>{var s;return((s=e.value)==null?void 0:s.namespace)||Zp})),a=wB(je(()=>{var s;return(s=e.value)==null?void 0:s.locale})),i=CB(je(()=>{var s;return((s=e.value)==null?void 0:s.zIndex)||WC})),o=je(()=>{var s;return Q(t)||((s=e.value)==null?void 0:s.size)||""});return IB(je(()=>Q(e)||{})),{ns:n,locale:a,zIndex:i,size:o}}const IB=(r,t,e=!1)=>{var n;const a=!!By(),i=a?YC():void 0,o=(n=t==null?void 0:t.provide)!=null?n:a?Vy:void 0;if(!o)return;const s=je(()=>{const l=Q(r);return i!=null&&i.value?LB(i.value,l):l});return o($C,s),o(FC,je(()=>s.value.locale)),o(HC,je(()=>s.value.namespace)),o(UC,je(()=>s.value.zIndex)),o(MB,{size:je(()=>s.value.size||"")}),(e||!vc.value)&&(vc.value=s.value),s},LB=(r,t)=>{var e;const n=[...new Set([...B_(r),...B_(t)])],a={};for(const i of n)a[i]=(e=t[i])!=null?e:r[i];return a},G_={};var em=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e};const PB=Qy({size:{type:hc([Number,String])},color:{type:String}}),EB=Jo({name:"ElIcon",inheritAttrs:!1}),RB=Jo({...EB,props:PB,setup(r){const t=r,e=Jy("icon"),n=je(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:lB(a)?void 0:cB(a),"--color":i}});return(a,i)=>(se(),ce("i",wR({class:Q(e).b(),style:Q(n)},a.$attrs),[zy(a.$slots,"default")],16))}});var kB=em(RB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const F_=GC(kB),OB=Qy({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),NB=["textContent"],BB=Jo({name:"ElBadge"}),VB=Jo({...BB,props:OB,setup(r,{expose:t}){const e=r,n=Jy("badge"),a=je(()=>e.isDot?"":Il(e.value)&&Il(e.max)?e.max<e.value?`${e.max}+`:`${e.value}`:`${e.value}`);return t({content:a}),(i,o)=>(se(),ce("div",{class:yt(Q(n).b())},[zy(i.$slots,"default"),Ye(rC,{name:`${Q(n).namespace.value}-zoom-in-center`,persisted:""},{default:br(()=>[eC($("sup",{class:yt([Q(n).e("content"),Q(n).em("content",i.type),Q(n).is("fixed",!!i.$slots.default),Q(n).is("dot",i.isDot)]),textContent:Oe(Q(a))},null,10,NB),[[tC,!i.hidden&&(Q(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var zB=em(VB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const GB=GC(zB),XC=["success","info","warning","error"],Yt=mB({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:uu?document.body:void 0}),FB=Qy({customClass:{type:String,default:Yt.customClass},center:{type:Boolean,default:Yt.center},dangerouslyUseHTMLString:{type:Boolean,default:Yt.dangerouslyUseHTMLString},duration:{type:Number,default:Yt.duration},icon:{type:vB,default:Yt.icon},id:{type:String,default:Yt.id},message:{type:hc([String,Object,Function]),default:Yt.message},onClose:{type:hc(Function),required:!1},showClose:{type:Boolean,default:Yt.showClose},type:{type:String,values:XC,default:Yt.type},offset:{type:Number,default:Yt.offset},zIndex:{type:Number,default:Yt.zIndex},grouping:{type:Boolean,default:Yt.grouping},repeatNum:{type:Number,default:Yt.repeatNum}}),HB={destroy:()=>!0},Gr=TR([]),WB=r=>{const t=Gr.findIndex(a=>a.id===r),e=Gr[t];let n;return t>0&&(n=Gr[t-1]),{current:e,prev:n}},UB=r=>{const{prev:t}=WB(r);return t?t.vm.exposed.bottom.value:0},$B=(r,t)=>Gr.findIndex(n=>n.id===r)>0?20:t,YB=["id"],XB=["innerHTML"],ZB=Jo({name:"ElMessage"}),qB=Jo({...ZB,props:FB,emits:HB,setup(r,{expose:t}){const e=r,{Close:n}=dB,{ns:a,zIndex:i}=DB("message"),{currentZIndex:o,nextZIndex:s}=i,l=Ce(),u=Ce(!1),f=Ce(0);let c;const h=je(()=>e.type?e.type==="error"?"danger":e.type:"info"),v=je(()=>{const w=e.type;return{[a.bm("icon",w)]:w&&V_[w]}}),d=je(()=>e.icon||V_[e.type]||""),p=je(()=>UB(e.id)),g=je(()=>$B(e.id,e.offset)+p.value),y=je(()=>f.value+g.value),m=je(()=>({top:`${g.value}px`,zIndex:o.value}));function _(){e.duration!==0&&({stop:c}=bO(()=>{b()},e.duration))}function S(){c==null||c()}function b(){u.value=!1}function x({code:w}){w===gB.esc&&b()}return Cr(()=>{_(),s(),u.value=!0}),fh(()=>e.repeatNum,()=>{S(),_()}),wO(document,"keydown",x),DO(l,()=>{f.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:y,close:b}),(w,T)=>(se(),To(rC,{name:Q(a).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:T[0]||(T[0]=C=>w.$emit("destroy")),persisted:""},{default:br(()=>[eC($("div",{id:w.id,ref_key:"messageRef",ref:l,class:yt([Q(a).b(),{[Q(a).m(w.type)]:w.type&&!w.icon},Q(a).is("center",w.center),Q(a).is("closable",w.showClose),w.customClass]),style:AR(Q(m)),role:"alert",onMouseenter:S,onMouseleave:_},[w.repeatNum>1?(se(),To(Q(GB),{key:0,value:w.repeatNum,type:Q(h),class:yt(Q(a).e("badge"))},null,8,["value","type","class"])):Qs("v-if",!0),Q(d)?(se(),To(Q(F_),{key:1,class:yt([Q(a).e("icon"),Q(v)])},{default:br(()=>[(se(),To(CR(Q(d))))]),_:1},8,["class"])):Qs("v-if",!0),zy(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(se(),ce(bt,{key:1},[Qs(" Caution here, message could've been compromised, never use user's input as message "),$("p",{class:yt(Q(a).e("content")),innerHTML:w.message},null,10,XB)],2112)):(se(),ce("p",{key:0,class:yt(Q(a).e("content"))},Oe(w.message),3))]),w.showClose?(se(),To(Q(F_),{key:2,class:yt(Q(a).e("closeBtn")),onClick:MR(b,["stop"])},{default:br(()=>[Ye(Q(n))]),_:1},8,["class","onClick"])):Qs("v-if",!0)],46,YB),[[tC,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var jB=em(qB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let KB=1;const ZC=r=>{const t=!r||fc(r)||nC(r)||Wp(r)?{message:r}:r,e={...Yt,...t};if(!e.appendTo)e.appendTo=document.body;else if(fc(e.appendTo)){let n=document.querySelector(e.appendTo);uB(n)||(n=document.body),e.appendTo=n}return e},QB=r=>{const t=Gr.indexOf(r);if(t===-1)return;Gr.splice(t,1);const{handler:e}=r;e.close()},JB=({appendTo:r,...t},e)=>{const n=`message_${KB++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:n,onClose:()=>{a==null||a(),QB(f)},onDestroy:()=>{p_(null,i)}},s=Ye(jB,o,Wp(o.message)||nC(o.message)?{default:Wp(o.message)?o.message:()=>o.message}:null);s.appContext=e||Ho._context,p_(s,i),r.appendChild(i.firstElementChild);const l=s.component,f={id:n,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return f},Ho=(r={},t)=>{if(!uu)return{close:()=>{}};if(Il(G_.max)&&Gr.length>=G_.max)return{close:()=>{}};const e=ZC(r);if(e.grouping&&Gr.length){const a=Gr.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===e.message});if(a)return a.props.repeatNum+=1,a.props.type=e.type,a.handler}const n=JB(e,t);return Gr.push(n),n.handler};XC.forEach(r=>{Ho[r]=(t={},e)=>{const n=ZC(t);return Ho({...n,type:r},e)}});function e5(r){for(const t of Gr)(!r||r===t.props.type)&&t.handler.close()}Ho.closeAll=e5;Ho._context=null;const H_=pB(Ho,"$message");LC.defaults.headers["Content-Type"]="application/json;charset=utf-8";const t5="https://hx.yhwk.ynzhsk.cn",xh=LC.create({baseURL:t5});xh.interceptors.request.use(r=>(r.baseURL="https://hx.yhwk.ynzhsk.cn",r),r=>Promise.reject(r));xh.interceptors.response.use(r=>{const t=r.data.code||200,e=r.data.msg;return t!==200&&t!==2e4&&t!==1?(H_.error(e),Promise.reject("error")):r.data},r=>{console.log("err"+r);let{message:t}=r;return t==="Network Error"?t="后端接口连接异常":t.includes("Request failed with status code")&&(t="系统接口"+t.substr(t.length-3)+"异常"),H_({message:t,type:"error",duration:5*1e3}),Promise.reject(r)});function r5(){return xh({url:"/api/pipes/line/routeSection",method:"post"})}const n5=r=>(Ra("data-v-bc25c7bb"),r=r(),ka(),r),a5=n5(()=>$("div",{id:"cesiumContainer"},null,-1)),i5={__name:"index",setup(r){let t=Ce(null),e=Ce(null),n=Ce([]),a=Ce([]);Cr(()=>{Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2MGQ0YTA0MS04YTNlLTQxOTYtYTU0Yy1jNzU2ZDgyNDRmOTIiLCJpZCI6MTI5MTM1LCJpYXQiOjE2OTgzMTM5NzN9.jx4mtrYCsPOpHOrpxNGuiGV_lLnLCi0f9tqk5UI9PiM",i(),o(),s(),c(),d()});const i=()=>{t=new Cesium.Viewer("cesiumContainer",{terrain:Cesium.Terrain.fromWorldTerrain({requestWaterMask:!0,requestVertexNormals:!0}),infoBox:!1,animation:!1,baseLayerPicker:!1,fullscreenButton:!1,vrButton:!1,geocoder:!1,homeButton:!1,sceneModePicker:!1,timeline:!1,shouldAnimate:!0,selectionIndicator:!0,navigationHelpButton:!1,navigationInstructionsInitiallyVisible:!1}),t.clock.multiplier=30,t.clock.shouldAnimate=!0,t.scene.globe.depthTestAgainstTerrain=!0,t.scene.postProcessStages.fxaa.enabled=!1,t.clock.currentTime=Cesium.JulianDate.fromDate(new Date(2022,7,1,12,0,0));const g=new Cesium.ScreenSpaceEventHandler(t.scene.canvas);t.useBrowserRecommendedResolution=!1,g.setInputAction(y=>{Math.round(y.position.x),Math.round(y.position.y);let m=t.scene.pick(y.position);if(t._selectedEntity=[],Cesium.defined(m)){const _=m.id;console.log(m),_&&(console.log(_.className),_.className==="RZl3Ru"&&(console.log("利博河至土鲁白输水管"),e.value.forEach((S,b)=>{S.route_code==="RZl3Ru"&&h(102.12057631377955,23.27498965107298,2313.2490871946457,3,18.97773411981998,-19.57009190528364,359.9997780379558)})),_.className==="Rt6HB3"&&(console.log("石榴山输水管"),e.value.forEach((S,b)=>{S.route_code==="Rt6HB3"&&h(102.20975517648645,23.38125938406049,2908.6650798668347,3,64.64077519892888,-25.838183360926433,359.99937634160295)})),_.className==="R81Y7i"&&(console.log("阿扎河水库至他龙倒虹吸补水管道"),e.value.forEach((S,b)=>{S.route_code==="R81Y7i"&&h(102.50362054826105,23.266012079212896,2087.92259506889,3,316.8330442037185,-18.799804802320367,.003412192145048924)})))}},Cesium.ScreenSpaceEventType.LEFT_CLICK)},o=()=>{t._cesiumWidget._creditContainer.style.display="none"},s=async()=>{const g=await Cesium.BingMapsImageryProvider.fromUrl("https://dev.virtualearth.net",{key:"AmWZnMa0PAHbCQEUTfTQupwao0TcaYHX42zGmzoYsVd0k_TFZl0JkMrSryFiqJ7F",mapStyle:Cesium.BingMapsStyle.AERIAL});t.imageryLayers.addImageryProvider(g);const y=new Cesium.UrlTemplateImageryProvider({url:"https://t{s}.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=49bfbed8461553424b38970ff8b17cbb",subdomains:["0","1","2","3","4","5","6","7"],tilingScheme:new Cesium.WebMercatorTilingScheme,maximumLevel:18});t.imageryLayers.addImageryProvider(y)};function l(g,y,m,_,S){console.log(_);let b="/image/Rectangle34624554.png";_==="利博河至土鲁白输水管"&&(b="/image/Rectangle34624555.png"),_==="石榴山输水管"&&(b="/image/Rectangle34624554.png"),_==="阿扎河水库至他龙倒虹吸补水管道"&&(b="/image/Rectangle34624556.png");let x=new Cesium.PolylineVolumeGraphics({show:!0,positions:y,shape:u(2),outline:!1,clampToGround:!0,outlineColor:Cesium.Color.BLUE,outlineWidth:100,fill:!0,cornerType:Cesium.CornerType.ROUNDED,material:new zo(2e3,b,100),zIndex:9999,disableDepthTestDistance:Number.POSITIVE_INFINITY}),w=t.entities.add({id:g,name:m,polylineVolume:x,zIndex:9999});a.value.push(w)}function u(g){let y=[];for(let m=0;m<360;m++){let _=Cesium.Math.toRadians(m);y.push(new Cesium.Cartesian2(g*Math.cos(_),g*Math.sin(_))),m+=5}return y}const f=(g,y,m)=>{let _="/js_n.png",S=0,b=0;m==="RZl3Ru"&&(_="/marker/03.png",S=279*2,b=74*2),m==="Rt6HB3"&&(_="/marker/01.png",S=207*2,b=84*2),m==="R81Y7i"&&(_="/marker/02.png",S=369*2,b=84*2),nk(t,m,_,y,[0,0,0],{min:5e3,max:3e5},S,b)},c=()=>{r5().then(g=>{e.value=g.data,g.data.forEach((y,m)=>{y.section.forEach((_,S)=>{let b=[];_.position_arr.forEach((x,w)=>{b.push(Cesium.Cartesian3.fromDegrees(Number(x[0]),Number(x[1]),Number(x[2].toFixed(1))))}),l(_.section_code,b,_.section_name,y.route_name)}),n.value.push({route_code:y.route_code,route_name:y.route_name,position:{longitude:Number(y.position_arr[0][0]),latitude:Number(y.position_arr[0][1])}}),console.log(y.route_code),f(y.route_name,[Number(y.position_arr[0][0]),Number(y.position_arr[0][1]),Number(y.position_arr[0][2])],y.route_code)}),h(102.30234314473036,22.60481149425591,83811.8577049972,3,4.092761318426501,-46.163318627984026,359.95391436702505)})},h=(g,y,m,_,S,b,x)=>{t.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(g,y,m||4e3),orientation:{heading:Cesium.Math.toRadians(S||0),pitch:Cesium.Math.toRadians(b||-90),roll:Cesium.Math.toRadians(x||0)},duration:_||3})},v=()=>{const g=t.camera,y=g.position,m=Cesium.Cartographic.fromCartesian(y),_=Cesium.Math.toDegrees(m.longitude),S=Cesium.Math.toDegrees(m.latitude),b=m.height,x=Cesium.Math.toDegrees(g.heading),w=Cesium.Math.toDegrees(g.pitch),T=Cesium.Math.toDegrees(g.roll);console.log("中心位置: Longitude: "+_+", Latitude: "+S+", Height: "+b),console.log("摄影机角度:","heading:"+x,"pitch:"+w,"roll:"+T)},d=()=>{const g="/geojson/honghexian.json";Cesium.GeoJsonDataSource.load(g).then(m=>{let _=m.entities.values;_.map(b=>b.polygon.heightReference=Cesium.HeightReference.CLAMP_TO_GROUND),_.map(b=>b.polygon.perPositionHeight=!1);for(var S in _)t.entities.add({polyline:{positions:_[S].polygon.hierarchy._value.positions,width:4,material:Cesium.Color.fromCssColorString("rgba(255,106,106,0.7)"),clampToGround:!0,zIndex:100,show:new Cesium.CallbackProperty(function(){return t.camera.positionCartographic.height<3e5},!1)}}),p(_[S].polygon.hierarchy._value.positions)})},p=g=>{let y=new Cesium.PolygonHierarchy(g);t.entities.add({name:"convertLayer",polygon:{hierarchy:{positions:Cesium.Cartesian3.fromDegreesArray([100,0,100,89,150,89,150,0]),holes:[y]},material:Cesium.Color.BLACK.withAlpha(.5),show:new Cesium.CallbackProperty(function(){return t.camera.positionCartographic.height<3e5},!1)},heightReference:Cesium.HeightReference.CLAMP_TO_GROUND})};return(g,y)=>(se(),ce(bt,null,[$("div",{class:"test"},[$("div",{class:"test_item",onClick:v},"获得摄像机")]),a5],64))}},o5=kt(i5,[["__scopeId","data-v-bc25c7bb"]]);const s5=r=>(Ra("data-v-551a5ef7"),r=r(),ka(),r),l5={class:"header_box"},u5={class:"core_header"},f5={class:"header_center"},c5=s5(()=>$("div",null,"一河五库信息一体化平台",-1)),h5={class:"header_right"},v5={class:"right_sj"},d5={__name:"Header",setup(r){const t=es();let e=Ce(""),n=Ce(""),a=Ce("");const i=Ce(DR());Cr(()=>{s(),l()});const o=()=>{i.value.push({path:"/"})};Cr(()=>{});const s=()=>{let u=new Date,f=u.getFullYear(),c=u.getMonth()+1,h=u.getDate(),v=u.getHours(),d=u.getMinutes(),p=u.getSeconds();n.value=`${f}.${c}.${h}`,a.value=`${v}:${d}:${p}`},l=()=>{let f=new Date().getDay(),c=["周日","周一","周二","周三","周四","周五","周六"];e.value=c[f]};return(u,f)=>(se(),ce("div",l5,[$("div",u5,[$("div",{class:"header_left"},[$("div",{class:"back_btn",onClick:o})]),$("div",f5,[c5,$("div",null,Oe(Q(t).activeTabName),1)]),$("div",h5,[$("div",v5,[$("div",null,Oe(Q(a)||"10:30:05"),1),$("div",null,[$("div",null,Oe(Q(e)||"周五"),1),$("div",null,Oe(Q(n)||"2023.8.10"),1)])])])])]))}},p5=kt(d5,[["__scopeId","data-v-551a5ef7"]]);const g5={},y5={class:"bg"};function m5(r,t){return se(),ce("div",y5)}const _5=kt(g5,[["render",m5],["__scopeId","data-v-da1a99ad"]]),S5={__name:"index",setup(r){return(t,e)=>(se(),ce(bt,null,[Ye(p5),Ye(_5)],64))}};function W_(r){return r!==null&&typeof r=="object"&&"constructor"in r&&r.constructor===Object}function tm(r={},t={}){Object.keys(t).forEach(e=>{typeof r[e]>"u"?r[e]=t[e]:W_(t[e])&&W_(r[e])&&Object.keys(t[e]).length>0&&tm(r[e],t[e])})}const qC={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function or(){const r=typeof document<"u"?document:{};return tm(r,qC),r}const x5={document:qC,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(r){return typeof setTimeout>"u"?(r(),null):setTimeout(r,0)},cancelAnimationFrame(r){typeof setTimeout>"u"||clearTimeout(r)}};function St(){const r=typeof window<"u"?window:{};return tm(r,x5),r}function b5(r){const t=r.__proto__;Object.defineProperty(r,"__proto__",{get(){return t},set(e){t.__proto__=e}})}class la extends Array{constructor(t){typeof t=="number"?super(t):(super(...t||[]),b5(this))}}function fu(r=[]){const t=[];return r.forEach(e=>{Array.isArray(e)?t.push(...fu(e)):t.push(e)}),t}function jC(r,t){return Array.prototype.filter.call(r,t)}function w5(r){const t=[];for(let e=0;e<r.length;e+=1)t.indexOf(r[e])===-1&&t.push(r[e]);return t}function T5(r,t){if(typeof r!="string")return[r];const e=[],n=t.querySelectorAll(r);for(let a=0;a<n.length;a+=1)e.push(n[a]);return e}function le(r,t){const e=St(),n=or();let a=[];if(!t&&r instanceof la)return r;if(!r)return new la(a);if(typeof r=="string"){const i=r.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let o="div";i.indexOf("<li")===0&&(o="ul"),i.indexOf("<tr")===0&&(o="tbody"),(i.indexOf("<td")===0||i.indexOf("<th")===0)&&(o="tr"),i.indexOf("<tbody")===0&&(o="table"),i.indexOf("<option")===0&&(o="select");const s=n.createElement(o);s.innerHTML=i;for(let l=0;l<s.childNodes.length;l+=1)a.push(s.childNodes[l])}else a=T5(r.trim(),t||n)}else if(r.nodeType||r===e||r===n)a.push(r);else if(Array.isArray(r)){if(r instanceof la)return r;a=r}return new la(w5(a))}le.fn=la.prototype;function A5(...r){const t=fu(r.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this}function C5(...r){const t=fu(r.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this}function M5(...r){const t=fu(r.map(e=>e.split(" ")));this.forEach(e=>{t.forEach(n=>{e.classList.toggle(n)})})}function D5(...r){const t=fu(r.map(e=>e.split(" ")));return jC(this,e=>t.filter(n=>e.classList.contains(n)).length>0).length>0}function I5(r,t){if(arguments.length===1&&typeof r=="string")return this[0]?this[0].getAttribute(r):void 0;for(let e=0;e<this.length;e+=1)if(arguments.length===2)this[e].setAttribute(r,t);else for(const n in r)this[e][n]=r[n],this[e].setAttribute(n,r[n]);return this}function L5(r){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(r);return this}function P5(r){for(let t=0;t<this.length;t+=1)this[t].style.transform=r;return this}function E5(r){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration=typeof r!="string"?`${r}ms`:r;return this}function R5(...r){let[t,e,n,a]=r;typeof r[1]=="function"&&([t,n,a]=r,e=void 0),a||(a=!1);function i(u){const f=u.target;if(!f)return;const c=u.target.dom7EventData||[];if(c.indexOf(u)<0&&c.unshift(u),le(f).is(e))n.apply(f,c);else{const h=le(f).parents();for(let v=0;v<h.length;v+=1)le(h[v]).is(e)&&n.apply(h[v],c)}}function o(u){const f=u&&u.target?u.target.dom7EventData||[]:[];f.indexOf(u)<0&&f.unshift(u),n.apply(this,f)}const s=t.split(" ");let l;for(let u=0;u<this.length;u+=1){const f=this[u];if(e)for(l=0;l<s.length;l+=1){const c=s[l];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[c]||(f.dom7LiveListeners[c]=[]),f.dom7LiveListeners[c].push({listener:n,proxyListener:i}),f.addEventListener(c,i,a)}else for(l=0;l<s.length;l+=1){const c=s[l];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[c]||(f.dom7Listeners[c]=[]),f.dom7Listeners[c].push({listener:n,proxyListener:o}),f.addEventListener(c,o,a)}}return this}function k5(...r){let[t,e,n,a]=r;typeof r[1]=="function"&&([t,n,a]=r,e=void 0),a||(a=!1);const i=t.split(" ");for(let o=0;o<i.length;o+=1){const s=i[o];for(let l=0;l<this.length;l+=1){const u=this[l];let f;if(!e&&u.dom7Listeners?f=u.dom7Listeners[s]:e&&u.dom7LiveListeners&&(f=u.dom7LiveListeners[s]),f&&f.length)for(let c=f.length-1;c>=0;c-=1){const h=f[c];n&&h.listener===n||n&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===n?(u.removeEventListener(s,h.proxyListener,a),f.splice(c,1)):n||(u.removeEventListener(s,h.proxyListener,a),f.splice(c,1))}}}return this}function O5(...r){const t=St(),e=r[0].split(" "),n=r[1];for(let a=0;a<e.length;a+=1){const i=e[a];for(let o=0;o<this.length;o+=1){const s=this[o];if(t.CustomEvent){const l=new t.CustomEvent(i,{detail:n,bubbles:!0,cancelable:!0});s.dom7EventData=r.filter((u,f)=>f>0),s.dispatchEvent(l),s.dom7EventData=[],delete s.dom7EventData}}}return this}function N5(r){const t=this;function e(n){n.target===this&&(r.call(this,n),t.off("transitionend",e))}return r&&t.on("transitionend",e),this}function B5(r){if(this.length>0){if(r){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function V5(r){if(this.length>0){if(r){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function z5(){if(this.length>0){const r=St(),t=or(),e=this[0],n=e.getBoundingClientRect(),a=t.body,i=e.clientTop||a.clientTop||0,o=e.clientLeft||a.clientLeft||0,s=e===r?r.scrollY:e.scrollTop,l=e===r?r.scrollX:e.scrollLeft;return{top:n.top+s-i,left:n.left+l-o}}return null}function G5(){const r=St();return this[0]?r.getComputedStyle(this[0],null):{}}function F5(r,t){const e=St();let n;if(arguments.length===1)if(typeof r=="string"){if(this[0])return e.getComputedStyle(this[0],null).getPropertyValue(r)}else{for(n=0;n<this.length;n+=1)for(const a in r)this[n].style[a]=r[a];return this}if(arguments.length===2&&typeof r=="string"){for(n=0;n<this.length;n+=1)this[n].style[r]=t;return this}return this}function H5(r){return r?(this.forEach((t,e)=>{r.apply(t,[t,e])}),this):this}function W5(r){const t=jC(this,r);return le(t)}function U5(r){if(typeof r>"u")return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=r;return this}function $5(r){if(typeof r>"u")return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=r;return this}function Y5(r){const t=St(),e=or(),n=this[0];let a,i;if(!n||typeof r>"u")return!1;if(typeof r=="string"){if(n.matches)return n.matches(r);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(r);if(n.msMatchesSelector)return n.msMatchesSelector(r);for(a=le(r),i=0;i<a.length;i+=1)if(a[i]===n)return!0;return!1}if(r===e)return n===e;if(r===t)return n===t;if(r.nodeType||r instanceof la){for(a=r.nodeType?[r]:r,i=0;i<a.length;i+=1)if(a[i]===n)return!0;return!1}return!1}function X5(){let r=this[0],t;if(r){for(t=0;(r=r.previousSibling)!==null;)r.nodeType===1&&(t+=1);return t}}function Z5(r){if(typeof r>"u")return this;const t=this.length;if(r>t-1)return le([]);if(r<0){const e=t+r;return e<0?le([]):le([this[e]])}return le([this[r]])}function q5(...r){let t;const e=or();for(let n=0;n<r.length;n+=1){t=r[n];for(let a=0;a<this.length;a+=1)if(typeof t=="string"){const i=e.createElement("div");for(i.innerHTML=t;i.firstChild;)this[a].appendChild(i.firstChild)}else if(t instanceof la)for(let i=0;i<t.length;i+=1)this[a].appendChild(t[i]);else this[a].appendChild(t)}return this}function j5(r){const t=or();let e,n;for(e=0;e<this.length;e+=1)if(typeof r=="string"){const a=t.createElement("div");for(a.innerHTML=r,n=a.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(a.childNodes[n],this[e].childNodes[0])}else if(r instanceof la)for(n=0;n<r.length;n+=1)this[e].insertBefore(r[n],this[e].childNodes[0]);else this[e].insertBefore(r,this[e].childNodes[0]);return this}function K5(r){return this.length>0?r?this[0].nextElementSibling&&le(this[0].nextElementSibling).is(r)?le([this[0].nextElementSibling]):le([]):this[0].nextElementSibling?le([this[0].nextElementSibling]):le([]):le([])}function Q5(r){const t=[];let e=this[0];if(!e)return le([]);for(;e.nextElementSibling;){const n=e.nextElementSibling;r?le(n).is(r)&&t.push(n):t.push(n),e=n}return le(t)}function J5(r){if(this.length>0){const t=this[0];return r?t.previousElementSibling&&le(t.previousElementSibling).is(r)?le([t.previousElementSibling]):le([]):t.previousElementSibling?le([t.previousElementSibling]):le([])}return le([])}function eV(r){const t=[];let e=this[0];if(!e)return le([]);for(;e.previousElementSibling;){const n=e.previousElementSibling;r?le(n).is(r)&&t.push(n):t.push(n),e=n}return le(t)}function tV(r){const t=[];for(let e=0;e<this.length;e+=1)this[e].parentNode!==null&&(r?le(this[e].parentNode).is(r)&&t.push(this[e].parentNode):t.push(this[e].parentNode));return le(t)}function rV(r){const t=[];for(let e=0;e<this.length;e+=1){let n=this[e].parentNode;for(;n;)r?le(n).is(r)&&t.push(n):t.push(n),n=n.parentNode}return le(t)}function nV(r){let t=this;return typeof r>"u"?le([]):(t.is(r)||(t=t.parents(r).eq(0)),t)}function aV(r){const t=[];for(let e=0;e<this.length;e+=1){const n=this[e].querySelectorAll(r);for(let a=0;a<n.length;a+=1)t.push(n[a])}return le(t)}function iV(r){const t=[];for(let e=0;e<this.length;e+=1){const n=this[e].children;for(let a=0;a<n.length;a+=1)(!r||le(n[a]).is(r))&&t.push(n[a])}return le(t)}function oV(){for(let r=0;r<this.length;r+=1)this[r].parentNode&&this[r].parentNode.removeChild(this[r]);return this}const U_={addClass:A5,removeClass:C5,hasClass:D5,toggleClass:M5,attr:I5,removeAttr:L5,transform:P5,transition:E5,on:R5,off:k5,trigger:O5,transitionEnd:N5,outerWidth:B5,outerHeight:V5,styles:G5,offset:z5,css:F5,each:H5,html:U5,text:$5,is:Y5,index:X5,eq:Z5,append:q5,prepend:j5,next:K5,nextAll:Q5,prev:J5,prevAll:eV,parent:tV,parents:rV,closest:nV,find:aV,children:iV,filter:W5,remove:oV};Object.keys(U_).forEach(r=>{Object.defineProperty(le.fn,r,{value:U_[r],writable:!0})});function sV(r){const t=r;Object.keys(t).forEach(e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}})}function qp(r,t=0){return setTimeout(r,t)}function Ll(){return Date.now()}function lV(r){const t=St();let e;return t.getComputedStyle&&(e=t.getComputedStyle(r,null)),!e&&r.currentStyle&&(e=r.currentStyle),e||(e=r.style),e}function uV(r,t="x"){const e=St();let n,a,i;const o=lV(r);return e.WebKitCSSMatrix?(a=o.transform||o.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(s=>s.replace(",",".")).join(", ")),i=new e.WebKitCSSMatrix(a==="none"?"":a)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=i.toString().split(",")),t==="x"&&(e.WebKitCSSMatrix?a=i.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),t==="y"&&(e.WebKitCSSMatrix?a=i.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0}function Ru(r){return typeof r=="object"&&r!==null&&r.constructor&&Object.prototype.toString.call(r).slice(8,-1)==="Object"}function fV(r){return typeof window<"u"&&typeof window.HTMLElement<"u"?r instanceof HTMLElement:r&&(r.nodeType===1||r.nodeType===11)}function tr(...r){const t=Object(r[0]),e=["__proto__","constructor","prototype"];for(let n=1;n<r.length;n+=1){const a=r[n];if(a!=null&&!fV(a)){const i=Object.keys(Object(a)).filter(o=>e.indexOf(o)<0);for(let o=0,s=i.length;o<s;o+=1){const l=i[o],u=Object.getOwnPropertyDescriptor(a,l);u!==void 0&&u.enumerable&&(Ru(t[l])&&Ru(a[l])?a[l].__swiper__?t[l]=a[l]:tr(t[l],a[l]):!Ru(t[l])&&Ru(a[l])?(t[l]={},a[l].__swiper__?t[l]=a[l]:tr(t[l],a[l])):t[l]=a[l])}}}return t}function ku(r,t,e){r.style.setProperty(t,e)}function KC({swiper:r,targetPosition:t,side:e}){const n=St(),a=-r.translate;let i=null,o;const s=r.params.speed;r.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(r.cssModeFrameID);const l=t>a?"next":"prev",u=(c,h)=>l==="next"&&c>=h||l==="prev"&&c<=h,f=()=>{o=new Date().getTime(),i===null&&(i=o);const c=Math.max(Math.min((o-i)/s,1),0),h=.5-Math.cos(c*Math.PI)/2;let v=a+h*(t-a);if(u(v,t)&&(v=t),r.wrapperEl.scrollTo({[e]:v}),u(v,t)){r.wrapperEl.style.overflow="hidden",r.wrapperEl.style.scrollSnapType="",setTimeout(()=>{r.wrapperEl.style.overflow="",r.wrapperEl.scrollTo({[e]:v})}),n.cancelAnimationFrame(r.cssModeFrameID);return}r.cssModeFrameID=n.requestAnimationFrame(f)};f()}let dv;function cV(){const r=St(),t=or();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in r||r.DocumentTouch&&t instanceof r.DocumentTouch),passiveListener:function(){let n=!1;try{const a=Object.defineProperty({},"passive",{get(){n=!0}});r.addEventListener("testPassiveListener",null,a)}catch{}return n}(),gestures:function(){return"ongesturestart"in r}()}}function QC(){return dv||(dv=cV()),dv}let pv;function hV({userAgent:r}={}){const t=QC(),e=St(),n=e.navigator.platform,a=r||e.navigator.userAgent,i={ios:!1,android:!1},o=e.screen.width,s=e.screen.height,l=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const f=a.match(/(iPod)(.*OS\s([\d_]+))?/),c=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=n==="Win32";let v=n==="MacIntel";const d=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&v&&t.touch&&d.indexOf(`${o}x${s}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),v=!1),l&&!h&&(i.os="android",i.android=!0),(u||c||f)&&(i.os="ios",i.ios=!0),i}function vV(r={}){return pv||(pv=hV(r)),pv}let gv;function dV(){const r=St();function t(){const e=r.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}return{isSafari:t(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(r.navigator.userAgent)}}function pV(){return gv||(gv=dV()),gv}function gV({swiper:r,on:t,emit:e}){const n=St();let a=null,i=null;const o=()=>{!r||r.destroyed||!r.initialized||(e("beforeResize"),e("resize"))},s=()=>{!r||r.destroyed||!r.initialized||(a=new ResizeObserver(f=>{i=n.requestAnimationFrame(()=>{const{width:c,height:h}=r;let v=c,d=h;f.forEach(({contentBoxSize:p,contentRect:g,target:y})=>{y&&y!==r.el||(v=g?g.width:(p[0]||p).inlineSize,d=g?g.height:(p[0]||p).blockSize)}),(v!==c||d!==h)&&o()})}),a.observe(r.el))},l=()=>{i&&n.cancelAnimationFrame(i),a&&a.unobserve&&r.el&&(a.unobserve(r.el),a=null)},u=()=>{!r||r.destroyed||!r.initialized||e("orientationchange")};t("init",()=>{if(r.params.resizeObserver&&typeof n.ResizeObserver<"u"){s();return}n.addEventListener("resize",o),n.addEventListener("orientationchange",u)}),t("destroy",()=>{l(),n.removeEventListener("resize",o),n.removeEventListener("orientationchange",u)})}function yV({swiper:r,extendParams:t,on:e,emit:n}){const a=[],i=St(),o=(u,f={})=>{const c=i.MutationObserver||i.WebkitMutationObserver,h=new c(v=>{if(v.length===1){n("observerUpdate",v[0]);return}const d=function(){n("observerUpdate",v[0])};i.requestAnimationFrame?i.requestAnimationFrame(d):i.setTimeout(d,0)});h.observe(u,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),a.push(h)},s=()=>{if(r.params.observer){if(r.params.observeParents){const u=r.$el.parents();for(let f=0;f<u.length;f+=1)o(u[f])}o(r.$el[0],{childList:r.params.observeSlideChildren}),o(r.$wrapperEl[0],{attributes:!1})}},l=()=>{a.forEach(u=>{u.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),e("init",s),e("destroy",l)}const mV={on(r,t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const a=e?"unshift":"push";return r.split(" ").forEach(i=>{n.eventsListeners[i]||(n.eventsListeners[i]=[]),n.eventsListeners[i][a](t)}),n},once(r,t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;function a(...i){n.off(r,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(n,i)}return a.__emitterProxy=t,n.on(r,a,e)},onAny(r,t){const e=this;if(!e.eventsListeners||e.destroyed||typeof r!="function")return e;const n=t?"unshift":"push";return e.eventsAnyListeners.indexOf(r)<0&&e.eventsAnyListeners[n](r),e},offAny(r){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const e=t.eventsAnyListeners.indexOf(r);return e>=0&&t.eventsAnyListeners.splice(e,1),t},off(r,t){const e=this;return!e.eventsListeners||e.destroyed||!e.eventsListeners||r.split(" ").forEach(n=>{typeof t>"u"?e.eventsListeners[n]=[]:e.eventsListeners[n]&&e.eventsListeners[n].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&e.eventsListeners[n].splice(i,1)})}),e},emit(...r){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,n,a;return typeof r[0]=="string"||Array.isArray(r[0])?(e=r[0],n=r.slice(1,r.length),a=t):(e=r[0].events,n=r[0].data,a=r[0].context||t),n.unshift(a),(Array.isArray(e)?e:e.split(" ")).forEach(o=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(s=>{s.apply(a,[o,...n])}),t.eventsListeners&&t.eventsListeners[o]&&t.eventsListeners[o].forEach(s=>{s.apply(a,n)})}),t}};function _V(){const r=this;let t,e;const n=r.$el;typeof r.params.width<"u"&&r.params.width!==null?t=r.params.width:t=n[0].clientWidth,typeof r.params.height<"u"&&r.params.height!==null?e=r.params.height:e=n[0].clientHeight,!(t===0&&r.isHorizontal()||e===0&&r.isVertical())&&(t=t-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),e=e-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(e)&&(e=0),Object.assign(r,{width:t,height:e,size:r.isHorizontal()?t:e}))}function SV(){const r=this;function t(A){return r.isHorizontal()?A:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[A]}function e(A,M){return parseFloat(A.getPropertyValue(t(M))||0)}const n=r.params,{$wrapperEl:a,size:i,rtlTranslate:o,wrongRTL:s}=r,l=r.virtual&&n.virtual.enabled,u=l?r.virtual.slides.length:r.slides.length,f=a.children(`.${r.params.slideClass}`),c=l?r.virtual.slides.length:f.length;let h=[];const v=[],d=[];let p=n.slidesOffsetBefore;typeof p=="function"&&(p=n.slidesOffsetBefore.call(r));let g=n.slidesOffsetAfter;typeof g=="function"&&(g=n.slidesOffsetAfter.call(r));const y=r.snapGrid.length,m=r.slidesGrid.length;let _=n.spaceBetween,S=-p,b=0,x=0;if(typeof i>"u")return;typeof _=="string"&&_.indexOf("%")>=0&&(_=parseFloat(_.replace("%",""))/100*i),r.virtualSize=-_,o?f.css({marginLeft:"",marginBottom:"",marginTop:""}):f.css({marginRight:"",marginBottom:"",marginTop:""}),n.centeredSlides&&n.cssMode&&(ku(r.wrapperEl,"--swiper-centered-offset-before",""),ku(r.wrapperEl,"--swiper-centered-offset-after",""));const w=n.grid&&n.grid.rows>1&&r.grid;w&&r.grid.initSlides(c);let T;const C=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(A=>typeof n.breakpoints[A].slidesPerView<"u").length>0;for(let A=0;A<c;A+=1){T=0;const M=f.eq(A);if(w&&r.grid.updateSlide(A,M,c,t),M.css("display")!=="none"){if(n.slidesPerView==="auto"){C&&(f[A].style[t("width")]="");const I=getComputedStyle(M[0]),L=M[0].style.transform,P=M[0].style.webkitTransform;if(L&&(M[0].style.transform="none"),P&&(M[0].style.webkitTransform="none"),n.roundLengths)T=r.isHorizontal()?M.outerWidth(!0):M.outerHeight(!0);else{const E=e(I,"width"),R=e(I,"padding-left"),N=e(I,"padding-right"),k=e(I,"margin-left"),V=e(I,"margin-right"),H=I.getPropertyValue("box-sizing");if(H&&H==="border-box")T=E+k+V;else{const{clientWidth:U,offsetWidth:q}=M[0];T=E+R+N+k+V+(q-U)}}L&&(M[0].style.transform=L),P&&(M[0].style.webkitTransform=P),n.roundLengths&&(T=Math.floor(T))}else T=(i-(n.slidesPerView-1)*_)/n.slidesPerView,n.roundLengths&&(T=Math.floor(T)),f[A]&&(f[A].style[t("width")]=`${T}px`);f[A]&&(f[A].swiperSlideSize=T),d.push(T),n.centeredSlides?(S=S+T/2+b/2+_,b===0&&A!==0&&(S=S-i/2-_),A===0&&(S=S-i/2-_),Math.abs(S)<1/1e3&&(S=0),n.roundLengths&&(S=Math.floor(S)),x%n.slidesPerGroup===0&&h.push(S),v.push(S)):(n.roundLengths&&(S=Math.floor(S)),(x-Math.min(r.params.slidesPerGroupSkip,x))%r.params.slidesPerGroup===0&&h.push(S),v.push(S),S=S+T+_),r.virtualSize+=T+_,b=T,x+=1}}if(r.virtualSize=Math.max(r.virtualSize,i)+g,o&&s&&(n.effect==="slide"||n.effect==="coverflow")&&a.css({width:`${r.virtualSize+n.spaceBetween}px`}),n.setWrapperSize&&a.css({[t("width")]:`${r.virtualSize+n.spaceBetween}px`}),w&&r.grid.updateWrapperSize(T,h,t),!n.centeredSlides){const A=[];for(let M=0;M<h.length;M+=1){let I=h[M];n.roundLengths&&(I=Math.floor(I)),h[M]<=r.virtualSize-i&&A.push(I)}h=A,Math.floor(r.virtualSize-i)-Math.floor(h[h.length-1])>1&&h.push(r.virtualSize-i)}if(h.length===0&&(h=[0]),n.spaceBetween!==0){const A=r.isHorizontal()&&o?"marginLeft":t("marginRight");f.filter((M,I)=>n.cssMode?I!==f.length-1:!0).css({[A]:`${_}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let A=0;d.forEach(I=>{A+=I+(n.spaceBetween?n.spaceBetween:0)}),A-=n.spaceBetween;const M=A-i;h=h.map(I=>I<0?-p:I>M?M+g:I)}if(n.centerInsufficientSlides){let A=0;if(d.forEach(M=>{A+=M+(n.spaceBetween?n.spaceBetween:0)}),A-=n.spaceBetween,A<i){const M=(i-A)/2;h.forEach((I,L)=>{h[L]=I-M}),v.forEach((I,L)=>{v[L]=I+M})}}if(Object.assign(r,{slides:f,snapGrid:h,slidesGrid:v,slidesSizesGrid:d}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){ku(r.wrapperEl,"--swiper-centered-offset-before",`${-h[0]}px`),ku(r.wrapperEl,"--swiper-centered-offset-after",`${r.size/2-d[d.length-1]/2}px`);const A=-r.snapGrid[0],M=-r.slidesGrid[0];r.snapGrid=r.snapGrid.map(I=>I+A),r.slidesGrid=r.slidesGrid.map(I=>I+M)}if(c!==u&&r.emit("slidesLengthChange"),h.length!==y&&(r.params.watchOverflow&&r.checkOverflow(),r.emit("snapGridLengthChange")),v.length!==m&&r.emit("slidesGridLengthChange"),n.watchSlidesProgress&&r.updateSlidesOffset(),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const A=`${n.containerModifierClass}backface-hidden`,M=r.$el.hasClass(A);c<=n.maxBackfaceHiddenSlides?M||r.$el.addClass(A):M&&r.$el.removeClass(A)}}function xV(r){const t=this,e=[],n=t.virtual&&t.params.virtual.enabled;let a=0,i;typeof r=="number"?t.setTransition(r):r===!0&&t.setTransition(t.params.speed);const o=s=>n?t.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===s)[0]:t.slides.eq(s)[0];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||le([])).each(s=>{e.push(s)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const s=t.activeIndex+i;if(s>t.slides.length&&!n)break;e.push(o(s))}else e.push(o(t.activeIndex));for(i=0;i<e.length;i+=1)if(typeof e[i]<"u"){const s=e[i].offsetHeight;a=s>a?s:a}(a||a===0)&&t.$wrapperEl.css("height",`${a}px`)}function bV(){const r=this,t=r.slides;for(let e=0;e<t.length;e+=1)t[e].swiperSlideOffset=r.isHorizontal()?t[e].offsetLeft:t[e].offsetTop}function wV(r=this&&this.translate||0){const t=this,e=t.params,{slides:n,rtlTranslate:a,snapGrid:i}=t;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let o=-r;a&&(o=r),n.removeClass(e.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let s=0;s<n.length;s+=1){const l=n[s];let u=l.swiperSlideOffset;e.cssMode&&e.centeredSlides&&(u-=n[0].swiperSlideOffset);const f=(o+(e.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+e.spaceBetween),c=(o-i[0]+(e.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+e.spaceBetween),h=-(o-u),v=h+t.slidesSizesGrid[s];(h>=0&&h<t.size-1||v>1&&v<=t.size||h<=0&&v>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(s),n.eq(s).addClass(e.slideVisibleClass)),l.progress=a?-f:f,l.originalProgress=a?-c:c}t.visibleSlides=le(t.visibleSlides)}function TV(r){const t=this;if(typeof r>"u"){const u=t.rtlTranslate?-1:1;r=t&&t.translate&&t.translate*u||0}const e=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:i,isEnd:o}=t;const s=i,l=o;n===0?(a=0,i=!0,o=!0):(a=(r-t.minTranslate())/n,i=a<=0,o=a>=1),Object.assign(t,{progress:a,isBeginning:i,isEnd:o}),(e.watchSlidesProgress||e.centeredSlides&&e.autoHeight)&&t.updateSlidesProgress(r),i&&!s&&t.emit("reachBeginning toEdge"),o&&!l&&t.emit("reachEnd toEdge"),(s&&!i||l&&!o)&&t.emit("fromEdge"),t.emit("progress",a)}function AV(){const r=this,{slides:t,params:e,$wrapperEl:n,activeIndex:a,realIndex:i}=r,o=r.virtual&&e.virtual.enabled;t.removeClass(`${e.slideActiveClass} ${e.slideNextClass} ${e.slidePrevClass} ${e.slideDuplicateActiveClass} ${e.slideDuplicateNextClass} ${e.slideDuplicatePrevClass}`);let s;o?s=r.$wrapperEl.find(`.${e.slideClass}[data-swiper-slide-index="${a}"]`):s=t.eq(a),s.addClass(e.slideActiveClass),e.loop&&(s.hasClass(e.slideDuplicateClass)?n.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${i}"]`).addClass(e.slideDuplicateActiveClass):n.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${i}"]`).addClass(e.slideDuplicateActiveClass));let l=s.nextAll(`.${e.slideClass}`).eq(0).addClass(e.slideNextClass);e.loop&&l.length===0&&(l=t.eq(0),l.addClass(e.slideNextClass));let u=s.prevAll(`.${e.slideClass}`).eq(0).addClass(e.slidePrevClass);e.loop&&u.length===0&&(u=t.eq(-1),u.addClass(e.slidePrevClass)),e.loop&&(l.hasClass(e.slideDuplicateClass)?n.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicateNextClass):n.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicateNextClass),u.hasClass(e.slideDuplicateClass)?n.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicatePrevClass):n.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicatePrevClass)),r.emitSlidesClasses()}function CV(r){const t=this,e=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:n,snapGrid:a,params:i,activeIndex:o,realIndex:s,snapIndex:l}=t;let u=r,f;if(typeof u>"u"){for(let h=0;h<n.length;h+=1)typeof n[h+1]<"u"?e>=n[h]&&e<n[h+1]-(n[h+1]-n[h])/2?u=h:e>=n[h]&&e<n[h+1]&&(u=h+1):e>=n[h]&&(u=h);i.normalizeSlideIndex&&(u<0||typeof u>"u")&&(u=0)}if(a.indexOf(e)>=0)f=a.indexOf(e);else{const h=Math.min(i.slidesPerGroupSkip,u);f=h+Math.floor((u-h)/i.slidesPerGroup)}if(f>=a.length&&(f=a.length-1),u===o){f!==l&&(t.snapIndex=f,t.emit("snapIndexChange"));return}const c=parseInt(t.slides.eq(u).attr("data-swiper-slide-index")||u,10);Object.assign(t,{snapIndex:f,realIndex:c,previousIndex:o,activeIndex:u}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),s!==c&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function MV(r){const t=this,e=t.params,n=le(r).closest(`.${e.slideClass}`)[0];let a=!1,i;if(n){for(let o=0;o<t.slides.length;o+=1)if(t.slides[o]===n){a=!0,i=o;break}}if(n&&a)t.clickedSlide=n,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(le(n).attr("data-swiper-slide-index"),10):t.clickedIndex=i;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}e.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const DV={updateSize:_V,updateSlides:SV,updateAutoHeight:xV,updateSlidesOffset:bV,updateSlidesProgress:wV,updateProgress:TV,updateSlidesClasses:AV,updateActiveIndex:CV,updateClickedSlide:MV};function IV(r=this.isHorizontal()?"x":"y"){const t=this,{params:e,rtlTranslate:n,translate:a,$wrapperEl:i}=t;if(e.virtualTranslate)return n?-a:a;if(e.cssMode)return a;let o=uV(i[0],r);return n&&(o=-o),o||0}function LV(r,t){const e=this,{rtlTranslate:n,params:a,$wrapperEl:i,wrapperEl:o,progress:s}=e;let l=0,u=0;const f=0;e.isHorizontal()?l=n?-r:r:u=r,a.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),a.cssMode?o[e.isHorizontal()?"scrollLeft":"scrollTop"]=e.isHorizontal()?-l:-u:a.virtualTranslate||i.transform(`translate3d(${l}px, ${u}px, ${f}px)`),e.previousTranslate=e.translate,e.translate=e.isHorizontal()?l:u;let c;const h=e.maxTranslate()-e.minTranslate();h===0?c=0:c=(r-e.minTranslate())/h,c!==s&&e.updateProgress(r),e.emit("setTranslate",e.translate,t)}function PV(){return-this.snapGrid[0]}function EV(){return-this.snapGrid[this.snapGrid.length-1]}function RV(r=0,t=this.params.speed,e=!0,n=!0,a){const i=this,{params:o,wrapperEl:s}=i;if(i.animating&&o.preventInteractionOnTransition)return!1;const l=i.minTranslate(),u=i.maxTranslate();let f;if(n&&r>l?f=l:n&&r<u?f=u:f=r,i.updateProgress(f),o.cssMode){const c=i.isHorizontal();if(t===0)s[c?"scrollLeft":"scrollTop"]=-f;else{if(!i.support.smoothScroll)return KC({swiper:i,targetPosition:-f,side:c?"left":"top"}),!0;s.scrollTo({[c?"left":"top"]:-f,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(f),e&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(f),e&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(h){!i||i.destroyed||h.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,e&&i.emit("transitionEnd"))}),i.$wrapperEl[0].addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onTranslateToWrapperTransitionEnd))),!0}const kV={getTranslate:IV,setTranslate:LV,minTranslate:PV,maxTranslate:EV,translateTo:RV};function OV(r,t){const e=this;e.params.cssMode||e.$wrapperEl.transition(r),e.emit("setTransition",r,t)}function JC({swiper:r,runCallbacks:t,direction:e,step:n}){const{activeIndex:a,previousIndex:i}=r;let o=e;if(o||(a>i?o="next":a<i?o="prev":o="reset"),r.emit(`transition${n}`),t&&a!==i){if(o==="reset"){r.emit(`slideResetTransition${n}`);return}r.emit(`slideChangeTransition${n}`),o==="next"?r.emit(`slideNextTransition${n}`):r.emit(`slidePrevTransition${n}`)}}function NV(r=!0,t){const e=this,{params:n}=e;n.cssMode||(n.autoHeight&&e.updateAutoHeight(),JC({swiper:e,runCallbacks:r,direction:t,step:"Start"}))}function BV(r=!0,t){const e=this,{params:n}=e;e.animating=!1,!n.cssMode&&(e.setTransition(0),JC({swiper:e,runCallbacks:r,direction:t,step:"End"}))}const VV={setTransition:OV,transitionStart:NV,transitionEnd:BV};function zV(r=0,t=this.params.speed,e=!0,n,a){if(typeof r!="number"&&typeof r!="string")throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof r}] given.`);if(typeof r=="string"){const _=parseInt(r,10);if(!isFinite(_))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${r}] given.`);r=_}const i=this;let o=r;o<0&&(o=0);const{params:s,snapGrid:l,slidesGrid:u,previousIndex:f,activeIndex:c,rtlTranslate:h,wrapperEl:v,enabled:d}=i;if(i.animating&&s.preventInteractionOnTransition||!d&&!n&&!a)return!1;const p=Math.min(i.params.slidesPerGroupSkip,o);let g=p+Math.floor((o-p)/i.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const y=-l[g];if(s.normalizeSlideIndex)for(let _=0;_<u.length;_+=1){const S=-Math.floor(y*100),b=Math.floor(u[_]*100),x=Math.floor(u[_+1]*100);typeof u[_+1]<"u"?S>=b&&S<x-(x-b)/2?o=_:S>=b&&S<x&&(o=_+1):S>=b&&(o=_)}if(i.initialized&&o!==c&&(!i.allowSlideNext&&y<i.translate&&y<i.minTranslate()||!i.allowSlidePrev&&y>i.translate&&y>i.maxTranslate()&&(c||0)!==o))return!1;o!==(f||0)&&e&&i.emit("beforeSlideChangeStart"),i.updateProgress(y);let m;if(o>c?m="next":o<c?m="prev":m="reset",h&&-y===i.translate||!h&&y===i.translate)return i.updateActiveIndex(o),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),s.effect!=="slide"&&i.setTranslate(y),m!=="reset"&&(i.transitionStart(e,m),i.transitionEnd(e,m)),!1;if(s.cssMode){const _=i.isHorizontal(),S=h?y:-y;if(t===0){const b=i.virtual&&i.params.virtual.enabled;b&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),v[_?"scrollLeft":"scrollTop"]=S,b&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._swiperImmediateVirtual=!1})}else{if(!i.support.smoothScroll)return KC({swiper:i,targetPosition:S,side:_?"left":"top"}),!0;v.scrollTo({[_?"left":"top"]:S,behavior:"smooth"})}return!0}return i.setTransition(t),i.setTranslate(y),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,n),i.transitionStart(e,m),t===0?i.transitionEnd(e,m):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(S){!i||i.destroyed||S.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(e,m))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd)),!0}function GV(r=0,t=this.params.speed,e=!0,n){if(typeof r=="string"){const o=parseInt(r,10);if(!isFinite(o))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${r}] given.`);r=o}const a=this;let i=r;return a.params.loop&&(i+=a.loopedSlides),a.slideTo(i,t,e,n)}function FV(r=this.params.speed,t=!0,e){const n=this,{animating:a,enabled:i,params:o}=n;if(!i)return n;let s=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(s=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<o.slidesPerGroupSkip?1:s;if(o.loop){if(a&&o.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return o.rewind&&n.isEnd?n.slideTo(0,r,t,e):n.slideTo(n.activeIndex+l,r,t,e)}function HV(r=this.params.speed,t=!0,e){const n=this,{params:a,animating:i,snapGrid:o,slidesGrid:s,rtlTranslate:l,enabled:u}=n;if(!u)return n;if(a.loop){if(i&&a.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}const f=l?n.translate:-n.translate;function c(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const h=c(f),v=o.map(g=>c(g));let d=o[v.indexOf(h)-1];if(typeof d>"u"&&a.cssMode){let g;o.forEach((y,m)=>{h>=y&&(g=m)}),typeof g<"u"&&(d=o[g>0?g-1:g])}let p=0;if(typeof d<"u"&&(p=s.indexOf(d),p<0&&(p=n.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(p=p-n.slidesPerViewDynamic("previous",!0)+1,p=Math.max(p,0))),a.rewind&&n.isBeginning){const g=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(g,r,t,e)}return n.slideTo(p,r,t,e)}function WV(r=this.params.speed,t=!0,e){const n=this;return n.slideTo(n.activeIndex,r,t,e)}function UV(r=this.params.speed,t=!0,e,n=.5){const a=this;let i=a.activeIndex;const o=Math.min(a.params.slidesPerGroupSkip,i),s=o+Math.floor((i-o)/a.params.slidesPerGroup),l=a.rtlTranslate?a.translate:-a.translate;if(l>=a.snapGrid[s]){const u=a.snapGrid[s],f=a.snapGrid[s+1];l-u>(f-u)*n&&(i+=a.params.slidesPerGroup)}else{const u=a.snapGrid[s-1],f=a.snapGrid[s];l-u<=(f-u)*n&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,r,t,e)}function $V(){const r=this,{params:t,$wrapperEl:e}=r,n=t.slidesPerView==="auto"?r.slidesPerViewDynamic():t.slidesPerView;let a=r.clickedIndex,i;if(t.loop){if(r.animating)return;i=parseInt(le(r.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?a<r.loopedSlides-n/2||a>r.slides.length-r.loopedSlides+n/2?(r.loopFix(),a=e.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),qp(()=>{r.slideTo(a)})):r.slideTo(a):a>r.slides.length-n?(r.loopFix(),a=e.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),qp(()=>{r.slideTo(a)})):r.slideTo(a)}else r.slideTo(a)}const YV={slideTo:zV,slideToLoop:GV,slideNext:FV,slidePrev:HV,slideReset:WV,slideToClosest:UV,slideToClickedSlide:$V};function XV(){const r=this,t=or(),{params:e,$wrapperEl:n}=r,a=n.children().length>0?le(n.children()[0].parentNode):n;a.children(`.${e.slideClass}.${e.slideDuplicateClass}`).remove();let i=a.children(`.${e.slideClass}`);if(e.loopFillGroupWithBlank){const l=e.slidesPerGroup-i.length%e.slidesPerGroup;if(l!==e.slidesPerGroup){for(let u=0;u<l;u+=1){const f=le(t.createElement("div")).addClass(`${e.slideClass} ${e.slideBlankClass}`);a.append(f)}i=a.children(`.${e.slideClass}`)}}e.slidesPerView==="auto"&&!e.loopedSlides&&(e.loopedSlides=i.length),r.loopedSlides=Math.ceil(parseFloat(e.loopedSlides||e.slidesPerView,10)),r.loopedSlides+=e.loopAdditionalSlides,r.loopedSlides>i.length&&r.params.loopedSlidesLimit&&(r.loopedSlides=i.length);const o=[],s=[];i.each((l,u)=>{le(l).attr("data-swiper-slide-index",u)});for(let l=0;l<r.loopedSlides;l+=1){const u=l-Math.floor(l/i.length)*i.length;s.push(i.eq(u)[0]),o.unshift(i.eq(i.length-u-1)[0])}for(let l=0;l<s.length;l+=1)a.append(le(s[l].cloneNode(!0)).addClass(e.slideDuplicateClass));for(let l=o.length-1;l>=0;l-=1)a.prepend(le(o[l].cloneNode(!0)).addClass(e.slideDuplicateClass))}function ZV(){const r=this;r.emit("beforeLoopFix");const{activeIndex:t,slides:e,loopedSlides:n,allowSlidePrev:a,allowSlideNext:i,snapGrid:o,rtlTranslate:s}=r;let l;r.allowSlidePrev=!0,r.allowSlideNext=!0;const f=-o[t]-r.getTranslate();t<n?(l=e.length-n*3+t,l+=n,r.slideTo(l,0,!1,!0)&&f!==0&&r.setTranslate((s?-r.translate:r.translate)-f)):t>=e.length-n&&(l=-e.length+t+n,l+=n,r.slideTo(l,0,!1,!0)&&f!==0&&r.setTranslate((s?-r.translate:r.translate)-f)),r.allowSlidePrev=a,r.allowSlideNext=i,r.emit("loopFix")}function qV(){const r=this,{$wrapperEl:t,params:e,slides:n}=r;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}const jV={loopCreate:XV,loopFix:ZV,loopDestroy:qV};function KV(r){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const e=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;e.style.cursor="move",e.style.cursor=r?"grabbing":"grab"}function QV(){const r=this;r.support.touch||r.params.watchOverflow&&r.isLocked||r.params.cssMode||(r[r.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const JV={setGrabCursor:KV,unsetGrabCursor:QV};function e3(r,t=this){function e(n){if(!n||n===or()||n===St())return null;n.assignedSlot&&(n=n.assignedSlot);const a=n.closest(r);return!a&&!n.getRootNode?null:a||e(n.getRootNode().host)}return e(t)}function t3(r){const t=this,e=or(),n=St(),a=t.touchEventsData,{params:i,touches:o,enabled:s}=t;if(!s||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let l=r;l.originalEvent&&(l=l.originalEvent);let u=le(l.target);if(i.touchEventsTarget==="wrapper"&&!u.closest(t.wrapperEl).length||(a.isTouchEvent=l.type==="touchstart",!a.isTouchEvent&&"which"in l&&l.which===3)||!a.isTouchEvent&&"button"in l&&l.button>0||a.isTouched&&a.isMoved)return;const f=!!i.noSwipingClass&&i.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;f&&l.target&&l.target.shadowRoot&&c&&(u=le(c[0]));const h=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,v=!!(l.target&&l.target.shadowRoot);if(i.noSwiping&&(v?e3(h,u[0]):u.closest(h)[0])){t.allowClick=!0;return}if(i.swipeHandler&&!u.closest(i.swipeHandler)[0])return;o.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,o.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const d=o.currentX,p=o.currentY,g=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,y=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(g&&(d<=y||d>=n.innerWidth-y))if(g==="prevent")r.preventDefault();else return;if(Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=d,o.startY=p,a.touchStartTime=Ll(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1),l.type!=="touchstart"){let m=!0;u.is(a.focusableElements)&&(m=!1,u[0].nodeName==="SELECT"&&(a.isTouched=!1)),e.activeElement&&le(e.activeElement).is(a.focusableElements)&&e.activeElement!==u[0]&&e.activeElement.blur();const _=m&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||_)&&!u[0].isContentEditable&&l.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function r3(r){const t=or(),e=this,n=e.touchEventsData,{params:a,touches:i,rtlTranslate:o,enabled:s}=e;if(!s)return;let l=r;if(l.originalEvent&&(l=l.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&e.emit("touchMoveOpposite",l);return}if(n.isTouchEvent&&l.type!=="touchmove")return;const u=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),f=l.type==="touchmove"?u.pageX:l.pageX,c=l.type==="touchmove"?u.pageY:l.pageY;if(l.preventedByNestedSwiper){i.startX=f,i.startY=c;return}if(!e.allowTouchMove){le(l.target).is(n.focusableElements)||(e.allowClick=!1),n.isTouched&&(Object.assign(i,{startX:f,startY:c,currentX:f,currentY:c}),n.touchStartTime=Ll());return}if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop){if(e.isVertical()){if(c<i.startY&&e.translate<=e.maxTranslate()||c>i.startY&&e.translate>=e.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(f<i.startX&&e.translate<=e.maxTranslate()||f>i.startX&&e.translate>=e.minTranslate())return}if(n.isTouchEvent&&t.activeElement&&l.target===t.activeElement&&le(l.target).is(n.focusableElements)){n.isMoved=!0,e.allowClick=!1;return}if(n.allowTouchCallbacks&&e.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;i.currentX=f,i.currentY=c;const h=i.currentX-i.startX,v=i.currentY-i.startY;if(e.params.threshold&&Math.sqrt(h**2+v**2)<e.params.threshold)return;if(typeof n.isScrolling>"u"){let y;e.isHorizontal()&&i.currentY===i.startY||e.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:h*h+v*v>=25&&(y=Math.atan2(Math.abs(v),Math.abs(h))*180/Math.PI,n.isScrolling=e.isHorizontal()?y>a.touchAngle:90-y>a.touchAngle)}if(n.isScrolling&&e.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;e.allowClick=!1,!a.cssMode&&l.cancelable&&l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation(),n.isMoved||(a.loop&&!a.cssMode&&e.loopFix(),n.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,a.grabCursor&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!0),e.emit("sliderFirstMove",l)),e.emit("sliderMove",l),n.isMoved=!0;let d=e.isHorizontal()?h:v;i.diff=d,d*=a.touchRatio,o&&(d=-d),e.swipeDirection=d>0?"prev":"next",n.currentTranslate=d+n.startTranslate;let p=!0,g=a.resistanceRatio;if(a.touchReleaseOnEdges&&(g=0),d>0&&n.currentTranslate>e.minTranslate()?(p=!1,a.resistance&&(n.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+n.startTranslate+d)**g)):d<0&&n.currentTranslate<e.maxTranslate()&&(p=!1,a.resistance&&(n.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-n.startTranslate-d)**g)),p&&(l.preventedByNestedSwiper=!0),!e.allowSlideNext&&e.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!e.allowSlidePrev&&e.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!e.allowSlidePrev&&!e.allowSlideNext&&(n.currentTranslate=n.startTranslate),a.threshold>0)if(Math.abs(d)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=e.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&e.freeMode||a.watchSlidesProgress)&&(e.updateActiveIndex(),e.updateSlidesClasses()),e.params.freeMode&&a.freeMode.enabled&&e.freeMode&&e.freeMode.onTouchMove(),e.updateProgress(n.currentTranslate),e.setTranslate(n.currentTranslate))}function n3(r){const t=this,e=t.touchEventsData,{params:n,touches:a,rtlTranslate:i,slidesGrid:o,enabled:s}=t;if(!s)return;let l=r;if(l.originalEvent&&(l=l.originalEvent),e.allowTouchCallbacks&&t.emit("touchEnd",l),e.allowTouchCallbacks=!1,!e.isTouched){e.isMoved&&n.grabCursor&&t.setGrabCursor(!1),e.isMoved=!1,e.startMoving=!1;return}n.grabCursor&&e.isMoved&&e.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=Ll(),f=u-e.touchStartTime;if(t.allowClick){const m=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(m&&m[0]||l.target),t.emit("tap click",l),f<300&&u-e.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(e.lastClickTime=Ll(),qp(()=>{t.destroyed||(t.allowClick=!0)}),!e.isTouched||!e.isMoved||!t.swipeDirection||a.diff===0||e.currentTranslate===e.startTranslate){e.isTouched=!1,e.isMoved=!1,e.startMoving=!1;return}e.isTouched=!1,e.isMoved=!1,e.startMoving=!1;let c;if(n.followFinger?c=i?t.translate:-t.translate:c=-e.currentTranslate,n.cssMode)return;if(t.params.freeMode&&n.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:c});return}let h=0,v=t.slidesSizesGrid[0];for(let m=0;m<o.length;m+=m<n.slidesPerGroupSkip?1:n.slidesPerGroup){const _=m<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;typeof o[m+_]<"u"?c>=o[m]&&c<o[m+_]&&(h=m,v=o[m+_]-o[m]):c>=o[m]&&(h=m,v=o[o.length-1]-o[o.length-2])}let d=null,p=null;n.rewind&&(t.isBeginning?p=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(d=0));const g=(c-o[h])/v,y=h<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(f>n.longSwipesMs){if(!n.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(g>=n.longSwipesRatio?t.slideTo(n.rewind&&t.isEnd?d:h+y):t.slideTo(h)),t.swipeDirection==="prev"&&(g>1-n.longSwipesRatio?t.slideTo(h+y):p!==null&&g<0&&Math.abs(g)>n.longSwipesRatio?t.slideTo(p):t.slideTo(h))}else{if(!n.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(h+y):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(d!==null?d:h+y),t.swipeDirection==="prev"&&t.slideTo(p!==null?p:h))}}function $_(){const r=this,{params:t,el:e}=r;if(e&&e.offsetWidth===0)return;t.breakpoints&&r.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:a,snapGrid:i}=r;r.allowSlideNext=!0,r.allowSlidePrev=!0,r.updateSize(),r.updateSlides(),r.updateSlidesClasses(),(t.slidesPerView==="auto"||t.slidesPerView>1)&&r.isEnd&&!r.isBeginning&&!r.params.centeredSlides?r.slideTo(r.slides.length-1,0,!1,!0):r.slideTo(r.activeIndex,0,!1,!0),r.autoplay&&r.autoplay.running&&r.autoplay.paused&&r.autoplay.run(),r.allowSlidePrev=a,r.allowSlideNext=n,r.params.watchOverflow&&i!==r.snapGrid&&r.checkOverflow()}function a3(r){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&r.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(r.stopPropagation(),r.stopImmediatePropagation())))}function i3(){const r=this,{wrapperEl:t,rtlTranslate:e,enabled:n}=r;if(!n)return;r.previousTranslate=r.translate,r.isHorizontal()?r.translate=-t.scrollLeft:r.translate=-t.scrollTop,r.translate===0&&(r.translate=0),r.updateActiveIndex(),r.updateSlidesClasses();let a;const i=r.maxTranslate()-r.minTranslate();i===0?a=0:a=(r.translate-r.minTranslate())/i,a!==r.progress&&r.updateProgress(e?-r.translate:r.translate),r.emit("setTranslate",r.translate,!1)}let Y_=!1;function o3(){}const eM=(r,t)=>{const e=or(),{params:n,touchEvents:a,el:i,wrapperEl:o,device:s,support:l}=r,u=!!n.nested,f=t==="on"?"addEventListener":"removeEventListener",c=t;if(!l.touch)i[f](a.start,r.onTouchStart,!1),e[f](a.move,r.onTouchMove,u),e[f](a.end,r.onTouchEnd,!1);else{const h=a.start==="touchstart"&&l.passiveListener&&n.passiveListeners?{passive:!0,capture:!1}:!1;i[f](a.start,r.onTouchStart,h),i[f](a.move,r.onTouchMove,l.passiveListener?{passive:!1,capture:u}:u),i[f](a.end,r.onTouchEnd,h),a.cancel&&i[f](a.cancel,r.onTouchEnd,h)}(n.preventClicks||n.preventClicksPropagation)&&i[f]("click",r.onClick,!0),n.cssMode&&o[f]("scroll",r.onScroll),n.updateOnWindowResize?r[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",$_,!0):r[c]("observerUpdate",$_,!0)};function s3(){const r=this,t=or(),{params:e,support:n}=r;r.onTouchStart=t3.bind(r),r.onTouchMove=r3.bind(r),r.onTouchEnd=n3.bind(r),e.cssMode&&(r.onScroll=i3.bind(r)),r.onClick=a3.bind(r),n.touch&&!Y_&&(t.addEventListener("touchstart",o3),Y_=!0),eM(r,"on")}function l3(){eM(this,"off")}const u3={attachEvents:s3,detachEvents:l3},X_=(r,t)=>r.grid&&t.grid&&t.grid.rows>1;function f3(){const r=this,{activeIndex:t,initialized:e,loopedSlides:n=0,params:a,$el:i}=r,o=a.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const s=r.getBreakpoint(o,r.params.breakpointsBase,r.el);if(!s||r.currentBreakpoint===s)return;const u=(s in o?o[s]:void 0)||r.originalParams,f=X_(r,a),c=X_(r,u),h=a.enabled;f&&!c?(i.removeClass(`${a.containerModifierClass}grid ${a.containerModifierClass}grid-column`),r.emitContainerClasses()):!f&&c&&(i.addClass(`${a.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&a.grid.fill==="column")&&i.addClass(`${a.containerModifierClass}grid-column`),r.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(g=>{const y=a[g]&&a[g].enabled,m=u[g]&&u[g].enabled;y&&!m&&r[g].disable(),!y&&m&&r[g].enable()});const v=u.direction&&u.direction!==a.direction,d=a.loop&&(u.slidesPerView!==a.slidesPerView||v);v&&e&&r.changeDirection(),tr(r.params,u);const p=r.params.enabled;Object.assign(r,{allowTouchMove:r.params.allowTouchMove,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev}),h&&!p?r.disable():!h&&p&&r.enable(),r.currentBreakpoint=s,r.emit("_beforeBreakpoint",u),d&&e&&(r.loopDestroy(),r.loopCreate(),r.updateSlides(),r.slideTo(t-n+r.loopedSlides,0,!1)),r.emit("breakpoint",u)}function c3(r,t="window",e){if(!r||t==="container"&&!e)return;let n=!1;const a=St(),i=t==="window"?a.innerHeight:e.clientHeight,o=Object.keys(r).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const l=parseFloat(s.substr(1));return{value:i*l,point:s}}return{value:s,point:s}});o.sort((s,l)=>parseInt(s.value,10)-parseInt(l.value,10));for(let s=0;s<o.length;s+=1){const{point:l,value:u}=o[s];t==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(n=l):u<=e.clientWidth&&(n=l)}return n||"max"}const h3={setBreakpoint:f3,getBreakpoint:c3};function v3(r,t){const e=[];return r.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(a=>{n[a]&&e.push(t+a)}):typeof n=="string"&&e.push(t+n)}),e}function d3(){const r=this,{classNames:t,params:e,rtl:n,$el:a,device:i,support:o}=r,s=v3(["initialized",e.direction,{"pointer-events":!o.touch},{"free-mode":r.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:n},{grid:e.grid&&e.grid.rows>1},{"grid-column":e.grid&&e.grid.rows>1&&e.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":e.cssMode},{centered:e.cssMode&&e.centeredSlides},{"watch-progress":e.watchSlidesProgress}],e.containerModifierClass);t.push(...s),a.addClass([...t].join(" ")),r.emitContainerClasses()}function p3(){const r=this,{$el:t,classNames:e}=r;t.removeClass(e.join(" ")),r.emitContainerClasses()}const g3={addClasses:d3,removeClasses:p3};function y3(r,t,e,n,a,i){const o=St();let s;function l(){i&&i()}!le(r).parent("picture")[0]&&(!r.complete||!a)&&t?(s=new o.Image,s.onload=l,s.onerror=l,n&&(s.sizes=n),e&&(s.srcset=e),t&&(s.src=t)):l()}function m3(){const r=this;r.imagesToLoad=r.$el.find("img");function t(){typeof r>"u"||r===null||!r||r.destroyed||(r.imagesLoaded!==void 0&&(r.imagesLoaded+=1),r.imagesLoaded===r.imagesToLoad.length&&(r.params.updateOnImagesReady&&r.update(),r.emit("imagesReady")))}for(let e=0;e<r.imagesToLoad.length;e+=1){const n=r.imagesToLoad[e];r.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,t)}}const _3={loadImage:y3,preloadImages:m3};function S3(){const r=this,{isLocked:t,params:e}=r,{slidesOffsetBefore:n}=e;if(n){const a=r.slides.length-1,i=r.slidesGrid[a]+r.slidesSizesGrid[a]+n*2;r.isLocked=r.size>i}else r.isLocked=r.snapGrid.length===1;e.allowSlideNext===!0&&(r.allowSlideNext=!r.isLocked),e.allowSlidePrev===!0&&(r.allowSlidePrev=!r.isLocked),t&&t!==r.isLocked&&(r.isEnd=!1),t!==r.isLocked&&r.emit(r.isLocked?"lock":"unlock")}const x3={checkOverflow:S3},Z_={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function b3(r,t){return function(n={}){const a=Object.keys(n)[0],i=n[a];if(typeof i!="object"||i===null){tr(t,n);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&r[a]===!0&&(r[a]={auto:!0}),!(a in r&&"enabled"in i)){tr(t,n);return}r[a]===!0&&(r[a]={enabled:!0}),typeof r[a]=="object"&&!("enabled"in r[a])&&(r[a].enabled=!0),r[a]||(r[a]={enabled:!1}),tr(t,n)}}const yv={eventsEmitter:mV,update:DV,translate:kV,transition:VV,slide:YV,loop:jV,grabCursor:JV,events:u3,breakpoints:h3,checkOverflow:x3,classes:g3,images:_3},mv={};let Wo=class Cn{constructor(...t){let e,n;if(t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?n=t[0]:[e,n]=t,n||(n={}),n=tr({},n),e&&!n.el&&(n.el=e),n.el&&le(n.el).length>1){const s=[];return le(n.el).each(l=>{const u=tr({},n,{el:l});s.push(new Cn(u))}),s}const a=this;a.__swiper__=!0,a.support=QC(),a.device=vV({userAgent:n.userAgent}),a.browser=pV(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const i={};a.modules.forEach(s=>{s({swiper:a,extendParams:b3(n,i),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const o=tr({},Z_,i);return a.params=tr({},o,mv,n),a.originalParams=tr({},a.params),a.passedParams=tr({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(s=>{a.on(s,a.params.on[s])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=le,Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:le(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:function(){const l=["touchstart","touchmove","touchend","touchcancel"],u=["pointerdown","pointermove","pointerup"];return a.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},a.touchEventsDesktop={start:u[0],move:u[1],end:u[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:Ll(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const n=this;t=Math.min(Math.max(t,0),1);const a=n.minTranslate(),o=(n.maxTranslate()-a)*t+a;n.translateTo(o,typeof e>"u"?0:e),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(e.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.each(n=>{const a=t.getSlideClasses(n);e.push({slideEl:n,classNames:a}),t.emit("_slideClass",n,a)}),t.emit("_slideClasses",e)}slidesPerViewDynamic(t="current",e=!1){const n=this,{params:a,slides:i,slidesGrid:o,slidesSizesGrid:s,size:l,activeIndex:u}=n;let f=1;if(a.centeredSlides){let c=i[u].swiperSlideSize,h;for(let v=u+1;v<i.length;v+=1)i[v]&&!h&&(c+=i[v].swiperSlideSize,f+=1,c>l&&(h=!0));for(let v=u-1;v>=0;v-=1)i[v]&&!h&&(c+=i[v].swiperSlideSize,f+=1,c>l&&(h=!0))}else if(t==="current")for(let c=u+1;c<i.length;c+=1)(e?o[c]+s[c]-o[u]<l:o[c]-o[u]<l)&&(f+=1);else for(let c=u-1;c>=0;c-=1)o[u]-o[c]<l&&(f+=1);return f}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:n}=t;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const o=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let i;t.params.freeMode&&t.params.freeMode.enabled?(a(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?i=t.slideTo(t.slides.length-1,0,!1,!0):i=t.slideTo(t.activeIndex,0,!1,!0),i||a()),n.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const n=this,a=n.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(n.$el.removeClass(`${n.params.containerModifierClass}${a}`).addClass(`${n.params.containerModifierClass}${t}`),n.emitContainerClasses(),n.params.direction=t,n.slides.each(i=>{t==="vertical"?i.style.width="":i.style.height=""}),n.emit("changeDirection"),e&&n.update()),n}changeLanguageDirection(t){const e=this;e.rtl&&t==="rtl"||!e.rtl&&t==="ltr"||(e.rtl=t==="rtl",e.rtlTranslate=e.params.direction==="horizontal"&&e.rtl,e.rtl?(e.$el.addClass(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.$el.removeClass(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;const n=le(t||e.params.el);if(t=n[0],!t)return!1;t.swiper=e;const a=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const s=le(t.shadowRoot.querySelector(a()));return s.children=l=>n.children(l),s}return n.children?n.children(a()):le(n).children(a())})();if(o.length===0&&e.params.createElements){const l=or().createElement("div");o=le(l),l.className=e.params.wrapperClass,n.append(l),n.children(`.${e.params.slideClass}`).each(u=>{o.append(u)})}return Object.assign(e,{$el:n,el:t,$wrapperEl:o,wrapperEl:o[0],mounted:!0,rtl:t.dir.toLowerCase()==="rtl"||n.css("direction")==="rtl",rtlTranslate:e.params.direction==="horizontal"&&(t.dir.toLowerCase()==="rtl"||n.css("direction")==="rtl"),wrongRTL:o.css("display")==="-webkit-box"}),!0}init(t){const e=this;return e.initialized||e.mount(t)===!1||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e}destroy(t=!0,e=!0){const n=this,{params:a,$el:i,$wrapperEl:o,slides:s}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),a.loop&&n.loopDestroy(),e&&(n.removeClasses(),i.removeAttr("style"),o.removeAttr("style"),s&&s.length&&s.removeClass([a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),t!==!1&&(n.$el[0].swiper=null,sV(n)),n.destroyed=!0),null}static extendDefaults(t){tr(mv,t)}static get extendedDefaults(){return mv}static get defaults(){return Z_}static installModule(t){Cn.prototype.__modules__||(Cn.prototype.__modules__=[]);const e=Cn.prototype.__modules__;typeof t=="function"&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach(e=>Cn.installModule(e)),Cn):(Cn.installModule(t),Cn)}};Object.keys(yv).forEach(r=>{Object.keys(yv[r]).forEach(t=>{Wo.prototype[t]=yv[r][t]})});Wo.use([gV,yV]);function Vi(r){return typeof r=="object"&&r!==null&&r.constructor&&Object.prototype.toString.call(r).slice(8,-1)==="Object"}function ua(r,t){const e=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>e.indexOf(n)<0).forEach(n=>{typeof r[n]>"u"?r[n]=t[n]:Vi(t[n])&&Vi(r[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?r[n]=t[n]:ua(r[n],t[n]):r[n]=t[n]})}function tM(r={}){return r.navigation&&typeof r.navigation.nextEl>"u"&&typeof r.navigation.prevEl>"u"}function rM(r={}){return r.pagination&&typeof r.pagination.el>"u"}function nM(r={}){return r.scrollbar&&typeof r.scrollbar.el>"u"}function aM(r=""){const t=r.split(" ").map(n=>n.trim()).filter(n=>!!n),e=[];return t.forEach(n=>{e.indexOf(n)<0&&e.push(n)}),e.join(" ")}const iM=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function q_(r={},t=!0){const e={on:{}},n={},a={};ua(e,Wo.defaults),ua(e,Wo.extendedDefaults),e._emitClasses=!0,e.init=!1;const i={},o=iM.map(l=>l.replace(/_/,"")),s=Object.assign({},r);return Object.keys(s).forEach(l=>{typeof r[l]>"u"||(o.indexOf(l)>=0?Vi(r[l])?(e[l]={},a[l]={},ua(e[l],r[l]),ua(a[l],r[l])):(e[l]=r[l],a[l]=r[l]):l.search(/on[A-Z]/)===0&&typeof r[l]=="function"?t?n[`${l[2].toLowerCase()}${l.substr(3)}`]=r[l]:e.on[`${l[2].toLowerCase()}${l.substr(3)}`]=r[l]:i[l]=r[l])}),["navigation","pagination","scrollbar"].forEach(l=>{e[l]===!0&&(e[l]={}),e[l]===!1&&delete e[l]}),{params:e,passedParams:a,rest:i,events:n}}function w3({el:r,nextEl:t,prevEl:e,paginationEl:n,scrollbarEl:a,swiper:i},o){tM(o)&&t&&e&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=e,i.originalParams.navigation.prevEl=e),rM(o)&&n&&(i.params.pagination.el=n,i.originalParams.pagination.el=n),nM(o)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(r)}const oM=(r,t)=>{let e=t.slidesPerView;if(t.breakpoints){const a=Wo.prototype.getBreakpoint(t.breakpoints),i=a in t.breakpoints?t.breakpoints[a]:void 0;i&&i.slidesPerView&&(e=i.slidesPerView)}let n=Math.ceil(parseFloat(t.loopedSlides||e,10));return n+=t.loopAdditionalSlides,n>r.length&&t.loopedSlidesLimit&&(n=r.length),n};function T3(r,t,e){const n=t.map((l,u)=>(l.props||(l.props={}),l.props.swiperRef=r,l.props["data-swiper-slide-index"]=u,l));function a(l,u,f){return l.props||(l.props={}),Vr(l.type,{...l.props,key:`${l.key}-duplicate-${u}-${f}`,class:`${l.props.className||""} ${e.slideDuplicateClass} ${l.props.class||""}`},l.children)}if(e.loopFillGroupWithBlank){const l=e.slidesPerGroup-n.length%e.slidesPerGroup;if(l!==e.slidesPerGroup)for(let u=0;u<l;u+=1){const f=Vr("div",{class:`${e.slideClass} ${e.slideBlankClass}`});n.push(f)}}e.slidesPerView==="auto"&&!e.loopedSlides&&(e.loopedSlides=n.length);const i=oM(n,e),o=[],s=[];for(let l=0;l<i;l+=1){const u=l-Math.floor(l/n.length)*n.length;s.push(a(n[u],l,"append")),o.unshift(a(n[n.length-u-1],l,"prepend"))}return r.value&&(r.value.loopedSlides=i),[...o,...n,...s]}function A3(r,t,e,n,a){const i=[];if(!t)return i;const o=l=>{i.indexOf(l)<0&&i.push(l)};if(e&&n){const l=n.map(a),u=e.map(a);l.join("")!==u.join("")&&o("children"),n.length!==e.length&&o("children")}return iM.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in r&&l in t)if(Vi(r[l])&&Vi(t[l])){const u=Object.keys(r[l]),f=Object.keys(t[l]);u.length!==f.length?o(l):(u.forEach(c=>{r[l][c]!==t[l][c]&&o(l)}),f.forEach(c=>{r[l][c]!==t[l][c]&&o(l)}))}else r[l]!==t[l]&&o(l)}),i}function _v(r,t,e){r===void 0&&(r={});const n=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},i=(o,s)=>{Array.isArray(o)&&o.forEach(l=>{const u=typeof l.type=="symbol";s==="default"&&(s="container-end"),u&&l.children?i(l.children,"default"):l.type&&(l.type.name==="SwiperSlide"||l.type.name==="AsyncComponentWrapper")?n.push(l):a[s]&&a[s].push(l)})};return Object.keys(r).forEach(o=>{if(typeof r[o]!="function")return;const s=r[o]();i(s,o)}),e.value=t.value,t.value=n,{slides:n,slots:a}}function C3({swiper:r,slides:t,passedParams:e,changedParams:n,nextEl:a,prevEl:i,scrollbarEl:o,paginationEl:s}){const l=n.filter(b=>b!=="children"&&b!=="direction"),{params:u,pagination:f,navigation:c,scrollbar:h,virtual:v,thumbs:d}=r;let p,g,y,m,_;n.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(p=!0),n.includes("controller")&&e.controller&&e.controller.control&&u.controller&&!u.controller.control&&(g=!0),n.includes("pagination")&&e.pagination&&(e.pagination.el||s)&&(u.pagination||u.pagination===!1)&&f&&!f.el&&(y=!0),n.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||o)&&(u.scrollbar||u.scrollbar===!1)&&h&&!h.el&&(m=!0),n.includes("navigation")&&e.navigation&&(e.navigation.prevEl||i)&&(e.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&c&&!c.prevEl&&!c.nextEl&&(_=!0);const S=b=>{r[b]&&(r[b].destroy(),b==="navigation"?(u[b].prevEl=void 0,u[b].nextEl=void 0,r[b].prevEl=void 0,r[b].nextEl=void 0):(u[b].el=void 0,r[b].el=void 0))};l.forEach(b=>{if(Vi(u[b])&&Vi(e[b]))ua(u[b],e[b]);else{const x=e[b];(x===!0||x===!1)&&(b==="navigation"||b==="pagination"||b==="scrollbar")?x===!1&&S(b):u[b]=e[b]}}),l.includes("controller")&&!g&&r.controller&&r.controller.control&&u.controller&&u.controller.control&&(r.controller.control=u.controller.control),n.includes("children")&&t&&v&&u.virtual.enabled?(v.slides=t,v.update(!0)):n.includes("children")&&r.lazy&&r.params.lazy.enabled&&r.lazy.load(),p&&d.init()&&d.update(!0),g&&(r.controller.control=u.controller.control),y&&(s&&(u.pagination.el=s),f.init(),f.render(),f.update()),m&&(o&&(u.scrollbar.el=o),h.init(),h.updateSize(),h.setTranslate()),_&&(a&&(u.navigation.nextEl=a),i&&(u.navigation.prevEl=i),c.init(),c.update()),n.includes("allowSlideNext")&&(r.allowSlideNext=e.allowSlideNext),n.includes("allowSlidePrev")&&(r.allowSlidePrev=e.allowSlidePrev),n.includes("direction")&&r.changeDirection(e.direction,!1),r.update()}function M3(r,t,e){if(!e)return null;const n=r.value.isHorizontal()?{[r.value.rtlTranslate?"right":"left"]:`${e.offset}px`}:{top:`${e.offset}px`};return t.filter((a,i)=>i>=e.from&&i<=e.to).map(a=>(a.props||(a.props={}),a.props.style||(a.props.style={}),a.props.swiperRef=r,a.props.style=n,Vr(a.type,{...a.props},a.children)))}const D3=r=>{!r||r.destroyed||!r.params.virtual||r.params.virtual&&!r.params.virtual.enabled||(r.updateSlides(),r.updateProgress(),r.updateSlidesClasses(),r.lazy&&r.params.lazy.enabled&&r.lazy.load(),r.parallax&&r.params.parallax&&r.params.parallax.enabled&&r.parallax.setTranslate())},sM={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:Number,default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},preloadImages:{type:Boolean,default:void 0},updateOnImagesReady:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopedSlides:{type:Number,default:void 0},loopedSlidesLimit:{type:Boolean,default:!0},loopFillGroupWithBlank:{type:Boolean,default:void 0},loopPreventsSlide:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideDuplicateActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideDuplicateClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slideDuplicateNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},slideDuplicatePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},lazy:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","imagesReady","init","keyPress","lazyImageLoad","lazyImageReady","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(r,t){let{slots:e,emit:n}=t;const{tag:a,wrapperTag:i}=r,o=Ce("swiper"),s=Ce(null),l=Ce(!1),u=Ce(!1),f=Ce(null),c=Ce(null),h=Ce(null),v={value:[]},d={value:[]},p=Ce(null),g=Ce(null),y=Ce(null),m=Ce(null),{params:_,passedParams:S}=q_(r,!1);_v(e,v,d),h.value=S,d.value=v.value;const b=()=>{_v(e,v,d),l.value=!0};if(_.onAny=function(w){for(var T=arguments.length,C=new Array(T>1?T-1:0),A=1;A<T;A++)C[A-1]=arguments[A];n(w,...C)},Object.assign(_.on,{_beforeBreakpoint:b,_containerClasses(w,T){o.value=T}}),c.value=new Wo(_),c.value.loopCreate=()=>{},c.value.loopDestroy=()=>{},_.loop&&(c.value.loopedSlides=oM(v.value,_)),c.value.virtual&&c.value.params.virtual.enabled){c.value.virtual.slides=v.value;const w={cache:!1,slides:v.value,renderExternal:T=>{s.value=T},renderExternalUpdate:!1};ua(c.value.params.virtual,w),ua(c.value.originalParams.virtual,w)}aC(()=>{!u.value&&c.value&&(c.value.emitSlidesClasses(),u.value=!0);const{passedParams:w}=q_(r,!1),T=A3(w,h.value,v.value,d.value,C=>C.props&&C.props.key);h.value=w,(T.length||l.value)&&c.value&&!c.value.destroyed&&C3({swiper:c.value,slides:v.value,passedParams:w,changedParams:T,nextEl:p.value,prevEl:g.value,scrollbarEl:m.value,paginationEl:y.value}),l.value=!1}),Vy("swiper",c),fh(s,()=>{QA(()=>{D3(c.value)})}),Cr(()=>{f.value&&(w3({el:f.value,nextEl:p.value,prevEl:g.value,paginationEl:y.value,scrollbarEl:m.value,swiper:c.value},_),n("swiper",c.value))}),iC(()=>{c.value&&!c.value.destroyed&&c.value.destroy(!0,!1)});function x(w){return _.virtual?M3(c,w,s.value):!_.loop||c.value&&c.value.destroyed?(w.forEach(T=>{T.props||(T.props={}),T.props.swiperRef=c}),w):T3(c,w,_)}return()=>{const{slides:w,slots:T}=_v(e,v,d);return Vr(a,{ref:f,class:aM(o.value)},[T["container-start"],Vr(i,{class:"swiper-wrapper"},[T["wrapper-start"],x(w),T["wrapper-end"]]),tM(r)&&[Vr("div",{ref:g,class:"swiper-button-prev"}),Vr("div",{ref:p,class:"swiper-button-next"})],nM(r)&&Vr("div",{ref:m,class:"swiper-scrollbar"}),rM(r)&&Vr("div",{ref:y,class:"swiper-pagination"}),T["container-end"]])}}},lM={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},zoom:{type:Boolean,default:void 0},virtualIndex:{type:[String,Number],default:void 0}},setup(r,t){let{slots:e}=t,n=!1;const{swiperRef:a}=r,i=Ce(null),o=Ce("swiper-slide");function s(u,f,c){f===i.value&&(o.value=c)}Cr(()=>{!a||!a.value||(a.value.on("_slideClass",s),n=!0)}),IR(()=>{n||!a||!a.value||(a.value.on("_slideClass",s),n=!0)}),aC(()=>{!i.value||!a||!a.value||a.value.destroyed&&o.value!=="swiper-slide"&&(o.value="swiper-slide")}),iC(()=>{!a||!a.value||a.value.off("_slideClass",s)});const l=je(()=>({isActive:o.value.indexOf("swiper-slide-active")>=0||o.value.indexOf("swiper-slide-duplicate-active")>=0,isVisible:o.value.indexOf("swiper-slide-visible")>=0,isDuplicate:o.value.indexOf("swiper-slide-duplicate")>=0,isPrev:o.value.indexOf("swiper-slide-prev")>=0||o.value.indexOf("swiper-slide-duplicate-prev")>=0,isNext:o.value.indexOf("swiper-slide-next")>=0||o.value.indexOf("swiper-slide-duplicate-next")>=0}));return Vy("swiperSlide",l),()=>Vr(r.tag,{class:aM(`${o.value}`),ref:i,"data-swiper-slide-index":r.virtualIndex},r.zoom?Vr("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof r.zoom=="number"?r.zoom:void 0},e.default&&e.default(l.value)):e.default&&e.default(l.value))}};function I3(){return xh({url:"/api/v7/screen/index/info",method:"post"})}/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var jp=function(r,t){return jp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},jp(r,t)};function O(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");jp(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var L3=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),P3=function(){function r(){this.browser=new L3,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),li=new P3;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(li.wxa=!0,li.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?li.worker=!0:typeof navigator>"u"?(li.node=!0,li.svgSupported=!0):E3(navigator.userAgent,li);function E3(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const Pe=li;var rm=12,uM="sans-serif",wa=rm+"px "+uM,R3=20,k3=100,O3="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function N3(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),a=(r.charCodeAt(e)-R3)/k3;t[n]=a}return t}var B3=N3(O3),Ta={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var a=Ta.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==n&&(t=r.font=n||wa),r.measureText(e);e=e||"",n=n||wa;var i=/(\d+)px/.exec(n),o=i&&+i[1]||rm,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=B3[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}},fM=vn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),cM=vn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),ns=Object.prototype.toString,bh=Array.prototype,V3=bh.forEach,z3=bh.filter,nm=bh.slice,G3=bh.map,j_=function(){}.constructor,Ou=j_?j_.prototype:null,am="__proto__",F3=2311;function hM(){return F3++}function im(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function ie(r){if(r==null||typeof r!="object")return r;var t=r,e=ns.call(r);if(e==="[object Array]"){if(!cl(r)){t=[];for(var n=0,a=r.length;n<a;n++)t[n]=ie(r[n])}}else if(cM[e]){if(!cl(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var n=0,a=r.length;n<a;n++)t[n]=r[n]}}}else if(!fM[e]&&!cl(r)&&!Pl(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==am&&(t[o]=ie(r[o]))}return t}function ge(r,t,e){if(!ne(t)||!ne(r))return e?ie(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==am){var a=r[n],i=t[n];ne(i)&&ne(a)&&!z(i)&&!z(a)&&!Pl(i)&&!Pl(a)&&!K_(i)&&!K_(a)&&!cl(i)&&!cl(a)?ge(a,i,e):(e||!(n in r))&&(r[n]=ie(t[n]))}return r}function om(r,t){for(var e=r[0],n=1,a=r.length;n<a;n++)e=ge(e,r[n],t);return e}function B(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==am&&(r[e]=t[e]);return r}function re(r,t,e){for(var n=Te(t),a=0;a<n.length;a++){var i=n[a];(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}return r}function me(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function H3(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function lt(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else re(r,t,e)}function Et(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,t,e){if(r&&t)if(r.forEach&&r.forEach===V3)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function G(r,t,e){if(!r)return[];if(!t)return sm(r);if(r.map&&r.map===G3)return r.map(t,e);for(var n=[],a=0,i=r.length;a<i;a++)n.push(t.call(e,r[a],a,r));return n}function vn(r,t,e,n){if(r&&t){for(var a=0,i=r.length;a<i;a++)e=t.call(n,e,r[a],a,r);return e}}function ze(r,t,e){if(!r)return[];if(!t)return sm(r);if(r.filter&&r.filter===z3)return r.filter(t,e);for(var n=[],a=0,i=r.length;a<i;a++)t.call(e,r[a],a,r)&&n.push(r[a]);return n}function W3(r,t,e){if(r&&t){for(var n=0,a=r.length;n<a;n++)if(t.call(e,r[n],n,r))return r[n]}}function Te(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function U3(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(nm.call(arguments)))}}var X=Ou&&J(Ou.bind)?Ou.call.bind(Ou.bind):U3;function fe(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(nm.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):ns.call(r)==="[object Array]"}function J(r){return typeof r=="function"}function Y(r){return typeof r=="string"}function Kp(r){return ns.call(r)==="[object String]"}function Re(r){return typeof r=="number"}function ne(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function K_(r){return!!fM[ns.call(r)]}function ir(r){return!!cM[ns.call(r)]}function Pl(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function wh(r){return r.colorStops!=null}function $3(r){return r.image!=null}function Y3(r){return ns.call(r)==="[object RegExp]"}function El(r){return r!==r}function mt(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function pe(r,t){return r??t}function cn(r,t,e){return r??t??e}function sm(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return nm.apply(r,t)}function lm(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Ft(r,t){if(!r)throw new Error(t)}function Fr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var vM="__ec_primitive__";function dc(r){r[vM]=!0}function cl(r){return r[vM]}var X3=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Te(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),dM=typeof Map=="function";function Z3(){return dM?new Map:new X3}var q3=function(){function r(t){var e=z(t);this.data=Z3();var n=this;t instanceof r?t.each(a):t&&D(t,a);function a(i,o){e?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,a){t.call(e,n,a)})},r.prototype.keys=function(){var t=this.data.keys();return dM?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function j(r){return new q3(r)}function pc(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var a=r.length,n=0;n<t.length;n++)e[n+a]=t[n];return e}function Th(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&B(e,t),e}function pM(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Z(r,t){return r.hasOwnProperty(t)}function at(){}var Wf=180/Math.PI;/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Qp=function(r,t){return Qp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Qp(r,t)};function Xe(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qp(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Zi(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Bt(r,t){return r[0]=t[0],r[1]=t[1],r}function En(r){return[r[0],r[1]]}function j3(r,t,e){return r[0]=t,r[1]=e,r}function Q_(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Jp(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function _i(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function eg(r){return Math.sqrt(K3(r))}function K3(r){return r[0]*r[0]+r[1]*r[1]}function Uf(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function as(r,t){var e=eg(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function tg(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var fa=tg;function Q3(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Mi=Q3;function $f(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function wt(r,t,e){var n=t[0],a=t[1];return r[0]=e[0]*n+e[2]*a+e[4],r[1]=e[1]*n+e[3]*a+e[5],r}function ca(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function ha(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var ro=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),J3=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ro(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,e.drift(i,o,t),this.handler.dispatchToElement(new ro(e,t),"drag",t.event);var s=this.handler.findHover(n,a,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ro(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new ro(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ro(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ro(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const ez=J3;var tz=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(a=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:e,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=e[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r}();const Ir=tz;var rz=Math.log(2);function rg(r,t,e,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/rz);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&a||(c+=(v%2?-1:1)*r[e][h]*rg(r,t-1,f,u,a|d,i),v++)}return i[o]=c,c}function J_(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},a=rg(e,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*rg(e,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var c=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/c,l[1]=(u*i[3]+f*i[4]+i[5])/c}}}var e1="___zrEVENTSAVED",Sv=[];function nz(r,t,e,n,a){return ng(Sv,t,n,a,!0)&&ng(r,e,Sv[0],Sv[1])}function ng(r,t,e,n,a){if(t.getBoundingClientRect&&Pe.domSupported&&!gM(t)){var i=t[e1]||(t[e1]={}),o=az(t,i),s=iz(o,i,a);if(s)return s(r,e,n),!0}return!1}function az(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function iz(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&i&&h===i[c]&&v===i[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=e?J_(s,o):J_(o,s))}function gM(r){return r.nodeName.toUpperCase()==="CANVAS"}var oz=/([&<>"'])/g,sz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Xt(r){return r==null?"":(r+"").replace(oz,function(t,e){return sz[e]})}var lz=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xv=[],uz=Pe.browser.firefox&&+Pe.browser.version.split(".")[0]<39;function ag(r,t,e,n){return e=e||{},n?t1(r,t,e):uz&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):t1(r,t,e),e}function t1(r,t,e){if(Pe.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(gM(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(ng(xv,r,n,a)){e.zrX=xv[0],e.zrY=xv[1];return}}e.zrX=e.zrY=0}function um(r){return r||window.event}function hr(r,t,e){if(t=um(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&ag(r,o,t,e)}else{ag(r,t,t,e);var i=fz(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&lz.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function fz(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function ig(r,t,e,n){r.addEventListener(t,e,n)}function cz(r,t,e,n){r.removeEventListener(t,e,n)}var Bn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function r1(r){return r.which===2||r.which===3}var hz=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=ag(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in bv)if(bv.hasOwnProperty(e)){var n=bv[e](this._track,t);if(n)return n}},r}();function n1(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function vz(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var bv={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,a=(r[e-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=n1(n)/n1(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=vz(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Mr(){return[1,0,0,1,0,0]}function Ah(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function fm(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Rn(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function dn(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function qi(r,t,e){var n=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*u,r[1]=-n*u+o*f,r[2]=a*f+s*u,r[3]=-a*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function cm(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function is(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-e*s)*l,r):null}function dz(r){var t=Mr();return fm(t,r),t}var pz=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}();const de=pz;var Nu=Math.min,Bu=Math.max,Va=new de,za=new de,Ga=new de,Fa=new de,ws=new de,Ts=new de,gz=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=Nu(t.x,this.x),n=Nu(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Bu(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Bu(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,a=t.height/e.height,i=Mr();return dn(i,i,[-e.x,-e.y]),cm(i,i,[n,a]),dn(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,h=!(i<l||u<a||s<f||c<o);if(e){var v=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-a),y=Math.abs(s-f),m=Math.abs(c-o),_=Math.min(p,g),S=Math.min(y,m);i<l||u<a?_>d&&(d=_,p<g?de.set(Ts,-p,0):de.set(Ts,g,0)):_<v&&(v=_,p<g?de.set(ws,p,0):de.set(ws,-g,0)),s<f||c<o?S>d&&(d=S,y<m?de.set(Ts,0,-y):de.set(Ts,0,m)):_<v&&(v=_,y<m?de.set(ws,0,y):de.set(ws,0,-m))}return e&&de.copy(e,h?ws:Ts),h},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=e.x*a+o,t.y=e.y*i+s,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Va.x=Ga.x=e.x,Va.y=Fa.y=e.y,za.x=Fa.x=e.x+e.width,za.y=Ga.y=e.y+e.height,Va.transform(n),Fa.transform(n),za.transform(n),Ga.transform(n),t.x=Nu(Va.x,za.x,Ga.x,Fa.x),t.y=Nu(Va.y,za.y,Ga.y,Fa.y);var l=Bu(Va.x,za.x,Ga.x,Fa.x),u=Bu(Va.y,za.y,Ga.y,Fa.y);t.width=l-t.x,t.height=u-t.y},r}();const ye=gz;var yM="silent";function yz(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:mz}}function mz(){Bn(this.event)}var _z=function(r){Xe(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ir),As=function(){function r(t,e){this.x=t,this.y=e}return r}(),Sz=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],wv=new ye(0,0,0,0),mM=function(r){Xe(t,r);function t(e,n,a,i,o){var s=r.call(this)||this;return s._hovered=new As(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new _z,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new ez(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(D(Sz,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,a=e.zrY,i=_M(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new As(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new As(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+n,s=yz(n,e,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),o=new As(e,n);if(a1(i,o,e,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ye(e-u,n-u,l,l),c=i.length-1;c>=0;c--){var h=i[c];h!==a&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(wv.copy(h.getBoundingRect()),h.transform&&wv.applyTransform(h.transform),wv.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=n+g*Math.sin(y);if(a1(s,o,m,_,a),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new hz);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;e.gestureEvent=o;var s=new As;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Ir);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){mM.prototype[r]=function(t){var e=t.zrX,n=t.zrY,a=_M(this,e,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(e,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||fa(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function xz(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(a=!0)}var s=n.__hostTarget;n=s||n.parent}return a?yM:!0}return!1}function a1(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=xz(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==yM)){t.target=o;break}}}function _M(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const bz=mM;var SM=32,Cs=7;function wz(r){for(var t=0;r>=SM;)t|=r&1,r>>=1;return r+t}function i1(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a<e&&n(r[a],r[a-1])<0;)a++;Tz(r,t,a)}else for(;a<e&&n(r[a],r[a-1])>=0;)a++;return a-t}function Tz(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function o1(r,t,e,n,a){for(n===t&&n++;n<e;n++){for(var i=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Tv(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])>0){for(s=n-a;l<s&&i(r,t[e+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,t[e+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function Av(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])<0){for(s=a+1;l<s&&i(r,t[e+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,t[e+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function Az(r,t){var e=Cs,n,a,i=0;r.length;var o=[];n=[],a=[];function s(v,d){n[i]=v,a[i]=d,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;f(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]<a[v+1]&&v--,f(v)}}function f(v){var d=n[v],p=a[v],g=n[v+1],y=a[v+1];a[v]=p+y,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var m=Av(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=Tv(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?c(d,p,g,y):h(d,p,g,y)))}function c(v,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=p,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=e,x,w,T;;){x=0,w=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],w++,x=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],x++,w=0,--d===1){T=!0;break}while((x|w)<b);if(T)break;do{if(x=Av(r[_],o,m,d,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=Tv(o[m],r,_,g,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}b--}while(x>=Cs||w>=Cs);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function h(v,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=v+d-1,_=g-1,S=p+g-1,b=0,x=0;if(r[S--]=r[m--],--d===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,A=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)<w);if(A)break;do{if(T=d-Av(o[_],r,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,x=S+1,b=m+1,y=T-1;y>=0;y--)r[x+y]=r[b+y];if(d===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-Tv(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y<C;y++)r[x+y]=o[b+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--d===0){A=!0;break}w--}while(T>=Cs||C>=Cs);if(A)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Yf(r,t,e,n){e||(e=0),n||(n=r.length);var a=n-e;if(!(a<2)){var i=0;if(a<SM){i=i1(r,e,n,t),o1(r,e,n,e+i,t);return}var o=Az(r,t),s=wz(a);do{if(i=i1(r,e,n,t),i<s){var l=a;l>s&&(l=s),o1(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),a-=i,e+=i}while(a!==0);o.forceMergeRuns()}}var rr=1,Js=2,Ao=4,s1=!1;function Cv(){s1||(s1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function l1(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Cz=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=l1}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,a=0,i=e.length;a<i;a++)this._updateAndAddDisplayable(e[a],null,t);n.length=this._displayListLen,Yf(n,l1)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)e=null;else if(a){e?e=e.slice():e=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=rr),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Cv(),f.z=0),isNaN(f.z2)&&(Cv(),f.z2=0),isNaN(f.zlevel)&&(Cv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var a=me(this._roots,t);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const Mz=Cz;var xM;xM=Pe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const og=xM;var Xf={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Xf.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Xf.bounceIn(r*2)*.5:Xf.bounceOut(r*2-1)*.5+.5}};const bM=Xf;var Vu=Math.pow,_a=Math.sqrt,gc=1e-8,wM=1e-4,u1=_a(3),zu=1/3,an=Zi(),gr=Zi(),ko=Zi();function va(r){return r>-gc&&r<gc}function TM(r){return r>gc||r<-gc}function ht(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function f1(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function yc(r,t,e,n,a,i){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-a,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(va(f)&&va(c))if(va(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var p=c*c-4*f*h;if(va(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[v++]=d),y>=0&&y<=1&&(i[v++]=y)}else if(p>0){var m=_a(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Vu(-_,zu):_=Vu(_,zu),S<0?S=-Vu(-S,zu):S=Vu(S,zu);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var b=(2*f*s-3*o*c)/(2*_a(f*f*f)),x=Math.acos(b)/3,w=_a(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+u1*Math.sin(x)))/(3*o),C=(-s+w*(T-u1*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[v++]=d),y>=0&&y<=1&&(i[v++]=y),C>=0&&C<=1&&(i[v++]=C)}}return v}function AM(r,t,e,n,a){var i=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(va(o)){if(TM(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(va(f))a[0]=-i/(2*o);else if(f>0){var c=_a(f),u=(-i+c)/(2*o),h=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function Aa(r,t,e,n,a,i){var o=(t-r)*a+r,s=(e-t)*a+t,l=(n-e)*a+e,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function CM(r,t,e,n,a,i,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,y;an[0]=l,an[1]=u;for(var m=0;m<1;m+=.05)gr[0]=ht(r,e,a,o,m),gr[1]=ht(t,n,i,s,m),g=Mi(an,gr),g<v&&(c=m,v=g);v=1/0;for(var _=0;_<32&&!(h<wM);_++)d=c-h,p=c+h,gr[0]=ht(r,e,a,o,d),gr[1]=ht(t,n,i,s,d),g=Mi(gr,an),d>=0&&g<v?(c=d,v=g):(ko[0]=ht(r,e,a,o,p),ko[1]=ht(t,n,i,s,p),y=Mi(ko,an),p<=1&&y<v?(c=p,v=y):h*=.5);return f&&(f[0]=ht(r,e,a,o,c),f[1]=ht(t,n,i,s,c)),_a(v)}function Dz(r,t,e,n,a,i,o,s,l){for(var u=r,f=t,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=ht(r,e,a,o,d),g=ht(t,n,i,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function gt(r,t,e,n){var a=1-n;return a*(a*r+2*n*t)+n*n*e}function sg(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function Iz(r,t,e,n,a){var i=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(va(i)){if(TM(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(va(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=_a(f),u=(-o+c)/(2*i),h=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function MM(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Rl(r,t,e,n,a){var i=(t-r)*n+r,o=(e-t)*n+t,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=e}function DM(r,t,e,n,a,i,o,s,l){var u,f=.005,c=1/0;an[0]=o,an[1]=s;for(var h=0;h<1;h+=.05){gr[0]=gt(r,e,a,h),gr[1]=gt(t,n,i,h);var v=Mi(an,gr);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<wM);d++){var p=u-f,g=u+f;gr[0]=gt(r,e,a,p),gr[1]=gt(t,n,i,p);var v=Mi(gr,an);if(p>=0&&v<c)u=p,c=v;else{ko[0]=gt(r,e,a,g),ko[1]=gt(t,n,i,g);var y=Mi(ko,an);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=gt(r,e,a,u),l[1]=gt(t,n,i,u)),_a(c)}function Lz(r,t,e,n,a,i,o){for(var s=r,l=t,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=gt(r,e,a,h),d=gt(t,n,i,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var Pz=/cubic-bezier\(([0-9,\.e ]+)\)/;function hm(r){var t=r&&Pz.exec(r);if(t){var e=t[1].split(","),n=+Fr(e[0]),a=+Fr(e[1]),i=+Fr(e[2]),o=+Fr(e[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:yc(0,n,i,1,l,s)&&ht(0,a,o,1,s[0])}}}var Ez=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||at,this.ondestroy=t.ondestroy||at,this.onrestart=t.onrestart||at,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=J(t)?t:bM[t]||hm(t)},r}();const Rz=Ez;var IM=function(){function r(t){this.value=t}return r}(),kz=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new IM(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Oz=function(){function r(t){this._list=new kz,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new IM(e),s.key=t,n.insertEntry(s),a[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const cu=Oz;var c1={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ur(r){return r=Math.round(r),r<0?0:r>255?255:r}function Nz(r){return r=Math.round(r),r<0?0:r>360?360:r}function kl(r){return r<0?0:r>1?1:r}function Mv(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ur(parseFloat(t)/100*255):Ur(parseInt(t,10))}function Di(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?kl(parseFloat(t)/100):kl(parseFloat(t))}function Dv(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function da(r,t,e){return r+(t-r)*e}function cr(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function lg(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var LM=new cu(20),Gu=null;function no(r,t){Gu&&lg(Gu,t),Gu=LM.put(r,Gu||t.slice())}function nr(r,t){if(r){t=t||[];var e=LM.get(r);if(e)return lg(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in c1)return lg(t,c1[n]),no(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){cr(t,0,0,0,1);return}return cr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),no(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){cr(t,0,0,0,1);return}return cr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),no(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?cr(t,+u[0],+u[1],+u[2],1):cr(t,0,0,0,1);f=Di(u.pop());case"rgb":if(u.length>=3)return cr(t,Mv(u[0]),Mv(u[1]),Mv(u[2]),u.length===3?f:Di(u[3])),no(r,t),t;cr(t,0,0,0,1);return;case"hsla":if(u.length!==4){cr(t,0,0,0,1);return}return u[3]=Di(u[3]),ug(u,t),no(r,t),t;case"hsl":if(u.length!==3){cr(t,0,0,0,1);return}return ug(u,t),no(r,t),t;default:return}}cr(t,0,0,0,1)}}function ug(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=Di(r[1]),a=Di(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],cr(t,Ur(Dv(o,i,e+1/3)*255),Ur(Dv(o,i,e)*255),Ur(Dv(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Bz(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-t)/6+o/2)/o,c=((i-e)/6+o/2)/o,h=((i-n)/6+o/2)/o;t===i?l=h-c:e===i?l=1/3+f-h:n===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function fg(r,t){var e=nr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return kn(e,e.length===4?"rgba":"rgb")}}function Iv(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return e[0]=Ur(da(o[0],s[0],l)),e[1]=Ur(da(o[1],s[1],l)),e[2]=Ur(da(o[2],s[2],l)),e[3]=kl(da(o[3],s[3],l)),e}}function Vz(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=nr(t[a]),s=nr(t[i]),l=n-a,u=kn([Ur(da(o[0],s[0],l)),Ur(da(o[1],s[1],l)),Ur(da(o[2],s[2],l)),kl(da(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function hl(r,t,e,n){var a=nr(r);if(r)return a=Bz(a),t!=null&&(a[0]=Nz(t)),e!=null&&(a[1]=Di(e)),n!=null&&(a[2]=Di(n)),kn(ug(a),"rgba")}function mc(r,t){var e=nr(r);if(e&&t!=null)return e[3]=kl(t),kn(e,"rgba")}function kn(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function _c(r,t){var e=nr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Sc=Math.round;function Ol(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=nr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var h1=1e-4;function pa(r){return r<h1&&r>-h1}function Fu(r){return Sc(r*1e3)/1e3}function cg(r){return Sc(r*1e4)/1e4}function zz(r){return"matrix("+Fu(r[0])+","+Fu(r[1])+","+Fu(r[2])+","+Fu(r[3])+","+cg(r[4])+","+cg(r[5])+")"}var Gz={left:"start",right:"end",center:"middle",middle:"middle"};function Fz(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function Hz(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function Wz(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function PM(r){return r&&!!r.image}function Uz(r){return r&&!!r.svgElement}function vm(r){return PM(r)||Uz(r)}function EM(r){return r.type==="linear"}function RM(r){return r.type==="radial"}function kM(r){return r&&(r.type==="linear"||r.type==="radial")}function Ch(r){return"url(#"+r+")"}function OM(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function NM(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Wf,a=pe(r.scaleX,1),i=pe(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Sc(o*Wf)+"deg, "+Sc(s*Wf)+"deg)"),l.join(" ")}var $z=function(){return Pe.hasGlobalWindow&&J(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),hg=Array.prototype.slice;function Mn(r,t,e){return(t-r)*e+r}function Lv(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=Mn(t[i],e[i],n);return r}function Yz(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Mn(t[o][s],e[o][s],n)}return r}function Hu(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=t[i]+e[i]*n;return r}function v1(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function Xz(r,t){for(var e=r.length,n=t.length,a=e>n?t:r,i=Math.min(e,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function Zz(r,t,e){var n=r,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(e===1?a[l]:hg.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function vl(r){if(Et(r)){var t=r.length;if(Et(r[0])){for(var e=[],n=0;n<t;n++)e.push(hg.call(r[n]));return e}return hg.call(r)}return r}function Zf(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function qz(r){return Et(r&&r[0])?2:1}var Wu=0,qf=1,BM=2,el=3,vg=4,dg=5,d1=6;function p1(r){return r===vg||r===dg}function Uu(r){return r===qf||r===BM}var Ms=[0,0,0,0],jz=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=d1,l=e;if(Et(e)){var u=qz(e);s=u,(u===1&&!Re(e[0])||u===2&&!Re(e[0][0]))&&(o=!0)}else if(Re(e)&&!El(e))s=Wu;else if(Y(e))if(!isNaN(+e))s=Wu;else{var f=nr(e);f&&(l=f,s=el)}else if(wh(e)){var c=B({},l);c.colorStops=G(e.colorStops,function(v){return{offset:v.offset,color:nr(v.color)}}),EM(e)?s=vg:RM(e)&&(s=dg),l=c}i===0?this.valType=s:(s!==this.valType||s===d1)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=J(n)?n:bM[n]||hm(n)),a.push(h),h},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Uu(a),u=p1(a),f=0;f<i;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/t,s||(l&&f!==i-1?Zz(h,v,a):u&&Xz(h.colorStops,v.colorStops))}if(!s&&a!==dg&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<i;f++)a===Wu?n[f].additiveValue=n[f].value-d:a===el?n[f].additiveValue=Hu([],n[f].value,d,-1):Uu(a)&&(n[f].additiveValue=a===qf?Hu([],n[f].value,d,-1):v1([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===el,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>e);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,y=g===0?1:h((e-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Ms:t[l];if((Uu(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(Uu(i))i===qf?Lv(m,v[a],d[a],y):Yz(m,v[a],d[a],y);else if(p1(i)){var _=v[a],S=d[a],b=i===vg;t[l]={type:b?"linear":"radial",x:Mn(_.x,S.x,y),y:Mn(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Mn(w.offset,C.offset,y),color:Zf(Lv([],w.color,C.color,y))}}),global:S.global},b?(t[l].x2=Mn(_.x2,S.x2,y),t[l].y2=Mn(_.y2,S.y2,y)):t[l].r=Mn(_.r,S.r,y)}else if(u)Lv(m,v[a],d[a],y),n||(t[l]=Zf(m));else{var x=Mn(v[a],d[a],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===Wu?t[n]=t[n]+a:e===el?(nr(t[n],Ms),Hu(Ms,Ms,a,1),t[n]=Zf(Ms)):e===qf?Hu(t[n],t[n],a,1):e===BM&&v1(t[n],t[n],a,1)},r}(),dm=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){im("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Te(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new jz(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===el&&u&&(u=Zf(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,vl(u),a),this._trackKeys.push(s)}l.addKeyframe(t,vl(e[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(e._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new Rz({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,v);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return G(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var a=0;a<e.length;a++){var i=e[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=vl(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Te(t);for(var n=0;n<e.length;n++){var a=e[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function Lo(){return new Date().getTime()}var Kz=function(r){Xe(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,a=e.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=Lo()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(og(n),!e._paused&&e.update())}og(n)},t.prototype.start=function(){this._running||(this._time=Lo(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Lo(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Lo()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var a=new dm(e,n.loop);return this.addAnimator(a),a},t}(Ir);const Qz=Kz;var Jz=300,Pv=Pe.domSupported,Ev=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=G(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),g1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},y1=!1;function pg(r){var t=r.pointerType;return t==="pen"||t==="touch"}function e4(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Rv(r){r&&(r.zrByTouch=!0)}function t4(r,t){return hr(r.dom,new r4(r,t),!0)}function VM(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var r4=function(){function r(t,e){this.stopPropagation=at,this.stopImmediatePropagation=at,this.preventDefault=at,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Or={mousedown:function(r){r=hr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=hr(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=hr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=hr(this.dom,r);var t=r.toElement||r.relatedTarget;VM(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){y1=!0,r=hr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){y1||(r=hr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=hr(this.dom,r),Rv(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Or.mousemove.call(this,r),Or.mousedown.call(this,r)},touchmove:function(r){r=hr(this.dom,r),Rv(r),this.handler.processGesture(r,"change"),Or.mousemove.call(this,r)},touchend:function(r){r=hr(this.dom,r),Rv(r),this.handler.processGesture(r,"end"),Or.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Jz&&Or.click.call(this,r)},pointerdown:function(r){Or.mousedown.call(this,r)},pointermove:function(r){pg(r)||Or.mousemove.call(this,r)},pointerup:function(r){Or.mouseup.call(this,r)},pointerout:function(r){pg(r)||Or.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Or[r]=function(t){t=hr(this.dom,t),this.trigger(r,t)}});var gg={pointermove:function(r){pg(r)||gg.mousemove.call(this,r)},pointerup:function(r){gg.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function n4(r,t){var e=t.domHandlers;Pe.pointerEventsSupported?D(Ev.pointer,function(n){jf(t,n,function(a){e[n].call(r,a)})}):(Pe.touchEventsSupported&&D(Ev.touch,function(n){jf(t,n,function(a){e[n].call(r,a),e4(t)})}),D(Ev.mouse,function(n){jf(t,n,function(a){a=um(a),t.touching||e[n].call(r,a)})}))}function a4(r,t){Pe.pointerEventsSupported?D(g1.pointer,e):Pe.touchEventsSupported||D(g1.mouse,e);function e(n){function a(i){i=um(i),VM(r,i.target)||(i=t4(r,i),t.domHandlers[n].call(r,i))}jf(t,n,a,{capture:!0})}}function jf(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,ig(r.domTarget,t,e,n)}function kv(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&cz(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var m1=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),i4=function(r){Xe(t,r);function t(e,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new m1(e,Or),Pv&&(a._globalHandlerScope=new m1(document,gg)),n4(a,a._localHandlerScope),a}return t.prototype.dispose=function(){kv(this._localHandlerScope),Pv&&kv(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Pv&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?a4(this,n):kv(n)}},t}(Ir);const o4=i4;var zM=1;Pe.hasGlobalWindow&&(zM=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xc=zM,yg=.4,mg="#333",_g="#ccc",s4="#eee",_1=Ah,S1=5e-5;function Ha(r){return r>S1||r<-S1}var Wa=[],ao=[],Ov=Mr(),Nv=Math.abs,l4=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Ha(this.rotation)||Ha(this.x)||Ha(this.y)||Ha(this.scaleX-1)||Ha(this.scaleY-1)||Ha(this.skewX)||Ha(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(_1(n),this.invTransform=null);return}n=n||Mr(),e?this.getLocalTransform(n):_1(n),t&&(e?Rn(n,t,n):fm(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Wa);var n=Wa[0]<0?-1:1,a=Wa[1]<0?-1:1,i=((Wa[0]-n)*e+n)/Wa[0]||0,o=((Wa[1]-a)*e+a)/Wa[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Mr(),is(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Rn(ao,t.invTransform,e),e=ao);var n=this.originX,a=this.originY;(n||a)&&(Ov[4]=n,Ov[5]=a,Rn(ao,e,Ov),ao[4]-=n,ao[5]-=a,e=ao),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&wt(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&wt(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&Nv(t[0]-1)>1e-10&&Nv(t[3]-1)>1e-10?Math.sqrt(Nv(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){GM(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;e[4]=-d*i-h*p*o,e[5]=-p*o-v*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=v*i,e[2]=h*o,u&&qi(e,e,u),e[4]+=n+f,e[5]+=a+c,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),pn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function GM(r,t){for(var e=0;e<pn.length;e++){var n=pn[e];r[n]=t[n]}}const In=l4;var x1={};function ar(r,t){t=t||wa;var e=x1[t];e||(e=x1[t]=new cu(500));var n=e.get(r);return n==null&&(n=Ta.measureText(r,t).width,e.put(r,n)),n}function b1(r,t,e,n){var a=ar(r,t),i=Mh(t),o=tl(0,a,e),s=Co(0,i,n),l=new ye(o,s,a,i);return l}function hu(r,t,e,n){var a=((r||"")+"").split(`
`),i=a.length;if(i===1)return b1(a[0],t,e,n);for(var o=new ye(0,0,0,0),s=0;s<a.length;s++){var l=b1(a[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function tl(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Co(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Mh(r){return ar("国",r)}function Yr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function bc(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",c="top";if(n instanceof Array)l+=Yr(n[0],e.width),u+=Yr(n[1],e.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Bv="__zr_normal__",Vv=pn.concat(["ignore"]),u4=vn(pn,function(r,t){return r[t]=!0,r},{ignore:!1}),io={},f4=new ye(0,0,0,0),pm=function(){function r(t){this.id=hM(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(e),n.position!=null){var f=f4;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(io,n,f):bc(io,n,f),i.x=io.x,i.y=io.y,o=io.align,s=io.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=Yr(c[0],f.width),v=Yr(c[1],f.height)),u=!0,i.originX=-i.x+h+(a?0:f.x),i.originY=-i.y+v+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=rr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?_g:mg},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&nr(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,kn(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(ne(t))for(var n=t,a=Te(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Bv)){var o=a.targetName,s=o?e[o]:e;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Vv)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Bv,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===Bv,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(me(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){im("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,f),h&&h.useState(t,e,n,f),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rr),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&a.push(f)}var c=a[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rr)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=me(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var a=this.currentStates.slice(),i=me(a,t),o=me(a,e)>=0;i>=0?o?a.splice(i,1):a[i]=e:n&&!o&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a<t.length;a++){var i=t[a];B(e,i),i.textConfig&&(n=n||{},B(n,i.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,a,i,o){var s=!(e&&a);e&&e.textConfig?(this.textConfig=B({},a?this.textConfig:n.textConfig),B(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Vv.length;f++){var c=Vv[f],h=i&&u4[c];e&&e[c]!=null?h?(u=!0,l[c]=e[c]):this[c]=e[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!i)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new In,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),B(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=rr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var a=t?this[t]:this,i=new dm(a,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(e)}).done(function(){var i=a.animators,o=me(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,n){zv(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){zv(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,a){for(var i=zv(this,e,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=rr;function e(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();lt(pm,Ir);lt(pm,In);function zv(r,t,e,n,a){e=e||{};var i=[];FM(r,"",r,t,e,n,i,a);var o=i.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&e.during&&i[0].during(function(d,p){e.during(p)});for(var h=0;h<i.length;h++){var v=i[h];f&&v.done(f),c&&v.aborted(c),e.force&&v.duration(e.duration),v.start(e.easing)}return i}function Gv(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function c4(r){return Et(r[0])}function h4(r,t,e){if(Et(t[e]))if(Et(r[e])||(r[e]=[]),ir(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),Gv(r[e],t[e],n))}else{var a=t[e],i=r[e],o=a.length;if(c4(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Gv(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Gv(i,a,o);i.length=a.length}else r[e]=t[e]}function v4(r,t){return r===t||Et(r)&&Et(t)&&d4(r,t)}function d4(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function FM(r,t,e,n,a,i,o,s){for(var l=Te(n),u=a.duration,f=a.delay,c=a.additive,h=a.setToFinal,v=!ne(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&e[y]!=null&&(v||i[y]))if(ne(m)&&!Et(m)&&!wh(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}FM(r,y,e[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var x=b.stopTracks(p);if(x){var w=me(d,b);d.splice(w,1)}}}if(a.force||(p=ze(p,function(M){return!v4(n[M],e[M])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},h&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],h?T[y]=n[y]:e[y]=n[y]}}else if(h){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=vl(e[y]),h4(e,n,y)}}var b=new dm(e,!1,!1,c?ze(d,function(I){return I.targetName===t}):null);b.targetName=t,a.scope&&(b.scope=a.scope),h&&T&&b.whenWithKeys(0,T,p),A&&b.whenWithKeys(0,A,p),b.whenWithKeys(u??500,s?C:n,p).delay(f||0),r.addAnimator(b,t),o.push(b)}}const HM=pm;var WM=function(r){Xe(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===e)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=me(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,a=this._children,i=me(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a<e.length;a++){var i=e[a];n&&i.removeSelfFromZr(n),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];e.call(n,o,i)}return this},t.prototype.traverse=function(e,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=e.call(n,i);i.isGroup&&!o&&i.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new ye(0,0,0,0),a=e||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(ye.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(HM);WM.prototype.type="group";const oe=WM;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var Kf={},UM={};function p4(r){delete UM[r]}function g4(r){if(!r)return!1;if(typeof r=="string")return _c(r,1)<yg;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,a=0;a<n;a++)e+=_c(t[a].color,1);return e/=n,e<yg}return!1}var y4=function(){function r(t,e,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new Mz,o=n.renderer||"canvas";Kf[o]||(o=Te(Kf)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Kf[o](e,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Pe.node&&!Pe.worker&&!l?new o4(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Pe.touchEventsSupported:!!f,h=44,v;c&&(v=pe(n.pointerSize,h)),this.handler=new bz(i,s,u,s.root,v),this.animation=new Qz({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},r.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=g4(t)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(t){var e,n=Lo();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var a=Lo();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof oe&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,p4(this.id)},r}();function w1(r,t){var e=new y4(hM(),r,t);return UM[e.id]=e,e}function m4(r,t){Kf[r]=t}var T1=1e-4,$M=20;function _4(r){return r.replace(/^\s+|\s+$/g,"")}function Be(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function W(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Y(r)?_4(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function rt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),$M),r=(+r).toFixed(t),e?r:+r}function xr(r){return r.sort(function(t,e){return t-e}),r}function sn(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return S4(r)}function S4(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function YM(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function x4(r,t){var e=vn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=G(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=G(a,function(v){return Math.floor(v)}),s=vn(o,function(v,d){return v+d},0),l=G(a,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return G(o,function(v){return v/n})}function b4(r,t){var e=Math.max(sn(r),sn(t)),n=r+t;return e>$M?n:rt(n,e)}var A1=9007199254740991;function XM(r){var t=Math.PI*2;return(r%t+t)%t}function wc(r){return r>-T1&&r<T1}var w4=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function gn(r){if(r instanceof Date)return r;if(Y(r)){var t=w4.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function T4(r){return Math.pow(10,gm(r))}function gm(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function ZM(r,t){var e=gm(r),n=Math.pow(10,e),a=r/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Fv(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),a=+r[n-1],i=e-n;return i?a+i*(r[n]-a):a}function C1(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-e),t=a[o],e=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Vn(r){var t=parseFloat(r);return t==r&&(t!==0||!Y(r)||r.indexOf("x")<=0)?t:NaN}function qM(r){return!isNaN(Vn(r))}function jM(){return Math.round(Math.random()*9)}function KM(r,t){return t===0?r:KM(t,r%t)}function M1(r,t){return r==null?t:t==null?r:r*t/KM(r,t)}function Ne(r){throw new Error(r)}function D1(r,t,e){return(t-r)*e+r}var QM="series\0",JM="\0_ec_\0";function Ge(r){return r instanceof Array?r:r==null?[]:[r]}function zi(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n<a;n++){var i=e[n];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var I1=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function os(r){return ne(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function A4(r){return ne(r)&&!(r instanceof Array)}function e2(r,t,e){var n=e==="normalMerge",a=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=j();D(t,function(l,u){if(!ne(l)){t[u]=null;return}});var s=C4(r,o,e);return(n||a)&&M4(s,r,o,t),n&&D4(s,t),n||a?I4(s,t,a):i&&L4(s,t),P4(s),s}function C4(r,t,e){var n=[];if(e==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:e==="replaceMerge"||Nl(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function M4(r,t,e,n){D(n,function(a,i){if(!(!a||a.id==null)){var o=dl(a.id),s=e.get(o);if(s!=null){var l=r[s];Ft(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function D4(r,t){D(t,function(e,n){if(!(!e||e.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||e.id==null)&&!Nl(e)&&!Nl(i)&&t2("name",i,e)){r[a].newOption=e,t[n]=null;return}}})}function I4(r,t,e){D(t,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||Nl(a.existing)||a.existing&&n.id!=null&&!t2("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),i++}})}function L4(r,t){D(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function P4(r){var t=j();D(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),D(r,function(e){var n=e.newOption;Ft(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),D(r,function(e,n){var a=e.existing,i=e.newOption,o=e.keyInfo;if(ne(i)){if(o.name=i.name!=null?dl(i.name):a?a.name:QM+n,a)o.id=dl(a.id);else if(i.id!=null)o.id=dl(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function t2(r,t,e){var n=ut(t[r],null),a=ut(e[r],null);return n!=null&&a!=null&&n===a}function dl(r){return ut(r,"")}function ut(r,t){return r==null?t:Y(r)?r:Re(r)||Kp(r)?r+"":t}function ym(r){var t=r.name;return!!(t&&t.indexOf(QM))}function Nl(r){return r&&r.id!=null&&dl(r.id).indexOf(JM)===0}function E4(r){return JM+r}function R4(r,t,e){D(r,function(n){var a=n.newOption;ne(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=k4(t,a,n.existing,e))})}function k4(r,t,e,n){var a=t.type?t.type:e?e.subType:n.determineSubType(r,t);return a}function O4(r,t){var e={},n={};return a(r||[],e),a(t||[],n,e),[i(e),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=ut(o[u].seriesId,null);if(c==null)return;for(var h=Ge(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[g]=null:(s[c]||(s[c]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Gi(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?G(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?G(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function Ie(){var r="__ec_inner_"+N4++;return function(t){return t[r]||(t[r]={})}}var N4=jM();function pl(r,t,e){var n=mm(t,e),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=vu(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function mm(r,t){var e;if(Y(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var a=j(),i={},o=!1;return D(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&me(t.includeMainTypes,f)<0)){o=o||!!f;var h=a.get(f)||a.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var ot={useDefault:!0,enableAll:!1,enableNone:!1},B4={useDefault:!1,enableAll:!0,enableNone:!0};function vu(r,t,e,n){n=n||ot;var a=e.index,i=e.id,o=e.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(Ft(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Ft(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=r.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function r2(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function V4(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function z4(r){return r==="auto"?Pe.domSupported?"html":"richText":r||"html"}function Sg(r,t){var e=j(),n=[];return D(r,function(a){var i=t(a);(e.get(i)||(n.push(i),e.set(i,[]))).push(a)}),{keys:n,buckets:e}}function n2(r,t,e,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Re(n)){var o=D1(e||0,n,a);return rt(o,i?Math.max(sn(e||0),sn(n)):t)}else{if(Y(n))return a<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=D1(v,d,a);s[c]=rt(o,i?Math.max(sn(v),sn(d)):t)}}return s}}var G4=".",Ua="___EC__COMPONENT__CONTAINER___",a2="___EC__EXTENDED_CLASS___";function ln(r){var t={main:"",sub:""};if(r){var e=r.split(G4);t.main=e[0]||"",t.sub=e[1]||""}return t}function F4(r){Ft(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function H4(r){return!!(r&&r[a2])}function _m(r,t){r.$constructor=r,r.extend=function(e){var n=this,a;return W4(n)?a=function(i){O(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(e.$constructor||n).apply(this,arguments)},H3(a,this)),B(a.prototype,e),a[a2]=!0,a.extend=this.extend,a.superCall=Y4,a.superApply=X4,a.superClass=n,a}}function W4(r){return J(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function i2(r,t){r.extend=t.extend}var U4=Math.round(Math.random()*10);function $4(r){var t=["__\0is_clz",U4++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function Y4(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function X4(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Dh(r){var t={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){F4(a),n.prototype.type=a;var i=ln(a);if(!i.sub)t[i.main]=n;else if(i.sub!==Ua){var o=e(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=t[n];if(o&&o[Ua]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=ln(n),i=[],o=t[a.main];return o&&o[Ua]?D(o,function(s,l){l!==Ua&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=ln(n);return!!t[a.main]},r.getAllClassMainTypes=function(){var n=[];return D(t,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=ln(n),i=t[a.main];return i&&i[Ua]};function e(n){var a=t[n.main];return(!a||!a[Ua])&&(a=t[n.main]={},a[Ua]=!0),a}}function Fi(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&me(a,l)>=0||i&&me(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var Z4=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],q4=Fi(Z4),j4=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return q4(this,t,e)},r}(),xg=new cu(50);function K4(r){if(typeof r=="string"){var t=xg.get(r);return t&&t.image}else return r}function Sm(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=xg.get(r),o={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!Ih(t)&&i.pending.push(o)):(t=Ta.loadImage(r,L1,L1),t.__zrImageSrc=r,xg.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function L1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Ih(r){return r&&r.width&&r.height}var Hv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Q4(r,t,e,n,a){if(!t)return"";var i=(r+"").split(`
`);a=o2(t,e,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=s2(i[o],a);return i.join(`
`)}function o2(r,t,e,n){n=n||{};var a=B({},n);a.font=t,e=pe(e,"..."),a.maxIterations=pe(n.maxIterations,2);var i=a.minChar=pe(n.minChar,0);a.cnCharWidth=ar("国",t);var o=a.ascCharWidth=ar("a",t);a.placeholder=pe(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=ar(e,t);return u>s&&(e="",u=0),s=r-u,a.ellipsis=e,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function s2(r,t){var e=t.containerWidth,n=t.font,a=t.contentWidth;if(!e)return"";var i=ar(r,n);if(i<=e)return r;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?J4(r,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,s),i=ar(r,n)}return r===""&&(r=t.placeholder),r}function J4(r,t,e,n){for(var a=0,i=0,o=r.length;i<o&&a<t;i++){var s=r.charCodeAt(i);a+=0<=s&&s<=127?e:n}return i}function eG(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,a=t.font,i=e==="truncate",o=Mh(a),s=pe(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,c;f!=null&&(e==="break"||e==="breakAll")?c=r?l2(r,t.font,f,e==="breakAll",0).lines:[]:c=r?r.split(`
`):[];var h=c.length*s,v=pe(t.height,h);if(h>v&&u){var d=Math.floor(v/s);c=c.slice(0,d)}if(r&&i&&f!=null)for(var p=o2(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<c.length;g++)c[g]=s2(c[g],p);for(var y=v,m=0,g=0;g<c.length;g++)m=Math.max(ar(c[g],a),m);f==null&&(f=m);var _=m;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:c,height:v,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:h,width:f}}var tG=function(){function r(){}return r}(),P1=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),rG=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function nG(r,t){var e=new rG;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=Hv.lastIndex=0,l;(l=Hv.exec(r))!=null;){var u=l.index;u>s&&Wv(e,r.substring(s,u),t,o),Wv(e,l[2],t,o,l[1]),s=Hv.lastIndex}s<r.length&&Wv(e,r.substring(s,r.length),t,o);var f=[],c=0,h=0,v=t.padding,d=i==="truncate",p=t.lineOverflow==="truncate";function g(k,V,H){k.width=V,k.lineHeight=H,c+=H,h=Math.max(h,V)}e:for(var y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=0,S=0,b=0;b<m.tokens.length;b++){var x=m.tokens[b],w=x.styleName&&t.rich[x.styleName]||{},T=x.textPadding=w.padding,C=T?T[1]+T[3]:0,A=x.font=w.font||t.font;x.contentHeight=Mh(A);var M=pe(w.height,x.contentHeight);if(x.innerHeight=M,T&&(M+=T[0]+T[2]),x.height=M,x.lineHeight=cn(w.lineHeight,t.lineHeight,M),x.align=w&&w.align||t.align,x.verticalAlign=w&&w.verticalAlign||"middle",p&&a!=null&&c+x.lineHeight>a){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break e}var I=w.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=ar(x.text,A);else{if(L){var P=w.backgroundColor,E=P&&P.image;E&&(E=K4(E),Ih(E)&&(x.width=Math.max(x.width,E.width*M/E.height)))}var R=d&&n!=null?n-S:null;R!=null&&R<x.width?!L||R<C?(x.text="",x.width=x.contentWidth=0):(x.text=Q4(x.text,R-C,A,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=ar(x.text,A)):x.contentWidth=ar(x.text,A)}x.width+=C,S+=x.width,w&&(_=Math.max(_,x.lineHeight))}g(m,S,_)}e.outerWidth=e.width=pe(n,h),e.outerHeight=e.height=pe(a,c),e.contentHeight=c,e.contentWidth=h,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var x=f[y],N=x.percentWidth;x.width=parseInt(N,10)/100*e.width}return e}function Wv(r,t,e,n,a){var i=t==="",o=a&&e.rich[a]||{},s=r.lines,l=o.font||e.font,u=!1,f,c;if(n){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Yr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),u=!0),n.accumWidth=d}else{var p=l2(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,c=p.linesWidths,f=p.lines}}else f=t.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new tG;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=c?c[g]:ar(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new P1)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new P1([m]))}}function aG(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var iG=vn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function oG(r){return aG(r)?!!iG[r]:!0}function l2(r,t,e,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,c=0;c<r.length;c++){var h=r.charAt(c);if(h===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=ar(h,t),d=n?!1:!oG(h);if(i.length?f+v>e:a+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=v)):d?(i.push(l),o.push(u),l=h,u=v):(i.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}var bg="__zr_style_"+Math.round(Math.random()*10),Ii={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Lh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ii[bg]=!0;var E1=["z","z2","invisible"],sG=["invisible"],lG=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Te(e),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&uG(this,e,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ye(0,0,0,0)),n?ye.applyTransform(e,a,n):e.copy(a),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new ye(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:B(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Js,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Js)},t.prototype.styleUpdated=function(){this.__dirty&=~Js},t.prototype.createStyle=function(e){return Th(Ii,e)},t.prototype.useStyle=function(e){e[bg]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[bg]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,E1)},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Te(f),h=0;h<c.length;h++){var v=c[h];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=Te(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?sG:E1,h=0;h<p.length;h++){var v=p[h];n&&n[v]!=null?this[v]=n[v]:l&&a[v]!=null&&(this[v]=a[v])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var o=e[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(e,n){return B(e,n),e},t.prototype.getAnimationStyleProps=function(){return Lh},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=rr|Js}(),t}(HM),Uv=new ye(0,0,0,0),$v=new ye(0,0,0,0);function uG(r,t,e){return Uv.copy(r.getBoundingRect()),r.transform&&Uv.applyTransform(r.transform),$v.width=t,$v.height=e,!Uv.intersect($v)}const Dr=lG;var Zt=Math.min,qt=Math.max,Yv=Math.sin,Xv=Math.cos,$a=Math.PI*2,$u=Zi(),Yu=Zi(),Xu=Zi();function Ph(r,t,e){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=Zt(a,n[0]),i=qt(i,n[0]),o=Zt(o,n[1]),s=qt(s,n[1]);t[0]=a,t[1]=o,e[0]=i,e[1]=s}}function R1(r,t,e,n,a,i){a[0]=Zt(r,e),a[1]=Zt(t,n),i[0]=qt(r,e),i[1]=qt(t,n)}var k1=[],O1=[];function fG(r,t,e,n,a,i,o,s,l,u){var f=AM,c=ht,h=f(r,e,a,o,k1);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=c(r,e,a,o,k1[v]);l[0]=Zt(d,l[0]),u[0]=qt(d,u[0])}h=f(t,n,i,s,O1);for(var v=0;v<h;v++){var p=c(t,n,i,s,O1[v]);l[1]=Zt(p,l[1]),u[1]=qt(p,u[1])}l[0]=Zt(r,l[0]),u[0]=qt(r,u[0]),l[0]=Zt(o,l[0]),u[0]=qt(o,u[0]),l[1]=Zt(t,l[1]),u[1]=qt(t,u[1]),l[1]=Zt(s,l[1]),u[1]=qt(s,u[1])}function cG(r,t,e,n,a,i,o,s){var l=MM,u=gt,f=qt(Zt(l(r,e,a),1),0),c=qt(Zt(l(t,n,i),1),0),h=u(r,e,a,f),v=u(t,n,i,c);o[0]=Zt(r,a,h),o[1]=Zt(t,i,v),s[0]=qt(r,a,h),s[1]=qt(t,i,v)}function hG(r,t,e,n,a,i,o,s,l){var u=ca,f=ha,c=Math.abs(a-i);if(c%$a<1e-4&&c>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if($u[0]=Xv(a)*e+r,$u[1]=Yv(a)*n+t,Yu[0]=Xv(i)*e+r,Yu[1]=Yv(i)*n+t,u(s,$u,Yu),f(l,$u,Yu),a=a%$a,a<0&&(a=a+$a),i=i%$a,i<0&&(i=i+$a),a>i&&!o?i+=$a:a<i&&o&&(a+=$a),o){var h=i;i=a,a=h}for(var v=0;v<i;v+=Math.PI/2)v>a&&(Xu[0]=Xv(v)*e+r,Xu[1]=Yv(v)*n+t,u(s,Xu,s),f(l,Xu,l))}var Fe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ya=[],Xa=[],jr=[],qn=[],Kr=[],Qr=[],Zv=Math.min,qv=Math.max,Za=Math.cos,qa=Math.sin,wn=Math.abs,wg=Math.PI,aa=wg*2,jv=typeof Float32Array<"u",Ds=[];function Kv(r){var t=Math.round(r/wg*1e8)/1e8;return t%2*wg}function u2(r,t){var e=Kv(r[0]);e<0&&(e+=aa);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=aa?a=e+aa:t&&e-a>=aa?a=e-aa:!t&&e>a?a=e+(aa-Kv(e-a)):t&&e<a&&(a=e-(aa-Kv(a-e))),r[0]=e,r[1]=a}var yn=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=wn(n/xc/t)||0,this._uy=wn(n/xc/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Fe.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=wn(t-this._xi),a=wn(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Fe.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){return this._drawPendingPt(),this.addData(Fe.C,t,e,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(Fe.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,o){this._drawPendingPt(),Ds[0]=a,Ds[1]=i,u2(Ds,o),a=Ds[0],i=Ds[1];var s=i-a;return this.addData(Fe.A,t,e,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,o),this._xi=Za(i)*n+t,this._yi=qa(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(Fe.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Fe.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&jv&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,a=this._len,i=0;i<e;i++)n+=t[i].len();jv&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<e;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},r.prototype.addData=function(t,e,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,jv&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){jr[0]=jr[1]=Kr[0]=Kr[1]=Number.MAX_VALUE,qn[0]=qn[1]=Qr[0]=Qr[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],a=e,i=n),s){case Fe.M:e=a=t[o++],n=i=t[o++],Kr[0]=a,Kr[1]=i,Qr[0]=a,Qr[1]=i;break;case Fe.L:R1(e,n,t[o],t[o+1],Kr,Qr),e=t[o++],n=t[o++];break;case Fe.C:fG(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Kr,Qr),e=t[o++],n=t[o++];break;case Fe.Q:cG(e,n,t[o++],t[o++],t[o],t[o+1],Kr,Qr),e=t[o++],n=t[o++];break;case Fe.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],v=t[o++],d=t[o++]+v;o+=1;var p=!t[o++];l&&(a=Za(v)*c+u,i=qa(v)*h+f),hG(u,f,c,h,v,d,p,Kr,Qr),e=Za(d)*c+u,n=qa(d)*h+f;break;case Fe.R:a=e=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];R1(a,i,a+g,i+y,Kr,Qr);break;case Fe.Z:e=a,n=i;break}ca(jr,jr,Kr),ha(qn,qn,Qr)}return o===0&&(jr[0]=jr[1]=qn[0]=qn[1]=0),new ye(jr[0],jr[1],qn[0]-jr[0],qn[1]-jr[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<e;){var v=t[h++],d=h===1;d&&(i=t[h],o=t[h+1],s=i,l=o);var p=-1;switch(v){case Fe.M:i=s=t[h++],o=l=t[h++];break;case Fe.L:{var g=t[h++],y=t[h++],m=g-i,_=y-o;(wn(m)>n||wn(_)>a||h===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Fe.C:{var S=t[h++],b=t[h++],g=t[h++],y=t[h++],x=t[h++],w=t[h++];p=Dz(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case Fe.Q:{var S=t[h++],b=t[h++],g=t[h++],y=t[h++];p=Lz(i,o,S,b,g,y,10),i=g,o=y;break}case Fe.A:var T=t[h++],C=t[h++],A=t[h++],M=t[h++],I=t[h++],L=t[h++],P=L+I;h+=1,t[h++],d&&(s=Za(I)*A+T,l=qa(I)*M+C),p=qv(A,M)*Zv(aa,Math.abs(L)),i=Za(P)*A+T,o=qa(P)*M+C;break;case Fe.R:{s=i=t[h++],l=o=t[h++];var E=t[h++],R=t[h++];p=E*2+R*2;break}case Fe.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,c,h,v=e<1,d,p,g=0,y=0,m,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))e:for(var x=0;x<o;){var w=n[x++],T=x===1;switch(T&&(u=n[x],f=n[x+1],s=u,l=f),w!==Fe.L&&_>0&&(t.lineTo(S,b),_=0),w){case Fe.M:s=u=n[x++],l=f=n[x++],t.moveTo(u,f);break;case Fe.L:{c=n[x++],h=n[x++];var C=wn(c-u),A=wn(h-f);if(C>a||A>i){if(v){var M=d[y++];if(g+M>m){var I=(m-g)/M;t.lineTo(u*(1-I)+c*I,f*(1-I)+h*I);break e}g+=M}t.lineTo(c,h),u=c,f=h,_=0}else{var L=C*C+A*A;L>_&&(S=c,b=h,_=L)}break}case Fe.C:{var P=n[x++],E=n[x++],R=n[x++],N=n[x++],k=n[x++],V=n[x++];if(v){var M=d[y++];if(g+M>m){var I=(m-g)/M;Aa(u,P,R,k,I,Ya),Aa(f,E,N,V,I,Xa),t.bezierCurveTo(Ya[1],Xa[1],Ya[2],Xa[2],Ya[3],Xa[3]);break e}g+=M}t.bezierCurveTo(P,E,R,N,k,V),u=k,f=V;break}case Fe.Q:{var P=n[x++],E=n[x++],R=n[x++],N=n[x++];if(v){var M=d[y++];if(g+M>m){var I=(m-g)/M;Rl(u,P,R,I,Ya),Rl(f,E,N,I,Xa),t.quadraticCurveTo(Ya[1],Xa[1],Ya[2],Xa[2]);break e}g+=M}t.quadraticCurveTo(P,E,R,N),u=R,f=N;break}case Fe.A:var H=n[x++],U=n[x++],q=n[x++],ee=n[x++],te=n[x++],_e=n[x++],Ae=n[x++],Se=!n[x++],ae=q>ee?q:ee,xe=wn(q-ee)>.001,he=te+_e,K=!1;if(v){var M=d[y++];g+M>m&&(he=te+_e*(m-g)/M,K=!0),g+=M}if(xe&&t.ellipse?t.ellipse(H,U,q,ee,Ae,te,he,Se):t.arc(H,U,ae,te,he,Se),K)break e;T&&(s=Za(te)*q+H,l=qa(te)*ee+U),u=Za(he)*q+H,f=qa(he)*ee+U;break;case Fe.R:s=u=n[x],l=f=n[x+1],c=n[x++],h=n[x++];var ve=n[x++],qe=n[x++];if(v){var M=d[y++];if(g+M>m){var Me=m-g;t.moveTo(c,h),t.lineTo(c+Zv(Me,ve),h),Me-=ve,Me>0&&t.lineTo(c+ve,h+Zv(Me,qe)),Me-=qe,Me>0&&t.lineTo(c+qv(ve-Me,0),h+qe),Me-=ve,Me>0&&t.lineTo(c,h+qv(qe-Me,0));break e}g+=M}t.rect(c,h,ve,qe);break;case Fe.Z:if(v){var M=d[y++];if(g+M>m){var I=(m-g)/M;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}g+=M}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=Fe,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function oa(r,t,e,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function vG(r,t,e,n,a,i,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>i+c&&f>s+c||f<t-c&&f<n-c&&f<i-c&&f<s-c||u>r+c&&u>e+c&&u>a+c&&u>o+c||u<r-c&&u<e-c&&u<a-c&&u<o-c)return!1;var h=CM(r,t,e,n,a,i,o,s,u,f,null);return h<=c/2}function f2(r,t,e,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>r+u&&s>e+u&&s>a+u||s<r-u&&s<e-u&&s<a-u)return!1;var f=DM(r,t,e,n,a,i,s,l,null);return f<=u/2}var N1=Math.PI*2;function Hr(r){return r%=N1,r<0&&(r+=N1),r}var Is=Math.PI*2;function dG(r,t,e,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-a)%Is<1e-4)return!0;if(i){var c=n;n=Hr(a),a=Hr(c)}else n=Hr(n),a=Hr(a);n>a&&(a+=Is);var h=Math.atan2(l,s);return h<0&&(h+=Is),h>=n&&h<=a||h+Is>=n&&h+Is<=a}function Dn(r,t,e,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(e-r)+r;return l===a?1/0:l>a?s:0}var jn=yn.CMD,ja=Math.PI*2,pG=1e-4;function gG(r,t){return Math.abs(r-t)<pG}var Vt=[-1,-1,-1],dr=[-1,-1];function yG(){var r=dr[0];dr[0]=dr[1],dr[1]=r}function mG(r,t,e,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var f=yc(t,n,i,s,u,Vt);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=Vt[p],y=g===0||g===1?.5:1,m=ht(r,e,a,o,g);m<l||(h<0&&(h=AM(t,n,i,s,dr),dr[1]<dr[0]&&h>1&&yG(),v=ht(t,n,i,s,dr[0]),h>1&&(d=ht(t,n,i,s,dr[1]))),h===2?g<dr[0]?c+=v<t?y:-y:g<dr[1]?c+=d<v?y:-y:c+=s<d?y:-y:g<dr[0]?c+=v<t?y:-y:c+=s<v?y:-y)}return c}function _G(r,t,e,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=Iz(t,n,i,s,Vt);if(l===0)return 0;var u=MM(t,n,i);if(u>=0&&u<=1){for(var f=0,c=gt(t,n,i,u),h=0;h<l;h++){var v=Vt[h]===0||Vt[h]===1?.5:1,d=gt(r,e,a,Vt[h]);d<o||(Vt[h]<u?f+=c<t?v:-v:f+=i<c?v:-v)}return f}else{var v=Vt[0]===0||Vt[0]===1?.5:1,d=gt(r,e,a,Vt[0]);return d<o?0:i<t?v:-v}}function SG(r,t,e,n,a,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Vt[0]=-l,Vt[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=ja-1e-4){n=0,a=ja;var f=i?1:-1;return o>=Vt[0]+r&&o<=Vt[1]+r?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=ja,a+=ja);for(var h=0,v=0;v<2;v++){var d=Vt[v];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=ja+p),(p>=n&&p<=a||p+ja>=n&&p+ja<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function c2(r,t,e,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var p=i[d++],g=d===1;switch(p===jn.M&&d>1&&(e||(s+=Dn(l,u,f,c,n,a))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case jn.M:f=i[d++],c=i[d++],l=f,u=c;break;case jn.L:if(e){if(oa(l,u,i[d],i[d+1],t,n,a))return!0}else s+=Dn(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case jn.C:if(e){if(vG(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=mG(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case jn.Q:if(e){if(f2(l,u,i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=_G(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case jn.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],x=i[d++];d+=1;var w=!!(1-i[d++]);h=Math.cos(b)*_+y,v=Math.sin(b)*S+m,g?(f=h,c=v):s+=Dn(l,u,h,v,n,a);var T=(n-y)*S/_+y;if(e){if(dG(y,m,S,b,b+x,w,t,T,a))return!0}else s+=SG(y,m,S,b,b+x,w,T,a);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case jn.R:f=l=i[d++],c=u=i[d++];var C=i[d++],A=i[d++];if(h=f+C,v=c+A,e){if(oa(f,c,h,c,t,n,a)||oa(h,c,h,v,t,n,a)||oa(h,v,f,v,t,n,a)||oa(f,v,f,c,t,n,a))return!0}else s+=Dn(h,c,h,v,n,a),s+=Dn(f,v,f,c,n,a);break;case jn.Z:if(e){if(oa(l,u,f,c,t,n,a))return!0}else s+=Dn(l,u,f,c,n,a);l=f,u=c;break}}return!e&&!gG(u,c)&&(s+=Dn(l,u,f,c,n,a)||0),s!==0}function xG(r,t,e){return c2(r,0,!1,t,e)}function bG(r,t,e,n){return c2(r,t,!0,e,n)}var Tc=re({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ii),wG={style:re({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Lh.style)},Qv=pn.concat(["invisible","culling","z","z2","zlevel","parent"]),TG=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){e.buildPath(l,e.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<Qv.length;++s)a[Qv[s]]=this[Qv[s]];a.__dirty|=rr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=Te(e);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=e[o];o==="style"?this.style?B(this.style,s):this.useStyle(s):o==="shape"?B(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(Y(e)){var n=_c(e,0);return n>.5?mg:n>.2?s4:_g}else if(e)return _g}return mg},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(Y(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=_c(e,0)<yg;if(i===o)return n}},t.prototype.buildPath=function(e,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Ao},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new yn(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Ao)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),o=this.style;if(e=a[0],n=a[1],i.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),bG(s,l/u,e,n)))return!0}if(this.hasFill())return xG(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ao,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:B(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ao)},t.prototype.createStyle=function(e){return Th(Tc,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=B({},a.shape),B(u,n.shape)):(u=B({},i?this.shape:a.shape),B(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=B({},this.shape);for(var f={},c=Te(u),h=0;h<c.length;h++){var v=c[h];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var o=e[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return wG},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(i){Xe(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ie(e.style)},o.prototype.getDefaultShape=function(){return ie(e.shape)},o}(t);for(var a in e)typeof e[a]=="function"&&(n.prototype[a]=e[a]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=rr|Js|Ao}(),t}(Dr);const we=TG;var AG=re({strokeFirst:!0,font:wa,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Tc),h2=function(r){Xe(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Th(AG,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var a=hu(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Dr);h2.prototype.type="tspan";const Bl=h2;var CG=re({x:0,y:0},Ii),MG={style:re({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Lh.style)};function DG(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var v2=function(r){Xe(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Th(CG,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=DG(n.image)?n.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return MG},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ye(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Dr);v2.prototype.type="image";const Mt=v2;function IG(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),r.moveTo(e+s,n),r.lineTo(e+a-l,n),l!==0&&r.arc(e+a-l,n+l,l,-Math.PI/2,0),r.lineTo(e+a,n+i-u),u!==0&&r.arc(e+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(e+f,n+i),f!==0&&r.arc(e+f,n+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var Po=Math.round;function d2(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(Po(n*2)===Po(a*2)&&(r.x1=r.x2=Si(n,s,!0)),Po(i*2)===Po(o*2)&&(r.y1=r.y2=Si(i,s,!0))),r}}function p2(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Si(n,s,!0),r.y=Si(a,s,!0),r.width=Math.max(Si(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Si(a+o,s,!1)-r.y,o===0?0:1)),r}}function Si(r,t,e){if(!t)return r;var n=Po(r*2);return(n+Po(t))%2===0?n/2:(n+(e?1:-1))/2}var LG=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),PG={},g2=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new LG},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=p2(PG,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?IG(e,n):e.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(we);g2.prototype.type="rect";const De=g2;var B1={fill:"#000"},V1=2,EG={style:re({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Lh.style)},y2=function(r){Xe(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=B1,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,OG(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new ye(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||B1},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var a=n.rich,i=e.rich||a&&{};return B(e,n),a&&i?(this._mergeRich(i,a),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,n){for(var a=Te(n),i=0;i<a.length;i++){var o=a[i];e[o]=e[o]||{},B(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return EG},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||wa,a=e.padding,i=$1(e),o=eG(i,e),s=Jv(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,v=o.lineHeight,d=this._defaultStyle,p=e.x||0,g=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=p,S=Co(g,o.contentHeight,m);if(s||a){var b=tl(p,f,y),x=Co(g,u,m);s&&this._renderBackground(e,e,b,x,f,u)}S+=v/2,a&&(_=U1(p,y,a),m==="top"?S+=a[0]:m==="bottom"&&(S-=a[2]));for(var w=0,T=!1,C=W1("fill"in e?e.fill:(T=!0,d.fill)),A=H1("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(w=V1,d.stroke):null),M=e.textShadowBlur>0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<h.length;P++){var E=this._getOrCreateChild(Bl),R=E.createStyle();E.useStyle(R),R.text=h[P],R.x=_,R.y=S,y&&(R.textAlign=y),R.textBaseline="middle",R.opacity=e.opacity,R.strokeFirst=!0,M&&(R.shadowBlur=e.textShadowBlur||0,R.shadowColor=e.textShadowColor||"transparent",R.shadowOffsetX=e.textShadowOffsetX||0,R.shadowOffsetY=e.textShadowOffsetY||0),R.stroke=A,R.fill=C,A&&(R.lineWidth=e.lineWidth||w,R.lineDash=e.lineDash,R.lineDashOffset=e.lineDashOffset||0),R.font=n,G1(R,e),S+=v,I&&E.setBoundingRect(new ye(tl(R.x,e.width,R.textAlign),Co(R.y,L,R.textBaseline),c,L))}},t.prototype._updateRichTexts=function(){var e=this.style,n=$1(e),a=nG(n,e),i=a.width,o=a.outerWidth,s=a.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,c=this._defaultStyle,h=e.align||c.align,v=e.verticalAlign||c.verticalAlign,d=tl(u,o,h),p=Co(f,s,v),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+i;Jv(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<a.lines.length;S++){for(var b=a.lines[S],x=b.tokens,w=x.length,T=b.lineHeight,C=b.width,A=0,M=g,I=m,L=w-1,P=void 0;A<w&&(P=x[A],!P.align||P.align==="left");)this._placeToken(P,e,T,y,M,"left",_),C-=P.width,M+=P.width,A++;for(;L>=0&&(P=x[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(M+=(i-(M-g)-(m-I)-C)/2;A<=L;)P=x[A],this._placeToken(P,e,T,y,M+P.width/2,"center",_),M+=P.width,A++;y+=T}},t.prototype._placeToken=function(e,n,a,i,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=i+a/2;f==="top"?c=i+e.height/2:f==="bottom"&&(c=i+a-e.height/2);var h=!e.isLineHolder&&Jv(u);h&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,c-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=U1(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Bl),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=W1("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=H1("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=V1,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,x&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||wa,g.opacity=cn(u.opacity,n.opacity,1),G1(g,u),b&&(g.lineWidth=cn(u.lineWidth,n.lineWidth,_),g.lineDash=pe(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=e.contentWidth,T=e.contentHeight;p.setBoundingRect(new ye(tl(g.x,w,g.textAlign),Co(g.y,T,g.textBaseline),w,T))},t.prototype._renderBackground=function(e,n,a,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,h=l&&!c,v=e.borderRadius,d=this,p,g;if(h||e.lineHeight||u&&f){p=this._getOrCreateChild(De),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(h){var m=p.style;m.fill=l||null,m.fillOpacity=pe(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Mt),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=pe(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=cn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return _2(e)&&(n=[e.fontStyle,e.fontWeight,m2(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Fr(n)||e.textFont||e.font},t}(Dr),RG={left:!0,right:1,center:1},kG={top:1,bottom:1,middle:1},z1=["fontStyle","fontWeight","fontSize","fontFamily"];function m2(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?rm+"px":r+"px"}function G1(r,t){for(var e=0;e<z1.length;e++){var n=z1[e],a=t[n];a!=null&&(r[n]=a)}}function _2(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function OG(r){return F1(r),D(r.rich,F1),r}function F1(r){if(r){r.font=y2.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||RG[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||kG[e]?e:"top";var n=r.padding;n&&(r.padding=lm(r.padding))}}function H1(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function W1(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function U1(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function $1(r){var t=r.text;return t!=null&&(t+=""),t}function Jv(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const Ee=y2;var ue=Ie(),Tg=function(r,t,e,n){if(n){var a=ue(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,n.type==="group"&&n.traverse(function(i){var o=ue(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},Y1=1,X1={},S2=Ie(),xm=Ie(),bm=0,du=1,Eh=2,Ht=["emphasis","blur","select"],Vl=["normal","emphasis","blur","select"],ss=10,NG=9,Li="highlight",Qf="downplay",gl="select",Jf="unselect",yl="toggleSelect";function oo(r){return r!=null&&r!=="none"}var Z1=new cu(100);function q1(r){if(Y(r)){var t=Z1.get(r);return t||(t=fg(r,-.1),Z1.put(r,t)),t}else if(wh(r)){var e=B({},r);return e.colorStops=G(r.colorStops,function(n){return{offset:n.offset,color:fg(n.color,-.1)}}),e}return r}function Rh(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function x2(r){Rh(r,"emphasis",Eh)}function b2(r){r.hoverState===Eh&&Rh(r,"normal",bm)}function wm(r){Rh(r,"blur",du)}function w2(r){r.hoverState===du&&Rh(r,"normal",bm)}function BG(r){r.selected=!0}function VG(r){r.selected=!1}function j1(r,t,e){t(r,e)}function Un(r,t,e){j1(r,t,e),r.isGroup&&r.traverse(function(n){j1(n,t,e)})}function Ac(r,t){switch(t){case"emphasis":r.hoverState=Eh;break;case"normal":r.hoverState=bm;break;case"blur":r.hoverState=du;break;case"select":r.selected=!0}}function zG(r,t,e,n){for(var a=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function GG(r,t,e,n){var a=e&&me(e,"select")>=0,i=!1;if(r instanceof we){var o=S2(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(oo(s)||oo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=B({},n),u=B({},u),u.fill=s):!oo(u.fill)&&oo(s)?(i=!0,n=B({},n),u=B({},u),u.fill=q1(s)):!oo(u.stroke)&&oo(l)&&(i||(n=B({},n),u=B({},u)),u.stroke=q1(l)),n.style=u}}if(n&&n.z2==null){i||(n=B({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??ss)}return n}function FG(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??NG)}return e}function HG(r,t,e){var n=me(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:zG(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?a:i.opacity*.1},o),e.style=o),e}function ed(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return GG(this,r,t,e);if(r==="blur")return HG(this,r,e);if(r==="select")return FG(this,r,e)}return e}function Hi(r){r.stateProxy=ed;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=ed),e&&(e.stateProxy=ed)}function K1(r,t){!M2(r,t)&&!r.__highByOuter&&Un(r,x2)}function Q1(r,t){!M2(r,t)&&!r.__highByOuter&&Un(r,b2)}function zn(r,t){r.__highByOuter|=1<<(t||0),Un(r,x2)}function Gn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Un(r,b2)}function T2(r){Un(r,wm)}function Tm(r){Un(r,w2)}function A2(r){Un(r,BG)}function C2(r){Un(r,VG)}function M2(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function D2(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=xm(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){w2(u)}),s&&e.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function Ag(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&Tm(h)}}if(r!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!h||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||wm(g)}),Et(t))i(u.getData(),t);else if(ne(t))for(var d=Te(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),xm(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function Cg(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){xm(n).isBlured=!0;var a=e.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){wm(i)})}}}function WG(r,t,e){var n=r.seriesIndex,a=r.getData(t.dataType);if(a){var i=Gi(a,t);i=(z(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ue(o);Ag(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Ag(n,f,c,e)}}}function Am(r,t,e,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return a;var i=n.getModel().getComponent(r,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ue(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function UG(r,t,e){var n=ue(r),a=Am(n.componentMainType,n.componentIndex,n.componentHighDownName,e),i=a.dispatchers,o=a.focusSelf;i?(o&&Cg(n.componentMainType,n.componentIndex,e),D(i,function(s){return K1(s,t)})):(Ag(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&Cg(n.componentMainType,n.componentIndex,e),K1(r,t))}function $G(r,t,e){D2(e);var n=ue(r),a=Am(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;a?D(a,function(i){return Q1(i,t)}):Q1(r,t)}function YG(r,t,e){if(Dg(t)){var n=t.dataType,a=r.getData(n),i=Gi(a,t);z(i)||(i=[i]),r[t.type===yl?"toggleSelect":t.type===gl?"select":"unselect"](i,n)}}function J1(r){var t=r.getAllData();D(t,function(e){var n=e.data,a=e.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?A2(i):C2(i)})})}function XG(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();D(n,function(a){a.data;var i=a.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Pi(r,t,e){xi(r,!0),Un(r,Hi),Mg(r,t,e)}function ZG(r){xi(r,!1)}function Je(r,t,e,n){n?ZG(r):Pi(r,t,e)}function Mg(r,t,e){var n=ue(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var eS=["emphasis","blur","select"],qG={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function At(r,t,e,n){e=e||"itemStyle";for(var a=0;a<eS.length;a++){var i=eS[a],o=t.getModel([i,e]),s=r.ensureState(i);s.style=n?n(o):o[qG[e]]()}}function xi(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function zl(r){return!!(r&&r.__highDownDispatcher)}function jG(r,t,e){var n=ue(r);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=e}function KG(r){var t=X1[r];return t==null&&Y1<=32&&(t=X1[r]=Y1++),t}function Dg(r){var t=r.type;return t===gl||t===Jf||t===yl}function tS(r){var t=r.type;return t===Li||t===Qf}function QG(r){var t=S2(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var so=yn.CMD,JG=[[],[],[]],rS=Math.sqrt,eF=Math.atan2;function I2(r,t){if(t){var e=r.data,n=r.len(),a,i,o,s,l,u,f=so.M,c=so.C,h=so.L,v=so.R,d=so.A,p=so.Q;for(o=0,s=0;o<n;){switch(a=e[o++],s=o,i=0,a){case f:i=1;break;case h:i=1;break;case c:i=3;break;case p:i=2;break;case d:var g=t[4],y=t[5],m=rS(t[0]*t[0]+t[1]*t[1]),_=rS(t[2]*t[2]+t[3]*t[3]),S=eF(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],wt(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],wt(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var b=JG[l];b[0]=e[o++],b[1]=e[o++],wt(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var td=Math.sqrt,Zu=Math.sin,qu=Math.cos,Ls=Math.PI;function nS(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Ig(r,t){return(r[0]*t[0]+r[1]*t[1])/(nS(r)*nS(t))}function aS(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Ig(r,t))}function iS(r,t,e,n,a,i,o,s,l,u,f){var c=l*(Ls/180),h=qu(c)*(r-e)/2+Zu(c)*(t-n)/2,v=-1*Zu(c)*(r-e)/2+qu(c)*(t-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=td(d),s*=td(d));var p=(a===i?-1:1)*td((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,y=p*-s*h/o,m=(r+e)/2+qu(c)*g-Zu(c)*y,_=(t+n)/2+Zu(c)*g+qu(c)*y,S=aS([1,0],[(h-g)/o,(v-y)/s]),b=[(h-g)/o,(v-y)/s],x=[(-1*h-g)/o,(-1*v-y)/s],w=aS(b,x);if(Ig(b,x)<=-1&&(w=Ls),Ig(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Ls*1e6)/1e6;w=Ls*2+T%2*Ls}f.addData(u,m,_,o,s,S,w,c,i)}var tF=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,rF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function nF(r){var t=new yn;if(!r)return t;var e=0,n=0,a=e,i=n,o,s=yn.CMD,l=r.match(tF);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,v=f.match(rF)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=e,C=n,A=void 0,M=void 0;switch(c){case"l":e+=v[g++],n+=v[g++],h=s.L,t.addData(h,e,n);break;case"L":e=v[g++],n=v[g++],h=s.L,t.addData(h,e,n);break;case"m":e+=v[g++],n+=v[g++],h=s.M,t.addData(h,e,n),a=e,i=n,c="l";break;case"M":e=v[g++],n=v[g++],h=s.M,t.addData(h,e,n),a=e,i=n,c="L";break;case"h":e+=v[g++],h=s.L,t.addData(h,e,n);break;case"H":e=v[g++],h=s.L,t.addData(h,e,n);break;case"v":n+=v[g++],h=s.L,t.addData(h,e,n);break;case"V":n=v[g++],h=s.L,t.addData(h,e,n);break;case"C":h=s.C,t.addData(h,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),e=v[g-2],n=v[g-1];break;case"c":h=s.C,t.addData(h,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n),e+=v[g-2],n+=v[g-1];break;case"S":y=e,m=n,A=t.len(),M=t.data,o===s.C&&(y+=e-M[A-4],m+=n-M[A-3]),h=s.C,T=v[g++],C=v[g++],e=v[g++],n=v[g++],t.addData(h,y,m,T,C,e,n);break;case"s":y=e,m=n,A=t.len(),M=t.data,o===s.C&&(y+=e-M[A-4],m+=n-M[A-3]),h=s.C,T=e+v[g++],C=n+v[g++],e+=v[g++],n+=v[g++],t.addData(h,y,m,T,C,e,n);break;case"Q":T=v[g++],C=v[g++],e=v[g++],n=v[g++],h=s.Q,t.addData(h,T,C,e,n);break;case"q":T=v[g++]+e,C=v[g++]+n,e+=v[g++],n+=v[g++],h=s.Q,t.addData(h,T,C,e,n);break;case"T":y=e,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=e-M[A-4],m+=n-M[A-3]),e=v[g++],n=v[g++],h=s.Q,t.addData(h,y,m,e,n);break;case"t":y=e,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=e-M[A-4],m+=n-M[A-3]),e+=v[g++],n+=v[g++],h=s.Q,t.addData(h,y,m,e,n);break;case"A":_=v[g++],S=v[g++],b=v[g++],x=v[g++],w=v[g++],T=e,C=n,e=v[g++],n=v[g++],h=s.A,iS(T,C,e,n,x,w,_,S,b,h,t);break;case"a":_=v[g++],S=v[g++],b=v[g++],x=v[g++],w=v[g++],T=e,C=n,e+=v[g++],n+=v[g++],h=s.A,iS(T,C,e,n,x,w,_,S,b,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),e=a,n=i),o=h}return t.toStatic(),t}var L2=function(r){Xe(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(we);function P2(r){return r.setData!=null}function E2(r,t){var e=nF(r),n=B({},t);return n.buildPath=function(a){if(P2(a)){a.setData(e.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;e.rebuildPath(i,1)}},n.applyTransform=function(a){I2(e,a),this.dirtyShape()},n}function R2(r,t){return new L2(E2(r,t))}function aF(r,t){var e=E2(r,t),n=function(a){Xe(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i}(L2);return n}function iF(r,t){for(var e=[],n=r.length,a=0;a<n;a++){var i=r[a];e.push(i.getUpdatedPathProxy(!0))}var o=new we(t);return o.createPathProxy(),o.buildPath=function(s){if(P2(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Cm(r,t){t=t||{};var e=new we;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?I2(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var oF=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),k2=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new oF},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(we);k2.prototype.type="circle";const mn=k2;var sF=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),O2=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new sF},t.prototype.buildPath=function(e,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),e.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),e.closePath()},t}(we);O2.prototype.type="ellipse";const Mm=O2;var N2=Math.PI,rd=N2*2,Ka=Math.sin,lo=Math.cos,lF=Math.acos,It=Math.atan2,oS=Math.abs,ml=Math.sqrt,rl=Math.max,Jr=Math.min,kr=1e-4;function uF(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,h=c*l-f*u;if(!(h*h<kr))return h=(f*(t-i)-c*(r-a))/h,[r+h*l,t+h*u]}function ju(r,t,e,n,a,i,o){var s=r-e,l=t-n,u=(o?i:-i)/ml(s*s+l*l),f=u*l,c=-u*s,h=r+f,v=t+c,d=e+f,p=n+c,g=(h+d)/2,y=(v+p)/2,m=d-h,_=p-v,S=m*m+_*_,b=a-i,x=h*p-d*v,w=(_<0?-1:1)*ml(rl(0,b*b*S-x*x)),T=(x*_-m*w)/S,C=(-x*m-_*w)/S,A=(x*_+m*w)/S,M=(-x*m+_*w)/S,I=T-g,L=C-y,P=A-g,E=M-y;return I*I+L*L>P*P+E*E&&(T=A,C=M),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(a/b-1),y1:C*(a/b-1)}}function fF(r){var t;if(z(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function cF(r,t){var e,n=rl(t.r,0),a=rl(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,v=oS(u-l),d=v>rd&&v%rd;if(d>kr&&(v=d),!(n>kr))r.moveTo(f,c);else if(v>rd-kr)r.moveTo(f+n*lo(l),c+n*Ka(l)),r.arc(f,c,n,l,u,!h),a>kr&&(r.moveTo(f+a*lo(u),c+a*Ka(u)),r.arc(f,c,a,u,l,h));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,A=void 0,M=void 0,I=void 0,L=void 0,P=void 0,E=n*lo(l),R=n*Ka(l),N=a*lo(u),k=a*Ka(u),V=v>kr;if(V){var H=t.cornerRadius;H&&(e=fF(H),p=e[0],g=e[1],y=e[2],m=e[3]);var U=oS(n-a)/2;if(_=Jr(U,y),S=Jr(U,m),b=Jr(U,p),x=Jr(U,g),C=w=rl(_,S),A=T=rl(b,x),(w>kr||T>kr)&&(M=n*lo(u),I=n*Ka(u),L=a*lo(l),P=a*Ka(l),v<N2)){var q=uF(E,R,L,P,M,I,N,k);if(q){var ee=E-q[0],te=R-q[1],_e=M-q[0],Ae=I-q[1],Se=1/Ka(lF((ee*_e+te*Ae)/(ml(ee*ee+te*te)*ml(_e*_e+Ae*Ae)))/2),ae=ml(q[0]*q[0]+q[1]*q[1]);C=Jr(w,(n-ae)/(Se+1)),A=Jr(T,(a-ae)/(Se-1))}}}if(!V)r.moveTo(f+E,c+R);else if(C>kr){var xe=Jr(y,C),he=Jr(m,C),K=ju(L,P,E,R,n,xe,h),ve=ju(M,I,N,k,n,he,h);r.moveTo(f+K.cx+K.x0,c+K.cy+K.y0),C<w&&xe===he?r.arc(f+K.cx,c+K.cy,C,It(K.y0,K.x0),It(ve.y0,ve.x0),!h):(xe>0&&r.arc(f+K.cx,c+K.cy,xe,It(K.y0,K.x0),It(K.y1,K.x1),!h),r.arc(f,c,n,It(K.cy+K.y1,K.cx+K.x1),It(ve.cy+ve.y1,ve.cx+ve.x1),!h),he>0&&r.arc(f+ve.cx,c+ve.cy,he,It(ve.y1,ve.x1),It(ve.y0,ve.x0),!h))}else r.moveTo(f+E,c+R),r.arc(f,c,n,l,u,!h);if(!(a>kr)||!V)r.lineTo(f+N,c+k);else if(A>kr){var xe=Jr(p,A),he=Jr(g,A),K=ju(N,k,M,I,a,-he,h),ve=ju(E,R,L,P,a,-xe,h);r.lineTo(f+K.cx+K.x0,c+K.cy+K.y0),A<T&&xe===he?r.arc(f+K.cx,c+K.cy,A,It(K.y0,K.x0),It(ve.y0,ve.x0),!h):(he>0&&r.arc(f+K.cx,c+K.cy,he,It(K.y0,K.x0),It(K.y1,K.x1),!h),r.arc(f,c,a,It(K.cy+K.y1,K.cx+K.x1),It(ve.cy+ve.y1,ve.cx+ve.x1),h),xe>0&&r.arc(f+ve.cx,c+ve.cy,xe,It(ve.y1,ve.x1),It(ve.y0,ve.x0),!h))}else r.lineTo(f+N,c+k),r.arc(f,c,a,u,l,h)}r.closePath()}}}var hF=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),B2=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new hF},t.prototype.buildPath=function(e,n){cF(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(we);B2.prototype.type="sector";const Kt=B2;var vF=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),V2=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new vF},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,o,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,o,!0)},t}(we);V2.prototype.type="ring";const kh=V2;function dF(r,t,e,n){var a=[],i=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=r.length;h<v;h++)ca(f,f,r[h]),ha(c,c,r[h]);ca(f,f,n[0]),ha(c,c,n[1])}for(var h=0,v=r.length;h<v;h++){var d=r[h];if(e)l=r[h?h-1:v-1],u=r[(h+1)%v];else if(h===0||h===v-1){a.push(En(r[h]));continue}else l=r[h-1],u=r[h+1];_i(i,u,l),Uf(i,i,t);var p=tg(d,l),g=tg(d,u),y=p+g;y!==0&&(p/=y,g/=y),Uf(o,i,-p),Uf(s,i,g);var m=Q_([],d,o),_=Q_([],d,s);n&&(ha(m,m,f),ca(m,m,c),ha(_,_,f),ca(_,_,c)),a.push(m),a.push(_)}return e&&a.push(a.shift()),a}function z2(r,t,e){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=dF(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)r.lineTo(a[s][0],a[s][1])}e&&r.closePath()}}var pF=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),G2=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new pF},t.prototype.buildPath=function(e,n){z2(e,n,!0)},t}(we);G2.prototype.type="polygon";const Qt=G2;var gF=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),F2=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gF},t.prototype.buildPath=function(e,n){z2(e,n,!1)},t}(we);F2.prototype.type="polyline";const Jt=F2;var yF={},mF=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),H2=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new mF},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=d2(yF,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(we);H2.prototype.type="line";const _t=H2;var Ut=[],_F=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function sS(r,t,e){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(e?f1:ht)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?f1:ht)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?sg:gt)(r.x1,r.cpx1,r.x2,t),(e?sg:gt)(r.y1,r.cpy1,r.y2,t)]}var W2=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new _F},t.prototype.buildPath=function(e,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(e.moveTo(a,i),f==null||c==null?(h<1&&(Rl(a,l,o,h,Ut),l=Ut[1],o=Ut[2],Rl(i,u,s,h,Ut),u=Ut[1],s=Ut[2]),e.quadraticCurveTo(l,u,o,s)):(h<1&&(Aa(a,l,f,o,h,Ut),l=Ut[1],f=Ut[2],o=Ut[3],Aa(i,u,c,s,h,Ut),u=Ut[1],c=Ut[2],s=Ut[3]),e.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(e){return sS(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=sS(this.shape,e,!0);return as(n,n)},t}(we);W2.prototype.type="bezier-curve";const Oh=W2;var SF=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),U2=function(r){Xe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new SF},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);e.moveTo(f*o+a,c*o+i),e.arc(a,i,o,s,l,!u)},t}(we);U2.prototype.type="arc";const Dm=U2;var xF=function(r){Xe(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),a=0;a<e.length;a++)n=n||e[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<e.length;a++)e[a].path||e[a].createPathProxy(),e[a].path.setScale(n[0],n[1],e[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(e,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),we.prototype.getBoundingRect.call(this)},t}(we);const Im=xF;var bF=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}();const $2=bF;var wF=function(r){Xe(t,r);function t(e,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}($2);const ls=wF;var TF=function(r){Xe(t,r);function t(e,n,a,i,o){var s=r.call(this,i)||this;return s.x=e??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}($2);const Y2=TF;var Qa=[0,0],Ja=[0,0],Ku=new de,Qu=new de,AF=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new de;for(var n=0;n<2;n++)this._axes[n]=new de;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),e)for(var u=0;u<4;u++)n[u].transform(e);de.sub(a[0],n[1],n[0]),de.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,a=!e;return Ku.set(1/0,1/0),Qu.set(0,0),!this._intersectCheckOneSide(this,t,Ku,Qu,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,Ku,Qu,a,-1)&&(n=!1,a)||a||de.copy(e,n?Ku:Qu),n},r.prototype._intersectCheckOneSide=function(t,e,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Qa),this._getProjMinMaxOnAxis(l,e._corners,Ja),Qa[1]<Ja[0]||Qa[0]>Ja[1]){if(s=!1,i)return s;var f=Math.abs(Ja[0]-Qa[1]),c=Math.abs(Qa[0]-Ja[1]);Math.min(f,c)>a.len()&&(f<c?de.scale(a,u,-f*o):de.scale(a,u,c*o))}else if(n){var f=Math.abs(Ja[0]-Qa[1]),c=Math.abs(Qa[0]-Ja[1]);Math.min(f,c)<n.len()&&(f<c?de.scale(n,u,f*o):de.scale(n,u,-c*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var a=this._axes[t],i=this._origin,o=e[0].dot(a)+i[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(a)+i[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}();const Cc=AF;var CF=[],MF=function(r){Xe(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var a=0;a<e.length;a++)this.addDisplayable(e[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ye(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(CF)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,n))return!0}return!1},t}(Dr);const DF=MF;var X2=Ie();function us(r,t,e,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=pe(n.duration,200),f=pe(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),J(c)&&(c=c(e,a)),J(u)&&(u=u(e));var h={duration:u||0,delay:c,easing:f};return h}else return null}function Lm(r,t,e,n,a,i,o){var s=!1,l;J(a)?(o=i,i=a,a=null):ne(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=us(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function ke(r,t,e,n,a,i){Lm("update",r,t,e,n,a,i)}function Ze(r,t,e,n,a,i){Lm("enter",r,t,e,n,a,i)}function Oo(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Ca(r,t,e,n,a,i){Oo(r)||Lm("leave",r,t,e,n,a,i)}function lS(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),Ca(r,{style:{opacity:0}},t,e,n)}function Gl(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||lS(a,t,e,n)}):lS(r,t,e,n)}function Xr(r){X2(r).oldStyle=r.style}function IF(r){return X2(r).oldStyle}var Mc=Math.max,Dc=Math.min,Lg={};function LF(r){return we.extend(r)}var PF=aF;function EF(r,t){return PF(r,t)}function Zr(r,t){Lg[r]=t}function Pm(r){if(Lg.hasOwnProperty(r))return Lg[r]}function Nh(r,t,e,n){var a=R2(r,t);return e&&(n==="center"&&(e=q2(e,a.getBoundingRect())),j2(a,e)),a}function Z2(r,t,e){var n=new Mt({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(e==="center"){var i={width:a.width,height:a.height};n.setStyle(q2(t,i))}}});return n}function q2(r,t){var e=t.width/t.height,n=r.height*e,a;n<=r.width?a=r.height:(n=r.width,a=n/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var _r=iF;function j2(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Uo(r,t){return d2(r,r,{lineWidth:t}),r}function RF(r){return p2(r.shape,r.shape,r.style),r}var ec=Si;function Ei(r,t){for(var e=Ah([]);r&&r!==t;)Rn(e,r.getLocalTransform(),e),r=r.parent;return e}function $r(r,t,e){return t&&!Et(t)&&(t=In.getLocalTransform(t)),e&&(t=is([],t)),wt([],r,t)}function Bh(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=$r(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function uS(r){return!r.isGroup}function kF(r){return r.shape!=null}function pu(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){uS(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return kF(o)&&(s.shape=B({},o.shape)),s}var i=n(r);t.traverse(function(o){if(uS(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ke(o,l,e,ue(o).dataIndex)}}})}function K2(r,t){return G(r,function(e){var n=e[0];n=Mc(n,t.x),n=Dc(n,t.x+t.width);var a=e[1];return a=Mc(a,t.y),a=Dc(a,t.y+t.height),[n,a]})}function OF(r,t){var e=Mc(r.x,t.x),n=Dc(r.x+r.width,t.x+t.width),a=Mc(r.y,t.y),i=Dc(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function gu(r,t,e){var n=B({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),re(a,e),new Mt(n)):Nh(r.replace("path://",""),n,e,"center")}function nl(r,t,e,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(Q2(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Q2(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,h=nd(f,c,l,u);if(NF(h))return!1;var v=r-a,d=t-i,p=nd(v,d,l,u)/h;if(p<0||p>1)return!1;var g=nd(v,d,f,c)/h;return!(g<0||g>1)}function nd(r,t,e,n){return r*n-e*t}function NF(r){return r<=1e-6&&r>=-1e-6}function fs(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=Y(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&D(Te(l),function(f){Z(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ue(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:re({content:n,formatterParams:s},a)}}function fS(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Oa(r,t){if(r)if(z(r))for(var e=0;e<r.length;e++)fS(r[e],t);else fS(r,t)}Zr("circle",mn);Zr("ellipse",Mm);Zr("sector",Kt);Zr("ring",kh);Zr("polygon",Qt);Zr("polyline",Jt);Zr("rect",De);Zr("line",_t);Zr("bezierCurve",Oh);Zr("arc",Dm);const yu=Object.freeze(Object.defineProperty({__proto__:null,Arc:Dm,BezierCurve:Oh,BoundingRect:ye,Circle:mn,CompoundPath:Im,Ellipse:Mm,Group:oe,Image:Mt,IncrementalDisplayable:DF,Line:_t,LinearGradient:ls,OrientedBoundingRect:Cc,Path:we,Point:de,Polygon:Qt,Polyline:Jt,RadialGradient:Y2,Rect:De,Ring:kh,Sector:Kt,Text:Ee,applyTransform:$r,clipPointsByRect:K2,clipRectByRect:OF,createIcon:gu,extendPath:EF,extendShape:LF,getShapeClass:Pm,getTransform:Ei,groupTransition:pu,initProps:Ze,isElementRemoved:Oo,lineLineIntersect:Q2,linePolygonIntersect:nl,makeImage:Z2,makePath:Nh,mergePath:_r,registerShape:Zr,removeElement:Ca,removeElementWithFadeOut:Gl,resizePath:j2,setTooltipConfig:fs,subPixelOptimize:ec,subPixelOptimizeLine:Uo,subPixelOptimizeRect:RF,transformDirection:Bh,traverseElements:Oa,updateProps:ke},Symbol.toStringTag,{value:"Module"}));var Vh={};function J2(r,t){for(var e=0;e<Ht.length;e++){var n=Ht[e],a=t[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Pg(r,t,e){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=J(r.defaultText)?r.defaultText(a,r,e):r.defaultText);for(var l={normal:s},u=0;u<Ht.length;u++){var f=Ht[u],c=t[f];l[f]=pe(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function Ct(r,t,e,n){e=e||Vh;for(var a=r instanceof Ee,i=!1,o=0;o<Vl.length;o++){var s=t[Vl[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new Ee,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Pg(e,t),f=t.normal,c=!!f.getShallow("show"),h=We(f,n&&n.normal,e,!1,!a);h.text=u.normal,a||r.setTextConfig(Ic(f,e,!1));for(var o=0;o<Ht.length;o++){var v=Ht[o],s=t[v];if(s){var d=l.ensureState(v),p=!!pe(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=We(s,n&&n[v],e,!0,!a),d.style.text=u[v],!a){var g=r.ensureState(v);g.textConfig=Ic(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),e.enableTextSetter&&(cs(l).setLabelText=function(y){var m=Pg(e,t,y);J2(l,m)})}else l&&(l.ignore=!0);r.dirty()}function dt(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<Ht.length;n++){var a=Ht[n];e[a]=r.getModel([a,t])}return e}function We(r,t,e,n,a){var i={};return BF(i,r,e,n,a),t&&B(i,t),i}function Ic(r,t,e){t=t||{};var n={},a,i=r.getShallow("rotate"),o=pe(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(e?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function BF(r,t,e,n,a){e=e||Vh;var i=t.ecModel,o=i&&i.option.textStyle,s=VF(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);dS(l[u]={},f,o,e,n,a,!1,!0)}}l&&(r.rich=l);var c=t.get("overflow");c&&(r.overflow=c);var h=t.get("minMargin");h!=null&&(r.margin=h),dS(r,t,o,e,n,a,!0,!1)}function VF(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Vh).rich;if(e){t=t||{};for(var n=Te(e),a=0;a<n.length;a++){var i=n[a];t[i]=1}}r=r.parentModel}return t}var cS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],hS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],vS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function dS(r,t,e,n,a,i,o,s){e=!a&&e||Vh;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=pe(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),i||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var h=pe(t.getShallow("textBorderWidth"),e.textBorderWidth);h!=null&&(r.lineWidth=h);var v=pe(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=pe(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!a&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(r.opacity=c),!a&&!i&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var p=0;p<cS.length;p++){var g=cS[p],y=pe(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<hS.length;p++){var g=hS[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var p=0;p<vS.length;p++){var g=vS[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function eD(r,t){var e=t&&t.getModel("textStyle");return Fr([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var cs=Ie();function tD(r,t,e,n){if(r){var a=cs(r);a.prevValue=a.value,a.value=e;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function rD(r,t,e,n,a){var i=cs(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=pe(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=n2(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=Pg({labelDataIndex:t,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);J2(r,h)}r.percent=0,(i.prevValue==null?Ze:ke)(r,{percent:1},n,t,null,u)}var zF=["textStyle","color"],ad=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],id=new Ee,GF=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(zF):null)},r.prototype.getFont=function(){return eD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ad.length;n++)e[ad[n]]=this.getShallow(ad[n]);return id.useStyle(e),id.update(),id.getBoundingRect()},r}();const FF=GF;var nD=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],HF=Fi(nD),WF=function(){function r(){}return r.prototype.getLineStyle=function(t){return HF(this,t)},r}(),aD=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],UF=Fi(aD),$F=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return UF(this,t,e)},r}(),ji=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){ge(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,a=n==null?n:n[t];if(a==null&&!e){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},r.prototype.getModel=function(t,e){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(ie(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!Pe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();_m(ji);$4(ji);lt(ji,WF);lt(ji,$F);lt(ji,j4);lt(ji,FF);const Ue=ji;var YF=Math.round(Math.random()*10);function hs(r){return[r||"",YF++].join("_")}function XF(r){var t={};r.registerSubTypeDefaulter=function(e,n){var a=ln(e);t[a.main]=n},r.determineSubType=function(e,n){var a=n.type;if(!a){var i=ln(e).main;r.hasSubTypes(e)&&t[i]&&(a=t[i](n))}return a}}function ZF(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,c=u.noEntryList,h={};for(D(i,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),D(d.successor,p?y:g)}D(h,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){h[m]=!0,g(m)}};function e(i){var o={},s=[];return D(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),D(c,function(h){me(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);me(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return D(i,function(l){me(o,l)>=0&&s.push(l)}),s}}function Na(r,t){return ge(ge({},r,!0),t,!0)}const qF={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},jF={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Lc="ZH",Em="EN",Fl=Em,tc={},Rm={},iD=Pe.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Lc)>-1?Lc:Fl}():Fl;function oD(r,t){r=r.toUpperCase(),Rm[r]=new Ue(t),tc[r]=t}function KF(r){if(Y(r)){var t=tc[r.toUpperCase()]||{};return r===Lc||r===Em?ie(t):ge(ie(t),ie(tc[Fl]),!1)}else return ge(ie(r),ie(tc[Fl]),!1)}function Eg(r){return Rm[r]}function QF(){return Rm[Fl]}oD(Em,qF);oD(Lc,jF);var km=1e3,Om=km*60,_l=Om*60,Sr=_l*24,pS=Sr*365,al={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ju="{yyyy}-{MM}-{dd}",gS={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ju,hour:Ju+" "+al.hour,minute:Ju+" "+al.minute,second:Ju+" "+al.second,millisecond:al.none},od=["year","month","day","hour","minute","second","millisecond"],sD=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Kn(r,t){return r+="","0000".substr(0,t-r.length)+r}function No(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function JF(r){return r===No(r)}function eH(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function zh(r,t,e,n){var a=gn(r),i=a[Nm(e)](),o=a[Bo(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Gh(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[Hl(e)](),c=(f-1)%12+1,h=a[Fh(e)](),v=a[Hh(e)](),d=a[Wh(e)](),p=n instanceof Ue?n:Eg(n||iD)||QF(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Kn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Kn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Kn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Kn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Kn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Kn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Kn(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Kn(d,3)).replace(/{S}/g,d+"")}function tH(r,t,e,n,a){var i=null;if(Y(e))i=e;else if(J(e))i=e(r.value,t,{level:r.level});else{var o=B({},al);if(r.level>0)for(var s=0;s<od.length;++s)o[od[s]]="{primary|"+o[od[s]]+"}";var l=e?e.inherit===!1?e:re(e,o):o,u=lD(r.value,a);if(l[u])i=l[u];else if(l.inherit){for(var f=sD.indexOf(u),s=f-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return zh(new Date(r.value),i,a,n)}function lD(r,t){var e=gn(r),n=e[Bo(t)]()+1,a=e[Gh(t)](),i=e[Hl(t)](),o=e[Fh(t)](),s=e[Hh(t)](),l=e[Wh(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function yS(r,t,e){var n=Re(r)?gn(r):r;switch(t=t||lD(r,e),t){case"year":return n[Nm(e)]();case"half-year":return n[Bo(e)]()>=6?1:0;case"quarter":return Math.floor((n[Bo(e)]()+1)/4);case"month":return n[Bo(e)]();case"day":return n[Gh(e)]();case"half-day":return n[Hl(e)]()/24;case"hour":return n[Hl(e)]();case"minute":return n[Fh(e)]();case"second":return n[Hh(e)]();case"millisecond":return n[Wh(e)]()}}function Nm(r){return r?"getUTCFullYear":"getFullYear"}function Bo(r){return r?"getUTCMonth":"getMonth"}function Gh(r){return r?"getUTCDate":"getDate"}function Hl(r){return r?"getUTCHours":"getHours"}function Fh(r){return r?"getUTCMinutes":"getMinutes"}function Hh(r){return r?"getUTCSeconds":"getSeconds"}function Wh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function rH(r){return r?"setUTCFullYear":"setFullYear"}function uD(r){return r?"setUTCMonth":"setMonth"}function fD(r){return r?"setUTCDate":"setDate"}function cD(r){return r?"setUTCHours":"setHours"}function hD(r){return r?"setUTCMinutes":"setMinutes"}function vD(r){return r?"setUTCSeconds":"setSeconds"}function dD(r){return r?"setUTCMilliseconds":"setMilliseconds"}function pD(r){if(!qM(r))return Y(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function gD(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var vs=lm;function Rg(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Fr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?gn(r):r;if(isNaN(+l)){if(s)return"-"}else return zh(l,n,e)}if(t==="ordinal")return Kp(r)?a(r):Re(r)&&i(r)?r+"":"-";var u=Vn(r);return i(u)?pD(u):Kp(r)?a(r):typeof r=="boolean"?r+"":"-"}var mS=["a","b","c","d","e","f","g"],sd=function(r,t){return"{"+r+(t??"")+"}"};function yD(r,t,e){z(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=mS[i];r=r.replace(sd(o),sd(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];r=r.replace(sd(mS[l],s),e?Xt(u):u)}return r}function nH(r,t,e){return D(t,function(n,a){r=r.replace("{"+a+"}",e?Xt(n):n)}),r}function aH(r,t){var e=Y(r)?{color:r,extraCssText:t}:r||{},n=e.color,a=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Xt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Xt(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|}  ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Wi(r,t){return t=t||"transparent",Y(r)?r:ne(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Pc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var rc=D,mD=["left","right","top","bottom","width","height"],bi=[["width","left","right"],["height","top","bottom"]];function Bm(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Ri=Bm;fe(Bm,"vertical");fe(Bm,"horizontal");function iH(r,t,e){var n=t.width,a=t.height,i=W(r.left,n),o=W(r.top,a),s=W(r.right,n),l=W(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),e=vs(e||0),{width:Math.max(s-i-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function ct(r,t,e){e=vs(e||0);var n=t.width,a=t.height,i=W(r.left,n),o=W(r.top,a),s=W(r.right,n),l=W(r.bottom,a),u=W(r.width,n),f=W(r.height,a),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new ye(i+e[3],o+e[0],u,f);return d.margin=e,d}function Uh(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ye(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=ct(re({width:u.width,height:u.height},t),e,n),h=o?c.x-u.x:0,v=s?c.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function oH(r,t){return r[bi[t][0]]!=null||r[bi[t][1]]!=null&&r[bi[t][2]]!=null}function Wl(r){var t=r.layoutMode||r.constructor.layoutMode;return ne(t)?t:t?{type:t}:null}function Ma(r,t,e){var n=e&&e.ignoreSize;!z(n)&&(n=[n,n]);var a=o(bi[0],0),i=o(bi[1],1);u(bi[0],r,a),u(bi[1],r,i);function o(f,c){var h={},v=0,d={},p=0,g=2;if(rc(f,function(_){d[_]=r[_]}),rc(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var y=0;y<f.length;y++){var m=f[y];if(!s(h,m)&&s(r,m)){h[m]=r[m];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){rc(f,function(v){c[v]=h[v]})}}function ds(r){return _D({},r)}function _D(r,t){return t&&r&&rc(mD,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var sH=Ie(),ps=function(r){O(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.uid=hs("ec_cpt_model"),i}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Wl(this),i=a?ds(e):{},o=n.getTheme();ge(e,o.get(this.mainType)),ge(e,this.getDefaultOption()),a&&Ma(e,i,a)},t.prototype.mergeOption=function(e,n){ge(this.option,e,!0);var a=Wl(this);a&&Ma(this.option,e,a)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!H4(e))return e.defaultOption;var n=sH(this);if(!n.defaultOption){for(var a=[],i=e;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=ge(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return vu(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Ue);i2(ps,Ue);Dh(ps);XF(ps);ZF(ps,lH);function lH(r){var t=[];return D(ps.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=G(t,function(e){return ln(e).main}),r!=="dataset"&&me(t,"dataset")<=0&&t.unshift("dataset"),t}const Le=ps;var SD="";typeof navigator<"u"&&(SD=navigator.platform||"");var uo="rgba(0, 0, 0, 0.2)";const uH={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:uo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:uo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:uo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:uo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:uo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:uo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:SD.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var xD=j(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Lr="original",Rt="arrayRows",Pr="objectRows",Sn="keyedColumns",Sa="typedArray",bD="unknown",hn="column",gs="row",xt={Must:1,Might:2,Not:3},wD=Ie();function fH(r){wD(r).datasetMap=j()}function TD(r,t,e){var n={},a=zm(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=wD(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),D(r,function(p,g){var y=ne(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});D(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=h.valueWayDim;v(n[y],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(i,0,m);else{var _=h.categoryWayDim;v(n[y],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function Vm(r,t,e){var n={},a=zm(r);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Pr||i===Sn)&&D(o,function(f,c){(ne(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},h=[],v=0,d=Math.min(5,e);v<d;v++){var p=CD(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);h.push(p);var g=p===xt.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&h[f.n]===xt.Not)&&(f.n=v),y(f)&&h[f.n]!==xt.Not)return f;g||(p===xt.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function zm(r){var t=r.get("data",!0);if(!t)return vu(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ot).models[0]}function cH(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:vu(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ot).models}function AD(r,t){return CD(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function CD(r,t,e,n,a,i){var o,s=5;if(ir(r))return xt.Not;var l,u;if(n){var f=n[i];ne(f)?(l=f.name,u=f.type):Y(f)&&(l=f)}if(u!=null)return u==="ordinal"?xt.Must:xt.Not;if(t===Rt){var c=r;if(e===gs){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[a+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[a+v];if(d&&(o=S(d[i]))!=null)return o}}else if(t===Pr){var p=r;if(!l)return xt.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Sn){var y=r;if(!l)return xt.Not;var h=y[l];if(!h||ir(h))return xt.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(t===Lr)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=os(g);if(!z(_))return xt.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=Y(b);if(b!=null&&isFinite(b)&&b!=="")return x?xt.Might:xt.Not;if(x&&b!=="-")return xt.Must}return xt.Not}var kg=j();function hH(r,t){Ft(kg.get(r)==null&&t),kg.set(r,t)}function vH(r,t,e){var n=kg.get(t);if(!n)return e;var a=n(r);return a?e.concat(a):e}var _S=Ie(),dH=Ie(),Gm=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var a=Ge(this.get("color",!0)),i=this.get("colorLayer",!0);return MD(this,_S,a,i,t,e,n)},r.prototype.clearColorPalette=function(){gH(this,_S)},r}();function Og(r,t,e,n){var a=Ge(r.get(["aria","decal","decals"]));return MD(r,dH,a,null,t,e,n)}function pH(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function MD(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:pH(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function gH(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var ef,Ps,SS,xS="\0_ec_inner",yH=1,DD=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ue(i),this._locale=new Ue(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=TS(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,TS(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?SS(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&D(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=j(),u=n&&n.replaceMergeMainTypeMap;fH(this),D(e,function(c,h){c!=null&&(Le.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?ie(c):ge(a[h],c,!0))}),u&&u.each(function(c,h){Le.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Le.topologicalTravel(s,Le.getAllClassMainTypes(),f,this);function f(c){var h=vH(this,c,Ge(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=e2(v,h,d);R4(p,c,Le),a[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;D(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",C=Le.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=B({componentIndex:b},S.keyInfo);x=new C(w,this,this,A),B(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),a[c]=g,i.set(c,y),o.set(c,m),c==="series"&&ef(this)}this._seriesIndices||ef(this)},t.prototype.getOption=function(){var e=ie(this.option);return D(e,function(n,a){if(Le.hasClass(a)){for(var i=Ge(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Nl(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[xS],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var a=e.index,i=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],D(Ge(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=bS("id",i,s):o!=null?l=bS("name",o,s):l=ze(s,function(u){return!!u}),wS(l,e)},t.prototype.findComponents=function(e){var n=e.query,a=e.mainType,i=s(n),o=i?this.queryComponents(i):ze(this._componentsMap.get(a),function(u){return!!u});return l(wS(o,e));function s(u){var f=a+"Index",c=a+"Id",h=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:a,index:u[f],id:u[c],name:u[h]}:null}function l(u){return e.filter?ze(u,e.filter):u}},t.prototype.eachComponent=function(e,n,a){var i=this._componentsMap;if(J(e)){var o=n,s=e;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=Y(e)?i.get(e):ne(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=ut(e,null);return ze(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return ze(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return ze(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Ps(this),D(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];e.call(n,i,a)},this)},t.prototype.eachRawSeries=function(e,n){D(this._componentsMap.get("series"),function(a){a&&e.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,a){Ps(this),D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,n,a){return D(this.getSeriesByType(e),n,a)},t.prototype.isSeriesFiltered=function(e){return Ps(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Ps(this);var a=[];D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=j(a)},t.prototype.restoreData=function(e){ef(this);var n=this._componentsMap,a=[];n.each(function(i,o){Le.hasClass(o)&&a.push(o)}),Le.topologicalTravel(a,Le.getAllClassMainTypes(),function(i){D(n.get(i),function(o){o&&(i!=="series"||!mH(o,e))&&o.restoreData()})})},t.internalField=function(){ef=function(e){var n=e._seriesIndices=[];D(e._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),e._seriesIndicesMap=j(n)},Ps=function(e){},SS=function(e,n){e.option={},e.option[xS]=yH,e._componentsMap=j({series:[]}),e._componentsCount=j();var a=n.aria;ne(a)&&a.enabled==null&&(a.enabled=!0),_H(n,e._theme.option),ge(n,uH,!1),e._mergeOption(n,null)}}(),t}(Ue);function mH(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,a=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||a!=null&&r.name!==a}}function _H(r,t){var e=r.color&&!r.colorLayer;D(t,function(n,a){a==="colorLayer"&&e||Le.hasClass(a)||(typeof n=="object"?r[a]=r[a]?ge(r[a],n,!1):ie(n):r[a]==null&&(r[a]=n))})}function bS(r,t,e){if(z(t)){var n=j();return D(t,function(i){if(i!=null){var o=ut(i,null);o!=null&&n.set(i,!0)}}),ze(e,function(i){return i&&n.get(i[r])})}else{var a=ut(t,null);return ze(e,function(i){return i&&a!=null&&i[r]===a})}}function wS(r,t){return t.hasOwnProperty("subType")?ze(r,function(e){return e&&e.subType===t.subType}):r}function TS(r){var t=j();return r&&D(Ge(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}lt(DD,Gm);const ID=DD;var SH=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],xH=function(){function r(t){D(SH,function(e){this[e]=X(t[e],t)},this)}return r}();const LD=xH;var ld={},bH=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];D(ld,function(a,i){var o=a.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){D(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){ld[t]=e},r.get=function(t){return ld[t]},r}();const mu=bH;var wH=/^(min|max)?(.+)$/,TH=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(D(Ge(t.series),function(o){o&&o.data&&ir(o.data)&&dc(o.data)}),D(Ge(t.dataset),function(o){o&&o.source&&ir(o.source)&&dc(o.source)})),t=ie(t);var a=this._optionBackup,i=AH(t,e,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],ie(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(e=ie(n[a.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)CH(a[l].query,e,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!DH(o,this._currentMediaIndices)&&(s=G(o,function(f){return ie(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r}();function AH(r,t,e){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&z(u)&&D(u,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),h(i),D(l,function(v){return h(v)}),D(n,function(v){return h(v.option)});function h(v){D(t,function(d){d(v,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function CH(r,t,e){var n={width:t,height:e,aspectratio:t/e},a=!0;return D(r,function(i,o){var s=o.match(wH);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();MH(n[u],i,l)||(a=!1)}}),a}function MH(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function DH(r,t){return r.join(",")===t.join(",")}const IH=TH;var Er=D,Ul=ne,AS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ud(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=AS.length;e<n;e++){var a=AS[e],i=t.normal,o=t.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?ge(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?ge(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Pt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,a=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,re(r[t],n)):r[t]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[t]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function il(r){Pt(r,"itemStyle"),Pt(r,"lineStyle"),Pt(r,"areaStyle"),Pt(r,"label"),Pt(r,"labelLine"),Pt(r,"upperLabel"),Pt(r,"edgeLabel")}function it(r,t){var e=Ul(r)&&r[t],n=Ul(e)&&e.textStyle;if(n)for(var a=0,i=I1.length;a<i;a++){var o=I1[a];n.hasOwnProperty(o)&&(e[o]=n[o])}}function vr(r){r&&(il(r),it(r,"label"),r.emphasis&&it(r.emphasis,"label"))}function LH(r){if(Ul(r)){ud(r),il(r),it(r,"label"),it(r,"upperLabel"),it(r,"edgeLabel"),r.emphasis&&(it(r.emphasis,"label"),it(r.emphasis,"upperLabel"),it(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(ud(t),vr(t));var e=r.markLine;e&&(ud(e),vr(e));var n=r.markArea;n&&vr(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!ir(i))for(var o=0;o<i.length;o++)vr(i[o]);D(r.categories,function(u){il(u)})}if(a&&!ir(a))for(var o=0;o<a.length;o++)vr(a[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)vr(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)z(l[o])?(vr(l[o][0]),vr(l[o][1])):vr(l[o]);r.type==="gauge"?(it(r,"axisLabel"),it(r,"title"),it(r,"detail")):r.type==="treemap"?(Pt(r.breadcrumb,"itemStyle"),D(r.levels,function(u){il(u)})):r.type==="tree"&&il(r.leaves)}}function Tn(r){return z(r)?r:r?[r]:[]}function CS(r){return(z(r)?r[0]:r)||{}}function PH(r,t){Er(Tn(r.series),function(n){Ul(n)&&LH(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Er(e,function(n){Er(Tn(r[n]),function(a){a&&(it(a,"axisLabel"),it(a.axisPointer,"label"))})}),Er(Tn(r.parallel),function(n){var a=n&&n.parallelAxisDefault;it(a,"axisLabel"),it(a&&a.axisPointer,"label")}),Er(Tn(r.calendar),function(n){Pt(n,"itemStyle"),it(n,"dayLabel"),it(n,"monthLabel"),it(n,"yearLabel")}),Er(Tn(r.radar),function(n){it(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Er(Tn(r.geo),function(n){Ul(n)&&(vr(n),Er(Tn(n.regions),function(a){vr(a)}))}),Er(Tn(r.timeline),function(n){vr(n),Pt(n,"label"),Pt(n,"itemStyle"),Pt(n,"controlStyle",!0);var a=n.data;z(a)&&D(a,function(i){ne(i)&&(Pt(i,"label"),Pt(i,"itemStyle"))})}),Er(Tn(r.toolbox),function(n){Pt(n,"iconStyle"),Er(n.feature,function(a){Pt(a,"iconStyle")})}),it(CS(r.axisPointer),"label"),it(CS(r.tooltip).axisPointer,"label")}function EH(r,t){for(var e=t.split(","),n=r,a=0;a<e.length&&(n=n&&n[e[a]],n!=null);a++);return n}function RH(r,t,e,n){for(var a=t.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=e)}function MS(r){r&&D(kH,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var kH=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],OH=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],fd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Es(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<fd.length;e++){var n=fd[e][1],a=fd[e][0];t[n]!=null&&(t[a]=t[n])}}function DS(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function IS(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function NH(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function PD(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&PD(r[e].children,t)}function ED(r,t){PH(r,t),r.series=Ge(r.series),D(r.series,function(e){if(ne(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),DS(e.label);var a=e.data;if(a&&!ir(a))for(var i=0;i<a.length;i++)DS(a[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=EH(e,"pointer.color");o!=null&&RH(e,"itemStyle.color",o)}else if(n==="bar"){Es(e),Es(e.backgroundStyle),Es(e.emphasis);var a=e.data;if(a&&!ir(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Es(a[i]),Es(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),IS(e),PD(e.data,IS)}else n==="graph"||n==="sankey"?NH(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&re(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),MS(e)}}),r.dataRange&&(r.visualMap=r.dataRange),D(OH,function(e){var n=r[e];n&&(z(n)||(n=[n]),D(n,function(a){MS(a)}))})}function BH(r){var t=j();r.eachSeries(function(e){var n=e.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(VH)}function VH(r){D(r,function(t,e){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return a;var v,d;s?d=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=b4(h,m),p=m;break}}}return n[0]=h,n[1]=p,n})})}var $h=function(){function r(t){this.data=t.data||(t.sourceFormat===Sn?{}:[]),this.sourceFormat=t.sourceFormat||bD,this.seriesLayoutBy=t.seriesLayoutBy||hn,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var a=e[n];a.type==null&&AD(this,n)===xt.Must&&(a.type="ordinal")}}return r}();function Fm(r){return r instanceof $h}function Ng(r,t,e){e=e||RD(r);var n=t.seriesLayoutBy,a=GH(r,e,n,t.sourceHeader,t.dimensions),i=new $h({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ie(t)});return i}function Hm(r){return new $h({data:r,sourceFormat:ir(r)?Sa:Lr})}function zH(r){return new $h({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ie(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function RD(r){var t=bD;if(ir(r))t=Sa;else if(z(r)){r.length===0&&(t=Rt);for(var e=0,n=r.length;e<n;e++){var a=r[e];if(a!=null){if(z(a)){t=Rt;break}else if(ne(a)){t=Pr;break}}}}else if(ne(r)){for(var i in r)if(Z(r,i)&&Et(r[i])){t=Sn;break}}return t}function GH(r,t,e,n,a){var i,o;if(!r)return{dimensionsDefine:LS(a),startIndex:o,dimensionsDetectedCount:i};if(t===Rt){var s=r;n==="auto"||n==null?PS(function(u){u!=null&&u!=="-"&&(Y(u)?o==null&&(o=1):o=0)},e,s,10):o=Re(n)?n:n?1:0,!a&&o===1&&(a=[],PS(function(u,f){a[f]=u!=null?u+"":""},e,s,1/0)),i=a?a.length:e===gs?s.length:s[0]?s[0].length:null}else if(t===Pr)a||(a=FH(r));else if(t===Sn)a||(a=[],D(r,function(u,f){a.push(f)}));else if(t===Lr){var l=os(r[0]);i=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:LS(a),dimensionsDetectedCount:i}}function FH(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Te(e)}function LS(r){if(r){var t=j();return G(r,function(e,n){e=ne(e)?e:{name:e};var a={name:e.name,displayName:e.displayName,type:e.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function PS(r,t,e,n){if(t===gs)for(var a=0;a<e.length&&a<n;a++)r(e[a]?e[a][0]:null,a);else for(var i=e[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function kD(r){var t=r.sourceFormat;return t===Pr||t===Sn}var ei,ti,ri,ES,RS,OD=function(){function r(t,e){var n=Fm(t)?t:Hm(t);this._source=n;var a=this._data=n.data;n.sourceFormat===Sa&&(this._offset=0,this._dimSize=e,this._data=a),RS(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;RS=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=ES[Wm(u,f)];if(B(o,v),u===Sa)o.getItem=e,o.count=a,o.fillStorage=n;else{var d=ND(u,f);o.getItem=X(d,null,s,c,h);var p=BD(u,f);o.count=X(p,null,s,c,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=l[h],m=0;m<g;m++){var _=f[m*c+h];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};ES=(t={},t[Rt+"_"+hn]={pure:!0,appendData:i},t[Rt+"_"+gs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Pr]={pure:!0,appendData:i},t[Sn]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Lr]={appendData:i},t[Sa]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),kS=function(r,t,e,n){return r[n]},HH=(ei={},ei[Rt+"_"+hn]=function(r,t,e,n){return r[n+t]},ei[Rt+"_"+gs]=function(r,t,e,n,a){n+=t;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},ei[Pr]=kS,ei[Sn]=function(r,t,e,n,a){for(var i=a||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];i[o]=l?l[n]:null}return i},ei[Lr]=kS,ei);function ND(r,t){var e=HH[Wm(r,t)];return e}var OS=function(r,t,e){return r.length},WH=(ti={},ti[Rt+"_"+hn]=function(r,t,e){return Math.max(0,r.length-t)},ti[Rt+"_"+gs]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},ti[Pr]=OS,ti[Sn]=function(r,t,e){var n=e[0].name,a=r[n];return a?a.length:0},ti[Lr]=OS,ti);function BD(r,t){var e=WH[Wm(r,t)];return e}var cd=function(r,t,e){return r[t]},UH=(ri={},ri[Rt]=cd,ri[Pr]=function(r,t,e){return r[e]},ri[Sn]=cd,ri[Lr]=function(r,t,e){var n=os(r);return n instanceof Array?n[t]:n},ri[Sa]=cd,ri);function VD(r){var t=UH[r];return t}function Wm(r,t){return r===Rt?r+"_"+t:r}function $o(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=a.getDimensionProperty(o);return VD(i)(n,o,s)}else{var l=n;return i===Lr&&(l=os(n)),l}}}}var $H=/\{@(.+?)\}/g,Um=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),a=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,a,i,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&z(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(J(i))return l.status=e,l.dimensionIndex=a,i(l);if(Y(i)){var f=yD(i,l);return f.replace($H,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=$o(s,t,d);if(o&&z(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return $o(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function NS(r){var t,e;return ne(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Sl(r){return new YH(r)}var YH=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var p=this._progress;if(z(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,a,i){BS.reset(e,n,a,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:BS.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),z(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),BS=function(){var r,t,e,n,a,i={reset:function(l,u,f,c){t=l,r=u,e=f,n=c,a=Math.ceil(n/e),i.next=e>1&&n>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%a*e+Math.ceil(t/a),u=t>=r?null:l<n?l:t;return t++,u}}();function xa(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Re(r)&&r!=null&&r!=="-"&&(r=+gn(r)),r==null||r===""?NaN:+r)}var XH=j({number:function(r){return parseFloat(r)},time:function(r){return+gn(r)},trim:function(r){return Y(r)?Fr(r):r}});function zD(r){return XH.get(r)}var GD={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},ZH=function(){function r(t,e){if(!Re(e)){var n="";Ne(n)}this._opFn=GD[t],this._rvalFloat=Vn(e)}return r.prototype.evaluate=function(t){return Re(t)?this._opFn(t,this._rvalFloat):this._opFn(Vn(t),this._rvalFloat)},r}(),FD=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=Re(t)?t:Vn(t),a=Re(e)?e:Vn(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Y(t),l=Y(e);s&&(n=l?t:0),l&&(a=s?e:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r}(),qH=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Vn(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Vn(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function jH(r,t){return r==="eq"||r==="ne"?new qH(r==="eq",t):Z(GD,r)?new ZH(r,t):null}var KH=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return xa(t,e)},r}();function QH(r,t){var e=new KH,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==hn&&Ne(o);var s=[],l={},u=r.dimensionsDefine;if(u)D(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Z(l,y)&&Ne(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=ND(a,hn);t.__isBuiltIn&&(e.getRawDataItem=function(p){return c(n,i,s,p)},e.getRawData=X(JH,null,r)),e.cloneRawData=X(e6,null,r);var h=BD(a,hn);e.count=X(h,null,n,i,s);var v=VD(a);e.retrieveValue=function(p,g){var y=c(n,i,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return v(p,g,y.name)}};return e.getDimensionInfo=X(t6,null,s,l),e.cloneAllDimensionInfo=X(r6,null,s),e}function JH(r){var t=r.sourceFormat;if(!$m(t)){var e="";Ne(e)}return r.data}function e6(r){var t=r.sourceFormat,e=r.data;if(!$m(t)){var n="";Ne(n)}if(t===Rt){for(var a=[],i=0,o=e.length;i<o;i++)a.push(e[i].slice());return a}else if(t===Pr){for(var a=[],i=0,o=e.length;i<o;i++)a.push(B({},e[i]));return a}}function t6(r,t,e){if(e!=null){if(Re(e)||!isNaN(e)&&!Z(t,e))return r[e];if(Z(t,e))return t[e]}}function r6(r){return ie(r)}var HD=j();function n6(r){r=ie(r);var t=r.type,e="";t||Ne(e);var n=t.split(":");n.length!==2&&Ne(e);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),r.__isBuiltIn=a,HD.set(t,r)}function a6(r,t,e){var n=Ge(r),a=n.length,i="";a||Ne(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=i6(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function i6(r,t,e,n){var a="";t.length||Ne(a),ne(r)||Ne(a);var i=r.type,o=HD.get(i);o||Ne(a);var s=G(t,function(u){return QH(u,o)}),l=Ge(o.transform({upstream:s[0],upstreamList:s,config:ie(r.config)}));return G(l,function(u,f){var c="";ne(u)||Ne(c),u.data||Ne(c);var h=RD(u.data);$m(h)||Ne(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:hn,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:hn,sourceHeader:0,dimensions:u.dimensions};return Ng(u.data,v,null)})}function $m(r){return r===Rt||r===Pr}var Yh="undefined",o6=typeof Uint32Array===Yh?Array:Uint32Array,s6=typeof Uint16Array===Yh?Array:Uint16Array,WD=typeof Int32Array===Yh?Array:Int32Array,VS=typeof Float64Array===Yh?Array:Float64Array,UD={float:VS,int:WD,ordinal:Array,number:Array,time:VS},hd;function Rs(r){return r>65535?o6:s6}function fo(){return[1/0,-1/0]}function l6(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function zS(r,t,e,n,a){var i=UD[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(n)}var Bg=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=j()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=hd[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],kD(a),this._dimensions=G(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===e)return i}else i=a.length;return a[i]={type:e},n.set(t,i),this._chunks[i]=new UD[e||"float"](this._rawCount),this._rawExtent[i]=fo(),i},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=fo());for(var l=i[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=e,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var a=e.count();return e.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=a[u];zS(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var f=a[d],p=hd.arrayRows.call(this,t[v]||c,f.property,v,d);n[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=fo()),zS(i,f,c.type,e,n)}if(a.fillStorage)a.fillStorage(t,e,i,l);else for(var h=[],v=t;v<e;v++){h=a.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],a=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var n=e.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(e[o]<t)a=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),v=e-i[h],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=e[i]}else t=new n(e.buffer,0,a)}else{var n=Rs(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Rs(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<a;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=e(h);else if(l===1){var p=c[f][d];v=e(p,h)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][d];s[g]=h,v=e.apply(null,s)}v&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var a=Te(t),i=a.length;if(!i)return this;var o=e.count(),s=Rs(e._rawCount),l=new s(o),u=0,f=a[0],c=t[f][0],h=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var g=v[a[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],y=0;y<n;y++){var m=g[y],x=_[y];(m>=c&&m<=h||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var w=e.getRawIndex(y),m=v[a[0]][w];(m>=c&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var T=!0,w=e.getRawIndex(y),C=0;C<i;C++){var A=a[C],m=v[A][w];(m<t[A][0]||m>t[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var a=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=fo();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=a[e[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=a[p];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(Rs(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=g-p;var x=d,w=Math.min(d+l,o),T=d-1,C=i[u];f=-1,h=x;for(var A=-1,M=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){M++,A<0&&(A=S);continue}c=Math.abs((T-y)*(b-C)-(T-_)*(m-C)),c>f&&(f=c,h=S)}M>0&&M<w-x&&(v[s++]=Math.min(A,h),h=Math.max(A,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.downSample=function(t,e,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),c=i._rawExtent[t]=fo(),h=new(Rs(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[v++]=m}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(a[t[0]][s],i);break;case 2:e(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=fo();if(!e)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),c=e[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][e]);return n},r.prototype.clone=function(t,e){var n=new r,a=this._chunks,i=t&&vn(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?l6(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ie(this._extent),t._rawExtent=ie(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var a=0;a<n;a++)e[a]=this._indices[a]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return xa(e[i],this._dimensions[i])}hd={arrayRows:t,objectRows:function(e,n,a,i){return xa(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return xa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),$D=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(tf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=ir(s)?Sa:Lr,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=pe(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=pe(c.sourceHeader,h.sourceHeader),p=pe(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[Ng(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[Ng(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&FS(i)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&FS(c),s.push(f),l.push(u._getVersionSign())}),n?o=a6(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[zH(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];tf(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new Bg,s.initData(new OD(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(tf(t)){var e=zm(t);return e?[e.getSourceManager()]:[]}else return G(cH(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,a;if(tf(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:a}},r}();function GS(r){var t=r.option.transform;t&&dc(r.option.transform)}function tf(r){return r.mainType==="series"}function FS(r){throw new Error(r)}var YD="line-height:1";function XD(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Xt(n+"")+"px;color:"+Xt(e)+";font-weight:"+Xt(a+""),valueStyle:"font-size:"+Xt(o+"")+"px;color:"+Xt(i)+";font-weight:"+Xt(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var u6=[0,10,20,30],f6=["",`
`,`

`,`


`];function pt(r,t){return t.type=r,t}function Vg(r){return r.type==="section"}function ZD(r){return Vg(r)?c6:h6}function qD(r){if(Vg(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return D(r.blocks,function(a){var i=qD(a);i>=t&&(t=i+ +(n&&(!i||Vg(a)&&!a.noHeader)))}),t}return 0}function c6(r,t,e,n){var a=t.noHeader,i=v6(qD(t)),o=[],s=t.blocks||[];Ft(!s||z(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new FD(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(d,p){var g=t.valueFormatter,y=ZD(d)(g?B(B({},r),{valueFormatter:g}):r,d,p>0?i.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(i.richText):zg(o.join(""),a?e:i.html);if(a)return c;var h=Rg(t.header,"ordinal",r.useUTC),v=XD(n,r.renderMode).nameStyle;return r.renderMode==="richText"?jD(r,h,v)+i.richText+c:zg('<div style="'+v+";"+YD+';">'+Xt(h)+"</div>"+c,e)}function h6(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(b,x){return Rg(b,z(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Rg(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value),p=!s||!i,g=!s&&i,y=XD(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":jD(r,h,m))+(o?"":g6(r,d,p,g,_)):zg((s?"":c)+(i?"":d6(h,!s,m))+(o?"":p6(d,p,g,_)),e)}}function HS(r,t,e,n,a,i){if(r){var o=ZD(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function v6(r){return{html:u6[r],richText:f6[r]}}function zg(r,t){var e='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+YD+';">'+r+e+"</div>"}function d6(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+Xt(r)+"</span>"}function p6(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=z(r)?r:[r],'<span style="'+i+";"+n+'">'+G(r,function(o){return Xt(o)}).join("&nbsp;&nbsp;")+"</span>"}function jD(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function g6(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(t)?t.join("  "):t,i)}function KD(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Wi(n)}function QD(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var vd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=jM()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=aH({color:e,type:t,renderMode:n,markerId:a});return Y(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};z(e)?D(e,function(i){return B(n,i)}):B(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function JD(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=z(s),u=KD(t,e),f,c,h,v;if(o>1||l&&!o){var d=y6(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=$o(a,e,i[0]),c=p.type}else v=f=l?s[0]:s;var g=ym(t),y=g&&t.name||"",m=a.getName(e),_=n?y:m;return pt("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[pt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Fr(_),value:f,valueType:c})].concat(h||[])})}function y6(r,t,e,n,a){var i=t.getData(),o=vn(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(c){f($o(i,e,c),c)}):D(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(pt("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Qn=Ie();function rf(r,t){return r.getName(t)||r.getId(t)}var nc="__universalTransitionEnabled",Xh=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Sl({count:_6,reset:S6}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=Qn(this).sourceManager=new $D(this);i.prepareSource();var o=this.getInitialData(e,a);US(o,this),this.dataTask.context.data=o,Qn(this).dataBeforeProcessed=o,WS(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Wl(this),i=a?ds(e):{},o=this.subType;Le.hasClass(o)&&(o+="Series"),ge(e,n.getTheme().get(this.subType)),ge(e,this.getDefaultOption()),zi(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Ma(e,i,a)},t.prototype.mergeOption=function(e,n){e=ge(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Wl(this);a&&Ma(this.option,e,a);var i=Qn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);US(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Qn(this).dataBeforeProcessed=o,WS(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ir(e))for(var n=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&zi(e[a],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=Gg(this);if(n){var a=n.context.data;return e==null?a:a.getLinkedData(e)}else return Qn(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=Gg(this);if(n){var a=n.context;a.outputData=e,n!==this.dataTask&&(a.data=e)}Qn(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return j(e)},t.prototype.getSourceManager=function(){return Qn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Qn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,n,a){return JD({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Pe.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Gm.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=rf(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var a=[],i=0;i<e.length;i++)a[0]=e[i],this.isSelected(e[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=Te(e),a=[],i=0;i<n.length;i++){var o=e[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[rf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[nc])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ne(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=rf(e,c);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=rf(e,v);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(a){var i=e.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Le.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Le);lt(Xh,Um);lt(Xh,Gm);i2(Xh,Le);function WS(r){var t=r.name;ym(r)||(r.name=m6(r)||t)}function m6(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return D(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function _6(r){return r.model.getRawData().count()}function S6(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),x6}function x6(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function US(r,t){D(pc(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,fe(b6,t))})}function b6(r,t){var e=Gg(r);return e&&e.setOutputEnd((t||this).count()),t}function Gg(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const Ke=Xh;var Ym=function(){function r(){this.group=new oe,this.uid=hs("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();_m(Ym);Dh(Ym);const et=Ym;function ys(){var r=Ie();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var eI=Ie(),w6=ys(),Xm=function(){function r(){this.group=new oe,this.uid=hs("viewChart"),this.renderTask=Sl({plan:T6,reset:A6}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&YS(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&YS(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){Oa(this.group,t)},r.markUpdateMethod=function(t,e){eI(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function $S(r,t,e){r&&zl(r)&&(t==="emphasis"?zn:Gn)(r,e)}function YS(r,t,e){var n=Gi(r,t),a=t&&t.highlightKey!=null?KG(t.highlightKey):null;n!=null?D(Ge(n),function(i){$S(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){$S(i,e,a)})}_m(Xm);Dh(Xm);function T6(r){return w6(r.model)}function A6(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&eI(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),C6[l]}var C6={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const $e=Xm;var Ec="\0__throttleOriginMethod",XS="\0__throttleRate",ZS="\0__throttleType";function Zm(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var p=f||t,g=f||e;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function ms(r,t,e,n){var a=r[t];if(a){var i=a[Ec]||a,o=a[ZS],s=a[XS];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Zm(i,e,n==="debounce"),a[Ec]=i,a[ZS]=n,a[XS]=e}return a}}function $l(r,t){var e=r[t];e&&e[Ec]&&(e.clear&&e.clear(),r[t]=e[Ec])}var qS=Ie(),jS={itemStyle:Fi(aD,!0),lineStyle:Fi(nD,!0)},M6={lineStyle:"stroke",itemStyle:"fill"};function tI(r,t){var e=r.visualStyleMapper||jS[t];return e||(console.warn("Unknown style type '"+t+"'."),jS.itemStyle)}function rI(r,t){var e=r.visualDrawType||M6[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var D6={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=tI(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=rI(r,n),u=o[l],f=J(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||J(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||J(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=B({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},ks=new Ue,I6={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=tI(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ks.option=l[n];var u=a(ks),f=o.ensureUniqueItemVisual(s,"style");B(f,u),ks.option.decal&&(o.setItemVisual(s,"decal",ks.option.decal),ks.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},L6={performRawSeries:!0,overallReset:function(r){var t=j();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),qS(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=qS(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=rI(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},nf=Math.PI;function P6(r,t){t=t||{},re(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new oe,n=new De({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Ee({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new De({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Dm({shape:{startAngle:-nf/2,endAngle:-nf/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:nf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:nf*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var E6=function(){function r(t,e,n,a){this._stageTaskMap=j(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=j();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;D(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Ft(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;D(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=j(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Sl({plan:B6,reset:V6,count:G6}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||Sl({reset:R6});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=j(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";Ft(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,D(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(h=!0,Sl({reset:k6,onDirty:N6})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,i._pipe(p,y)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return J(t)&&(t={overallReset:t,seriesType:F6(t)}),t.uid=hs("stageHandler"),e&&(t.visualType=e),t},r}();function R6(r){r.overallReset(r.ecModel,r.api,r.payload)}function k6(r){return r.overallProgress&&O6}function O6(){this.agent.dirty(),this.getDownstream().dirty()}function N6(){this.agent&&this.agent.dirty()}function B6(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function V6(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ge(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?G(t,function(e,n){return nI(n)}):z6}var z6=nI(0);function nI(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function G6(r){return r.data.count()}function F6(r){Rc=null;try{r(Yl,aI)}catch{}return Rc}var Yl={},aI={},Rc;iI(Yl,ID);iI(aI,LD);Yl.eachSeriesByType=Yl.eachRawSeriesByType=function(r){Rc=r};Yl.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Rc=r.subType)};function iI(r,t){for(var e in t.prototype)r[e]=at}const oI=E6;var KS=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const H6={color:KS,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],KS]};var Nt="#B9B8CE",QS="#100C2A",af=function(){return{axisLine:{lineStyle:{color:Nt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},JS=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],sI={darkMode:!0,color:JS,backgroundColor:QS,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Nt}},textStyle:{color:Nt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Nt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Nt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Nt}},timeline:{lineStyle:{color:Nt},label:{color:Nt},controlStyle:{color:Nt,borderColor:Nt}},calendar:{itemStyle:{color:QS},dayLabel:{color:Nt},monthLabel:{color:Nt},yearLabel:{color:Nt}},timeAxis:af(),logAxis:af(),valueAxis:af(),categoryAxis:af(),line:{symbol:"circle"},graph:{color:JS},gauge:{title:{color:Nt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Nt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};sI.categoryAxis.splitLine.show=!1;const W6=sI;var U6=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},a={};if(Y(t)){var i=ln(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Fg=["symbol","symbolSize","symbolRotate","symbolOffset"],ex=Fg.concat(["symbolKeepAspect"]),$6={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<Fg.length;o++){var s=Fg[o],l=r.get(s);J(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(B({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=Te(a);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,a[g](v,d))}}return{dataEach:i?f:null}}},Y6={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<ex.length;s++){var l=ex[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function qm(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function _u(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function lI(r,t,e,n){switch(e){case"color":var a=r.ensureUniqueItemVisual(t,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,n);break}}function uI(r,t){function e(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}D([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=B({},a),o.dispatchAction(B(a,{type:n[1],seriesIndex:e(i,a)}))})})}function co(r,t,e,n,a){var i=r+t;e.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=Gi(c,a.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:z(h)?c.getName(h[0]):c.getName(h),selected:Y(l)?l:B({},l)})}})}function X6(r,t,e){r.on("selectchanged",function(n){var a=e.getModel();n.isFromClick?(co("map","selectchanged",t,a,n),co("pie","selectchanged",t,a,n)):n.fromAction==="select"?(co("map","selected",t,a,n),co("pie","selected",t,a,n)):n.fromAction==="unselect"&&(co("map","unselected",t,a,n),co("pie","unselected",t,a,n))})}function wi(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var Z6=Math.round(Math.random()*9),q6=typeof Object.defineProperty=="function",j6=function(){function r(){this._id="__ec_inner_"+Z6++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return q6?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();const K6=j6;var Q6=we.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n+i),r.lineTo(e-a,n+i),r.closePath()}}),J6=we.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n),r.lineTo(e,n+i),r.lineTo(e-a,n),r.closePath()}}),eW=we.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-c*v,l+s+h*v,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+c*v,l+s+h*v,e-f,l+s),r.closePath()}}),tW=we.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+e),r.lineTo(a,i+e/4*3),r.lineTo(a-o,i+e),r.lineTo(a,i),r.closePath()}}),rW={line:_t,rect:De,roundRect:De,square:De,circle:mn,diamond:J6,pin:eW,arrow:tW,triangle:Q6},nW={line:function(r,t,e,n,a){a.x1=r,a.y1=t+n/2,a.x2=r+e,a.y2=t+n/2},rect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n},roundRect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n,a.r=Math.min(e,n)/4},square:function(r,t,e,n,a){var i=Math.min(e,n);a.x=r,a.y=t,a.width=i,a.height=i},circle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.r=Math.min(e,n)/2},diamond:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n},pin:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},arrow:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},triangle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n}},kc={};D(rW,function(r,t){kc[t]=new r});var aW=we.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=bc(r,t,e),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var a=kc[n];a||(n="rect",a=kc[n]),nW[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function iW(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function st(r,t,e,n,a,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Z2(r.slice(8),new ye(t,e,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=Nh(r.slice(7),{},new ye(t,e,n,a),o?"center":"cover"):l=new aW({shape:{symbolType:r,x:t,y:e,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=iW,i&&l.setColor(i),l}function _s(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ki(r,t){if(r!=null)return z(r)||(r=[r,r]),[W(r[0],t[0])||0,W(pe(r[1],r[0]),t[1])||0]}function Ti(r){return isFinite(r)}function oW(r,t,e){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,a=a*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),n=Ti(n)?n:0,a=Ti(a)?a:1,i=Ti(i)?i:0,o=Ti(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function sW(r,t,e){var n=e.width,a=e.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*a+e.y,l=l*i),o=Ti(o)?o:.5,s=Ti(s)?s:.5,l=l>=0&&Ti(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Hg(r,t,e){for(var n=t.type==="radial"?sW(r,t,e):oW(r,t,e),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function lW(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function of(r){return parseInt(r,10)}function Eo(r,t,e){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||of(s[n])||of(r.style[n]))-(of(s[i])||0)-(of(s[o])||0)|0}function uW(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Re(r)?[r]:z(r)?r:null}function jm(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&uW(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=G(e,function(i){return i/a}),n/=a)}return[e,n]}var fW=new yn(!0);function Oc(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function tx(r){return typeof r=="string"&&r!=="none"}function Nc(r){var t=r.fill;return t!=null&&t!=="none"}function rx(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function nx(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Wg(r,t,e){var n=Sm(t.image,t.__image,e);if(Ih(n)){var a=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Wf),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function cW(r,t,e,n){var a,i=Oc(e),o=Nc(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||fW,c=t.__dirty;if(!n){var h=e.fill,v=e.stroke,d=o&&!!h.colorStops,p=i&&!!v.colorStops,g=o&&!!h.image,y=i&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=c?Hg(r,h,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?Hg(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?Wg(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=c||!t.__canvasStrokePattern?Wg(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(a=jm(t),T=a[0],C=a[1]);var A=!0;(u||c&Ao)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(i&&nx(r,e),o&&rx(r,e)):(o&&rx(r,e),i&&nx(r,e))),T&&r.setLineDash([])}function hW(r,t,e){var n=t.__image=Sm(e.image,t.__image,t,t.onload);if(!(!n||!Ih(n))){var a=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,a,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,c=o-u,h=s-f;r.drawImage(n,u,f,c,h,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function vW(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||wa,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=jm(t),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Oc(e)&&r.strokeText(a,e.x,e.y),Nc(e)&&r.fillText(a,e.x,e.y)):(Nc(e)&&r.fillText(a,e.x,e.y),Oc(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var ax=["shadowBlur","shadowOffsetX","shadowOffsetY"],ix=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fI(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){jt(r,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Ii.opacity:o}(n||t.blend!==e.blend)&&(i||(jt(r,a),i=!0),r.globalCompositeOperation=t.blend||Ii.blend);for(var s=0;s<ax.length;s++){var l=ax[s];(n||t[l]!==e[l])&&(i||(jt(r,a),i=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(i||(jt(r,a),i=!0),r.shadowColor=t.shadowColor||Ii.shadowColor),i}function ox(r,t,e,n,a){var i=Xl(t,a.inHover),o=n?null:e&&Xl(e,a.inHover)||{};if(i===o)return!1;var s=fI(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(jt(r,a),s=!0),tx(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(jt(r,a),s=!0),tx(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(jt(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(jt(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<ix.length;f++){var c=ix[f],h=c[0];(n||i[h]!==o[h])&&(s||(jt(r,a),s=!0),r[h]=i[h]||c[1])}return s}function dW(r,t,e,n,a){return fI(r,Xl(t,a.inHover),e&&Xl(e,a.inHover),n,a)}function cI(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function pW(r,t,e){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),cI(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=n}function gW(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var sx=1,lx=2,ux=3,fx=4;function yW(r){var t=Nc(r),e=Oc(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function jt(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Xl(r,t){return t&&r.__hoverStyle||r.style}function hI(r,t){Ai(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ai(r,t,e,n){var a=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~rr,t.__isRendered=!1;return}var i=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||lW(i,o))&&(o&&o.length&&(jt(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),i&&i.length&&(jt(r,e),r.save(),pW(i,r,e),s=!0),e.prevElClipPaths=i),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof we&&t.autoBatch&&yW(t.style);s||gW(a,u.transform)?(jt(r,e),cI(r,t)):f||jt(r,e);var c=Xl(t,e.inHover);t instanceof we?(e.lastDrawType!==sx&&(l=!0,e.lastDrawType=sx),ox(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),cW(r,t,c,f),f&&(e.batchFill=c.fill||"",e.batchStroke=c.stroke||"")):t instanceof Bl?(e.lastDrawType!==ux&&(l=!0,e.lastDrawType=ux),ox(r,t,u,l,e),vW(r,t,c)):t instanceof Mt?(e.lastDrawType!==lx&&(l=!0,e.lastDrawType=lx),dW(r,t,u,l,e),hW(r,t,c)):t.getTemporalDisplayables&&(e.lastDrawType!==fx&&(l=!0,e.lastDrawType=fx),mW(r,t,e)),f&&n&&jt(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function mW(r,t,e){var n=t.getDisplayables(),a=t.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ai(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ai(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var dd=new K6,cx=new cu(100),hx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Yo(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";r.dirty&&dd.delete(r);var i=dd.get(r);if(i)return i;var o=re(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/e,dd.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],c=!0,h=0;h<hx.length;++h){var v=o[hx[h]];if(v!=null&&!z(v)&&!Y(v)&&!Re(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=cx.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=dI(o.dashArrayX),y=_W(o.dashArrayY),m=vI(o.symbol),_=SW(g),S=pI(y),b=!a&&Ta.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),T;b&&(b.width=w.width*e,b.height=w.height*e,T=b.getContext("2d")),A(),c&&cx.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var M=1,I=0,L=_.length;I<L;++I)M=M1(M,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=M1(P,m[I].length);M*=P;var E=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(M<=0)return;for(var L=-S,P=0,E=0,R=0;L<w.height;){if(P%2===0){for(var N=E/2%m.length,k=0,V=0,H=0;k<w.width*2;){for(var U=0,I=0;I<g[R].length;++I)U+=g[R][I];if(U<=0)break;if(V%2===0){var q=(1-o.symbolSize)*.5,ee=k+g[R][V]*q,te=L+y[P]*q,_e=g[R][V]*o.symbolSize,Ae=y[P]*o.symbolSize,Se=H/2%m[N].length;ae(ee,te,_e,Ae,m[N][Se])}k+=g[R][V],++H,++V,V===g[R].length&&(V=0)}++R,R===g.length&&(R=0)}L+=y[P],++E,++P,P===y.length&&(P=0)}function ae(xe,he,K,ve,qe){var Me=a?1:e,tt=st(qe,xe*Me,he*Me,K*Me,ve*Me,o.color,o.symbolKeepAspect);if(a){var Qe=n.painter.renderOneToVNode(tt);Qe&&x.children.push(Qe)}else hI(T,tt)}}}}function vI(r){if(!r||r.length===0)return[["rect"]];if(Y(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!Y(r[e])){t=!1;break}if(t)return vI([r]);for(var n=[],e=0;e<r.length;++e)Y(r[e])?n.push([r[e]]):n.push(r[e]);return n}function dI(r){if(!r||r.length===0)return[[0,0]];if(Re(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!Re(r[n])){e=!1;break}if(e)return dI([r]);for(var a=[],n=0;n<r.length;++n)if(Re(r[n])){var t=Math.ceil(r[n]);a.push([t,t])}else{var t=G(r[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function _W(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Re(r)){var t=Math.ceil(r);return[t,t]}var e=G(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function SW(r){return G(r,function(t){return pI(t)})}function pI(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function xW(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Yo(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Yo(a,t)}}})}var bW=new Ir;const Nr=bW;var gI={};function wW(r,t){gI[r]=t}function TW(r){return gI[r]}var AW=1,CW=800,MW=900,DW=1e3,IW=2e3,LW=5e3,yI=1e3,PW=1100,Km=2e3,mI=3e3,EW=4e3,Zh=4500,RW=4600,kW=5e3,OW=6e3,_I=7e3,NW={PROCESSOR:{FILTER:DW,SERIES_FILTER:CW,STATISTIC:LW},VISUAL:{LAYOUT:yI,PROGRESSIVE_LAYOUT:PW,GLOBAL:Km,CHART:mI,POST_CHART_LAYOUT:RW,COMPONENT:EW,BRUSH:kW,CHART_ITEM:Zh,ARIA:OW,DECAL:_I}},Lt="__flagInMainProcess",$t="__pendingUpdate",pd="__needsUpdateStatus",vx=/^[a-zA-Z0-9_]+$/,gd="__connectUpdateStatus",dx=0,BW=1,VW=2;function SI(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return bI(this,r,t)}}function xI(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return bI(this,r,t)}}function bI(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Ir.prototype[t].apply(r,e)}var wI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ir),TI=wI.prototype;TI.on=xI("on");TI.off=xI("off");var ho,yd,sf,Jn,md,_d,Sd,Os,Ns,px,gx,xd,yx,lf,mx,AI,sr,_x,CI=function(r){O(t,r);function t(e,n,a){var i=r.call(this,new U6)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},Y(n)&&(n=MI[n]),i._dom=e;var o="canvas",s="auto",l=!1,u=i._zr=w1(e,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:pe(a.useDirtyRect,l),useCoarsePointer:pe(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Zm(X(u.flush,u),17),n=ie(n),n&&ED(n,!0),i._theme=n,i._locale=KF(a.locale||iD),i._coordSysMgr=new mu;var f=i._api=mx(i);function c(h,v){return h.__prio-v.__prio}return Yf(Vc,c),Yf(Ug,c),i._scheduler=new oI(i,f,Ug,Vc),i._messageCenter=new wI,i._initEvents(),i.resize=X(i.resize,i),u.animation.on("frame",i._onframe,i),px(u,i),gx(u,i),dc(i),i}return t.prototype._onframe=function(){if(!this._disposed){_x(this);var e=this._scheduler;if(this[$t]){var n=this[$t].silent;this[Lt]=!0;try{ho(this),Jn.update.call(this,null,this[$t].updateParams)}catch(l){throw this[Lt]=!1,this[$t]=null,l}this._zr.flush(),this[Lt]=!1,this[$t]=null,Os.call(this,n),Ns.call(this,n)}else if(e.unfinished){var a=AW,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),_d(this,i),e.performVisualTasks(i),lf(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[Lt]){if(this._disposed){this.id;return}var i,o,s;if(ne(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Lt]=!0,!this._model||n){var l=new IH(this._api),u=this._theme,f=this._model=new ID;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},$g);var c={seriesTransition:s,optionChanged:!0};if(a)this[$t]={silent:i,updateParams:c},this[Lt]=!1,this.getZr().wakeUp();else{try{ho(this),Jn.update.call(this,null,c)}catch(h){throw this[$t]=null,this[Lt]=!1,h}this._ssr||this._zr.flush(),this[$t]=null,this[Lt]=!1,Os.call(this,i),Ns.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Pe.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Pe.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return D(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;D(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return D(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Sx[a]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();D(bl,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ie(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=Ta.createCanvas(),y=w1(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return D(h,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new De({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),D(h,function(_){var S=new Mt({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return md(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return md(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=pl(a,e);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=pl(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?qm(s,l,n):_u(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;D(zW,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&wi(s,function(d){var p=ue(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=B({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),D(xl,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),D(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),X6(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&r2(this.getDom(),Jm,"");var n=this,a=n._api,i=n._model;D(n._componentsViews,function(o){o.dispose(i,a)}),D(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete bl[n.id]},t.prototype.resize=function(e){if(!this[Lt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[$t]&&(i==null&&(i=this[$t].silent),a=!0,this[$t]=null),this[Lt]=!0;try{a&&ho(this),Jn.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Lt]=!1,o}this[Lt]=!1,Os.call(this,i),Ns.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(ne(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Yg[e]){var a=Yg[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=B({},e);return n.type=xl[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(ne(n)||(n={silent:!!n}),!!Bc[e.type]&&this._model){if(this[Lt]){this._pendingActions.push(e);return}var a=n.silent;Sd.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Pe.browser.weChat&&this._throttledZrFlush(),Os.call(this,a),Ns.call(this,a)}},t.prototype.updateLabelLayout=function(){Nr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ho=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),yd(c,!0),yd(c,!1),h.plan()},yd=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(x,w){x!=="series"&&S(w)}):v.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!w&&g[T];if(!C){var A=ln(x.type),M=h?et.getClass(A.main,A.sub):$e.getClass(A.sub);C=new M,C.init(v,m),g[T]=C,p.push(C),y.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&d.prepareView(C,x,v,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},sf=function(c,h,v,d,p){var g=c._model;if(g.setUpdatePayload(v),!d){D([].concat(c._componentsViews).concat(c._chartsViews),b);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=j(),D(Ge(_),function(x){var w=ut(x,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;if(!w)if(tS(v))if(x instanceof Ke)v.type===Li&&!v.notBlur&&!x.get(["emphasis","disabled"])&&WG(x,v,c._api);else{var T=Am(x.mainType,x.componentIndex,v.name,c._api),C=T.focusSelf,A=T.dispatchers;v.type===Li&&C&&!v.notBlur&&Cg(x.mainType,x.componentIndex,c._api),A&&D(A,function(M){v.type===Li?zn(M):Gn(M)})}else Dg(v)&&x instanceof Ke&&(YG(x,v,c._api),J1(x),sr(c))},c),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;w||b(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function b(x){x&&x.__alive&&x[h]&&x[h](x.__model,g,c._api,v)}},Jn={prepareAndUpdate:function(c){ho(this),Jn.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(c),y.restoreData(v,c),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,c),_d(this,v),g.update(v,d),e(v),y.performVisualTasks(v,c),xd(this,v,d,c,h);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),Nr.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=j();v.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,c);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),lf(this,v,d,c,{},g),Nr.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),$e.markUpdateMethod(c,"updateView"),e(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),xd(this,h,this._api,c,{}),Nr.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),$e.markUpdateMethod(c,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),Nr.trigger("afterupdate",v,this._api))},updateLayout:function(c){Jn.update.call(this,c)}},md=function(c,h,v,d){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,m=pl(p,v),_=0;_<g.length;_++){var S=g[_];if(S[h]&&(y=S[h](p,m,d))!=null)return y}},_d=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Sd=function(c,h){var v=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=Bc[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&ln(_[0]);this[Lt]=!0;var x=[c],w=!1;c.batch&&(w=!0,x=G(c.batch,function(P){return P=re(B({},P),c),P.batch=null,P}));var T=[],C,A=Dg(c),M=tS(c);if(M&&D2(this._api),D(x,function(P){if(C=y.action(P,v._model,v._api),C=C||B({},P),C.type=m.event||C.type,T.push(C),M){var E=mm(c),R=E.queryOptionMap,N=E.mainTypeSpecified,k=N?R.keys()[0]:"series";sf(v,S,P,k),sr(v)}else A?(sf(v,S,P,"series"),sr(v)):b&&sf(v,S,P,b.main,b.sub)}),S!=="none"&&!M&&!A&&!b)try{this[$t]?(ho(this),Jn.update.call(this,c),this[$t]=null):Jn[S].call(this,c)}catch(P){throw this[Lt]=!1,P}if(w?C={type:m.event||p,escapeConnect:g,batch:T}:C=T[0],this[Lt]=!1,!h){var I=this._messageCenter;if(I.trigger(C.type,C),A){var L={type:"selectchanged",escapeConnect:g,selected:XG(d),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};I.trigger(L.type,L)}}},Os=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Sd.call(this,v,c)}},Ns=function(c){!c&&this.trigger("updated")},px=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[$t]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},gx=function(c,h){c.on("mouseover",function(v){var d=v.target,p=wi(d,zl);p&&(UG(p,v,h._api),sr(h))}).on("mouseout",function(v){var d=v.target,p=wi(d,zl);p&&($G(p,v,h._api),sr(h))}).on("click",function(v){var d=v.target,p=wi(d,function(m){return ue(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=ue(p);h._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=h.concat(v),g,y;Yf(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),D(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}xd=function(c,h,v,d,p){n(h),yx(c,h,v,d,p),D(c._chartsViews,function(g){g.__alive=!1}),lf(c,h,v,d,p),D(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},yx=function(c,h,v,d,p,g){D(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,v,d),s(m,y),f(m,y)})},lf=function(c,h,v,d,p,g){var y=c._scheduler;p=B(p||{},{updatedSeries:h.getSeries()}),Nr.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),J1(_)}),y.unfinished=m||y.unfinished,Nr.trigger("series:layoutlabels",h,v,p),Nr.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];s(_,S),f(_,S)}),i(c,h),Nr.trigger("series:afterupdate",h,v,p)},sr=function(c){c[pd]=!0,c.getZr().wakeUp()},_x=function(c){c[pd]&&(c.getZr().storage.traverse(function(h){Oo(h)||a(h)}),c[pd]=!1)};function a(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===Eh&&c.states.emphasis?h.push("emphasis"):c.hoverState===du&&c.states.blur&&h.push("blur"),c.useStates(h)}function i(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!Pe.node&&!Pe.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],h,v,d),d);else c.z=h,c.zlevel=v,d=Math.max(c.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var S=c.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(c,h){h.eachRendered(function(v){if(!Oo(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Oo(y))return;if(y instanceof we&&QG(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}mx=function(c){return new(function(h){O(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){zn(d,p),sr(c)},v.prototype.leaveEmphasis=function(d,p){Gn(d,p),sr(c)},v.prototype.enterBlur=function(d){T2(d),sr(c)},v.prototype.leaveBlur=function(d){Tm(d),sr(c)},v.prototype.enterSelect=function(d){A2(d),sr(c)},v.prototype.leaveSelect=function(d){C2(d),sr(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(LD))(c)},AI=function(c){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[gd]=d}}D(xl,function(v,d){c._messageCenter.on(d,function(p){if(Sx[c.group]&&c[gd]!==dx){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];D(bl,function(m){m!==c&&m.group===c.group&&y.push(m)}),h(y,dx),D(y,function(m){m[gd]!==BW&&m.dispatchAction(g)}),h(y,VW)}})})}}(),t}(Ir),Qm=CI.prototype;Qm.on=SI("on");Qm.off=SI("off");Qm.one=function(r,t,e){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(r,a)}this.on.call(this,r,a,e)};var zW=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Bc={},xl={},Ug=[],$g=[],Vc=[],MI={},Yg={},bl={},Sx={},GW=+new Date-0,Jm="_echarts_instance_";function DI(r,t,e){var n=!(e&&e.ssr);if(n){var a=FW(r);if(a)return a}var i=new CI(r,t,e);return i.id="ec_"+GW++,bl[i.id]=i,n&&r2(r,Jm,i.id),AI(i),Nr.trigger("afterinit",i),i}function FW(r){return bl[V4(r,Jm)]}function II(r,t){MI[r]=t}function LI(r){me($g,r)<0&&$g.push(r)}function PI(r,t){t0(Ug,r,t,IW)}function HW(r){e0("afterinit",r)}function WW(r){e0("afterupdate",r)}function e0(r,t){Nr.on(r,t)}function xn(r,t,e){J(t)&&(e=t,t="");var n=ne(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!xl[t]&&(Ft(vx.test(n)&&vx.test(t)),Bc[n]||(Bc[n]={action:e,actionInfo:r}),xl[t]=n)}function UW(r,t){mu.register(r,t)}function $W(r,t){t0(Vc,r,t,yI,"layout")}function Qi(r,t){t0(Vc,r,t,mI,"visual")}var xx=[];function t0(r,t,e,n,a){if((J(t)||ne(t))&&(e=t,t=n),!(me(xx,e)>=0)){xx.push(e);var i=oI.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function EI(r,t){Yg[r]=t}function YW(r,t,e){var n=TW("registerMap");n&&n(r,t,e)}var XW=n6;Qi(Km,D6);Qi(Zh,I6);Qi(Zh,L6);Qi(Km,$6);Qi(Zh,Y6);Qi(_I,xW);LI(ED);PI(MW,BH);EI("default",P6);xn({type:Li,event:Li,update:Li},at);xn({type:Qf,event:Qf,update:Qf},at);xn({type:gl,event:gl,update:gl},at);xn({type:Jf,event:Jf,update:Jf},at);xn({type:yl,event:yl,update:yl},at);II("light",H6);II("dark",W6);var bx=[],ZW={registerPreprocessor:LI,registerProcessor:PI,registerPostInit:HW,registerPostUpdate:WW,registerUpdateLifecycle:e0,registerAction:xn,registerCoordinateSystem:UW,registerLayout:$W,registerVisual:Qi,registerTransform:XW,registerLoading:EI,registerMap:YW,registerImpl:wW,PRIORITY:NW,ComponentModel:Le,ComponentView:et,SeriesModel:Ke,ChartView:$e,registerComponentModel:function(r){Le.registerClass(r)},registerComponentView:function(r){et.registerClass(r)},registerSeriesModel:function(r){Ke.registerClass(r)},registerChartView:function(r){$e.registerClass(r)},registerSubTypeDefaulter:function(r,t){Le.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){m4(r,t)}};function be(r){if(z(r)){D(r,function(t){be(t)});return}me(bx,r)>=0||(bx.push(r),J(r)&&(r={install:r}),r.install(ZW))}function Bs(r){return r==null?0:r.length||1}function Tx(r){return r}var qW=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Tx,this._newKeyGetter=a||Tx,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=Bs(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=Bs(u),h=Bs(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var a=t[n],i=e[a],o=Bs(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[a]=null}},r.prototype._initIndexMap=function(t,e,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!e){var l=e[s],u=Bs(l);u===0?(e[s]=o,i&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const Fn=qW;var jW=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function KW(r,t){var e={},n=e.encode={},a=j(),i=[],o=[],s={};D(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;bd(n,d)[p]=h,v.isExtraCoord||(a.set(d,1),QW(v.type)&&(i[0]=h),bd(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}xD.each(function(g,y){var m=bd(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};a.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=G(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,e.userOutput=new jW(s,t),e}function bd(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function zc(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function QW(r){return!(r==="ordinal"||r==="time")}var JW=function(){function r(t){this.otherDims={},t!=null&&B(this,t)}return r}();const ac=JW;var e8=Ie(),t8={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},RI=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=NI(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return pe(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=kD(this.source),n=!BI(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=e?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=t8[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(e);o&&(a=o.name)}t.push(a)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function kI(r){return r instanceof RI}function OI(r){for(var t=j(),e=0;e<(r||[]).length;e++){var n=r[e],a=ne(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,e)}return t}function NI(r){var t=e8(r);return t.dimNameMap||(t.dimNameMap=OI(r.dimensionsDefine))}function BI(r){return r>30}var Vs=ne,ea=G,r8=typeof Int32Array>"u"?Array:Int32Array,n8="e\0\0",Ax=-1,a8=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],i8=["_approximateExtent"],Cx,uf,zs,Gs,wd,ff,Td,o8=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;kI(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=Y(c)?new ac({name:c}):c instanceof ac?c:new ac(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),a&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=j();D(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var a=this._schema.getSourceDimension(e);if(a)return a.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(Re(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var a=this,i;if(t instanceof Bg&&(i=t),!i){var o=this.dimensions,s=Fm(t)||Et(t)?new OD(t,o.length):t;i=new Bg;var l=ea(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=KW(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=e[l],o&&Td(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var a=this._dimInfos[e[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Sa&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Lr;if(l&&!a.pure)for(var u=[],f=t;f<e;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&A4(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=ut(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=ut(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Td(this,f);Cx(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Vs(t)?B(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=zs(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},r.prototype.getId=function(t){return uf(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,a=this._store;return z(t)?a.getValues(ea(t,function(i){return n._getStoreDimIndex(i)}),e):a.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,a=e.length;n<a;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],a=n[e];return a==null||isNaN(a)?Ax:a},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){J(t)&&(n=e,e=t,t=[]);var a=n||this,i=ea(Gs(t),this._getStoreDimIndex,this);this._store.each(i,a?X(e,a):e)},r.prototype.filterSelf=function(t,e,n){J(t)&&(n=e,e=t,t=[]);var a=n||this,i=ea(Gs(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?X(e,a):e),this},r.prototype.selectRange=function(t){var e=this,n={},a=Te(t);return D(a,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){J(t)&&(n=e,e=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},n),a},r.prototype.map=function(t,e,n,a){var i=n||a||this,o=ea(Gs(t),this._getStoreDimIndex,this),s=ff(this);return s._store=this._store.map(o,i?X(e,i):e),s},r.prototype.modify=function(t,e,n,a){var i=n||a||this,o=ea(Gs(t),this._getStoreDimIndex,this);this._store.modify(o,i?X(e,i):e)},r.prototype.downSample=function(t,e,n,a){var i=ff(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,a),i},r.prototype.lttbDownSample=function(t,e){var n=ff(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Ue(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Fn(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return uf(t,n)},function(n){return uf(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Vs(t)?B(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],a=n&&n[e];return a??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),z(i)?i=i.slice():Vs(i)&&(i=B({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Vs(e)?B(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Vs(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Tg(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){D(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ea(this.dimensions,this._getDimInfo,this),this.hostModel)),wd(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];J(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(sm(arguments)))})},r.internalField=function(){Cx=function(t){var e=t._invertedIndicesMap;D(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new r8(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Ax;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},zs=function(t,e,n){return ut(t._getCategory(e,n),null)},uf=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=zs(t,t._idDimIdx,e)),n==null&&(n=n8+e),n},Gs=function(t){return z(t)||(t=t!=null?[t]:[]),t},ff=function(t){var e=new r(t._schema?t._schema:ea(t.dimensions,t._getDimInfo,t),t.hostModel);return wd(e,t),e},wd=function(t,e){D(a8.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,D(i8,function(n){t[n]=ie(e[n])}),t._calculationInfo=B({},e._calculationInfo)},Td=function(t,e){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=a[e];if(s==null&&i!=null&&(n[e]=s=zs(t,i,e)),l==null&&o!=null&&(a[e]=l=zs(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[e]=l}}}(),r}();const Gt=o8;function Su(r,t){Fm(r)||(r=Hm(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=j(),i=[],o=l8(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&BI(o),l=n===r.dimensionsDefine,u=l?NI(r):OI(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=j(f),h=new WD(o),v=0;v<h.length;v++)h[v]=-1;function d(C){var A=h[C];if(A<0){var M=n[C],I=ne(M)?M:{name:M},L=new ac,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var E=i.length;return h[C]=E,L.storeDimIndex=C,i.push(L),L}return i[A]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(C,A){var M=Ge(C).slice();if(M.length===1&&!Y(M[0])&&M[0]<0){c.set(A,!1);return}var I=c.set(A,[]);D(M,function(L,P){var E=Y(L)?u.get(L):L;E!=null&&E<o&&(I[P]=E,g(d(E),A,P))})});var p=0;D(e,function(C){var A,M,I,L;if(Y(C))A=C,L={};else{L=C,A=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=B({},L),L.ordinalMeta=P,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=c.get(A);if(E!==!1){if(E=Ge(E),!E.length)for(var R=0;R<(M&&M.length||1);R++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}D(E,function(N,k){var V=d(N);if(l&&L.type!=null&&(V.type=L.type),g(re(V,L),A,k),V.name==null&&M){var H=M[k];!ne(H)&&(H={name:H}),V.name=V.displayName=H.name,V.defaultTooltip=H.defaultTooltip}I&&re(V.otherDims,I)})}});function g(C,A,M){xD.get(A)!=null?C.otherDims[A]=M:(C.coordDim=A,C.coordDimIndex=M,a.set(A,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)D(i,function(C){b(C)}),i.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),T=w.coordDim;T==null&&(w.coordDim=u8(S,a,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&(AD(r,x)===xt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return s8(i),new RI({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function s8(r){for(var t=j(),e=0;e<r.length;e++){var n=r[e],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function l8(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return D(t,function(i){var o;ne(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function u8(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var f8=function(){function r(t){this.coordSysDims=[],this.axisMap=j(),this.categoryAxisMap=j(),this.coordSysName=t}return r}();function c8(r){var t=r.get("coordinateSystem"),e=new f8(t),n=h8[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var h8={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",ot).models[0],i=r.getReferringComponents("yAxis",ot).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),vo(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),vo(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",ot).models[0];t.coordSysDims=["single"],e.set("single",a),vo(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",ot).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),vo(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),vo(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),vo(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function vo(r){return r.get("type")==="category"}function v8(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;d8(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(D(i,function(m,_){Y(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;D(i,function(m){m.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function d8(r){return!kI(r.schema)}function Da(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function VI(r,t){return Da(r,t)?r.getCalculationInfo("stackResultDimension"):t}function p8(r,t){var e=r.get("coordinateSystem"),n=mu.get(e),a;return t&&t.coordSysDims&&(a=G(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=zc(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function g8(r,t,e){var n,a;return e&&D(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function $n(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=Hm(r)):(a=n.getSource(),i=a.sourceFormat===Lr);var o=c8(t),s=p8(t,o),l=e.useEncodeDefaulter,u=J(l)?l:l?fe(TD,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=Su(a,f),h=g8(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=v8(t,{schema:c,store:v}),p=new Gt(c,t);p.setCalculationInfo(d);var g=h!=null&&y8(a)?function(y,m,_,S){return S===h?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function y8(r){if(r.sourceFormat===Lr){var t=m8(r.data||[]);return!z(os(t))}}function m8(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var zI=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Dh(zI);const Yn=zI;var _8=0,S8=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++_8}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&G(n,x8);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Y(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=j(this.categories))},r}();function x8(r){return ne(r)&&r.value!=null?r.value:r+""}const Xg=S8;function Zg(r){return r.type==="interval"||r.type==="log"}function b8(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=ZM(i/t,!0);e!=null&&o<e&&(o=a.interval=e),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=GI(o),l=a.niceTickExtent=[rt(Math.ceil(r[0]/o)*o,s),rt(Math.floor(r[1]/o)*o,s)];return w8(l,r),a}function Ad(r){var t=Math.pow(10,gm(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,rt(e*t)}function GI(r){return sn(r)+2}function Mx(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function w8(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Mx(r,0,t),Mx(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function qh(r,t){return r>=t[0]&&r<=t[1]}function jh(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Kh(r,t){return r*(t[1]-t[0])+t[0]}var FI=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Xg({})),z(a)&&(a=new Xg({categories:G(a,function(i){return ne(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:Y(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),qh(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),jh(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Kh(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Yn);Yn.registerClass(FI);const r0=FI;var ni=rt,HI=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return qh(e,this._extent)},t.prototype.normalize=function(e){return jh(e,this._extent)},t.prototype.scale=function(e){return Kh(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=GI(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(e?s.push({value:ni(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=ni(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:ni(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,h=c/e;u<e-1;){var v=ni(l.value+(u+1)*h);v>i[0]&&v<i[1]&&f.push(v),u++}a.push(f)}return a},t.prototype.getLabel=function(e,n){if(e==null)return"";var a=n&&n.precision;a==null?a=sn(e.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=ni(e.value,a,!0);return pD(i)},t.prototype.calcNiceTicks=function(e,n,a){e=e||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=b8(i,e,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);e.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=ni(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=ni(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(Yn);Yn.registerClass(HI);const Ia=HI;var WI=typeof Float32Array<"u",T8=WI?Float32Array:Array;function un(r){return z(r)?WI?new Float32Array(r):r:new T8(r)}var qg="__ec_stack_";function n0(r){return r.get("stack")||qg+r.seriesIndex}function a0(r){return r.dim+r.index}function A8(r){var t=[],e=r.axis,n="axis0";if(e.type==="category"){for(var a=e.getBandWidth(),i=0;i<r.count;i++)t.push(re({bandWidth:a,axisKey:n,stackId:qg+i},r));for(var o=YI(t),s=[],i=0;i<r.count;i++){var l=o[n][qg+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function UI(r,t){var e=[];return t.eachSeriesByType(r,function(n){qI(n)&&e.push(n)}),e}function C8(r){var t={};D(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);t[h]?t[h].push(y):t[h]=[y]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function $I(r){var t=C8(r),e=[];return D(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=W(n.get("barWidth"),s),p=W(n.get("barMaxWidth"),s),g=W(n.get("barMinWidth")||(jI(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:a0(i),stackId:n0(n)})}),YI(e)}function YI(r){var t={};D(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return D(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Te(i).length;s=Math.max(35-l*4,15)+"%"}var u=W(s,o),f=W(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),D(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(y.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;D(i,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;D(i,function(y,m){e[a][m]=e[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function M8(r,t,e){if(r&&t){var n=r[a0(t)];return n!=null&&e!=null?n[n0(e)]:n}}function XI(r,t){var e=UI(r,t),n=$I(e);D(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=n0(a),u=n[a0(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function ZI(r){return{seriesType:r,plan:ys(),reset:function(t){if(qI(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=Da(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=D8(a,i),d=jI(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&un(b*3),w=d&&l&&un(b*3),T=d&&un(b),C=n.master.getRect(),A=h?C.width:C.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(c?g:o,M),E=I.get(s,M),R=v,N=void 0;c&&(N=+P-I.get(o,M));var k=void 0,V=void 0,H=void 0,U=void 0;if(h){var q=n.dataToPoint([P,E]);if(c){var ee=n.dataToPoint([N,E]);R=ee[0]}k=R,V=q[1]+m,H=q[0]-R,U=y,Math.abs(H)<p&&(H=(H<0?-1:1)*p)}else{var q=n.dataToPoint([E,P]);if(c){var ee=n.dataToPoint([E,N]);R=ee[1]}k=q[0]+m,V=R,H=y,U=q[1]-R,Math.abs(U)<p&&(U=(U<=0?-1:1)*p)}d?(x[L]=k,x[L+1]=V,x[L+2]=h?H:U,w&&(w[L]=h?C.x:k,w[L+1]=h?V:C.y,w[L+2]=A),T[M]=M):S.setItemLayout(M,{x:k,y:V,width:H,height:U}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function qI(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function jI(r){return r.pipelineContext&&r.pipelineContext.large}function D8(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var I8=function(r,t,e,n){for(;e<n;){var a=e+n>>>1;r[a][1]<t?e=a+1:n=a}return e},KI=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return zh(e.value,gS[eH(No(this._minLevelUnit))]||gS.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return tH(e,n,a,o,i)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,a=[];if(!e)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=N8(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Sr,n[1]+=Sr),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Sr}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,a){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=cf.length,l=Math.min(I8(cf,this._approxInterval,0,s),s-1);this._interval=cf[l][1],this._minLevelUnit=cf[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Re(e)?e:+gn(e)},t.prototype.contain=function(e){return qh(this.parse(e),this._extent)},t.prototype.normalize=function(e){return jh(this.parse(e),this._extent)},t.prototype.scale=function(e){return Kh(e,this._extent)},t.type="time",t}(Ia),cf=[["second",km],["minute",Om],["hour",_l],["quarter-day",_l*6],["half-day",_l*12],["day",Sr*1.2],["half-week",Sr*3.5],["week",Sr*7],["month",Sr*31],["quarter",Sr*95],["half-year",pS/2],["year",pS]];function L8(r,t,e,n){var a=gn(t),i=gn(e),o=function(d){return yS(a,d,n)===yS(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function P8(r,t){return r/=Sr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function E8(r){var t=30*Sr;return r/=t,r>6?6:r>3?3:r>2?2:1}function R8(r){return r/=_l,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Dx(r,t){return r/=t?Om:km,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function k8(r){return ZM(r,!0)}function O8(r,t,e){var n=new Date(r);switch(No(t)){case"year":case"month":n[uD(e)](0);case"day":n[fD(e)](1);case"hour":n[cD(e)](0);case"minute":n[hD(e)](0);case"second":n[vD(e)](0),n[dD(e)](0)}return n.getTime()}function N8(r,t,e,n){var a=1e4,i=sD,o=0;function s(A,M,I,L,P,E,R){for(var N=new Date(M),k=M,V=N[L]();k<I&&k<=n[1];)R.push({value:k}),V+=A,N[P](V),k=N.getTime();R.push({value:k,notAdd:!0})}function l(A,M,I){var L=[],P=!M.length;if(!L8(No(A),n[0],n[1],e)){P&&(M=[{value:O8(new Date(n[0]),A,e)},{value:n[1]}]);for(var E=0;E<M.length-1;E++){var R=M[E].value,N=M[E+1].value;if(R!==N){var k=void 0,V=void 0,H=void 0,U=!1;switch(A){case"year":k=Math.max(1,Math.round(t/Sr/365)),V=Nm(e),H=rH(e);break;case"half-year":case"quarter":case"month":k=E8(t),V=Bo(e),H=uD(e);break;case"week":case"half-week":case"day":k=P8(t),V=Gh(e),H=fD(e),U=!0;break;case"half-day":case"quarter-day":case"hour":k=R8(t),V=Hl(e),H=cD(e);break;case"minute":k=Dx(t,!0),V=Fh(e),H=hD(e);break;case"second":k=Dx(t,!1),V=Hh(e),H=vD(e);break;case"millisecond":k=k8(t),V=Wh(e),H=dD(e);break}s(k,R,N,V,H,U,L),A==="year"&&I.length>1&&E===0&&I.unshift({value:I[0].value-k})}}for(var E=0;E<L.length;E++)I.push(L[E]);return L}}for(var u=[],f=[],c=0,h=0,v=0;v<i.length&&o++<a;++v){var d=No(i[v]);if(JF(i[v])){l(i[v],u[u.length-1]||[],f);var p=i[v+1]?No(i[v+1]):null;if(d!==p){if(f.length){h=c,f.sort(function(A,M){return A.value-M.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||r===i[v]))break}f=[]}}}for(var S=ze(G(u,function(A){return ze(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],x=S.length-1,v=0;v<S.length;++v)for(var w=S[v],T=0;T<w.length;++T)b.push({value:w[T].value,level:x-v});b.sort(function(A,M){return A.value-M.value});for(var C=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&C.push(b[v]);return C}Yn.registerClass(KI);const QI=KI;var Ix=Yn.prototype,wl=Ia.prototype,B8=rt,V8=Math.floor,z8=Math.ceil,hf=Math.pow,Rr=Math.log,i0=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Ia,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=wl.getTicks.call(this,e);return G(o,function(s){var l=s.value,u=rt(hf(this.base,l));return u=l===a[0]&&this._fixMin?vf(u,i[0]):u,u=l===a[1]&&this._fixMax?vf(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var a=Rr(this.base);e=Rr(Math.max(0,e))/a,n=Rr(Math.max(0,n))/a,wl.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=Ix.getExtent.call(this);n[0]=hf(e,n[0]),n[1]=hf(e,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=vf(n[0],i[0])),this._fixMax&&(n[1]=vf(n[1],i[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Rr(e[0])/Rr(n),e[1]=Rr(e[1])/Rr(n),Ix.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=T4(a),o=e/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[rt(z8(n[0]/i)*i),rt(V8(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){wl.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Rr(e)/Rr(this.base),qh(e,this._extent)},t.prototype.normalize=function(e){return e=Rr(e)/Rr(this.base),jh(e,this._extent)},t.prototype.scale=function(e){return e=Kh(e,this._extent),hf(this.base,e)},t.type="log",t}(Yn),JI=i0.prototype;JI.getMinorTicks=wl.getMinorTicks;JI.getLabel=wl.getLabel;function vf(r,t){return B8(r,sn(t))}Yn.registerClass(i0);const G8=i0;var F8=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);J(i)?this._modelMinNum=df(t,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=df(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(J(o)?this._modelMaxNum=df(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=df(t,o)),a)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=z(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Yr(l[0],1),Yr(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?a?0:NaN:e-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=El(s)||El(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[W8[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=H8[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),H8={min:"_determinedMin",max:"_determinedMax"},W8={min:"_dataMin",max:"_dataMax"};function eL(r,t,e){var n=r.rawExtentInfo;return n||(n=new F8(r,t,e),r.rawExtentInfo=n,n)}function df(r,t){return t==null?null:El(t)?NaN:r.parse(t)}function tL(r,t){var e=r.type,n=eL(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=UI("bar",o),l=!1;if(D(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=$I(s),f=U8(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function U8(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=M8(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;D(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;D(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Xo(r,t){var e=t,n=tL(r,e),a=n.extent,i=e.get("splitNumber");r instanceof G8&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Qh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new r0({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new QI({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Yn.getClass(t)||Ia)}}function $8(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function xu(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):Y(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):J(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(o0(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function o0(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Y8(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof r0?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=xu(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=n?n[f]:{value:i[0]+f},h=s(c,f),v=o.getTextRect(h),d=X8(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function X8(r,t){var e=t*Math.PI/180,n=r.width,a=r.height,i=n*Math.abs(Math.cos(e))+Math.abs(a*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(a*Math.cos(e)),s=new ye(r.x,r.y,i,o);return s}function s0(r){var t=r.get("interval");return t??"auto"}function rL(r){return r.type==="category"&&s0(r.getLabelModel())===0}function Gc(r,t){var e={};return D(r.mapDimensionsAll(t),function(n){e[VI(r,n)]=!0}),Te(e)}function Z8(r,t,e){t&&D(Gc(t,e),function(n){var a=t.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var bu=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),q8=1e-8;function Lx(r,t){return Math.abs(r-t)<q8}function pi(r,t,e){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=Dn(a[0],a[1],o[0],o[1],t,e),a=o}var s=r[0];return(!Lx(a[0],s[0])||!Lx(a[1],s[1]))&&(n+=Dn(a[0],a[1],s[0],s[1],t,e)),n!==0}var j8=[];function Cd(r,t){for(var e=0;e<r.length;e++)wt(r[e],r[e],t)}function Px(r,t,e,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(ca(t,t,i),ha(e,e,i))}}function K8(r){for(var t=0,e=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;t+=f,e+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var nL=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),Ex=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Rx=function(){function r(t){this.type="linestring",this.points=t}return r}(),aL=function(r){O(t,r);function t(e,n,a){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,a=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return K8(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?Px(s.exterior,a,i,e):D(s.points,function(l){Px(l,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new ye(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(pi(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(pi(u[f],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new ye(e,n,a,i),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var h=f[c];h.type==="polygon"?(Cd(h.exterior,u),D(h.interiors,function(v){Cd(v,u)})):D(h.points,function(v){Cd(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(nL),Q8=function(r){O(t,r);function t(e,n){var a=r.call(this,e)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Ah(j8),o=e;o&&!o.isGeoSVGGraphicRoot;)Rn(i,o.getLocalTransform(),i),o=o.parent;return is(i,i),wt(a,a,i),a},t}(nL);function J8(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return D(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=iL(s,o,e);break;case"Polygon":Md(s,o,e);break;case"MultiLineString":Md(s,o,e);break;case"MultiPolygon":D(s,function(l,u){return Md(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Md(r,t,e){for(var n=0;n<r.length;n++)r[n]=iL(r[n],t[n],e)}function iL(r,t,e){for(var n=[],a=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/e,l/e])}return n}function e7(r,t){return r=J8(r),G(ze(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Ex(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(l){l[0]&&i.push(new Ex(l[0],l.slice(1)))});break;case"LineString":i.push(new Rx([a.coordinates]));break;case"MultiLineString":i.push(new Rx(a.coordinates))}var s=new aL(n[t||"name"],i,n.cp);return s.properties=n,s})}var Zl=Ie();function t7(r){return r.type==="category"?n7(r):i7(r)}function r7(r,t){return r.type==="category"?a7(r,t):{ticks:G(r.scale.getTicks(),function(e){return e.value})}}function n7(r){var t=r.getLabelModel(),e=oL(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function oL(r,t){var e=sL(r,"labels"),n=s0(t),a=lL(e,n);if(a)return a;var i,o;return J(n)?i=cL(r,n):(o=n==="auto"?o7(r):n,i=fL(r,o)),uL(e,n,{labels:i,labelCategoryInterval:o})}function a7(r,t){var e=sL(r,"ticks"),n=s0(t),a=lL(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),J(n))i=cL(r,n,!0);else if(n==="auto"){var s=oL(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=n,i=fL(r,o,!0);return uL(e,n,{ticks:i,tickCategoryInterval:o})}function i7(r){var t=r.scale.getTicks(),e=xu(r);return{labels:G(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function sL(r,t){return Zl(r)[t]||(Zl(r)[t]=[])}function lL(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function uL(r,t,e){return r.push({key:t,value:e}),e}function o7(r){var t=Zl(r).autoInterval;return t??(Zl(r).autoInterval=r.calculateCategoryInterval())}function s7(r){var t=l7(r),e=xu(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=hu(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var y=h/f,m=v/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Zl(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function l7(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function fL(r,t,e){var n=xu(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=rL(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function cL(r,t,e){var n=r.scale,a=xu(r),i=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var kx=[0,1],u7=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return YM(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Ox(n,a.count())),Be(t,kx,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Ox(n,a.count()));var i=Be(t,n,kx,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=r7(this,e),a=n.ticks,i=G(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return f7(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=G(n,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return t7(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return s7(this)},r}();function Ox(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function f7(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;D(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=rt(v),d=rt(d),c?v>d:v<d}}const qr=u7;var Fs=Math.PI*2,ai=yn.CMD,c7=["top","right","bottom","left"];function h7(r,t,e,n,a){var i=e.width,o=e.height;switch(r){case"top":n.set(e.x+i/2,e.y-t),a.set(0,-1);break;case"bottom":n.set(e.x+i/2,e.y+o+t),a.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),a.set(-1,0);break;case"right":n.set(e.x+i+t,e.y+o/2),a.set(1,0);break}}function v7(r,t,e,n,a,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,c=s*e+t;if(Math.abs(n-a)%Fs<1e-4)return l[0]=f,l[1]=c,u-e;if(i){var h=n;n=Hr(a),a=Hr(h)}else n=Hr(n),a=Hr(a);n>a&&(a+=Fs);var v=Math.atan2(s,o);if(v<0&&(v+=Fs),v>=n&&v<=a||v+Fs>=n&&v+Fs<=a)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,y=e*Math.sin(a)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Fc(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function hL(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var Br=[];function d7(r,t,e){var n=hL(t.x,t.y,t.width,t.height,r.x,r.y,Br);return e.set(Br[0],Br[1]),n}function p7(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],a=f[v+1],i=n,o=a);var p=u;switch(d){case ai.M:i=f[v++],o=f[v++],n=i,a=o;break;case ai.L:p=Fc(n,a,f[v],f[v+1],c,h,Br,!0),n=f[v++],a=f[v++];break;case ai.C:p=CM(n,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,Br),n=f[v++],a=f[v++];break;case ai.Q:p=DM(n,a,f[v++],f[v++],f[v],f[v+1],c,h,Br),n=f[v++],a=f[v++];break;case ai.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,v<=1&&(i=s,o=l);var w=(c-g)*_/m+g;p=v7(g,y,_,S,S+b,x,w,h,Br),n=Math.cos(S+b)*m+g,a=Math.sin(S+b)*_+y;break;case ai.R:i=n=f[v++],o=a=f[v++];var T=f[v++],C=f[v++];p=hL(i,o,T,C,c,h,Br);break;case ai.Z:p=Fc(n,a,i,o,c,h,Br,!0),n=i,a=o;break}p<u&&(u=p,e.set(Br[0],Br[1]))}return u}var Wr=new de,He=new de,nt=new de,fn=new de,on=new de;function Nx(r,t){if(r){var e=r.getTextGuideLine(),n=r.getTextContent();if(n&&e){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||c7,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),c=f&&is([],f),h=t.get("length2")||0;u&&nt.copy(u);for(var v=0;v<o.length;v++){var d=o[v];h7(d,0,s,Wr,fn),de.scaleAndAdd(He,Wr,fn,h),He.transform(c);var p=r.getBoundingRect(),g=u?u.distance(He):r instanceof we?p7(He,r.path,nt):d7(He,p,nt);g<l&&(l=g,He.transform(f),nt.transform(f),nt.toArray(i[0]),He.toArray(i[1]),Wr.toArray(i[2]))}vL(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Hc=[],zt=new de;function vL(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Wr.fromArray(r[0]),He.fromArray(r[1]),nt.fromArray(r[2]),de.sub(fn,Wr,He),de.sub(on,nt,He);var e=fn.len(),n=on.len();if(!(e<.001||n<.001)){fn.scale(1/e),on.scale(1/n);var a=fn.dot(on),i=Math.cos(t);if(i<a){var o=Fc(He.x,He.y,nt.x,nt.y,Wr.x,Wr.y,Hc,!1);zt.fromArray(Hc),zt.scaleAndAdd(on,o/Math.tan(Math.PI-t));var s=nt.x!==He.x?(zt.x-He.x)/(nt.x-He.x):(zt.y-He.y)/(nt.y-He.y);if(isNaN(s))return;s<0?de.copy(zt,He):s>1&&de.copy(zt,nt),zt.toArray(r[1])}}}}function g7(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Wr.fromArray(r[0]),He.fromArray(r[1]),nt.fromArray(r[2]),de.sub(fn,He,Wr),de.sub(on,nt,He);var n=fn.len(),a=on.len();if(!(n<.001||a<.001)){fn.scale(1/n),on.scale(1/a);var i=fn.dot(t),o=Math.cos(e);if(i<o){var s=Fc(He.x,He.y,nt.x,nt.y,Wr.x,Wr.y,Hc,!1);zt.fromArray(Hc);var l=Math.PI/2,u=Math.acos(on.dot(t)),f=l+u-e;if(f>=l)de.copy(zt,nt);else{zt.scaleAndAdd(on,s/Math.tan(Math.PI/2-f));var c=nt.x!==He.x?(zt.x-He.x)/(nt.x-He.x):(zt.y-He.y)/(nt.y-He.y);if(isNaN(c))return;c<0?de.copy(zt,He):c>1&&de.copy(zt,nt)}zt.toArray(r[1])}}}}function Bx(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function y7(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=fa(n[0],n[1]),i=fa(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=$f([],n[1],n[0],o/a),l=$f([],n[1],n[2],o/i),u=$f([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function l0(r,t,e){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<Vl.length;l++){var u=Vl[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:pe(a.states[u]&&a.states[u].ignore,s);if(v||!pe(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0);continue}n||(n=new Jt,r.setTextGuideLine(n),!c&&(s||!o)&&Bx(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Bx(n,!1,u,f)}}if(n){re(n.style,e),n.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=y7}}function u0(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<Ht.length;n++){var a=Ht[n];e[a]=r.getModel([a,t])}return e}function dL(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Cc(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function pL(r,t,e,n,a,i){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.rect[t]-C.rect[t]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var h=r[c],v=h.rect;l=v[t]-s,l<0&&(v[t]-=l,h.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[t]+v[e]}f>0&&i&&b(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=p.rect[t]-n,m=a-g.rect[t]-g.rect[e]}function S(T,C,A){if(T<0){var M=Math.min(C,-T);if(M>0){b(M*A,0,o);var I=M+T;I<0&&x(-I*A,1)}else x(-T*A,1)}}function b(T,C,A){T!==0&&(u=!0);for(var M=C;M<A;M++){var I=r[M],L=I.rect;L[t]+=T,I.label[t]+=T}}function x(T,C){for(var A=[],M=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[t]-L[t]-L[e],0);A.push(P),M+=P}if(M){var E=Math.min(Math.abs(T)/M,C);if(T>0)for(var I=0;I<o-1;I++){var R=A[I]*E;b(R,0,I+1)}else for(var I=o-1;I>0;I--){var R=A[I-1]*E;b(-R,I,o)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),M=0;M<o-1;M++)if(C>0?b(A,0,M+1):b(-A,o-M-1,o),T-=A,T<=0)return}return u}function m7(r,t,e,n){return pL(r,"x","width",t,e,n)}function gL(r,t,e,n){return pL(r,"y","height",t,e,n)}function yL(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new ye(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a<r.length;a++){var i=r[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var c=i.obb,h=!1,v=0;v<t.length;v++){var d=t[v];if(e.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new Cc(d.localRect,d.transform)),c||(c=new Cc(s,l)),c.intersect(d.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function _7(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function S7(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:_7(n&&n.shape.points)}}var Vx=["align","verticalAlign","width","height","fontSize"],Ot=new In,Dd=Ie(),x7=Ie();function pf(r,t,e){for(var n=0;n<e.length;n++){var a=e[n];t[a]!=null&&(r[a]=t[a])}}var gf=["x","y","rotation"],b7=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();ye.applyTransform(f,f,u),u?Ot.setLocalTransform(u):(Ot.x=Ot.y=Ot.rotation=Ot.originX=Ot.originY=0,Ot.scaleX=Ot.scaleY=1),Ot.rotation=Hr(Ot.rotation);var c=a.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();ye.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Ot.x,y:Ot.y,scaleX:Ot.scaleX,scaleY:Ot.scaleY,rotation:Ot.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(J(a)||Te(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ue(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function a(_,S){return function(){Nx(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;J(o.layoutOption)?f=o.layoutOption(S7(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=W(f.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=W(f.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=Dd(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Vx.length;p++){var g=Vx[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),a=dL(this._labelList),i=ze(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ze(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});m7(i,0,e),gL(o,0,n);var s=ze(a,function(l){return l.layoutOption.hideOverlap});yL(s)},r.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(e){var n=e.__model,a=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Dd(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),a=ue(t),i=a.dataIndex;if(n&&i!=null){var o=e.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");l0(t,u0(s),l),Nx(t,c)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Oo(t))){var i=Dd(n),o=i.oldLayout,s=ue(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(me(h,"select")>=0&&n.attr(i.oldLayoutSelect),me(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),ke(n,u,e,l)}else if(n.attr(u),!cs(n).valueAnimation){var c=pe(n.style.opacity,1);n.style.opacity=0,Ze(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};pf(v,u,gf),pf(v,n.states.select,gf)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};pf(d,u,gf),pf(d,n.states.emphasis,gf)}rD(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=x7(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),ke(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,Ze(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const w7=b7;var Id=Ie();function T7(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Id(e).labelManager;a||(a=Id(e).labelManager=new w7),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Id(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var Ld=Math.sin,Pd=Math.cos,mL=Math.PI,ii=Math.PI*2,A7=180/mL,C7=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){this._add("C",t,e,n,a,i,o)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,o){this.ellipse(t,e,n,n,0,a,i,o)},r.prototype.ellipse=function(t,e,n,a,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=pa(c-ii)||(f?u>=ii:-u>=ii),v=u>0?u%ii:u%ii+ii,d=!1;h?d=!0:pa(c)?d=!1:d=v>=mL==!!f;var p=t+n*Pd(o),g=e+a*Ld(o);this._start&&this._add("M",p,g);var y=Math.round(i*A7);if(h){var m=1/this._p,_=(f?1:-1)*(ii-m);this._add("A",n,a,y,1,+f,t+n*Pd(o+_),e+a*Ld(o+_)),m>.01&&this._add("A",n,a,y,0,+f,p,g)}else{var S=t+n*Pd(s),b=e+a*Ld(s);this._add("A",n,a,y,+d,+f,S,b)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,a,i,o,s,l,u){for(var f=[],c=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*c)/c)}this._d.push(t+f.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const _L=C7;var Tl="none",M7=Math.round;function D7(r){var t=r.fill;return t!=null&&t!==Tl}function I7(r){var t=r.stroke;return t!=null&&t!==Tl}var jg=["lineCap","miterLimit","lineJoin"],L7=G(jg,function(r){return"stroke-"+r.toLowerCase()});function P7(r,t,e,n){var a=t.opacity==null?1:t.opacity;if(e instanceof Mt){r("opacity",a);return}if(D7(t)){var i=Ol(t.fill);r("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;(n||o<1)&&r("fill-opacity",o)}else r("fill",Tl);if(I7(t)){var s=Ol(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,c=t.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||c)&&r("paint-order",c?"stroke":"fill"),(n||f<1)&&r("stroke-opacity",f),t.lineDash){var h=jm(e),v=h[0],d=h[1];v&&(d=M7(d||0),r("stroke-dasharray",v.join(",")),(d||n)&&r("stroke-dashoffset",d))}else n&&r("stroke-dasharray",Tl);for(var p=0;p<jg.length;p++){var g=jg[p];if(n||t[g]!==Tc[g]){var y=t[g]||Tc[g];y&&r(L7[p],y)}}}else n&&r("stroke",Tl)}var SL="http://www.w3.org/2000/svg",xL="http://www.w3.org/1999/xlink",E7="http://www.w3.org/2000/xmlns/",R7="http://www.w3.org/XML/1998/namespace";function bL(r){return document.createElementNS(SL,r)}function vt(r,t,e,n,a){return{tag:r,attrs:e||{},children:n,text:a,key:t}}function k7(r,t){var e=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),e.push(i))}return"<"+r+" "+e.join(" ")+">"}function O7(r){return"</"+r+">"}function f0(r,t){t=t||{};var e=t.newline?`
`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return k7(o,s)+(o!=="style"?Xt(l):l||"")+(i?""+e+G(i,function(u){return n(u)}).join(e)+e:"")+O7(o)}return n(r)}function N7(r,t,e){e=e||{};var n=e.newline?`
`:"",a=" {"+n,i=n+"}",o=G(Te(r),function(l){return l+a+G(Te(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=G(Te(t),function(l){return"@keyframes "+l+a+G(Te(t[l]),function(u){return u+a+G(Te(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Kg(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zx(r,t,e,n){return vt("svg","root",{width:r,height:t,xmlns:SL,"xmlns:xlink":xL,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var Gx={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ui="transform-origin";function B7(r,t,e){var n=B({},r.shape);B(n,t),r.buildPath(e,n);var a=new _L;return a.reset(OM(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function V7(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[ui]=e+"px "+n+"px")}var z7={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function wL(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function G7(r,t,e){var n=r.shape.paths,a={},i,o;if(D(n,function(l){var u=Kg(e.zrId);u.animation=!0,Jh(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=Te(f),v=h.length;if(v){o=h[v-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=wL(a,e);return i.replace(o,s)}}function Fx(r){return Y(r)?Gx[r]?"cubic-bezier("+Gx[r]+")":hm(r)?r:"":""}function Jh(r,t,e,n){var a=r.animators,i=a.length,o=[];if(r instanceof Im){var s=G7(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],h=Fx(f.getClip().easing),v=f.getDelay();h?c.push(h):c.push("linear"),v&&c.push(v/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function C(ae,xe,he){for(var K=ae.getTracks(),ve=ae.getMaxTime(),qe=0;qe<K.length;qe++){var Me=K[qe];if(Me.needsAnimate()){var tt=Me.keyframes,Qe=Me.propName;if(he&&(Qe=he(Qe)),Qe)for(var Dt=0;Dt<tt.length;Dt++){var bn=tt[Dt],Wt=Math.round(bn.time/ve*100)+"%",Eu=Fx(bn.easing),Xn=bn.rawValue;(Y(Xn)||Re(Xn))&&(xe[Wt]=xe[Wt]||{},xe[Wt][Qe]=bn.rawValue,Eu&&(xe[Wt][T]=Eu))}}}}for(var A=0;A<S;A++){var M=_[A],I=M.targetName;I?I==="shape"&&C(M,x):!n&&C(M,b)}for(var L in b){var P={};GM(P,r),B(P,b[L]);var E=NM(P),R=b[L][T];w[L]=E?{transform:E}:{},V7(w[L],P),R&&(w[L][T]=R)}var N,k=!0;for(var L in x){w[L]=w[L]||{};var V=!N,R=x[L][T];V&&(N=new yn);var H=N.len();N.reset(),w[L].d=B7(r,x[L],N);var U=N.len();if(!V&&H!==U){k=!1;break}R&&(w[L][T]=R)}if(!k)for(var L in w)delete w[L].d;if(!n)for(var A=0;A<S;A++){var M=_[A],I=M.targetName;I==="style"&&C(M,w,function(K){return z7[K]})}for(var q=Te(w),ee=!0,te,A=1;A<q.length;A++){var _e=q[A-1],Ae=q[A];if(w[_e][ui]!==w[Ae][ui]){ee=!1;break}te=w[_e][ui]}if(ee&&te){for(var L in w)w[L][ui]&&delete w[L][ui];t[ui]=te}if(ze(q,function(ae){return Te(w[ae]).length>0}).length){var Se=wL(w,e);return Se+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+e.cssClassIdx++;e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}var ql=Math.round;function TL(r){return r&&Y(r.src)}function AL(r){return r&&J(r.toDataURL)}function c0(r,t,e,n){P7(function(a,i){var o=a==="fill"||a==="stroke";o&&kM(i)?ML(t,r,a,n):o&&vm(i)?DL(e,r,a,n):r[a]=i},t,e,!1),X7(e,r,n)}function Hx(r){return pa(r[0]-1)&&pa(r[1])&&pa(r[2])&&pa(r[3]-1)}function F7(r){return pa(r[4])&&pa(r[5])}function h0(r,t,e){if(t&&!(F7(t)&&Hx(t))){var n=e?10:1e4;r.transform=Hx(t)?"translate("+ql(t[4]*n)/n+" "+ql(t[5]*n)/n+")":zz(t)}}function Wx(r,t,e){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(ql(n[i][0]*e)/e),a.push(ql(n[i][1]*e)/e);t.points=a.join(" ")}function Ux(r){return!r.smooth}function H7(r){var t=G(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=e[o[0]];s!=null&&(n[o[1]]=ql(s*a)/a)}}}var W7={circle:[H7(["cx","cy","r"])],polyline:[Wx,Ux],polygon:[Wx,Ux]};function U7(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function CL(r,t){var e=r.style,n=r.shape,a=W7[r.type],i={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&OM(r)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&U7(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var c=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;c&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var v=h.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==v||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new _L),p.reset(u),h.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),i.d=p.getStr()}return h0(i,r.transform),c0(i,e,r,t),t.animation&&Jh(r,i,t),vt(s,r.id+"",i)}function $7(r,t){var e=r.style,n=e.image;if(n&&!Y(n)&&(TL(n)?n=n.src:AL(n)&&(n=n.toDataURL())),!!n){var a=e.x||0,i=e.y||0,o=e.width,s=e.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),h0(l,r.transform),c0(l,e,r,t),t.animation&&Jh(r,l,t),vt("image",r.id+"",l)}}function Y7(r,t){var e=r.style,n=e.text;if(n!=null&&(n+=""),!(!n||isNaN(e.x)||isNaN(e.y))){var a=e.font||wa,i=e.x||0,o=Fz(e.y||0,Mh(a),e.textBaseline),s=Gz[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(_2(e)){var u="",f=e.fontStyle,c=m2(e.fontSize);if(!parseFloat(c))return;var h=e.fontFamily||uM,v=e.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),h0(l,r.transform),c0(l,e,r,t),t.animation&&Jh(r,l,t),vt("text",r.id+"",l,void 0,n)}}function $x(r,t){if(r instanceof we)return CL(r,t);if(r instanceof Mt)return $7(r,t);if(r instanceof Bl)return Y7(r,t)}function X7(r,t,e){var n=r.style;if(Hz(n)){var a=Wz(r),i=e.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,h=n.shadowBlur,v=Ol(n.shadowColor),d=v.opacity,p=v.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=vt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[vt("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[a]=o}t.filter=Ch(o)}}function ML(r,t,e,n){var a=r[e],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(EM(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(RM(a))i="radialGradient",o.cx=pe(a.x,.5),o.cy=pe(a.y,.5),o.r=pe(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=cg(s[u].offset)*100+"%",h=s[u].color,v=Ol(h),d=v.color,p=v.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(vt("stop",u+"",g))}var y=vt(i,"",o,l),m=f0(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=vt(i,S,o,l)),t[e]=Ch(S)}function DL(r,t,e,n){var a=r.style[e],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(PM(a)){var h=a.imageWidth,v=a.imageHeight,d=void 0,p=a.image;if(Y(p)?d=p:TL(p)?d=p.src:AL(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ft(h,g),Ft(v,g)}else if(h==null||v==null){var y=function(A,M){if(A){var I=A.elm,L=h||M.width,P=v||M.height;A.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),A.attrs.width=L,A.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=Sm(d,null,r,function(A){l||y(x,A),y(c,A)});m&&m.width&&m.height&&(h=h||m.width,v=v||m.height)}c=vt("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else a.svgElement&&(c=ie(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=NM(a);b&&(o.patternTransform=b);var x=vt("pattern","",o,[c]),w=f0(x),T=n.patternCache,C=T[w];C||(C=n.zrId+"-p"+n.patternIdx++,T[w]=C,o.id=C,x=n.defs[C]=vt("pattern",C,o,[c])),t[e]=Ch(C)}}function Z7(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=vt("clipPath",i,o,[CL(r,e)])}t["clip-path"]=Ch(i)}function Yx(r){return document.createTextNode(r)}function gi(r,t,e){r.insertBefore(t,e)}function Xx(r,t){r.removeChild(t)}function Zx(r,t){r.appendChild(t)}function IL(r){return r.parentNode}function LL(r){return r.nextSibling}function Ed(r,t){r.textContent=t}var qx=58,q7=120,j7=vt("","");function Qg(r){return r===void 0}function nn(r){return r!==void 0}function K7(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function ol(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function jl(r){var t,e=r.children,n=r.tag;if(nn(n)){var a=r.elm=bL(n);if(v0(j7,r),z(e))for(t=0;t<e.length;++t){var i=e[t];i!=null&&Zx(a,jl(i))}else nn(r.text)&&!ne(r.text)&&Zx(a,Yx(r.text))}else r.elm=Yx(r.text);return r.elm}function PL(r,t,e,n,a){for(;n<=a;++n){var i=e[n];i!=null&&gi(r,jl(i),t)}}function Wc(r,t,e,n){for(;e<=n;++e){var a=t[e];if(a!=null)if(nn(a.tag)){var i=IL(a.elm);Xx(i,a.elm)}else Xx(r,a.elm)}}function v0(r,t){var e,n=t.elm,a=r&&r.attrs||{},i=t.attrs||{};if(a!==i){for(e in i){var o=i[e],s=a[e];s!==o&&(o===!0?n.setAttribute(e,""):o===!1?n.removeAttribute(e):e.charCodeAt(0)!==q7?n.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?n.setAttributeNS(E7,e,o):e.charCodeAt(3)===qx?n.setAttributeNS(R7,e,o):e.charCodeAt(5)===qx?n.setAttributeNS(xL,e,o):n.setAttribute(e,o))}for(e in a)e in i||n.removeAttribute(e)}}function Q7(r,t,e){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=e.length-1,u=e[0],f=e[l],c,h,v,d;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=e[++a]:f==null?f=e[--l]:ol(o,u)?(Mo(o,u),o=t[++n],u=e[++a]):ol(s,f)?(Mo(s,f),s=t[--i],f=e[--l]):ol(o,f)?(Mo(o,f),gi(r,o.elm,LL(s.elm)),o=t[++n],f=e[--l]):ol(s,u)?(Mo(s,u),gi(r,s.elm,o.elm),s=t[--i],u=e[++a]):(Qg(c)&&(c=K7(t,n,i)),h=c[u.key],Qg(h)?gi(r,jl(u),o.elm):(v=t[h],v.tag!==u.tag?gi(r,jl(u),o.elm):(Mo(v,u),t[h]=void 0,gi(r,v.elm,o.elm))),u=e[++a]);(n<=i||a<=l)&&(n>i?(d=e[l+1]==null?null:e[l+1].elm,PL(r,d,e,a,l)):Wc(r,t,n,i))}function Mo(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(v0(r,t),Qg(t.text)?nn(n)&&nn(a)?n!==a&&Q7(e,n,a):nn(a)?(nn(r.text)&&Ed(e,""),PL(e,null,a,0,a.length-1)):nn(n)?Wc(e,n,0,n.length-1):nn(r.text)&&Ed(e,""):r.text!==t.text&&(nn(n)&&Wc(e,n,0,n.length-1),Ed(e,t.text)))}function J7(r,t){if(ol(r,t))Mo(r,t);else{var e=r.elm,n=IL(e);jl(t),n!==null&&(gi(n,t.elm,LL(e)),Wc(n,[r],0,0))}return t}var e9=0,t9=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=jx(),this.configLayer=jx(),this.storage=e,this._opts=n=B({},n),this.root=t,this._id="zr"+e9++,this._oldVNode=zx(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=bL("svg");v0(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",J7(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return $x(t,Kg(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=Kg(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=r9(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=vt("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=G(Te(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(vt("defs","defs",{},u)),t.animation){var f=N7(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=vt("style","stl",{},[],f);o.push(c)}}return zx(n,a,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},f0(this.renderToVNode({animation:pe(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:pe(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var a=t.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var c=t[f];if(!c.invisible){var h=c.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<v;y++){var m={};Z7(h[y],m,e);var _=vt("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=h;var S=$x(c,e);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(t,e){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),e!=null&&(n.height=e),a&&i&&(i.style.display="none",t=Eo(a,0,n),e=Eo(a,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(vm(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=$z(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},r}();function jx(r){return function(){}}function r9(r,t,e,n){var a;if(e&&e!=="none")if(a=vt("rect","bg",{width:r,height:t,x:"0",y:"0",id:"0"}),kM(e))ML({fill:e},a.attrs,"fill",n);else if(vm(e))DL({style:{fill:e},dirty:at,getBoundingRect:function(){return{width:r,height:t}}},a.attrs,"fill",n);else{var i=Ol(e),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const n9=t9;function a9(r){r.registerPainter("svg",n9)}function Kx(r,t,e){var n=Ta.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*e,n.height=i*e,n}var i9=function(r){Xe(t,r);function t(e,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||xc,typeof e=="string"?o=Kx(e,n,a):ne(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(pM(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Kx("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ye(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ye(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,b=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var C=new ye(0,0,0,0);C.copy(T),C.union(m),o[w]=C,S=!0;break}else if(l){u.copy(m),u.union(T);var A=m.width*m.height,M=T.width*T.height,I=u.width*u.height,L=I-A-M;L<b&&(b=L,x=w)}}if(l&&(o[x].union(m),S=!0),!S){var _=new ye(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=e[c];if(h){var v=h.shouldBePainted(a,i,!0,!0),d=h.__isRendered&&(h.__dirty&rr||!v)?h.getPrevPaintRect():null;d&&f(d);var p=v&&(h.__dirty&rr||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],v=h.shouldBePainted(a,i,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var y=c+1;y<o.length;)o[c].intersect(o[y])?(g=!0,o[c].union(o[y]),o.splice(y,1)):y++;c++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),i.width=e*a,i.height=n*a,s&&(s.width=e*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(e,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,l/c));var v=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(wh(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||Hg(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else $3(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Wg(o,n,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,p,g,y,m),o.restore())}!a||u?d(0,0,s,l):a.length&&D(a,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(Ir);const Rd=i9;var Qx=1e5,oi=314159,yf=.01,o9=.001;function s9(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function l9(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var u9=function(){function r(t,e,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=B({},n||{}),this.dpr=n.devicePixelRatio||xc,this._singleCanvas=i,this.root=t;var o=t.style;o&&(pM(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=t,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var v=new Rd(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[oi]=v,v.zlevel=oi,s.push(oi),this._domRoot=t}else{this._width=Eo(t,0,n),this._height=Eo(t,1,n);var u=this._domRoot=l9(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Qx)),i||(i=n.ctx,i.save()),Ai(i,s,a,o===e-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Qx)},r.prototype.paintOne=function(t,e){hI(t,e)},r.prototype._paintList=function(t,e,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;og(function(){l._paintList(t,e,n,a)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(oi).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var f=!0,c=!1,h=function(p){var g=i[p],y=g.ctx,m=o&&g.createRepaintRects(t,e,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,b=S&&Date.now(),x=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,m);else if(_===g.__startIndex){var w=t[_];(!w.incremental||!w.notClear||n)&&g.clear(!1,x,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<g.__endIndex;T++){var E=t[T];if(E.__inHover&&(c=!0),a._doPaintEl(E,g,o,L,P,T===g.__endIndex-1),S){var R=Date.now()-b;if(R>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var A=v.dpr,M=0;M<m.length;++M){var I=m[M];y.save(),y.beginPath(),y.rect(I.x*A,I.y*A,I.width*A,I.height*A),y.clip(),C(I),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<i.length;d++)h(d);return Pe.wxa&&D(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},r.prototype._doPaintEl=function(t,e,n,a,i,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Ai(s,t,i,o),t.setPrevPaintRect(l))}else Ai(s,t,i,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=oi);var n=this._layers[t];return n||(n=new Rd("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ge(n,this._layerConfig[t],!0):this._layerConfig[t-yf]&&ge(n,this._layerConfig[t-yf],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&s9(e)){if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(e,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function e(c){i&&(i.__endIndex!==c&&(i.__dirty=!0),i.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+o9,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?yf:0),this._needsManuallyCompositing),f.__builtin__||im("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),a.__dirty&rr&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?ge(n[t],e,!0):n[t]=e;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+yf){var o=this._layers[i];ge(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,a=e[t];a&&(a.dom.parentNode.removeChild(a.dom),delete e[t],n.splice(me(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),e!=null&&(a.height=e),t=Eo(i,0,a),e=Eo(i,1,a),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(oi).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[oi].dom;var e=new Rd("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=e.dom.width,i=e.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Ai(n,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const f9=u9;function c9(r){r.registerPainter("canvas",f9)}var h9=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return $n(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new oe,a=st("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(a),a.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=st(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ke);const v9=h9;function Zo(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=$o(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<e.length;o++)i.push($o(r,t,e[o]));return i.join(" ")}}function EL(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!z(t))return t+"";for(var n=[],a=0;a<e.length;a++){var i=r.getDimensionIndex(e[a]);i>=0&&n.push(t[i])}return n.join(" ")}var d9=function(r){O(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=st(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=p9,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){zn(this.childAt(0))},t.prototype.downplay=function(){Gn(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):ke(h,v,s,n),Xr(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ze(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=dt(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Ki(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),w=x.fill;if(s instanceof Mt){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Ct(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(E){return M?e.getName(E):Zo(e,E)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Je(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=ue(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Ca(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ca(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return _s(e.getItemVisual(n,"symbolSize"))},t}(oe);function p9(r,t){this.parent.drift(r,t)}const wu=d9;function kd(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Jx(r){return r!=null&&!ne(r)&&(r={isIgnore:r}),r||{}}function eb(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:dt(t),cursorStyle:t.get("cursor")}}var g9=function(){function r(t){this.group=new oe,this._SymbolCtor=t||wu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Jx(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=eb(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(kd(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!kd(t,d,c,e)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):ke(v,y,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=eb(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Jx(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(kd(e,o,i,n)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Oa(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){e.remove(a)},n.hostModel)}):e.removeAll()},r}();const Tu=g9;function RL(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=y9(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=G(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Da(t,c[0])&&(h=!0,c[0]=v),Da(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function y9(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:Re(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function kL(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function m9(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function _9(r,t,e,n,a,i,o,s){for(var l=m9(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=RL(a,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var T=y[x],C=y[x+1],A=m[w],M=m[w+1];(isNaN(T)||isNaN(C))&&(T=A,C=M),u.push(T,C),f.push(A,M),c.push(e[x],e[x+1]),h.push(n[w],n[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=a.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);w=I*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var E=kL(g,a,t,I);c.push(E[0],E[1]),h.push(n[w],n[w+1]),p.push(t.getRawIndex(I));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(_e,Ae){return p[_e]-p[Ae]});for(var R=u.length,N=un(R),k=un(R),V=un(R),H=un(R),U=[],_=0;_<d.length;_++){var q=d[_],ee=_*2,te=q*2;N[ee]=u[te],N[ee+1]=u[te+1],k[ee]=f[te],k[ee+1]=f[te+1],V[ee]=c[te],V[ee+1]=c[te+1],H[ee]=h[te],H[ee+1]=h[te+1],U[_]=v[q]}return{current:N,next:k,stackedOnCurrent:V,stackedOnNext:H,status:U}}var ta=Math.min,ra=Math.max;function ki(r,t){return isNaN(r)||isNaN(t)}function Jg(r,t,e,n,a,i,o,s,l){for(var u,f,c,h,v,d,p=e,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=a||p<0)break;if(ki(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),c=y,h=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],w=t[b*2+1];x===y&&w===m&&g<n;)g++,b+=i,p+=i,x=t[b*2],w=t[b*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;ki(x,w)&&T<n;)T++,b+=i,x=t[b*2],w=t[b*2+1];var C=.5,A=0,M=0,I=void 0,L=void 0;if(T>=n||ki(x,w))v=y,d=m;else{A=x-u,M=w-f;var P=y-u,E=x-y,R=m-f,N=w-m,k=void 0,V=void 0;if(s==="x"){k=Math.abs(P),V=Math.abs(E);var H=A>0?1:-1;v=y-H*k*o,d=m,I=y+H*V*o,L=m}else if(s==="y"){k=Math.abs(R),V=Math.abs(N);var U=M>0?1:-1;v=y,d=m-U*k*o,I=y,L=m+U*V*o}else k=Math.sqrt(P*P+R*R),V=Math.sqrt(E*E+N*N),C=V/(V+k),v=y-A*o*(1-C),d=m-M*o*(1-C),I=y+A*o*C,L=m+M*o*C,I=ta(I,ra(x,y)),L=ta(L,ra(w,m)),I=ra(I,ta(x,y)),L=ra(L,ta(w,m)),A=I-y,M=L-m,v=y-A*k/V,d=m-M*k/V,v=ta(v,ra(u,y)),d=ta(d,ra(f,m)),v=ra(v,ta(u,y)),d=ra(d,ta(f,m)),A=y-v,M=m-d,I=y+A*V/k,L=m+M*V/k}r.bezierCurveTo(c,h,v,d,y,m),c=I,h=L}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var OL=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),S9=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OL},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&ki(a[o*2-2],a[o*2-1]);o--);for(;i<o&&ki(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=Jg(e,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=yn.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],d=i[c++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++],m=i[c++];var b=u?yc(s,v,p,y,e,f):yc(l,d,g,m,e,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?ht(l,d,g,m,w):ht(s,v,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(we),x9=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(OL),NL=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new x9},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ki(a[s*2-2],a[s*2-1]);s--);for(;o<s&&ki(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=Jg(e,a,o,s,s,1,n.smooth,l,n.connectNulls);Jg(e,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(we);function BL(r,t,e,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new De({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=J(a)?function(g){a(g,c)}:null;Ze(c,{shape:{width:l,height:u,x:o,y:s}},e,null,n,p)}return c}function VL(r,t,e){var n=r.getArea(),a=rt(n.r0,1),i=rt(n.r,1),o=new Kt({shape:{cx:rt(r.cx,1),cy:rt(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Ze(o,{shape:{endAngle:n.endAngle,r:i}},e)}return o}function ev(r,t,e,n,a){if(r){if(r.type==="polar")return VL(r,t,e);if(r.type==="cartesian2d")return BL(r,t,e,n,a)}else return null;return null}function Ji(r,t){return r.type===t}function tb(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function rb(r){for(var t=1/0,e=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),a=Math.max(s,a))}return[[t,e],[n,a]]}function nb(r,t){var e=rb(r),n=e[0],a=e[1],i=rb(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function ab(r){return Re(r)?r:r?.5:0}function b9(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),a=un(n*2),i=0;i<n;i++){var o=kL(e,r,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function na(r,t,e,n){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],c=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&c.push(r[s],r[s+1]);r=c}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[i]=f[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var h=(u[i]+f[i])/2,v=[];l[i]=v[i]=h,l[1-i]=u[1-i],v[1-i]=f[1-i],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[i]=u[i],l[1-i]=f[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function w9(r,t){var e=[],n=r.length,a,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=Vz(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>t){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function T9(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=w9(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,y=g-p;if(y<.001)return"transparent";D(h,function(_){_.offset=(_.coord-p)/y}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new ls(0,0,0,0,h,!0);return m[a]=p,m[a+"2"]=g,m}}}function A9(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&C9(i,t))){var o=t.mapDimension(i.dim),s={};return D(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function C9(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(wu.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function M9(r,t){return isNaN(r)||isNaN(t)}function D9(r){for(var t=r.length/2;t>0&&M9(r[t*2-2],r[t*2-1]);t--);return t-1}function ib(r,t){return[r[t*2],r[t*2+1]]}function I9(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function zL(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Ht.length;t++)if(r.get([Ht[t],"endLabel","show"]))return!0;return!1}function Od(r,t,e,n){if(Ji(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=zL(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=BL(t,e,n,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return VL(t,e,n)}function L9(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var P9=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new oe,n=new Tu;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,a){var i=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),c=l.getLayout("points")||[],h=o.type==="polar",v=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=!n.ssr&&e.isAnimationEnabled(),_=!f.isEmpty(),S=f.get("origin"),b=RL(o,l,S),x=_&&b9(o,l,b),w=e.get("showSymbol"),T=e.get("connectNulls"),C=w&&!h&&A9(e,l,o),A=this._data;A&&A.eachItemGraphicEl(function(Ae,Se){Ae.__temp&&(s.remove(Ae),A.setItemGraphicEl(Se,null))}),w||d.remove(),s.add(y);var M=h?!1:e.get("step"),I;o&&o.getArea&&e.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=T9(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&v.type===o.type&&M===this._step))w&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Ae){return[c[Ae*2],c[Ae*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),M&&(c=na(c,o,M,T),x&&(x=na(x,o,M,T))),p=this._newPolyline(c),_?g=this._newPolygon(c,x):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,Wi(L)),y.setClipPath(Od(this,o,!0,e));else{_&&!g?g=this._newPolygon(c,x):g&&!_&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,Wi(L));var P=y.getClipPath();if(P){var E=Od(this,o,!1,e);Ze(P,{shape:E.shape},e)}else y.setClipPath(Od(this,o,!0,e));w&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Ae){return[c[Ae*2],c[Ae*2+1]]}}),(!tb(this._stackedOnPoints,x)||!tb(this._points,c))&&(m?this._doUpdateAnimation(l,x,o,a,M,S,T):(M&&(c=na(c,o,M,T),x&&(x=na(x,o,M,T))),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:x})))}var R=e.getModel("emphasis"),N=R.get("focus"),k=R.get("blurScope"),V=R.get("disabled");if(p.useStyle(re(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),At(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var H=p.getState("emphasis").style;H.lineWidth=+p.style.lineWidth+1}ue(p).seriesIndex=e.seriesIndex,Je(p,N,k,V);var U=ab(e.get("smooth")),q=e.get("smoothMonotone");if(p.setShape({smooth:U,smoothMonotone:q,connectNulls:T}),g){var ee=l.getCalculationInfo("stackedOnSeries"),te=0;g.useStyle(re(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ee&&(te=ab(ee.get("smooth"))),g.setShape({smooth:U,stackedOnSmooth:te,smoothMonotone:q,connectNulls:T}),At(g,e,"areaStyle"),ue(g).seriesIndex=e.seriesIndex,Je(g,N,k,V)}var _e=function(Ae){i._changePolyState(Ae)};l.eachItemGraphicEl(function(Ae){Ae&&(Ae.onHoverStateChange=_e)}),this._polyline.onHoverStateChange=_e,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=M,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){ue(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=Gi(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new wu(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else $e.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=Gi(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else $e.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Ac(this._polyline,e),n&&Ac(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new S9({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new NL({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");J(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=J(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=a;i?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=J(c)?c(d):f*w+h,C=p.getSymbolPath(),A=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(zL(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ee({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=D9(l);f>=0&&(Ct(s,dt(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?EL(o,v):Zo(o,c)},enableTextSetter:!0},L9(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=I9(c,S,w),C=T.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!v){var I=ib(c,C[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(M=h.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(C[0]),P=h.getRawValue(C[1]);o&&(M=n2(a,d,L,P,T.t))}i.lastFrameIndex=C[0]}else{var E=e===1||i.lastFrameIndex>0?C[0]:0,I=ib(c,E);o&&(M=h.getRawValue(E)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var R=cs(u);typeof R.setLabelText=="function"&&R.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=_9(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=na(h.current,a,o,l),d=na(h.stackedOnCurrent,a,o,l),p=na(h.next,a,o,l),g=na(h.stackedOnNext,a,o,l)),nb(v,p)>3e3||f&&nb(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:p}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),ke(u,y,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),ke(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,A=m[T].ptIdx*2;C.x=w[A],C.y=w[A+1],C.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}($e);const E9=P9;function Au(r,t){return{seriesType:r,plan:ys(),reset:function(e){var n=e.getData(),a=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(a){var s=G(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Da(n,s[0])&&(s[0]=u),Da(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&un(p*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var b=void 0;if(l===1){var x=f.get(c,_);b=a.dataToPoint(x,null,m)}else y[0]=f.get(c,_),y[1]=f.get(h,_),b=a.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",g)}}}}}}var R9={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},k9=function(r){return Math.round(r.length/2)};function GL(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;Y(i)?d=R9[i]:J(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,k9))}}}}}function O9(r){r.registerChartView(E9),r.registerSeriesModel(v9),r.registerLayout(Au("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,GL("line"))}var FL=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return $n(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)D(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=o[v],g=n[v]==="x1"||n[v]==="y1";if(g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,_=1,S=0;S<d.length;S++){var b=d[S].coord,x=S===d.length-1?d[S-1].tickValue+_:d[S].tickValue;if(x===p){m=b;break}else if(x<p)y=b;else if(y!=null&&x>p){m=(b+y)/2;break}S===1&&(_=x-d[0].tickValue)}m==null&&(y?y&&(m=d[d.length-1].coord):m=d[0].coord),s[v]=h.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ke);Ke.registerClass(FL);const Uc=FL;var N9=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return $n(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Na(Uc.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Uc);const B9=N9;var V9=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),z9=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new V9},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(e.moveTo(p*o+a,g*o+i),e.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!h)):e.moveTo(p*s+a,g*s+i),e.arc(a,i,s,f,c,!h),e.arc(y*u+a,m*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&e.arc(a,i,o,c,f,h)},t}(we);const $c=z9;function G9(r,t){t=t||{};var e=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return bc(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(p),x=c+h*S(p),w="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(y),x=c+(v-l)*S(y),w="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(y),x=c+(v+l)*S(y),w="center",T="bottom";break;case"startAngle":b=f+d*_(p)+mf(p,l+m,!1),x=c+d*S(p)+_f(p,l+m,!1),w="right",T="middle";break;case"insideStartAngle":b=f+d*_(p)+mf(p,-l+m,!1),x=c+d*S(p)+_f(p,-l+m,!1),w="left",T="middle";break;case"middle":b=f+d*_(y),x=c+d*S(y),w="center",T="middle";break;case"endArc":b=f+(h+l)*_(y),x=c+(h+l)*S(y),w="center",T="bottom";break;case"insideEndArc":b=f+(h-l)*_(y),x=c+(h-l)*S(y),w="center",T="top";break;case"endAngle":b=f+d*_(g)+mf(g,l+m,!0),x=c+d*S(g)+_f(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":b=f+d*_(g)+mf(g,-l+m,!0),x=c+d*S(g)+_f(g,-l+m,!0),w="right",T="middle";break;default:return bc(n,a,i)}return n=n||{},n.x=b,n.y=x,n.align=w,n.verticalAlign=T,n}}function F9(r,t,e,n){if(Re(n)){r.setTextConfig({rotation:n});return}else if(z(t)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function mf(r,t,e){return t*Math.sin(r)*(e?-1:1)}function _f(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Ci(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;z(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:G(n,function(i){return Yr(i,a)})}}var Nd=Math.max,Bd=Math.min;function H9(r,t){var e=r.getArea&&r.getArea();if(Ji(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=a,e.width+=a*2):(e.y-=a,e.height+=a*2)}}return e}var W9=function(r){O(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,a,i){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,a):this._renderNormal(e,n,a,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){Oa(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,a,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=e.isAnimationEnabled()?e:null,v=U9(e,u);v&&this._enableRealtimeSort(v,s,a);var d=e.get("clip",!0)||v,p=H9(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function T(M){var I=Sf[u.type](s,M),L=K9(u,c,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[M]=L,L}s.diff(l).add(function(M){var I=s.getItemModel(M),L=Sf[u.type](s,M,I);if(y&&T(M),!(!s.hasValue(M)||!fb[u.type](L))){var P=!1;d&&(P=ob[u.type](p,L));var E=sb[u.type](e,s,M,L,c,h,f.model,!1,g);v&&(E.forceLabelAnimation=!0),cb(E,s,M,I,L,e,c,u.type==="polar"),x?E.attr({shape:L}):v?lb(v,h,E,L,M,c,!1,!1):Ze(E,{shape:L},e,M),s.setItemGraphicEl(M,E),o.add(E),E.ignore=P}}).update(function(M,I){var L=s.getItemModel(M),P=Sf[u.type](s,M,L);if(y){var E=void 0;b.length===0?E=T(I):(E=b[I],E.useStyle(m.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[M]=E);var R=Sf[u.type](s,M),N=WL(c,R,u);ke(E,{shape:N},h,M)}var k=l.getItemGraphicEl(I);if(!s.hasValue(M)||!fb[u.type](P)){o.remove(k);return}var V=!1;if(d&&(V=ob[u.type](p,P),V&&o.remove(k)),k?Xr(k):k=sb[u.type](e,s,M,P,c,h,f.model,!!k,g),v&&(k.forceLabelAnimation=!0),w){var H=k.getTextContent();if(H){var U=cs(H);U.prevValue!=null&&(U.prevValue=U.value)}}else cb(k,s,M,L,P,e,c,u.type==="polar");x?k.attr({shape:P}):v?lb(v,h,k,P,M,c,!0,w):ke(k,{shape:P},e,M,null),s.setItemGraphicEl(M,k),k.ignore=V,o.add(k)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&Gl(I,e,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new oe);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,a){this._clear(),vb(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),vb(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&ev(e.coordinateSystem,!1,e),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,a){var i=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,a){var i=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,a){for(var i=a.scale,o=e.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Gl(i,e,ue(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}($e),ob={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=Nd(t.x,r.x),s=Bd(t.x+t.width,a),l=Nd(t.y,r.y),u=Bd(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>a?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=Bd(t.r,r.r),i=Nd(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},sb={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new De({shape:B({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?$c:Kt,f=new u({shape:n,z2:1});f.name="item";var c=HL(a);if(f.calculateTextPosition=G9(c,{isRoundCap:u===$c}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?ke:Ze)(f,{shape:d},i)}return f}};function U9(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function lb(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?ke:Ze)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?ke:Ze)(e,{shape:u},f,a)}function ub(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var $9=["x","y","width","height"],Y9=["cx","cy","r","startAngle","endAngle"],fb={cartesian2d:function(r){return!ub(r,$9)},polar:function(r){return!ub(r,Y9)}},Sf={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),a=e?Z9(e,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function X9(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function HL(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function cb(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=Ci(n.getModel("itemStyle"),f,!0);B(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=dt(n);Ct(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Zo(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,F9(r,g==="outside"?v:g,HL(o),n.get(["label","rotate"]))}tD(p,d,i.getRawValue(e),function(m){return EL(t,m)});var y=n.getModel(["emphasis"]);Je(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),At(r,n),X9(a)&&(r.style.fill="none",r.style.stroke="none",D(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Z9(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var q9=function(){function r(){}return r}(),hb=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new q9},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(we);function vb(r,t,e,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new hb({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var c=new hb({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(a.getVisual("style")),ue(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",db),c.on("mousemove",db)),e&&e.push(c)}var db=Zm(function(r){var t=this,e=j9(t,r.offsetX,r.offsetY);ue(t).dataIndex=e>=0?e:null},30,!1);function j9(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function WL(r,t,e){if(Ji(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function K9(r,t,e){var n=r.type==="polar"?Kt:De;return new n({shape:WL(t,e,r),silent:!0,z2:0})}const Q9=W9;function J9(r){r.registerChartView(Q9),r.registerSeriesModel(B9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,fe(XI,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ZI("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,GL("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var xf=Math.PI*2,pb=Math.PI/180;function UL(r,t){return ct(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function $L(r,t){var e=UL(r,t),n=r.get("center"),a=r.get("radius");z(a)||(a=[0,a]);var i=W(e.width,t.getWidth()),o=W(e.height,t.getHeight()),s=Math.min(i,o),l=W(a[0],s/2),u=W(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else z(n)||(n=[n,n]),f=W(n[0],i)+e.x,c=W(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function eU(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=UL(n,e),s=$L(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*pb,v=n.get("minAngle")*pb,d=0;a.each(i,function(A){!isNaN(A)&&d++});var p=a.getSum(i),g=Math.PI/(p||d)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var b=xf,x=0,w=h,T=y?1:-1;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(A,M){var I;if(isNaN(A)){a.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:c,r:m?NaN:f});return}m!=="area"?I=p===0&&_?g:A*g:I=xf/d,I<v?(I=v,b-=v):x+=A;var L=w+T*I;a.setItemLayout(M,{angle:I,startAngle:w,endAngle:L,clockwise:y,cx:l,cy:u,r0:c,r:m?Be(A,S,[c,f]):f}),w=L}),b<xf&&d)if(b<=.001){var C=xf/d;a.each(i,function(A,M){if(!isNaN(A)){var I=a.getItemLayout(M);I.angle=C,I.startAngle=h+T*M*C,I.endAngle=h+T*(M+1)*C}})}else g=b/x,w=h,a.each(i,function(A,M){if(!isNaN(A)){var I=a.getItemLayout(M),L=I.angle===v?v:A*g;I.startAngle=w,I.endAngle=w+T*L,w+=T*L}})})}function Cu(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var tU=Math.PI/180;function gb(r,t,e,n,a,i,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),b=n+_.len,x=b*b,w=Math.sqrt((1-Math.abs(S*S/y))*x),T=t+(w+_.len2)*a,C=T-_.label.x,A=_.targetTextWidth-C*a;YL(_,A,!0),_.label.x=T}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?y:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,w=n+_.len,T=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=T,S.maxY=b}S.list.push(_)}f(g),f(y)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}gL(r,l,l+o)&&c(r)}function rU(r,t,e,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;Vd(r[h])||(v.x<t?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!Vd(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?g=f-o-d.bleedMargin:g=o+a-c-d.bleedMargin:v.x<t?g=v.x-o-d.bleedMargin:g=o+a-v.x-d.bleedMargin,d.targetTextWidth=g,YL(d,g)}}gb(u,t,e,n,1,a,i,o,s,c),gb(l,t,e,n,-1,a,i,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!Vd(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];y?v.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+a-d.edgeDistance-b-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function YL(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(t<f||e){var c=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-c)/2}}}function Vd(r){return r.position==="center"}function nU(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*tU,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),A=w.getTextGuideLine(),M=t.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),E=I.get("alignTo"),R=W(I.get("edgeDistance"),u),N=I.get("bleedMargin"),k=M.getModel("labelLine"),V=k.get("length");V=W(V,u);var H=k.get("length2");if(H=W(H,u),Math.abs(T.endAngle-T.startAngle)<o){D(C.states,v),C.ignore=!0,A&&(D(A.states,v),A.ignore=!0);return}if(d(C)){var U=(T.startAngle+T.endAngle)/2,q=Math.cos(U),ee=Math.sin(U),te,_e,Ae,Se;n=T.cx,a=T.cy;var ae=L==="inside"||L==="inner";if(L==="center")te=T.cx,_e=T.cy,Se="center";else{var xe=(ae?(T.r+T.r0)/2*q:T.r*q)+n,he=(ae?(T.r+T.r0)/2*ee:T.r*ee)+a;if(te=xe+q*3,_e=he+ee*3,!ae){var K=xe+q*(V+l-T.r),ve=he+ee*(V+l-T.r),qe=K+(q<0?-1:1)*H,Me=ve;E==="edge"?te=q<0?f+R:f+u-R:te=qe+(q<0?-P:P),_e=Me,Ae=[[xe,he],[K,ve],[qe,Me]]}Se=ae?"center":E==="edge"?q>0?"right":"left":q>0?"left":"right"}var tt=Math.PI,Qe=0,Dt=I.get("rotate");if(Re(Dt))Qe=Dt*(tt/180);else if(L==="center")Qe=0;else if(Dt==="radial"||Dt===!0){var bn=q<0?-U+tt:-U;Qe=bn}else if(Dt==="tangential"&&L!=="outside"&&L!=="outer"){var Wt=Math.atan2(q,ee);Wt<0&&(Wt=tt*2+Wt);var Eu=ee>0;Eu&&(Wt=tt+Wt),Qe=Wt-tt}if(i=!!Qe,C.x=te,C.y=_e,C.rotation=Qe,C.setStyle({verticalAlign:"middle"}),ae){C.setStyle({align:Se});var lv=C.states.select;lv&&(lv.x+=C.x,lv.y+=C.y)}else{var Xn=C.getBoundingRect().clone();Xn.applyTransform(C.getComputedTransform());var v_=(C.style.margin||0)+2.1;Xn.y-=v_/2,Xn.height+=v_,e.push({label:C,labelLine:A,position:L,len:V,len2:H,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new de(q,ee),linePoints:Ae,textAlign:Se,labelDistance:P,labelAlignTo:E,edgeDistance:R,bleedMargin:N,rect:Xn,unconstrainedWidth:Xn.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:ae})}}),!i&&r.get("avoidLabelOverlap")&&rU(e,n,a,l,u,h,f,c);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(D(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(D(m.states,v),m.ignore=!0):(vL(b,g.minTurnAngle),g7(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new de(b[0][0],b[0][1])})}}}var aU=function(r){O(t,r);function t(e,n,a){var i=r.call(this)||this;i.z2=2;var o=new Ee;return i.setTextContent(o),i.updateData(e,n,a,!0),i}return t.prototype.updateData=function(e,n,a,i){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),c=B(Ci(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Ze(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Ze(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ze(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,ke(o,{shape:{endAngle:f.endAngle}},s,n))}else Xr(o),ke(o,{shape:c},s,n);o.useStyle(e.getItemVisual(n,"style")),At(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=B({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ci(u.getModel("itemStyle"),f)),B(o.ensureState("select"),{x:p,y:g,shape:Ci(l.getModel(["select","itemStyle"]),f)}),B(o.ensureState("blur"),{shape:Ci(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&B(m.ensureState("select"),{x:p,y:g}),B(_.ensureState("select"),{x:p,y:g}),Je(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;Ct(i,dt(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=e.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Jt,this.setTextGuideLine(v)),l0(this,u0(o),{stroke:u,opacity:cn(s.get(["lineStyle","opacity"]),f,1)})}},t}(Kt),iU=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=new Kt({shape:$L(e,a)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var d=new aU(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var p=s.getItemGraphicEl(d);p.updateData(o,v,u),p.off("click"),l.add(p),o.setItemGraphicEl(v,p)}).remove(function(v){var d=s.getItemGraphicEl(v);Gl(d,e,v)}).execute(),nU(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}($e);const oU=iU;function Ss(r,t,e){t=z(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=Su(n,t).dimensions,i=new Gt(a,r);return i.initData(n,e),i}var sU=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const Mu=sU;var lU=Ie(),uU=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mu(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Ss(this,{coordDimensions:["value"],encodeDefaulter:fe(Vm,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=lU(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=x4(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){zi(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ke);const fU=uU;function cU(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Re(o)&&!isNaN(o)&&o<0)})}}}function hU(r){r.registerChartView(oU),r.registerSeriesModel(fU),uI("pie",r.registerAction),r.registerLayout(fe(eU,"pie")),r.registerProcessor(Cu("pie")),r.registerProcessor(cU("pie"))}var vU=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return $n(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Ke);const dU=vU;var XL=4,pU=function(){function r(){}return r}(),gU=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new pU},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<XL,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var h=a[c++],v=a[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,n=e.points,a=e.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,c=i[f]-s/2,h=i[f+1]-l/2;if(e>=c&&n>=h&&e<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<a.length;){var v=a[h++],d=a[h++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),c=Math.max(d,c)}e=this._rect=new ye(l-o/2,u-s/2,f-l+o,c-u+s)}return e},t}(we),yU=function(){function r(){this.group=new oe}return r.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;e=new Float32Array(e.buffer,i,a)}n.setShape("points",e),n.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var a=this._newAdded[0],i=e.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new gU({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=st(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<XL;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=ue(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var c=t.hoverDataIdx;c>=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const mU=yU;var _U=function(r){O(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){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Au("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,a=n&&n.getArea&&n.getArea();return e.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new mU:new Tu,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}($e);const SU=_U;var xU=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Le);const bU=xU;var ey=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ot).models[0]},t.type="cartesian2dAxis",t}(Le);lt(ey,bu);var ZL={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},wU=ge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},ZL),d0=ge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},ZL),TU=ge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},d0),AU=re({logBase:10},d0);const qL={category:wU,value:d0,time:TU,log:AU};var CU={value:1,category:1,time:1,log:1};function qo(r,t,e,n){D(CU,function(a,i){var o=ge(ge({},qL[i],!0),n,!0),s=function(l){O(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Wl(this),v=h?ds(f):{},d=c.getTheme();ge(f,d.get(i+"Axis")),ge(f,this.getDefaultOption()),f.type=yb(f),h&&Ma(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Xg.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",yb)}function yb(r){return r.type||(r.data?"category":"value")}var MU=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return G(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ze(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const DU=MU;var ty=["x","y"];function mb(r){return r.type==="interval"||r.type==="time"}var IU=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ty,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!mb(e)||!mb(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=is([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new ye(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return wt(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return wt(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(e[0],e[1]),i=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-a,s=Math.max(n[0],n[1])-i;return new ye(a,i,o,s)},t}(DU),LU=function(r){O(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(qr);const PU=LU;function ry(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),mt(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function _b(r){return r.get("coordinateSystem")==="cartesian2d"}function Sb(r){var t={xAxisModel:null,yAxisModel:null};return D(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,ot).models[0];t[n]=i}),t}var zd=Math.log;function jL(r,t,e){var n=Ia.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=tL(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=zd(r.base);u=[zd(u[0])/h,zd(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=Ad(d),g=u[0]+d*o;else if(c)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Ad(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Ad(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=rt(g-m),p<0&&u[0]>=0?(p=0,g=rt(m)):g>0&&u[1]<=0&&(g=0,p=-rt(m))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var EU=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ty,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Te(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Zg(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Xo(p,d),Zg(p)&&(s=v))}f.length&&(s||(s=f.pop(),Xo(s.scale,s.model)),D(f,function(g){jL(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};D(n.x,function(o){xb(n,"y",o,i)}),D(n.y,function(o){xb(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=ct(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=Y8(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),RU(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}ne(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===e)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",ot).models[0],a=t.yAxisModel||e&&e.getReferringComponents("yAxis",ot).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,me(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(f,c){D(s.y,function(h,v){var d="x"+c+"y"+v,p=new IU(d);p.master=a,p.model=t,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(Gd(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new PU(f,Qh(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){D(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(_b(a)){var i=Sb(a),o=i.xAxisModel,s=i.yAxisModel;if(!Gd(o,e)||!Gd(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(a,i){D(Gc(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return D(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);me(e,i)<0&&e.push(i),me(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(a,i){var o=new r(a,t,e);o.name="grid_"+i,o.resize(a,e,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(_b(a)){var i=Sb(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=ty,r}();function Gd(r,t){return r.getCoordSysModel()===t}function xb(r,t,e,n){e.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)bb(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&bb(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function bb(r){return r&&r.type!=="category"&&r.type!=="time"&&$8(r)}function RU(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+t}:function(a){return n-a+t},r.toLocalCoord=r.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}const kU=EU;var ga=Math.PI,Oi=function(){function r(t,e){this.group=new oe,this.opt=e,this.axisModel=t,re(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new oe({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!wb[t]},r.prototype.add=function(t){wb[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var a=XM(e-t),i,o;return wc(a)?(o=n>0?"top":"bottom",i="center"):wc(a-ga)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<ga?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),wb={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(wt(s,s,o),wt(l,l,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new _t({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Uo(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);Y(h)&&(h=[h,h]),(Y(v)||Re(v))&&(v=[v,v]);var d=Ki(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];D([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(h[m]!=="none"&&h[m]!=null){var _=st(h[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=BU(e,n,t,r),i=zU(e,n,t,r);if(NU(t,i,a),VU(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=dL(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));yL(o)}},axisName:function(r,t,e,n){var a=mt(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,Ab(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*ga/180);var d;Ab(i)?h=Oi.innerTextLayout(r.rotation,v??r.rotation,o):(h=OU(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=mt(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Ee({x:c[0],y:c[1],rotation:h.rotation,silent:Oi.isLabelSilent(t),style:We(s,{text:a,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(fs({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=Oi.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,ue(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function OU(r,t,e,n){var a=XM(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return wc(a-ga/2)?(o=l?"bottom":"top",i="center"):wc(a-ga*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<ga*1.5&&a>ga/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function NU(r,t,e){if(!rL(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(lr(i),lr(u)):Tb(i,o)&&(n?(lr(o),lr(f)):(lr(i),lr(u))),a===!1?(lr(s),lr(c)):Tb(l,s)&&(a?(lr(l),lr(h)):(lr(s),lr(c)))}}function lr(r){r&&(r.ignore=!0)}function Tb(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Ah([]);return qi(a,a,-r.rotation),e.applyTransform(Rn([],a,r.getLocalTransform())),n.applyTransform(Rn([],a,t.getLocalTransform())),e.intersect(n)}}function Ab(r){return r==="middle"||r==="center"}function KL(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(wt(o,o,t),wt(s,s,t));var f=new _t({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Uo(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f)}return i}function BU(r,t,e,n){var a=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),f=KL(u,t.transform,l,re(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)r.add(f[c]);return f}}function VU(r,t,e,n){var a=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=re(s.getLineStyle(),re(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=KL(o[f],t.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)r.add(c[h])}}function zU(r,t,e,n){var a=e.axis,i=mt(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(mt(n.labelRotate,o.get("rotate"))||0)*ga/180,f=Oi.innerTextLayout(n.rotation,u,n.labelDirection),c=e.getCategories&&e.getCategories(!0),h=[],v=Oi.isLabelSilent(e),d=e.get("triggerEvent");return D(l,function(p,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(c&&c[y]){var b=c[y];ne(b)&&b.textStyle&&(S=new Ue(b.textStyle,o,e.ecModel))}var x=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),w=a.dataToCoord(y),T=new Ee({x:w,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:We(S,{text:m,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:J(x)?x(a.type==="category"?_:a.type==="value"?y+"":y,g):x})});if(T.anid="label_"+y,d){var C=Oi.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=_,C.tickIndex=g,a.type==="category"&&(C.dataIndex=y),ue(T).eventData=C}t.add(T),T.updateTransform(),h.push(T),r.add(T),T.decomposeTransform()}),h}}const Hn=Oi;function GU(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return FU(e,r,t),e.seriesInvolved&&WU(e,r),e}function FU(r,t,e){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];D(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Kl(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(D(s.getAxes(),fe(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&D(d.baseAxes,fe(p,v?"cross":!0,h)),v&&D(d.otherAxes,fe(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!ny(_))){y==null&&(y=_.get("triggerTooltip")),_=g?HU(m,c,a,t,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=Kl(m.model),T=y||b||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:ny(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var A=UU(i,m);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[w]=C,M.mapper=i[A].mapper,C.linkGroup=M}}}})}function HU(r,t,e,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(h){l[h]=ie(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&re(u,c.textStyle)}}return r.model.getModel("axisPointer",new Ue(l,e,n))}function WU(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||D(r.coordSysAxesInfo[Kl(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function UU(r,t){for(var e=t.model,n=t.dim,a=0;a<r.length;a++){var i=r[a]||{};if(Fd(i[n+"AxisId"],e.id)||Fd(i[n+"AxisIndex"],e.componentIndex)||Fd(i[n+"AxisName"],e.name))return a}}function Fd(r,t){return r==="all"||z(r)&&me(r,t)>=0||r===t}function $U(r){var t=p0(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=ny(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function p0(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Kl(r)]}function YU(r){var t=p0(r);return t&&t.axisPointerModel}function ny(r){return!!r.get(["handle","show"])}function Kl(r){return r.type+"||"+r.id}var Cb={},XU=function(r){O(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,i){this.axisPointerClass&&$U(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,a,!0)},t.prototype.updateAxisPointer=function(e,n,a,i){this._doUpdateAxisPointerClass(e,a,!1)},t.prototype.remove=function(e,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=YU(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){Cb[e]=n},t.getAxisPointerClass=function(e){return e&&Cb[e]},t.type="axis",t}(et);const eo=XU;var ay=Ie();function QL(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var f=s.length,c=ay(r).splitAreaColors,h=j(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=z(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;a.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var w=u[d-1].tickValue;w!=null&&h.set(w,v),t.add(new De({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:re({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}ay(r).splitAreaColors=h}}}function JL(r){ay(r).splitAreaColors=null}var ZU=["axisLine","axisTickLabel","axisName"],qU=["splitArea","splitLine","minorSplitLine"],eP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new oe,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=ry(s,e),u=new Hn(e,B({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(Zg(h[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));D(ZU,u.add,u),this._axisGroup.add(u.getGroup()),D(qU,function(c){e.get([c,"show"])&&jU[c](this,this._axisGroup,e,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||pu(o,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)}},t.prototype.remove=function(){JL(this)},t.type="cartesianAxis",t}(eo),jU={splitLine:function(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=z(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=0,c=a.getTicksCoords({tickModel:i}),h=[],v=[],d=o.getLineStyle(),p=0;p<c.length;p++){var g=a.toGlobalCoord(c[p].coord);u?(h[0]=g,h[1]=l.y,v[0]=g,v[1]=l.y+l.height):(h[0]=l.x,h[1]=g,v[0]=l.x+l.width,v[1]=g);var y=f++%s.length,m=c[p].tickValue,_=new _t({anid:m!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:re({stroke:s[y]},d),silent:!0});Uo(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,n){var a=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var f=[],c=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=a.toGlobalCoord(u[v][d].coord);l?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var g=new _t({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});Uo(g.shape,h.lineWidth),t.add(g)}},splitArea:function(r,t,e,n){QL(r,t,e,n)}},tP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(eP),KU=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=tP.type,e}return t.type="yAxis",t}(eP),QU=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new De({shape:e.coordinateSystem.getRect(),style:re({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(et),Mb={offset:0};function rP(r){r.registerComponentView(QU),r.registerComponentModel(bU),r.registerCoordinateSystem("cartesian2d",kU),qo(r,"x",ey,Mb),qo(r,"y",ey,Mb),r.registerComponentView(tP),r.registerComponentView(KU),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function JU(r){be(rP),r.registerSeriesModel(dU),r.registerChartView(SU),r.registerLayout(Au("scatter"))}function e$(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();D(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=Db(f)?f:Ib(a)})}),e.each(function(o){var s=W3(n[o],function(l){return Db(l)})||Ib(a);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function Db(r){return!isNaN(r[0])&&!isNaN(r[1])}function Ib(r){return[r.cx,r.cy]}function t$(r){var t=r.polar;if(t){z(t)||(t=[t]);var e=[];D(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],z(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}D(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var r$=function(r){O(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){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=_s(h.getItemVisual(v,"symbolSize")),g=st(d,-1,-1,2,2),y=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(h,v,d,p,g,y){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),yu[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,g)):_.setPosition(v[m]),d.add(_))}}function c(h){return G(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new Qt,p=new Jt,g={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),Ze(d,g,e,h),Ze(p,g,e,h);var y=new oe,m=new oe;y.add(p),y.add(d),y.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,h,!1),Xr(g),Xr(p),ke(p,m,e),ke(g,m,e),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(re(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),At(p,d,"lineStyle"),At(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,D(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),A=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=A&&b}),g.useStyle(re(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis"),w=x.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Mt){var C=T.style;T.useStyle(B({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=ie(w);var M=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(M==null||isNaN(M))&&(M=""),Ct(T,dt(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),Je(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}($e);const n$=r$;var a$=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mu(X(this.getData,this),X(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return Ss(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=KD(this,e);return pt("section",{header:u,sortBlocks:!0,blocks:G(s,function(c){var h=i.get(i.mapDimension(c.dim),e);return pt("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(G(a.dimensions,function(u){return n.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Ke);const i$=a$;var Hs=qL.value;function bf(r,t){return re({show:t},r)}var o$=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=G(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=re({color:d.color},l));var g=ge(ie(d),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(Y(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else J(f)&&(g.name=f(g.name,g));var m=new Ue(g,null,this.ecModel);return lt(m,bu.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ge({lineStyle:{color:"#bbb"}},Hs.axisLine),axisLabel:bf(Hs.axisLabel,!1),axisTick:bf(Hs.axisTick,!1),splitLine:bf(Hs.splitLine,!0),splitArea:bf(Hs.splitArea,!0),indicator:[]},t}(Le);const s$=o$;var l$=["axisLine","axisTickLabel","axisName"],u$=function(r){O(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){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=G(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Hn(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(i,function(o){D(l$,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),d=z(h)?h:[h],p=z(v)?v:[v],g=[],y=[];function m(E,R,N){var k=N%R.length;return E[k]=E[k]||[],k}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,b=n.cy,x=0;x<_.length;x++){if(f){var w=m(g,d,x);g[w].push(new mn({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,p,x);y[w].push(new kh({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=G(a,function(E,R){var N=E.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),G(N,function(k){return n.coordToPoint(k.coord,R)})}),A=[],x=0;x<=T;x++){for(var M=[],I=0;I<a.length;I++)M.push(C[I][x]);if(M[0]&&M.push(M[0].slice()),f){var w=m(g,d,x);g[w].push(new Jt({shape:{points:M}}))}if(c&&A){var w=m(y,p,x-1);y[w].push(new Qt({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();D(y,function(E,R){this.group.add(_r(E,{style:re({stroke:"none",fill:p[R%p.length]},P),silent:!0}))},this),D(g,function(E,R){this.group.add(_r(E,{style:re({fill:"none",stroke:d[R%d.length]},L),silent:!0}))},this)},t.type="radar",t}(et);const f$=u$;var c$=function(r){O(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(qr);const h$=c$;var v$=function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=G(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new h$(o,new Ia);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(e*e+n*n);e/=a,n/=a;for(var i=Math.atan2(-n,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight(),o=Math.min(a,i)/2;this.cx=W(n[0],a),this.cy=W(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(Y(s)||Re(s))&&(s=[0,s]),this.r0=W(s[0],o),this.r=W(s[1],o),D(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,a=this._model;D(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();D(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=a.get("splitNumber"),o=new Ia;o.setExtent(0,i),o.setInterval(1),D(n,function(s,l){jL(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent("radar",function(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();const d$=v$;function p$(r){r.registerCoordinateSystem("radar",d$),r.registerComponentModel(s$),r.registerComponentView(f$),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function g$(r){be(p$),r.registerChartView(n$),r.registerSeriesModel(i$),r.registerLayout(e$),r.registerProcessor(Cu("radar")),r.registerPreprocessor(t$)}var Lb="\0_ec_interaction_mutex";function y$(r,t,e){var n=g0(r);n[t]=e}function m$(r,t,e){var n=g0(r),a=n[t];a===e&&(n[t]=null)}function Pb(r,t){return!!g0(r)[t]}function g0(r){return r[Lb]||(r[Lb]={})}xn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},at);var _$=function(r){O(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var a=X(n._mousedownHandler,n),i=X(n._mousemoveHandler,n),o=X(n._mouseupHandler,n),s=X(n._mousewheelHandler,n),l=X(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=re(ie(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",a),e.on("mousemove",i),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},n.disable=function(){e.off("mousedown",a),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!r1(e)){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!ic("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Pb(this._zr,"globalPan"))){var n=e.offsetX,a=e.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Bn(e.event),nP(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){r1(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=ic("zoomOnMouseWheel",e,this._opt),a=ic("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;Hd(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);Hd(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Pb(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;Hd(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Ir);function Hd(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(Bn(n.event),nP(r,t,e,n,a))}function nP(r,t,e,n,a){a.isAvailableBehavior=X(ic,null,e,n),r.trigger(t,a)}function ic(r,t,e){var n=e[r];return!r||n&&(!Y(n)||t.event[n+"Key"])}const Du=_$;function y0(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function m0(r,t,e,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(e-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var S$={axisPointer:1,tooltip:1,brush:1};function tv(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!S$.hasOwnProperty(n.mainType)&&a&&a.model!==e}function aP(r){if(Y(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Wd,Yc={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Eb=Te(Yc),Xc={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Rb=Te(Xc),x$=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=aP(t);this._defsUsePending=[];var a=new oe;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),er(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;T$(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=rv(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(c=oP(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var v=a;a=new oe,a.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new De({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(t,e,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=Wd[s];if(f&&Z(Wd,s)){l=f.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});e.add(l)}}var v=kb[s];if(v&&Z(kb,s)){var d=v.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new Bl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ur(e,n),er(t,n,this._defsUsePending,!1,!1),b$(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=function(){Wd={g:function(t,e){var n=new oe;return ur(e,n),er(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new De;return ur(e,n),er(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new mn;return ur(e,n),er(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new _t;return ur(e,n),er(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Mm;return ur(e,n),er(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),a;n&&(a=Bb(n));var i=new Qt({shape:{points:a||[]},silent:!0});return ur(e,i),er(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=Bb(n));var i=new Jt({shape:{points:a||[]},silent:!0});return ur(e,i),er(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Mt;return ur(e,n),er(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new oe;return ur(e,s),er(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new oe;return ur(e,s),er(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",a=R2(n);return ur(e,a),er(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),kb={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new ls(t,e,n,a);return Ob(r,i),Nb(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new Y2(t,e,n);return Ob(r,a),Nb(r,a),a}};function Ob(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function Nb(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};iP(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}e=e.nextSibling}}function ur(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),re(t.__inheritedStyle,r.__inheritedStyle))}function Bb(r){for(var t=rv(r),e=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);e.push([a,i])}return e}function er(r,t,e,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(M$(r,t),iP(r,o,s),n||D$(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Vb(i,"fill",o.fill,e)),o.stroke!=null&&(i.style.stroke=Vb(i,"stroke",o.stroke,e)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=G(rv(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function b$(r,t){var e=t.__selfStyle;if(e){var n=e.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var w$=/^url\(\s*#(.*?)\)/;function Vb(r,t,e,n){var a=e&&e.match(w$);if(a){var i=Fr(a[1]);n.push([r,t,i]);return}return e==="none"&&(e=null),e}function T$(r,t){for(var e=0;e<t.length;e++){var n=t[e];n[0].style[n[1]]=r[n[2]]}}var A$=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function rv(r){return r.match(A$)||[]}var C$=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Ud=Math.PI/180;function M$(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=[],a=null;e.replace(C$,function(c,h,v){return n.push(h,v),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=rv(o);switch(a=a||Mr(),s){case"translate":dn(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":cm(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":qi(a,a,-parseFloat(l[0])*Ud);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Ud);Rn(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Ud);Rn(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var zb=/([^\s:;]+)\s*:\s*([^:;]+)/g;function iP(r,t,e){var n=r.getAttribute("style");if(n){zb.lastIndex=0;for(var a;(a=zb.exec(n))!=null;){var i=a[1],o=Z(Yc,i)?Yc[i]:null;o&&(t[o]=a[2]);var s=Z(Xc,i)?Xc[i]:null;s&&(e[s]=a[2])}}}function D$(r,t,e){for(var n=0;n<Eb.length;n++){var a=Eb[n],i=r.getAttribute(a);i!=null&&(t[Yc[a]]=i)}for(var n=0;n<Rb.length;n++){var a=Rb[n],i=r.getAttribute(a);i!=null&&(e[Xc[a]]=i)}}function oP(r,t){var e=t.width/r.width,n=t.height/r.height,a=Math.min(e,n);return{scale:a,x:-(r.x+r.width/2)*a+(t.x+t.width/2),y:-(r.y+r.height/2)*a+(t.y+t.height/2)}}function I$(r,t){var e=new x$;return e.parse(r,t)}var L$=j(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),P$=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=j(),this._freedGraphics=[],this._mapName=t,this._parsedXML=aP(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=R$(t.named),n=e.regions,a=e.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,n;try{e=t&&I$(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Ft(n!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var a=new oe;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,h=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(f=0,h=o):s&&(f=s.y,h=s.height),u==null||f==null){var v=n.getBoundingRect();u==null&&(u=v.x,c=v.width),f==null&&(f=v.y,h=v.height)}l=this._boundingRect=new ye(u,f,c,h)}if(s){var d=oP(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new De({shape:l.plain()}));var p=[];return D(e.named,function(g){L$.get(g.svgNodeTagLower)!=null&&(p.push(g),E$(g.el))}),{root:a,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},r}();function E$(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function R$(r){var t=[],e=j();return D(r,function(n){if(n.namedFrom==null){var a=new Q8(n.name,n.el);t.push(a),e.set(n.name,a)}}),{regions:t,regionsMap:e}}var iy=[126,25],Gb="南海诸岛",fi=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var si=0;si<fi.length;si++)for(var po=0;po<fi[si].length;po++)fi[si][po][0]/=10.5,fi[si][po][1]/=-10.5/.75,fi[si][po][0]+=iy[0],fi[si][po][1]+=iy[1];function k$(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Gb)return;t.push(new aL(Gb,G(fi,function(n){return{type:"polygon",exterior:n}}),iy))}}var O$={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function N$(r,t){if(r==="china"){var e=O$[t.name];if(e){var n=t.getCenter();n[0]+=e[0]/10.5,n[1]+=-e[1]/(10.5/.75),t.setCenter(n)}}}var B$=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function V$(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:B$[0]})}var z$="name",G$=function(){function r(t,e,n){this.type="geoJSON",this._parsedMap=j(),this._mapName=t,this._specialAreas=n,this._geoJSON=H$(e)}return r.prototype.load=function(t,e){e=e||z$;var n=this._parsedMap.get(e);if(!n){var a=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:a,boundingRect:F$(a)})}var i=j(),o=[];return D(n.regions,function(s){var l=s.name;t&&Z(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new ye(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,n=this._geoJSON,a;try{a=n?e7(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return k$(e,a),D(a,function(i){var o=i.name;N$(e,i),V$(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function F$(r){for(var t,e=0;e<r.length;e++){var n=r[e].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function H$(r){return Y(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ws=j();const Wn={registerMap:function(r,t,e){if(t.svg){var n=new P$(r,t.svg);Ws.set(r,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?e=t.specialAreas:a=t;var n=new G$(r,a,e);Ws.set(r,n)}},getGeoResource:function(r){return Ws.get(r)},getMapForUser:function(r){var t=Ws.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var n=Ws.get(r);if(n)return n.load(t,e)}};var _0=["rect","circle","line","ellipse","polygon","polyline","path"],W$=j(_0),U$=j(_0.concat(["g"])),$$=j(_0.concat(["g"])),sP=Ie();function wf(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function Fb(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Y$=function(){function r(t){var e=new oe;this.uid=hs("ec_map_draw"),this._controller=new Du(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new oe),e.add(this._svgGroup=new oe)}return r.prototype.draw=function(t,e,n,a,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,f=this.group,c=l.getTransformInfo(),h=c.raw,v=c.roam,d=!u.childAt(0)||i;d?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):ke(f,v,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,u,n,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=j(),n=j(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(v,d){return d&&(v=d(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function c(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],p);y&&d.push(y)}return d}function h(v){return{shape:{points:c(v)}}}a.removeAll(),D(t.geo.regions,function(v){var d=v.name,p=e.get(d),g=n.get(d)||{},y=g.dataIdx,m=g.regionModel;p||(p=e.set(d,new oe),a.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,n.set(d,{dataIdx:y,regionModel:m}));var _=[],S=[];D(v.geometries,function(w){if(w.type==="polygon"){var T=[w.exterior].concat(w.interiors||[]);u&&(T=Xb(T,u)),D(T,function(A){_.push(new Qt(h(A)))})}else{var C=w.points;u&&(C=Xb(C,u,!0)),D(C,function(A){S.push(new Jt(h(A)))})}});var b=f(v.getCenter(),l&&l.project);function x(w,T){if(w.length){var C=new Im({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});p.add(C),Hb(t,C,y,m),Wb(t,C,d,m,o,y,b),T&&(Fb(C),D(C.states,Fb))}}x(_),x(S,!0)}),e.each(function(v,d){var p=n.get(d),g=p.dataIdx,y=p.regionModel;Ub(t,v,d,y,o,g),$b(t,v,d,y,o),Yb(t,v,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var a=this._svgDispatcherMap=j(),i=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,f=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);if(W$.get(f)!=null&&c instanceof Dr&&Hb(t,c,h,v),c instanceof Dr&&(c.culling=!0),c.z2EmphasisLift=0,!o.namedFrom&&($$.get(f)!=null&&Wb(t,c,s,v,l,h,null),Ub(t,c,s,v,l,h),$b(t,c,s,v,l),U$.get(f)!=null)){var d=Yb(t,c,s,v,l);d==="self"&&(i=!0);var p=a.get(s)||a.set(s,[]);p.push(c)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Hi(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var n=e.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=Wn.getGeoResource(t);if(e&&e.type==="geoSVG"){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=Wn.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,n){var a=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,y0(o,u.dx,u.dy),n.dispatchAction(B(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,m0(o,u.scale,u.originX,u.originY),n.dispatchAction(B(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,c){return a.containPoint([f,c])&&!tv(u,n,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=sP(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,n,a){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function Hb(r,t,e,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=wf(a),u=wf(i),f=wf(s),c=wf(o),h=r.data;if(h){var v=h.getItemVisual(e,"style"),d=h.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=Yo(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=c,Hi(t)}function Wb(r,t,e,n,a,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var c=l?e:i,h=void 0;(!s||i>=0)&&(h=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ct(t,dt(n),{labelFetcher:h,labelDataIndex:c,defaultText:e},v);var d=t.getTextContent();if(d&&(sP(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Ub(r,t,e,n,a,i){r.data?r.data.setItemGraphicEl(i,t):ue(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:n&&n.option||{}}}function $b(r,t,e,n,a){r.data||fs({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function Yb(r,t,e,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Je(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&jG(t,a,e),o}function Xb(r,t,e){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),D(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),n}const lP=Y$;var X$=function(r){O(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,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new lP(a);o.add(s.group),s.draw(e,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(e,n,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,n,a){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,c=u.offset,h=new mn({style:{fill:e.getData().getVisual("style").fill},shape:{cx:f[0]+c*9,cy:f[1],r:3},silent:!0,z2:8+(c?0:ss+1)});if(!c){var v=e.mainSeries.getData(),d=i.getName(l),p=v.indexOfName(d),g=i.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(p);Ct(h,dt(g),{labelFetcher:{getFormattedLabel:function(_,S){return e.getFormattedLabel(p,S)}},defaultText:d}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Ac(h,_)}}o.add(h)}}})},t.type="map",t}($e);const Z$=X$;var q$=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var n=Ss(this,{coordDimensions:["value"],encodeDefaulter:fe(Vm,this)}),a=j(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,!0)}var u=Wn.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(f){var c=f.name;a.get(c)||i.push(c)}),n.appendValues([],i),n},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var n=this.getData();return n.get(n.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var n=this.getData();return n.getItemModel(n.indexOfName(e))},t.prototype.formatTooltip=function(e,n,a){for(var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var c=l[f].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[f].originalData.get(h,c))||u.push(l[f].name)}return pt("section",{header:u.join(", "),noHeader:!u.length,blocks:[pt("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var n=e.icon||"roundRect",a=st(n,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return a.setStyle(e.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Ke);const j$=q$;function K$(r,t){var e={};return D(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);e[o]=e[o]||[],isNaN(a)||e[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f<u;f++)s=Math.min(s,e[i][f]),l=Math.max(l,e[i][f]),o+=e[i][f];var c;return t==="min"?c=s:t==="max"?c=l:t==="average"?c=o/u:c=o,u===0?NaN:c})}function Q$(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),a=n?"o"+n.id:"i"+e.getMapType();(t[a]=t[a]||[]).push(e)}),D(t,function(e,n){for(var a=K$(G(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=i===0&&!e[i].getHostGeoModel(),e[i].setData(a.cloneShallow()),e[i].mainSeries=e[0]})}function J$(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getMapType();if(!(e.getHostGeoModel()||t[n])){var a={};D(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var c=l.getName(f),h=s.getRegion(c);if(!(!h||isNaN(u))){var v=a[c]||0,d=s.dataToPoint(h.getCenter());a[c]=v+1,l.setItemLayout(f,{point:d,offset:v})}})});var i=e.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[n]=!0}})}var Zb=wt,eY=function(r){O(t,r);function t(e){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new In,n._rawTransformable=new In,n.name=e,n}return t.prototype.setBoundingRect=function(e,n,a,i){return this._rect=new ye(e,n,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,n,a,i){this._transformTo(e,n,a,i),this._viewRect=new ye(e,n,a,i)},t.prototype._transformTo=function(e,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ye(e,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,n){e&&(this._center=[W(e[0],n.getWidth()),W(e[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var n=this.zoomLimit;n&&(n.max!=null&&(e=Math.min(n.max,e)),n.min!=null&&(e=Math.max(n.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),n=e.x+e.width/2,a=e.y+e.height/2;return[n,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=wt([],i,e),a=wt([],a,e),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,n=this._rawTransformable;n.parent=e,e.updateTransform(),n.updateTransform(),fm(this.transform||(this.transform=[]),n.transform||Mr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],is(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,n=this._roamTransformable,a=new In;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?Zb(a,e,i):Bt(a,e)},t.prototype.pointToData=function(e){var n=this.invTransform;return n?Zb([],e,n):[e[0],e[1]]},t.prototype.convertToPixel=function(e,n,a){var i=qb(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=qb(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(In);function qb(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const Iu=eY;var tY={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},uP=["lng","lat"],fP=function(r){O(t,r);function t(e,n,a){var i=r.call(this,e)||this;i.dimensions=uP,i.type="geo",i._nameCoordMap=j(),i.map=n;var o=a.projection,s=Wn.load(n,a.nameMap,a.nameProperty),l=Wn.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=tY[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var c;if(o)for(var h=0;h<u.length;h++){var v=u[h].getBoundingRect(o);c=c||v.clone(),c.union(v)}else c=s.boundingRect;return i.setBoundingRect(c.x,c.y,c.width,c.height),i.aspectScale=o?1:pe(a.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return t.prototype._transformTo=function(e,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ye(e,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(e))return n[a]}},t.prototype.addGeoCoord=function(e,n){this._nameCoordMap.set(e,n)},t.prototype.getGeoCoord=function(e){var n=this._regionsMap.get(e);return this._nameCoordMap.get(e)||n&&n.getCenter()},t.prototype.dataToPoint=function(e,n,a){if(Y(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,n,a)}},t.prototype.pointToData=function(e){var n=this.projection;return n&&(e=n.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,n,a){return r.prototype.dataToPoint.call(this,e,n,a)},t.prototype.convertToPixel=function(e,n,a){var i=jb(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=jb(n);return i===this?i.pointToData(a):null},t}(Iu);lt(fP,Iu);function jb(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",ot).models[0]||{}).coordinateSystem:null}const Kb=fP;function Qb(r,t){var e=r.get("boundingCoords");if(e!=null){var n=e[0],a=e[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var f=function(x,w,T,C){for(var A=T-x,M=C-w,I=0;I<=100;I++){var L=I/100,P=i.project([x+A*L,w+M*L]);ca(n,n,P),ha(a,a,P)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var c=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),d=t.getWidth(),p=t.getHeight(),g=c.width/c.height*this.aspectScale,y=!1,m,_;h&&v&&(m=[W(h[0],d),W(h[1],p)],_=W(v,Math.min(d,p)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=ct(b,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function rY(r,t){D(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var nY=function(){function r(){this.dimensions=uP}return r.prototype.create=function(t,e){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Kb(l+s,l,B({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Qb,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),D(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new Kb(s,s,B({nameMap:om(l)},a(o[0])));u.zoomLimit=mt.apply(null,G(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=Qb,u.resize(o[0],e),D(o,function(f){f.coordinateSystem=u,rY(u,f)})}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),o=j(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Wn.load(e,n,a);return D(l.regions,function(u){var f=u.name;!o.get(f)&&i.push({name:f})}),i},r}(),aY=new nY;const cP=aY;var iY=function(r){O(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,a){var i=Wn.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,a),zi(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,n=this.option;n.regions=cP.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=vn(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ue(o,e,e.ecModel)),o.selected&&(a[s]=!0)),i},j()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Ue(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,n){var a=this.getRegionModel(e),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:e};if(J(i))return o.status=n,i(o);if(Y(i))return i.replace("{a}",e??"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var n=this.option.selectedMap;n&&(n[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var n=this.option.selectedMap;return!!(n&&n[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Le);const oY=iY;function Jb(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function S0(r,t,e,n){var a=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(Jb(r,s),n)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}r.scaleX*=o,r.scaleY*=o;var f=(t.originX-r.x)*(o-1),c=(t.originY-r.y)*(o-1);r.x-=f,r.y-=c,r.updateTransform(),r.setCenter(Jb(r,s),n),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var sY=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,n){this._api=n},t.prototype.render=function(e,n,a,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new lP(a));var o=this._mapDraw;o.draw(e,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,n,a)},t.prototype._handleRegionClick=function(e){var n;wi(e.target,function(a){return(n=ue(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(e,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=ue(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(et);const lY=sY;function uY(r,t,e){Wn.registerMap(r,t,e)}function hP(r){r.registerCoordinateSystem("geo",cP),r.registerComponentModel(oY),r.registerComponentView(lY),r.registerImpl("registerMap",uY),r.registerImpl("getMap",function(e){return Wn.getMapForUser(e)});function t(e,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[e](a.name);var u=l.coordinateSystem;D(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];D(o,function(c,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,n,a){var i=e.componentType||"series";n.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=S0(s,e,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&D(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function fY(r){be(hP),r.registerChartView(Z$),r.registerSeriesModel(j$),r.registerLayout(J$),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Q$),uI("map",r.registerAction)}function cY(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],n,a;n=e.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function hY(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){pY(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=gY(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function vY(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function ew(r){return arguments.length?r:_Y}function sl(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function dY(r,t){return ct(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function pY(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function gY(r,t,e,n){if(t){for(var a=r,i=r,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=$d(s),i=Yd(i),s&&i;){a=$d(a),o=Yd(o),a.hierNode.ancestor=r;var h=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);h>0&&(mY(yY(s,r,e),r,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!$d(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!Yd(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function $d(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Yd(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function yY(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function mY(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function _Y(r,t){return r.parentNode===t.parentNode?1:2}var SY=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),xY=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new SY},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,h=W(n.forkPosition,1),v=[];v[f]=o[f],v[c]=o[c]+(l[c]-o[c])*h,e.moveTo(o[0],o[1]),e.lineTo(v[0],v[1]),e.moveTo(s[0],s[1]),v[f]=s[f],e.lineTo(v[0],v[1]),v[f]=l[f],e.lineTo(v[0],v[1]),e.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=a[d];e.moveTo(p[0],p[1]),v[f]=p[f],e.lineTo(v[0],v[1])}},t}(we),bY=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new oe,e}return t.prototype.init=function(e,n){this._controller=new Du(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,n,a){var i=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,a),this._updateController(e,n,a);var u=this._data;i.diff(u).add(function(f){tw(i,f)&&rw(i,f,null,s,e)}).update(function(f,c){var h=u.getItemGraphicEl(c);if(!tw(i,f)){h&&aw(u,c,h,s,e);return}rw(i,f,h,s,e)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&aw(u,f,c,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:c})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,n){var a=e.getData(),i=[];a.each(function(c){var h=a.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];Ph(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=e.coordinateSystem=new Iu;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(e.get("center"),n),f.setZoom(e.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!tv(u,a,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){y0(s,u.dx,u.dy),a.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){m0(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(e),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var n=e.getData(),a=this._getNodeGlobalScale(e);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(e){var n=e.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}($e);function tw(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function rw(r,t,e,n,a){var i=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",f=r.tree.root,c=o.parentNode===f?o:o.parentNode||o,h=r.getItemGraphicEl(c.dataIndex),v=c.getLayout(),d=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,p=o.getLayout();i?(e=new wu(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=d.x,e.y=d.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=p.rawX,e.__radialRawY=p.rawY,n.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,ke(e,{x:p.x,y:p.y},a);var g=e.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(x.y-m.y,x.x-m.x),S<0&&(S=Math.PI*2+S),b=x.x<m.x,b&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=p.x<m.x,b&&(S=S-Math.PI)):(b=p.x>m.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),A=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?pc(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(ue(e).focus=L),wY(a,o,f,e,d,v,p,n),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var E=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===du||Ac(e.__edge,P)}})}function wY(r,t,e,n,a,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=n.__edge=new Oh({shape:oy(f,c,h,a,a)})),ke(p,{shape:oy(f,c,h,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new xY({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:v}})),ke(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(re({strokeNoScale:!0,fill:null},d)),At(p,l,"lineStyle"),Hi(p),s.add(p))}function nw(r,t,e,n,a){var i=t.tree.root,o=vP(i,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var f=t.getItemGraphicEl(s.dataIndex),c=f.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),v=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);h&&(v==="curve"?Ca(h,{shape:oy(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){e.remove(h)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&Ca(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){e.remove(h)},removeOpt:a}))}}function vP(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,n;n=e.getLayout(),n==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:n}}function aw(r,t,e,n,a){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=vP(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Ca(e,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){nw(u,r,n,a,l)}),nw(i,r,n,a,l)}function oy(r,t,e,n,a){var i,o,s,l,u,f,c,h;if(r==="radial"){u=n.rawX,c=n.rawY,f=a.rawX,h=a.rawY;var v=sl(u,c),d=sl(u,c+(h-c)*e),p=sl(f,h+(c-h)*e),g=sl(f,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,c=n.y,f=a.x,h=a.y,(t==="LR"||t==="RL")&&(i=u+(f-u)*e,o=c,s=f+(u-f)*e,l=h),(t==="TB"||t==="BT")&&(i=u,o=c+(h-c)*e,s=f,l=h+(c-h)*e);return{x1:u,y1:c,x2:f,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const TY=bY;var Ar=Ie();function dP(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,pP(t,e,r),D(e,function(n){D(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,fe(AY,r))})}),t.wrapMethod("cloneShallow",fe(MY,r)),D(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,fe(CY,r))}),Ft(e[t.dataType]===t)}function AY(r,t){if(LY(this)){var e=B({},Ar(this).datas);e[this.dataType]=t,pP(t,e,r)}else x0(t,this.dataType,Ar(this).mainData,r);return t}function CY(r,t){return r.struct&&r.struct.update(),t}function MY(r,t){return D(Ar(t).datas,function(e,n){e!==t&&x0(e.cloneShallow(),n,t,r)}),t}function DY(r){var t=Ar(this).mainData;return r==null||t==null?t:Ar(t).datas[r]}function IY(){var r=Ar(this).mainData;return r==null?[{data:r}]:G(Te(Ar(r).datas),function(t){return{type:t,data:Ar(r).datas[t]}})}function LY(r){return Ar(r).mainData===r}function pP(r,t,e){Ar(r).datas={},D(t,function(n,a){x0(n,a,r,e)})}function x0(r,t,e,n){Ar(e).datas[t]=r,Ar(r).mainData=e,r.dataType=t,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=r),r.getLinkedData=DY,r.getLinkedDataAll=IY}var PY=function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,n){J(t)&&(n=e,e=t,t=null),t=t||{},Y(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=e.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,n);a==="postorder"&&e.call(n,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(t+1),a.height>e&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e<a;e++){var i=n[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,a=n.length;e<a;e++){var i=n[e].contains(t);if(i)return i}},r.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),EY=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,a=e.length;n<a;n++)e[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)e[t.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,n){var a=new r(e),i=[],o=1;s(t);function s(f,c){var h=f.value;o=Math.max(o,z(h)?h.length:1),i.push(f);var v=new PY(ut(f.name,""),a);c?RY(v,c):a.root=v,a._nodes.push(v);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}a.root.updateDepthAndHeight(0);var l=Su(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Gt(l,e);return u.initData(i),n&&n(u),dP({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r}();function RY(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}const b0=EY;function Ql(r,t,e){if(r&&me(t,r.type)>=0){var n=e.getData().tree.root,a=r.targetNode;if(Y(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function gP(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function w0(r,t){var e=gP(r);return me(e,t)>=0}function nv(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var kY=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},a=e.leaves||{},i=new Ue(a,this,this.ecModel),o=b0.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return pt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=nv(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Ke);const OY=kY;function NY(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,e)}function Us(r,t){for(var e=[r],n;n=e.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)e.push(a[i])}}function BY(r,t){r.eachSeriesByType("tree",function(e){VY(e,t)})}function VY(r,t){var e=dY(r,t);r.layoutInfo=e;var n=r.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(e.height,e.width)/2,o=ew(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=e.width,i=e.height,o=ew());var s=r.getData().tree.root,l=s.children[0];if(l){cY(s),NY(l,hY,o),s.hierNode.modifier=-l.hierNode.prelim,Us(l,vY);var u=l,f=l,c=l;Us(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>f.getLayout().x&&(f=_),_.depth>c.depth&&(c=_)});var h=u===f?1:o(u,f)/2,v=h-u.getLayout().x,d=0,p=0,g=0,y=0;if(n==="radial")d=a/(f.getLayout().x+h+v),p=i/(c.depth-1||1),Us(l,function(_){g=(_.getLayout().x+v)*d,y=(_.depth-1)*p;var S=sl(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=i/(f.getLayout().x+h+v),d=a/(c.depth-1||1),Us(l,function(_){y=(_.getLayout().x+v)*p,g=m==="LR"?(_.depth-1)*d:a-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=a/(f.getLayout().x+h+v),p=i/(c.depth-1||1),Us(l,function(_){g=(_.getLayout().x+v)*d,y=m==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function zY(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(a.dataIndex,"style");B(s,o)})})}function GY(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=S0(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function FY(r){r.registerChartView(TY),r.registerSeriesModel(OY),r.registerLayout(BY),r.registerVisual(zY),GY(r)}var iw=["treemapZoomToNode","treemapRender","treemapMove"];function HY(r){for(var t=0;t<iw.length;t++)r.registerAction({type:iw[t],update:"updateView"},at);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"treemap",query:e},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Ql(e,s,i);if(l){var u=i.getViewRoot();u&&(e.direction=w0(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function yP(r){var t=r.getData(),e=t.tree,n={};e.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=Og(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var WY=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};mP(a);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Ue({itemStyle:o},this,n);i=e.levels=UY(i,n);var l=G(i||[],function(c){return new Ue(c,s,n)},this),u=b0.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return pt("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=nv(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=j(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){yP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Ke);function mP(r){var t=0;D(r.children,function(n){mP(n);var a=n.value;z(a)&&(a=a[0]),t+=a});var e=r.value;z(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),z(r.value)?r.value[0]=e:r.value=e}function UY(r,t){var e=Ge(t.get("color")),n=Ge(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;D(r,function(s){var l=new Ue(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=e.slice()),!i&&n&&(o.decal=n.slice()),r}}const $Y=WY;var YY=8,ow=8,Xd=5,XY=function(){function r(t){this.group=new oe,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(t,c,s,l,u,f,a),Uh(o,c.pos,c.box)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=ut(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+YY*2,e.emptyItemWidth);e.totalWidth+=s+ow,e.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(t,e,n,a,i,o,s){for(var l=0,u=e.emptyItemWidth,f=t.get(["breadcrumb","height"]),c=iH(e.pos,e.box),h=e.totalWidth,v=e.renderList,d=a.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],y=g.node,m=g.width,_=g.text;h>c.width&&(h-=m-u,m=u,_=null);var S=new Qt({shape:{points:ZY(l,0,m,f,p===v.length-1,p===0)},style:re(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ee({style:We(i,{text:_})}),textConfig:{position:"inside"},z2:ss*1e4,onclick:fe(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=We(o,{text:_}),S.ensureState("emphasis").style=d,Je(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),qY(S,t,y),l+=m+ow}},r.prototype.remove=function(){this.group.removeAll()},r}();function ZY(r,t,e,n,a,i){var o=[[a?r:r-Xd,t],[r+e,t],[r+e,t+n],[a?r:r-Xd,t+n]];return!i&&o.splice(2,0,[r+e+Xd,t+n/2]),!a&&o.push([r,t+n/2]),o}function qY(r,t,e){ue(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&nv(e,t)}}const jY=XY;var KY=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function QY(){return new KY}var sy=oe,sw=De,lw=3,uw="label",fw="upperLabel",JY=ss*10,eX=ss*2,tX=ss*3,ci=Fi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),cw=function(r){var t=ci(r);return t.stroke=t.fill=t.lineWidth=null,t},Zc=Ie(),rX=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=$s(),e}return t.prototype.render=function(e,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(me(o,e)<0)){this.seriesModel=e,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Ql(i,s,e),u=i&&i.type,f=e.layoutInfo,c=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=e.get("animation"),g=this._doRender(d,e,v);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,e,v):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(e,a,l)}},t.prototype._giveContainerGroup=function(e){var n=this._containerGroup;return n||(n=this._containerGroup=new sy,this._initEvents(n),this.group.add(n)),n.x=e.x,n.y=e.y,n},t.prototype._doRender=function(e,n,a){var i=n.getData().tree,o=this._oldTree,s=$s(),l=$s(),u=this._storage,f=[];function c(g,y,m,_){return nX(n,l,u,a,s,f,g,y,m,_)}v(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var h=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:p};function v(g,y,m,_,S){_?(y=g,D(g,function(w,T){!w.isRemoved()&&x(T,T)})):new Fn(y,g,b,b).add(x).update(x).remove(fe(x,null)).execute();function b(w){return w.getId()}function x(w,T){var C=w!=null?g[w]:null,A=T!=null?y[T]:null,M=c(C,A,m,S);M&&v(C&&C.viewChildren||[],A&&A.viewChildren||[],M,_,S+1)}}function d(g){var y=$s();return g&&D(g,function(m,_){var S=y[_];D(m,function(b){b&&(S.push(b),Zc(b).willDelete=!0)})}),y}function p(){D(h,function(g){D(g,function(y){y.parent&&y.parent.remove(y)})}),D(f,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(e,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(J(o)?0:o)||0,u=(J(s)?null:s)||"cubicOut",f=QY();D(n.willDeleteEls,function(c,h){D(c,function(v,d){if(!v.invisible){var p=v.parent,g,y=Zc(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=h==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(v,g,l,0,u)}})}),D(this._storage,function(c,h){D(c,function(v,d){var p=n.lastsForAnimation[h][d],g={};p&&(v instanceof oe?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=B({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),f.add(v,g,l,0,u))})},this),this._state="animating",f.finished(X(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(e){var n=this._controller;n||(n=this._controller=new Du(e.getZr()),n.enable(this.seriesModel.get("roam")),n.on("pan",X(this._onPan,this)),n.on("zoom",X(this._onZoom,this)));var a=new ye(0,0,e.getWidth(),e.getHeight());n.setPointerChecker(function(i,o,s){return a.contain(o,s)})},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>lw||Math.abs(e.dy)>lw)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new ye(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,a-=l.y;var u=Mr();dn(u,u,[-n,-a]),cm(u,u,[e.scale,e.scale]),dn(u,u,[n,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Pc(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new jY(this.group))).render(e,n,a.node,function(o){i._state!=="animating"&&(w0(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$s(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}($e);function $s(){return{nodeGroup:[],background:[],content:[]}}function nX(r,t,e,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,M=te("nodeGroup",sy);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Zc(M).nodeWidth=v,Zc(M).nodeHeight=d,f.isAboveViewRoot)return M;var I=te("background",sw,u,eX);I&&V(M,I,b&&f.upperLabelHeight);var L=h.getModel("emphasis"),P=L.get("focus"),E=L.get("blurScope"),R=L.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)zl(M)&&xi(M,!1),I&&(xi(I,!R),c.setItemGraphicEl(o.dataIndex,I),Mg(I,N,E));else{var k=te("content",sw,u,tX);k&&H(M,k),I.disableMorphing=!0,I&&zl(I)&&xi(I,!1),xi(M,!R),c.setItemGraphicEl(o.dataIndex,M),Mg(M,N,E)}return M;function V(Se,ae,xe){var he=ue(ae);if(he.dataIndex=o.dataIndex,he.seriesIndex=r.seriesIndex,ae.setShape({x:0,y:0,width:v,height:d,r:A}),g)U(ae);else{ae.invisible=!1;var K=o.getVisual("style"),ve=K.stroke,qe=cw(x);qe.fill=ve;var Me=ci(w);Me.fill=w.get("borderColor");var tt=ci(T);tt.fill=T.get("borderColor");var Qe=ci(C);if(Qe.fill=C.get("borderColor"),xe){var Dt=v-2*p;q(ae,ve,K.opacity,{x:p,y:0,width:Dt,height:S})}else ae.removeTextContent();ae.setStyle(qe),ae.ensureState("emphasis").style=Me,ae.ensureState("blur").style=tt,ae.ensureState("select").style=Qe,Hi(ae)}Se.add(ae)}function H(Se,ae){var xe=ue(ae);xe.dataIndex=o.dataIndex,xe.seriesIndex=r.seriesIndex;var he=Math.max(v-2*p,0),K=Math.max(d-2*p,0);if(ae.culling=!0,ae.setShape({x:p,y:p,width:he,height:K,r:A}),g)U(ae);else{ae.invisible=!1;var ve=o.getVisual("style"),qe=ve.fill,Me=cw(x);Me.fill=qe,Me.decal=ve.decal;var tt=ci(w),Qe=ci(T),Dt=ci(C);q(ae,qe,ve.opacity,null),ae.setStyle(Me),ae.ensureState("emphasis").style=tt,ae.ensureState("blur").style=Qe,ae.ensureState("select").style=Dt,Hi(ae)}Se.add(ae)}function U(Se){!Se.invisible&&i.push(Se)}function q(Se,ae,xe,he){var K=h.getModel(he?fw:uw),ve=ut(h.get("name"),null),qe=K.getShallow("show");Ct(Se,dt(h,he?fw:uw),{defaultText:qe?ve:null,inheritColor:ae,defaultOpacity:xe,labelFetcher:r,labelDataIndex:o.dataIndex});var Me=Se.getTextContent();if(Me){var tt=Me.style,Qe=lm(tt.padding||0);he&&(Se.setTextConfig({layoutRect:he}),Me.disableLabelLayout=!0),Me.beforeUpdate=function(){var bn=Math.max((he?he.width:Se.shape.width)-Qe[1]-Qe[3],0),Wt=Math.max((he?he.height:Se.shape.height)-Qe[0]-Qe[2],0);(tt.width!==bn||tt.height!==Wt)&&Me.setStyle({width:bn,height:Wt})},tt.truncateMinChar=2,tt.lineOverflow="truncate",ee(tt,he,f);var Dt=Me.getState("emphasis");ee(Dt?Dt.style:null,he,f)}}function ee(Se,ae,xe){var he=Se?Se.text:null;if(!ae&&xe.isLeafRoot&&he!=null){var K=r.get("drillDownIcon",!0);Se.text=K?K+" "+he:he}}function te(Se,ae,xe,he){var K=m!=null&&e[Se][m],ve=a[Se];return K?(e[Se][m]=null,_e(ve,K)):g||(K=new ae,K instanceof Dr&&(K.z2=aX(xe,he)),Ae(ve,K)),t[Se][y]=K}function _e(Se,ae){var xe=Se[y]={};ae instanceof sy?(xe.oldX=ae.x,xe.oldY=ae.y):xe.oldShape=B({},ae.shape)}function Ae(Se,ae){var xe=Se[y]={},he=o.parentNode,K=ae instanceof oe;if(he&&(!n||n.direction==="drillDown")){var ve=0,qe=0,Me=a.background[he.getRawIndex()];!n&&Me&&Me.oldShape&&(ve=Me.oldShape.width,qe=Me.oldShape.height),K?(xe.oldX=0,xe.oldY=qe):xe.oldShape={x:ve,y:qe,width:0,height:0}}xe.fadein=!K}}function aX(r,t){return r*JY+t}const iX=rX;var Jl=D,oX=ne,qc=-1,T0=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=ie(t);this.type=n,this.mappingMethod=e,this._normalizeData=uX[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Zd(a),sX(a)):e==="category"?a.categories?lX(a):Zd(a,!0):(Ft(e!=="linear"||a.dataExtent),Zd(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return X(this._normalizeData,this)},r.listVisualTypes=function(){return Te(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){ne(t)?D(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=z(t)?[]:ne(t)?{}:(a=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},n;return t&&Jl(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(z(t))t=t.slice();else if(oX(t)){var e=[];Jl(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var a,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||Y(l)&&l===t+"")return o;n&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Af(c[1],t,f[1]))return o}else if(f[1]===1/0){if(Af(c[0],f[0],t))return o}else if(Af(c[0],f[0],t)&&Af(c[1],t,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:a;function h(v,d){var p=Math.abs(v-t);p<i&&(i=p,a=d)}},r.visualHandlers={color:{applyVisual:Ys("color"),getColorMapper:function(){var t=this.option;return X(t.mappingMethod==="category"?function(e,n){return!n&&(e=this._normalizeData(e)),ll.call(this,e)}:function(e,n,a){var i=!!a;return!n&&(e=this._normalizeData(e)),a=Iv(e,t.parsedVisual,a),i?a:kn(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return kn(Iv(t,this.option.parsedVisual),"rgba")},category:ll,piecewise:function(t,e){var n=uy.call(this,e);return n==null&&(n=kn(Iv(t,this.option.parsedVisual),"rgba")),n},fixed:hi}},colorHue:Tf(function(t,e){return hl(t,e)}),colorSaturation:Tf(function(t,e){return hl(t,null,e)}),colorLightness:Tf(function(t,e){return hl(t,null,null,e)}),colorAlpha:Tf(function(t,e){return mc(t,e)}),decal:{applyVisual:Ys("decal"),_normalizedToVisual:{linear:null,category:ll,piecewise:null,fixed:null}},opacity:{applyVisual:Ys("opacity"),_normalizedToVisual:ly([0,1])},liftZ:{applyVisual:Ys("liftZ"),_normalizedToVisual:{linear:hi,category:hi,piecewise:hi,fixed:hi}},symbol:{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:hw,category:ll,piecewise:function(t,e){var n=uy.call(this,e);return n==null&&(n=hw.call(this,t)),n},fixed:hi}},symbolSize:{applyVisual:Ys("symbolSize"),_normalizedToVisual:ly([0,1])}},r}();function sX(r){var t=r.pieceList;r.hasSpecialVisual=!1,D(t,function(e,n){e.originIndex=n,e.visual!=null&&(r.hasSpecialVisual=!0)})}function lX(r){var t=r.categories,e=r.categoryMap={},n=r.visual;if(Jl(t,function(o,s){e[o]=s}),!z(n)){var a=[];ne(n)?Jl(n,function(o,s){var l=e[s];a[l??qc]=o}):a[qc]=n,n=_P(r,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function Zd(r,t){var e=r.visual,n=[];ne(e)?Jl(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),_P(r,n)}function Tf(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:ly([0,1])}}function hw(r){var t=this.option.visual;return t[Math.round(Be(r,[0,1],[0,t.length-1],!0))]||{}}function Ys(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function ll(r){var t=this.option.visual;return t[this.option.loop&&r!==qc?r%t.length:r]}function hi(){return this.option.visual[0]}function ly(r){return{linear:function(t){return Be(t,r,this.option.visual,!0)},category:ll,piecewise:function(t,e){var n=uy.call(this,e);return n==null&&(n=Be(t,r,this.option.visual,!0)),n},fixed:hi}}function uy(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=T0.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function _P(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=G(t,function(e){var n=nr(e);return n||[0,0,0,1]})),t}var uX={linear:function(r){return Be(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=T0.findPieceIndex(r,t,!0);if(e!=null)return Be(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??qc},fixed:at};function Af(r,t,e){return r?t<=e:t<e}const Tt=T0;var fX="itemStyle",SP=Ie();const cX={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||xP(e,{},r.getViewRoot().getAncestors(),r)}};function xP(r,t,e,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(fX),l=hX(s,t,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=vw(l),f=vX(c,h)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)h=vw(l),u.fill=h;else{var d=dX(r,a,i,s,l,v);D(v,function(p,g){if(p.depth>=e.length||p===e[p.depth]){var y=pX(a,l,p,g,d,n);xP(p,y,e,n)}})}}}function hX(r,t,e){var n=B({},t),a=e.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function vw(r){var t=qd(r,"color");if(t){var e=qd(r,"colorAlpha"),n=qd(r,"colorSaturation");return n&&(t=hl(t,null,null,n)),e&&(t=mc(t,e)),t}}function vX(r,t){return t!=null?hl(t,null,null,r):null}function qd(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function dX(r,t,e,n,a,i){if(!(!i||!i.length)){var o=jd(t,"color")||a.color!=null&&a.color!=="none"&&(jd(t,"colorAlpha")||jd(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new Tt(c);return SP(h).drColorMappingBy=f,h}}}function jd(r,t){var e=r.get(t);return z(e)&&e.length?{name:t,range:e}:null}function pX(r,t,e,n,a,i){var o=B({},t);if(a){var s=a.type,l=s==="color"&&SP(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var eu=Math.max,jc=Math.min,dw=mt,A0=D,bP=["itemStyle","borderWidth"],gX=["itemStyle","gapWidth"],yX=["upperLabel","show"],mX=["upperLabel","height"];const _X={seriesType:"treemap",reset:function(r,t,e,n){var a=e.getWidth(),i=e.getHeight(),o=r.option,s=ct(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=W(dw(s.width,l[0]),a),f=W(dw(s.height,l[1]),i),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=Ql(n,h,r),d=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,p=r.getViewRoot(),g=gP(p);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?AX(r,v,p,u,f):d?[d.width,d.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(S),wP(p,_,!1,0),S=p.getLayout(),A0(g,function(x,w){var T=(g[w+1]||p).getValue();x.setLayout(B({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(CX(s,d,v),!0),r.setLayoutInfo(s),TP(b,new ye(-s.x,-s.y,a,i),g,p,0)}};function wP(r,t,e,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(bP),u=s.get(gX)/2,f=AP(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=eu(a-2*h,0),i=eu(i-h-v,0);var d=a*i,p=SX(r,s,d,t,e,n);if(p.length){var g={x:h,y:v,width:a,height:i},y=jc(a,i),m=1/0,_=[];_.area=0;for(var S=0,b=p.length;S<b;){var x=p[S];_.push(x),_.area+=x.getLayout().area;var w=TX(_,y,t.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,pw(_,y,g,u,!1),y=jc(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&pw(_,y,g,u,!0),!e){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(e=!0)}for(var S=0,b=p.length;S<b;S++)wP(p[S],t,e,n+1)}}}function SX(r,t,e,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=ze(o,function(v){return!v.isRemoved()}),bX(o,s);var u=wX(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=xX(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*e;o[f].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function xX(r,t,e,n,a){if(!n)return e;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/e*t<i&&(s=l,e-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),e}function bX(r,t){return t&&r.sort(function(e,n){var a=t==="asc"?e.getValue()-n.getValue():n.getValue()-e.getValue();return a===0?t==="asc"?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:a}),r}function wX(r,t,e){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],A0(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function TX(r,t,e){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=t*t*e;return l?eu(u*n/l,l/(u*a)):1/0}function pw(r,t,e,n,a){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(a||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,h=r.length;c<h;c++){var v=r[c],d={},p=f?v.getLayout().area/f:0,g=d[l[o]]=eu(f-2*n,0),y=e[s[i]]+e[l[i]]-u,m=c===h-1||y<p?y:p,_=d[l[i]]=eu(m-2*n,0);d[s[o]]=e[s[o]]+jc(n,g/2),d[s[i]]=u+jc(n,_/2),u+=m,v.setLayout(d,!0)}e[s[o]]+=f,e[l[o]]-=f}function AX(r,t,e,n,a){var i=(t||{}).node,o=[n,a];if(!i||i===e)return o;for(var s,l=n*a,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,c=s.children,h=0,v=c.length;h<v;h++)f+=c[h].getValue();var d=i.getValue();if(d===0)return o;u*=f/d;var p=s.getModel(),g=p.get(bP),y=Math.max(g,AP(p));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>A1&&(u=A1),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,a*m]}function CX(r,t,e){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!e)return n;var a=e.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function TP(r,t,e,n,a){var i=r.getLayout(),o=e[a],s=o&&o===r;if(!(o&&!s||a===e.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new ye(t.x-i.x,t.y-i.y,t.width,t.height);A0(r.viewChildren||[],function(u){TP(u,l,e,n,a+1)})}}function AP(r){return r.get(yX)?r.get(mX):0}function MX(r){r.registerSeriesModel($Y),r.registerChartView(iX),r.registerVisual(cX),r.registerLayout(_X),HY(r)}function DX(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),a=e.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Re(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}function IX(r){var t={};r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),a=e.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){Y(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");B(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)a.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function Cf(r){return r instanceof Array||(r=[r,r]),r}function LX(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),a=Cf(t.get("edgeSymbol")),i=Cf(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=e.getEdgeByIndex(o),u=Cf(s.getShallow("symbol",!0)),f=Cf(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(B(h,c),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var fy="-->",av=function(r){return r.get("autoCurveness")||null},CP=function(r,t){var e=av(r),n=20,a=[];if(Re(e))n=e;else if(z(e)){r.__curvenessList=e;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},tu=function(r,t,e){var n=[r.id,r.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[e.uid,n,a].join(fy)},MP=function(r){var t=r.split(fy);return[t[0],t[2],t[1]].join(fy)},PX=function(r,t){var e=tu(r.node1,r.node2,t);return t.__edgeMap[e]},EX=function(r,t){var e=cy(tu(r.node1,r.node2,t),t),n=cy(tu(r.node2,r.node1,t),t);return e+n},cy=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function RX(r){av(r)&&(r.__curvenessList=[],r.__edgeMap={},CP(r))}function kX(r,t,e,n){if(av(e)){var a=tu(r,t,e),i=e.__edgeMap,o=i[MP(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function C0(r,t,e,n){var a=av(t),i=z(a);if(!a)return null;var o=PX(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=EX(r,t);CP(t,u),r.lineStyle=r.lineStyle||{};var f=tu(r.node1,r.node2,t),c=t.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var v=MP(f),d=cy(v,t),p=c[s+d+h];return n?i?a&&a[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:c[s+d+h]}function DP(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),M0(e,r)}}function M0(r,t){r.eachEdge(function(e,n){var a=cn(e.getModel().get(["lineStyle","curveness"]),-C0(e,t,n,!0),0),i=En(e.node1.getLayout()),o=En(e.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),e.setLayout(s)})}function OX(r,t){r.eachSeriesByType("graph",function(e){var n=e.get("layout"),a=e.coordinateSystem;if(a&&a.type!=="view"){var i=e.getData(),o=[];D(a.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}M0(i.graph,e)}else(!n||n==="none")&&DP(e)})}function ul(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,n=t.scaleX,a=t.getZoom(),i=(a-1)*e+1;return i/n}function fl(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var gw=Math.PI,Kd=[];function D0(r,t,e,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(e){var h=a.pointToData(n),v=h[0],d=h[1],p=[v-l,d-u];as(p,p),Uf(p,p,f),e.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);IP(e,g,l,u)}NX[t](r,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=cn(y.getModel().get(["lineStyle","curveness"]),C0(y,r,m),0),S=En(y.node1.getLayout()),b=En(y.node2.getLayout()),x,w=(S[0]+b[0])/2,T=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,b,x])})}}}var NX={value:function(r,t,e,n,a,i,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=h})},symbolSize:function(r,t,e,n,a,i,o){var s=0;Kd.length=o;var l=ul(r);t.eachNode(function(c){var h=fl(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/n);isNaN(v)&&(v=gw/2),Kd[c.dataIndex]=v,s+=v*2});var u=(2*gw-s)/o/2,f=0;t.eachNode(function(c){var h=u+Kd[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=h})}};function IP(r,t,e,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-e);u<0&&(u=Math.PI*2+u);var f=l[0]<e;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");B(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function BX(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&D0(t,"symbolSize")})}var go=Jp;function VX(r,t,e){for(var n=r,a=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=Zi(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=En(c.p),c.edges=null}var h=e.friction==null?.6:e.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;_i(y,x.p,b.p);var w=eg(y)-S.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),as(y,y),!b.fixed&&go(b.p,b.p,y,T*w*v),!x.fixed&&go(x.p,x.p,y,-(1-T)*w*v)}}for(var _=0;_<m;_++){var C=n[_];C.fixed||(_i(y,l,C.p),go(C.p,C.p,y,u*v))}for(var _=0;_<m;_++)for(var b=n[_],A=_+1;A<m;A++){var x=n[A];_i(y,x.p,b.p);var w=eg(y);w===0&&(j3(y,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+x.rep)/w/w;!b.fixed&&go(b.pp,b.pp,y,M),!x.fixed&&go(x.pp,x.pp,y,-M)}for(var I=[],_=0;_<m;_++){var C=n[_];C.fixed||(_i(I,C.p,C.pp),go(C.p,C.p,I,v),Bt(C.pp,C.p))}v=v*.992;var L=v<.01;p&&p(n,a,L),g&&g(L)}}}function zX(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?DP(t):l==="circular"&&D0(t,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=z(c)?c:[c,c],d=z(h)?h:[h,h];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=Be(_,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=a.getEdgeByIndex(S),x=Be(_,f,d);isNaN(x)&&(x=(d[0]+d[1])/2);var w=b.getModel(),T=cn(b.getModel().get(["lineStyle","curveness"]),-C0(b,t,S,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=VX(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&Bt(_[b].p,a.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||a.getNodeByIndex(x).setLayout(_[x].p),n[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var T=S[x],C=a.getEdgeByIndex(x),A=T.n1.p,M=T.n2.p,I=C.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Bt(I[0],A),Bt(I[1],M),+T.curveness&&(I[2]=[(A[0]+M[0])/2-(A[1]-M[1])*T.curveness,(A[1]+M[1])/2-(M[0]-A[0])*T.curveness]),C.setLayout(I)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function GX(r,t,e){var n=B(r.getBoxLayoutParams(),{aspect:e});return ct(n,{width:t.getWidth(),height:t.getHeight()})}function FX(r,t){var e=[];return r.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Ph(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=GX(n,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],v=f.width,d=f.height,p=n.coordinateSystem=new Iu;p.zoomLimit=n.get("scaleLimit"),p.setBoundingRect(s[0],s[1],c,h),p.setViewRect(f.x,f.y,v,d),p.setCenter(n.get("center"),t),p.setZoom(n.get("zoom")),e.push(p)}}),e}var yw=_t.prototype,Qd=Oh.prototype,LP=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(LP);function Jd(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var HX=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new LP},t.prototype.buildPath=function(e,n){Jd(n)?yw.buildPath.call(this,e,n):Qd.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return Jd(this.shape)?yw.pointAt.call(this,e):Qd.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,a=Jd(n)?[n.x2-n.x1,n.y2-n.y1]:Qd.tangentAt.call(this,e);return as(a,a)},t}(we);const WX=HX;var ep=["fromSymbol","toSymbol"];function mw(r){return"_"+r+"Type"}function _w(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=_s(a),u=Ki(o||0,l);return n+l+u+(i||"")+(s||"")}function Sw(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=_s(a),u=Ki(o||0,l),f=st(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function UX(r){var t=new WX({name:"line",subPixelOptimize:!0});return hy(t.shape,r),t}function hy(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var $X=function(r){O(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createLine(e,n,a),i}return t.prototype._createLine=function(e,n,a){var i=e.hostModel,o=e.getItemLayout(n),s=UX(o);s.shape.percent=0,Ze(s,{shape:{percent:1}},i,n),this.add(s),D(ep,function(l){var u=Sw(l,e,n);this.add(u),this[mw(l)]=_w(l,e,n)},this),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),l={shape:{}};hy(l.shape,s),ke(o,l,i,n),D(ep,function(u){var f=_w(u,e,n),c=mw(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=Sw(u,e,n);this.add(h)}this[c]=f},this),this._updateCommonStl(e,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,a){var i=e.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,h=a&&a.focus,v=a&&a.blurScope;if(!a||e.hasItemOption){var d=e.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),f=dt(d)}var g=e.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,D(ep,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<Ht.length;T++){var C=Ht[T],A=o.getState(C);if(A){var M=A.style||{},I=w.ensureState(C),L=I.style||(I.style={});M.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(L.opacity=M.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(n);Ct(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,e.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?e.getName(n):isFinite(m)?rt(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");z(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Je(this,h,v,c)},t.prototype.highlight=function(){zn(this)},t.prototype.downplay=function(){Gn(this)},t.prototype.updateLayout=function(e,n){this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");hy(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),a=e.childOfName("toSymbol"),i=e.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=_i([],c,f);as(h,h);function v(A,M){var I=A.__specifiedRotation;if(I==null){var L=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else A.attr("rotation",I)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,p="top";break;default:C=0,p="middle"}switch(i.__position){case"end":i.x=h[0]*y+c[0],i.y=h[1]*m+c[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+f[0],i.y=-h[1]*m+f[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+C,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(oe);const I0=$X;var YX=function(){function r(t){this.group=new oe,this._LineCtor=t||I0}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=xw(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=xw(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!XX(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=e.getItemLayout(a);if(tp(i)){var o=new this._LineCtor(e,a,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Oa(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var a=t.getItemLayout(e);if(tp(a)){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,n,a,i){var o=t.getItemGraphicEl(n);if(!tp(e.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(e,a,i):o=new this._LineCtor(e,a,i),e.setItemGraphicEl(a,o),this.group.add(o)},r}();function XX(r){return r.animators&&r.animators.length>0}function xw(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:dt(t)}}function bw(r){return isNaN(r[0])||isNaN(r[1])}function tp(r){return r&&!bw(r[0])&&!bw(r[1])}const L0=YX;var rp=[],np=[],ap=[],yo=gt,ip=Mi,ww=Math.abs;function Tw(r,t,e){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){rp[0]=yo(n[0],a[0],i[0],f),rp[1]=yo(n[1],a[1],i[1],f);var c=ww(ip(rp,t)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;np[0]=yo(n[0],a[0],i[0],s),np[1]=yo(n[1],a[1],i[1],s),ap[0]=yo(n[0],a[0],i[0],v),ap[1]=yo(n[1],a[1],i[1],v);var c=ip(np,t)-l;if(ww(c)<.01)break;var d=ip(ap,t)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function op(r,t){var e=[],n=Rl,a=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[En(u[0]),En(u[1])],u[2]&&u.__original.push(En(u[2])));var h=u.__original;if(u[2]!=null){if(Bt(a[0],h[0]),Bt(a[1],h[2]),Bt(a[2],h[1]),f&&f!=="none"){var v=fl(s.node1),d=Tw(a,h[0],v*t);n(a[0][0],a[1][0],a[2][0],d,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],d,e),a[0][1]=e[3],a[1][1]=e[4]}if(c&&c!=="none"){var v=fl(s.node2),d=Tw(a,h[1],v*t);n(a[0][0],a[1][0],a[2][0],d,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],d,e),a[1][1]=e[1],a[2][1]=e[2]}Bt(u[0],a[0]),Bt(u[1],a[2]),Bt(u[2],a[1])}else{if(Bt(i[0],h[0]),Bt(i[1],h[1]),_i(o,i[1],i[0]),as(o,o),f&&f!=="none"){var v=fl(s.node1);Jp(i[0],i[0],o,v*t)}if(c&&c!=="none"){var v=fl(s.node2);Jp(i[1],i[1],o,-v*t)}Bt(u[0],i[0]),Bt(u[1],i[1])}})}function Aw(r){return r.type==="view"}var ZX=function(r){O(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){var a=new Tu,i=new L0,o=this.group;this._controller=new Du(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Aw(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):ke(u,f,e)}op(e.getGraph(),ul(e));var c=e.getData();s.updateData(c);var h=e.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,n,a),clearTimeout(this._layoutTimeout);var v=e.forceLayout,d=e.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var p=e.get("layout");c.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(C){switch(p){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,d),v.setFixed(S),c.setItemLayout(S,[b.x,b.y]);break;case"circular":c.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),D0(e,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(S,[b.x,b.y]),M0(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(ue(b).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);S&&b==="adjacency"&&(ue(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),y=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(_){IP(_,g,y,m)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var a=this;(function i(){e.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!tv(u,a,e)}),!Aw(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){y0(s,u.dx,u.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){m0(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),op(e.getGraph(),ul(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=ul(e);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){op(e.getGraph(),ul(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}($e);const qX=ZX;function mo(r){return"_EC_"+r}var jX=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[mo(t)]){var a=new vi(t,e);return a.hostGraph=this,this.nodes.push(a),n[mo(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[mo(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Re(t)&&(t=this.nodes[t]),Re(e)&&(e=this.nodes[e]),t instanceof vi||(t=a[mo(t)]),e instanceof vi||(e=a[mo(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new PP(t,e,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof vi&&(t=t.id),e instanceof vi&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof vi||(e=this._nodesMap[mo(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(a,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(s){var l=a[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,n=this.edges,a=0;a<e.length;a++)t.addNode(e[a].id,e[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r}(),vi=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=j(),e=j(),n=0;n<this.edges.length;n++){var a=this.edges[n];if(!(a.dataIndex<0)){t.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,e.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)t.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},r}(),PP=function(){function r(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=n??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=j(),e=j();t.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,e.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,e.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},r}();function EP(r,t){return{getValue:function(e){var n=this[r][t];return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,n){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}lt(vi,EP("hostGraph","data"));lt(PP,EP("hostGraph","edgeData"));const KX=jX;function RP(r,t,e,n,a){for(var i=new KX(n),o=0;o<r.length;o++)i.addNode(mt(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],c=f.source,h=f.target;i.addEdge(c,h,u)&&(l.push(f),s.push(mt(ut(f.id,null),c+" > "+h)),u++)}var v=e.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=$n(r,e);else{var p=mu.get(v),g=p?p.dimensions||[]:[];me(g,"value")<0&&g.concat(["value"]);var y=Su(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new Gt(y,e),d.initData(r)}var m=new Gt(["value"],e);return m.initData(l,s),a&&a(d,m),dP({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var QX=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Mu(a,a),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),zi(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&a){RX(this);var s=RP(i,a,this,!0,l);return D(s.edges,function(u){kX(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=Ue.prototype.getModel;function h(d,p){var g=c.call(this,d,p);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(e,a),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),pt("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=JD({series:this,dataIndex:e,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var e=G(this.option.categories||[],function(a){return a.value!=null?a:B({value:0},a)}),n=new Gt(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ke);const JX=QX;var eZ={type:"graphRoam",event:"graphRoam",update:"none"};function tZ(r){r.registerChartView(qX),r.registerSeriesModel(JX),r.registerProcessor(DX),r.registerVisual(IX),r.registerVisual(LX),r.registerLayout(OX),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,BX),r.registerLayout(zX),r.registerCoordinateSystem("graphView",{dimensions:Iu.dimensions,create:FX}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},at),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},at),r.registerAction(eZ,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=S0(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var rZ=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),nZ=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new rZ},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+a(l)*s,n.y+i(l)*s),e.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),e.lineTo(n.x-a(l)*s,n.y-i(l)*s),e.lineTo(u,f)},t}(we);const aZ=nZ;function iZ(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=W(e[0],t.getWidth()),s=W(e[1],t.getHeight()),l=W(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Mf(r,t){var e=r==null?"":r+"";return t&&(Y(t)?e=t.replace("{value}",e):J(t)&&(e=t(r))),e}var oZ=function(r){O(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){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=iZ(e,a);this._renderMain(e,n,a,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),h=c.get("roundCap"),v=h?$c:Kt,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];u2(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b<i.length;b++){var x=Math.min(Math.max(i[b][0],0),1);f=u+m*x;var w=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[b][1]}),w.setStyle(p.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),D(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=C&&(A===0?0:i[A-1][0])<C)return i[A][1];return i[A-1][1]};this._renderTicks(e,n,a,T,o,u,f,l,g),this._renderTitleAndDetail(e,n,a,T,o),this._renderAnchor(e,o),this._renderPointer(e,n,a,T,o,u,f,l,g)},t.prototype._renderTicks=function(e,n,a,i,o,s,l,u,f){for(var c=this.group,h=o.cx,v=o.cy,d=o.r,p=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),b=m.get("splitNumber"),x=W(y.get("length"),d),w=W(m.get("length"),d),T=s,C=(l-s)/S,A=C/b,M=y.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),P,E,R=0;R<=S;R++){if(P=Math.cos(T),E=Math.sin(T),y.get("show")){var N=L?L+f:f,k=new _t({shape:{x1:P*(d-N)+h,y1:E*(d-N)+v,x2:P*(d-x-N)+h,y2:E*(d-x-N)+v},style:M,silent:!0});M.stroke==="auto"&&k.setStyle({stroke:i(R/S)}),c.add(k)}if(_.get("show")){var N=_.get("distance")+L,V=Mf(rt(R/S*(g-p)+p),_.get("formatter")),H=i(R/S),U=P*(d-x-N)+h,q=E*(d-x-N)+v,ee=_.get("rotate"),te=0;ee==="radial"?(te=-T+2*Math.PI,te>Math.PI/2&&(te+=Math.PI)):ee==="tangential"?te=-T-Math.PI/2:Re(ee)&&(te=ee*Math.PI/180),te===0?c.add(new Ee({style:We(_,{text:V,x:U,y:q,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:H}),silent:!0})):c.add(new Ee({style:We(_,{text:V,x:U,y:q,verticalAlign:"middle",align:"center"},{inheritColor:H}),silent:!0,originX:U,originY:q,rotation:te}))}if(m.get("show")&&R!==S){var N=m.get("distance");N=N?N+f:f;for(var _e=0;_e<=b;_e++){P=Math.cos(T),E=Math.sin(T);var Ae=new _t({shape:{x1:P*(d-N)+h,y1:E*(d-N)+v,x2:P*(d-w-N)+h,y2:E*(d-w-N)+v},silent:!0,style:I});I.stroke==="auto"&&Ae.setStyle({stroke:i((R+_e/b)/S)}),c.add(Ae),T+=A}T-=A}else T+=C}},t.prototype._renderPointer=function(e,n,a,i,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),b=+e.get("max"),x=[S,b],w=[s,l];function T(A,M){var I=m.getItemModel(A),L=I.getModel("pointer"),P=W(L.get("width"),o.r),E=W(L.get("length"),o.r),R=e.get(["pointer","icon"]),N=L.get("offsetCenter"),k=W(N[0],o.r),V=W(N[1],o.r),H=L.get("keepAspect"),U;return R?U=st(R,k-P/2,V-E,P,E,null,H):U=new aZ({shape:{angle:-Math.PI/2,width:P,r:E,x:k,y:V}}),U.rotation=-(M+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function C(A,M){var I=g.get("roundCap"),L=I?$c:Kt,P=g.get("overlap"),E=P?g.get("width"):f/m.count(),R=P?o.r-E:o.r-(A+1)*E,N=P?o.r:o.r-A*E,k=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:N}});return P&&(k.z2=b-m.get(_,A)%b),k}(y||p)&&(m.diff(h).add(function(A){var M=m.get(_,A);if(p){var I=T(A,s);Ze(I,{rotation:-((isNaN(+M)?w[0]:Be(M,x,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(A,I)}if(y){var L=C(A,s),P=g.get("clip");Ze(L,{shape:{endAngle:Be(M,x,w,P)}},e),c.add(L),Tg(e.seriesIndex,m.dataType,A,L),d[A]=L}}).update(function(A,M){var I=m.get(_,A);if(p){var L=h.getItemGraphicEl(M),P=L?L.rotation:s,E=T(A,P);E.rotation=P,ke(E,{rotation:-((isNaN(+I)?w[0]:Be(I,x,w,!0))+Math.PI/2)},e),c.add(E),m.setItemGraphicEl(A,E)}if(y){var R=v[M],N=R?R.shape.endAngle:s,k=C(A,N),V=g.get("clip");ke(k,{shape:{endAngle:Be(I,x,w,V)}},e),c.add(k),Tg(e.seriesIndex,m.dataType,A,k),d[A]=k}}).execute(),m.each(function(A){var M=m.getItemModel(A),I=M.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),E=I.get("disabled");if(p){var R=m.getItemGraphicEl(A),N=m.getItemVisual(A,"style"),k=N.fill;if(R instanceof Mt){var V=R.style;R.useStyle(B({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},N))}else R.useStyle(N),R.type!=="pointer"&&R.setColor(k);R.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",i(Be(m.get(_,A),x,[0,1],!0))),R.z2EmphasisLift=0,At(R,M),Je(R,L,P,E)}if(y){var H=d[A];H.useStyle(m.getItemVisual(A,"style")),H.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),H.z2EmphasisLift=0,At(H,M),Je(H,L,P,E)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=st(s,n.cx-o/2+W(l[0],n.r),n.cy-o/2+W(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),h=new oe,v=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Ee({silent:!0}),d[y]=new Ee({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new oe,b=i(Be(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+W(w[0],o.r),C=o.cy+W(w[1],o.r),A=v[y];A.attr({z2:g?0:2,style:We(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(A)}var M=m.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),L=o.cx+W(I[0],o.r),P=o.cy+W(I[1],o.r),E=W(M.get("width"),o.r),R=W(M.get("height"),o.r),N=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,A=d[y],k=M.get("formatter");A.attr({z2:g?0:2,style:We(M,{x:L,y:P,text:Mf(_,k),width:isNaN(E)?null:E,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:N})}),tD(A,{normal:M},_,function(H){return Mf(H,k)}),p&&rD(A,y,l,e,{getFormattedLabel:function(H,U,q,ee,te,_e){return Mf(_e?_e.interpolatedValue:_,k)}}),S.add(A)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=d},t.type="gauge",t}($e);const sZ=oZ;var lZ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return Ss(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Ke);const uZ=lZ;function fZ(r){r.registerChartView(sZ),r.registerSeriesModel(uZ)}var cZ=["itemStyle","opacity"],hZ=function(r){O(t,r);function t(e,n){var a=r.call(this)||this,i=a,o=new Jt,s=new Ee;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(cZ);f=f??1,a||Xr(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Ze(i,{style:{opacity:f}},o,n)):ke(i,{style:{opacity:f},shape:{points:l.points}},o,n),At(i,s),this._updateLabel(e,n),Je(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=e.hostModel,l=e.getItemModel(n),u=e.getItemLayout(n),f=u.label,c=e.getItemVisual(n,"style"),h=c.fill;Ct(o,dt(l),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:e.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:h,outsideFill:h});var v=f.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new de(v[0][0],v[0][1]):null},ke(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),l0(a,u0(l),{stroke:h})},t}(Qt),vZ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new hZ(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Gl(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}($e);const dZ=vZ;var pZ=function(r){O(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){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mu(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return Ss(this,{coordDimensions:["value"],encodeDefaulter:fe(Vm,this)})},t.prototype._defaultLabelLine=function(e){zi(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ke);const gZ=pZ;function yZ(r,t){return ct(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mZ(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(l){return l}),a=[],i=t==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return J(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function _Z(r){var t=r.hostModel,e=t.get("orient");r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,v,d;if(f)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[h,v],[h,v]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,h=y-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,h=y+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,v=m-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,v=m+5,c="center"):o==="rightTop"?(p=e==="horizontal"?u[3][0]:u[1][0],g=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(m=g-_,v=m-5,c="center"):(y=p+_,h=y+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],e==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p+_,h=y+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(m=g-_,v=m-5,c="center"):(y=p-_,h=y-5,c="right")):o==="leftBottom"?(p=e==="horizontal"?u[1][0]:u[3][0],g=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p-_,h=y-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p+_,h=y+5,c="left")),e==="horizontal"?(y=p,h=y):(m=g,v=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:h,y:v,verticalAlign:"middle",textAlign:c,inside:f}})}function SZ(r,t){r.eachSeriesByType("funnel",function(e){var n=e.getData(),a=n.mapDimension("value"),i=e.get("sort"),o=yZ(e,t),s=e.get("orient"),l=o.width,u=o.height,f=mZ(n,i),c=o.x,h=o.y,v=s==="horizontal"?[W(e.get("minSize"),u),W(e.get("maxSize"),u)]:[W(e.get("minSize"),l),W(e.get("maxSize"),l)],d=n.getDataExtent(a),p=e.get("min"),g=e.get("max");p==null&&(p=Math.min(d[0],0)),g==null&&(g=d[1]);var y=e.get("funnelAlign"),m=e.get("gap"),_=s==="horizontal"?l:u,S=(_-m*(n.count()-1))/n.count(),b=function(P,E){if(s==="horizontal"){var R=n.get(a,P)||0,N=Be(R,[p,g],v,!0),k=void 0;switch(y){case"top":k=h;break;case"center":k=h+(u-N)/2;break;case"bottom":k=h+(u-N);break}return[[E,k],[E,k+N]]}var V=n.get(a,P)||0,H=Be(V,[p,g],v,!0),U;switch(y){case"left":U=c;break;case"center":U=c+(l-H)/2;break;case"right":U=c+l-H;break}return[[U,E],[U+H,E]]};i==="ascending"&&(S=-S,m=-m,s==="horizontal"?c+=l:h+=u,f=f.reverse());for(var x=0;x<f.length;x++){var w=f[x],T=f[x+1],C=n.getItemModel(w);if(s==="horizontal"){var A=C.get(["itemStyle","width"]);A==null?A=S:(A=W(A,l),i==="ascending"&&(A=-A));var M=b(w,c),I=b(T,c+A);c+=A+m,n.setItemLayout(w,{points:M.concat(I.slice().reverse())})}else{var L=C.get(["itemStyle","height"]);L==null?L=S:(L=W(L,u),i==="ascending"&&(L=-L));var M=b(w,h),I=b(T,h+L);h+=L+m,n.setItemLayout(w,{points:M.concat(I.slice().reverse())})}}_Z(n)})}function xZ(r){r.registerChartView(dZ),r.registerSeriesModel(gZ),r.registerLayout(SZ),r.registerProcessor(Cu("funnel"))}var bZ=.3,wZ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new oe,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.dimensions,c=Mw(e);s.diff(l).add(h).update(v).remove(d).execute();function h(g){var y=Cw(s,o,g,f,u);sp(y,s,g,c)}function v(g,y){var m=l.getItemGraphicEl(y),_=kP(s,g,f,u);s.setItemGraphicEl(g,m),ke(m,{shape:{points:_}},e,g),Xr(m),sp(m,s,g,c)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=TZ(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(e,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=Mw(n),u=this._progressiveEls=[],f=e.start;f<e.end;f++){var c=Cw(i,this._dataGroup,f,s,o);c.incremental=!0,sp(c,i,f,l),u.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}($e);function TZ(r,t,e){var n=r.model,a=r.getRect(),i=new De({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Ze(i,{shape:{width:a.width,height:a.height}},t,e),i}function kP(r,t,e,n){for(var a=[],i=0;i<e.length;i++){var o=e[i],s=r.get(r.mapDimension(o),t);AZ(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function Cw(r,t,e,n,a){var i=kP(r,e,n,a),o=new Jt({shape:{points:i},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function Mw(r){var t=r.get("smooth",!0);return t===!0&&(t=bZ),t=Vn(t),El(t)&&(t=0),{smooth:t}}function sp(r,t,e,n){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=t.getItemModel(e),i=a.getModel("emphasis");At(r,a,"lineStyle"),Je(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function AZ(r,t){return t==="category"?r==null:r==null||isNaN(r)}const CZ=wZ;var MZ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,n){return $n(null,this,{useEncodeDefaulter:X(DZ,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){e===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Ke);function DZ(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return D(t.dimensions,function(n){var a=IZ(n);e[n]=a}),e}}function IZ(r){return+r.replace("dim","")}const LZ=MZ;var PZ=["lineStyle","opacity"],EZ={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){e.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(PZ,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};const RZ=EZ;function kZ(r){OZ(r),NZ(r)}function OZ(r){if(!r.parallel){var t=!1;D(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function NZ(r){var t=Ge(r.parallelAxis);D(t,function(e){if(ne(e)){var n=e.parallelIndex||0,a=Ge(r.parallel)[n];a&&a.parallelAxisDefault&&ge(e,a.parallelAxisDefault,!1)}})}var BZ=5,VZ=function(r){O(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){this._model=e,this._api=a,this._handlers||(this._handlers={},D(zZ,function(i,o){a.getZr().on(o,this._handlers[o]=X(i,this))},this)),ms(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,n){$l(this,"_throttledDispatchExpand"),D(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(B({type:"parallelAxisExpand"},e))},t.type="parallel",t}(et),zZ={mousedown:function(r){lp(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(lp(this,"click")&&t){var e=[r.offsetX,r.offsetY],n=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(n>BZ)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!lp(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function lp(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const GZ=VZ;var FZ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&ge(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],a=ze(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(a,function(i){e.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Le);const HZ=FZ;var WZ=function(r){O(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(qr);const UZ=WZ;function to(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=_o(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=_o(s,[0,o]),a=i=_o(s,[a,i]),n=0}t[0]=_o(t[0],e),t[1]=_o(t[1],e);var l=up(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=_o(t[n],f);var c;return c=up(t,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(t[1-n]=t[n]+l.sign*a),c=up(t,n),i!=null&&c.span>i&&(t[1-n]=t[n]+c.sign*i),t}function up(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function _o(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var fp=D,OP=Math.min,NP=Math.max,Dw=Math.floor,$Z=Math.ceil,Iw=rt,YZ=Math.PI,XZ=function(){function r(t,e,n){this.type="parallel",this._axesMap=j(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=t.dimensions,i=t.parallelAxisIndex;fp(a,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new UZ(o,Qh(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,a=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+e.axisLength&&s>=a&&s<=a+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var a=n.getData();fp(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Xo(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=ct(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[a[o]],l=[0,s],u=this.dimensions.length,f=Df(t.get("axisExpandWidth"),l),c=Df(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=Df(v[1]-v[0],l),v[1]=v[0]+d;else{d=Df(f*(c-1),l);var p=t.get("axisExpandCenter")||Dw(u/2);v=[f*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[Dw(Iw(v[0]/f,1))+1,$Z(Iw(v[1]/f,1))-1],m=g/f*v[0];return{layout:i,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[a[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;e.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),fp(n,function(o,s){var l=(a.axisExpandable?qZ:ZZ)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:YZ/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],h=f[i],v=Mr();qi(v,v,h),dn(v,v,c),this._axesLayout[o]={position:c,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=t.getValues(s,f),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(h[v]);if(p==="inactive"){c="inactive";break}}}e(c,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)e.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return $r([t,0],n.transform)},r.prototype.getAxisLayout=function(t){return ie(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,a=e.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(f)h&&f&&s<i*c[0]?(u="jump",l=s-i*c[2]):h&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?to(l,a,o,"all"):u="none";else{var v=a[1]-a[0],d=o[1]*s/v;a=[NP(0,d-v/2)],a[1]=OP(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function Df(r,t){return OP(NP(r,t[0]),t[1])}function ZZ(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function qZ(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*n-t.axisExpandWindow[0],l=n,u=!0):(s=e-(a-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const jZ=XZ;function KZ(r,t){var e=[];return r.eachComponent("parallel",function(n,a){var i=new jZ(n,r,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",ot).models[0];n.coordinateSystem=a.coordinateSystem}}),e}var QZ={create:KZ};const JZ=QZ;var BP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return Fi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var n=this.activeIntervals=ie(e);if(n)for(var a=n.length-1;a>=0;a--)xr(n[a])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=e&&e<=n[i][1])return"active";return"inactive"},t}(Le);lt(BP,bu);const Lw=BP;var Ui=!0,ru=Math.min,jo=Math.max,eq=Math.pow,tq=1e4,rq=6,nq=6,Pw="globalPan",aq={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},iq={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Ew={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},oq=0,sq=function(r){O(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new oe,n._uid="brushController_"+oq++,D(dq,function(a,i){this._handlers[i]=X(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||y$(n,Pw,this._uid),D(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=ge(ie(Ew),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;m$(e,Pw,this._uid),D(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};D(e,function(a){n[a.panelId]=ie(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=G(e,function(h){return ge(ie(Ew),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Fn(a,e,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):zP(o,VP(o,d));P0(o,p)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),vy(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ir);function VP(r,t){var e=iv[t.brushType].createCover(r,t);return e.__brushOption=t,FP(e,t),r.group.add(e),e}function zP(r,t){var e=E0(t);return e.endCreating&&(e.endCreating(r,t),FP(t,t.__brushOption)),t}function GP(r,t){var e=t.__brushOption;E0(t).updateCoverShape(r,t,e.range,e)}function FP(r,t){var e=t.z;e==null&&(e=tq),r.traverse(function(n){n.z=e,n.z2=e})}function P0(r,t){E0(t).updateCommon(r,t),GP(r,t)}function E0(r){return iv[r.__brushOption.brushType]}function R0(r,t,e){var n=r._panels;if(!n)return Ui;var a,i=r._transform;return D(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function HP(r,t){var e=r._panels;if(!e)return Ui;var n=t.__brushOption.panelId;return n!=null?e[n]:Ui}function vy(r){var t=r._covers,e=t.length;return D(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function $i(r,t){var e=G(r._covers,function(n){var a=n.__brushOption,i=ie(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function lq(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=eq(a*a+i*i,.5);return o>rq}function WP(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function UP(r,t,e,n){var a=new oe;return a.add(new De({name:"main",style:k0(e),silent:!0,draggable:!0,cursor:"move",drift:fe(Rw,r,t,a,["n","s","w","e"]),ondragend:fe($i,t,{isEnd:!0})})),D(n,function(i){a.add(new De({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:fe(Rw,r,t,a,i),ondragend:fe($i,t,{isEnd:!0})}))}),a}function $P(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=jo(a,nq),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],h=f-i+a/2,v=c-i+a/2,d=f-o,p=c-s,g=d+a,y=p+a;An(r,t,"main",o,s,d,p),n.transformable&&(An(r,t,"w",l,u,i,y),An(r,t,"e",h,u,i,y),An(r,t,"n",l,u,g,i),An(r,t,"s",l,v,g,i),An(r,t,"nw",l,u,i,i),An(r,t,"ne",h,u,i,i),An(r,t,"sw",l,v,i,i),An(r,t,"se",h,v,i,i))}function dy(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(k0(e)),a.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?py(r,i[0]):fq(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?iq[s]+"-resize":null})})}function An(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(hq(O0(r,t,[[n,a],[n+i,a+o]])))}function k0(r){return re({strokeNoScale:!0},r.brushStyle)}function YP(r,t,e,n){var a=[ru(r,e),ru(t,n)],i=[jo(r,e),jo(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function uq(r){return Ei(r.group)}function py(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Bh(e[t],uq(r));return n[a]}function fq(r,t){var e=[py(r,t[0]),py(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Rw(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=XP(t,a,i);D(n,function(u){var f=aq[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(YP(s[0][0],s[1][0],s[0][1],s[1][1])),P0(t,e),$i(t,{isEnd:!1})}function cq(r,t,e,n){var a=t.__brushOption.range,i=XP(r,e,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),P0(r,t),$i(r,{isEnd:!1})}function XP(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function O0(r,t,e){var n=HP(r,t);return n&&n!==Ui?n.clipPath(e,r._transform):ie(e)}function hq(r){var t=ru(r[0][0],r[1][0]),e=ru(r[0][1],r[1][1]),n=jo(r[0][0],r[1][0]),a=jo(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function vq(r,t,e){if(!(!r._brushType||pq(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=R0(r,t,e);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Ui||s.panelId===i.panelId)&&iv[s.brushType].contain(a[o],e[0],e[1]))return}i&&n.setCursorStyle("crosshair")}}function gy(r){var t=r.event;t.preventDefault&&t.preventDefault()}function yy(r,t,e){return r.childOfName("main").contain(t,e)}function ZP(r,t,e,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),lq(r)||a){if(i&&!a){o.brushMode==="single"&&vy(r);var l=ie(o);l.brushType=kw(l.brushType,i),l.panelId=i===Ui?null:i.panelId,a=r._creatingCover=VP(r,l),r._covers.push(a)}if(a){var u=iv[kw(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(O0(r,a,r._track)),n&&(zP(r,a),u.updateCommon(r,a)),GP(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&R0(r,t,e)&&vy(r)&&(s={isEnd:n,removeOnClick:!0});return s}function kw(r,t){return r==="auto"?t.defaultBrushType:r}var dq={mousedown:function(r){if(this._dragging)Ow(this,r);else if(!r.target||!r.target.draggable){gy(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=R0(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(vq(this,r,n),this._dragging){gy(r);var a=ZP(this,r,n,!1);a&&$i(this,a)}},mouseup:function(r){Ow(this,r)}};function Ow(r,t){if(r._dragging){gy(t);var e=t.offsetX,n=t.offsetY,a=r.group.transformCoordToLocal(e,n),i=ZP(r,t,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&$i(r,i)}}function pq(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var iv={lineX:Nw(0),lineY:Nw(1),rect:{createCover:function(r,t){function e(n){return n}return UP({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=WP(r);return YP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){$P(r,t,e,n)},updateCommon:dy,contain:yy},polygon:{createCover:function(r,t){var e=new oe;return e.add(new Jt({name:"main",style:k0(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Qt({name:"main",draggable:!0,drift:fe(cq,r,t),ondragend:fe($i,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:O0(r,t,e)})},updateCommon:dy,contain:yy}};function Nw(r){return{createCover:function(t,e){return UP({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=WP(t),n=ru(e[0][r],e[1][r]),a=jo(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=HP(t,e);if(o!==Ui&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),$P(t,e,l,a)},updateCommon:dy,contain:yy}}const N0=sq;function qP(r){return r=B0(r),function(t){return K2(t,r)}}function jP(r,t){return r=B0(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function KP(r,t,e){var n=B0(r);return function(a,i){return n.contain(i[0],i[1])&&!tv(a,t,e)}}function B0(r){return ye.create(r)}var gq=["axisLine","axisTickLabel","axisName"],yq=function(r){O(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){r.prototype.init.apply(this,arguments),(this._brushController=new N0(n.getZr())).on("brush",X(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!mq(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new oe,this.group.add(this._axisGroup),!!e.get("show")){var s=Sq(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,h=l.getAxisLayout(c),v=B({strokeContainThreshold:f},h),d=new Hn(e,v);D(gq,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,e,s,f,a),pu(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=ye.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:qP(c),isTargetByCursor:KP(c,s,i),getLinearBrushOtherExtent:jP(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(_q(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,o=G(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(et);function mq(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function _q(r){var t=r.axis;return G(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function Sq(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const xq=yq;var bq={type:"axisAreaSelect",event:"axisAreaSelected"};function wq(r){r.registerAction(bq,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var Tq={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function QP(r){r.registerComponentView(GZ),r.registerComponentModel(HZ),r.registerCoordinateSystem("parallel",JZ),r.registerPreprocessor(kZ),r.registerComponentModel(Lw),r.registerComponentView(xq),qo(r,"parallel",Lw,Tq),wq(r)}function Aq(r){be(QP),r.registerChartView(CZ),r.registerSeriesModel(LZ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,RZ)}var Cq=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),Mq=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Cq},t.prototype.buildPath=function(e,n){var a=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){zn(this)},t.prototype.downplay=function(){Gn(this)},t}(we),Dq=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,a){var i=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,f=l.height,c=e.getData(),h=e.getData("edge"),v=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new Mq,g=ue(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),b=d.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),A=C.get("localX"),M=C.get("localY"),I=d.getLayout(),L,P,E,R,N,k,V,H;p.shape.extent=Math.max(1,I.dy),p.shape.orient=v,v==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,E=(A!=null?A*u:T.x)+I.ty,R=M!=null?M*f:T.y,N=L,k=P*(1-_)+R*_,V=E,H=P*_+R*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,E=A!=null?A*u:T.x,R=(M!=null?M*f:T.y)+I.ty,N=L*(1-_)+E*_,k=P,V=L*_+E*(1-_),H=R),p.setShape({x1:L,y1:P,x2:E,y2:R,cpx1:N,cpy1:k,cpx2:V,cpy2:H}),p.useStyle(m.getItemStyle()),Bw(p.style,v,d);var U=""+y.get("value"),q=dt(y,"edgeLabel");Ct(p,q,{labelFetcher:{getFormattedLabel:function(_e,Ae,Se,ae,xe,he){return e.getFormattedLabel(_e,Ae,"edge",ae,cn(xe,q.normal&&q.normal.get("formatter"),U),he)}},labelDataIndex:d.dataIndex,defaultText:U}),p.setTextConfig({position:"inside"});var ee=y.getModel("emphasis");At(p,y,"lineStyle",function(_e){var Ae=_e.getItemStyle();return Bw(Ae,v,d),Ae}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var te=ee.get("focus");Je(p,te==="adjacency"?d.getAdjacentDataIndices():te==="trajectory"?d.getTrajectoryDataIndices():te,ee.get("blurScope"),ee.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new De({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});Ct(S,dt(g),{labelFetcher:{getFormattedLabel:function(x,w){return e.getFormattedLabel(x,w,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),At(S,g),s.add(S),c.setItemGraphicEl(d.dataIndex,S),ue(S).dataType="node";var b=_.get("focus");Je(S,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(d,p){var g=c.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(Iq(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}($e);function Bw(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),a=e.node2.getVisual("color");Y(n)&&Y(a)&&(r.fill=new ls(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function Iq(r,t,e){var n=new De({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ze(n,{shape:{width:r.width+20}},t,e),n}const Lq=Dq;var Pq=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var a=e.edges||e.links,i=e.data||e.nodes,o=e.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Ue(o[l],this,n));if(i&&a){var u=RP(i,a,this,!0,f);return u.data}function f(c,h){c.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(e,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return pt("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,h=this.getDataParams(e,a).data.name;return pt("nameValue",{name:h!=null?h+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Ke);const Eq=Pq;function Rq(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=kq(e,t);e.layoutInfo=i;var o=i.width,s=i.height,l=e.getGraph(),u=l.nodes,f=l.edges;Nq(u);var c=ze(u,function(p){return p.getLayout().value===0}),h=c.length!==0?0:e.get("layoutIterations"),v=e.get("orient"),d=e.get("nodeAlign");Oq(u,f,n,a,o,s,h,v,d)})}function kq(r,t){return ct(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Oq(r,t,e,n,a,i,o,s,l){Bq(r,t,e,a,i,s,l),Fq(r,t,i,a,n,o,s),jq(r,s)}function Nq(r){D(r,function(t){var e=ba(t.outEdges,Kc),n=ba(t.inEdges,Kc),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function Bq(r,t,e,n,a,i,o){for(var s=[],l=[],u=[],f=[],c=0,h=0;h<t.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var v=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>v&&(v=g.depth),p.setLayout({depth:y?g.depth:c},!0),i==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=t.indexOf(_);s[S]=0;var b=_.node2,x=r.indexOf(b);--l[x]===0&&f.indexOf(b)<0&&f.push(b)}}++c,u=f,f=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>c-1?v:c-1;o&&o!=="left"&&Vq(r,o,i,w);var T=i==="vertical"?(a-e)/w:(n-e)/w;Gq(r,T,i)}function JP(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function Vq(r,t,e,n){if(t==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];a.indexOf(f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}D(r,function(c){JP(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else t==="justify"&&zq(r,n)}function zq(r,t){D(r,function(e){!JP(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function Gq(r,t,e){D(r,function(n){var a=n.getLayout().depth*t;e==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function Fq(r,t,e,n,a,i,o){var s=Hq(r,o);Wq(s,t,e,n,a,o),cp(s,a,e,n,o);for(var l=1;i>0;i--)l*=.99,Uq(s,l,o),cp(s,a,e,n,o),qq(s,l,o),cp(s,a,e,n,o)}function Hq(r,t){var e=[],n=t==="vertical"?"y":"x",a=Sg(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),D(a.keys,function(i){e.push(a.buckets.get(i))}),e}function Wq(r,t,e,n,a,i){var o=1/0;D(r,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(e-(l-1)*a)/u;f<o&&(o=f)}),D(r,function(s){D(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),D(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function cp(r,t,e,n,a){var i=a==="vertical"?"x":"y";D(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,c=o.length,h=a==="vertical"?"dx":"dy",v=0;v<c;v++)l=o[v],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[h]+t;var d=a==="vertical"?n:e;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=c-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[h]+t-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function Uq(r,t,e){D(r.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=ba(a.outEdges,$q,e)/ba(a.outEdges,Kc);if(isNaN(i)){var o=a.outEdges.length;i=o?ba(a.outEdges,Yq,e)/o:0}if(e==="vertical"){var s=a.getLayout().x+(i-La(a,e))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-La(a,e))*t;a.setLayout({y:l},!0)}}})})}function $q(r,t){return La(r.node2,t)*r.getValue()}function Yq(r,t){return La(r.node2,t)}function Xq(r,t){return La(r.node1,t)*r.getValue()}function Zq(r,t){return La(r.node1,t)}function La(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Kc(r){return r.getValue()}function ba(r,t,e){for(var n=0,a=r.length,i=-1;++i<a;){var o=+t(r[i],e);isNaN(o)||(n+=o)}return n}function qq(r,t,e){D(r,function(n){D(n,function(a){if(a.inEdges.length){var i=ba(a.inEdges,Xq,e)/ba(a.inEdges,Kc);if(isNaN(i)){var o=a.inEdges.length;i=o?ba(a.inEdges,Zq,e)/o:0}if(e==="vertical"){var s=a.getLayout().x+(i-La(a,e))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-La(a,e))*t;a.setLayout({y:l},!0)}}})})}function jq(r,t){var e=t==="vertical"?"x":"y";D(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[e]-i.node2.getLayout()[e]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[e]-i.node1.getLayout()[e]})}),D(r,function(n){var a=0,i=0;D(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function Kq(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes,a=e.edges;if(n.length){var i=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),D(n,function(s){var l=new Tt({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&D(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Qq(r){r.registerChartView(Lq),r.registerSeriesModel(Eq),r.registerLayout(Rq),r.registerVisual(Kq),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var eE=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],d=v[f].get("type"),p=v[1-f].get("type"),g=t.data;if(g&&l){var y=[];D(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:zc(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:zc(p),dimsDef:m.slice()}];return Ss(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:fe(TD,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),tE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Ke);lt(tE,eE,!0);const Jq=tE;var ej=function(r){O(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){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),c=Vw(f,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(c);return}var h=i.getItemLayout(u);c?(Xr(c),rE(h,c,i,u)):c=Vw(h,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}($e),tj=function(){function r(){}return r}(),rj=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new tj},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();i<a.length;i++)e.moveTo(a[i][0],a[i][1]),i++,e.lineTo(a[i][0],a[i][1])},t}(we);function Vw(r,t,e,n,a){var i=r.ends,o=new rj({shape:{points:a?nj(i,n,r):i}});return rE(r,o,t,e,a),o}function rE(r,t,e,n,a){var i=e.hostModel,o=yu[a?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},i,n),t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(n),l=s.getModel("emphasis");At(t,s),Je(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function nj(r,t,e){return G(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}const aj=ej;var Al=D;function ij(r){var t=oj(r);Al(t,function(e){var n=e.seriesModels;n.length&&(sj(e),Al(n,function(a,i){lj(a,e.boxOffsetList[i],e.boxWidthList[i])}))})}function oj(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=me(e,a);i<0&&(i=e.length,e[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(n)}),t}function sj(r){var t=r.axis,e=r.seriesModels,n=e.length,a=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Al(e,function(d){l=Math.max(l,d.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Al(e,function(d){var p=d.get("boxWidth");z(p)||(p=[p,p]),o.push([W(p[0],s)||0,W(p[1],s)||0])});var f=s*.8-2,c=f/n*.3,h=(f-c*(n-1))/n,v=h/2-f/2;Al(e,function(d,p){i.push(v),v+=c+h,a.push(Math.min(Math.max(h,o[p][0]),o[p][1]))})}function lj(r,t,e){var n=r.coordinateSystem,a=r.getData(),i=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<a.count();c++){var h=a.get(u,c),v=_(h,f[2],c),d=_(h,f[0],c),p=_(h,f[1],c),g=_(h,f[3],c),y=_(h,f[4],c),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),b(m,d),b(m,y),b(m,v),a.setItemLayout(c,{initBaseline:v[s],ends:m})}function _(x,w,T){var C=a.get(w,T),A=[];A[o]=x,A[s]=C;var M;return isNaN(x)||isNaN(C)?M=[NaN,NaN]:(M=n.dataToPoint(A),M[o]+=t),M}function S(x,w,T){var C=w.slice(),A=w.slice();C[o]+=i,A[o]-=i,T?x.push(C,A):x.push(A,C)}function b(x,w){var T=w.slice(),C=w.slice();T[o]-=i,C[o]+=i,x.push(T,C)}}function uj(r,t){t=t||{};for(var e=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=xr(r[o].slice()),l=Fv(s,.25),u=Fv(s,.5),f=Fv(s,.75),c=s[0],h=s[s.length-1],v=(a??1.5)*(f-l),d=i?c:Math.max(c,l-v),p=i?h:Math.min(h,f+v),g=t.itemNameFormatter,y=J(g)?g({value:o}):Y(g)?g.replace("{value}",o+""):o+"";e.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:e,outliers:n}}var fj={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Rt){var n="";Ne(n)}var a=uj(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function cj(r){r.registerSeriesModel(Jq),r.registerChartView(aj),r.registerLayout(ij),r.registerTransform(fj)}var hj=["color","borderColor"],vj=function(r){O(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){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){Oa(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&zw(u,c))return;var h=hp(c,f,!0);Ze(h,{shape:{points:c.ends}},e,f),vp(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&zw(u,v)){i.remove(h);return}h?(ke(h,{shape:{points:v.ends}},e,f),Xr(h)):h=hp(v),vp(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Gw(e,this.group);var n=e.get("clip",!0)?ev(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=hp(s);vp(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){Gw(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}($e),dj=function(){function r(){}return r}(),pj=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new dj},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(we);function hp(r,t,e){var n=r.ends;return new pj({shape:{points:e?gj(n,r):n},z2:100})}function zw(r,t){for(var e=!0,n=0;n<t.ends.length;n++)if(r.contain(t.ends[n][0],t.ends[n][1])){e=!1;break}return e}function vp(r,t,e,n){var a=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,At(r,a)}function gj(r,t){return G(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var yj=function(){function r(){}return r}(),dp=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new yj},t.prototype.buildPath=function(e,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];e.moveTo(o,a[i++]),e.lineTo(o,a[i++])}else i+=3},t}(we);function Gw(r,t,e,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new dp({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new dp({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new dp({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),pp(1,o,r),pp(-1,s,r),pp(0,l,r),n&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function pp(r,t,e,n){var a=e.get(["itemStyle",r>0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(hj);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const mj=vj;var nE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Ke);lt(nE,eE,!0);const _j=nE;function Sj(r){!r||!z(r.series)||D(r.series,function(t){ne(t)&&t.type==="k"&&(t.type="candlestick")})}var xj=["itemStyle","borderColor"],bj=["itemStyle","borderColor0"],wj=["itemStyle","borderColorDoji"],Tj=["itemStyle","color"],Aj=["itemStyle","color0"],Cj={seriesType:"candlestick",plan:ys(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?Tj:Aj)}function n(i,o){return o.get(i===0?wj:i>0?xj:bj)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=e(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");B(c,f)}}}}}};const Mj=Cj;var Dj={seriesType:"candlestick",plan:ys(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=Ij(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=G(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(c,y),w=m.get(h,y),T=Math.min(S,b),C=Math.max(S,b),A=N(T,_),M=N(C,_),I=N(x,_),L=N(w,_),P=[];k(P,M,0),k(P,A,1),P.push(H(L),H(M),H(I),H(A));var E=g.getItemModel(y),R=!!E.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:Fw(m,y,S,b,f,R),initBaseline:S>b?M[i]:A[i],ends:P,brushRect:V(x,w,_)})}function N(U,q){var ee=[];return ee[a]=q,ee[i]=U,isNaN(q)||isNaN(U)?[NaN,NaN]:t.dataToPoint(ee)}function k(U,q,ee){var te=q.slice(),_e=q.slice();te[a]=ec(te[a]+n/2,1,!1),_e[a]=ec(_e[a]-n/2,1,!0),ee?U.push(te,_e):U.push(_e,te)}function V(U,q,ee){var te=N(U,ee),_e=N(q,ee);return te[a]-=n/2,_e[a]-=n/2,{x:te[0],y:te[1],width:n,height:_e[1]-te[1]}}function H(U){return U[a]=ec(U[a],1),U}}function d(p,g){for(var y=un(p.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var C=w.get(s,x),A=w.get(u,x),M=w.get(f,x),I=w.get(c,x),L=w.get(h,x);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=Fw(w,x,A,M,f,T),S[a]=C,S[i]=I,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function Fw(r,t,e,n,a,i){var o;return e>n?o=-1:e<n?o=1:o=i?0:t>0?r.get(a,t-1)<=n?1:-1:1,o}function Ij(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=W(pe(r.get("barMaxWidth"),a),a),o=W(pe(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?W(s,a):Math.max(Math.min(a/2,i),o)}const Lj=Dj;function Pj(r){r.registerChartView(mj),r.registerSeriesModel(_j),r.registerPreprocessor(Sj),r.registerVisual(Mj),r.registerLayout(Lj)}function Hw(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var Ej=function(r){O(t,r);function t(e,n){var a=r.call(this)||this,i=new wu(e,n),o=new oe;return a.add(i),a.add(o),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=st(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}Hw(o,e)},t.prototype.updateEffectAnimation=function(e){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}Hw(a,e)},t.prototype.highlight=function(){zn(this)},t.prototype.downplay=function(){Gn(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,n){var a=this,i=e.hostModel;this.childAt(0).updateData(e,n);var o=this.childAt(1),s=e.getItemModel(n),l=e.getItemVisual(n,"symbol"),u=_s(e.getItemVisual(n,"symbolSize")),f=e.getItemVisual(n,"style"),c=f&&f.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var v=Ki(e.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var d=e.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=c,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,Je(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(oe);const Rj=Ej;var kj=function(r){O(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._symbolDraw=new Tu(Rj)},t.prototype.render=function(e,n,a){var i=e.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,a=n&&n.getArea&&n.getArea();return e.get("clip",!0)?a:null},t.prototype.updateTransform=function(e,n,a){var i=e.getData();this.group.dirty();var o=Au("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var n=e.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=dz(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}($e);const Oj=kj;var Nj=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return $n(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Ke);const Bj=Nj;function Vj(r){r.registerChartView(Oj),r.registerSeriesModel(Bj),r.registerLayout(Au("effectScatter"))}var zj=function(r){O(t,r);function t(e,n,a){var i=r.call(this)||this;return i.add(i.createLine(e,n,a)),i._updateEffectSymbol(e,n),i}return t.prototype.createLine=function(e,n,a){return new I0(e,n,a)},t.prototype._updateEffectSymbol=function(e,n){var a=e.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");z(o)||(o=[o,o]);var l=e.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=st(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,n))},t.prototype._updateEffectAnimation=function(e,n,a){var i=this.childAt(1);if(i){var o=e.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=mt(n.get("delay"),function(v){return v/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;J(c)?h=c(a):h=c,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,n,a,i,o){if(n>0){e.__t=0;var s=this,l=e.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return fa(e.__p1,e.__cp1)+fa(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=gt,f=sg;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=e.__t<1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),h=e.__t<1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);e.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=fa(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*fa(n,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,n){this.childAt(0).updateLayout(e,n);var a=e.getItemModel(n).getModel("effect");this._updateEffectAnimation(e,a,n)},t}(oe);const aE=zj;var Gj=function(r){O(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createPolyline(e,n,a),i}return t.prototype._createPolyline=function(e,n,a){var i=e.getItemLayout(n),o=new Jt({shape:{points:i}});this.add(o),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(n)}};ke(o,s,i,n),this._updateCommonStl(e,n,a)},t.prototype._updateCommonStl=function(e,n,a){var i=this.childAt(0),o=e.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||e.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(e.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,Je(this,l,u,f)},t.prototype.updateLayout=function(e,n){var a=this.childAt(0);a.setShape("points",e.getItemLayout(n))},t}(oe);const iE=Gj;var Fj=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,n,a){return new iE(e,n,a)},t.prototype._updateAnimationPoints=function(e,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=fa(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var n=e.__t<1?e.__t:2-e.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],h=a[l+1];e.x=c[0]*(1-f)+f*h[0],e.y=c[1]*(1-f)+f*h[1];var v=e.__t<1?h[0]-c[0]:c[0]-h[0],d=e.__t<1?h[1]-c[1]:c[1]-h[1];e.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,e.ignore=!1}},t}(aE);const Hj=Fj;var Wj=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),Uj=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Wj},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){e.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)e.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],c=a[o++],h=a[o++];if(e.moveTo(u,f),i>0){var v=(u+c)/2-(f-h)*i,d=(f+h)/2-(c-u)*i;e.quadraticCurveTo(v,d,c,h)}else e.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var c=i[u++],h=i[u++],v=1;v<f;v++){var d=i[u++],p=i[u++];if(oa(c,h,d,p,s,e,n))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],h=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(c+d)/2-(h-p)*o,y=(h+p)/2-(d-c)*o;if(f2(c,h,g,y,d,p,s,e,n))return l}else if(oa(c,h,d,p,s,e,n))return l;l++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],c=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}e=this._rect=new ye(i,o,s,l)}return e},t}(we),$j=function(){function r(){this.group=new oe}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],a=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new Uj({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=ue(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const Yj=$j;var Xj={seriesType:"lines",plan:ys(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(e){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],f=a.start;f<a.end;f++){var v=r.getLineCoords(f,o);e&&(s[c++]=v);for(var d=0;d<v;d++)h=t.dataToPoint(o[d],!1,h),s[c++]=h[0],s[c++]=h[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var p=i.getItemModel(f),v=r.getLineCoords(f,o),g=[];if(e)for(var y=0;y<v;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}};const oE=Xj;var Zj=function(r){O(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){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=a.getZr(),f=u.painter.getType()==="svg";f||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=e.get("clip",!0)&&ev(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,a){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=oE.reset(e,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new Yj:new L0(o?i?Hj:iE:i?aE:I0),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}($e);const qj=Zj;var jj=typeof Uint32Array>"u"?Array:Uint32Array,Kj=typeof Float64Array>"u"?Array:Float64Array;function Ww(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=G(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),om([a,e[0],e[1]])}))}var Qj=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Ww(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Ww(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=pc(this._flatCoords,n.flatCoords),this._flatCoordsOffset=pc(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Re(e[0])){for(var a=e.length,i=new jj(a),o=new Kj(a),s=0,l=0,u=0,f=0;f<a;){u++;var c=e[f++];i[l++]=s+n,i[l++]=c;for(var h=0;h<c;h++){var v=e[f++],d=e[f++];o[s++]=v,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,n){var a=new Gt(["value"],this);return a.hasItemOption=!1,a.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=i.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),pt("nameValue",{name:f.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Ke);const Jj=Qj;function If(r){return r instanceof Array||(r=[r,r]),r}var eK={seriesType:"lines",reset:function(r){var t=If(r.get("symbol")),e=If(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function a(i,o){var s=i.getItemModel(o),l=If(s.getShallow("symbol",!0)),u=If(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};const tK=eK;function rK(r){r.registerChartView(qj),r.registerSeriesModel(Jj),r.registerLayout(oE),r.registerVisual(tK)}var nK=256,aK=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ta.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=t.length;c.width=e,c.height=n;for(var d=0;d<v;++d){var p=t[d],g=p[0],y=p[1],m=p[2],_=a(m);h.globalAlpha=_,h.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,x=0,w=b.length,T=this.minOpacity,C=this.maxOpacity,A=C-T;x<w;){var _=b[x+3]/256,M=Math.floor(_*(nK-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*A+T),b[x++]=I[M],b[x++]=I[M+1],b[x++]=I[M+2],b[x++]=I[M+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ta.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();const iK=aK;function oK(r,t,e){var n=r[1]-r[0];t=G(t,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&e[s]}}function sK(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(n){return n>=t[0]&&n<=t[1]}}function Uw(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var lK=function(r){O(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){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):Uw(o)&&this._renderOnGeo(o,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var o=n.coordinateSystem;o&&(Uw(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Oa(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,a,i,o){var s=e.coordinateSystem,l=Ji(s,"cartesian2d"),u,f,c,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,f=d.getBandWidth()+.5,c=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=this.group,g=e.getData(),y=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),S=e.get(["itemStyle","borderRadius"]),b=dt(e),x=e.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=a;M<i;M++){var I=void 0,L=g.getItemVisual(M,"style");if(l){var P=g.get(A[0],M),E=g.get(A[1],M);if(isNaN(g.get(A[2],M))||isNaN(P)||isNaN(E)||P<c[0]||P>c[1]||E<h[0]||E>h[1])continue;var R=s.dataToPoint([P,E]);I=new De({shape:{x:R[0]-u/2,y:R[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(g.get(A[1],M)))continue;I=new De({z2:1,shape:s.dataToRect([g.get(A[0],M)]).contentShape,style:L})}if(g.hasItemOption){var N=g.getItemModel(M),k=N.getModel("emphasis");y=k.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),w=k.get("focus"),T=k.get("blurScope"),C=k.get("disabled"),b=dt(N)}I.shape.r=S;var V=e.getRawValue(M),H="-";V&&V[2]!=null&&(H=V[2]+""),Ct(I,b,{labelFetcher:e,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:H}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,Je(I,w,T,C),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new iK;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-h,y=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var A=e.dataToPoint([w,T]);return A[0]-=h,A[1]-=v,A.push(C),A}),S=a.getExtent(),b=a.type==="visualMap.continuous"?sK(S,a.option.range):oK(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Mt({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}($e);const uK=lK;var fK=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return $n(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=mu.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ke);const cK=fK;function hK(r){r.registerChartView(uK),r.registerSeriesModel(cK)}var vK=["itemStyle","borderWidth"],$w=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],gp=new mn,dK=function(r){O(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){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:$w[+f],categoryDim:$w[1-+f]};return o.diff(s).add(function(v){if(o.hasValue(v)){var d=Xw(o,v),p=Yw(o,v,d,h),g=Zw(o,h,p);o.setItemGraphicEl(v,g),i.add(g),jw(g,h,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){i.remove(p);return}var g=Xw(o,v),y=Yw(o,v,g,h),m=hE(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(v,null),p=null),p?xK(p,h,y):p=Zw(o,h,y,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),jw(p,h,y)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&qw(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){qw(i,ue(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}($e);function Yw(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};pK(e,i,a,n,h),gK(r,t,a,i,o,h.boundingLength,h.pxSign,f,n,h),yK(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Ki(e.get("symbolOffset"),v);return mK(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function pK(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(z(o)){var c=[yp(s,o[0])-l,yp(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=yp(s,o)-l:t?f=n.coordSysExtent[i.index][u]-l:f=e[i.wh];a.boundingLength=f,t&&(a.repeatCutLength=e[i.wh]),a.pxSign=f>0?1:-1}function yp(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function gK(r,t,e,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(e[c.wh]),v=r.getItemVisual(t,"symbolSize"),d;z(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[c.index]=W(d[c.index],h),d[f.index]=W(d[f.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function yK(r,t,e,n,a){var i=r.get(vK)||0;i&&(gp.attr({scaleX:t[0],scaleY:t[1],rotation:e}),gp.updateTransform(),i/=gp.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function mK(r,t,e,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,d=c.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var y=Math.abs(l),m=mt(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=W(m,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=qM(n),T=w?n:Kw((y+x)/b),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&n!=="fixed"&&(T=u?Kw((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=d*(g/2),M=c.pathPosition=[];M[h.index]=e[h.wh]/2,M[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=c.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=c.barRectShape=B({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(M[v.index]+A)),L[h.wh]=e[h.wh];var P=c.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=f.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function sE(r){var t=r.symbolPatternSize,e=st(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function lE(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(V0(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?Vo(p,null,d(f),e,n):Vo(p,null,{scaleX:0,scaleY:0},e,n,function(){a.remove(p)}),f++});f<u;f++){var h=sE(e);h.__pictorialAnimationIndex=f,h.__pictorialRepeatTimes=u,a.add(h);var v=d(f);Vo(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},e,n)}function d(p){var g=s.slice(),y=e.pxSign,m=p;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function uE(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Vo(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=sE(e),a.add(i),Vo(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function fE(r,t,e){var n=B({},t.barRectShape),a=r.__pictorialBarRect;a?Vo(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new De({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function cE(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=B({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)ke(a,{shape:i},s,l);else{i[o.wh]=0,a=new De({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],yu[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Xw(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=_K,e.isAnimationEnabled=SK,e}function _K(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function SK(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Zw(r,t,e,n){var a=new oe,i=new oe;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?lE(a,t,e):uE(a,t,e),fE(a,e,n),cE(a,t,e,n),a.__pictorialShapeStr=hE(r,e),a.__pictorialSymbolMeta=e,a}function xK(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;ke(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?lE(r,t,e,!0):uE(r,t,e,!0),fE(r,e,!0),cE(r,t,e,!0)}function qw(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];V0(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),D(i,function(o){Ca(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function hE(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function V0(r,t,e){D(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Vo(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&yu[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function jw(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");V0(r,function(p){if(p instanceof Mt){var g=p.style;p.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,h&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;Ct(d,dt(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Zo(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Je(r,f,c,i.get("disabled"))}function Kw(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const bK=dK;var wK=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Na(Uc.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Uc);const TK=wK;function AK(r){r.registerChartView(bK),r.registerSeriesModel(TK),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,fe(XI,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ZI("pictorialBar"))}var CK=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function h(g){return g.name}var v=new Fn(this._layersSeries||[],l,h,h),d=[];v.add(X(p,this,"add")).update(X(p,this,"update")).remove(X(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;T<w.length;T++){var C=i.getItemLayout(w[T]),A=C.x,M=C.y0,I=C.y;S.push(A,M),b.push(A,M+I),x=i.getItemVisual(w[T],"style")}var L,P=i.getItemLayout(w[0]),E=e.getModel("label"),R=E.get("margin"),N=e.getModel("emphasis");if(g==="add"){var k=d[y]=new oe;L=new NL({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),k.add(L),s.add(k),e.isAnimationEnabled()&&L.setClipPath(MK(L.getBoundingRect(),e,function(){L.removeClipPath()}))}else{var k=_[m];L=k.childAt(0),s.add(k),d[y]=k,ke(L,{shape:{points:S,stackedOnPoints:b}},e),Xr(L)}Ct(L,dt(e),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var V=L.getTextContent();V&&(V.x=P.x-R,V.y=P.y0+P.y/2),L.useStyle(x),i.setItemGraphicEl(y,L),At(L,e),Je(L,N.get("focus"),N.get("blurScope"),N.get("disabled"))}this._layersSeries=l,this._layers=d},t.type="themeRiver",t}($e);function MK(r,t,e){var n=new De({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ze(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),n}const DK=CK;var mp=2,IK=function(r){O(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){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mu(X(this.getData,this),X(this.getRawData,this))},t.prototype.fixData=function(e){var n=e.length,a={},i=Sg(e,function(h){return a.hasOwnProperty(h[0]+"")||(a[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,v){o.push({name:v,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var c=o[l].dataList[f][0]+"";a[c]=l}for(var c in a)a.hasOwnProperty(c)&&a[c]!==l&&(a[c]=l,e[n]=[c,0,u],n++)}return e},t.prototype.getInitialData=function(e,n){for(var a=this.getReferringComponents("singleAxis",ot).models[0],i=a.get("type"),o=ze(e.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=j(),f=0,c=0;c<s.length;++c)l.push(s[c][mp]),u.get(s[c][mp])||(u.set(s[c][mp],f),f++);var h=Su(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:zc(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new Gt(h,this);return v.initData(s),v},t.prototype.getLayerSeries=function(){for(var e=this.getData(),n=e.count(),a=[],i=0;i<n;++i)a[i]=i;var o=e.mapDimension("single"),s=Sg(a,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,h){return e.get(o,c)-e.get(o,h)}),l.push({name:f,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,n,a){z(e)||(e=e?[e]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,h=-1,v=o[f].indices.length,d=0;d<v;++d){var p=i.get(e[0],o[f].indices[d]),g=Math.abs(p-n);g<=c&&(u=p,c=g,h=o[f].indices[d])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=i.getName(e),s=i.get(i.mapDimension("value"),e);return pt("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Ke);const LK=IK;function PK(r,t){r.eachSeriesByType("themeRiver",function(e){var n=e.getData(),a=e.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=e.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=W(s[0],o.height),s[1]=W(s[1],o.height);var u=o.height-s[0]-s[1];Qw(n,e,u)}else{s[0]=W(s[0],o.width),s[1]=W(s[1],o.width);var f=o.width-s[0]-s[1];Qw(n,e,f)}n.setLayout("layoutInfo",i)})}function Qw(r,t,e){if(r.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=G(a,function(g){return G(g.indices,function(y){var m=n.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=EK(s),u=l.y0,f=e/l.max,c=a.length,h=a[0].indices.length,v,d=0;d<h;++d){v=u[d]*f,r.setItemLayout(a[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:v,y:s[0][d][1]*f});for(var p=1;p<c;++p)v+=s[p-1][d][1]*f,r.setItemLayout(a[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:v,y:s[p][d][1]*f})}}function EK(r){for(var t=r.length,e=r[0].length,n=[],a=[],i=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<e;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<e;++f){var c=n[f]+a[f];c>i&&(i=c)}return{y0:a,max:i}}function RK(r){r.registerChartView(DK),r.registerSeriesModel(LK),r.registerLayout(PK),r.registerProcessor(Cu("themeRiver"))}var kK=2,OK=4,NK=function(r){O(t,r);function t(e,n,a,i){var o=r.call(this)||this;o.z2=kK,o.textConfig={inside:!0},ue(o).seriesIndex=n.seriesIndex;var s=new Ee({z2:OK,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,n,a,i),o}return t.prototype.updateData=function(e,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;ue(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=B({},f);c.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=Yo(v,o));var d=Ci(l.getModel("itemStyle"),c,!0);B(c,d),D(Ht,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Ci(S,c);b&&(_.shape=b)}),e?(s.setShape(c),s.shape.r=f.r0,Ze(s,{shape:{r:f.r}},a,n.dataIndex)):(ke(s,{shape:c},a),Xr(s)),s.useStyle(h),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Je(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,h=c.getTextContent(),v=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);h.ignore=!p,D(Vl,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?h:h.ensureState(y),b=e.getFormattedLabel(v,y);_&&(b=b||n.node.name),S.style=We(m,{},null,y!=="normal",!0),b&&(S.style.text=b);var x=m.get("show");x!=null&&!_&&(S.ignore=!x);var w=g(m,"position"),T=_?c:c.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:w!=="outside"};var A,M=g(m,"distance")||0,I=g(m,"align");w==="outside"?(A=o.r+M,I=l>Math.PI/2?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,I="center"):I==="left"?(A=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(A=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*f+o.cy;var L=g(m,"rotate"),P=0;L==="radial"?(P=Hr(-l),P>Math.PI/2&&P<Math.PI*1.5&&(P+=Math.PI)):L==="tangential"?(P=Math.PI/2-l,P>Math.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):Re(L)&&(P=L*Math.PI/180),S.rotation=Hr(P)});function g(y,m){var _=y.get(m);return _??i.get(m)}h.dirtyStyle()},t}(Kt);const Jw=NK;var my="sunburstRootToNode",eT="sunburstHighlight",BK="sunburstUnhighlight";function VK(r){r.registerAction({type:my,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=Ql(t,[my],a);if(o){var s=a.getViewRoot();s&&(t.direction=w0(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:eT,update:"none"},function(t,e,n){t=B({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Ql(t,[eT],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(B(t,{type:"highlight"}))}),r.registerAction({type:BK,update:"updateView"},function(t,e,n){t=B({},t),n.dispatchAction(B(t,{type:"downplay"}))})}var zK=function(r){O(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,i){var o=this;this.seriesModel=e,this.api=a,this.ecModel=n;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),f=this.group,c=e.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var v=this._oldChildren||[];d(h,v),y(l,u),this._initEvents(),this._oldChildren=h;function d(m,_){if(m.length===0&&_.length===0)return;new Fn(_,m,S,S).add(b).update(b).remove(fe(b,null)).execute();function S(x){return x.getId()}function b(x,w){var T=x==null?null:m[x],C=w==null?null:_[w];p(T,C)}}function p(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,e,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new Jw(m,e,n,a);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,n,a):(o.virtualPiece=new Jw(m,e,n,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Pc(u,f)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:my,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}($e);const GK=zK;var FK=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};vE(a);var i=this._levelModels=G(e.levels||[],function(l){return new Ue(l,this,n)},this),o=b0.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),h=i[c.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=nv(a,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){yP(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Ke);function vE(r){var t=0;D(r.children,function(n){vE(n);var a=n.value;z(a)&&(a=a[0]),t+=a});var e=r.value;z(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),z(r.value)?r.value[0]=e:r.value=e}const HK=FK;var tT=Math.PI/180;function WK(r,t,e){t.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");z(i)||(i=[0,i]),z(a)||(a=[a,a]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=W(a[0],o),f=W(a[1],s),c=W(i[0],l/2),h=W(i[1],l/2),v=-n.get("startAngle")*tT,d=n.get("minAngle")*tT,p=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&dE(g,m);var _=0;D(g.children,function(R){!isNaN(R.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(h-c)/(w||1),C=n.get("clockwise"),A=n.get("stillShowZeroSum"),M=C?1:-1,I=function(R,N){if(R){var k=N;if(R!==p){var V=R.getValue(),H=S===0&&A?b:V*b;H<d&&(H=d),k=N+M*H;var U=R.depth-y-(x?-1:1),q=c+T*U,ee=c+T*(U+1),te=n.getLevelModel(R);if(te){var _e=te.get("r0",!0),Ae=te.get("r",!0),Se=te.get("radius",!0);Se!=null&&(_e=Se[0],Ae=Se[1]),_e!=null&&(q=W(_e,l/2)),Ae!=null&&(ee=W(Ae,l/2))}R.setLayout({angle:H,startAngle:N,endAngle:k,clockwise:C,cx:u,cy:f,r0:q,r:ee})}if(R.children&&R.children.length){var ae=0;D(R.children,function(xe){ae+=I(xe,N+ae)})}return k-N}};if(x){var L=c,P=c+T,E=Math.PI*2;p.setLayout({angle:E,startAngle:v,endAngle:v+E,clockwise:C,cx:u,cy:f,r0:L,r:P})}I(g,v)})}function dE(r,t){var e=r.children||[];r.children=UK(e,t),e.length&&D(r.children,function(n){dE(n,t)})}function UK(r,t){if(J(t)){var e=G(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return e.sort(function(a,i){return t(a.params,i.params)}),G(e,function(a){return r[a.index]})}else{var n=t==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function $K(r){var t={};function e(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&Y(s)&&(s=fg(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");B(u,l)})})}function YK(r){r.registerChartView(GK),r.registerSeriesModel(HK),r.registerLayout(fe(WK,"sunburst")),r.registerProcessor(fe(Cu,"sunburst")),r.registerVisual($K),VK(r)}var rT={color:"fill",borderColor:"stroke"},XK={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},On=Ie(),ZK=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return $n(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=On(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Ke);const qK=ZK;function jK(r,t){return t=t||[0,0],G(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function KK(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:X(jK,r)}}}function QK(r,t){return t=t||[0,0],G([0,1],function(e){var n=t[e],a=r[e]/2,i=[],o=[];return i[e]=n-a,o[e]=n+a,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function JK(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:X(QK,r)}}}function eQ(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function tQ(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:X(eQ,r)}}}function rQ(r,t){return t=t||[0,0],G(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),o=t[n],s=r[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function nQ(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=e.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:X(rQ,r)}}}function aQ(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}function pE(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||Z(r,"text")))}function gE(r,t,e){var n=r,a,i,o;if(t==="text")o=n;else{o={},Z(n,"text")&&(o.text=n.text),Z(n,"rich")&&(o.rich=n.rich),Z(n,"textFill")&&(o.fill=n.textFill),Z(n,"textStroke")&&(o.stroke=n.textStroke),Z(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Z(n,"fontSize")&&(o.fontSize=n.fontSize),Z(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Z(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Z(n,"textPosition");e?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),Z(n,"textPosition")&&(a.position=n.textPosition),Z(n,"textOffset")&&(a.offset=n.textOffset),Z(n,"textRotation")&&(a.rotation=n.textRotation),Z(n,"textDistance")&&(a.distance=n.textDistance)}return nT(o,r),D(o.rich,function(l){nT(l,l)}),{textConfig:a,textContent:i}}function nT(r,t){t&&(t.font=t.textFont||t.font,Z(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),Z(t,"textAlign")&&(r.align=t.textAlign),Z(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),Z(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),Z(t,"textWidth")&&(r.width=t.textWidth),Z(t,"textHeight")&&(r.height=t.textHeight),Z(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),Z(t,"textPadding")&&(r.padding=t.textPadding),Z(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),Z(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),Z(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),Z(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),Z(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),Z(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),Z(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function aT(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";iT(n,t);var o=n.textFill==null;return a?o&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){iT(s,s)}),n}function iT(r,t){t&&(Z(t,"fill")&&(r.textFill=t.fill),Z(t,"stroke")&&(r.textStroke=t.fill),Z(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),Z(t,"font")&&(r.font=t.font),Z(t,"fontStyle")&&(r.fontStyle=t.fontStyle),Z(t,"fontWeight")&&(r.fontWeight=t.fontWeight),Z(t,"fontSize")&&(r.fontSize=t.fontSize),Z(t,"fontFamily")&&(r.fontFamily=t.fontFamily),Z(t,"align")&&(r.textAlign=t.align),Z(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),Z(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),Z(t,"width")&&(r.textWidth=t.width),Z(t,"height")&&(r.textHeight=t.height),Z(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),Z(t,"padding")&&(r.textPadding=t.padding),Z(t,"borderColor")&&(r.textBorderColor=t.borderColor),Z(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),Z(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),Z(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),Z(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),Z(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),Z(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),Z(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),Z(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),Z(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),Z(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var yE={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},oT=Te(yE);vn(pn,function(r,t){return r[t]=1,r},{});pn.join(", ");var Qc=["","style","shape","extra"],Ko=Ie();function z0(r,t,e,n,a){var i=r+"Animation",o=us(r,n,a)||{},s=Ko(t).userDuring;return o.duration>0&&(o.during=s?X(uQ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,e[i]),o}function oc(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=Ko(r),u=t.style;l.userDuring=t.during;var f={},c={};if(cQ(r,t,c),lT("shape",t,c),lT("extra",t,c),!i&&s&&(fQ(r,t,f),sT("shape",r,t,f),sT("extra",r,t,f),hQ(r,t,u,f)),c.style=u,iQ(r,c,o),sQ(r,t),s)if(i){var h={};D(Qc,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),B(d?h[d]:h,p.enterFrom))});var v=z0("enter",r,t,e,a);v.duration>0&&r.animateFrom(h,v)}else oQ(r,t,a||0,e,f);mE(r,t),u?r.dirty():r.markRedraw()}function mE(r,t){for(var e=Ko(r).leaveToProps,n=0;n<Qc.length;n++){var a=Qc[n],i=a?t[a]:t;i&&i.leaveTo&&(e||(e=Ko(r).leaveToProps={}),a&&(e[a]=e[a]||{}),B(a?e[a]:e,i.leaveTo))}}function ov(r,t,e,n){if(r){var a=r.parent,i=Ko(r).leaveToProps;if(i){var o=z0("update",r,t,e,0);o.done=function(){a.remove(r),n&&n()},r.animateTo(i,o)}else a.remove(r),n&&n()}}function Ni(r){return r==="all"}function iQ(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function oQ(r,t,e,n,a){if(a){var i=z0("update",r,t,n,e);i.duration>0&&r.animateFrom(a,i)}}function sQ(r,t){Z(t,"silent")&&(r.silent=t.silent),Z(t,"ignore")&&(r.ignore=t.ignore),r instanceof Dr&&Z(t,"invisible")&&(r.invisible=t.invisible),r instanceof we&&Z(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var tn={},lQ={setTransform:function(r,t){return tn.el[r]=t,this},getTransform:function(r){return tn.el[r]},setShape:function(r,t){var e=tn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=tn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=tn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=tn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=tn.el.extra||(tn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=tn.el.extra;if(t)return t[r]}};function uQ(){var r=this,t=r.el;if(t){var e=Ko(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}tn.el=t,n(lQ)}}function sT(r,t,e,n){var a=e[r];if(a){var i=t[r],o;if(i){var s=e.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),Ni(l))B(o,i);else for(var u=Ge(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(Ni(s)||me(s,r)>=0){!o&&(o=n[r]={});for(var v=Te(i),f=0;f<v.length;f++){var c=v[f],h=i[c];vQ(a[c],h)&&(o[c]=h)}}}}}function lT(r,t,e){var n=t[r];if(n)for(var a=e[r]={},i=Te(n),o=0;o<i.length;o++){var s=i[o];a[s]=vl(n[s])}}function fQ(r,t,e){for(var n=t.transition,a=Ni(n)?pn:Ge(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function cQ(r,t,e){for(var n=0;n<oT.length;n++){var a=oT[n],i=yE[a],o=t[a];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var n=0;n<pn.length;n++){var s=pn[n];t[s]!=null&&(e[s]=t[s])}}function hQ(r,t,e,n){if(e){var a=r.style,i;if(a){var o=e.transition,s=t.transition;if(o&&!Ni(o)){var l=Ge(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];i[f]=c}}else if(r.getAnimationStyleProps&&(Ni(s)||Ni(o)||me(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=n.style={});for(var d=Te(e),u=0;u<d.length;u++){var f=d[u];if(v[f]){var c=a[f];i[f]=c}}}}}}}function vQ(r,t){return Et(r)?r!==t:r!=null&&isFinite(r)}var _E=Ie(),dQ=["percent","easing","shape","style","extra"];function SE(r){r.stopAnimation("keyframe"),r.attr(_E(r))}function Jc(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(z(t)){D(t,function(s){Jc(r,s,e)});return}var n=t.keyframes,a=t.duration;if(e&&a==null){var i=us("enter",e,0);a=i&&i.duration}if(!(!n||!a)){var o=_E(r);D(Qc,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),D(n,function(u){var f=r.animators,c=s?u[s]:u;if(c){var h=Te(c);if(s||(h=ze(h,function(p){return me(dQ,p)<0})),!!h.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;D(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(a*u.percent,c,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var Nn="emphasis",ya="normal",G0="blur",F0="select",Pa=[ya,Nn,G0,F0],_p={normal:["itemStyle"],emphasis:[Nn,"itemStyle"],blur:[G0,"itemStyle"],select:[F0,"itemStyle"]},Sp={normal:["label"],emphasis:[Nn,"label"],blur:[G0,"label"],select:[F0,"label"]},pQ=["x","y"],gQ="e\0\0",fr={normal:{},emphasis:{},blur:{},select:{}},yQ={cartesian2d:KK,geo:JK,single:tQ,polar:nQ,calendar:aQ};function _y(r){return r instanceof we}function Sy(r){return r instanceof Dr}function mQ(r,t){t.copyTransform(r),Sy(t)&&Sy(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,_y(t)&&_y(r)&&t.setShape(r.shape))}var _Q=function(r){O(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,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=uT(e,s,n,a);o||l.removeAll(),s.diff(o).add(function(c){xp(a,null,c,u(c,i),e,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&ov(h,On(h).option,e)}).update(function(c,h){var v=o.getItemGraphicEl(h);xp(a,v,c,u(c,i),e,l,s)}).execute();var f=e.get("clip",!0)?ev(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,n,a,i,o){var s=n.getData(),l=uT(n,s,a,i),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var h=xp(null,null,c,l(c,o),n,this.group,s);h&&(h.traverse(f),u.push(h))}},t.prototype.eachRendered=function(e){Oa(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}($e);const SQ=_Q;function H0(r){var t=r.type,e;if(t==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=wE(n);e=Nh(i,null,a,n.layout||"center"),On(e).customPathData=i}else if(t==="image")e=new Mt({}),On(e).customImagePath=r.style.image;else if(t==="text")e=new Ee({});else if(t==="group")e=new oe;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Pm(t);if(!o){var s="";Ne(s)}e=new o}return On(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function W0(r,t,e,n,a,i,o){SE(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=pQ);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;Z(u,"textFill")&&(u.fill=u.textFill),Z(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=_y(t)?l.decal:null;r&&c&&(c.dirty=!0,f=Yo(c,r)),l.__decalPattern=f}if(Sy(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}oc(t,n,i,{dataIndex:e,isInit:o,clearStyle:!0}),Jc(t,n.keyframeAnimation,i)}function xE(r,t,e,n,a){var i=t.isGroup?null:t,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Hi(i)}}function xQ(r,t,e){if(!r.isGroup){var n=r,a=e.currentZ,i=e.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Pa.length;s++)bQ(n,t,Pa[s])}}function bQ(r,t,e){var n=e===ya,a=n?t:eh(t,e),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(e),o.z2=i||0)}function uT(r,t,e,n){var a=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):yQ[i.type](i));for(var s=re({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:x,ordinalRawValue:b,styleEmphasis:w,visual:A,barLayout:M,currentSeriesIndices:I,font:L},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:wQ(r.getData())},u,f,c={},h={},v={},d={},p=0;p<Pa.length;p++){var g=Pa[p];v[g]=r.getModel(_p[g]),d[g]=r.getModel(Sp[g])}function y(P){return P===u?f||(f=t.getItemModel(P)):t.getItemModel(P)}function m(P,E){return t.hasItemOption?P===u?c[E]||(c[E]=y(P).getModel(_p[E])):y(P).getModel(_p[E]):v[E]}function _(P,E){return t.hasItemOption?P===u?h[E]||(h[E]=y(P).getModel(Sp[E])):y(P).getModel(Sp[E]):d[E]}return function(P,E){return u=P,f=null,c={},h={},a&&a(re({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:E?E.type:null},l),s)};function S(P,E){return E==null&&(E=u),t.getStore().get(t.getDimensionIndex(P||0),E)}function b(P,E){E==null&&(E=u),P=P||0;var R=t.getDimensionInfo(P);if(!R){var N=t.getDimensionIndex(P);return N>=0?t.getStore().get(N,E):void 0}var k=t.get(R.name,E),V=R&&R.ordinalMeta;return V?V.categories[k]:k}function x(P,E){E==null&&(E=u);var R=t.getItemVisual(E,"style"),N=R&&R.fill,k=R&&R.opacity,V=m(E,ya).getItemStyle();N!=null&&(V.fill=N),k!=null&&(V.opacity=k);var H={inheritColor:Y(N)?N:"#000"},U=_(E,ya),q=We(U,null,H,!1,!0);q.text=U.getShallow("show")?pe(r.getFormattedLabel(E,ya),Zo(t,E)):null;var ee=Ic(U,H,!1);return C(P,V),V=aT(V,q,ee),P&&T(V,P),V.legacy=!0,V}function w(P,E){E==null&&(E=u);var R=m(E,Nn).getItemStyle(),N=_(E,Nn),k=We(N,null,null,!0,!0);k.text=N.getShallow("show")?cn(r.getFormattedLabel(E,Nn),r.getFormattedLabel(E,ya),Zo(t,E)):null;var V=Ic(N,null,!0);return C(P,R),R=aT(R,k,V),P&&T(R,P),R.legacy=!0,R}function T(P,E){for(var R in E)Z(E,R)&&(P[R]=E[R])}function C(P,E){P&&(P.textFill&&(E.textFill=P.textFill),P.textPosition&&(E.textPosition=P.textPosition))}function A(P,E){if(E==null&&(E=u),Z(rT,P)){var R=t.getItemVisual(E,"style");return R?R[rT[P]]:null}if(Z(XK,P))return t.getItemVisual(E,P)}function M(P){if(i.type==="cartesian2d"){var E=i.getBaseAxis();return A8(re({axis:E},P))}}function I(){return e.getCurrentSeriesIndices()}function L(P){return eD(P,e)}}function wQ(r){var t={};return D(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function xp(r,t,e,n,a,i,o){if(!n){i.remove(t);return}var s=U0(r,t,e,n,a,i);return s&&o.setItemGraphicEl(e,s),s&&Je(s,n.focus,n.blurScope,n.emphasisDisabled),s}function U0(r,t,e,n,a,i){var o=-1,s=t;t&&bE(t,n,a)&&(o=me(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=H0(n),s&&mQ(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),fr.normal.cfg=fr.normal.conOpt=fr.emphasis.cfg=fr.emphasis.conOpt=fr.blur.cfg=fr.blur.conOpt=fr.select.cfg=fr.select.conOpt=null,fr.isLegacy=!1,AQ(u,e,n,a,l,fr),TQ(u,e,n,a,l),W0(r,u,e,n,fr,a,l),Z(n,"info")&&(On(u).info=n.info);for(var f=0;f<Pa.length;f++){var c=Pa[f];if(c!==ya){var h=eh(n,c),v=$0(n,h,c);xE(c,u,h,v,fr)}}return xQ(u,n,a),n.type==="group"&&CQ(r,u,e,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function bE(r,t,e){var n=On(r),a=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&LQ(i)&&wE(i)!==n.customPathData||a==="image"&&Z(o,"image")&&o.image!==n.customImagePath}function TQ(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&bE(o,i,n)&&(o=null),o||(o=H0(i),r.setClipPath(o)),W0(null,o,t,i,null,n,a)}}function AQ(r,t,e,n,a,i){if(!r.isGroup){fT(e,null,i),fT(e,Nn,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=H0(o),r.setTextContent(f)),W0(null,f,t,o,null,n,a);for(var c=o&&o.style,h=0;h<Pa.length;h++){var v=Pa[h];if(v!==ya){var d=i[v].conOpt;xE(v,f,d,$0(o,d,v),null)}}c?f.dirty():f.markRedraw()}}}}function fT(r,t,e){var n=t?eh(r,t):r,a=t?$0(r,n,Nn):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?t?eh(s,t):s:null;if(a&&(e.isLegacy||pE(a,i,!!o,!!l))){e.isLegacy=!0;var u=gE(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var c=t?e[t]:e.normal;c.cfg=o,c.conOpt=l}function eh(r,t){return t?r?r[t]:null:r}function $0(r,t,e){var n=t&&t.style;return n==null&&e===Nn&&r&&(n=r.styleEmphasis),n}function CQ(r,t,e,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){DQ({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:a,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=i[f],h=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),U0(r,h,e,c,a,t)):h.ignore=!0}for(var v=t.childCount()-1;v>=f;v--){var d=t.childAt(v);MQ(t,d,a)}}}function MQ(r,t,e){t&&ov(t,On(r).option,e)}function DQ(r){new Fn(r.oldChildren,r.newChildren,cT,cT,r).add(hT).update(hT).remove(IQ).execute()}function cT(r,t){var e=r&&r.name;return e??gQ+t}function hT(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;U0(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function IQ(r){var t=this.context,e=t.oldChildren[r];e&&ov(e,On(e).option,t.seriesModel)}function wE(r){return r&&(r.pathData||r.d)}function LQ(r){return r&&(Z(r,"pathData")||Z(r,"d"))}function PQ(r){r.registerChartView(SQ),r.registerSeriesModel(qK)}var yi=Ie(),vT=ie,bp=X,EQ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new oe,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var h=fe(dT,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}gT(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=p0(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=yi(t).pointerEl=new yu[i.type](vT(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=yi(t).labelEl=new Ee(vT(e.label));t.add(i),pT(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=yi(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=yi(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),pT(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=gu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Bn(u.event)},onmousedown:bp(this._onHandleDragMove,this,0,0),drift:bp(this._onHandleDragMove,this),ondragend:bp(this._onHandleDragEnd,this)}),n.add(a)),gT(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,ms(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){dT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,wp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(wp(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(wp(a)),yi(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),$l(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function dT(r,t,e,n){TE(yi(e).lastProp,n)||(yi(e).lastProp=n,t?ke(e,n,r):(e.stopAnimation(),e.attr(n)))}function TE(r,t){if(ne(r)&&ne(t)){var e=!0;return D(t,function(n,a){e=e&&TE(r[a],n)}),!!e}else return r===t}function pT(r,t){r[t.get(["label","show"])?"show":"hide"]()}function wp(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function gT(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}const Y0=EQ;function X0(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function AE(r,t,e,n,a){var i=e.get("value"),o=CE(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=vs(s.get("padding")||0),u=s.getFont(),f=hu(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),RQ(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:We(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function RQ(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function CE(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:o0(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Y(o)?i=o.replace("{value}",i):J(o)&&(i=o(s))}return i}function Z0(r,t,e){var n=Mr();return qi(n,n,e.rotation),dn(n,n,e.position),$r([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function ME(r,t,e,n,a,i){var o=Hn.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),AE(t,n,a,i,{position:Z0(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function q0(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function DE(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function yT(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var kQ=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=mT(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=X0(i),v=OQ[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=ry(l.model,a);ME(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=ry(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Z0(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=mT(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(Y0);function mT(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var OQ={line:function(r,t,e){var n=q0([t,e[0]],[t,e[1]],_T(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:DE([t-n/2,e[0]],[n,a],_T(r))}}};function _T(r){return r.dim==="x"?0:1}const NQ=kQ;var BQ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Le);const VQ=BQ;var Ln=Ie(),zQ=D;function IE(r,t,e){if(!Pe.node){var n=t.getZr();Ln(n).records||(Ln(n).records={}),GQ(n,t);var a=Ln(n).records[r]||(Ln(n).records[r]={});a.handler=e}}function GQ(r,t){if(Ln(r).initialized)return;Ln(r).initialized=!0,e("click",fe(ST,"click")),e("mousemove",fe(ST,"mousemove")),e("globalout",HQ);function e(n,a){r.on(n,function(i){var o=WQ(t);zQ(Ln(r).records,function(s){s&&a(s,i,o.dispatchAction)}),FQ(o.pendings,t)})}}function FQ(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function HQ(r,t,e){r.handler("leave",null,e)}function ST(r,t,e,n){t.handler(r,e,n)}function WQ(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function xy(r,t){if(!Pe.node){var e=t.getZr(),n=(Ln(e).records||{})[r];n&&(Ln(e).records[r]=null)}}var UQ=function(r){O(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){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";IE("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){xy("axisPointer",n)},t.prototype.dispose=function(e,n){xy("axisPointer",n)},t.type="axisPointer",t}(et);const $Q=UQ;function LE(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Gi(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var xT=Ie();function YQ(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||X(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){sc(a)&&(a=LE({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=sc(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||sc(a),h={},v={},d={list:[],map:{}},p={showPointer:fe(ZQ,v),showTooltip:fe(qQ,d)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=JQ(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&bT(S,T,p,!1,h)}})});var g={};return D(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&D(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,wT(S),wT(y)))),g[y.key]=w}})}),D(g,function(y,m){bT(f[m],y,p,!0,h)}),jQ(v,f,h),KQ(d,a,r,o),QQ(f,o,e),h}}function bT(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=XQ(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&B(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function XQ(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),D(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function ZQ(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function qQ(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Kl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function jQ(r,t,e){var n=e.axesInfo=[];D(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function KQ(r,t,e,n){if(sc(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function QQ(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=xT(n)[a]||{},o=xT(n)[a]={};D(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&D(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];D(i,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function JQ(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function wT(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function sc(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Lu(r){eo.registerAxisPointerClass("CartesianAxisPointer",NQ),r.registerComponentModel(VQ),r.registerComponentView($Q),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!z(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=GU(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},YQ)}function eJ(r){be(rP),be(Lu)}var tJ=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),h=i.get("type");if(h&&h!=="none"){var v=X0(i),d=nJ[h](s,l,c,f);d.style=v,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=rJ(n,a,i,l,p);AE(e,a,i,o,g)},t}(Y0);function rJ(r,t,e,n,a){var i=t.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var h=Mr();qi(h,h,s),dn(h,h,[n.cx,n.cy]),u=$r([o,-a],h);var v=t.getModel("axisLabel").get("rotate")||0,d=Hn.innerTextLayout(s,v*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var nJ={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:q0(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:yT(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:yT(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}};const aJ=tJ;var iJ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,a=this.ecModel;return a.eachComponent(e,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Le);const oJ=iJ;var j0=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ot).models[0]},t.type="polarAxis",t}(Le);lt(j0,bu);var sJ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(j0),lJ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(j0),K0=function(r){O(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(qr);K0.prototype.dataToRadius=qr.prototype.dataToCoord;K0.prototype.radiusToData=qr.prototype.coordToData;const uJ=K0;var fJ=Ie(),Q0=function(r){O(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=hu(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),h=c/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=fJ(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(qr);Q0.prototype.dataToAngle=qr.prototype.dataToCoord;Q0.prototype.angleToData=qr.prototype.coordToData;const cJ=Q0;var PE=["radius","angle"],hJ=function(){function r(t){this.dimensions=PE,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new uJ,this._angleAxis=new cJ,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+n*n);e/=l,n/=l;for(var u=Math.atan2(-n,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[a,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,c=this.r,h=this.r0;return f<=c*c&&f>=h*h}}},r.prototype.convertToPixel=function(t,e,n){var a=TT(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=TT(e);return a===this?this.pointToData(n):null},r}();function TT(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const vJ=hJ;function dJ(r,t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight();r.cx=W(n[0],a),r.cy=W(n[1],i);var o=r.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[W(l[0],s),W(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function pJ(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();D(Gc(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),D(Gc(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Xo(n.scale,n.model),Xo(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function gJ(r){return r.mainType==="angleAxis"}function AT(r,t){if(r.type=t.get("type"),r.scale=Qh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),gJ(t)){r.inverse=r.inverse!==t.get("clockwise");var e=t.get("startAngle");r.setExtent(e,e+(r.inverse?-360:360))}t.axis=r,r.model=t}var yJ={dimensions:PE,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new vJ(a+"");i.update=pJ;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");AT(o,l),AT(s,u),dJ(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",ot).models[0];n.coordinateSystem=a.coordinateSystem}}),e}};const mJ=yJ;var _J=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Lf(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Pf(r){var t=r.getRadiusAxis();return t.inverse?0:1}function CT(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var SJ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=G(a.getViewLabels(),function(f){f=ie(f);var c=a.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(h),f});CT(u),CT(s),D(_J,function(f){e.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&xJ[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(eo),xJ={axisLine:function(r,t,e,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=Pf(e),l=s?0:1,u;i[l]===0?u=new mn({shape:{cx:e.cx,cy:e.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kh({shape:{cx:e.cx,cy:e.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,t,e,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Pf(e)],u=G(n,function(f){return new _t({shape:Lf(e,[l,l+s],f.coord)})});r.add(_r(u,{style:re(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Pf(e)],f=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)f.push(new _t({shape:Lf(e,[u,u+l],a[c][h].coord)}));r.add(_r(f,{style:re(s.getModel("lineStyle").getLineStyle(),re(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");D(o,function(c,h){var v=l,d=c.tickValue,p=i[Pf(e)],g=e.coordToPoint([p+u,c.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];ne(b)&&b.textStyle&&(v=new Ue(b.textStyle,l,l.ecModel))}var x=new Ee({silent:Hn.isLabelSilent(t),style:We(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=Hn.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,ue(x).eventData=w}},this)},splitLine:function(r,t,e,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new _t({shape:Lf(e,i,n[c].coord)}))}for(var c=0;c<f.length;c++)r.add(_r(f[c],{style:re({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new _t({shape:Lf(e,i,a[u][f].coord)}));r.add(_r(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,a,i){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,h=-n[0].coord*c,v=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Kt({shape:{cx:e.cx,cy:e.cy,r0:v,r:d,startAngle:h,endAngle:-m*c,clockwise:p},silent:!0})),h=-m*c}for(var g=0;g<f.length;g++)r.add(_r(f[g],{style:re({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const bJ=SJ;var wJ=["axisLine","axisTickLabel","axisName"],TJ=["splitLine","splitArea","minorSplitLine"],AJ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=this._axisGroup,i=this._axisGroup=new oe;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),c=l.getExtent()[0],h=o.getExtent(),v=MJ(s,e,c),d=new Hn(e,v);D(wJ,d.add,d),i.add(d.getGroup()),pu(a,i,e),D(TJ,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&CJ[p](this.group,e,s,c,h,u,f)},this)}},t.type="radiusAxis",t}(eo),CJ={splitLine:function(r,t,e,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<i.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new mn({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[c].coord,0)}}))}for(var c=0;c<f.length;c++)r.add(_r(f[c],{style:re({stroke:l[c%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new mn({shape:{cx:e.cx,cy:e.cy,r:o[f][c].coord}}));r.add(_r(u,{style:re({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Kt({shape:{cx:e.cx,cy:e.cy,r0:c,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[h].coord}for(var h=0;h<f.length;h++)r.add(_r(f[h],{style:re({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function MJ(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const DJ=AJ;function EE(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function RE(r,t){return t.dim+r.model.componentIndex}function IJ(r,t,e){var n={},a=LJ(ze(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=RE(s,l),f=EE(i),c=a[u][f],h=c.offset,v=c.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),b=Da(o,_),x=l.dim!=="radius"||!i.get("roundCap",!0),w=d.dataToCoord(0),T=0,C=o.count();T<C;T++){var A=o.get(_,T),M=o.get(S,T),I=A>=0?"p":"n",L=w;b&&(n[f][M]||(n[f][M]={p:w,n:w}),L=n[f][M][I]);var P=void 0,E=void 0,R=void 0,N=void 0;if(d.dim==="radius"){var k=d.dataToCoord(A)-w,V=l.dataToCoord(M);Math.abs(k)<y&&(k=(k<0?-1:1)*y),P=L,E=L+k,R=V-h,N=R-v,b&&(n[f][M][I]=E)}else{var H=d.dataToCoord(A,x)-w,U=l.dataToCoord(M);Math.abs(H)<m&&(H=(H<0?-1:1)*m),P=U+h,E=P+v,R=L,N=L+H,b&&(n[f][M][I]=N)}o.setItemLayout(T,{cx:p,cy:g,r0:P,r:E,startAngle:-R*Math.PI/180,endAngle:-N*Math.PI/180,clockwise:R>=N})}}})}function LJ(r){var t={};D(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=RE(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;t[l]=c;var v=EE(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=W(n.get("barWidth"),f),p=W(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(c.remainedWidth,d),h[v].width=d,c.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var e={};return D(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=W(n.categoryGap,o),l=W(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),D(i,function(p,g){var y=p.maxWidth;y&&y<c&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),c=(u-s)/(f+(f-1)*l),c=Math.max(c,0);var h=0,v;D(i,function(p,g){p.width||(p.width=c),v=p,h+=p.width*(1+l)}),v&&(h-=v.width*l);var d=-h/2;D(i,function(p,g){e[a][g]=e[a][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var PJ={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},EJ={splitNumber:5},RJ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(et);function kJ(r){be(Lu),eo.registerAxisPointerClass("PolarAxisPointer",aJ),r.registerCoordinateSystem("polar",mJ),r.registerComponentModel(oJ),r.registerComponentView(RJ),qo(r,"angle",sJ,PJ),qo(r,"radius",lJ,EJ),r.registerComponentView(bJ),r.registerComponentView(DJ),r.registerLayout(fe(IJ,"bar"))}function by(r,t){t=t||{};var e=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),mt(t.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var h=t.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-h:h,a.z2=1,a}var OJ=["axisLine","axisTickLabel","axisName"],NJ=["splitArea","splitLine"],BJ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new oe;var l=by(e),u=new Hn(e,l);D(OJ,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),D(NJ,function(f){e.get([f,"show"])&&VJ[f](this,this.group,this._axisGroup,e)},this),pu(s,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)},t.prototype.remove=function(){JL(this)},t.type="singleAxis",t}(eo),VJ={splitLine:function(r,t,e,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),f=a.isHorizontal(),c=[],h=0,v=a.getTicksCoords({tickModel:i}),d=[],p=[],g=0;g<v.length;++g){var y=a.toGlobalCoord(v[g].coord);f?(d[0]=y,d[1]=u.y,p[0]=y,p[1]=u.y+u.height):(d[0]=u.x,d[1]=y,p[0]=u.x+u.width,p[1]=y);var m=new _t({shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},silent:!0});Uo(m.shape,l);var _=h++%s.length;c[_]=c[_]||[],c[_].push(m)}for(var S=o.getLineStyle(["color"]),g=0;g<c.length;++g)t.add(_r(c[g],{style:re({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(r,t,e,n){QL(r,e,n,n)}};const zJ=BJ;var kE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Le);lt(kE,bu.prototype);const Tp=kE;var GJ=function(r){O(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,n){return this.coordinateSystem.pointToData(e)[0]},t}(qr);const FJ=GJ;var OE=["single"],HJ=function(){function r(t,e,n){this.type="single",this.dimension="single",this.dimensions=OE,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=this.dimension,i=new FJ(a,Qh(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(t,e){t.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();D(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Xo(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=ct({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),a=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(a[i],a[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+e}:function(o){return a-o+e},t.toLocalCoord=i?function(o){return o-e}:function(o){return a-o+e}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),a=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=e.toGlobalCoord(e.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(t,e,n){var a=MT(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=MT(e);return a===this?this.pointToData(n):null},r}();function MT(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function WJ(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new HJ(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",ot).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),e}var UJ={create:WJ,dimensions:OE};const $J=UJ;var DT=["x","y"],YJ=["width","height"],XJ=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=Ap(l,1-th(s)),f=l.dataToPoint(n)[0],c=i.get("type");if(c&&c!=="none"){var h=X0(i),v=ZJ[c](s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=by(a);ME(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=by(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Z0(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.coordinateSystem,l=th(o),u=Ap(s,l),f=[e.x,e.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=Ap(s,1-l),h=(c[1]+c[0])/2,v=[h,h];return v[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(Y0),ZJ={line:function(r,t,e){var n=q0([t,e[0]],[t,e[1]],th(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),a=e[1]-e[0];return{type:"Rect",shape:DE([t-n/2,e[0]],[n,a],th(r))}}};function th(r){return r.isHorizontal()?0:1}function Ap(r,t){var e=r.getRect();return[e[DT[t]],e[DT[t]]+e[YJ[t]]]}const qJ=XJ;var jJ=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(et);function KJ(r){be(Lu),eo.registerAxisPointerClass("SingleAxisPointer",qJ),r.registerComponentView(jJ),r.registerComponentView(zJ),r.registerComponentModel(Tp),qo(r,"single",Tp,Tp.defaultOption),r.registerCoordinateSystem("single",$J)}var QJ=function(r){O(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,a){var i=ds(e);r.prototype.init.apply(this,arguments),IT(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),IT(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Le);function IT(r,t){var e=r.cellSize,n;z(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=G([0,1],function(i){return oH(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Ma(r,t,{type:"box",ignoreSize:a})}const JJ=QJ;var eee=function(r){O(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){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,c=new De({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},t.prototype._renderLines=function(e,n,a,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,h=0;c.time<=n.end.time;h++){d(c.formatedDate),h===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new Jt({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,n){return Y(e)&&e?nH(e,n):J(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,n,a,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=a==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Ee({z2:30,style:We(o,{text:y})});m.attr(this._yearTextPositionControl(m,v[l],a,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,n,a,i,o){var s="left",l="top",u=e[0],f=e[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,n,a,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||Y(s))&&(s&&(n=Eg(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=0;p<c[h].length-1;p++){var g=c[h][p].slice(),y=this._firstDayOfMonth[p];if(d){var m=this._firstDayPoints[p];g[v]=(m[v]+c[0][p+1][v])/2}var _=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},x=this._formatterLabel(_,b),w=new Ee({z2:30,style:B(We(o,{text:x}),this._monthTextPositionControl(g,d,a,u,l))});i.add(w)}}},t.prototype._weekTextPositionControl=function(e,n,a,i,o){var s="center",l="middle",u=e[0],f=e[1],c=a==="start";return n==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,n,a,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||Y(f)){f&&(n=Eg(f)||n);var v=n.get(["time","dayOfWeekShort"]);f=v||G(n.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=W(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var g=0;g<7;g++){var y=l.getNextNDay(d,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+h)%7);var S=new Ee({z2:30,style:B(We(s,{text:f[_]}),this._weekTextPositionControl(m,i,u,c,p))});o.add(S)}}},t.type="calendar",t}(et);const tee=eee;var Cp=864e5,ree=function(){function r(t,e,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=gn(t);var e=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+a+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(c){f(i,c)&&(o[a[c]]=i[c]*s[c])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ct(o,l);D([0,1],function(c){f(i,c)||(i[c]=u[a[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e){z(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),a=this._rangeInfo,i=n.formatedDate;if(e&&!(n.time>=a.start.time&&n.time<a.end.time+Cp))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,e-1,a):this._getDateByWeeksAndDay(e,n-1,a)},r.prototype.convertToPixel=function(t,e,n){var a=LT(e);return a===this?a.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=LT(e);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(z(t)&&t.length===1&&(t=t[0]),z(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var a=Math.floor(e[1].time/Cp)-Math.floor(e[0].time/Cp)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+e[0].day+6)/7),c=n?-f+1:f-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&e<a.fweek||t===a.weeks&&e>a.lweek)return null;var i=(t-1)*7-a.fweek+e,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function LT(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}const nee=ree;function aee(r){r.registerComponentModel(JJ),r.registerComponentView(tee),r.registerCoordinateSystem("calendar",nee)}function iee(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function PT(r,t){var e;return D(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function oee(r,t,e){var n=B({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(ge(a,n,!0),Ma(a,n,{ignoreSize:!0}),_D(e,a),Ef(e,a),Ef(e,a,"shape"),Ef(e,a,"style"),Ef(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var NE=["transition","enterFrom","leaveTo"],see=NE.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Ef(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?NE:see,a=0;a<n.length;a++){var i=n[a];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function lee(r,t){if(r&&(r.hv=t.hv=[PT(t,["left","right"]),PT(t,["top","bottom"])],r.type==="group")){var e=r,n=t;e.width==null&&(e.width=n.width=0),e.height==null&&(e.height=n.height=0)}}var uee=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,n),this.option.elements=a},t.prototype.optionUpdated=function(e,n){var a=this.option,i=(n?a:e).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=e2(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(f,c){var h=f.newOption;h&&(u.push(h),iee(f,h),oee(o,c,h),lee(o[c],h))},this),a.elements=ze(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,n,a){D(e,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Le),ET={path:null,compoundPath:null,group:oe,image:Mt,text:Ee},pr=Ie(),fee=function(r){O(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._elMap=j()},t.prototype.render=function(e,n,a){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,a)},t.prototype._updateElements=function(e){var n=e.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");D(n,function(l){var u=ut(l.id,null),f=u!=null?a.get(u):null,c=ut(l.parentId,null),h=c!=null?a.get(c):i,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&pE(d,v,!!g,!!p)){var y=gE(d,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=cee(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,w=f;x?w=RT(u,h,l.type,a):(w&&(pr(w).isNew=!1),SE(w)),w&&(oc(w,m,e,{isInit:x}),kT(w,l,o,s))}else if(b){lc(f,l,a,e);var T=RT(u,h,l.type,a);T&&(oc(T,m,e,{isInit:!0}),kT(T,l,o,s))}else _==="remove"&&(mE(f,l),lc(f,l,a,e));var C=a.get(u);if(C&&p)if(S){var A=C.getTextContent();A?A.attr(p):C.setTextContent(new Ee(p))}else b&&C.setTextContent(new Ee(p));if(C){var M=l.clipPath;if(M){var I=M.type,L=void 0,x=!1;if(S){var P=C.getClipPath();x=!P||pr(P).type!==I,L=x?wy(I):P}else b&&(x=!0,L=wy(I));C.setClipPath(L),oc(L,M,e,{isInit:x}),Jc(L,M.keyframeAnimation,e)}var E=pr(C);C.setTextConfig(g),E.option=l,hee(C,e,l),fs({el:C,componentModel:e,itemName:C.name,itemTooltipOption:l.tooltip}),Jc(C,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,n){for(var a=e.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],h=ut(c.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===i,g=pr(v),y=pr(d);g.width=W(g.option.width,p?s:y.width)||0,g.height=W(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],h=ut(c.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,y=pr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Uh(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!pr(v).isNew&&S){for(var b=c.transition,x={},w=0;w<u.length;w++){var T=u[w],C=_[T];b&&(Ni(b)||me(b,T)>=0)?x[T]=C:v[T]=C}ke(v,x,e,0)}else v.attr(_)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){lc(a,pr(a).option,n,e._lastGraphicModel)}),this._elMap=j()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(et);function wy(r){var t=Z(ET,r)?ET[r]:Pm(r),e=new t({});return pr(e).type=r,e}function RT(r,t,e,n){var a=wy(e);return t.add(a),n.set(r,a),pr(a).id=r,pr(a).isNew=!0,a}function lc(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){lc(i,t,e,n)}),ov(r,t,n),e.removeKey(pr(r).id))}function kT(r,t,e,n){r.isGroup||D([["cursor",Dr.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];Z(t,i)?r[i]=pe(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),D(Te(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=J(i)?i:null}}),Z(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function cee(r){return r=B({},r),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(mD),function(t){delete r[t]}),r}function hee(r,t,e){var n=ue(r).eventData;!r.silent&&!r.ignore&&!n&&(n=ue(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function vee(r){r.registerComponentModel(uee),r.registerComponentView(fee),r.registerPreprocessor(function(t){var e=t.graphic;z(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var OT=["x","y","radius","angle","single"],dee=["cartesian2d","polar","singleAxis"];function pee(r){var t=r.get("coordinateSystem");return me(dee,t)>=0}function ma(r){return r+"Axis"}function gee(r,t){var e=j(),n=[],a=j();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}function BE(r){var t=r.ecModel,e={infoList:[],infoMap:j()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(ma(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Mp=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),yee=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=NT(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=NT(e);ge(this.option,e,!0),ge(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=j(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return D(OT,function(a){var i=this.getReferringComponents(ma(a),B4);if(i.specified){n=!0;var o=new Mp;D(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new Mp;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",ot).models[0];v&&D(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",ot).models[0]&&h.add(d.componentIndex)})}}}i&&D(OT,function(u){if(i){var f=a.findComponents({mainType:ma(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new Mp;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(ma(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){D(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(ma(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;D(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Le);function NT(r){var t={};return D(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const nu=yee;var mee=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(nu);const _ee=mee;var See=function(r){O(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,i){this.dataZoomModel=e,this.ecModel=n,this.api=a},t.type="dataZoom",t}(et);const J0=See;var xee=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(J0);const bee=xee;var Do=D,BT=xr,wee=function(){function r(t,e,n,a){this._dimName=t,this._axisIndex=e,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(pee(e)){var n=ma(this._dimName),a=e.getReferringComponents(n,ot).models[0];a&&this._axisIndex===a.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ie(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Do(["start","end"],function(h,v){var d=t[h],p=t[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=a.parse(Be(d,o,e))):(u=!0,p=p==null?e[v]:a.parse(p),d=Be(p,e,o)),l[v]=p==null||isNaN(p)?e[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),BT(l),BT(s);var f=this._minMaxSpan;u?c(l,s,e,o,!1):c(s,l,o,e,!0);function c(h,v,d,p,g){var y=g?"Span":"ValueSpan";to(0,h,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=Be(h[m],d,p,!0),g&&(v[m]=a.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Tee(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;Do(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var c=u.getStore(),h=G(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,y=0;y<f.length;y++){var m=c.get(h[y],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else Do(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});Do(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;Do(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Be(n[0]+o,n,[0,100],!0):i!=null&&(o=Be(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=YM(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Tee(r,t,e){var n=[1/0,-1/0];Do(e,function(o){Z8(n,o.getData(),t)});var a=r.getAxisModel(),i=eL(a.axis.scale,a,n).calculate();return[i.min,i.max]}const Aee=wee;var Cee={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(ma(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Aee(a,i,s,r),e.push(o.__dzAxisProxy))});var n=j();return D(e,function(a){D(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const Mee=Cee;function Dee(r){r.registerAction("dataZoom",function(t,e){var n=gee(e,t);D(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var VT=!1;function e_(r){VT||(VT=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Mee),Dee(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Iee(r){r.registerComponentModel(_ee),r.registerComponentView(bee),e_(r)}var yr=function(){function r(){}return r}(),VE={};function Io(r,t){VE[r]=t}function zE(r){return VE[r]}var Lee=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;D(this.option.feature,function(n,a){var i=zE(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),ge(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Le);const Pee=Lee;function Eee(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=ct(n,i,a);Ri(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Uh(r,n,i,a)}function GE(r,t){var e=vs(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new De({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Ree=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];D(u,function(d,p){c.push(p)}),new Fn(this._featureNames||[],c).add(h).update(h).remove(fe(h,null)).execute(),this._featureNames=c;function h(d,p){var g=c[d],y=c[p],m=u[g],_=new Ue(m,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(kee(g))S={onclick:_.option.onclick,featureName:g};else{var b=zE(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=hs("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof yr;if(!g&&y){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(w,T){var C=this.option,A=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,A[w]&&(T==="emphasis"?zn:Gn)(A[w])},S instanceof yr&&S.render&&S.render(_,n,a,i)}function v(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof yr&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;Y(_)?(b={},b[g]=_):b=_,Y(S)?(x={},x[g]=S):x=S;var w=d.iconPaths={};D(b,function(T,C){var A=gu(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(y.getItemStyle());var M=A.ensureState("emphasis");M.style=m.getItemStyle();var I=new Ee({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});A.setTextContent(I),fs({el:A,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),A.__title=x[C],A.on("mouseover",function(){var L=m.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?zn:Gn)(A),o.add(A),A.on("click",X(p.onclick,p,n,a,C)),w[C]=A})}Eee(o,e,a),o.add(GE(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!J(_)&&p){var S=_.style||(_.style={}),b=hu(p,Ee.makeFont(S)),x=d.x+o.x,w=d.y+o.y+s,T=!1;w+b.height>a.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){D(this._features,function(o){o instanceof yr&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){D(this._features,function(a){a instanceof yr&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){D(this._features,function(a){a instanceof yr&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(et);function kee(r){return r.indexOf("my")===0}const Oee=Ree;var Nee=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Pe.browser;if(J(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(yr);const Bee=Nee;var zT="__ec_magicType_stack__",Vee=[["line","bar"],["stack"]],zee=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return D(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(GT[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=GT[a](h,v,c,i);d&&(re(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,ot).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};D(Vee,function(c){me(c,a)>=0&&D(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=ge({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(yr),GT={line:function(r,t,e,n){if(r==="bar")return ge({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return ge({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===zT;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),ge({id:t,stack:a?"":zT},n.get(["option","stack"])||{},!0)}};xn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const Gee=zee;var sv=new Array(60).join("-"),Qo="	";function Fee(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Hee(r){var t=[];return D(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(G(e.series,function(v){return v.name})),l=[a.model.getCategories()];D(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Qo)],f=0;f<l[0].length;f++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][f]);u.push(c.join(Qo))}t.push(u.join(`
`))}),t.join(`

`+sv+`

`)}function Wee(r){return G(r,function(t){var e=t.getRawData(),n=[t.name],a=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Qo:"")+a.join(Qo))}),n.join(`
`)}).join(`

`+sv+`

`)}function Uee(r){var t=Fee(r);return{value:ze([Hee(t.seriesGroupByCategoryAxis),Wee(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`

`+sv+`

`),meta:t.meta}}function rh(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function $ee(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(Qo)>=0)return!0}var Ty=new RegExp("["+Qo+"]+","g");function Yee(r){for(var t=r.split(/\n+/g),e=rh(t.shift()).split(Ty),n=[],a=G(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=rh(t[i]).split(Ty);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function Xee(r){for(var t=r.split(/\n+/g),e=rh(t.shift()),n=[],a=0;a<t.length;a++){var i=rh(t[a]);if(i){var o=i.split(Ty),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:e,data:n}}function Zee(r,t){var e=r.split(new RegExp(`
*`+sv+`
*`,"g")),n={series:[]};return D(e,function(a,i){if($ee(a)){var o=Yee(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=Xee(a);n.series.push(o)}}),n}var qee=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),h=i.get("contentToOption"),v=Uee(e);if(J(c)){var d=c(n.getOption());Y(d)?u.innerHTML=d:Pl(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){a.removeChild(o),b._dom=null}ig(_,"click",x),ig(S,"click",function(){if(h==null&&c!=null||h!=null&&c==null){x();return}var w;try{J(h)?w=h(u,n.getOption()):w=Zee(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(yr);function jee(r,t){return G(r,function(e,n){var a=t&&t[n];if(ne(a)&&!z(a)){var i=ne(e)&&!z(e);i||(e={value:e});var o=a.name!=null&&e.name==null;return e=re(e,a),o&&delete e.name,e}else return e})}xn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];D(r.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)e.push(B({type:"scatter"},n));else{var i=a.get("data");e.push({name:n.name,data:jee(n.data,i)})}}),t.mergeOption(re({series:e},r.newOption))});const Kee=qee;var FE=D,HE=Ie();function Qee(r,t){var e=t_(r);FE(t,function(n,a){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function Jee(r){var t=t_(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return FE(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function ete(r){HE(r).snapshots=null}function tte(r){return t_(r).length}function t_(r){var t=HE(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var rte=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){ete(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(yr);xn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const nte=rte;var ate=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ite=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=FT(e,t);D(ote,function(o,s){(!n||!n.include||me(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Dp[n.brushType](0,i,a);n.__rangeOffset={offset:$T[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){D(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&D(i.coordSyses,function(o){var s=Dp[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){D(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Dp[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?$T[n.brushType](i.values,o.offset,ste(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return G(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:qP(a),isTargetByCursor:KP(a,t,n.coordSysModel),getLinearBrushOtherExtent:jP(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&me(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=FT(e,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<HT.length;l++)if(HT[l](a,o))return o}return!0},r}();function Ay(r){return r[0]>r[1]&&r.reverse(),r}function FT(r,t){return pl(r,t,{includeMainTypes:ate})}var ote={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=j(),o={},s={};!e&&!n&&!a||(D(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];D(u.getCartesians(),function(c,h){(me(e,c.getAxis("x").model)>=0||me(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:WT.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){D(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:WT.geo})})}},HT=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],WT={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ei(r)),t}},Dp={lineX:fe(UT,0),lineY:fe(UT,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Ay([a[0],i[0]]),Ay([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=G(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function UT(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Ay(G([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var $T={lineX:fe(YT,0),lineY:fe(YT,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return G(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function YT(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function ste(r,t){var e=XT(r),n=XT(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function XT(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const r_=ite;var Cy=D,lte=E4("toolbox-dataZoom_"),ute=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new N0(a.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),hte(e,n,this,i,a),cte(e,n)},t.prototype.onclick=function(e,n,a){fte[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new r_(n_(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),Qee(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=to(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];Cy(e,function(a,i){n.push(ie(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(yr),fte={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Jee(this.ecModel))}};function n_(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function cte(r,t){r.setIconStatus("back",tte(t)>1?"emphasis":"normal")}function hte(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new r_(n_(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}hH("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=n_(n),o=pl(r,i);Cy(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Cy(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:lte+u+c};h[f]=c,a.push(h)}return a});const vte=ute;function dte(r){r.registerComponentModel(Pee),r.registerComponentView(Oee),Io("saveAsImage",Bee),Io("magicType",Gee),Io("dataView",Kee),Io("dataZoom",vte),Io("restore",nte),be(Iee)}var pte=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Le);const gte=pte;function WE(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function UE(r){if(Pe.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var $E=UE(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),yte=UE(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function YE(r,t){if(!r)return t;t=gD(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function mte(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var _te=YE(yte,"transition"),a_=YE($E,"transform"),Ste="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Pe.transform3dSupported?"will-change:transform;":"");function xte(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function bte(r,t,e){if(!Y(e)||e==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");t=Wi(t);var i=xte(e),o=Math.max(Math.round(a)*1.5,6),s="",l=a_+":",u;me(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function wte(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=Pe.transformSupported?","+a_+n:",left"+n+",top"+n),_te+":"+a}function ZT(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Pe.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Pe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+a_+":"+o+";":[["top",0],["left",0],[$E,o]]}function Tte(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),D(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Ate(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=QD(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(wte(a,e)),i&&n.push("background-color:"+i),D(["width","color","radius"],function(v){var d="border-"+v,p=gD(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Tte(f)),c!=null&&n.push("padding:"+vs(c).join("px ")+"px"),n.join(";")+";"}function qT(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&nz(r,o,document.body,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Cte=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Pe.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;qT(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();hr(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=mte(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Ste+Ate(t,!this._firstShow,this._longHide)+ZT(i[0],i[1],!0)+("border-color:"+Wi(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Y(i)&&n.get("trigger")==="item"&&!WE(n)&&(s=bte(n,a,i)),Y(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var l=0;l<t.length;l++)Pl(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var n=this._styleCoord;if(qT(n,this._zr,this._appendToBody,t,e),n[0]!=null&&n[1]!=null){var a=this.el.style,i=ZT(n[0],n[1]);D(i,function(o){a[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Pe.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(X(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const Mte=Cte;var Dte=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),KT(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,a,i){var o=this;ne(t)&&Ne(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ee({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:QD(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=jT(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var a=this._styleCoord;KT(a,this._zr,t,e),t=a[0],e=a[1];var i=n.style,o=ia(i.borderWidth||0),s=jT(i);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(X(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function ia(r){return Math.max(0,r)}function jT(r){var t=ia(r.shadowBlur||0),e=ia(r.shadowOffsetX||0),n=ia(r.shadowOffsetY||0);return{left:ia(t-e),right:ia(t+e),top:ia(t-n),bottom:ia(t+n)}}function KT(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const Ite=Dte;var Lte=new De({shape:{x:-1,y:-1,width:2,height:2}}),Pte=function(r){O(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){if(!(Pe.node||!n.getDom())){var a=e.getComponent("tooltip"),i=this._renderMode=z4(a.get("renderMode"));this._tooltipContent=i==="richText"?new Ite(n):new Mte(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(e,n,a){if(!(Pe.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?ms(this,"_updatePosition",50,"fixRate"):$l(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");IE("itemTooltip",this._api,X(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||Pe.node||!a.getDom())){var o=QT(i,a);this._ticket="";var s=i.dataByCoordSys,l=Ote(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=Lte;f.x=i.x,f.y=i.y,f.update(),ue(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var c=LE(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(QT(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Xs([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){this._lastDataByCoordSys=null;var s,l;wi(a,function(u){if(ue(u).dataIndex!=null)return s=u,!0;if(ue(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=X(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Xs([n.tooltipOption],i),l=this._renderMode,u=[],f=pt("section",{blocks:[],noHeader:!0}),c=[],h=new vd;D(e,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=CE(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=pt("section",{header:x,noHeader:!Fr(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),D(_.seriesDataIndices,function(T){var C=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=C.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=o0(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",Wi(M.color),l);var I=NS(C.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=Xs([C],i).get("valueFormatter");w.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=HS(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`

`:"<br/>",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=ue(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,d=e.positionDefault,p=Xs([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new vd;y.marker=m.makeTooltipMarker("item",Wi(y.color),v);var _=NS(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?HS(b?B({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,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=ue(n),o=i.tooltipConfig,s=o.option||{};if(Y(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=e.positionDefault,h=Xs(u,this._tooltipModel,c?{position:c}:null),v=h.get("content"),d=Math.random()+"",p=new vd;this._showOrMove(h,function(){var g=ie(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,d,e.offsetX,e.offsetY,e.position,n,p)}),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,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(Y(h)){var g=e.ecModel.get("useUTC"),y=z(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=zh(y.axisValue,v,g)),v=yD(v,a,!0)}else if(J(h)){var _=X(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,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,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||z(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(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"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),J(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),z(n))a=W(n[0],u),i=W(n[1],f);else if(ne(n)){var p=n;p.width=c[0],p.height=c[1];var g=ct(p,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(Y(n)&&l){var y=kte(n,d,c,e.get("borderWidth"));a=y[0],i=y[1]}else{var y=Ete(a,i,o,u,f,h?null:20,v?null:20);a=y[0],i=y[1]}if(h&&(a-=JT(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=JT(v)?c[1]/2:v==="bottom"?c[1]:0),WE(e)){var y=Rte(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 d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&D(p,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){Pe.node||!n.getDom()||($l(this,"_updatePosition"),this._tooltipContent.dispose(),xy("itemTooltip",n))},t.type="tooltip",t}(et);function Xs(r,t,e){var n=t.ecModel,a;e?(a=new Ue(e,n,n),a=new Ue(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ue&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(a=new Ue(o,a,n)))}return a}function QT(r,t){return r.dispatchAction||X(t.dispatchAction,t)}function Ete(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 Rte(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 kte(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 JT(r){return r==="center"||r==="middle"}function Ote(r,t,e){var n=mm(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=vu(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=ue(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const Nte=Pte;function Bte(r){be(Lu),r.registerComponentModel(gte),r.registerComponentView(Nte),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},at),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},at)}var Vte=["rect","polygon","keep","clear"];function zte(r,t){var e=Ge(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;z(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),Gte(s),t&&!s.length&&s.push.apply(s,Vte)}}function Gte(r){var t={};D(r,function(e){t[e]=1}),r.length=0,D(t,function(e,n){r.push(n)})}var eA=D;function tA(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function My(r,t,e){var n={};return eA(t,function(i){var o=n[i]=a();eA(r[i],function(s,l){if(Tt.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Tt(u),l==="opacity"&&(u=ie(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Tt(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function XE(r,t,e){var n;D(e,function(a){t.hasOwnProperty(a)&&tA(t[a])&&(n=!0)}),n&&D(e,function(a){t.hasOwnProperty(a)&&tA(t[a])?r[a]=ie(t[a]):delete r[a]})}function Fte(r,t,e,n,a,i){var o={};D(r,function(c){var h=Tt.prepareVisualTypes(t[c]);o[c]=h});var s;function l(c){return qm(e,s,c)}function u(c,h){lI(e,s,c,h)}i==null?e.each(f):e.each([i],f);function f(c,h){s=i==null?c:h;var v=e.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(a,c),p=t[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(c,l,u)}}}function Hte(r,t,e,n){var a={};return D(r,function(i){var o=Tt.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return qm(s,c,b)}function f(b,x){lI(s,c,b,x)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=n!=null?h.get(l,c):c,p=e(d),g=t[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function Wte(r){var t=r.brushType,e={point:function(n){return rA[t].point(n,e,r)},rect:function(n){return rA[t].rect(n,e,r)}};return e}var rA={lineX:nA(0),lineY:nA(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&pi(e.range,r[0],r[1])},rect:function(r,t,e){var n=e.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(pi(n,a,i)||pi(n,a+o,i)||pi(n,a,i+s)||pi(n,a+o,i+s)||ye.create(r).contain(l[0],l[1])||nl(a,i,a+o,i,n)||nl(a,i,a,i+s,n)||nl(a+o,i,a+o,i+s,n)||nl(a,i+s,a+o,i+s,n))return!0}}};function nA(r){var t=["x","y"],e=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return Zs(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[r]],n[t[r]]+n[e[r]]];return s[1]<s[0]&&s.reverse(),Zs(s[0],o)||Zs(s[1],o)||Zs(o[0],s)||Zs(o[1],s)}}}}function Zs(r,t){return t[0]<=r&&r<=t[1]}var aA=["inBrush","outOfBrush"],Ip="__ecBrushSelect",Dy="__ecInBrushSelectEvent";function ZE(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new r_(t.option,r);e.setInputRanges(t.areas,r)})}function Ute(r,t,e){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),ZE(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ie(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],h=[],v=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=G(o.areas,function(b){var x=Zte[b.brushType],w=re({boundingRect:x?x(b):void 0},b);return w.selectors=Wte(w),w}),g=My(o.option,aA,function(b){b.mappingMethod="fixed"});z(f)&&D(f,function(b){c[b]=1});function y(b){return f==="all"||!!c[b]}function m(b){return!!b.length}r.eachSeries(function(b,x){var w=v[x]=[];b.subType==="parallel"?_(b,x):S(b,x,w)});function _(b,x){var w=b.coordinateSystem;d=d||w.hasAxisBrushed(),y(x)&&w.eachActiveState(b.getData(),function(T,C){T==="active"&&(h[C]=1)})}function S(b,x,w){if(!(!b.brushSelector||Xte(o,x))&&(D(p,function(C){o.brushTargetManager.controlSeries(C,b,r)&&w.push(C),d=d||m(w)}),y(x)&&m(w))){var T=b.getData();T.each(function(C){iA(b,w,T,C)&&(h[C]=1)})}}r.eachSeries(function(b,x){var w={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(w);var T=v[x],C=b.getData(),A=y(x)?function(M){return h[M]?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return iA(b,T,C,M)?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(x)?d:m(T))&&Fte(aA,g,C,A)})}),$te(t,a,i,n,e)}function $te(r,t,e,n,a){if(a){var i=r.getZr();if(!i[Dy]){i[Ip]||(i[Ip]=Yte);var o=ms(i,Ip,e,t);o(r,n)}}}function Yte(r,t){if(!r.isDisposed()){var e=r.getZr();e[Dy]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[Dy]=!1}}function iA(r,t,e,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(r.brushSelector(n,e,o.selectors,o))return!0}}function Xte(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(z(e)?me(e,t)<0:t!==e)}var Zte={rect:function(r){return oA(r.range)},polygon:function(r){for(var t,e=r.range,n=0,a=e.length;n<a;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=e[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&oA(t)}};function oA(r){return new ye(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var qte=function(r){O(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 N0(n.getZr())).on("brush",X(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){ZE(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:ie(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:ie(a),$from:n})},t.type="brush",t}(et);const jte=qte;var Kte="#ddd",Qte=function(r){O(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&&XE(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:Kte},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=G(e,function(n){return sA(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=sA(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}(Le);function sA(r,t){return ge({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ue(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const Jte=Qte;var ere=["rect","polygon","lineX","lineY","keep","clear"],tre=function(r){O(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:ere.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}(yr);const rre=tre;function nre(r){r.registerComponentView(jte),r.registerComponentModel(Jte),r.registerPreprocessor(zte),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Ute),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"},at),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},at),Io("brush",rre)}var are=function(r){O(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}(Le),ire=function(r){O(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=pe(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ee({style:We(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Ee({style:We(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Pc(d,"_"+e.get("target"))}),p&&v.on("click",function(){Pc(p,"_"+e.get("subtarget"))}),ue(f).eventData=ue(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 _=ct(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 De({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}(et);function ore(r){r.registerComponentModel(are),r.registerComponentView(ire)}var sre=function(r){O(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=ut(os(u),""),h;ne(u)?(h=ie(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 Gt([{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}(Le);const lA=sre;var qE=function(r){O(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=Na(lA.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}(lA);lt(qE,Um.prototype);const lre=qE;var ure=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(et);const fre=ure;var cre=function(r){O(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}(qr);const hre=cre;var Lp=Math.PI,uA=Ie(),vre=function(r){O(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 pt("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=pre(e,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":Y(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Lp/2},c=i==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Lp/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-d,0],A-=g)):(x&&(m=[A-d,0],A-=g),w&&(_=[0,0],C+=g),T&&(S=[A-d,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:d,controlGap:p}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Mr(),l=o.x,u=o.y+o.height;dn(s,s,[-l,-u]),qi(s,s,-Lp/2),dn(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],d=[i.x,i.y];d[0]=v[0]=f[0][0];var p=e.labelPosOpt;if(p==null||Y(p)){var g=p==="+"?0:1;_(v,c,f,1,g),_(d,h,f,1,1-g)}else{var g=p>=0?0:1;_(v,c,f,1,g),d[1]=v[1]+p}a.setPosition(v),i.setPosition(d),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=dre(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 hre("value",o,e.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new oe;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 _t({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new _t({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:re({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"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:X(o._changeTimeline,o,u.value)},g=fA(c,h,n,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),Pi(g);var y=ue(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"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),g=a.dataToCoord(f.tickValue),y=new Ee({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:X(o._changeTimeline,o,c),silent:!1,style:We(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=We(d),y.ensureState("progress").style=We(p),n.add(y),Pi(y),uA(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",X(this._changeTimeline,this,c?"-":"+")),h(e.prevBtnPosition,"prev",X(this._changeTimeline,this,c?"+":"-")),h(e.playPosition,f?"stop":"play",X(this._handlePlayClick,this,!f),!0);function h(v,d,p,g){if(v){var y=Yr(pe(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=gre(i,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),Pi(_)}}},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=X(u._handlePointerDrag,u),c.ondragend=X(u._handlePointerDragend,u),cA(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){cA(c,u._progressLine,s,a,i)}};this._currentPointer=fA(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=xr(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=e.model;e._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var n=this._mainGroup.getLocalTransform();return $r(e,n,!0)},t.prototype._findNearestTick=function(e){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<a&&(a=f,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var n=this.model.getCurrentIndex();e==="+"?e=n+1:e==="-"&&(e=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<e);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",uA(a[i]).dataIndex<=e)},t.type="timeline.slider",t}(fre);function dre(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new r0({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new QI({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Ia}}function pre(r,t){return ct(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function gre(r,t,e,n){var a=n.style,i=gu(r.get(["controlStyle",t]),n||{},new ye(e[0],e[1],e[2],e[3]));return a&&i.setStyle(a),i}function fA(r,t,e,n,a,i){var o=t.get("color");if(a)a.setColor(o),e.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=st(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),e.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=ge({rectHover:!0,z2:100},n,!0);var u=_s(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Ki(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=r.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function cA(r,t,e,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",e));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const yre=vre;function mre(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var a=e.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),re({currentIndex:a.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function _re(r){var t=r&&r.timeline;z(t)||(t=t?[t]:[]),D(t,function(e){e&&Sre(e)})}function Sre(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),hA(r),mi(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});mi(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!mi(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}D(r.data||[],function(a){ne(a)&&!z(a)&&(!mi(a,"value")&&mi(a,"name")&&(a.value=a.name),hA(a))})}function hA(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};D(n,function(o,s){!i[s]&&!mi(a,s)&&(a[s]=o)}),e.label&&!mi(n,"emphasis")&&(n.emphasis=e.label,delete e.label)}function mi(r,t){return r.hasOwnProperty(t)}function xre(r){r.registerComponentModel(lre),r.registerComponentView(yre),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),mre(r),r.registerPreprocessor(_re)}function i_(r,t){if(!r)return!1;for(var e=z(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function Rf(r){zi(r,"label",["show"])}var kf=Ie(),jE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._mergeOption(e,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Pe.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,n){this._mergeOption(e,n,!1,!1)},t.prototype._mergeOption=function(e,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=kf(s)[o];if(!l||!l.data){kf(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Rf(l),D(l.data,function(f){f instanceof Array?(Rf(f[0]),Rf(f[1])):Rf(f)}),u=this.createMarkerModelFromSeries(l,this,n),B(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),kf(s)[o]=u},this)},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return pt("section",{header:this.name,blocks:[pt("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,n){return kf(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Le);lt(jE,Um.prototype);const Ea=jE;var bre=function(r){O(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="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Ea);const wre=bre;function Iy(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Tre(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Of(r,t,e,n,a,i){var o=[],s=Da(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=o_(t,l,r),f=t.indicesOfNearest(l,u)[0];o[a]=t.get(e,f),o[i]=t.get(l,f);var c=t.get(n,f),h=sn(t.get(n,f));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var Pp={min:fe(Of,"min"),max:fe(Of,"max"),average:fe(Of,"average"),median:fe(Of,"median")};function au(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!Tre(t)&&!z(t.coord)&&z(a)){var i=KE(t,e,n,r);if(t=ie(t),t.type&&Pp[t.type]&&i.baseAxis&&i.valueAxis){var o=me(a,i.baseAxis.dim),s=me(a,i.valueAxis.dim),l=Pp[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||!z(a))t.coord=[];else for(var u=t.coord,f=0;f<2;f++)Pp[u[f]]&&(u[f]=o_(e,e.mapDimension(a[f]),u[f]));return t}}function KE(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(Are(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 Are(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function iu(r,t){return r&&r.containData&&t.coord&&!Iy(t)?r.containData(t.coord):!0}function Cre(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Iy(t)&&!Iy(e)?r.containZone(t.coord,e.coord):!0}function QE(r,t){return r?function(e,n,a,i){var o=i<2?e.coord&&e.coord[i]:e.value;return xa(o,t[i])}:function(e,n,a,i){return xa(e.value,t[i])}}function o_(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 Ep=Ie(),Mre=function(r){O(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=j()},t.prototype.render=function(e,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){Ep(s).keep=!1}),n.eachSeries(function(s){var l=Ea.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!Ep(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(e){Ep(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;D(e,function(i){var o=Ea.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?T2(l):Tm(l))})}})},t.type="marker",t}(et);const s_=Mre;function vA(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),o,s=W(i.get("x"),e.getWidth()),l=W(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 Dre=function(r){O(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=Ea.getMarkerModelFromSeries(i,"markPoint");o&&(vA(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 Tu),c=Ire(o,e,n);n.setData(c),vA(n.getData(),e,i),c.each(function(h){var v=c.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(J(d)||J(p)||J(g)||J(y)){var _=n.getRawValue(h),S=n.getDataParams(h);J(d)&&(d=d(_,S)),J(p)&&(p=p(_,S)),J(g)&&(g=g(_,S)),J(y)&&(y=y(_,S))}var b=v.getModel("itemStyle").getItemStyle(),x=_u(l,"color");b.fill||(b.fill=x),c.setItemVisual(h,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){ue(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(s_);function Ire(r,t,e){var n;r?n=G(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return B(B({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Gt(n,e),i=G(e.get("data"),fe(au,t));r&&(i=ze(i,fe(iu,r)));var o=QE(!!r,n);return a.initData(i,null,o),a}const Lre=Dre;function Pre(r){r.registerComponentModel(wre),r.registerComponentView(Lre),r.registerPreprocessor(function(t){i_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Ere=function(r){O(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}(Ea);const Rre=Ere;var Nf=Ie(),kre=function(r,t,e,n){var a=r.getData(),i;if(z(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=mt(n.yAxis,n.xAxis);else{var u=KE(n,a,t,r);s=u.valueAxis;var f=VI(a,u.valueDataDim);l=o_(a,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=ie(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=e.get("precision");p>=0&&Re(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[c]=d.coord[c]=l,i=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[au(r,i[0]),au(r,i[1]),B({},i[2])];return g[2].type=g[2].type||null,ge(g[2],g[0]),ge(g[2],g[1]),g};function nh(r){return!isNaN(r)&&!isFinite(r)}function dA(r,t,e,n){var a=1-r,i=n.dimensions[r];return nh(t[a])&&nh(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function Ore(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(dA(1,e,n,r)||dA(0,e,n,r)))return!0}return iu(r,t[0])&&iu(r,t[1])}function Rp(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=W(o.get("x"),a.getWidth()),u=W(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(Ji(i,"cartesian2d")){var v=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;nh(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):nh(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var Nre=function(r){O(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=Ea.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Nf(o).from,u=Nf(o).to;l.each(function(f){Rp(l,f,!0,i,a),Rp(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 L0);this.group.add(f.group);var c=Bre(o,e,n),h=c.from,v=c.to,d=c.line;Nf(n).from=h,Nf(n).to=v,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");z(p)||(p=[p,p]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),d.each(function(S){var b=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),b.stroke==null&&(b.stroke=h.getItemVisual(S,"style").fill),d.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(d),c.line.eachItemGraphicEl(function(S){ue(S).dataModel=n,S.traverse(function(b){ue(b).dataModel=n})});function _(S,b,x){var w=S.getItemModel(b);Rp(S,b,x,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=_u(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:pe(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:pe(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:pe(w.get("symbolSize"),g[x?0:1]),symbol:pe(w.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(s_);function Bre(r,t,e){var n;r?n=G(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return B(B({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Gt(n,e),i=new Gt(n,e),o=new Gt([],e),s=G(e.get("data"),fe(kre,t,r,e));r&&(s=ze(s,fe(Ore,r)));var l=QE(!!r,n);return a.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const Vre=Nre;function zre(r){r.registerComponentModel(Rre),r.registerComponentView(Vre),r.registerPreprocessor(function(t){i_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Gre=function(r){O(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}(Ea);const Fre=Gre;var Bf=Ie(),Hre=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=au(r,a),s=au(r,i),l=o.coord,u=s.coord;l[0]=mt(l[0],-1/0),l[1]=mt(l[1],-1/0),u[0]=mt(u[0],1/0),u[1]=mt(u[1],1/0);var f=om([{},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 ah(r){return!isNaN(r)&&!isFinite(r)}function pA(r,t,e,n){var a=1-r;return ah(t[a])&&ah(e[a])}function Wre(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 Ji(r,"cartesian2d")?e&&n&&(pA(1,e,n)||pA(0,e,n))?!0:Cre(r,a,i):iu(r,a)||iu(r,i)}function gA(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=W(o.get(e[0]),a.getWidth()),u=W(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),d=[];e[0]==="x0"?d[0]=h[0]>v[0]?c[0]:f[0]:d[0]=h[0]>v[0]?f[0]:c[0],e[1]==="y0"?d[1]=h[1]>v[1]?c[1]:f[1]:d[1]=h[1]>v[1]?f[1]:c[1],s=n.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Ji(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);ah(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):ah(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var yA=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Ure=function(r){O(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=Ea.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(yA,function(c){return gA(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 oe});this.group.add(f.group),this.markKeep(f);var c=$re(o,e,n);n.setData(c),c.each(function(h){var v=G(yA,function(T){return gA(c,h,T,e,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",h)),d.parse(c.get("x1",h))],_=[p.parse(c.get("y0",h)),p.parse(c.get("y1",h))];xr(m),xr(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),b=!S;c.setItemLayout(h,{points:v,allClipped:b});var x=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=_u(l,"color");x.fill||(x.fill=w,Y(x.fill)&&(x.fill=mc(x.fill,.4))),x.stroke||(x.stroke=w),c.setItemVisual(h,"style",x)}),c.diff(Bf(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var d=new Qt({shape:{points:v.points}});c.setItemGraphicEl(h,d),f.group.add(d)}}).update(function(h,v){var d=Bf(f).data.getItemGraphicEl(v),p=c.getItemLayout(h);p.allClipped?d&&f.group.remove(d):(d?ke(d,{shape:{points:p.points}},n,h):d=new Qt({shape:{points:p.points}}),c.setItemGraphicEl(h,d),f.group.add(d))}).remove(function(h){var v=Bf(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var d=c.getItemModel(v),p=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),Ct(h,dt(d),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:Y(p.fill)?mc(p.fill,1):"#000"}),At(h,d),Je(h,null,null,d.get(["emphasis","disabled"])),ue(h).dataModel=n}),Bf(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(s_);function $re(r,t,e){var n,a,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return B(B({},c),{name:u,ordinalMeta:null})});a=G(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new Gt(a,e)}else a=[{name:"value",type:"float"}],n=new Gt(a,e);var s=G(e.get("data"),fe(Hre,t,r,e));r&&(s=ze(s,fe(Wre,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return xa(v,a[h])}:function(u,f,c,h){return xa(u.value,a[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const Yre=Ure;function Xre(r){r.registerComponentModel(Fre),r.registerComponentView(Yre),r.registerPreprocessor(function(t){i_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Zre=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"])}},qre=function(r){O(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"]),z(n)&&D(n,function(i,o){Y(i)&&(i={type:i}),n[o]=ge(i,Zre(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<e.length;a++){var i=e[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],a=[];e.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();e.isSeriesFiltered(l)||(a=a.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&ym(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=j(),s=G(i,function(l){return(Y(l)||Re(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ue(l,this,this.ecModel))},this);this._data=ze(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;D(i,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;D(e,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;D(e,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&me(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Le);const Ly=qre;var So=fe,Py=D,Vf=oe,jre=function(r){O(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 Vf),this.group.add(this._selectorGroup=new Vf),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=ct(f,c,h),d=this.layoutInner(e,o,v,i,l,u),p=ct(re({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=GE(d,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=j(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Py(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new Vf;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,p,d,v,n,e,_,b,S,c,i);x.on("click",So(mA,p,null,i,h)).on("mouseover",So(Ey,y.name,null,i,h)).on("mouseout",So(Ry,y.name,null,i,h)),f.set(p,!0)}else a.eachRawSeries(function(w){if(!f.get(p)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(p))return;var C=T.indexOfName(p),A=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),I=nr(A.fill);I&&I[3]===0&&(I[3]=.2,A=B(B({},A),{fill:kn(I,"rgba")}));var L=this._createItem(w,p,d,v,n,e,{},A,M,c,i);L.on("click",So(mA,null,p,i,h)).on("mouseover",So(Ey,null,p,i,h)).on("mouseout",So(Ry,null,p,i,h)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();Py(e,function(u){var f=u.type,c=new Ee({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"]);Ct(c,{normal:h,emphasis:v},{defaultText:u.title}),Pi(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=Kre(f,i,l,u,v,g,h),b=new Vf,x=i.getModel("textStyle");if(J(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,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(Qre({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),M=n;Y(A)&&A?M=A.replace("{name}",n??""):J(A)&&(M=A(n));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Ee({style:We(x,{text:M,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new De({shape:b.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&fs({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(E){E.silent=!0}),L.silent=!c,this.getContentGroup().add(b),Pi(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ri(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){Ri("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=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]+d+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+v[1-p]),_}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}(et);function Kre(r,t,e,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Py(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:Yo(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 d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?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 Qre(r){var t=r.icon||"roundRect",e=st(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 mA(r,t,e,n){Ry(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Ey(r,t,e,n)}function JE(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;n<a&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function Ey(r,t,e,n){JE(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Ry(r,t,e,n){JE(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}const eR=jre;function Jre(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function qs(r,t,e){var n={},a=r==="toggleSelected",i;return e.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),i=o.isSelected(t.name));var s=o.getData();D(s,function(l){var u=l.get("name");if(!(u===`
`||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 ene(r){r.registerAction("legendToggleSelect","legendselectchanged",fe(qs,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",fe(qs,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",fe(qs,"inverseSelect")),r.registerAction("legendSelect","legendselected",fe(qs,"select")),r.registerAction("legendUnSelect","legendunselected",fe(qs,"unSelect"))}function tR(r){r.registerComponentModel(Ly),r.registerComponentView(eR),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Jre),r.registerSubTypeDefaulter("legend",function(){return"plain"}),ene(r)}var tne=function(r){O(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=ds(e);r.prototype.init.call(this,e,n,a),_A(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),_A(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Na(Ly.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}(Ly);function _A(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,Ma(t,e,{type:"box",ignoreSize:!!a})}const rne=tne;var SA=oe,kp=["width","height"],Op=["x","y"],nne=function(r){O(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 SA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new SA)},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=z(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Ee({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=gu(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:X(u._pageGo,u,y,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=kp[u],c=Op[u],h=kp[1-u],v=Op[1-u];o&&Ri("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=ie(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(e,i,y,u,f,h,v,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[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;Ri(e.get("orient"),f,e.get("itemGap"),i?a.width:null,i?null:a.height),Ri("horizontal",h,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>a[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=pe(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new De({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&&ke(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?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",Y(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=kp[o],l=Op[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=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}(eR);const ane=nne;function ine(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 one(r){be(tR),r.registerComponentModel(rne),r.registerComponentView(ane),ine(r)}function sne(r){be(tR),be(one)}var lne=function(r){O(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=Na(nu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(nu);const une=lne;var l_=Ie();function fne(r,t,e){l_(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function cne(r,t){for(var e=l_(r).coordSysRecordMap,n=e.keys(),a=0;a<n.length;a++){var i=n[a],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||rR(e,o))}}}function rR(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function hne(r,t){var e={model:t,containsPoint:fe(dne,t),dispatchAction:fe(vne,r),dataZoomInfoMap:null,controller:null},n=e.controller=new Du(r.getZr());return D(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function vne(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function dne(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function pne(r){var t,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[e+s]>n[e+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function gne(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=l_(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=j());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=BE(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,hne(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=j());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){rR(a,i);return}var f=pne(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),ms(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var yne=function(r){O(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(),fne(a,e,{pan:X(Np.pan,this),zoom:X(Np.zoom,this),scrollMove:X(Np.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){cne(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(J0),Np={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=Bp[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(to(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:xA(function(r,t,e,n,a,i){var o=Bp[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:xA(function(r,t,e,n,a,i){var o=Bp[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function xA(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(to(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Bp={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}};const mne=yne;function nR(r){e_(r),r.registerComponentModel(une),r.registerComponentView(mne),gne(r)}var _ne=function(r){O(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=Na(nu.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}(nu);const Sne=_ne;var js=De,bA=7,xne=1,Vp=30,bne=7,Ks="horizontal",wA="vertical",wne=5,Tne=["line","bar","candlestick","scatter"],Ane={easing:"cubicOut",duration:100,delay:0},Cne=function(r){O(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=X(this._onBrush,this),this._onBrushEnd=X(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),ms(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(){$l(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 oe;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?bne:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Ks?{right:s.width-o.x-o.width,top:s.height-Vp-bA-i,width:o.width,height:Vp}:{right:bA,top:o.y,width:Vp,height:o.height},u=ds(e.option);D(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var f=ct(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===wA&&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===Ks&&!o?{scaleY:l?1:-1,scaleX:1}:a===Ks&&o?{scaleY:l?1:-1,scaleX:-1}:a===wA&&!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 js({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new js({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:X(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]],d=[0,n[0]],p=[[n[0],0],[0,0]],g=[],y=d[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:Be(C,c,v,!0);M&&!S&&A?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=p,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 oe,I=new Qt({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Jt({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&&me(Tne,u.get("type"))<0)){var f=i.getComponent(ma(o),s).axis,c=Mne(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 js({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new js({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:xne,fill:"rgba(0,0,0,0)"}})),D([0,1],function(_){var S=l.get("handleIcon");!kc[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=st(S,-1,0,2,2,null,!0);b.attr({cursor:TA(this._orient),draggable:!0,drift:X(this._onDragMove,this,_),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=W(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(),Pi(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 Ee({silent:!0,invisible:!0,style:We(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 d=W(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new De({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=st(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new De({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:TA(this._orient),drift:X(this._onDragMove,this,"all"),ondragstart:X(this._showDataInfo,this,!0),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Be(e[0],[0,100],n,!0),Be(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];to(n,i,o,a.get("zoomLock")?"all":e,s.minSpan!=null?Be(s.minSpan,l,o,!0):null,s.maxSpan!=null?Be(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=xr([Be(i[0],o,l,!0),Be(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=xr(a.slice()),o=this._size;D([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[v]+(v?-1:1),y:o[1]/2-p/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;f<l.length;f++){var c=l[f],h=c.getClipPath();h||(h=new De,c.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,c=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=xr(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=Ei(a.handles[d].parent,this.group),g=Bh(d===0?"right":"left",p),y=this._handleWidth/2+wne,m=$r([h[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Ks?"middle":g,align:o===Ks?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=e==null||isNaN(e)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return J(i)?i(e,s):Y(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!e),a[1].attr("invisible",!e),n.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(e,n,a,i){this._dragging=!0,Bn(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=$r([n,a],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(a[0]<0||a[0]>n[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 de(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=xr([Be(a.x,o,s,!0),Be(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&&(Bn(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 js({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?Ane:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=BE(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}(J0);function Mne(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function TA(r){return r==="vertical"?"ns-resize":"ew-resize"}const Dne=Cne;function aR(r){r.registerComponentModel(Sne),r.registerComponentView(Dne),e_(r)}function Ine(r){be(nR),be(aR)}var Lne={get:function(r,t,e){var n=ie((Pne[r]||{})[t]);return e&&z(n)?n[n.length-1]:n}},Pne={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]}};const iR=Lne;var AA=Tt.mapVisual,Ene=Tt.eachVisual,Rne=z,CA=D,kne=xr,One=Be,Nne=function(r){O(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&&XE(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=X(e,this),this.controllerVisuals=My(this.option.controller,n,e),this.targetVisuals=My(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=Ge(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||["<",">"],z(e)&&(e=e.slice(),u=!0);var f=n?e:u?[c(e[0]),c(e[1])]:c(e);if(Y(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(J(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=kne([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={});ge(i,a),ge(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){Rne(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 d=c[h],p=c[v];d&&!p&&(p=c[v]={},CA(d,function(g,y){if(Tt.isValidType(y)){var m=iR.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";CA(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&ie(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&ie(v)||(s?m[0]:[m[0],m[0]])),_.symbol=AA(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;Ene(S,function(x){x>b&&(b=x)}),_.symbolSize=AA(S,function(x){return One(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}(Le);const ih=Nne;var MA=[20,140],Bne=function(r){O(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]=MA[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=MA[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):z(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=xr((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]<e[0]&&(n[0]=e[0]),n[1]<e[0]&&(n[1]=e[0]),n},t.prototype.getValueState=function(e){var n=this.option.range,a=this.getExtent();return(n[0]<=a[0]||n[0]<=e)&&(n[1]>=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=DA(this,"outOfRange",this.getExtent()),a=DA(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:e(v,d)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Na(ih.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(ih);function DA(r,t,e){if(e[0]===e[1])return e.slice();for(var n=200,a=(e[1]-e[0])/n,i=e[0],o=[],s=0;s<=n&&i<e[1];s++)o.push(i),i+=a;return o.push(e[1]),o}const Vne=Bne;var zne=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n},t.prototype.render=function(e,n,a,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,n,a,i)},t.prototype.renderBackground=function(e){var n=this.visualMapModel,a=vs(n.get("padding")||0),i=e.getBoundingRect();e.add(new De({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var c=o.controllerVisuals[i||o.getValueState(e)],h=Tt.prepareVisualTypes(c);return D(h,function(v){var d=c[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),Tt.dependsOn(v,n)&&d&&d.applyVisual(e,u,f)}),s[n]},t.prototype.positionGroup=function(e){var n=this.visualMapModel,a=this.api;Uh(e,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(e,n,a,i){},t.type="visualMap",t}(et);const oR=zne;var IA=[["left","right","width"],["top","bottom","height"]];function sR(r,t,e){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=IA[o],l=[0,null,10],u={},f=0;f<3;f++)u[IA[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],h=ct(u,i,n.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function uc(r,t){return D(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var rn=Be,Gne=D,LA=Math.min,zp=Math.max,Fne=12,Hne=6,Wne=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.doRender=function(e,n,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,n=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(n);var a=e.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(e,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Ee({style:We(v,{x:f[0],y:f[1],verticalAlign:h==="horizontal"?"middle":c,align:h==="horizontal"?c:"center",text:i})}))}},t.prototype._renderBar=function(e){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=sR(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new oe;u.add(f),f.add(a.outOfRange=PA()),f.add(a.inRange=PA(null,s?RA(this._orient):null,X(this._dragHandle,this,"all",!1),X(this._dragHandle,this,"all",!0))),f.setClipPath(new De({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),h=zp(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,h,o),this._createHandle(n,u,1,i,h,o)),this._createIndicator(n,u,i,h,o),e.add(u)},t.prototype._createHandle=function(e,n,a,i,o,s){var l=X(this._dragHandle,this,a,!1),u=X(this._dragHandle,this,a,!0),f=Yr(e.get("handleSize"),i[0]),c=st(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=RA(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Bn(y.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),xi(c,!0),n.add(c);var v=this.visualMapModel.textStyleModel,d=new Ee({cursor:h,draggable:!0,drift:l,onmousemove:function(y){Bn(y.event)},ondragend:u,style:We(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=c,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},t.prototype._createIndicator=function(e,n,a,i,o){var s=Yr(e.get("indicatorSize"),a[0]),l=st(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Mt){var f=l.style;l.useStyle(B({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,h=new Ee({silent:!0,invisible:!0,style:We(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:Hne)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():EA(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,n=this._dataInterval=e.getSelected(),a=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[rn(n[0],a,i,!0),rn(n[1],a,i,!0)]},t.prototype._updateInterval=function(e,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];to(n,i,o,e,0);var s=a.getExtent();this._dataInterval=[rn(i[0],o,s,!0),rn(i[1],o,s,!0)]},t.prototype._updateView=function(e){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new ls(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,n){var a=100,i=[],o=(e[1]-e[0])/a;i.push({color:this.getControllerVisual(e[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=e[0]+o*s;if(l>e[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 oe(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();Gne([0,1],function(f){var c=o[f];c.setStyle("fill",n.handlesColor[f]),c.y=e[f];var h=rn(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 d=$r(a.handleLabelPoints[f],Ei(c,this.group));s[f].setStyle({x:d[0],y:d[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),d=this.getControllerVisual(e,"symbolSize"),p=rn(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=$r(f.indicatorLabelPoint,Ei(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:p,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;M<A.length;M++)this._api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(n){if(e._hovering=!0,!e._dragging){var a=e.visualMapModel.itemSize,i=e._applyTransform([n.offsetX,n.offsetY],e._shapes.mainGroup,!0,!0);i[1]=LA(zp(0,i[1]),a[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();e=LA(zp(o[0],e),o[1]);var l=Une(a,s,o),u=[e-l,e+l],f=rn(e,o,s,!0),c=[rn(u[0],o,s,!0),rn(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[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||EA(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var d=O4(h,v);this._dispatchHighDown("downplay",uc(d[0],a)),this._dispatchHighDown("highlight",uc(d[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(wi(e.target,function(l){var u=ue(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<n.length;a++)this._api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",uc(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,n,a,i){var o=Ei(n,i?null:this.group);return z(e)?$r(e,o,a):Bh(e,o,a)},t.prototype._dispatchHighDown=function(e,n){n&&n.length&&this.api.dispatchAction({type:e,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(oR);function PA(r,t,e,n){return new Qt({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(a){Bn(a.event)},ondragend:n})}function Une(r,t,e){var n=Fne/2,a=r.get("hoverLinkDataSize");return a&&(n=rn(a,t,e,!0)/2),n}function EA(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function RA(r){return r==="vertical"?"ns-resize":"ew-resize"}const $ne=Wne;var Yne={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Xne=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},Zne=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||e.push(Hte(n.stateList,n.targetVisuals,X(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(X(qne,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(e);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function qne(r,t,e,n){for(var a=t.targetVisuals[n],i=Tt.prepareVisualTypes(a),o={color:_u(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var kA=D;function jne(r){var t=r&&r.visualMap;z(t)||(t=t?[t]:[]),kA(t,function(e){if(e){xo(e,"splitList")&&!xo(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var n=e.pieces;n&&z(n)&&kA(n,function(a){ne(a)&&(xo(a,"start")&&!xo(a,"min")&&(a.min=a.start),xo(a,"end")&&!xo(a,"max")&&(a.max=a.end))})}})}function xo(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var OA=!1;function lR(r){OA||(OA=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Yne,Xne),D(Zne,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(jne))}function uR(r){r.registerComponentModel(Vne),r.registerComponentView($ne),lR(r)}var Kne=function(r){O(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=[],Qne[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=ie(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=ie(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=Tt.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]=iR.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=ie(e)},t.prototype.getValueState=function(e){var n=Tt.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=Tt.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=Na(ih.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}(ih),Qne={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<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),C1(r),D(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;D(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),NA(t,r)},pieces:function(r){var t=this.option;D(t.pieces,function(e,n){ne(e)||(e={value:e});var a={text:"",index:n};if(e.label!=null&&(a.text=e.label),e.hasOwnProperty("value")){var i=a.value=e.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=e[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Tt.retrieveVisuals(e),r.push(a)},this),NA(t,r),C1(r),D(r,function(e){var n=e.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function NA(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const Jne=Kne;var eae=function(r){O(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=mt(n.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],u,h,l),D(f.viewPieceList,function(v){var d=v.piece,p=new oe;p.onclick=X(this._onItemClick,this,d),this._enableHoverLink(p,v.indexInModelPieceList);var g=n.getRepresentValue(d);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(g);p.add(new Ee({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(p)},this),c&&this._renderEndsText(e,c[1],u,h,l),Ri(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:uc(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return sR(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 oe,l=this.visualMapModel.textStyleModel;s.add(new Ee({style:We(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=G(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(st(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=ie(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}(oR);const tae=eae;function fR(r){r.registerComponentModel(Jne),r.registerComponentView(tae),lR(r)}function rae(r){be(uR),be(fR)}var nae={label:{enabled:!0},decal:{show:!1}},BA=Ie(),aae={};function iae(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=ie(nae);ge(n.label,r.getLocaleModel().get("aria"),!1),ge(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=j();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),BA(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(J(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=Og(h.ecModel,h.name,aae,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=h.getRawData(),p={},g=BA(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var y=d.count();d.each(function(b){var x=p[b],w=d.getName(b)||b+"",T=Og(h.ecModel,w,g,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?B(B({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=re(f.option,u),!!f.get("enabled")){var c=t.getZr().dom;if(f.get("description")){c.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,C){if(C<p){var A=void 0,M=T.get("name"),I=M?"withName":"withoutName";A=h>1?f.get(["series","multiple",I]):f.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=f.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=f.get(["data","allData"]);for(var E=f.get(["data","separator","middle"]),R=f.get(["data","separator","end"]),N=[],k=0;k<L.count();k++)if(k<v){var V=L.getName(k),H=L.getValues(k),U=f.get(["data",V?"withName":"withoutName"]);N.push(o(U,{name:V,value:H.join(E)}))}A+=N.join(E)+R,_.push(A)}});var b=f.getModel(["series","multiple","separator"]),x=b.get("middle"),w=b.get("end");g+=_.join(x)+w,c.setAttribute("aria-label",g)}}}function o(u,f){if(!Y(u))return u;var c=u;return D(f,function(h,v){c=c.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),c}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function oae(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},D(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function sae(r){r.registerPreprocessor(oae),r.registerVisual(r.PRIORITY.VISUAL.ARIA,iae)}var VA={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},lae=function(){function r(t){var e=this._condVal=Y(t)?new RegExp(t):Y3(t)?t:null;if(e==null){var n="";Ne(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return Y(e)?this._condVal.test(t):Re(e)?this._condVal.test(t+""):!1},r}(),uae=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),fae=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),cae=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),hae=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),vae=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},r}();function u_(r,t){if(r===!0||r===!1){var e=new uae;return e.value=r,e}var n="";return cR(r)||Ne(n),r.and?zA("and",r,t):r.or?zA("or",r,t):r.not?dae(r,t):pae(r,t)}function zA(r,t,e){var n=t[r],a="";z(n)||Ne(a),n.length||Ne(a);var i=r==="and"?new fae:new cae;return i.children=G(n,function(o){return u_(o,e)}),i.children.length||Ne(a),i}function dae(r,t){var e=r.not,n="";cR(e)||Ne(n);var a=new hae;return a.child=u_(e,t),a.child||Ne(n),a}function pae(r,t){for(var e="",n=t.prepareGetValue(r),a=[],i=Te(r),o=r.parser,s=o?zD(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=Z(VA,u)?VA[u]:u,c=r[u],h=s?s(c):c,v=jH(f,h)||f==="reg"&&new lae(h);v||Ne(e),a.push(v)}}a.length||Ne(e);var d=new vae;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=a,d}function cR(r){return ne(r)&&!Et(r)}var gae=function(){function r(t,e){this._cond=u_(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function yae(r,t){return new gae(r,t)}var mae={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=yae(r.config,{valueGetterAttrMap:j({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Z(s,"dimension")||Ne(l);var f=t.getDimensionInfo(u);return f||Ne(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),n.evaluate()&&a.push(e);return{data:a}}},_ae={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",a=Ge(e);a.length||Ne(n);var i=[];D(a,function(f){var c=f.dimension,h=f.order,v=f.parser,d=f.incomparable;if(c==null&&Ne(n),h!=="asc"&&h!=="desc"&&Ne(n),d&&d!=="min"&&d!=="max"){var p="";Ne(p)}if(h!=="asc"&&h!=="desc"){var g="";Ne(g)}var y=t.getDimensionInfo(c);y||Ne(n);var m=v?zD(v):null;v&&!m&&Ne(n),i.push({dimIdx:y.index,parser:m,comparator:new FD(h,d)})});var o=t.sourceFormat;o!==Rt&&o!==Pr&&Ne(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var h=0;h<i.length;h++){var v=i[h],d=t.retrieveValueFromItem(f,v.dimIdx),p=t.retrieveValueFromItem(c,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function Sae(r){r.registerTransform(mae),r.registerTransform(_ae)}var xae=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,a){r.prototype.init.call(this,e,n,a),this._sourceManager=new $D(this),GS(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),GS(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:hn},t}(Le),bae=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(et);function wae(r){r.registerComponentModel(xae),r.registerComponentView(bae)}var en=yn.CMD;function Ro(r,t){return Math.abs(r-t)<1e-5}function ky(r){var t=r.data,e=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(L,P){a&&a.length>2&&n.push(a),a=[L,P]}function f(L,P,E,R){Ro(L,E)&&Ro(P,R)||a.push(L,P,E,R,E,R)}function c(L,P,E,R,N,k){var V=Math.abs(P-L),H=Math.tan(V/4)*4/3,U=P<L?-1:1,q=Math.cos(L),ee=Math.sin(L),te=Math.cos(P),_e=Math.sin(P),Ae=q*N+E,Se=ee*k+R,ae=te*N+E,xe=_e*k+R,he=N*H*U,K=k*H*U;a.push(Ae-he*ee,Se+K*q,ae+he*_e,xe-K*te,ae,xe)}for(var h,v,d,p,g=0;g<e;){var y=t[g++],m=g===1;switch(m&&(i=t[g],o=t[g+1],s=i,l=o,(y===en.L||y===en.C||y===en.Q)&&(a=[s,l])),y){case en.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case en.L:h=t[g++],v=t[g++],f(i,o,h,v),i=h,o=v;break;case en.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case en.Q:h=t[g++],v=t[g++],d=t[g++],p=t[g++],a.push(i+2/3*(h-i),o+2/3*(v-o),d+2/3*(h-d),p+2/3*(v-p),d,p),i=d,o=p;break;case en.A:var _=t[g++],S=t[g++],b=t[g++],x=t[g++],w=t[g++],T=t[g++]+w;g+=1;var C=!t[g++];h=Math.cos(w)*b+_,v=Math.sin(w)*x+S,m?(s=h,l=v,u(s,l)):f(i,o,h,v),i=Math.cos(T)*b+_,o=Math.sin(T)*x+S;for(var A=(C?-1:1)*Math.PI/2,M=w;C?M>T:M<T;M+=A){var I=C?Math.max(M+A,T):Math.min(M+A,T);c(M,I,_,S,b,x)}break;case en.R:s=i=t[g++],l=o=t[g++],h=s+t[g++],v=l+t[g++],u(h,l),f(h,l,h,v),f(h,v,s,v),f(s,v,s,l),f(s,l,h,l);break;case en.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function Oy(r,t,e,n,a,i,o,s,l,u){if(Ro(r,e)&&Ro(t,n)&&Ro(a,o)&&Ro(i,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-t,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=e-r,g=n-t,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var b=h*p+v*g,x=-h*y-v*m,w=_-b*b,T=S-x*x;if(w<c&&b>=0&&T<c&&x>=0){l.push(o,s);return}var C=[],A=[];Aa(r,e,a,o,.5,C),Aa(t,n,i,s,.5,A),Oy(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),Oy(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function Tae(r,t){var e=ky(r),n=[];t=t||1;for(var a=0;a<e.length;a++){var i=e[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],h=i[u++],v=i[u++],d=i[u++],p=i[u++];Oy(s,l,f,c,h,v,d,p,o,t),s=d,l=p}n.push(o)}return n}function hR(r,t,e){var n=r[t],a=r[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=e-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function GA(r,t,e){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=hR([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;v<c.length;v++)for(var d=(f?u:s)/c[v],p=0;p<c[v];p++){var g={};f?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+h*v,g.r=n+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function Aae(r,t,e){for(var n=r.width,a=r.height,i=n>a,o=hR([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;h<o.length;h++)for(var v=r[l]/o[h],d=0;d<o[h];d++){var p={};p[u]=h*c,p[f]=d*v,p[s]=c,p[l]=v,p.x+=r.x,p.y+=r.y,e.push(p)}}function FA(r,t,e,n){return r*n-e*t}function Cae(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,h=FA(f,c,l,u);if(Math.abs(h)<1e-6)return null;var v=r-a,d=t-i,p=FA(v,d,f,c)/h;return p<0||p>1?null:new de(p*l+r,p*u+t)}function Mae(r,t,e){var n=new de;de.sub(n,e,t),n.normalize();var a=new de;de.sub(a,r,t);var i=a.dot(n);return i}function bo(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Dae(r,t,e){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=Cae(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&a.push({projPt:Mae(l,t,e),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var h=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[h],p=[v],i=u.idx+1;i<=f.idx;i++)bo(d,r[i].slice());bo(d,v),bo(d,h);for(var i=f.idx+1;i<=u.idx+n;i++)bo(p,r[i%n].slice());return bo(p,h),bo(p,v),[{points:d},{points:p}]}function HA(r){var t=r.points,e=[],n=[];Ph(t,e,n);var a=new ye(e[0],e[1],n[0]-e[0],n[1]-e[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new de,f=new de;return i>o?(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),Dae(t,u,f)}function oh(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);oh(r,i[0],a,n),oh(r,i[1],e-a,n)}return n}function Iae(r,t){for(var e=[],n=0;n<t;n++)e.push(Cm(r));return e}function Lae(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function Pae(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function Eae(r,t){var e=[],n=r.shape,a;switch(r.type){case"rect":Aae(n,t,e),a=De;break;case"sector":GA(n,t,e),a=Kt;break;case"circle":GA({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),a=Kt;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=G(Tae(r.getUpdatedPathProxy(),o),function(y){return Pae(y)}),l=s.length;if(l===0)oh(HA,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var f=0,c=G(s,function(y){var m=[],_=[];Ph(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var h=t,u=0;u<l;u++){var v=c[u];if(h<=0)break;var d=u===l-1?h:Math.ceil(v.area/f*t);d<0||(oh(HA,{points:v.poly},d,e),h-=d)}}a=Qt;break}if(!a)return Iae(r,t);for(var p=[],u=0;u<e.length;u++){var g=new a;g.setShape(e[u]),Lae(r,g),p.push(g)}return p}function Rae(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var a=[],i=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],b=o[v++];if(h<=0){c.push(g,y,m,_,S,b);continue}for(var x=Math.min(h,f-1)+1,w=1;w<=x;w++){var T=w/x;Aa(d,g,m,S,T,a),Aa(p,y,_,b,T,i),d=a[3],p=i[3],c.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}h-=x-1}return o===r?[c,t]:[r,c]}function WA(r,t){for(var e=r.length,n=r[e-2],a=r[e-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function kae(r,t){for(var e,n,a,i=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,c=void 0;l?u?(e=Rae(l,u),f=e[0],c=e[1],n=f,a=c):(c=WA(a||l,l),f=l):(f=WA(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function UA(r){for(var t=0,e=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],c=s*f-u*l;t+=c,e+=(s+u)*c,n+=(l+f)*c}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function Oae(r,t,e,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,h=0;h<s;h+=2){var v=h===0?f:(f+h-2)%l+2,d=r[v]-e[0],p=r[v+1]-e[1],g=t[h]-n[0],y=t[h+1]-n[1],m=g-d,_=y-p;c+=m*m+_*_}c<i&&(i=c,o=u)}return o}function Nae(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function Bae(r,t,e,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=UA(s),f=UA(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],h=[],v=0,d=1/0,p=[],g=s.length;i&&(s=Nae(s));for(var y=Oae(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}if(c[0]=s[y]-u[0],c[1]=s[y+1]-u[1],e>0)for(var b=n/e,x=-n/2;x<=n/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var A=c[_],M=c[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*w,E=I*w+L*T;p[_]=P,p[_+1]=E;var R=P-A,N=E-M;C+=R*R+N*N}if(C<d){d=C,v=x;for(var k=0;k<p.length;k++)h[k]=p[k]}}else for(var V=0;V<g;V+=2)h[V]=l[V]-f[0],h[V+1]=l[V+1]-f[1];a.push({from:c,to:h,fromCp:u,toCp:f,rotation:-v})}return a}function sh(r){return r.__isCombineMorphing}var vR="__mOriginal_";function lh(r,t,e){var n=vR+t,a=r[n]||r[t];r[n]||(r[n]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Cl(r,t){var e=vR+t;r[e]&&(r[t]=r[e],r[e]=null)}function $A(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function dR(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=kae(ky(e),ky(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&$A(i,s),l&&$A(o,l),lh(t,"updateTransform",{replace:u}),t.transform=null;var f=Bae(i,o,10,Math.PI),c=[];lh(t,"buildPath",{replace:function(h){for(var v=t.__morphT,d=1-v,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*v,b=y.fromCp,x=y.toCp,w=Math.sin(S),T=Math.cos(S);$f(p,b,x,v);for(var C=0;C<m.length;C+=2){var A=m[C],M=m[C+1],I=_[C],L=_[C+1],P=A*d+I*v,E=M*d+L*v;c[C]=P*T-E*w+p[0],c[C+1]=P*w+E*T+p[1]}var R=c[0],N=c[1];h.moveTo(R,N);for(var C=2;C<m.length;){var I=c[C++],L=c[C++],k=c[C++],V=c[C++],H=c[C++],U=c[C++];R===I&&N===L&&k===H&&V===U?h.lineTo(H,U):h.bezierCurveTo(I,L,k,V,H,U),R=H,N=U}}}})}function f_(r,t,e){if(!r||!t)return t;var n=e.done,a=e.during;dR(r,t),t.__morphT=0;function i(){Cl(t,"buildPath"),Cl(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},re({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},e)),t}function Vae(r,t,e,n,a,i){var o=16;r=a===e?0:Math.round(32767*(r-e)/(a-e)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;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 uh(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=G(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=G(i,function(s,l){return{cp:s,z:Vae(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 pR(r){return Eae(r.path,r.count)}function Ny(){return{fromIndividuals:[],toIndividuals:[],count:0}}function zae(r,t,e){var n=[];function a(b){for(var x=0;x<b.length;x++){var w=b[x];sh(w)?a(w.childrenRef()):w instanceof we&&n.push(w)}}a(r);var i=n.length;if(!i)return Ny();var o=e.dividePath||pR,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Ny();n=uh(n),s=uh(s);for(var l=e.done,u=e.during,f=e.individualDelay,c=new In,h=0;h<i;h++){var v=n[h],d=s[h];d.parent=t,d.copyTransform(c),f||dR(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}lh(t,"addSelfToZr",{after:function(b){p(b)}}),lh(t,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Cl(t,"addSelfToZr"),Cl(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var S=f?re({delay:(e.delay||0)+f(h,y,n[h],s[h]),done:_},e):e;f_(n[h],s[h],S)}else t.__morphT=0,t.animateTo({__morphT:1},re({during:function(b){for(var x=0;x<y;x++){var w=s[x];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)Cl(r[b],"updateTransform");l&&l()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function Gae(r,t,e){var n=t.length,a=[],i=e.dividePath||pR;function o(v){for(var d=0;d<v.length;d++){var p=v[d];sh(p)?o(p.childrenRef()):p instanceof we&&a.push(p)}}if(sh(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Cm(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Ny()}a=uh(a),t=uh(t);for(var c=e.individualDelay,u=0;u<n;u++){var h=c?re({delay:(e.delay||0)+c(u,n,a[u],t[u])},e):e;f_(a[u],t[u],h)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function YA(r){return z(r[0])}function XA(r,t){for(var e=[],n=r.length,a=0;a<n;a++)e.push({one:r[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)e[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=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 Fae={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=Cm(r.path);a.setStyle("opacity",e),t.push(a)}return t},split:null};function Gp(r,t,e,n,a,i){if(!r.length||!t.length)return;var o=us("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;YA(r)&&(u=r,f=t),YA(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(sh(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?re({delay:s(_,S)},l):l;f_(T,C,A),i(T,C,T,C,A)}}else for(var M=re({dividePath:Fae[e],individualDelay:s&&function(N,k,V,H){return s(N+_,S)}},l),I=m?zae(x,w,M):Gae(w,x,M),L=I.fromIndividuals,P=I.toIndividuals,E=L.length,R=0;R<E;R++){var A=s?re({delay:s(R,E)},l):l;i(L[R],P[R],m?x[R]:y.one,m?y.one:x[R],A)}}for(var h=u?u===r:r.length>t.length,v=u?XA(f,u):XA(h?t:r,[h?r:t]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)c(v[p],h,g,d),g+=v[p].many.length}function di(r){if(!r)return[];if(z(r)){for(var t=[],e=0;e<r.length;e++)t.push(di(r[e]));return t}var n=[];return r.traverse(function(a){a instanceof we&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var gR=1e4,Hae=Ie();function Wae(r){for(var t=r.dimensions,e=0;e<t.length;e++){var n=r.getDimensionInfo(t[e]);if(n&&n.otherDims.itemGroupId===0)return t[e]}}function ZA(r){var t=[];return D(r,function(e){var n=e.data;if(!(n.count()>gR))for(var a=n.getIndices(),i=Wae(n),o=0;o<a.length;o++)t.push({dataGroupId:e.dataGroupId,data:n,dim:e.dim||i,divide:e.divide,dataIndex:o})}),t}function Fp(r,t,e){r.traverse(function(n){n instanceof we&&Ze(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function Hp(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function wo(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function Uae(r,t,e){var n=us("update",e,t);n&&r.traverse(function(a){if(a instanceof Dr){var i=IF(a);i&&a.animateFrom({style:i},n)}})}function $ae(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var a=r[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function yR(r,t,e){var n=ZA(r),a=ZA(t);function i(y,m,_,S,b){(_||y)&&m.animateFrom({style:_&&_!==y?B(B({},_.style),y.style):y.style},b)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(n),l=o(a),u=!1;function f(y,m){return function(_){var S=_.data,b=_.dataIndex;if(m)return S.getId(b);var x=_.dataGroupId,w=y?s||l:l||s,T=w&&S.getDimensionInfo(w),C=T&&T.ordinalMeta;if(T){var A=S.get(T.name,b);return C&&C.categories[A]||A+""}var M=S.getRawDataItem(b);return M&&M.groupId?M.groupId+"":x||S.getId(b)}}var c=$ae(n,a),h={};if(!c)for(var v=0;v<a.length;v++){var d=a[v],p=d.data.getItemGraphicEl(d.dataIndex);p&&(h[p.id]=!0)}function g(y,m){var _=n[m],S=a[y],b=S.data.hostModel,x=_.data.getItemGraphicEl(_.dataIndex),w=S.data.getItemGraphicEl(S.dataIndex);if(x===w){w&&Uae(w,S.dataIndex,b);return}x&&h[x.id]||w&&(wo(w),x?(wo(x),Hp(x),u=!0,Gp(di(x),di(w),S.divide,b,y,i)):Fp(w,b,y))}new Fn(n,a,f(!0,c),f(!1,c),null,"multiple").update(g).updateManyToOne(function(y,m){var _=a[y],S=_.data,b=S.hostModel,x=S.getItemGraphicEl(_.dataIndex),w=ze(G(m,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==x&&!h[T.id]});x&&(wo(x),w.length?(D(w,function(T){wo(T),Hp(T)}),u=!0,Gp(di(w),di(x),_.divide,b,y,i)):Fp(x,b,_.dataIndex))}).updateOneToMany(function(y,m){var _=n[m],S=_.data.getItemGraphicEl(_.dataIndex);if(!(S&&h[S.id])){var b=ze(G(y,function(w){return a[w].data.getItemGraphicEl(a[w].dataIndex)}),function(w){return w&&w!==S}),x=a[y[0]].data.hostModel;b.length&&(D(b,function(w){return wo(w)}),S?(wo(S),Hp(S),u=!0,Gp(di(S),di(b),_.divide,x,y[0],i)):D(b,function(w){return Fp(w,x,y[0])}))}}).updateManyToMany(function(y,m){new Fn(m,y,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,S){g(y[_],m[S])}).execute()}).execute(),u&&D(t,function(y){var m=y.data,_=m.hostModel,S=_&&e.getViewOfSeriesModel(_),b=us("update",_,0);S&&_.isAnimationEnabled()&&b&&b.duration>0&&S.group.traverse(function(x){x instanceof we&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function qA(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function jA(r){return z(r)?r.sort().join(","):r}function sa(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Yae(r,t){var e=j(),n=j(),a=j();return D(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=qA(i),f=jA(u);n.set(f,{dataGroupId:s,data:l}),z(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=qA(i),u=jA(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:sa(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:sa(s),data:s}]});else if(z(l)){var c=[];D(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:sa(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:sa(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:sa(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:sa(s)})}}}}),e}function KA(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function Xae(r,t,e,n){var a=[],i=[];D(Ge(r.from),function(o){var s=KA(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:sa(t.oldData[s]),dim:o.dimension})}),D(Ge(r.to),function(o){var s=KA(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:sa(l),dim:o.dimension})}}),a.length>0&&i.length>0&&yR(a,i,n)}function Zae(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){D(Ge(n.seriesTransition),function(a){D(Ge(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][nc]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var a=Hae(e);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)D(Ge(i),function(v){Xae(v,a,n,e)});else{var o=Yae(a,n);D(o.keys(),function(v){var d=o.get(v);yR(d.oldSeries,d.newSeries,e)})}D(n.updatedSeries,function(v){v[nc]&&(v[nc]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<gR&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(h))}})}be([c9]);be([a9]);be([O9,J9,hU,JU,g$,fY,FY,MX,tZ,fZ,xZ,Aq,Qq,cj,Pj,Vj,rK,hK,AK,RK,YK,PQ]);be(eJ);be(kJ);be(hP);be(KJ);be(QP);be(aee);be(vee);be(dte);be(Bte);be(Lu);be(nre);be(ore);be(xre);be(Pre);be(zre);be(Xre);be(sne);be(Ine);be(nR);be(aR);be(rae);be(uR);be(fR);be(sae);be(Sae);be(wae);be(Zae);be(T7);const qae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAC1JJREFUWEeNVwtQU1caPufePG7eIRREBAyQsJiYoIjWuq3V1lV8DDutlh2X1lq7K93KKyCUrg3gLhWKslR2xaKoI4q17qy221HXukrdWnxMkIQsCUVAo/IIYNXwyuPee7YnQxja2rWZyeQ+zjnf93//MxD8zI/FYhFxCWIRAdg5ABBKANhgFkEeAMCHAPsQAKIfItSFEGoXymSt0dHR7p9zNHzSIrvdroQ0nYYAWgwANEECXUc+1s4RuftVqqeH8X6bzSZiWXYaidAMCEA8QigKAWAGHM5FrVb77f/D+EkCd5uaBCNS8R8AgskIgE8QQXyi1WpHnkQYv8dqcRCaCwD7NIDAPO5j/5OUlOR73N7HEui0WiN9EFRBAG0kn79LrVa78Obq6mr+8PCwgmEYhc/nk0MIpSRJikmS5BAE4ZNKpY9YlrVnZWXdw+tNJpNQSJJLAUQKrtv7mXrhQv85Uz8/ImCz2WYTLFPNIvBXjU53Ci/evHkzl8/nyymKko6NjVEsy1IQQgHDMAKCIAQsy/q/BEEIg4KCghUKhUcgEJzNzMy04v1tZrMWQnYe6WPP/CIpaegnCdy0WCIYkjjCMGypNiHhAl64ceNGSiKRSBiG8YPSNO0HxeD4HgMDACgAgBD/4nv8XKFQhIaHh9tZlj2Qm5s7bm9pUbIAzAc83tmprpxUwO9zmaQBsODoLJ3uJAbPzMzk0zQtJEkSA1IIISFCiMIEAgpgQISQ/x4TwNccDkeMvxAhYURU1JhAINiWlZXlsppMsYDDiZ3d0XEBpqYyGGOSgN1q3Yogkmlm6434RUlJCWdsbEyQlpamGR8flx0+fNgRAA1YHvjFoFh+iUQSxCFJMcMyVGx0zHQEgKSvt5cWSSQ9PB4vEythsZgSOQzh1iYm2iYJWK3WSA4AB30Iper1+geYmMFgoObNmxe8fv36awghT0ZGRsoPpQ8QEFGUFJCkaHR0lEQI8TGhysrKjRwOh7dn9+6Wu319YzExMabc3NxtJpOJS3HAs24aXEtKShrzK2C3WosRAN0ane7IlKATlJaW5kql0uI7d+5sLysr+8xoNGY6HI7b9fX1N7D0JAmEPJ5A4vF4uD6fj1q1alVCZGRkZG1t7Y1169YlJicnL7p+5Upfw8fHOrg8vlCpVBoyMzO/xvEAIOTNmjOnA+Kc5ZPwn14WrMPWl5SUENiXg4ODgurqamy9tKCgYEVaWtrziYmJVX19faeLi4sP6PX6qJUrV66haRqePHnyWnd3tzsnJ+fXWq123vHjx89fvHix/8MPP3xlyOnkllVUXHa73Ry1Wu3ctm3b2sbGRk6IXD7XdvPmDdjeZklmWeIFjU5XMOF7Xm9vr2D58uXT165da3e5XJ8VFhb++YMPPtgpFouf27lz56aHDx8SRUVFf6EoSoH3uN3uR++9916tSCSSlJSUpHd1dd0tKytrys7OfkbE5ymra/Y2uVwurkKhCFIqleuysrIsbc3NKobLvQ/tra2FiAPaNRr9pzjwRkZG/D5MTU3VL1iw4ILT6dy/ffv2g1VVVQ04A/Ly8rLXrFmTtHLlynem5vORI0c+uXTpUn9lZeXrWJWCgoLzqamv6NXR0XH1xz423759G+FATUhIOJaTk/Onb0ymp8Y5HD60Wa37EUFUabVaW21trdBut/Nw9KekpESvXr3668HBwePFxcU1FRUVfxNQlPqdwsL0mTNnhmVkZJRDCLG7AEKI3bFjx0GHw0Hv2bNnU39//6Pi4uKmxc8snLt+w+tRRUVFrU6nE68VxMbGdhQVFa1qamoSUBQVCtutradISvA6Lrc1NTVBdrud4/F4BBKJRFhRUXHd6/X2GAyGLTk5Oa/GxcW90dzcXL9v377Lu3btMkokkghM4MGDB4P5+fnHU1NTE1esWPHs2bNnradPfz64edObi9WzNGDLli1tgUIWERFBv//++7EIIdJsvhqJXXA2XqdbBSFEVVVV07u6uqDX6/VXu7KysnK5XL76zJkzec3NzQN5eXnlPT09befOnWvKyMgo6ezstCCEoFqt1peWlh5bsWKFXqVSzTQajV/Nn6Of9+obb05rbm6+X1NT04+tx64NDw8XlZeXyzBx6/XrkdButXweP1ufMkFA2dnZiXw+n5/AsmXL4l9++eX6keHhW/kFBX8MVL3vguglnU6X3NDQcIRhGN6GDRt+09TUZDlw4MB/McjMsDB1ekaGJjQsjDAajR09PT3+zJpCAJdtYDOZpkObtfUIweW9HR8fP7xv3744s9nMYnBc83G9f+utt14iSVJaU1PzbxyE+JDdu3dvhxDyDAZDDS48VVVVv/f5fGxeXt6/guXyCC5JSp9+9lnR8PAw8cUXX4wGwPHeyMjIkR07dkQghIj269eDoM1qqeAColat03XV1tbGWywWGGg4BEGIcHcbGBhgCILwgy9evFiblpaW2dLScqWmpubyBMnnFixYkHCors5653YX73ZP/6TkWPoJ+XHDEsTExFwrKSl5AdeC6VyuALa1mtMhRN0a3dzzDQ0N6qtXrwo9Ho+/4YSFhIQNDQ0xHprmBZpNfn7+epVKtWhwcPDu8PDwOMuypFgslpAQhn7V2Hj/9Pnz5kBHxG0bNzAIoZ88PkOn0+3cunXrtra2Nt7AwACBg/AZFqL5Wl1C9alTp+Q2m22uw+Hw4cUzI8KjHPd6RwItl6IoSWVl5XYul4utmvzcu+MAD+9/C9QaDZ2VlXXV6/X6a8mE9X4S2A1yuZyKjo5OMhgMN241NlLKwUEf9LdhkahcPDpaGLlo0fhHH3304o0bN1g8fIQEy8Pu9TpHAwRSUlLmr1mz5rVLly411tfXWzHJqOnT9D6aIX75/BJRcnKypq6uruPy5ctjAYsniPgVUKvVzUVFRQtx5nR2dvLUarXH34zarOZXASLua/X6s0ePHo3o7u5eNDo6yuFzuUG9/f1j2P944DAajZtmzJgRbzQa64ZdLkHEtJA5fUNDfQ8fDY8HBwfLKioqltjt9kcVFRV4JPOnXSAA5XI5X6VS/So7O/sCOnGC/Pt3WZCamsr4CVit1mkEYt6WjoyVYxX279+/qqOj46lQhSL6m66uPmwpPmzv3r3bnU7n/cN1de0IsXxHT6+DZhj+xEQkePfdd+dERUXJ0tPTO6e4AA8oVFxc3MHCwsLN2Povv/ySXLp0Kf29gcTW0rIaEgQ1KyHhHydOnOANDQ1tHH30QAkBkI2MuWkehwxWqeNm373reNh1y3Fr3OOBAWLYWhxwoaGhMrlcLu7o6MDl2U+aJElKqVSaQ0JClm3ZsmUEpx+EkA0E0OREhAcFIZf4HWLhFe3cueb6+nrRyMhIelfXTSEBSdm4ewy43V4UODhg4dS5cKrV+BoHa1RUVKtEIlmdm5v7LbbebzWE6EcE8IPW1tYggmF+C3nsOa12XuehQ4cot9v9Wm9v7+ze3t7RgMUBoACZqXkeyHuZTCYODw8/TpJkdn5+/ii2HPetqeDfc0GAkT8eGN9qhmab9ElJ7fj5wYMHE10u12tOpxPXBTdN0/wfkPFHOW63MplMqlAorDKZrDQ7O7txolv6u+ZU6R+rQODhzatXpW6K+yJExABfLDbhdMHvcKVkWXa5y+XSejyeGJqmQxFCXAihm8vl3hUKhS0EQXxqMBjME8D+gFuyZAn7OPDHKhAggUtlaFCQjgXMDIIB7YCi7mi1Wu/UAvRT19jXNpuNy+PxoEqlwkVtMuh+uOeJf07xzEjQdCwgWAVLgCGOBw0BkWhkYGDAHUgl7N/m5mbS6/VyFCzLwSBMUJBHo9Fg8MmAexzhJxKYqohCoVBAr1eMJ1qcgyzLshD/PefxvJTP50Zut+fnAgfO/R9kYtoc3bH/YAAAAABJRU5ErkJggg==",jae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAACddJREFUWEeNVwtwVNUZPufcu+9kd7MYhCULm2QXQjabCKwSU0dBq8OI1Dp1Mh0lNa0WqUwSkgkUh0JjRx1Uapi0kxKoOAo4kqo8OpVpOwLjDGmIm7Cba3ZDXugSUkgiyr6yu3fvOe1/JzezQEDvzJ37Pt/3f//3/+dcjH7g5vf7DSpCKgii9yBE7AjROZRhNUJIZIh+hxC5ghkbZoz1602m3vz8/MQPGRp/30vBYNCO0+lnGWIPIoS9mLAuJtIgb0hccThWRuD7QCBgoJTezTG2ACNUxBhbyBDyIZ4/5XK5rt0J47YELnV06KLGrN8ghtcwhI4wQo64XK7o9xGG56AWz9gyhOhKhJFvSqSfezwecbZvZyUwJAg2EaNmjHCA02h2O53OMHzc0tKiiUQiFkmSLKIomjHGRo7jsjiO4wkhotFovE4pDdbW1o7C+16vV6/nuNUIM4sqkTruLC+Xx8ncbiEQCARKCJVaKEN/Kna7j8LLGzZsUGk0GrNWqzXG43EtpVSLMdZJkqQjhOgopfJOCNHn5OTMsVgsSZ1Od7KmpkaA7/t8PhfGdAUn0k+XeDyTtyUw6PfnSRw5KEn0VVdZ2WfwYnV1tTY7OztbkiQZNJ1Oy6AADtcAjBDSIoT0cIRruG+xWOZardYgpfSdhoaGqeD583aK0L1IrT6ZmcoZBeScm7IPI4oOLXW7PwHwmpoaTTqd1nMcB4BaxpieMaYFAooCAMgYk6+BAJzzPJ8FO2ZMn7dwYVyn022vra0NC15vIeL5wpKBgc9wZaUEGDMEgoLQyDAzFZeU7oAHTU1NfDwe14XDYR0QyJRdiVw5Aui8efPmWMzG3PGJb1BaSmsIwrrnqp97lCOc7tiJE8fUanUNKOH3e5fzEkm4li8PzBAQBMHGI3RAZKyytLT0WyBWX18PskJUumQyKRO4WXog8OSTT953f3n5U0ajcREmBKXT6aQgCILRaDQ7HA5Hr+/8tf3vHPAWFBR4Gxoatnu9XpWWRw8k0uicx+OJywoEBeH3DKGRYrf7YIbp5FwD+LTRbiGwadOmp0pKSn5OMMYI31pQwWAwdOi994aj8RhRqTV6u91eX1NTcxb8gDBWL73nngEMNavh8IkURU9D9E1NTQRyOTExIQOnUin5CLlXJIe8P/HEE8vXrVv3O8C+3dbV1TX4j+PHvx2/dm0qkUjwTqfz6vbt2392+vRpPtdsXhYYHOzB/X3+NZSSh4vd7q3TuVePjY2BkWRgURRnCChlhzE2PP/882s9Hs/6OzWmZDIpNr/5xuCFkYtQelAZOXa7/ena2lp/X3e3Q1KpvsHB3t5tjEf9xcWlx8B40WhUA6aampqSna2UHSgABFQqlYExSbtggW3uyy+//AYhhL8diVQyiZp3vzXYPzQ8AWNCnygrK/tg8+bNf7jg9d41xfMaHBCE/YyQZpfLFWhra9MHg0E1uB+cDwooBIAMDEBFUSdSqtmxY8dGm822UhTFhEqlAsPesl3o+xL9+S97z0VjMQIEQIXCwsKBnTt3Pt7R0aHTarVzcb/Qe5TT6p6Ddtva2poTDAZ5MB4QAFCIHOp/3bp1K2w2W9Hx48e9oVAovXnz5spIJCKeOnXqQm1t7S8NBoMpk0EsGkXnOs5GD314RJAkSW5SMF5eXl76tddeK2SMcT5fpw1ScLLI7X4cY8yam5vnDw8PY8V4Stk1NjauLyws/DUYLpFITLa2trYEg8H4tCm1drt93tatW9er1WoNkGCMoZ5znajjC29fd3f3lFLOoILVajXs2rVLJit0ddlwUPD/vaik9CfTBOxDQ0NMMR7kvKqq6oEfVVTsIhw3Y/epqalrLS0tfx0cHIQ5X1tVVVXx0EMPPUAppYQQAtJ3dn0xcubzz+XcTxOQu+Q0AVAEBbze+Tgg9B4kKvVLRUVFkX379i32+XwwiJx7IPD223/cZzBkLb653OLx+Hd79uz5YGRkJLlx48bVer3edPDgwS9XPfjgis6Os9e/Gr0M6wC5TSstGs5tNlv09ddfz2OMkf6urhwcEPxvqhBpc7rdw21tbUV+vx8rxlu0aNHcLY2Nn3D87EaPxWLh3bt3HwuFQiIMbjEZrdkG3fyvLl+5kgEuKwBegmNBQcG5pqamh6EXzFepdLiv1/cixmyk2L3s34cPH3Z2dnbqk8mk3PXK77tv6S+qq1vv1GwikUjklVde+RRJ4hxTttH21eWxUWVGhPYNBsYYy/KDZ9xu91uNjY3b+/r61OPj4wRMeD/F7F6Xu6zl6NGj5kAgsOzrr78W4WVH/iJ7fePWZo7jDHdqOP86+Wmos6MjcnH0MixElIgzcy9Xgdls1ubn53vq6+t7Lp4+rbVPTIhYnoYNhl1Zsdg2W0XF1N69ex/p6emhsPjInWOe92xV9U/z8/PXzEYA3A6Gaz/S3nNxdPS/AJ45Q06X8YwHnE5n986dO8sZY3hoaEjtdDqTsrP7BN96xMg3rtLSk4cOHcobGRmpiMVifJZeP+dXL7zwjNVqLb+ZQCwSQQGhl10YGhZOnTlzUXF7hutvMKDZbNY4HI5H6+rqPmPt7dzf/l8FlZWVkkxAEIS7CZNeMkbju0CF/fv3Pz4wMHDXSy9u2GovdLhCoZAvHA6HlyxZshIxprk4NIjGLo9ODocufXn2bAe4XTYYgCv5zyTC87x28eLFB7Zt27YBoj9z5gy3evXq9A0LksD582sxIdqlZWUft7e3qycnJ6vXPPbob5OJBP/xRx+dIBjnaNR8LsOc+vKVq5e+u36dZkgsrxeU/CtkgATHcdCofLm5uT/etGlTFMoPY0wVRWeaCywU9CryAqP4P65ly3zvv/++IRqNvjg8PKgnmDNNJeIokUgxGFTZM3Ou1HqmCVUqlW7hwoW92dnZaxsaGq5B9HLUGLNbCMCN3t7eHCJJz2A1/afLtWLo3Xff1SYSiaqxsbGSsbGxmBJxZr4zzm9QwGQyZVmt1g85jqvbsmVLDCKHLp0JfkMKFEayHyRxrZSmHaUeTz/cP3DgwPJwOFx19erVeZOTk4l0Oq25iYxc5zBbmkwmo8ViEUwm06t1dXWnp+cGAIfIZ6SfVQHl5mBnpzGhVT2CGRnXZGV5oVzgGXRKSulj4XDYlUwmC9Lp9FzGmApjDFPyJb1ef54Qcqy+vt43DSwbbtWqVeCXW8BnVUAhAa1ybk6OmyJpAZFQP9JqQy6XK3WnhqQ8g1wHAgGVWq3GDocDmtqs4HckoAwGa0aSThciQi2UoEk+ySaRwRAdHx9PKKUE+e3u7uZSqRRvoVSeOKScnGRxcTGAzxhuNvLf+3ecqYjFYrHgVCoLVrQYwqKUYvg9V6tTWlFMsEQi+UOBlXH/B9bQSBz2r+S2AAAAAElFTkSuQmCC",Kae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAACiFJREFUWEeNV2lsXFcV/s7b75sZz4zteI/j2DOJ4yxtNiVx0ippS0kTVESXUEpLqUQbUVTaShEqqhChKqgCqoqCQAFKUReUpIS0IJIWSB1abGdxlmZxVsd7HO+xPfu89w68Z8d10pT0/piZ9+4993zf2YfwedfH7PMlUQsHNzOhghzkMUEjIMvAZQCXCGhxgNPJNI5hDaU+z9V0o0NGI1dIwNeJcSszmgAcsBWc8jEuDS3DmCs/bS98oxoKVaDUIVRLjHIbOKoSPhitpaH/p+OzATSwEIxvE7AWhG2+NLb1r6HYjQC7+4Xvsy8RxELHxjIQjsY1fIgllL2e7HUBiAM8nWy8DEazIeHnQ8tp1BWOvHJOv2yP5DppJzfr2CGSkEMS+yVJVkhWs4owRlQ5e6r7sZu6PGVNbJpprCEgV5fx7pV7pgL5FAB/Pc+zJbwCxi+TtbTTO/x4k+rPS4SyZjaHM1mDs2QwSwLsCBkkmFkwSIDY1AOBPD3kTyt+dXfvo3OOu+L+//BclrBYSmPX2Boa+EwAYh+XwcEbEvBCvJb2eAc31xn+dDJgS7LhOLJwHEuAZcGwhQcCjpCJDHbYBJPhApGYhRHKKTALQ6eUsP/Vrg3Tk24sKYylIo3dU135iQUaWJjAWxLhzdgK+oun/MldetDnmFlDEw4kw8nYJnvKHAGWBLsWsEkwWIBdxY7BkIQkS35SFD8xmb7SaQk7rD039FB0VK/nKgWoindjDzaQ7aqYBOBr4E1MCCZW0A8mmCv5QhV5xfn5ublGccuZzvjwYJKKivMKfT4lt7tjKJlOZBS2WeiGFsjN8xeOpBzNsmxN19WAz9RDGYcNO+OoMI1uY1rgSdcSZiMvkrJIxW6l5kkAXtBZ+INqY8PILTQMZip7udEoLg7k37R07nEQglbWPr5je/3GDV+79T0i5GQyVvvW1/Z832V83zdW/0g31DLYTnLb7/e+8uUHVzzsD4oSK2tn6j44e2CwcyAhKkua+h+LPocmVv0prIoZ2I8llPAsYDbyD8nBhfhKesN9XrylSW3t6RM1S26OVs4scnPfXc7o5cTbOSHzq+4DM6e3vv6vjZKqBe5/4JaXJEnS3PfdHX2HSssLFl2xbsNHp/cPXhxOWSSZIlr+TN9DpfVuPKgStLFldJbwPvtEAH/VbNznsd/MUgkOGWPaZVFTWRWdOau88dr85QkAO9/+8LuwMtpXHrjjJUkiD8C168Tx1hPtJzoGM4m04qup7B36zux7UceKqWFhohuHydfAax3gtmQtfc8Vrtm8XetJhkVGKCIyqzxSOXPGR9e72GFO79qx52mAxPp71rxIExa4NsXaO3taT/z7ZCczhFYYCpuzy+7re6DsY72BI4aNQRfAswycTtTSO6s31ymnfBk9EdeElc2I8soZkUhV5AOAYdt2VzaTbVN1rUaWpFx2ONu0/+Mfs20bS2sXbSIixbLsRHx0rNcwRa4u9CBJhLYLbefOHjzfD4Ygks3Aypo/DTxY+nygjvMtHTr56/l3kPFybDk1l2xpMhM9Y1omkxaOo4jiipKqyMzoP1xWbW2tT7W3dXTMrqleW1RQuNFjygATT6ZSW0vb3vYzba3habmlC5bedKceIOzbtb9pdGiMCRAuCHP+zLPDT8xehwYWBqOA/A28U5PwiFsmy399LNzR2aUYmirYtkRRYXnljPLoLjdSs7bVmc1mu3RNr5YkKXw9t1iWlUjE4v2GMHJNvx7QfRIa/t5wJDmWkAgwXADG7DJr5Jl5VdjOsjEd010X7I6vwDoQcf6W5uJETxclLEtojizy88oqy6dH3nUpuoFH7sfEsm1rpKP13FY4rM2omnW/JCv+qaDyihUM9dpo3r/veCqekMDjxUqPlPhGNy0Iume99Dcb+G+JFbjbBVD0myMVl7uG2C23bpkNh4tmlpVEdzhEkHiKdhBs2xrt7ji73bZtrXzmnHtkWZ4EEC6QkRhzkE4C547sO51JJmXwhAWipb6RTfNNL/0/5GISjfyGz8YTA6torPS3p2YNXGh32K31ii0CZlFFcXH1No++B8B1hutz8l6Nr4lf3jYhGJYgK8BQv+Pttp/cfz6b8gB4MWDMKY+NPF1TBmYpcABh1wU/VRhbRlZSS8lrZ6ovtnSQ6ow3moBvWkVefvWb41X7xisQlBDIIVzs/ETg4rmD7VYqqTCzQS6AxZH9Ixsjt7m1IF+FcF2wkSRciC+nf5a91RLtPd1uwsoabqMxp82YG5YqfjVJd4oXGE4mleg9wI4jCV/x0mCuoobyJHSct6Z0GKD/woFu20opXhpKkhB3LPrZ8L35z+Eka+iDRKKeV8jA0thKeqViZ2vo8oXBhbG+4azb6wPFlUv0ZMlPPO7j1p+8PJ3o2RsbbWkmZhGZN295TrhgTtu5a4YeAka6D/ZyNqUxk6GU5BpiUXTJwN2hw6hjA/3IkpuPPsKLccazqKVk6R/P3N7b3OpIhpZjBksWSKPTn5/0NbnpMI4inWx7z8p2dc5fGlmQSfuLu9p85VejHD+XHDg45Fgp1fP/iupDI49WLHebXWQ3tPPrKO01I189P8SMwcQq2l36ZldZrO9irZW0FJnK77RHQ49cb24zfX2NcxYK/4UTXT0DfXpY1iqXTjHQpLGs+Nk4p/tkpSRPV5ZFvzByV2iPWwM8UhvIHgewjwvZwRMJ4EXXCmVvtawbbIlFNDn6i8TA1RGoaoTyqAJT9B0+dfjMGTtj66BwEcs1tZ8VprJzzBGrIq8O31/4uMt+9V7Ie9eQdcWznpxZz+slGUZsOe2o2X5SG0jo35TGtJWAEeWUlTF8asg0lRxNifW0Nff2JhODo3Dc4sKCmITDoWkOtBwCNGLWwNAAVklmTSwuPKRVGHf0rymIuekHovEcnToReYNCFt9iB43xlXS08PVLPonHNsY7+0xDU4PpeArJ0SSzQ0ICC7e7wYE7iHoArqTZlXx39yVDFfrC6DEuCq4fXRscctmPa/2kpl7l3uBHHM7KeNAG3k/X0vmK11qNtMoPx7sH5qV6huMMCIkh2GVOJMibBd1nr8h4ee4BAIRSnOdXZ0/fqofxVO8Xi+Iec6+KTS3oV2XsuEkm4mG9DDSM1dJp913xju5F1ljq4fSly0WpS4MpsKO77L0O50AwXOUkIMFUCvNylJK842ph6IWBL4XrxoslS5v/9715iuk/7YIpEZS7j3OSDm5XCH1jw2jCOkq72yV/vlht27gzG0vMdVKZSthOATOpUKQU6WqnEg4eIUN5p399+OiEYi/gVq+Gcz3lV8fAtSHsjk065gMoVYDTo0F0YC5lblyQPcZU0ww10w46fxeyU4PuWvkb/jnF+L/iKmLkwsEAqxgw44j1AylMpJLn30OQyzJQUg4UV8lAGGnUeMqnttFP4b8xgCsidaz4NeRaDvyqDI0JRDYciZHNqMgoClJjKaTxORVfufa/I9G0voMjwxMAAAAASUVORK5CYII=",Qae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAACfVJREFUWEeNV2tsHNUV/s6dx86dXXu9thM/4ySOnTekeccOQQlQCglFlaCUUlBBKqCmooCEEBJCjSoqIVoJiUqtUlSoCrQQQaEFESEEQRQ7IZgkJBAnIbbzsOPX+r3vmbmnvWM7uMUB9s/uau695zvfOd937hC+7edTjkazaIbCd5iwgBTKmGAT4DEwCqCPgA4FnMjmcRTbKPdtjqZvWuTs5wUC+AkxrmRGG4CDgYn2KKNveCMm9P457yM6bqPCAmoUYalg1AXAEYvw3ngzDX9djEsDaGUpGT8n4DoQXo7m8fLgNkp9E2D9vOJtjmbiWK0CbAThSNrGB1hH3mx7ZwUgD/I8CvAUGMcdgd8Nb6Jxvbnh6S8io8FYqcqrUk8FJSRQTIJjQhgmGZZnSmfMMrz2nrtXdYfB2th189hGQGnEwD+nz5kJ5CsAYi28MhB4GozfZ5vptXDxPW1WrCxT4rleMRc8hz1ymIUEK2mAJDNLBkkQu5GiorJISSxvxqy9/XctO6a3xz7kFSywVuTx1sQ2Sl4SgDzAtVB4XgCPp5vp3XDhrn1OLJ8tCoThKGVIpXwJNiQjkCEIKGkQOazYBZOjgQhm6ZQUz3UrStrNROzP3bfMy+peMhnrZR57Z5bySwZaWbrAi4LwQqqJ/hEGv++tSDyqXM+xpYJwVCFwOQymJFhI1gwEJBkswTqwchhCCkPEyDRjxORGa+ZkgoT96PDtjeORFl5kAovSPXgXt1CgQ1wEEG3lh5gQzzTRY1OZm+XSkslsWsIzJajgWMoIs960qXFDWWXxepNFzFfKDAo+9/SMnG8/1TdoGEaMFRxiOBHXLhHCcOE6Pc6covs0E+5+XiM85FJX0vGLAMKm8/GsFeCWsS00AmaqfWq/Mz4+Lj3PkirwJIvJzK/9ftOdFeXFOy9CZ0CnwgycOdn79oH3j33CiqWAIZlYltVXzZ/oHSnI+uq2wbsbH0UbW7Ecrkg5+AjrKBMy4O7nX5FCZ3ozPa//r93dZnX1Dsh8wZaB7UmVMSULOHV1FfM3XbHi70RwJhuJEDBD6F8EsOLgnTcOPjMyNO4LNdmcidryykIqb/gkXNlY9+DA7TUtuh8sAXtiI50ivM1RWYR/2QFuDrPfxaIanzgT9qj0CwWpfFOyEpLJd66+qumB4njsxzpd1hFn1nCqtft6kkc/eu/Ifs0CiGT14ur5Q2cHs4VM3owur+8f/sWSm7CPTdfG6kwPDlG0la9TwFXZZnpYn7F81x67N5uQBWnKwC9IFei6B7Ksoqxy4/pVr5Buwqlgs5mIUsrf92bLS/lc3oCCbFi7qLHj444hZki7oiThLqm9eeDW2k8jrdzgBBjSAB5h4ESmmV7fumuf2R4tRDJpW/peQc6U3boNq28tKY3fP5uGNaCZYLpOnTnYcbzznC0jxXWLq+pOH+oaBkMSGW7R5uV/S95W8+uifVzuRxChWAs/AwNPpTbR8erdbW6md8IuFPJSKVMq9sOu13LbsLHpYRl1bwCm85/dlAmE5OBgZ/vHR48t2dCw+MzRc2O5dMEgQGoQ7mULT43sXLIdrSwdxlyKtfJrtsBPtU3W/eFo4tz5btOxLcmBHzIATXmg3PpFS7fMnVP1GBGMEINOeVYszJ3t7fvzmVSuur6i9kRbxxAUXAIcDcBZUuuPPbhyEfaw4czDPF2CvekmbAcRl+8+XpXp7aaM70tbaz7UfSBBhitMI1bkxCrjxaVLhWHEWSmLlbKZ2WJmG8yW73uUGh5LZdMTas3WFZd9+mF7r18IbGKS4EmzijRUR8cfujyu+Qvl77byG5km3KgBVP7x8ILR7mHWdjtNPQySwnYSpU5pve1EF4LhQCnL93LeaLK/1/cLRry0utG27FIGWypQZm19tORCZ994snc0CGvPIf2TDDTWRMceuswN5f8BV5Hcz89HA+xMXkETNX9qX5zsPKtYe70ZhPKzorK0tmzlg7bpbJkUO0+JHggCb6y768iekrKay+OJqo26LvFSAcMEzp0aGOzr+uy8Doop+kMAy+pSYw8srwWzKDqIhC7BkyZj99hm6qh+7uTSCx3nyFJTg4YRnVO5YkfMKv3l7C0H5DJjp/t7Pvtw3qKNP4onbFlUTLhwPrR5JLtPnMuM9hc09cys7Vk6axs+Gru34SrtBeUWpC7BvSTQmd5E79S+2NHYf+KsC99zdOdbZeWV5WLJbwSZ9ZcCAAYn+469WbuwqqGipnLZ2Q7/4lK/kMknz7b1TdNPQkh5zZrfjtxU/ig+ZxsDECRbuMkA1qc209MLXusqGe0cWp0aGPH0rE9Ur/yBmS3ZeSnBTcsgUZ4fLCoaHzrbWdZAJMyZ6ycGPh/yM8OCmRyzutSRaxrXJW8sOYR97GAQHmk9RglPpBmPoJmyNX85eXX/8S4lHLu4OLr2Sc6ai/WBM83m4m8C5jeY8AtKnTzU8o5TvGyVaZVUTgKYXOXnhwu54c/zYf2bln4ydteCTXrYNeyFfXo75UMDi7bw7cwYylxBe2te6K5NDVxo9rO+aalVz/oZjsz0/GnpuzGB+qUmujt9jA4reNn2Q4ZRnDDsmoUzrZrZZ2/4QN6sLouYGxu/O3Z9ybvaA0KMt1AwCeAAV7DCzgzwhGah9sWO7SMd/eV2ZMXj6X4xbyallk2oa5hk+cxJH0GgwykfhcMfw5i/EEb5FANT8zIYVYK/YGfLimdHflhxj85+6/sw3t9GYbNctHC3hXcIA05qE726fM/ndjITudPyeLHKlm3z0lwUkVYiFodniUx/1/ECZTOBKaAMoKCESo4S0sqnBYuIhQ3AApRBKisMMWxE1jUethc41wxum5vS8gORmk7qyxmiLwoefsYK+9Ob6UjFX/uigifuTZ8fcB3biufTOWTHs8yKpABLPd30tAOx1E43LbNQ94zwuXAsGVndeJQr4zvGr4sP6+wnZzhdNPH/majxf3PCM3BbALydb6bTC57rcvIW35HuSa7M9Y6kGZBCHz416ym8C+r/k0435XjaeKRZVRazlsx7KZLA/f3fq0yHmevOnBF8tvvEdD/sMIDWiWY6oRdVvdqzxp/I3ZHvG63M9Q3lwCqisw8nnIJk6OAkIeCaFWXFZnXZMaui5PHkDYl9k4Jgseu/37tmUP/VEszotNIDXJxVuNokDEyMoA3bKa8fV79yYWkQ4FovlVmhcoV6BGouM1kwRY4i1nkzET9Mjvn64I7EkanAYcNt3Qo1W/BZGbiIQ1+bIrgMQI0JnBiP4xxWUOGSjjjzATMtPw6rcBZ0+np4M5vu//d/48spJt+KFxGjFApJtpB000gNAjlMSSms7ycwagswcwqhRpMJ5LE8DP61N5hvBjANeR+bMRulvkLMMmAzgSiAEgyvYKFgmshN5JDHtww8fex/AFDGz76G2vckAAAAAElFTkSuQmCC",Jae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAC1NJREFUWEeNV3uQVeWR7/7O8zv3ce5rXgzzgIFBBIIKPsDoEpXEvGqTGOLWZhNNLIkaoTQy8pbjDEhwRkiRSm3QmKQqu5UNsWI06KY2WCIhrlGRQSLogDAwwsDM3Jl779zneXyd+i6iYjB6/jn33Pr69K+7f92/Pgif8Lp/eFPEVNl1hHQFAWtDEClA1IHIJWAjiHSSCPqIsQPFLO7b0vSD0id5NX7cISf3SHtA4k4Q8FlA2oPIdpPv94YQ3lkRX56T9s7ojyOgefW+EM2IcDEAtCDgqx66/7cxuir9z3x8JADnlGMJK7SGAG4iho+qnv6Yk1xadfhxlzP0k7CvFecyhHkCaO+QbT//KH7Pu5DdBQE4mS2TA/C3A9BehbTlTvzejDRe8uwSo8KUBAEmCCCBqrAVYGFQmcZ08FWuZwODvfGTizccl+eXne4OmQa7noFIVij43abEiuyHQfwDgNWZTXMZsCeBsbVd0ft+KQ0Wb1usQQRs31CiATEOQpgCkCtqwIkYJxCcMYUDgmVEjTotavgqN//woxlO79kSdc8MkM311cozGyOrhj8I4jwA1cjJ3YPAvt8Z73hSHrz1F7eaGIpEIAjMAD0ugHFVY1xAwBkhJ0AODEwEZgEGpnxGBtyw+QQrGeqzk+p/OhOc4ppM9yQEuFxxC886tU7+HIj3AFTTZcJLDOBHnbGOx8+lPD3mW6aMTg9MzyMLVDKVatTSecCZghzlbxIyAyYy5KiwMFOVCFPQCtVFfD0c6djUtiK7JvNwGwC0vWW3Pvdb/EYgfbwHYG22+xECSK63O26tpu15Rz2RK3IvyPGAFM6CkhmJx+Itl1y0yIyaX0SGsTd3H1jJGFrtn5653ne9dGZ49FD6xOl+4fmKIGGophpnjIU02xyCaGKxbM1VmYcvYwqV1keWH3oPgESGhH/2VW92tUYEuOi395pRyHEPtGraJ10587pYQ6ITGda9mz7/yK5X7vYqLk6aN+t2I2RdhIpqBZ6fO33o6M6xgVNDxBgP14Va3VzFjTTHe3vanfsX0zatLpOdr5SKr8jSVDOwNtPzOBEcXB9f9kiVdK8u1gpvGlywEjdQ5S3XX/lvViy6noQYJyEyqKqtbi7/wrHdL/0CdSUqgkBTVNWqmTr5crtpwg3IFD5y5Nie9NGjAzxhNQg3YExXI6Gm6D3dzQ/82Rnb2AoMVMdeeQSd9NZooFSO+ooxfWNk6bBDDju145RZ9jQeUIU3Xzn/eiuVfJyC4NTQ/gP3uaUSNFw2uyPdd/iJwpnBDASkA5JJJMmH3IxGa2vnzPm6ounRkYMH9hDljcposRR4QrUnJ9Kbp3f9q0OOGmTDs9+0m3vxgWzPN4noa12xjptk9Iu2L9IB4jwEKjcSdqJm3tV/QiA+dmD/7bmTx7NMtiHDEChgRSdNu4SIzPzxo8eJhIFEnBC4Ho4kay+f/xUSRMWT+07k+kfOSKKaSZ6KTox/7aGJq3tlxwHBKD6Q6f4pAOztjHU85jgOe3tynnM1xz1UeXzBZ76rRaKOOzL00Ngrf/mTbD1FYyFkejh+xYK71XB4jgTtjWcPZV59YQeJQEdEzji345dee6Ni6rZ7qncgd/idAUDgkrDJGQ2/2di0Zt3K3ENJrHAd12a6XxQo7tlgL3950XZHD2n9li90roPCo9d99X+QsWmZF3Z8VVRcFVWyZCSRK264U4nY13xwoPiZ4YOF13btAkXh4UsXLFSjiYkaDUGlpObze3cdAkSOSNxuSx7pae+80TnmmF40UoNrMz3HFGRzHPsHo3dtvytcAoX7UOEECo8tvHm3qBT3l3Y//UPSWQgEmXr7ZfP1ie33fNA5ybYBBPftfc8FJ/sGmR2vMSdNn61H9PqyG3XdV586RMhMBODh5pjYMnPDpEW0XWkvDUyQGUgrdqHGQUfctv22RCHgpoEuFzrjaqqpUeQzhOUCYyoLCd/XtHk3rUPDugiA3h0j8n72omL2jNj3zC4ZbWxKclZusDQCgdDJLasMoTq8whPt8JZZG6Ly/OqRzY0SwBnFLjRIALc+c1e9UkYjoLMjF+IN9SjAUtxhoLKH1bF77S3bABl/1+V52kIi8NWX//vpSHOs3R0rlcslIkXRQsIraAqiKQkaboqFtszYYEnDVfkNdRLAQQ/8q38YWzl22zP3tVQKJY3A5wowHlz7nd8jgxoqju9hx3t3KOkjY95V31oPqtFwLv5q5O/CYG5hPHZyx99QU6OlwUymMvWzF4lQjc1f//UAAHBE4JGWRH7z9K6Jst0hF41JAM8qAlY4iY7X79x57+T8SMWoAtAYL135nZ+jxtoFacDK2V5r769/WplyzWe8upk3v+/2/SREx18fiJbfKo6fGDstmGqNf+pbl6nlMS/c91SapE5US5P6a3ebc52cBcURziUJNwHSgS6747/u+P8Vre7gmO2Js4JT+dSN/16KtN2OfuVk5ODvupXSaCCAWcVpn/+yG2udD4DsbPGJbPfISE3ptdHs0dF3AImXamc35huvbgmfenHMGtnvSgKiwnjq0sbuDakVq5fQViPZP4r4wGj3lwHxc53xZXcvecmJFrNjl7jZkpD1thprpgw03dyFhHr88JMb9fzJclVuEbgfqq117eZWJKHH9dOmqVYi2f70OwyRu0bcTk/9xgxGPtS99athJE9Gb5pJy0xMSc11Yve/tnlgM89NzHko16dAK/6x4ovPP1yzfPzOFzv+pTCYZaqqRNSIUT8SmtuWa7hqGQaVdOrwEz8zSoOV6h4gZbda0/isipKwT7C5idoTO/pI0a3TkxbNCFTLrB94apjnjwMimQDI49Pq9m5qXXsVEeGDg49yZ8L3zorRmmz3WkZwSu4B9/aubiyOFOb5vq+ruhZzM+VSunnhgkzq0v9A4ZeiI/ueT5558W09BAm7KXZJfjA3eCz+pWnFyOQWzc0UA8XUBDO0ujM7R2Jj+z2pE7L2RsIy4lOTCztjy5+Tiij9yj2xCkCqU8DUrRVXfFNmYeneFTcWhos1RsxsLQyOV+f4aM3ls9J113wdVcVu1PrKKDzfOrTrfz1S+eGpd30BkFX5oPp5r/HMH4fs/GFBsl2RuKIrZnJ63c831K9aXI2+/0FjXeu6CiLS+wtJpucOAoqsj3V0O284erpcuQV80QoqiwYVP1C5kgQj3FBmkVgfXT2hiEm7vf+xnQi+3te6eIEqikFy/I2x1NjLeYVcQ/a8JB5TFTM2JdXLreQNTu3381tpqzEKo4GDjn/eRuSQY4pMuIch/d6Jdexctn9ZyAv0O4rD45xpalRUPAzcgKq1J+KIjEuVrDqSU062GVXvXBJR3lVd5faU1OvcDn1RjvpttE37G1TYj3Fp5Vzznr+UDj1cH+jwICD7WZe97BUpGJlC8O3KaHFmOV3My2WTpKgQVLVfbsOyvhIAIJpy2JwFANxMhMKhpvhvfFSX9tR3FKTzwcFBzWlYV5KsvCCAKh8yGycHqC6BgJ7oStz/F/nffUc651DJvaWcLdVVsuUiERnVqOUSAjIbaEq5RQUtM27FzFT4AI8bnZ3x5c9Le9nzfKSkW6lSQY78D87vC3+Y5HpSvqDbGWJ/sURPywiqQI47FzMfP+eXvRkUBG0ksBYRVGRYZoY2YES01xSFPdlVu3JfNRg5bkcT4arDxGj+w87P48B5qnLWWBe50EJBcDEi7FaihQMOOsUPn7vQc9Vxxo6C5pn5PI531y0rSsZf6OzHfpyuyGyM66hdRUHQQgr2A9IxFZQ0RPI5B9Z5sp6yvofP5PSwhdzzkGsK0wApA9Fc7hzbPwr4xwI4Zygz4uesFvQxpSgUAQTVBxBMUIUYKyoMxz0Fx7WSlv2odF8IxN8Bd7EvwShfxPkAAAAASUVORK5CYII=",eie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAACypJREFUWEeNV2mQVdUR7j53Pfct920wOwwzI8oWBMG9jFFxrZi4YH5YpVRRwS0QF0YQGLgOIoEZwcKyFLdIxZQlKhoTl3ItF1RkG0QWBWGQZZj9vTdvv0unzp0aRYPR++fde+qc019/3f11P4Rf+dzbvSKky+wiQjqTgNUjeAlAVIGoRMB6EOkoEXxDjO3MpXD76pq787/mavylTVb6odEuebeBB5cC0ieI7CNynLYAwpH50Xlpcd7qeyQEil3ueN4IRBgLACMRcIuNpbeXhxf0/j8bPwvAOmYZnhFYRADXEcMnZFt90orP8Q3+0mN1PRp0lNwUhnCOB7S1yzQ/eAJvsU927qQArOTqOhec9QC0VSJlnhW9KykOz35jtlZkUowAYwQQQ9kzJWBBkJnCVHBkrqZcje16dOyyQ2L/3OMtAV1jFzPw4kVyN6yIzU/9FMT/AFiYXDGFAXsFGGtaGr7nWXFg1tpZCoTAdDQp7BLj4Hm6B8gl2eVEjBN4nDGJA4KhhbUyJaw5Mtf//fA4q20wRC3jXWRTHLn4+vLQgu4TQfwIgO85lT5BYHc0RxtfERtn/H2GjoFQCFxXd9HmHjAuK4x74HJGyAmQAwMdgRmAri6+kQHXTF5pxAPfmHH5MavSyi1KtoxCgKlSKfuGNdzKDIH4HoBPlw6fM4CHmyONTw9R3tvvGLrwTnV12yYDZNIl32th3OVMQo7inTzBgI4MOUosyGQpxCQ0AmUhRw2GGlfUz08tSq6sB4D6r83a917EG1xh43sATamWhwgg/oDZOMOn7QNL/i6d47ab5i5JfPK0ybNVQ7sOAfRivvjV7ve3P3L6lWc9CUTS9jc3NY25YMIMxdBOdV3PySUH2o/sPrBD1uUoYyygmHoXhGOzRGkuSK6czCTKPxCat+d7AAIZEn7syPZEP0YEOP3Fu/QwpLkNCm+44IyrQonw2iHaCunc28f3fruh9swJj4u19s1fPZhoqJ4WjEamim8CgM49377d1X60I1gWqC2li6XQiGhb62jr3lm0VilLps6V8rnNIjQ+A03J1qeJYPcD0bkP+Um3ZZaS3atxj+W5hjI/7ZqLXkEmnT4EINfX/1yup+9AYnTdYmGsa9c3j/FYpC5cUXbZ0J5SNtt14JPP3uUxo8IruYypcihQE76zZcTij63+5bXAQLbM+/aj1bsm7ErFA46kjVkemtNtkcWO/eeYXrAV7lKRa24gUP27KTPJ9US2K+SSkj56ZIfnenK4svwcAlDS7Yf3oCQFghXDxxOBgkSK57lS77597YHy4IhiXy7v2p5s1sV6V41Z+geLLNlNBSfuNUe04eJU641EdO3SSON1Av309dNVgCgPgMxdKPHE5DPPQkke7rmeinZJBc/T0t99e0CNRKvkQLgCyNOcVP9AcSBdClRUjyb0VPBIBQLVKxVQC5aGpQ8ne0Si6nGeCFdHr32wemGbqDgg6MPFyRYRx63NkcYnLcti39ZlOJfT3EaZs5BhJi685HMADPxQuwT9Wzb+NTR6wp/ksHmuWLdT/TszX+/4KHrmhXcM7iNAkd9eyS0c/Gx/5kiyFxA4Y2jEx1W8sLxm0ZL70g/GschVbEq2fOqhd+cyc94X09dbakBpNxxP5SpIXCkfWR2YMPXDE40TkZP8YMMs87wrFzCNN4gc8HKZwwOb3nnRvPCaOxGRDaYhgkJdkNyy+Qu3UERA5IjEzfr4/tbRzZdbBy3dDoeGYVOy9aCE7AzLvLvv9vW3B/MgcQeKnEDiMiAPnH/FnWiEbx68FIAcuzP70ctNgQuuX46yEvfX7EIq/9m/1vGzr74JVT0i1hiUgHVvPzaw79AhRmQQMh0BeHBExFs9ftmo6bReGp0/XCkY6JXM7DALLW/m+pmxrMt1DUvcUxmXyOUQqS5XJ138mpfpfcvZ8ua6QdFBTkzIL3Ig0lF4x4ATEkdiXDrt/KmhBNSlt2zeRHZJAgDOEHzxClabwdUTloUFyIU9q6oEgE7JzFYIADNev71cKqDm0qDkeuRyOVJVjpMufZmyybdhy2vPkVA6EKo3qICApCNJHJnHyacZuDHmlKmFyMQa2vbGNrDzMgFxCVEnBB6siQRWj1tmCAALMsvKBIDdNjjn/S1yX//M1+8ZWczmFQKHSyDk1uVKWc3I4pgr10Gm512l7dXnhRfCcyRRlsiZRPogI8yPsTEsUOOMmDpxQKo39B3Pf4l2XhESLVgQ4EIjY5lVY5ZWi3KHdDgiALwheTDfijV+edu7d9VleoqaD0BhHBgLsGEVozINVz+OA53vB77csN5vNjJwADCKVVNPB89RtM4dRwFA16N6pW7qFcelyUEnVl8V2vnPPZKTU4RxEn0CkUcaEpta6q2LhBbkejgXSbgCkHYuNRufu/Wz+bWljn7T9gYbjhzVygpkGgPjbnhGynR+aO568SU/BC7w9NhrrnHClb46KqlD+4b3vn+Ix4ya1IG+I+lRl4wtRk+piO9at09ycqrfpAQDEuOJSVUtyxLzF86mNVq8vQ9xcV/L7wHxsubo3L/M/twK51L9p5dSeU94Ghoeqs4n7WLnlNv+IRVSXyd2PfsUEOjZ6vOnZsrP+ONQeZpyF8QzbYfze/fsRmS8p+H635SMcrPqq8cOIriamBMQUdfjhh5rSEyxIvduW3V4FU9Xp20U45Or5N4qOt4VK4fNG7jt08bfZjtSTJalkBzSyu1UMXds/My5jhaZiOTZPLV/Y8moONVRQxWikZSpB8EhGVKZQMpIH+xOJybVETJmZA5ly9s39IJgDEkHQB49tWzritqms4kI7+94gluVtww2o0WpliZGcEzMAXe1LazK9WTPcRxHlVUlUkoW8rYWjvbWXHy5o0ZqAql9e5PxSb9VVYhWavuhszQSsq4Jsp3Oxbs3tg+Y46q0Yrcd796YkbyS5lcJItdihhY9JT6tOTLvPdERhV0xJ/oARHdymbymWPJuFCzM2Tr/8mx3bpgW0WuzHQOdfrmRx5kQE41F3DFnXZ1Rq0cdLdUDEfMlKt6/9bvK4+8cQyAxmPgZT8hEmXJJlfT4mLJnlpUvmOV7336/tqR2SRER6YeBJNl6KwGFHog0tli7LLW3ULwZHK8WZBZ2i44rcykuqUqCXE/OHM8e/S526cR0sKEOgFgkvbersvudDgbCW/ABiJoXicdkSY80JNq4Eb/EGn5HZg2t0fqgz7XQcn40EVlk6V4y2MqQXrUije/O3TE3YLvqrbnuAc4UOewVbXRLLvlVQMRFsglvfUODBnWkQcMM0f+VVZmbDYkvuRm4Skj9WlqrfAVF9gjOKQ4l8I+H0q6V5a4K9wOyp5aaczeLhpHMujcV+3LjC725zKDcCgDAxewnpmFfhn2v0RebQQDA9VggGKiJvuCgPKe1vDErjHd0dChWxZI8IA42lhNnwqEFK7m8zkV5Nrj00tLYvRvF+j37m8+gfOnmQipfVkwVckSk+V6TkGPBBup+3CU09KgR0RPBnTyqNTdH530gzoua5z151Ujks0Lyf+iuJwylJy5a6daE49GfGWJ7Lk+vCQ98IIessczBy5yCPY5ct548HI4IMjIsME05rIWUbZLEXlk6/L7tfnILue2LBf27Y32Znxo/KQPfM0GW6qUD0zyCsYjwkRTO7rTQyp0I9OfefcNJMwyKrWcyONBSNjcnMv5k+3/xz+n85PKoisrZ5LojScJ2QDoog9QLoUzagiW2iKeI777OtBo0kNs2ckViCiAlIZxOD2X7z4H9RQAnMuKkjZHoYEKSKAQIsgPgMY+KxFhOYjhgSzig5JXUz9F9MhD/BfmRD8F+LRM4AAAAAElFTkSuQmCC";const Pu=r=>(Ra("data-v-aacbe2eb"),r=r(),ka(),r),tie={class:"left_a"},rie=Pu(()=>$("div",{class:"chart_title"},[$("div",{class:"chart_title_div"},"基本信息")],-1)),nie={class:"chart_main"},aie=["src"],iie={class:"chart_main_div_text"},oie={class:"chart_main_div_value"},sie={class:"chart_main1"},lie={class:"chart_main1_title"},uie=Pu(()=>$("div",{class:"chart_main1_title_left"},"供水统计",-1)),fie={class:"chart_main1_title_right"},cie=["onClick"],hie=Pu(()=>$("div",{class:"chart_main1_bottom",id:"charts2"},null,-1)),vie={class:"chart_video"},die=["src"],pie={class:"chart_img"},gie=["src"],yie=Pu(()=>$("div",{class:"chart_bottom"}," “一河五库”连通工程信息化系统的主要建设内容包括以下方面: (1)建设项目区及工程运行信息感知体系,包括水源监测、输水管网监测,具体有水雨情监测、管网工程运行监测、视频监控、输 送水及放取水监测等。 (2)建设数据资源体系。以资源整合和信息共享为目标,建设数据汇聚平台及共享体系,实现工程水雨情、流量、水量、压力、视 频、工程运行等信息的接收处理和存储管理;建设数据交换共享系统,实现与外部系统的数据交换共享,以及管理单位之间信息共享。建设综合数据库,实现各类数据信息的存储、管理,为业务应用提供数据服务。 (3)建设业务应用系统。以二维、三维 GIS 平台为基础,建设连通工程综合信息管理系统,实现管网输水调度数字孪生,提高工程 管理的工作效率,实现水量的科学调配、预警预报,满足工程运行管理、移动应用需求,具体系统包括:管网监测系统、巡检管理系统、灌区水资源调度系统、综合管理系统、智慧运营系统、移动应用系统等,为工程运行管理决策提供技术支持。 (4)建设监控中心软硬件支撑体系。配置支撑系统运行所需的开发类软件和商用软件设备,包括告警服务、数据库管理软件、GIS 软 件、数据采集工具、报表组件、统一用户管理等软件;购置计算服务器、管理服务器、存储设备,以及交换机、防火墙等网络设备并进行集成。 (5)建设通讯网络。主要包括工程监测内网和业务外网,工程监测内网采用以租待建方式构建光缆通信,用于回传管网监测数据、 现场视频等数据;业务外网采用专线的方式进行建设,实现工程控制中心与上级管理单位的网络互联,用于传输业务应用、视频监控、安全监测以及视频会议等数据。 (6)建设监控中心运行环境。根据监控中心现场特点,配套建设气体消防、综合布线、安防配置以及供配电等 ",-1)),mie=Pu(()=>$("div",{class:"chart_view"},[$("div",null,"查看更多")],-1)),_ie={__name:"left",setup(r){let t=Ce([{name:"总设备数(台)",values:"123",urls:qae},{name:"占地面积(㎡)",values:"123",urls:Kae},{name:"水源数(个)",values:"123",urls:Jae},{name:"离线设备(台)",values:"123",urls:jae},{name:"建筑面积(㎡)",values:"123",urls:Qae},{name:"总供水量(㎡)",values:"42867",urls:eie}]),e=Ce(0),n=Ce([{name:"实时",values:"0"},{name:"周",values:"1"},{name:"月",values:"2"}]),a=null,i=[[[24,40,101,134,90,230,210],[40,64,191,324,290,330,310]],[[23,75,12,97,21,67,98],[43,31,65,23,78,21,82]],[[34,87,32,76,98,12,32,87],[56,43,98,21,56,87,43,12]]],o={title:{show:!1,text:"单位:万",left:30,textStyle:{color:"#4c9bfd"}},tooltip:{trigger:"axis"},legend:{show:!1,data:["供水量","进水量"],left:"right",textStyle:{color:"#fff"}},grid:{left:"3%",right:"4%",bottom:"3%",top:"10%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,axisLabel:{color:"rgba(255, 255, 255, 0.56)"},data:["08:00","09:00","10:00","11:00","12:00","13:00","14:00"]},yAxis:{max:"dataMax",type:"value",axisLabel:{color:"rgba(255, 255, 255, 0.56)"},splitLine:{lineStyle:{color:"rgba(255, 255, 255, 0.56)",type:"dashed"}}},series:[{name:"供水量:",type:"line",stack:"总量",smooth:!0,symbolSize:0,itemStyle:{color:"rgba(92, 255, 92, 1)"},data:i[0][0]},{name:"进水量:",type:"line",stack:"总量",smooth:!0,symbolSize:0,data:i[0][1],itemStyle:{color:"rgba(0, 247, 255, 1)"}}]},s=Ce([]),l={loop:!0},u=Ce("");Cr(()=>{f(),a=DI(document.getElementById("charts2")),a.setOption(o)});const f=()=>{I3().then(c=>{console.log(c.data,"res"),s.value=c.data.pictures,u.value=c.data.vedio})};return(c,h)=>(se(),ce("div",tie,[rie,$("div",nie,[(se(!0),ce(bt,null,wr(Q(t),(v,d)=>(se(),ce("div",{class:"chart_main_div",key:d},[$("img",{src:v.urls},null,8,aie),$("div",null,[$("div",iie,Oe(v.name),1),$("div",oie,Oe(v.values),1)])]))),128))]),$("div",sie,[$("div",lie,[uie,$("div",fie,[(se(!0),ce(bt,null,wr(Q(n),(v,d)=>(se(),ce("div",{key:d,class:yt(Q(e)==d?"highlight":"nohighlight"),onClick:p=>hh(e)?e.value=d:e=d},[$("div",null,Oe(v.name),1)],10,cie))),128))])]),hie]),$("div",vie,[$("video",{ref:"videoPlayer",src:Q(u),controls:"",muted:"true",controlslist:"nodownload noplaybackrate",disablePictureInPicture:"true"},null,8,die)]),$("div",pie,[Ye(Q(sM),{slidesPerView:"auto",options:Q(l)},{default:br(()=>[(se(!0),ce(bt,null,wr(Q(s),(v,d)=>(se(),To(Q(lM),{key:d},{default:br(()=>[$("img",{class:"chart_img_div",src:v},null,8,gie)]),_:2},1024))),128))]),_:1},8,["options"])]),yie,mie]))}},Sie=kt(_ie,[["__scopeId","data-v-aacbe2eb"]]);const xie={__name:"index",setup(r){const t=es();return(e,n)=>(se(),ce("div",{class:yt(["left_index1",[Q(t).activeTab[0].animation==="start"?"start_animation":"",Q(t).activeTab[0].animation==="end"?"end_animation":""]])},[Ye(Sie)],2))}},bie=kt(xie,[["__scopeId","data-v-f4dc97ca"]]),mr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADKSURBVHgB7ZZBCsIwEEUnDV249Aa5gkfw5F267BV6gy4jBI0JVCiiycwfRIR50GXzXjK0hMgwjH/mEmOYYw6kYCCQKvfJT7eUJk2EI4CnvLwctkUWP47n08EtJEQc8CrfLQRFiAI+yTUR7ICeHI1gBXDlSEQ3QCqXRrhvyCUR7f/AtTyZcPK2RoP+CNZyCkM5BSccQS67v5fdHxUjQCO4cnaAJEIiFwVwIqRycUArApFDAe8iUDkcsI+o3zEqV1Mj5lV3ITEM4+c8ADr2gZFOlWLRAAAAAElFTkSuQmCC";const wie={class:"right_a"},Tie=Yi('<div class="chart_title" data-v-37daca23><div class="chart_title_div" data-v-37daca23>巡检数据统计</div></div><div class="right_top" data-v-37daca23><div class="right_top_div" data-v-37daca23><div data-v-37daca23><div class="complete" data-v-37daca23>72%</div><div class="complete_text" data-v-37daca23><img src="'+mr+'" data-v-37daca23><div data-v-37daca23>完成率</div><img src="'+mr+'" data-v-37daca23></div></div><div data-v-37daca23><div class="complete complete_num" data-v-37daca23>72</div><div class="complete_text" data-v-37daca23><img src="'+mr+'" data-v-37daca23><div data-v-37daca23>完成数</div><img src="'+mr+'" data-v-37daca23></div></div><div data-v-37daca23><div class="complete patrol" data-v-37daca23>72</div><div class="complete_text" data-v-37daca23><img src="'+mr+'" data-v-37daca23><div data-v-37daca23>巡查次数</div><img src="'+mr+'" data-v-37daca23></div></div></div></div>',2),Aie={class:"right_bottom"},Cie=Yi('<div class="table_header" data-v-37daca23><div class="table_header_name" data-v-37daca23>问题</div><div class="table_header_time" data-v-37daca23>负责人</div><div class="table_header_name1" data-v-37daca23>上报时间</div><div class="table_header_time1" data-v-37daca23>操作</div></div>',1),Mie={class:"table_header_name"},Die={class:"table_header_time"},Iie={class:"table_header_name1"},Lie={class:"table_header_time1"},Pie={__name:"RightA",setup(r){let t=[{title:"管道漏水",date:"2025-12-12 12:12",types:"详情",states:"xxx"},{title:"管道漏水",date:"2025-12-12 12:12",types:"详情",states:"xxx"},{title:"管道漏水",date:"2025-12-12 12:12",types:"详情",states:"xxx"},{title:"管道漏水",date:"2025-12-12 12:12",types:"详情",states:"xxx"},{title:"管道漏水",date:"2025-12-12 12:12",types:"详情",states:"xxx"},{title:"管道漏水",date:"2025-12-12 12:12",types:"详情",states:"xxx"},{title:"管道漏水",date:"2025-12-12 12:12",types:"详情",states:"xxx"},{title:"管道漏水",date:"2025-12-12 12:12",types:"详情",states:"xxx"},{title:"管道漏水",date:"2025-12-12 12:12",types:"详情",states:"xxx"}];return Ce(0),(e,n)=>{const a=vh("vue3-seamless-scroll");return se(),ce("div",wie,[Tie,$("div",Aie,[Cie,Ye(a,{list:Q(t),step:.5,hover:!0,wheel:!0,class:"scroll_core"},{default:br(()=>[(se(!0),ce(bt,null,wr(Q(t),(i,o)=>(se(),ce("div",{class:"scroll",key:o},[$("div",Mie,Oe(i.title),1),$("div",Die,Oe(i.states),1),$("div",Iie,Oe(i.date),1),$("div",Lie,Oe(i.types),1)]))),128))]),_:1},8,["list"])])])}}},Eie=kt(Pie,[["__scopeId","data-v-37daca23"]]),Rie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAraSURBVHgB7VtdbBxXFT7nzq5jx0lIG0JpKW0ioiBkQR8oD4CQUhA2KU3UFz+Qkl+FqDz0oRISohKSK4QQqkRfEKUWzV9biuQHVB6crklRHkD8RggqqxIEqqDIVWIax40Te3dn7uGcc++dvbu2kNbeXW+k/aLNzNydmZ37+dzv/Nw7AD300EMPPfTQQw899LACsJmTicid/+yzbjs9jTA0y/t7AGZmXNvcHMLCAsI9i+54B39mbhqA+wAWy4gvT92COwjNESTnj40W4V/zRdhU7IOFahEwLYLpKwJkRSiaPoCkCFXL7fyRfcq4zfAxFXVrqQKDm3+DP5lYgDsAppmTUTia+TfpwXxo3ei3GwAqvKnypxhfhASGPxbJtwzC7ZvDdOhL2+AOQFMEKcYvprr9AH8KCSk/hSJzV+a7paQMVcPJqd9mbEzRLxrcxNc8TgcffRi6HE0TpFb0sc8twmKRIM0QbnNjmckRCyoUUM3HZKTbYDXWIAT9CmDOoJg9TEdGvgBdjKY0KAY9/dkBuLF1k2qQTfpUg7DAmoN9THsBKHV6BLamPxlvDX+PyMfkPlb0yS4yWRM4fn4eugzNDzEPfP73i1A2KfRtYJKXom94fFnriE9TyC1HtqbBiqxvJ9zC9zpAx/ffA12GVROkqG58H27M8TDqBx1iSkyk0CLOGIaZiLWpESTEYEQesqql5RN0aOQR6CKsiSCcmMjg7vved0ci0obq756wdfDHemKsJSVDtpZIlTsQGB7FwCN0dPgx6BKsWoNi0NdH7mWvxHqUOQ2CEAeRO7asSWic/qju8CdBtwWvS1a33CYmqBp1k/n7Kb5Uug7riLUNsYBd5Vmg21a9mHqwgIKzkELS8KtY79XEoxnjNCkA4W4W9afo+N77YR3REoJw7EIKg9uuQqXi78okZdFwS5mBWKCRnDahuP98+C1/JCXJPkOHv7wf1gmtsSCGpg4ZXGeX7zqcJDVCCkFrmChi/cl8u+yjbdCt+KZCoMiA2cfx0gFYB7SMIEV5yzW2joojqVr/nYozk5QUDEi3MwvOi8UhNiOLLC0YFaJ4uRE68pUf0MHhD0EH0VKC1KsNLP7n/54kHgzR/S55q3IHpE+Te7WVfoAehAKO0fF9O6FDaK0FgQy1CwtQMdf0IAix9dsQB4kGJf6nRYNcQotqMY1DTqytZkoST22HtPI8HRl+HDqAlhOkqA5e4bSjsswabNT5MMRiQhC85ugBLXtMOVWvkSFnvkFH934T2oyWxEErgbVikK3kM5qDGSpovLNiLhbiIN+GvE8SN0XnEPlrQozEW7L+XLwMffRdHC+9C21AeyyIoZXD6tIlDh5Jh1jIxXS0WCc9YQhmvg20jfzWWZOGAca1h5FGkXEh7IIq/pgOPbob2oC2ESTAVy/wUEtu6IGWPpLaLyaNT9LwKOhZCM0yrGQ/9mwCOYvow2DsK3R4+AloMdpKkOLm3DT3quoCRe+xiDsnGkQ+WBStsitcK/pk7fInxrDj95Ur0Sf8FsdL34YWou0E4QSXRQpwyR0l0o9acqqBoHUeDOJI2u/n1iLWlDMj7eiGoj+mOl9wkI6OvN6qFKX9FsTAn029w3/d99wBOIuR3gs5Qlqm/t1Zk7KSZ/bezQu0eBTaSb0ZUUPMROCv+AQ7hNfo8MgQrBEdIUhRmP2jDjUFd1biIIyiZk1gLTlHj1HdSFrCcWjOD+Uav4+hnfznfm4r0bG9J2AN6BhBOH6xylXZv+QNrpJIPq6pWQJBZBkNj1fzZO7auu/yX3JMhVtY+z06NvJ9WO1zQ4dBh7/6aU7vhzSeSSQ24lhGtiEOkhgHgetGGgu5OpGcK3VtiY8kJjKmFgeBv47AX+vjKCBXewpxE8DbnEAfwJcmLzfzvJ0bYgG3N77FnVhQNy8xjmqy16Q8FvLWEYZc3g5Y98gi+GJVcnbwZHKcD91c2MWiPgVZNkXHHnsImkDnCYpBDXmXejaoTzFiUsLTqgPTDN+nHeivirQL6waHj6mkrQrNoPMEbZz/JHdwk4uswZFUN9uBKzxTFAsFoxAroxA0CGNuR8/R74IIec+G+He+9TCeLP0NmkABOgiu5+zgR92tSaf1GbzA+g4i+S6jCybFQ8nMCCmTUIt7IHjAWjQttyJPBkTf6ff4Ap554xlYBTpGEJ3Yt5HnySQ+qaUZlLlgUXI1ND4382QEThQaJ0FOEsbN5PJ/Ct69wbsZTmRPlsZhleicBS2lH2diBrXjoUamdWlYuUim8iRpiG4BglbXlWR9zJTHi3Xx0xX+70k8OTUNa0BHNIiOD++ExD6gB0FO4mQ16FEMg44AaghFXJYfZf1xoOhNDPFtKJqv4ZnSmsgRtN2C6OnRAZib35V3M87Iwe8LWTYMI+sjZON1yflutSg3NURqVagVSNS2XKPV453FU+d+CC1C+4fY3MJDbuIQqa7U4ebCEGiFErTGQTodHY6xYWg5OC9YG1mWnsMz516FFqKtBDmvZTcpEep10M/De01xmbwjq24gWa9L6OMgSWwNufgneC70liRWRe9Cf/YdfPHX/4QWo20aREf29HMnH3S/EkQ4gzyTz08M361Qg8agQj5nU15dlOiu1X+X+LZPtYMcQfssiPqGvPtFv3oD3Nhq4MHK6jOdrcBcc8IpTpbiINKJt6YTal6/xFOlF6CNaAtB9OQXPwJlWQ+TyhAIS2BI4x7rrUO5imrS6EVai2jxmDNhqYw7FDHX8iy9iKemXoc2o+UE0bH9m6GyeG/t9tJxVWTXFHsxjWskYfWxjkbYudv2+ZWF3NmrJ8NZSO1zPCnwDnQALSWIRoe41FD9qK4JwoZacryaI8RAYlki1CLAsRoaA3lJVV07+eHHUzyAP8KXz81Ch9BaCxrYuZ073AdZyhUZKenEUaGtLepM4nTCuGw8n1T0lqQRthTtQxkDS3j6jZ9Dh9EyguiJvVtgA27lmouzBpKygjcV66uHxgtxEO1QZtbT/HehUefDfJvFX+DZ0nlYB7SEIBrbU4Ar2Ta9na5TjIYYJS6O0Xl57+ETJisLVoJ+OV6IpAXGZ/b0Hnu51/Dsm/+AdUJrLOjywF1AKZdDK77CGemPzKyq/GTOhRtvOsaXxjAs5jQhQQWnN3aGST2Np99c1yV4ayaI9n9+M/+lB3WVq6wsk6El0zJxDcx4N5+ydSU+ck6Q8jSjLpLWRQ2/gweq53HswhKsM9ZEEI2OJpDc2KyrgJfKfDfjlgFXrR9i8iqC90JiJUnirCSJij25sYUhZiY52fwDdAnWZkED17fyf8i1HlALStmC0IuLrFEUa6EM/boeFygKOZknQ0ut5KwNYR5MMtnsrEO7sWqC9FWE/7JJyB9dXmZBJiJlDbIbsF6D/GJyUvEGtZwQRWvCqZ7qGhTtr3B8suteRVgVQTQ2ZuDqn/t1hqBQZm1JuNcF7qy8nsEdr7AVFbyLTpg80Z44Ww+BtU4fw1/hqvkTniuVoQuxOguaudifR8PyroYMMau6IyvreQpP5vJSd3sli+pF28U97N6z3+Lp829BF6PpcofGPIvlWm8rZT/nVPWqW61/Z6NuHVAoRsMtqNBkt5MjaIogfWd1env9NemGaAFC/K6GRNKp5yR+JwOuQ3+5hK+0Z8lcq4FNnu9IWvZSL2Nmt9uGl3oF4cXeu9jibn0Q1fIGdlRwfLy56c0eeuihhx566KGHHnroNvwPxtay9CINFTQAAAAASUVORK5CYII=",mR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAqGSURBVHgB7VtbqFxnFf7W3nsmZ84lqUljPBpNCyFSg/aheRWalwqiUnwI2BBNo0ntQ19EEAvSFBGRQvtSqDXWXJqqpA/SPhQiRV8sqFREQxQ0mFaiNQm5nzmXOXvv5Vrr///Z/8w5L3POzJwTmC9M9nX25Ttrfevy/wOMMMIII4wwwggjjDDCMqBeTmb25z97lPDMUeB12f6b7nsYmL5DeEiO/WueMLlAuJxX1261Els2CqKvXm7iLkJvBOn5Z3bXMH++hnRTHUVRA8unvqGGsqxhsayDs5owIvu5hiytoeA6IEvO5TuJLMsWxid+Q/uuzuAuQNLLyaQc3TjPSw7Mz0cbi0Ati+/ASHK2paLkCTRnHuEXp7bgLkBPBBmeQI7L29x67l863UBoLcjLt9z2Yi4k6fF8mTvKLSmZxGTxKJ8a34N1jp4JMitqXp5DixhZ5KL1DXK1utsulbgMldXIefqvcBttFNjDx8c+i3WMnjQoBp9BAzOYRGNcNEm0B+x0h2p1pJwhj7QnU+1Rm5LjwiLg18O+hObQ2PA67btxC+sMvbuYB+3DHObFydLGUpILId50SFwsSYNVkX26oZGx5I2YXXiMj01swzrDigky3IvbuDPn3Ch2MYXqkAm0dzNdUlod13VKZDuFLZk2IeMj/MrkXqwjrIogsaIC87O3baMFlZ3OCFdm1GE5XLBZjC7zRZbUQC4i60WkS0m5l382/gWsE6xYg2Lwy+PTEpUmseA1KOiRLimtI+HM9IZEfzRvclpUaZDtDxoF1STJq/gOJrIf077b17GGWJ2LBeyavSrpT2kuFltRFkUyRVG4W5bp8noUg2gzmvlTfGzzdqwh+kIQ7RU1Ht942TbU1VIhRT+WBhWm1Y6Q1Fba2qTaQ56o0rtZ4h/J3I83ozb/NJ8Y/xLWCP2xIKgeSemQltfliu6FNZJlykxqKZGzpEKjFjtLEnDJtm1PEh4lIoqITLNQflHypcewBugbQYYNs1ckGrWMHENUcqgFGUny5sHtLIp1gXVfaV+ockq1tPRzfLzxQz41+WEMEX0lyKLa5My/O/d6a0lTf5LaTM3dVy3IYISwPQ0Zics8mpbKyQ5xvaN8atP9GBL6a0EwkmZQ1K/YhlpSnrpwrzwFvUnKSrg1HzI3S8h4UtLKKOwTuovjrSgWX+Dj449iCOg7QYaNNy+Zq6lQq5eZ8Xj9iWEJYhGRBac5pkcRiR0BL/EJJg6LeD+JAWMgBJmr1ab+bhak2sNRuyNGcLGgRbqt62ZBSgS74xx/VYU9kEdf5hMTP+VXJQ8bEAZjQQLrHObFBavsQzbtPtFJQaTL6nH05dWCLOOWKIZA3jIE6y7GTuTJi3xyahcGgIERpKDDc5fkDW76O7EJdRIxVEbEdINjnYLXrw5tosr1yo+gLE6LNe1HnzFQggy3Zs/Liyya9YT8J2TRWoeZSMfRLDyZ5kGs7uR3dPITkRPlUPxtSQW+gz5i4ATRt6QtkoqrKdSC2LJsf7DmRLrtaol72WBZuggOZof946r7BX2y0iUknno+HZBi9w0+3ehLiTJ4C4Lq0fxFaeBfs0hmkcu/cOxGiAW6A9yxsAvCdQXa6h1FOete0gPS8fwF/2RyN1aJoRBkmLvzBxTqarGOxCKdOFejktvCrE/HXoG6a1t3mai/1F6yIxvbUSvPSipwBKvA0AiiJ6TeT/nd9i0t/JdcJYoeWmrEiWSMOC1oJ5Adwq3/VZHPvoPv88nxH2CFGJ4FCehrc/+R3tA//J2jKNVVk5V+27qOtoLKxThyTUL7FTg6heIIaOL+pGTe7/Br9+xAjxgqQYbx2XPyB3aDhqH0oC6LSXy5YVm2JoaBj8S5WvXU3M642xRr5OsugrUrwJ+Roalf86sTD6IHDJ8g7EbV7gjDQtFjhGI18QUrL1Pxu+jmtcn3lJwFLdUkdyC4JnrF8AmavfhpGzikqE9NsQJbnEdX0uM3o33WSdIXL6uCtr1Uqwpliu3QyPZX1GqP0IHmX9ADMgwR0vS6DyXt8tGJfbHqNSXx4bv0dmVRTReMdkR3XzRoM82+Qb77SBUZVqJwJNT8Eh2afVr+OugVQ7MgfvOj42IcD3RYQXCVsl1vUZUVI0oMlwtqQX7KiEAsbY8QvufIWRmGZ0E3bn5S3nhCohhcEy3xrqD1WcEdfyvrdkBf2iuNajM7S0mqhMdl06EDSV6D2K/zJbnuN+lg6zxWgaFYEB8bux9F+gnbsEQx7TxhSZgP+4k7XrpKHGH6Q+FkCgWtH3cjbbV8ZbXkKAZuQXxmewPNGzvbhp90/028NQW0e0EdwsvmSe0CFk6DSrUwr0shihGdosdnfoQ+YfAu1rz2oOQ1MlqW8hKDbVtOl8ZYHpRQR9BuG5m3plCRcGxB9BwdbL6GPmKgBFnUSiSkl374Rj0rDuqugwhfi1VfdO8cwnQgkU2HLEKF4+3I9gFqxXdp/8I/0WcMTIP4+H1jSLMd/i5x86vTXDQPcvOGqv3BDdWNyArPilZC1B6x/RdksPKpQZCjGJwF0ZXdrlcTMl4xn4KX/5OkvsWacGdrtdIjj6A3pScs+RUdnHkJA8RACOKTjY8JGRtQ5tokc/LpGmNeM+LGV/RFi14+eQxFqnPBqN3htafAy3Ro5g0MGH0niF+5dwp0a9pdWj+RR2kNZu7jI5dzJXtbs6J4ip7VYOwI7WhtpFfRyp+jw9KEGwL6ShCfQR0z8x9HUaMlkaljNodTa1dicNyocHCjGj6cm9U5S+Pkfdn3vJBzFUNCfy1orrFVIk3dhnrqcunFRXQkhSrWZdmZC9msM/aN+67CPRSjto6z9Hjz5xgy+kYQn968EXnrHglGNhVKp0vb/CD3jm7iQulrrVCkKoIklUlldW1xJpcIFvxL+nrzbawB+hLm+bcPZzKysAXiYTb9xWZ3+DnSwbV0GSYwdIx5FdzZvPdP5XTnGlqLL6wVOYr+WNDFdz8kQ1+ZDONEl110q85yHDiK82VoeQUXQzjfn4v/oshO0JHZNZ2Ct2qCXNTKJ1CXN1soXd6b5m52WZ67sbDES65zNYcEyw4muyqe3gFtfZu+8d481hirIkiiVoo7s1PmWjr1Tt1LjailNIUQ7zWIvYvxkuhWWY01E4u36NDc74H3sB6wOguam7oHWS5Vtfyh63V4K3EMqBVRivZsM7UYS3+6E0U//YXpFjIhZ//8+1hHWDFB/DwaEtJTo0N/zJJLrlK03HBygJui6MyoPS0v1FmpI4cssl3BQv1NOrT+foqwIoL4qLzltk1jlhnncyw1lOQ9dSFBo1gmZDXFljIXycrU12Jo54eWMju9FrfjP2PL9B/p8xcWsA6xMguaxlh1hQZZIZ4z2QuXi5IH1WDupYliKUxkUoUWyk74eZQKtza+6Hd0YP4ccAHrFT3nQXxUcp5GlPLm5DQko0p9i6ya5ZopMYX76MLGwKgpHL0lmfE5rHP0RJB1gT91NfqODJBmOrwy1vVbjWApscX4Yxmuo9k4SwdmP8BdAOrxfEfSs/J5BtGPegXTD1U/6v3fAmGnrIcf9t6Q5YSIeKMQgre3aM+fFjHCCCOMMMIII4wwwgh3M/4PLMBksfHo/E8AAAAASUVORK5CYII=";const kie=r=>(Ra("data-v-af024aaa"),r=r(),ka(),r),Oie={class:"right_b"},Nie=kie(()=>$("div",{class:"chart_title"},[$("div",{class:"chart_title_div"},"告警事件")],-1)),Bie={class:"right_top"},Vie=["onClick"],zie={class:"right_bottom"},Gie=Yi('<div class="table_header" data-v-af024aaa><div class="table_header_name" data-v-af024aaa>名称</div><div class="table_header_time" data-v-af024aaa>告警级别</div><div class="table_header_name1" data-v-af024aaa>发生时间</div><div class="table_header_time1" data-v-af024aaa>处理情况</div></div>',1),Fie={class:"table_header_name"},Hie={key:0,src:Rie},Wie={key:1,src:mR},Uie={class:"table_header_name1"},$ie={class:"table_header_time1"},Yie={key:0,style:{color:"rgba(112, 255, 112, 1)"}},Xie={key:1,style:{color:"rgba(255, 96, 71, 1)"}},Zie={key:2,style:{color:"rgba(255, 159, 10, 1)"}},qie={__name:"RightB",setup(r){let t=[{title:"管道漏水",date:"2025-12-12 12:12",types:"已完成",states:"II 二级"},{title:"管道漏水",date:"2025-12-12 12:12",types:"待处理",states:"III 三级"},{title:"管道漏水",date:"2025-12-12 12:12",types:"处理中",states:"IIII 重大"},{title:"管道漏水",date:"2025-12-12 12:12",types:"已完成",states:"I 一级"},{title:"管道漏水",date:"2025-12-12 12:12",types:"已完成",states:"I 一级"},{title:"管道漏水",date:"2025-12-12 12:12",types:"已完成",states:"I 一级"},{title:"管道漏水",date:"2025-12-12 12:12",types:"已完成",states:"I 一级"},{title:"管道漏水",date:"2025-12-12 12:12",types:"已完成",states:"I 一级"},{title:"管道漏水",date:"2025-12-12 12:12",types:"已完成",states:"I 一级"}],e=Ce(0),n=Ce([{name:"今日",values:"0"},{name:"近 7 天",values:"1"}]);return Cr(()=>{}),(a,i)=>{const o=vh("vue3-seamless-scroll");return se(),ce("div",Oie,[Nie,$("div",Bie,[(se(!0),ce(bt,null,wr(Q(n),(s,l)=>(se(),ce("div",{key:l,class:yt(Q(e)==l?"highlight":"nohighlight"),onClick:u=>hh(e)?e.value=l:e=l},[$("div",null,Oe(s.name),1)],10,Vie))),128))]),$("div",zie,[Gie,Ye(o,{list:Q(t),step:.5,hover:!0,wheel:!0,class:"scroll_core"},{default:br(()=>[(se(!0),ce(bt,null,wr(Q(t),(s,l)=>(se(),ce("div",{class:"scroll",key:l},[$("div",Fie,[s.states=="IIII 重大"?(se(),ce("img",Hie)):(se(),ce("img",Wie)),$("div",null,Oe(s.title),1)]),$("div",{class:yt(["table_header_time",s.states=="IIII 重大"?"major":"nomajor"])},Oe(s.states),3),$("div",Uie,Oe(s.date),1),$("div",$ie,[s.types=="已完成"?(se(),ce("div",Yie,Oe(s.types),1)):s.types=="待处理"?(se(),ce("div",Xie,Oe(s.types),1)):(se(),ce("div",Zie,Oe(s.types),1))])]))),128))]),_:1},8,["list"])])])}}},jie=kt(qie,[["__scopeId","data-v-af024aaa"]]);const Kie={__name:"index",setup(r){const t=es();return(e,n)=>(se(),ce("div",{class:yt(["right_index1",[Q(t).activeTab[0].animation==="start"?"start_animation":"",Q(t).activeTab[0].animation==="end"?"end_animation":""]])},[Ye(Eie),Ye(jie)],2))}},Qie=kt(Kie,[["__scopeId","data-v-9b96cf17"]]),Jie={__name:"index",setup(r){return(t,e)=>(se(),ce(bt,null,[Ye(bie),Ye(Qie)],64))}},eoe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAnZSURBVHgB7d09bBvnGQfw53nvTo6H2tLQpYANeeqSAlI/AjQGbGiUl6pd6qnuZE1J2sEGYgtIAzgtYC1JpypTsrmTNdlbDRdVA6RApQJZ4iWsAnSV5BowrOO9T573eEcfT/ySTPL18f4/wCbveDxS5B/v193xZRrStshs/P94xRBdFqEFYppn5lnRhTJdr6uF3X19+Akbc0tY9gkqwzbtnAn4Dgv9cIjN9/VLb+i3vmOJHkdJtLk4x0N93zxog+3nz+dtEr5nrfxWF2eL4cpIr/0gfNXmQhhoCGm4EHbQQHwWJMmHi3OnGwO2686VeM1nzQ90g9+Ry1IWui4B7Arhmw5WeDYg+1E5hD1LneyhLCduo09+9r2Z3/fYffd9uFIviYNH+vR5OpknxAjftCiWhHkBpKiVsIG1qNvov1EULS2e5kb5wSNP/vLZ4YKxdL97+PjAGNqw1v6TgpldTuhbgtqzEZ3hOPmRJbscsFkWsee7bPaNJPSrt+ZmdoorOwL4hZZ8UZeST8O+K2LeZQq2CGAAYXuVKLnBxOd0kfOOqoatEZRKwnYAs17uNpfCp73ejSSK7pqYnhLAsOyLs2LopiboenF1GsIkWsx7ySZ/IOtwuKGVwrgK3xWK1hA+ODZz6oDp1G0tD9eLq13t2gzjD/LltAR0VW8YB99QZ+dmgzV8BPCKxL74iIPgenHMOIyiC64qTkvAKAnyRHL2/65otUsAI6Ch0izxbnFds9l8L31se0/H+4J4L+tW5894hyW6RwAjIpRc1Nbd/cIY8n6YRBdMHMQr6QZ5T8XQLsIHo+ZGUDRi7b6EO4ybRMkvjDu2m61zo4vag6aHBDAW9tPCgisKLxtN3UK2wo3XaP4MAgjj0h5HTrMmdtHovfniFmybXxHAOOjRs45loXnXC55tL7tmoI7fEMAYlA/dunag6VxBAGPFhZC5jq/JVgoBTED5BGZTOr8PQYSJMqWTS1EJw0QZAvAjrW1Nac0TAhgnpq/b96gzgE+YzS0CGKMkkTVNXR7CLIDMX+MaDpgEE5q9pKkhzEpC06p2+TbCB5OShjBphdAwSj7wIA+hQfjAFxdCDMOAVwggeIUAglcIIHiFAIJXCCB4hQCCVwggeIUAglcIIHiFAIJXCCB4hQCCVwggeIUAglcIIHiFAIJXCCB4hQCCVwggeIUAglchTYt0Zp7wTaoBtvZbMtEuTYHKB9D9/L/+f4OM0VtLdSBpvdXcIg7XWKjSP6lc6SpY6PCmhm5T712k2tG/WeJHQs0bVGGVDaBwc1Uro0p/+KMhN4XsdaqoagbQxufJ2lWCjL3p2sBUQZUMoHDwNnE6Fy2k5Cyb6NdUQdUsAdkuE3SwFW0HV7UX3Ke6MQ+IaTrnOhH3d9srPR6sZBU8PeOAuSBYK0+IMi0koHOU9ApgNeFICHiFAIJXCCB4hQCCVwggeIUAglcIIHiFAIJXCCB4hQCCVwggeIUAglcIIHiFAIJXCCB4hQCCVwggeIUAglcIIHiFAIJXCCB4hQCCVwggeDV91wX3IXL475P8pAdT9H2CsUAJCF4hgOAVAgheIYDgFQIIXiGA4FWthmGYZ35M8FpBCQheIYDgFQIIXiGA4BUCCF5NXy84Sc5LENBU0r+NpswUDsPYTUrqMWnhNKhkFWxIKj1D5HhU8zOpZAAtmYcEJdX8TCoZQKZgS2+2CFqYdrPPpHKq2wsOonfcB0915z4DE61QRVU2gOl0XO6Dr3UIect9BlWemqzSveDWBx/9RNheJZFlbR2e19uTTdo38FoRPiCxT2kk+yJ3gcrJQ2OCf5DQX9NqN6FKm4phGBZzT2/0X+CqpGNLZ18XuUP9X2SNaeYeDbM/ia/o+/i8//7CvzCZT+kkhKYGjoS42dcHhY/4Lks0VPjSrTl6QNYOCJeb5TyeuoHl46p3AO2Ls8Ky2XebtIcZrtMxsTl1W2/6jM1J67X1PVCN1TqAwuZO3/baq/Ywg+g3adux5/75nBhzg2qstgFM231MVwdstv4qPcz0uSLvDthsVchep5qqZwDH0O7ruRe0B/uqXwDH2O7ruTu0B3uqXQDH3u7rBe3BruoVQFfCMJ8ZsNX6OI4sDNce5DepZuoVQHPqQKvWa1oO9qheR9Pu66Vve5BZB7rDyh7TPaladkL0iMZd4mip4zjyiNt9PV+73B5M34NZYQk3qIZqOwzDoiFI23r8YOJnlLTbg7wlYbRU1VOpRqFWv4xQ1mrrhdfE0LlJnlHiXkuCcMndcky1hmPBlAdx+l/zdYQAglcIIHiFAIJXCCB4hQCCVwggeIUAglcIIHiFAIJXCCB4hQCCVwggeIUAglcIIHiFAIJXCCB4hQCCVwggeIUAgleGxF4iAA+M0CXDZN7X/xBCmCgXPiF5X0tACSWRWygJYWKy8OltlF8XHJDwrez+fwhgTFzJZ0Vc1tLs8b+eHhZ/8jpmin5AAGMi3Pyf1rpRvlzuBdf6lxJgArLwMbMr+KQcwBNMcgBwPBo+zaGkWTNZ/TtFM0/A607Dl99l42LoEgkwSVkV3GoDFhIJMBHtKjhbRhEIk9Qu8VwbcD9fcMWiBDR4oj2Ak8hmAeCXbb59Y5gb+eNpsZgktZ+/DMZDTJj+CHu7ySfUMDoqvVPa7G0CGANDdpkK1a+WgzvaBkweu5V5r0TVdtooGC8rdIUK/Q1L9NhEyRubGr6Dlz1hmRVKLhLACLGbVJw7+xdREm2axTne12jmkyu3Uij2z3WfRhRGyE2PRknHLFBaDH7mspcOw8Q2+bi1Lisemc5zENZ6GlEYHTcFmVawHZ3bIIk+dLdpAH8+d7qhLcBPis+xYleFmgghvBJuZWi1eLTNZU1Lv0br8cz2nswmQbytdfA8tari/LENtnbdTXNFAMNy1W5r8sXV4moNVeOnZ2Yu5Mvts2FcfRwnyZLboLVdu7u8KoH5m0g8aHJngFTaidXMUCl82tFtaNW7VFx35BDcl88OFyih+1pizh/Zs5vSSuih5vYh2+ZXKBXBSY+epQcwdAxZxM1E39GBTatfDZ9N6Jdvzc10jDt3PQb8xd7z+cCYR/rEeeqsjtv3s3O6qLw+0xSWPxKbvxNUn9Alzq7hoJc1Y15LDjyPwNWqruTL231FXa8Ldp2SyM4sljsmxRfLw5cNYJffRMjuGhPB1XaV575Ddw2HtM+Wz87g4/x+V/mBDZchDd9it/D13UEuKw3/oDu8lp6skJ1G03572ZvpcUpXrCXhn1ASVpMpXL1W+O6PFDhHakOhA93g88BGH/cKXvu5NCTXS46DeMUYuqwH7hZ0nGY+q+sHVc+ojisoDx8Th6VCp0P6XVtxZ1Q1ODA7No4fR/TGZnqAYwjfAZjZoDGkWbtpAAAAAElFTkSuQmCC";const toe=r=>(Ra("data-v-1c24eb1e"),r=r(),ka(),r),roe={class:"left_a"},noe=Yi('<div class="chart_title" data-v-1c24eb1e><div class="chart_title_div" data-v-1c24eb1e>设备总览</div></div><div class="right_top" data-v-1c24eb1e><div class="right_top_div" data-v-1c24eb1e><div data-v-1c24eb1e><div class="complete" data-v-1c24eb1e>72%</div><div class="complete_text" data-v-1c24eb1e><img src="'+mr+'" data-v-1c24eb1e><div data-v-1c24eb1e>运行率</div><img src="'+mr+'" data-v-1c24eb1e></div></div><div data-v-1c24eb1e><div class="complete complete_num" data-v-1c24eb1e><div data-v-1c24eb1e>407</div><div class="complete_num_A" data-v-1c24eb1e>/420</div></div><div class="complete_text" data-v-1c24eb1e><img src="'+mr+'" data-v-1c24eb1e><div data-v-1c24eb1e>正常运行</div><img src="'+mr+'" data-v-1c24eb1e></div></div><div data-v-1c24eb1e><div class="complete patrol" data-v-1c24eb1e><div data-v-1c24eb1e>13</div><div class="complete_num_A" data-v-1c24eb1e>/420</div></div><div class="complete_text" data-v-1c24eb1e><img src="'+mr+'" data-v-1c24eb1e><div data-v-1c24eb1e>异常设备</div><img src="'+mr+'" data-v-1c24eb1e></div></div></div></div>',2),aoe={class:"right_bottom"},ioe=toe(()=>$("img",{src:eoe},null,-1)),ooe={class:"right_bottom_text"},soe={class:"right_bottom_value"},loe={__name:"LeftA",setup(r){let t=Ce([{titles:"水位计",types:"81",times:"/ 94"},{titles:"监控",types:"81",times:"/ 94"},{titles:"流量计",types:"81",times:"/ 94"},{titles:"水压计",types:"81",times:"/ 94"},{titles:"",types:"",times:""},{titles:"",types:"",times:""}]);return(e,n)=>(se(),ce("div",roe,[noe,$("div",aoe,[(se(!0),ce(bt,null,wr(Q(t),(a,i)=>(se(),ce("div",{key:i},[ioe,$("div",null,[$("div",null,Oe(a.titles),1),$("div",null,[$("div",ooe,Oe(a.types),1),$("div",soe,Oe(a.times),1)])])]))),128))])]))}},uoe=kt(loe,[["__scopeId","data-v-1c24eb1e"]]),foe=""+new URL("icon-06-38fe18ea.png",import.meta.url).href,coe=""+new URL("icon-03-c01f9ceb.png",import.meta.url).href;const hoe={class:"left_b"},voe=Yi('<div class="chart_title" data-v-a5c2db43><div class="chart_title_div" data-v-a5c2db43>设备报警监测</div></div><div class="chart_mian" data-v-a5c2db43><div data-v-a5c2db43><img src="'+foe+'" data-v-a5c2db43><div data-v-a5c2db43><div class="chart_mian_text" data-v-a5c2db43>总设备数(台)</div><div data-v-a5c2db43>123</div></div></div><div data-v-a5c2db43><img src="'+coe+'" data-v-a5c2db43><div data-v-a5c2db43><div class="chart_mian_text" data-v-a5c2db43>离线设备(台)</div><div data-v-a5c2db43>123</div></div></div></div>',2),doe={class:"right_bottom"},poe=Yi('<div class="table_header" data-v-a5c2db43><div class="table_header_name" data-v-a5c2db43>名称</div><div class="table_header_time" data-v-a5c2db43>编号</div><div class="table_header_name1" data-v-a5c2db43>位置</div><div class="table_header_time1" data-v-a5c2db43>报警内容</div><div class="table_header_time2" data-v-a5c2db43>操作</div></div>',1),goe={class:"table_header_name"},yoe={class:"table_header_time"},moe={class:"table_header_name1"},_oe={class:"table_header_time1"},Soe={class:"table_header_time2"},xoe={__name:"LeftB",setup(r){let t=[{title:"xxx设备名称",date:"红星水库",types:"详情",types1:"断电",states:"YY-001"},{title:"xxx设备名称",date:"红星水库",types:"详情",types1:"断电",states:"YY-001"},{title:"xxx设备名称",date:"红星水库",types:"详情",types1:"断电",states:"YY-001"},{title:"xxx设备名称",date:"红星水库",types:"详情",types1:"断电",states:"YY-001"},{title:"xxx设备名称",date:"红星水库",types:"详情",types1:"断电",states:"YY-001"},{title:"xxx设备名称",date:"红星水库",types:"详情",types1:"断电",states:"YY-001"},{title:"xxx设备名称",date:"红星水库",types:"详情",types1:"断电",states:"YY-001"},{title:"xxx设备名称",date:"红星水库",types:"详情",types1:"断电",states:"YY-001"},{title:"xxx设备名称",date:"红星水库",types:"详情",types1:"断电",states:"YY-001"}];return(e,n)=>{const a=vh("vue3-seamless-scroll");return se(),ce("div",hoe,[voe,$("div",doe,[poe,Ye(a,{list:Q(t),step:.5,hover:!0,wheel:!0,class:"scroll_core"},{default:br(()=>[(se(!0),ce(bt,null,wr(Q(t),(i,o)=>(se(),ce("div",{class:"scroll",key:o},[$("div",goe,Oe(i.title),1),$("div",yoe,Oe(i.states),1),$("div",moe,Oe(i.date),1),$("div",_oe,Oe(i.types1),1),$("div",Soe,Oe(i.types),1)]))),128))]),_:1},8,["list"])])])}}},boe=kt(xoe,[["__scopeId","data-v-a5c2db43"]]);const c_=r=>(Ra("data-v-ba643055"),r=r(),ka(),r),woe={class:"left_a"},Toe=c_(()=>$("div",{class:"chart_title"},[$("div",{class:"chart_title_div"},"设备日志")],-1)),Aoe={class:"journal_main"},Coe=c_(()=>$("div",{class:"img_item"},[$("div",null,"阀门开启"),$("div",{class:"img_item_div"},"2025-12-12")],-1)),Moe=c_(()=>$("img",{class:"chart_img_div",src:"https://qiniu.ynzhsk.cn//uploads/20231224/FgKcXpzGjSXjMejIdQy5OGGk1Gjl.jpg"},null,-1)),Doe={__name:"LeftC",setup(r){return(t,e)=>(se(),ce("div",woe,[Toe,$("div",Aoe,[Ye(Q(sM),{slidesPerView:"auto"},{default:br(()=>[(se(),ce(bt,null,wr(10,(n,a)=>Ye(Q(lM),{key:a},{default:br(()=>[Coe,Moe]),_:2},1024)),64))]),_:1})])]))}},Ioe=kt(Doe,[["__scopeId","data-v-ba643055"]]);const Loe={__name:"index",setup(r){const t=es();return(e,n)=>(se(),ce("div",{class:yt(["left_index1",[Q(t).activeTab[1].animation==="start"?"start_animation":"",Q(t).activeTab[1].animation==="end"?"end_animation":""]])},[Ye(uoe),Ye(boe),Ye(Ioe)],2))}},Poe=kt(Loe,[["__scopeId","data-v-c1c38b42"]]);const Eoe=r=>(Ra("data-v-da8a4b17"),r=r(),ka(),r),Roe={class:"right_b"},koe=Eoe(()=>$("div",{class:"chart_title"},[$("div",{class:"chart_title_div"},"设备运行状态")],-1)),Ooe={class:"right_top"},Noe=["onClick"],Boe={class:"right_bottom"},Voe=Yi('<div class="table_header" data-v-da8a4b17><div class="table_header_name" data-v-da8a4b17>名称</div><div class="table_header_time" data-v-da8a4b17>编号</div><div class="table_header_name1" data-v-da8a4b17>位置</div><div class="table_header_time1" data-v-da8a4b17>时长</div><div class="table_header_time2" data-v-da8a4b17>状态</div></div>',1),zoe={class:"table_header_name"},Goe={key:0,src:mR},Foe={class:"table_header_time"},Hoe={class:"table_header_name1"},Woe={class:"table_header_time1"},Uoe={__name:"RightA",setup(r){let t=[{title:"监控名称",date:"红星水库",types:"1.2h",states:"YY-001",types1:"正常"},{title:"监控名称",date:"红星水库",types:"1.2h",states:"YY-001",types1:"异常"},{title:"监控名称",date:"红星水库",types:"1.2h",states:"YY-001",types1:"正常"},{title:"监控名称",date:"红星水库",types:"1.2h",states:"YY-001",types1:"异常"},{title:"监控名称",date:"红星水库",types:"1.2h",states:"YY-001",types1:"正常"},{title:"监控名称",date:"红星水库",types:"1.2h",states:"YY-001",types1:"异常"},{title:"监控名称",date:"红星水库",types:"1.2h",states:"YY-001",types1:"正常"},{title:"监控名称",date:"红星水库",types:"1.2h",states:"YY-001",types1:"异常"},{title:"监控名称",date:"红星水库",types:"1.2h",states:"YY-001",types1:"正常"}],e=Ce(0),n=Ce([{name:"摄像头",values:"0"},{name:"雨量计",values:"1"},{name:"水位计",values:"1"}]);return Cr(()=>{}),(a,i)=>{const o=vh("vue3-seamless-scroll");return se(),ce("div",Roe,[koe,$("div",Ooe,[(se(!0),ce(bt,null,wr(Q(n),(s,l)=>(se(),ce("div",{key:l,class:yt(Q(e)==l?"highlight":"nohighlight"),onClick:u=>hh(e)?e.value=l:e=l},[$("div",null,Oe(s.name),1)],10,Noe))),128))]),$("div",Boe,[Voe,Ye(o,{list:Q(t),step:.5,hover:!0,wheel:!0,class:"scroll_core"},{default:br(()=>[(se(!0),ce(bt,null,wr(Q(t),(s,l)=>(se(),ce("div",{class:"scroll",key:l},[$("div",zoe,[s.types1=="异常"?(se(),ce("img",Goe)):Qs("",!0),$("div",null,Oe(s.title),1)]),$("div",Foe,Oe(s.states),1),$("div",Hoe,Oe(s.date),1),$("div",Woe,Oe(s.types),1),$("div",{class:yt(["table_header_time2",s.types1=="异常"?"highlight1":"nohighlight1"])},Oe(s.types1),3)]))),128))]),_:1},8,["list"])])])}}},$oe=kt(Uoe,[["__scopeId","data-v-da8a4b17"]]);const h_=r=>(Ra("data-v-5aa06571"),r=r(),ka(),r),Yoe={class:"right_b"},Xoe=h_(()=>$("div",{class:"chart_title"},[$("div",{class:"chart_title_div"},"设备运维事件")],-1)),Zoe=h_(()=>$("div",{class:"chart_main",id:"charts3"},null,-1)),qoe={class:"chart_bottom"},joe={class:"chart_bottom_top"},Koe={class:"chart_bottom_top_box1"},Qoe=h_(()=>$("div",{class:"chart_bottom_top_box2"},"【查看详情】",-1)),Joe={class:"chart_bottom_right chart_bottom_right1"},ese={class:"chart_bottom_right1_title"},tse={class:"chart_bottom_right1_time"},rse={__name:"RightB",setup(r){let t=null,n={title:{show:!1,text:"单位:万",left:30,textStyle:{color:"#4c9bfd"}},tooltip:{trigger:"axis"},legend:{show:!1,data:["数量"],left:"right",textStyle:{color:"#fff"}},grid:{left:"3%",right:"4%",bottom:"3%",top:"10%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,axisLabel:{color:"rgba(255, 255, 255, 0.56)"},data:["11","12","13","14","15","16","17"]},yAxis:{max:"dataMax",type:"value",axisLabel:{color:"rgba(255, 255, 255, 0.56)"},splitLine:{lineStyle:{color:"rgba(255, 255, 255, 0.2)"}}},series:[{name:"数量:",type:"line",stack:"总量",smooth:!0,symbolSize:0,itemStyle:{color:"rgba(245, 217, 108, 1)"},data:[[24,40,101,134,90,230,210]][0],areaStyle:{color:new ls(1,0,1,1,[{offset:0,color:"rgba(245, 217, 108, 0.4)"},{offset:1,color:"rgba(245, 217, 108, 0)"}])}}]},a=Ce([{titles:"雷雨预警:未来24小时内,部分地区会出现雷电天气,请大家注意防范。",types:"相关人员处理中",times:"2025-12-12 12:12"},{titles:"雷雨预警:未来24小时内,部分地区会出现雷电天气,请大家注意防范。",types:"待相关人员处理",times:"2025-12-12 12:12"},{titles:"雷雨预警:未来24小时内,部分地区会出现雷电天气,请大家注意防范。",types:"相关人员处理中",times:"2025-12-12 12:12"},{titles:"雷雨预警:未来24小时内,部分地区会出现雷电天气,请大家注意防范。",types:"相关人员处理中",times:"2025-12-12 12:12"}]);return Cr(()=>{t=DI(document.getElementById("charts3")),t.setOption(n)}),(i,o)=>(se(),ce("div",Yoe,[Xoe,Zoe,$("div",qoe,[(se(!0),ce(bt,null,wr(Q(a),(s,l)=>(se(),ce("div",{key:l,class:yt(s.types=="相关人员处理中"?"chart_bottom_box1":"chart_bottom_box2")},[$("div",joe,[$("div",Koe,Oe(s.titles),1),Qoe]),$("div",Joe,[$("div",ese,Oe(s.types),1),$("div",tse,Oe(s.times),1)])],2))),128))])]))}},nse=kt(rse,[["__scopeId","data-v-5aa06571"]]);const ase={__name:"index",setup(r){const t=es();return(e,n)=>(se(),ce("div",{class:yt(["right_index1",[Q(t).activeTab[1].animation==="start"?"start_animation":"",Q(t).activeTab[1].animation==="end"?"end_animation":""]])},[Ye($oe),Ye(nse)],2))}},ise=kt(ase,[["__scopeId","data-v-835b51c5"]]),ose={__name:"index",setup(r){return(t,e)=>(se(),ce(bt,null,[Ye(Poe),Ye(ise)],64))}};const sse={class:"main"},lse={__name:"index",setup(r){const t=LR(),e=es(),n=t.query.id;return Cr(()=>{e.steActiveName(n),e.steActiveTab(e.activeTabIndex,"end"),setTimeout(()=>{e.steActiveTab(n,"start")},1500)}),(a,i)=>(se(),ce("div",sse,[Ye(o5),Ye(S5),Ye(Jie),Ye(ose)]))}},fse=kt(lse,[["__scopeId","data-v-93b1ddd4"]]);export{fse as default};