argus-code 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- argus/__init__.py +3 -0
- argus/adapters/__init__.py +7 -0
- argus/adapters/base.py +108 -0
- argus/adapters/claude_code/__init__.py +5 -0
- argus/adapters/claude_code/adapter.py +63 -0
- argus/adapters/claude_code/discover.py +72 -0
- argus/adapters/claude_code/extract_tool_calls.py +86 -0
- argus/adapters/claude_code/extract_transcript.py +111 -0
- argus/adapters/claude_code/extract_turns.py +69 -0
- argus/adapters/claude_code/history_jsonl.py +138 -0
- argus/adapters/claude_code/ingest_file.py +137 -0
- argus/adapters/claude_code/model.py +11 -0
- argus/adapters/claude_code/schemas.py +77 -0
- argus/adapters/registry.py +30 -0
- argus/cli.py +384 -0
- argus/collector/__init__.py +0 -0
- argus/collector/aggregate.py +102 -0
- argus/collector/first_run.py +189 -0
- argus/collector/pipeline.py +140 -0
- argus/collector/rollup_subagents.py +27 -0
- argus/collector/scheduler.py +89 -0
- argus/collector/search_backfill.py +109 -0
- argus/collector/watcher.py +178 -0
- argus/dashboard-dist/_astro/charts.BIevw6Es.js +1 -0
- argus/dashboard-dist/_astro/format.DxC1NGYT.js +1 -0
- argus/dashboard-dist/_astro/index.astro_astro_type_script_index_0_lang.CgwSARdD.js +24 -0
- argus/dashboard-dist/_astro/index.astro_astro_type_script_index_0_lang.W18SJsr7.js +11 -0
- argus/dashboard-dist/_astro/installCanvasRenderer.D_tC6TXz.js +18 -0
- argus/dashboard-dist/_astro/models.astro_astro_type_script_index_0_lang.BHTHXYHC.js +13 -0
- argus/dashboard-dist/_astro/prompts.astro_astro_type_script_index_0_lang.DfNgiDv9.js +17 -0
- argus/dashboard-dist/_astro/session.astro_astro_type_script_index_0_lang.Dj_bfrIa.js +86 -0
- argus/dashboard-dist/_astro/settings.astro_astro_type_script_index_0_lang.d_a-uvdi.js +24 -0
- argus/dashboard-dist/_astro/tools.astro_astro_type_script_index_0_lang.Dzzau3Yt.js +12 -0
- argus/dashboard-dist/_astro/trends.astro_astro_type_script_index_0_lang.BLLeGRNa.js +5 -0
- argus/dashboard-dist/index.html +2 -0
- argus/dashboard-dist/models/index.html +1 -0
- argus/dashboard-dist/prompts/index.html +18 -0
- argus/dashboard-dist/session/index.html +2 -0
- argus/dashboard-dist/sessions/index.html +1 -0
- argus/dashboard-dist/settings/index.html +8 -0
- argus/dashboard-dist/styles/global.css +307 -0
- argus/dashboard-dist/tools/index.html +1 -0
- argus/dashboard-dist/trends/index.html +1 -0
- argus/detectors/__init__.py +6 -0
- argus/detectors/base.py +34 -0
- argus/detectors/registry.py +20 -0
- argus/detectors/tool_error_rate_spike.py +138 -0
- argus/pricing/2026-05-02.json +24 -0
- argus/pricing/__init__.py +0 -0
- argus/pricing/compute.py +46 -0
- argus/pricing/load.py +45 -0
- argus/pricing/refresh.py +91 -0
- argus/pricing/types.py +21 -0
- argus/scaffold/__init__.py +0 -0
- argus/scaffold/scaffolder.py +45 -0
- argus/scaffold/snapshot.py +73 -0
- argus/scaffold/storage.py +60 -0
- argus/schema/__init__.py +0 -0
- argus/schema/types.py +157 -0
- argus/server/__init__.py +0 -0
- argus/server/api.py +661 -0
- argus/server/app.py +97 -0
- argus/store/__init__.py +0 -0
- argus/store/db.py +103 -0
- argus/store/migrations/__init__.py +0 -0
- argus/store/migrations/inline.py +180 -0
- argus/store/repository.py +778 -0
- argus/templates/default/.claude/agents/code-reviewer.md +27 -0
- argus/templates/default/.claude/agents/security-auditor.md +28 -0
- argus/templates/default/.claude/commands/commit.md +38 -0
- argus/templates/default/.claude/commands/deploy.md +13 -0
- argus/templates/default/.claude/commands/fix-issue.md +15 -0
- argus/templates/default/.claude/commands/pr.md +38 -0
- argus/templates/default/.claude/commands/review.md +14 -0
- argus/templates/default/.claude/rules/api-conventions.md +27 -0
- argus/templates/default/.claude/rules/code-style.md +25 -0
- argus/templates/default/.claude/rules/testing.md +19 -0
- argus/templates/default/.claude/settings.json +28 -0
- argus/templates/default/.claude/skills/example/SKILL.md +11 -0
- argus/templates/default/CLAUDE.md +57 -0
- argus_code-0.2.0.dist-info/METADATA +247 -0
- argus_code-0.2.0.dist-info/RECORD +86 -0
- argus_code-0.2.0.dist-info/WHEEL +4 -0
- argus_code-0.2.0.dist-info/entry_points.txt +2 -0
- argus_code-0.2.0.dist-info/licenses/LICENSE +21 -0
- argus_code-0.2.0.dist-info/licenses/NOTICE +22 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var Ru=function(e,t){return Ru=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Ru(e,t)};function F(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ru(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Wm=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Um=(function(){function e(){this.browser=new Wm,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 e})(),q=new Um;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(q.wxa=!0,q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?q.worker=!0:!q.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(q.node=!0,q.svgSupported=!0):Ym(navigator.userAgent,q);function Ym(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var Ql=12,Xm="sans-serif",gr=Ql+"px "+Xm,$m=20,Zm=100,qm="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Km(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-$m)/Zm;t[i]=n}return t}var Qm=Km(qm),qe={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,i){if(!e){var n=qe.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||gr),e.measureText(r);r=r||"",i=i||gr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Ql,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=Qm[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i}},Kd=yr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Qd=yr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ia=Object.prototype.toString,$o=Array.prototype,Jm=$o.forEach,jm=$o.filter,Jl=$o.slice,t0=$o.map,ph=function(){}.constructor,ha=ph?ph.prototype:null,jl="__proto__",e0=2311;function Jd(){return e0++}function tf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function et(e){if(e==null||typeof e!="object")return e;var t=e,r=ia.call(e);if(r==="[object Array]"){if(!Cn(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=et(e[i])}}else if(Qd[r]){if(!Cn(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!Kd[r]&&!Cn(e)&&!Fn(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==jl&&(t[o]=et(e[o]))}return t}function at(e,t,r){if(!G(t)||!G(e))return r?et(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==jl){var n=e[i],a=t[i];G(a)&&G(n)&&!N(a)&&!N(n)&&!Fn(a)&&!Fn(n)&&!gh(a)&&!gh(n)&&!Cn(a)&&!Cn(n)?at(n,a,r):(r||!(i in e))&&(e[i]=et(t[i]))}return e}function E(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==jl&&(e[r]=t[r]);return e}function lt(e,t,r){for(var i=dt(t),n=0,a=i.length;n<a;n++){var o=i[n];e[o]==null&&(e[o]=t[o])}return e}function it(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function r0(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function Ne(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else lt(e,t)}function Wt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function T(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Jm)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Y(e,t,r){if(!e)return[];if(!t)return ef(e);if(e.map&&e.map===t0)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function yr(e,t,r,i){if(e&&t){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function Mt(e,t,r){if(!e)return[];if(!t)return ef(e);if(e.filter&&e.filter===jm)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function i0(e,t,r){if(e&&t){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function dt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function n0(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(Jl.call(arguments)))}}var vt=ha&&K(ha.bind)?ha.call.bind(ha.bind):n0;function bt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Jl.call(arguments)))}}function N(e){return Array.isArray?Array.isArray(e):ia.call(e)==="[object Array]"}function K(e){return typeof e=="function"}function z(e){return typeof e=="string"}function Eu(e){return ia.call(e)==="[object String]"}function ct(e){return typeof e=="number"}function G(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function gh(e){return!!Kd[ia.call(e)]}function Ut(e){return!!Qd[ia.call(e)]}function Fn(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Zo(e){return e.colorStops!=null}function a0(e){return e.image!=null}function zn(e){return e!==e}function yo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function $(e,t){return e??t}function Oi(e,t,r){return e??t??r}function ef(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Jl.apply(e,t)}function rf(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ke(e,t){if(!e)throw new Error(t)}function Pe(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var jd="__ec_primitive__";function ku(e){e[jd]=!0}function Cn(e){return e[jd]}var o0=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return dt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e})(),tp=typeof Map=="function";function s0(){return tp?new Map:new o0}var u0=(function(){function e(t){var r=N(t);this.data=s0();var i=this;t instanceof e?t.each(n):t&&T(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return tp?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function j(e){return new u0(e)}function l0(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function qo(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&E(r,t),r}function ep(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function de(e,t){return e.hasOwnProperty(t)}function Vt(){}var f0=180/Math.PI;function $i(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function h0(e){return[e[0],e[1]]}function yh(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function v0(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function c0(e){return Math.sqrt(d0(e))}function d0(e){return e[0]*e[0]+e[1]*e[1]}function ds(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function p0(e,t){var r=c0(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Ou(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var g0=Ou;function y0(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Bi=y0;function BA(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}function ue(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function Li(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Pi(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var hi=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),m0=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new hi(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new hi(r,t),"drag",t.event);var s=this.handler.findHover(i,n,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new hi(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new hi(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new hi(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new hi(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Fe=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var u={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],u=n.length,l=0;l<u;l++){var f=n[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e})(),_0=Math.log(2);function Bu(e,t,r,i,n,a){var o=i+"-"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/_0);return e[r][u]}for(var l=i|1<<r,f=r+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&n||(h+=(v%2?-1:1)*e[r][c]*Bu(e,t-1,f,l,n|d,a),v++)}return a[o]=h,h}function mh(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=Bu(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Bu(r,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var mo="___zrEVENTSAVED",ps=[];function S0(e,t,r,i,n){return Nu(ps,t,i,n,!0)&&Nu(e,r,ps[0],ps[1])}function x0(e,t){e&&r(e),t&&r(t);function r(i){var n=i[mo];n&&(n.clearMarkers&&n.clearMarkers(),delete i[mo])}}function Nu(e,t,r,i,n){if(t.getBoundingClientRect&&q.domSupported&&!rp(t)){var a=t[mo]||(t[mo]={}),o=w0(t,a),s=b0(o,a,n);if(s)return s(e,r,i),!0}return!1}function w0(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){T(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function b0(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=r?mh(s,o):mh(o,s))}function rp(e){return e.nodeName.toUpperCase()==="CANVAS"}var T0=/([&<>"'])/g,C0={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ft(e){return e==null?"":(e+"").replace(T0,function(t,r){return C0[r]})}var M0=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gs=[],D0=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function Fu(e,t,r,i){return r=r||{},i?_h(e,t,r):D0&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):_h(e,t,r),r}function _h(e,t,r){if(q.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(rp(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Nu(gs,e,i,n)){r.zrX=gs[0],r.zrY=gs[1];return}}r.zrX=r.zrY=0}function nf(e){return e||window.event}function te(e,t,r){if(t=nf(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Fu(e,o,t,r)}else{Fu(e,t,t,r);var a=A0(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&M0.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function A0(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function L0(e,t,r,i){e.addEventListener(t,r,i)}function P0(e,t,r,i){e.removeEventListener(t,r,i)}var ip=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},I0=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o<s;o++){var u=n[o],l=Fu(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in ys)if(ys.hasOwnProperty(r)){var i=ys[r](this._track,t);if(i)return i}},e})();function Sh(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function R0(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var ys={pinch:function(e,t){var r=e.length;if(r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Sh(i)/Sh(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=R0(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ze(){return[1,0,0,1,0,0]}function af(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function np(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Mn(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function zu(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function of(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=n*h+s*f,e[1]=-n*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-i[0])+f*(l-i[1])+i[0],e[5]=h*(l-i[1])-f*(o-i[0])+i[1],e}function E0(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function na(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*i;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-i*u,e[3]=r*u,e[4]=(i*s-o*n)*u,e[5]=(a*n-r*s)*u,e):null}var st=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e})(),Qr=Math.min,Ii=Math.max,Hu=Math.abs,xh=["x","y"],k0=["width","height"],Mr=new st,Dr=new st,Ar=new st,Lr=new st,$t=ap(),yn=$t.minTv,Gu=$t.maxTv,Dn=[0,0],J=(function(){function e(t,r,i,n){e.set(this,t,r,i,n)}return e.set=function(t,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),t.x=r,t.y=i,t.width=n,t.height=a,t},e.prototype.union=function(t){var r=Qr(t.x,this.x),i=Qr(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ii(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ii(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Ze();return zu(a,a,[-r.x,-r.y]),E0(a,a,[i,n]),zu(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r,i){return e.intersect(this,t,r,i)},e.intersect=function(t,r,i,n){i&&st.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(O0,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(B0,r.x,r.y,r.width,r.height));var s=!!i;$t.reset(n,s);var u=$t.touchThreshold,l=t.x+u,f=t.x+t.width-u,h=t.y+u,c=t.y+t.height-u,v=r.x+u,d=r.x+r.width-u,y=r.y+u,g=r.y+r.height-u;if(l>f||h>c||v>d||y>g)return!1;var p=!(f<v||d<l||c<y||g<h);return(s||a)&&(Dn[0]=1/0,Dn[1]=0,wh(l,f,v,d,0,s,a,o),wh(h,c,y,g,1,s,a,o),s&&st.copy(i,p?$t.useDir?$t.dirMinTv:yn:Gu)),p},e.contain=function(t,r,i){return r>=t.x&&r<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Mr.x=Ar.x=r.x,Mr.y=Lr.y=r.y,Dr.x=Lr.x=r.x+r.width,Dr.y=Ar.y=r.y+r.height,Mr.transform(i),Lr.transform(i),Dr.transform(i),Ar.transform(i),t.x=Qr(Mr.x,Dr.x,Ar.x,Lr.x),t.y=Qr(Mr.y,Dr.y,Ar.y,Lr.y);var u=Ii(Mr.x,Dr.x,Ar.x,Lr.x),l=Ii(Mr.y,Dr.y,Ar.y,Lr.y);t.width=u-t.x,t.height=l-t.y},e})(),O0=new J(0,0,0,0),B0=new J(0,0,0,0);function wh(e,t,r,i,n,a,o,s){var u=Hu(t-r),l=Hu(i-e),f=Qr(u,l),h=xh[n],c=xh[1-n],v=k0[n];t<r||i<e?u<l?(a&&(Gu[h]=-u),s&&(o[h]=t,o[v]=0)):(a&&(Gu[h]=l),s&&(o[h]=e,o[v]=0)):(o&&(o[h]=Ii(e,r),o[v]=Qr(t,i)-o[h]),a&&(f<Dn[0]||$t.useDir)&&(Dn[0]=Qr(f,Dn[0]),(u<l||!$t.bidirectional)&&(yn[h]=u,yn[c]=0,$t.useDir&&$t.calcDirMTV()),(u>=l||!$t.bidirectional)&&(yn[h]=-l,yn[c]=0,$t.useDir&&$t.calcDirMTV())))}function ap(){var e=0,t=new st,r=new st,i={minTv:new st,maxTv:new st,useDir:!1,dirMinTv:new st,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Ii(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),e=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(e),l=Math.cos(e),f=u*a.y+l*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Hu(a)<1e-10}return i}var op="silent";function N0(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:F0}}function F0(){ip(this.event)}var z0=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Fe),Ji=(function(){function e(t,r){this.x=t,this.y=r}return e})(),H0=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ms=new J(0,0,0,0),sp=(function(e){F(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Ji(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new z0,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new m0(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(T(H0,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=up(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Ji(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Ji(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=N0(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Ji(r,i);if(bh(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new J(r-l,i-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(ms.copy(c.getBoundingRect()),c.transform&&ms.applyTransform(c.transform),ms.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,y=Math.PI*2,g=0;g<l;g+=v)for(var p=0;p<y;p+=d){var m=r+g*Math.cos(p),_=i+g*Math.sin(p);if(bh(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new I0);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ji;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Fe);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){sp.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=up(this,r,i),a,o;if((e!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||g0(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function G0(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?op:!0}return!1}function bh(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=G0(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==op)){t.target=o;break}}}function up(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var lp=32,ji=7;function V0(e){for(var t=0;e>=lp;)t|=e&1,e>>=1;return e+t}function Th(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;W0(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function W0(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function Ch(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,e[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function _s(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])>0){for(s=i-n;u<s&&a(e,t[r+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(e,t[r+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function Ss(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])<0){for(s=n+1;u<s&&a(e,t[r+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(e,t[r+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function U0(e,t){var r=ji,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var d=i[v],y=n[v],g=i[v+1],p=n[v+1];n[v]=y+p,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var m=Ss(e[g],e,d,y,0,t);d+=m,y-=m,y!==0&&(p=_s(e[d+y-1],e,g,p,p-1,t),p!==0&&(y<=p?h(d,y,g,p):c(d,y,g,p)))}function h(v,d,y,g){var p=0;for(p=0;p<d;p++)o[p]=e[v+p];var m=0,_=y,S=v;if(e[S++]=e[_++],--g===0){for(p=0;p<d;p++)e[S+p]=o[m+p];return}if(d===1){for(p=0;p<g;p++)e[S+p]=e[_+p];e[S+g]=o[m];return}for(var w=r,x,b,M;;){x=0,b=0,M=!1;do if(t(e[_],o[m])<0){if(e[S++]=e[_++],b++,x=0,--g===0){M=!0;break}}else if(e[S++]=o[m++],x++,b=0,--d===1){M=!0;break}while((x|b)<w);if(M)break;do{if(x=Ss(e[_],o,m,d,0,t),x!==0){for(p=0;p<x;p++)e[S+p]=o[m+p];if(S+=x,m+=x,d-=x,d<=1){M=!0;break}}if(e[S++]=e[_++],--g===0){M=!0;break}if(b=_s(o[m],e,_,g,0,t),b!==0){for(p=0;p<b;p++)e[S+p]=e[_+p];if(S+=b,_+=b,g-=b,g===0){M=!0;break}}if(e[S++]=o[m++],--d===1){M=!0;break}w--}while(x>=ji||b>=ji);if(M)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(p=0;p<g;p++)e[S+p]=e[_+p];e[S+g]=o[m]}else{if(d===0)throw new Error;for(p=0;p<d;p++)e[S+p]=o[m+p]}}function c(v,d,y,g){var p=0;for(p=0;p<g;p++)o[p]=e[y+p];var m=v+d-1,_=g-1,S=y+g-1,w=0,x=0;if(e[S--]=e[m--],--d===0){for(w=S-(g-1),p=0;p<g;p++)e[w+p]=o[p];return}if(g===1){for(S-=d,m-=d,x=S+1,w=m+1,p=d-1;p>=0;p--)e[x+p]=e[w+p];e[S]=o[_];return}for(var b=r;;){var M=0,D=0,A=!1;do if(t(o[_],e[m])<0){if(e[S--]=e[m--],M++,D=0,--d===0){A=!0;break}}else if(e[S--]=o[_--],D++,M=0,--g===1){A=!0;break}while((M|D)<b);if(A)break;do{if(M=d-Ss(o[_],e,v,d,d-1,t),M!==0){for(S-=M,m-=M,d-=M,x=S+1,w=m+1,p=M-1;p>=0;p--)e[x+p]=e[w+p];if(d===0){A=!0;break}}if(e[S--]=o[_--],--g===1){A=!0;break}if(D=g-_s(e[m],o,0,g,g-1,t),D!==0){for(S-=D,_-=D,g-=D,x=S+1,w=_+1,p=0;p<D;p++)e[x+p]=o[w+p];if(g<=1){A=!0;break}}if(e[S--]=e[m--],--d===0){A=!0;break}b--}while(M>=ji||D>=ji);if(A)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),g===1){for(S-=d,m-=d,x=S+1,w=m+1,p=d-1;p>=0;p--)e[x+p]=e[w+p];e[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),p=0;p<g;p++)e[w+p]=o[p]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function eo(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<lp){a=Th(e,r,i,t),Ch(e,r,i,r+a,t);return}var o=U0(e,t),s=V0(n);do{if(a=Th(e,r,i,t),a<s){var u=n;u>s&&(u=s),Ch(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Zt=1,mn=2,Ai=4,Mh=!1;function xs(){Mh||(Mh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Dh(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Y0=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Dh}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,eo(i,Dh)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=n,f=t;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var v=h[c];t.__dirty&&(v.__dirty|=Zt),this._updateAndAddDisplayable(v,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(xs(),d.z=0),isNaN(d.z2)&&(xs(),d.z2=0),isNaN(d.zlevel)&&(xs(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var y=t.getDecalElement&&t.getDecalElement();y&&this._updateAndAddDisplayable(y,s,i);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,s,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=it(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),_o;_o=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var An={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-An.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?An.bounceIn(e*2)*.5:An.bounceOut(e*2-1)*.5+.5}},va=Math.pow,vr=Math.sqrt,So=1e-8,fp=1e-4,Ah=vr(3),ca=1/3,Le=$i(),ie=$i(),Ni=$i();function lr(e){return e>-So&&e<So}function hp(e){return e>So||e<-So}function Bt(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function Lh(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function vp(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-n,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(lr(f)&&lr(h))if(lr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=h*h-4*f*c;if(lr(y)){var g=h/f,d=-s/o+g,p=-g/2;d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p)}else if(y>0){var m=vr(y),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-va(-_,ca):_=va(_,ca),S<0?S=-va(-S,ca):S=va(S,ca);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*vr(f*f*f)),x=Math.acos(w)/3,b=vr(f),M=Math.cos(x),d=(-s-2*b*M)/(3*o),p=(-s+b*(M+Ah*Math.sin(x)))/(3*o),D=(-s+b*(M-Ah*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p),D>=0&&D<=1&&(a[v++]=D)}}return v}function cp(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,u=0;if(lr(o)){if(hp(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(lr(f))n[0]=-a/(2*o);else if(f>0){var h=vr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function xo(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,u=(i-r)*n+r,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function X0(e,t,r,i,n,a,o,s,u,l,f){var h,c=.005,v=1/0,d,y,g,p;Le[0]=u,Le[1]=l;for(var m=0;m<1;m+=.05)ie[0]=Bt(e,r,n,o,m),ie[1]=Bt(t,i,a,s,m),g=Bi(Le,ie),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<fp);_++)d=h-c,y=h+c,ie[0]=Bt(e,r,n,o,d),ie[1]=Bt(t,i,a,s,d),g=Bi(ie,Le),d>=0&&g<v?(h=d,v=g):(Ni[0]=Bt(e,r,n,o,y),Ni[1]=Bt(t,i,a,s,y),p=Bi(Ni,Le),y<=1&&p<v?(h=y,v=p):c*=.5);return vr(v)}function $0(e,t,r,i,n,a,o,s,u){for(var l=e,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,y=Bt(e,r,n,o,d),g=Bt(t,i,a,s,d),p=y-l,m=g-f;h+=Math.sqrt(p*p+m*m),l=y,f=g}return h}function zt(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function Ph(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function Z0(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,u=0;if(lr(a)){if(hp(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(lr(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=vr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function dp(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function wo(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function q0(e,t,r,i,n,a,o,s,u){var l,f=.005,h=1/0;Le[0]=o,Le[1]=s;for(var c=0;c<1;c+=.05){ie[0]=zt(e,r,n,c),ie[1]=zt(t,i,a,c);var v=Bi(Le,ie);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<fp);d++){var y=l-f,g=l+f;ie[0]=zt(e,r,n,y),ie[1]=zt(t,i,a,y);var v=Bi(ie,Le);if(y>=0&&v<h)l=y,h=v;else{Ni[0]=zt(e,r,n,g),Ni[1]=zt(t,i,a,g);var p=Bi(Ni,Le);g<=1&&p<h?(l=g,h=p):f*=.5}}return vr(h)}function K0(e,t,r,i,n,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=zt(e,r,n,c),d=zt(t,i,a,c),y=v-s,g=d-u;l+=Math.sqrt(y*y+g*g),s=v,u=d}return l}var Q0=/cubic-bezier\(([0-9,\.e ]+)\)/;function pp(e){var t=e&&Q0.exec(e);if(t){var r=t[1].split(","),i=+Pe(r[0]),n=+Pe(r[1]),a=+Pe(r[2]),o=+Pe(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:vp(0,i,a,1,u,s)&&Bt(0,n,o,1,s[0])}}}var J0=(function(){function e(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||Vt,this.ondestroy=t.ondestroy||Vt,this.onrestart=t.onrestart||Vt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=n%i;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=K(t)?t:An[t]||pp(t)},e})(),gp=(function(){function e(t){this.value=t}return e})(),j0=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new gp(t);return this.insertEntry(r),r},e.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++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),zi=(function(){function e(t){this._list=new j0,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new gp(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),Ih={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 pe(e){return e=Math.round(e),e<0?0:e>255?255:e}function t_(e){return e=Math.round(e),e<0?0:e>360?360:e}function Hn(e){return e<0?0:e>1?1:e}function ws(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?pe(parseFloat(t)/100*255):pe(parseInt(t,10))}function ei(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Hn(parseFloat(t)/100):Hn(parseFloat(t))}function bs(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function fr(e,t,r){return e+(t-e)*r}function jt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Vu(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var yp=new zi(20),da=null;function vi(e,t){da&&Vu(da,t),da=yp.put(e,da||t.slice())}function ge(e,t){if(e){t=t||[];var r=yp.get(e);if(r)return Vu(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Ih)return Vu(t,Ih[i]),vi(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){jt(t,0,0,0,1);return}return jt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),vi(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){jt(t,0,0,0,1);return}return jt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),vi(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?jt(t,+l[0],+l[1],+l[2],1):jt(t,0,0,0,1);f=ei(l.pop());case"rgb":if(l.length>=3)return jt(t,ws(l[0]),ws(l[1]),ws(l[2]),l.length===3?f:ei(l[3])),vi(e,t),t;jt(t,0,0,0,1);return;case"hsla":if(l.length!==4){jt(t,0,0,0,1);return}return l[3]=ei(l[3]),Wu(l,t),vi(e,t),t;case"hsl":if(l.length!==3){jt(t,0,0,0,1);return}return Wu(l,t),vi(e,t),t;default:return}}jt(t,0,0,0,1)}}function Wu(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=ei(e[1]),n=ei(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],jt(t,pe(bs(o,a,r+1/3)*255),pe(bs(o,a,r)*255),pe(bs(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function e_(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?u=c-h:r===a?u=1/3+f-c:i===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return e[3]!=null&&v.push(e[3]),v}}function Rh(e,t){var r=ge(e);if(r){for(var i=0;i<3;i++)r[i]=r[i]*(1-t)|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Zi(r,r.length===4?"rgba":"rgb")}}function NA(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],u=i-n;return r[0]=pe(fr(o[0],s[0],u)),r[1]=pe(fr(o[1],s[1],u)),r[2]=pe(fr(o[2],s[2],u)),r[3]=Hn(fr(o[3],s[3],u)),r}}function FA(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=ge(t[n]),s=ge(t[a]),u=i-n,l=Zi([pe(fr(o[0],s[0],u)),pe(fr(o[1],s[1],u)),pe(fr(o[2],s[2],u)),Hn(fr(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:n,rightIndex:a,value:i}:l}}function Uu(e,t,r,i){var n=ge(e);if(e)return n=e_(n),t!=null&&(n[0]=t_(K(t)?t(n[0]):t)),r!=null&&(n[1]=ei(K(r)?r(n[1]):r)),i!=null&&(n[2]=ei(K(i)?i(n[2]):i)),Zi(Wu(n),"rgba")}function zA(e,t){var r=ge(e);if(r&&t!=null)return r[3]=Hn(t),Zi(r,"rgba")}function Zi(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function bo(e,t){var r=ge(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Eh=new zi(100);function kh(e){if(z(e)){var t=Eh.get(e);return t||(t=Rh(e,-.1),Eh.put(e,t)),t}else if(Zo(e)){var r=E({},e);return r.colorStops=Y(e.colorStops,function(i){return{offset:i.offset,color:Rh(i.color,-.1)}}),r}return e}function r_(e){return e.type==="linear"}function i_(e){return e.type==="radial"}(function(){return q.hasGlobalWindow&&K(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Yu=Array.prototype.slice;function Ue(e,t,r){return(t-e)*r+e}function Ts(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=Ue(t[a],r[a],i);return e}function n_(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Ue(t[o][s],r[o][s],i)}return e}function pa(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function Oh(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function a_(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function o_(e,t,r){var i=e,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var u=a;u<o;u++)i.push(r===1?n[u]:Yu.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(r===1)isNaN(i[u])&&(i[u]=n[u]);else for(var f=0;f<l;f++)isNaN(i[u][f])&&(i[u][f]=n[u][f])}}function ro(e){if(Wt(e)){var t=e.length;if(Wt(e[0])){for(var r=[],i=0;i<t;i++)r.push(Yu.call(e[i]));return r}return Yu.call(e)}return e}function io(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function s_(e){return Wt(e&&e[0])?2:1}var ga=0,no=1,mp=2,_n=3,Xu=4,$u=5,Bh=6;function Nh(e){return e===Xu||e===$u}function ya(e){return e===no||e===mp}var tn=[0,0,0,0],u_=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Bh,u=r;if(Wt(r)){var l=s_(r);s=l,(l===1&&!ct(r[0])||l===2&&!ct(r[0][0]))&&(o=!0)}else if(ct(r)&&!zn(r))s=ga;else if(z(r))if(!isNaN(+r))s=ga;else{var f=ge(r);f&&(u=f,s=_n)}else if(Zo(r)){var h=E({},u);h.colorStops=Y(r.colorStops,function(v){return{offset:v.offset,color:ge(v.color)}}),r_(r)?s=Xu:i_(r)&&(s=$u),u=h}a===0?this.valType=s:(s!==this.valType||s===Bh)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return i&&(c.easing=i,c.easingFunc=K(i)?i:An[i]||pp(i)),n.push(c),c},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(y,g){return y.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=ya(n),l=Nh(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?o_(c,v,n):l&&a_(c.colorStops,v.colorStops))}if(!s&&n!==$u&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var d=i[0].value,f=0;f<a;f++)n===ga?i[f].additiveValue=i[f].value-d:n===_n?i[f].additiveValue=pa([],i[f].value,d,-1):ya(n)&&(i[f].additiveValue=n===no?pa([],i[f].value,d,-1):Oh([],i[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===_n,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var y=c(h+1,s-1);for(f=y;f>=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-v.percent,p=g===0?1:c((r-v.percent)/g,1);d.easingFunc&&(p=d.easingFunc(p));var m=i?this._additiveValue:l?tn:t[u];if((ya(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=p<1?v.rawValue:d.rawValue;else if(ya(a))a===no?Ts(m,v[n],d[n],p):n_(m,v[n],d[n],p);else if(Nh(a)){var _=v[n],S=d[n],w=a===Xu;t[u]={type:w?"linear":"radial",x:Ue(_.x,S.x,p),y:Ue(_.y,S.y,p),colorStops:Y(_.colorStops,function(b,M){var D=S.colorStops[M];return{offset:Ue(b.offset,D.offset,p),color:io(Ts([],b.color,D.color,p))}}),global:S.global},w?(t[u].x2=Ue(_.x2,S.x2,p),t[u].y2=Ue(_.y2,S.y2,p)):t[u].r=Ue(_.r,S.r,p)}else if(l)Ts(m,v[n],d[n],p),i||(t[u]=io(m));else{var x=Ue(v[n],d[n],p);i?this._additiveValue=x:t[u]=x}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===ga?t[i]=t[i]+n:r===_n?(ge(t[i],tn),pa(tn,tn,n,1),t[i]=io(tn)):r===no?pa(t[i],t[i],n,1):r===mp&&Oh(t[i],t[i],n,1)},e})(),sf=(function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){tf("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,dt(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new u_(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===_n&&l&&(l=io(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,ro(l),n),this._trackKeys.push(s)}u.addKeyframe(t,ro(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new J0({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var y=!1,g=0;g<d.length;g++)if(d[g]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(r._target,v);var p=r._onframeCbs;if(p)for(var g=0;g<p.length;g++)p[g](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Y(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,i){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=ro(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||dt(t);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function Ri(){return new Date().getTime()}var l_=(function(e){F(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Ri()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(_o(i),!r._paused&&r.update())}_o(i)},t.prototype.start=function(){this._running||(this._time=Ri(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ri(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ri()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new sf(r,i.loop);return this.addAnimator(n),n},t})(Fe),f_=300,Cs=q.domSupported,Ms=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Y(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}})(),Fh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},zh=!1;function Zu(e){var t=e.pointerType;return t==="pen"||t==="touch"}function h_(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Ds(e){e&&(e.zrByTouch=!0)}function v_(e,t){return te(e.dom,new c_(e,t),!0)}function _p(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var c_=(function(){function e(t,r){this.stopPropagation=Vt,this.stopImmediatePropagation=Vt,this.preventDefault=Vt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),ve={mousedown:function(e){e=te(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=te(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=te(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=te(this.dom,e);var t=e.toElement||e.relatedTarget;_p(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){zh=!0,e=te(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){zh||(e=te(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=te(this.dom,e),Ds(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ve.mousemove.call(this,e),ve.mousedown.call(this,e)},touchmove:function(e){e=te(this.dom,e),Ds(e),this.handler.processGesture(e,"change"),ve.mousemove.call(this,e)},touchend:function(e){e=te(this.dom,e),Ds(e),this.handler.processGesture(e,"end"),ve.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<f_&&ve.click.call(this,e)},pointerdown:function(e){ve.mousedown.call(this,e)},pointermove:function(e){Zu(e)||ve.mousemove.call(this,e)},pointerup:function(e){ve.mouseup.call(this,e)},pointerout:function(e){Zu(e)||ve.mouseout.call(this,e)}};T(["click","dblclick","contextmenu"],function(e){ve[e]=function(t){t=te(this.dom,t),this.trigger(e,t)}});var qu={pointermove:function(e){Zu(e)||qu.mousemove.call(this,e)},pointerup:function(e){qu.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function d_(e,t){var r=t.domHandlers;q.pointerEventsSupported?T(Ms.pointer,function(i){ao(t,i,function(n){r[i].call(e,n)})}):(q.touchEventsSupported&&T(Ms.touch,function(i){ao(t,i,function(n){r[i].call(e,n),h_(t)})}),T(Ms.mouse,function(i){ao(t,i,function(n){n=nf(n),t.touching||r[i].call(e,n)})}))}function p_(e,t){q.pointerEventsSupported?T(Fh.pointer,r):q.touchEventsSupported||T(Fh.mouse,r);function r(i){function n(a){a=nf(a),_p(e,a.target)||(a=v_(e,a),t.domHandlers[i].call(e,a))}ao(t,i,n,{capture:!0})}}function ao(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,L0(e.domTarget,t,r,i)}function As(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&P0(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Hh=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),g_=(function(e){F(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new Hh(r,ve),Cs&&(n._globalHandlerScope=new Hh(document,qu)),d_(n,n._localHandlerScope),n}return t.prototype.dispose=function(){As(this._localHandlerScope),Cs&&As(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Cs&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?p_(this,i):As(i)}},t})(Fe),Sp=1;q.hasGlobalWindow&&(Sp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var To=Sp,Ku=.4,Qu="#333",Ju="#ccc",y_="#eee",Gh=af,Vh=5e-5;function Pr(e){return e>Vh||e<-Vh}var Ir=[],ci=[],Ls=Ze(),Ps=Math.abs,uf=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Pr(this.rotation)||Pr(this.x)||Pr(this.y)||Pr(this.scaleX-1)||Pr(this.scaleY-1)||Pr(this.skewX)||Pr(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Gh(i),this.invTransform=null);return}i=i||Ze(),r?this.getLocalTransform(i):Gh(i),t&&(r?Mn(i,t,i):np(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ir);var i=Ir[0]<0?-1:1,n=Ir[1]<0?-1:1,a=((Ir[0]-i)*r+i)/Ir[0]||0,o=((Ir[1]-n)*r+n)/Ir[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ze(),na(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ze(),Mn(ci,t.invTransform,r),r=ci);var i=this.originX,n=this.originY;(i||n)&&(Ls[4]=i,Ls[5]=n,Mn(ci,r,Ls),ci[4]-=i,ci[5]-=n,r=ci),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&ue(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&ue(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&Ps(t[0]-1)>1e-10&&Ps(t[3]-1)>1e-10?Math.sqrt(Ps(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){ju(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||u){var d=i+s,y=n+u;r[4]=-d*a-c*y*o,r[5]=-y*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,l&&of(r,r,l),r[4]+=i+f,r[5]+=n+h,r},e.initDefaultProps=(function(){var t=e.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})(),e})(),Gn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ju(e,t){for(var r=0;r<Gn.length;r++){var i=Gn[r];e[i]=t[i]}}function Ee(e){ma||(ma=new zi(100)),e=e||gr;var t=ma.get(e);return t||(t={font:e,strWidthCache:new zi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:qe.measureText("国",e).width,asciiCharWidth:qe.measureText("a",e).width},ma.put(e,t)),t}var ma;function m_(e){if(!(Is>=Wh)){e=e||gr;for(var t=[],r=+new Date,i=0;i<=127;i++)t[i]=qe.measureText(String.fromCharCode(i),e).width;var n=+new Date-r;return n>16?Is=Wh:n>2&&Is++,t}}var Is=0,Wh=5;function xp(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=m_(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function ke(e,t){var r=e.strWidthCache,i=r.get(t);return i==null&&(i=qe.measureText(t,e.font).width,r.put(t,i)),i}function Uh(e,t,r,i){var n=ke(Ee(t),e),a=Ko(t),o=Hi(0,n,r),s=ri(0,a,i),u=new J(o,s,n,a);return u}function wp(e,t,r,i){var n=((e||"")+"").split(`
|
|
2
|
+
`),a=n.length;if(a===1)return Uh(n[0],t,r,i);for(var o=new J(0,0,0,0),s=0;s<n.length;s++){var u=Uh(n[s],t,r,i);s===0?o.copy(u):o.union(u)}return o}function Hi(e,t,r,i){return r==="right"?i?e+=t:e-=t:r==="center"&&(i?e+=t/2:e-=t/2),e}function ri(e,t,r,i){return r==="middle"?i?e+=t/2:e-=t/2:r==="bottom"&&(i?e+=t:e-=t),e}function Ko(e){return Ee(e).stWideCharWidth}function mr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Co(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(i instanceof Array)u+=mr(i[0],r.width),l+=mr(i[1],r.height),f=null,h=null;else switch(i){case"left":u-=n,l+=s,f="right",h="middle";break;case"right":u+=n+o,l+=s,h="middle";break;case"top":u+=o/2,l-=n,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+n,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=n,l+=s,h="middle";break;case"insideRight":u+=o-n,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=n,f="center";break;case"insideBottom":u+=o/2,l+=a-n,f="center",h="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,f="right";break;case"insideBottomLeft":u+=n,l+=a-n,h="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var Rs="__zr_normal__",Es=Gn.concat(["ignore"]),__=yr(Gn,function(e,t){return e[t]=!0,e},{ignore:!1}),di={},S_=new J(0,0,0,0),_a=[],Qo=(function(){function e(t){this.id=Jd(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;a.copyTransform(r);var f=i.position!=null,h=i.autoOverflowArea,c=void 0;if((h||f)&&(c=S_,i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(di,i,c):Co(di,i,c),a.x=di.x,a.y=di.y,o=di.align,s=di.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var d=void 0,y=void 0;v==="center"?(d=c.width*.5,y=c.height*.5):(d=mr(v[0],c.width),y=mr(v[1],c.height)),l=!0,a.originX=-a.x+d+(n?0:c.x),a.originY=-a.y+y+(n?0:c.y)}}i.rotation!=null&&(a.rotation=i.rotation);var g=i.offset;g&&(a.x+=g[0],a.y+=g[1],l||(a.originX=-g[0],a.originY=-g[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=p.overflowRect=p.overflowRect||new J(0,0,0,0);a.getLocalTransform(_a),na(_a,_a),J.copy(m,c),m.applyTransform(_a)}else p.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,S=void 0,w=void 0,x=void 0;_&&this.canBeInsideText()?(S=i.insideFill,w=i.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(S),x=!0)):(S=i.outsideFill,w=i.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(S),x=!0)),S=S||"#000",(S!==p.fill||w!==p.stroke||x!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=S,p.stroke=w,p.autoStroke=x,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=Zt,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ju:Qu},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&ge(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Zi(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},E(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(G(t))for(var i=t,n=dt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Rs)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Es)},e.prototype._savePrimaryToNormal=function(t,r,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Rs,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===Rs,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(it(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){tf("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!i&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,r,i,f),c&&c.useState(t,r,i,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zt),l}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&n.push(f)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,g=this._textGuide;y&&y.useStates(t,r,c),g&&g.useStates(t,r,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zt)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=it(this.currentStates,t);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=it(n,t),o=it(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n<t.length;n++){var a=t[n];E(r,a),a.textConfig&&(i=i||{},E(i,a.textConfig))}return i&&(r.textConfig=i),r},e.prototype._applyStateObj=function(t,r,i,n,a,o){var s=!(r&&n);r&&r.textConfig?(this.textConfig=E({},n?this.textConfig:i.textConfig),E(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,f=0;f<Es.length;f++){var h=Es[f],c=a&&__[h];r&&r[h]!=null?c?(l=!0,u[h]=r[h]):this[h]=r[h]:s&&i[h]!=null&&(c?(l=!0,u[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||i)[d]:r||i)}l&&this._transitionState(t,u,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new uf,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),E(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Zt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,i=this._textGuide;r&&(r.__inHover=t),i&&(i.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,i){var n=t?this[t]:this,a=new sf(n,r,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=it(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,i){ks(this,t,r,i)},e.prototype.animateFrom=function(t,r,i){ks(this,t,r,i,!0)},e.prototype._transitionState=function(t,r,i,n){for(var a=ks(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Zt;function r(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var u=this[n]=[];s(this,u)}return this[n]},set:function(u){this[a]=u[0],this[o]=u[1],this[n]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),e})();Ne(Qo,Fe);Ne(Qo,uf);function ks(e,t,r,i,n){r=r||{};var a=[];bp(e,"",e,t,r,i,a,n);var o=a.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,y){r.during(y)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function Os(e,t,r){for(var i=0;i<r;i++)e[i]=t[i]}function x_(e){return Wt(e[0])}function w_(e,t,r){if(Wt(t[r]))if(Wt(e[r])||(e[r]=[]),Ut(t[r])){var i=t[r].length;e[r].length!==i&&(e[r]=new t[r].constructor(i),Os(e[r],t[r],i))}else{var n=t[r],a=e[r],o=n.length;if(x_(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?Os(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else Os(a,n,o);a.length=n.length}else e[r]=t[r]}function b_(e,t){return e===t||Wt(e)&&Wt(t)&&T_(e,t)}function T_(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function bp(e,t,r,i,n,a,o,s){for(var u=dt(i),l=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!G(a),d=e.animators,y=[],g=0;g<u.length;g++){var p=u[g],m=i[p];if(m!=null&&r[p]!=null&&(v||a[p]))if(G(m)&&!Wt(m)&&!Zo(m)){if(t){s||(r[p]=m,e.updateDuringAnimation(t));continue}bp(e,p,r[p],m,n,a&&a[p],o,s)}else y.push(p);else s||(r[p]=m,e.updateDuringAnimation(t),y.push(p))}var _=y.length;if(!h&&_)for(var S=0;S<d.length;S++){var w=d[S];if(w.targetName===t){var x=w.stopTracks(y);if(x){var b=it(d,w);d.splice(b,1)}}}if(n.force||(y=Mt(y,function(C){return!b_(i[C],r[C])}),_=y.length),_>0||n.force&&!o.length){var M=void 0,D=void 0,A=void 0;if(s){D={},c&&(M={});for(var S=0;S<_;S++){var p=y[S];D[p]=r[p],c?M[p]=i[p]:r[p]=i[p]}}else if(c){A={};for(var S=0;S<_;S++){var p=y[S];A[p]=ro(r[p]),w_(r,i,p)}}var w=new sf(r,!1,!1,h?Mt(d,function(I){return I.targetName===t}):null);w.targetName=t,n.scope&&(w.scope=n.scope),c&&M&&w.whenWithKeys(0,M,y),A&&w.whenWithKeys(0,A,y),w.whenWithKeys(l??500,s?D:i,y).delay(f||0),e.addAnimator(w,t),o.push(w)}}var Yt=(function(e){F(t,e);function t(r){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=it(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=it(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},t.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var i=new J(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(J.applyTransform(i,l,f),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t})(Qo);Yt.prototype.type="group";var oo={},Tp={};function C_(e){delete Tp[e]}function M_(e){if(!e)return!1;if(typeof e=="string")return bo(e,1)<Ku;if(e.colorStops){for(var t=e.colorStops,r=0,i=t.length,n=0;n<i;n++)r+=bo(t[n].color,1);return r/=i,r<Ku}return!1}var D_=(function(){function e(t,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=r,this.id=t;var a=new Y0,o=i.renderer||"canvas";oo[o]||(o=dt(oo)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new oo[o](r,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!q.node&&!q.worker&&!u?new g_(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?q.touchEventsSupported:!!f,c=44,v;h&&(v=$(i.pointerSize,c)),this.handler=new sp(a,s,l,s.root,v),this.animation=new l_({stage:{update:u?null:function(){return n._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=M_(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,i=Ri();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var n=Ri();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Yt&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,C_(this.id))},e})();function Yh(e,t){var r=new D_(Jd(),e,t);return Tp[r.id]=r,r}function A_(e,t){oo[e]=t}var Xh=1e-4,Cp=20;function L_(e){return e.replace(/^\s+|\s+$/g,"")}var Vn=Math.min,qt=Math.max,Ie=Math.abs;function $h(e,t,r,i){var n=t[0],a=t[1],o=r[0],s=r[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(i)if(u>0){if(e<=n)return o;if(e>=a)return s}else{if(e>=n)return o;if(e<=a)return s}else{if(e===n)return o;if(e===a)return s}return(e-n)/u*l+o}var _t=P_;function P_(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return tl(e,t,r)}function tl(e,t,r){return z(e)?L_(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function Lt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Cp),e=(+e).toFixed(t),r?e:+e}function HA(e){return e.sort(function(t,r){return t-r}),e}function Xe(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return I_(e)}function I_(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),i=r>0?+t.slice(r+1):0,n=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function R_(e,t){var r=Math.log,i=Math.LN10,n=Math.floor(r(e[1]-e[0])/i),a=Math.round(r(Ie(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function GA(e,t){var r=yr(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var i=Math.pow(10,t),n=Y(e,function(v){return(isNaN(v)?0:v)/r*i*100}),a=i*100,o=Y(n,function(v){return Math.floor(v)}),s=yr(o,function(v,d){return v+d},0),u=Y(n,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,c=u.length;h<c;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return Y(o,function(v){return v/i})}function E_(e,t){var r=Math.max(Xe(e),Xe(t)),i=e+t;return r>Cp?i:Lt(i,r)}function Mp(e){var t=Math.PI*2;return(e%t+t)%t}function Mo(e){return e>-Xh&&e<Xh}var k_=/^(?:(\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 qi(e){if(e instanceof Date)return e;if(z(e)){var t=k_.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(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(e==null)return new Date(NaN);return new Date(Math.round(e))}function O_(e){return Math.pow(10,lf(e))}function lf(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Dp(e,t){var r=lf(e),i=Math.pow(10,r),n=e/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,e=a*i,r>=-20?+e.toFixed(r<0?-r:0):e}function VA(e){e.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,r=1,i=0;i<e.length;){for(var n=e[i].interval,a=e[i].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,a[o]=o?1:1-r),t=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?e.splice(i,1):i++}return e;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function Do(e){var t=parseFloat(e);return t==e&&(t!==0||!z(e)||e.indexOf("x")<=0)?t:NaN}function B_(e){return!isNaN(Do(e))}function Ap(){return Math.round(Math.random()*9)}function Lp(e,t){return t===0?e:Lp(t,e%t)}function Zh(e,t){return e==null?t:t==null?e:e*t/Lp(e,t)}var N_="[ECharts] ",F_=typeof console<"u"&&console.warn&&console.log;function z_(e,t,r){F_&&console[e](N_+t)}function Pp(e,t){z_("error",e)}function Ht(e){throw new Error(e)}function qh(e,t,r){return(t-e)*r+e}var Ip="series\0",H_="\0_ec_\0";function Rt(e){return e instanceof Array?e:e==null?[]:[e]}function Kh(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Qh=["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 aa(e){return G(e)&&!N(e)&&!(e instanceof Date)?e.value:e}function G_(e){return G(e)&&!(e instanceof Array)}function V_(e,t,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=j();T(t,function(u,l){if(!G(u)){t[l]=null;return}});var s=W_(e,o,r);return(i||n)&&U_(s,e,o,t),i&&Y_(s,t),i||n?X_(s,t,n):a&&$_(s,t),Z_(s),s}function W_(e,t,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<e.length;n++){var a=e[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:r==="replaceMerge"||Wn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function U_(e,t,r,i){T(i,function(n,a){if(!(!n||n.id==null)){var o=Ln(n.id),s=r.get(o);if(s!=null){var u=e[s];Ke(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function Y_(e,t){T(t,function(r,i){if(!(!r||r.name==null))for(var n=0;n<e.length;n++){var a=e[n].existing;if(!e[n].newOption&&a&&(a.id==null||r.id==null)&&!Wn(r)&&!Wn(a)&&Rp("name",a,r)){e[n].newOption=r,t[i]=null;return}}})}function X_(e,t,r){T(t,function(i){if(i){for(var n,a=0;(n=e[a])&&(n.newOption||Wn(n.existing)||n.existing&&i.id!=null&&!Rp("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):e.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function $_(e,t){T(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Z_(e){var t=j();T(e,function(r){var i=r.existing;i&&t.set(i.id,r)}),T(e,function(r){var i=r.newOption;Ke(!i||i.id==null||!t.get(i.id)||t.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),T(e,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(G(a)){if(o.name=a.name!=null?Ln(a.name):n?n.name:Ip+i,n)o.id=Ln(n.id);else if(a.id!=null)o.id=Ln(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function Rp(e,t,r){var i=ye(t[e],null),n=ye(r[e],null);return i!=null&&n!=null&&i===n}function Ln(e){return ye(e,"")}function ye(e,t){return e==null?t:z(e)?e:ct(e)||Eu(e)?e+"":t}function ff(e){var t=e.name;return!!(t&&t.indexOf(Ip))}function Wn(e){return e&&e.id!=null&&Ln(e.id).indexOf(H_)===0}function q_(e,t,r){T(e,function(i){var n=i.newOption;G(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=K_(t,n,i.existing,r))})}function K_(e,t,r,i){var n=t.type?t.type:r?r.subType:i.determineSubType(e,t);return n}function WA(e,t){var r={},i={};return n(e||[],r),n(t||[],i,r),[a(r),a(i)];function n(o,s,u){for(var l=0,f=o.length;l<f;l++){var h=ye(o[l].seriesId,null);if(h==null)return;for(var c=Rt(o[l].dataIndex),v=u&&u[h],d=0,y=c.length;d<y;d++){var g=c[d];v&&v[g]?v[g]=null:(s[h]||(s[h]={}))[g]=1}}}function a(o,s){var u=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)u.push(+l);else{var f=a(o[l],!0);f.length&&u.push({seriesId:l,dataIndex:f})}return u}}function oa(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return N(t.dataIndex)?Y(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return N(t.name)?Y(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function yt(){var e="__ec_inner_"+Q_++;return function(t){return t[e]||(t[e]={})}}var Q_=Ap();function Bs(e,t,r){var i=hf(t,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=r?r.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,f){var h=sa(e,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function hf(e,t){var r;if(z(e)){var i={};i[e+"Index"]=0,r=i}else r=e;var n=j(),a={},o=!1;return T(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&it(t.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var oe={useDefault:!0,enableAll:!1,enableNone:!1};function sa(e,t,r,i){i=i||oe;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=e.getComponent(t))?[u]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=e.queryComponents({mainType:t,index:n,id:a,name:o}),s}function Ep(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function J_(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function j_(e){return e==="auto"?q.domSupported?"html":"richText":e||"html"}function UA(e,t,r,i,n){var a=t==null||t==="auto";if(i==null)return i;if(ct(i)){var o=qh(r||0,i,n);return Lt(o,a?Math.max(Xe(r||0),Xe(i)):t)}else{if(z(i))return n<1?r:i;for(var s=[],u=r,l=i,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=e.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(n<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=qh(v,d,n);s[h]=Lt(o,a?Math.max(Xe(v),Xe(d)):t)}}return s}}var t1=".",Rr="___EC__COMPONENT__CONTAINER___",kp="___EC__EXTENDED_CLASS___";function Re(e){var t={main:"",sub:""};if(e){var r=e.split(t1);t.main=r[0]||"",t.sub=r[1]||""}return t}function e1(e){Ke(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function r1(e){return!!(e&&e[kp])}function vf(e,t){e.$constructor=e,e.extend=function(r){var i=this,n;return i1(i)?n=(function(a){F(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},r0(n,this)),E(n.prototype,r),n[kp]=!0,n.extend=this.extend,n.superCall=o1,n.superApply=s1,n.superClass=i,n}}function i1(e){return K(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Op(e,t){e.extend=t.extend}var n1=Math.round(Math.random()*10);function a1(e){var t=["__\0is_clz",n1++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function o1(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,r)}function s1(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Jo(e){var t={};e.registerClass=function(i){var n=i.type||i.prototype.type;if(n){e1(n),i.prototype.type=n;var a=Re(n);if(!a.sub)t[a.main]=i;else if(a.sub!==Rr){var o=r(a);o[a.sub]=i}}return i},e.getClass=function(i,n,a){var o=t[i];if(o&&o[Rr]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},e.getClassesByMainType=function(i){var n=Re(i),a=[],o=t[n.main];return o&&o[Rr]?T(o,function(s,u){u!==Rr&&a.push(s)}):a.push(o),a},e.hasClass=function(i){var n=Re(i);return!!t[n.main]},e.getAllClassMainTypes=function(){var i=[];return T(t,function(n,a){i.push(a)}),i},e.hasSubTypes=function(i){var n=Re(i),a=t[n.main];return a&&a[Rr]};function r(i){var n=t[i.main];return(!n||!n[Rr])&&(n=t[i.main]={},n[Rr]=!0),n}}function Un(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(n&&it(n,u)>=0||a&&it(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var u1=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],l1=Un(u1),f1=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return l1(this,t,r)},e})(),el=new zi(50);function h1(e){if(typeof e=="string"){var t=el.get(e);return t&&t.image}else return e}function Bp(e,t,r,i,n){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=el.get(e),o={hostEl:r,cb:i,cbPayload:n};return a?(t=a.image,!jo(t)&&a.pending.push(o)):(t=qe.loadImage(e,Jh,Jh),t.__zrImageSrc=e,el.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Jh(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function jo(e){return e&&e.width&&e.height}var Ns=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function v1(e,t,r,i,n,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
|
|
3
|
+
`);a=Np(r,i,n,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Fp(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;e.text=o.join(`
|
|
4
|
+
`),e.isTruncated=s}function Np(e,t,r,i){i=i||{};var n=E({},i);r=$(r,"..."),n.maxIterations=$(i.maxIterations,2);var a=n.minChar=$(i.minChar,0),o=n.fontMeasureInfo=Ee(t),s=o.asciiCharWidth;n.placeholder=$(i.placeholder,"");for(var u=e=Math.max(0,e-1),l=0;l<a&&u>=s;l++)u-=s;var f=ke(o,r);return f>u&&(r="",f=0),u=e-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=u,n.containerWidth=e,n}function Fp(e,t,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){e.textLine="",e.isTruncated=!1;return}var o=ke(a,t);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?c1(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,u),o=ke(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function c1(e,t,r){for(var i=0,n=0,a=e.length;n<a&&i<t;n++)i+=xp(r,e.charCodeAt(n));return n}function d1(e,t,r,i){var n=cf(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=t.font,f=a==="truncate",h=Ko(l),c=$(t.lineHeight,h),v=t.lineOverflow==="truncate",d=!1,y=t.width;y==null&&r!=null&&(y=r-s);var g=t.height;g==null&&i!=null&&(g=i-u);var p;y!=null&&(a==="break"||a==="breakAll")?p=n?zp(n,t.font,y,a==="breakAll",0).lines:[]:p=n?n.split(`
|
|
5
|
+
`):[];var m=p.length*c;if(g==null&&(g=m),m>g&&v){var _=Math.floor(g/c);d=d||p.length>_,p=p.slice(0,_),m=p.length*c}if(n&&f&&y!=null)for(var S=Np(y,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),w={},x=0;x<p.length;x++)Fp(w,p[x],S),p[x]=w.textLine,d=d||w.isTruncated;for(var b=g,M=0,D=Ee(l),x=0;x<p.length;x++)M=Math.max(ke(D,p[x]),M);y==null&&(y=M);var A=y;return b+=u,A+=s,{lines:p,height:g,outerWidth:A,outerHeight:b,lineHeight:c,calculatedLineHeight:h,contentWidth:M,contentHeight:m,width:y,isTruncated:d}}var p1=(function(){function e(){}return e})(),jh=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),g1=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function y1(e,t,r,i,n){var a=new g1,o=cf(e);if(!o)return a;var s=t.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-u);var h=t.height;h==null&&i!=null&&(h=i-l);for(var c=t.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=Ns.lastIndex=0,y;(y=Ns.exec(o))!=null;){var g=y.index;g>d&&Fs(a,o.substring(d,g),t,v),Fs(a,y[2],t,v,y[1]),d=Ns.lastIndex}d<o.length&&Fs(a,o.substring(d,o.length),t,v);var p=[],m=0,_=0,S=c==="truncate",w=t.lineOverflow==="truncate",x={};function b(we,be,ze){we.width=be,we.lineHeight=ze,m+=ze,_=Math.max(_,be)}t:for(var M=0;M<a.lines.length;M++){for(var D=a.lines[M],A=0,C=0,I=0;I<D.tokens.length;I++){var L=D.tokens[I],P=L.styleName&&t.rich[L.styleName]||{},R=L.textPadding=P.padding,O=R?R[1]+R[3]:0,Z=L.font=P.font||t.font;L.contentHeight=Ko(Z);var B=$(P.height,L.contentHeight);if(L.innerHeight=B,R&&(B+=R[0]+R[2]),L.height=B,L.lineHeight=Oi(P.lineHeight,t.lineHeight,B),L.align=P&&P.align||n,L.verticalAlign=P&&P.verticalAlign||"middle",w&&h!=null&&m+L.lineHeight>h){var X=a.lines.length;I>0?(D.tokens=D.tokens.slice(0,I),b(D,C,A),a.lines=a.lines.slice(0,M+1)):a.lines=a.lines.slice(0,M),a.isTruncated=a.isTruncated||a.lines.length<X;break t}var W=P.width,V=W==null||W==="auto";if(typeof W=="string"&&W.charAt(W.length-1)==="%")L.percentWidth=W,p.push(L),L.contentWidth=ke(Ee(Z),L.text);else{if(V){var H=P.backgroundColor,tt=H&&H.image;tt&&(tt=h1(tt),jo(tt)&&(L.width=Math.max(L.width,tt.width*B/tt.height)))}var xt=S&&f!=null?f-C:null;xt!=null&&xt<L.width?!V||xt<O?(L.text="",L.width=L.contentWidth=0):(v1(x,L.text,xt-O,Z,t.ellipsis,{minChar:t.truncateMinChar}),L.text=x.text,a.isTruncated=a.isTruncated||x.isTruncated,L.width=L.contentWidth=ke(Ee(Z),L.text)):L.contentWidth=ke(Ee(Z),L.text)}L.width+=O,C+=L.width,P&&(A=Math.max(A,L.lineHeight))}b(D,C,A)}a.outerWidth=a.width=$(f,_),a.outerHeight=a.height=$(h,m),a.contentHeight=m,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var M=0;M<p.length;M++){var L=p[M],xe=L.percentWidth;L.width=parseInt(xe,10)/100*a.width}return a}function Fs(e,t,r,i,n){var a=t==="",o=n&&r.rich[n]||{},s=e.lines,u=o.font||r.font,l=!1,f,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=mr(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
|
|
6
|
+
`),l=!0),i.accumWidth=d}else{var y=zp(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+v,h=y.linesWidths,f=y.lines}}f||(f=t.split(`
|
|
7
|
+
`));for(var g=Ee(u),p=0;p<f.length;p++){var m=f[p],_=new p1;if(_.styleName=n,_.text=m,_.isLineHolder=!m&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[p]:ke(g,m),!p&&!l){var S=(s[s.length-1]||(s[0]=new jh)).tokens,w=S.length;w===1&&S[0].isLineHolder?S[0]=_:(m||!w||a)&&S.push(_)}else s.push(new jh([_]))}}function m1(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var _1=yr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function S1(e){return m1(e)?!!_1[e]:!0}function zp(e,t,r,i,n){for(var a=[],o=[],s="",u="",l=0,f=0,h=Ee(t),c=0;c<e.length;c++){var v=e.charAt(c);if(v===`
|
|
8
|
+
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=xp(h,v.charCodeAt(0)),y=i?!1:!S1(v);if(a.length?f+d>r:n+f+d>r){f?(s||u)&&(y?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=v,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=v,f=d)):y?(a.push(u),o.push(l),u=v,l=d):(a.push(v),o.push(d));continue}f+=d,y?(u+=v,l+=d):(u&&(s+=u,u="",l=0),s+=v)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function tv(e,t,r,i,n,a){if(e.baseX=r,e.baseY=i,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;J.set(ev,Hi(r,o,n),ri(i,s,a),o,s),J.intersect(t,ev,null,rv);var u=rv.outIntersectRect;e.outerWidth=u.width,e.outerHeight=u.height,e.baseX=Hi(u.x,u.width,n,!0),e.baseY=ri(u.y,u.height,a,!0)}}var ev=new J(0,0,0,0),rv={outIntersectRect:{},clamp:!0};function cf(e){return e!=null?e+="":e=""}function x1(e){var t=cf(e.text),r=e.font,i=ke(Ee(r),t),n=Ko(r);return rl(e,i,n,null)}function rl(e,t,r,i){var n=new J(Hi(e.x||0,t,e.textAlign),ri(e.y||0,r,e.textBaseline),t,r),a=i??(Hp(e)?e.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Hp(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var il="__zr_style_"+Math.round(Math.random()*10),ii={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ts={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ii[il]=!0;var iv=["z","z2","invisible"],w1=["invisible"],ua=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=dt(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&b1(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(r,i){return this.rectContain(r,i)},t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new J(0,0,0,0)),i?J.applyTransform(r,n,i):r.copy(n),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,i){r!=="style"?e.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:E(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=mn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&mn)},t.prototype.styleUpdated=function(){this.__dirty&=~mn},t.prototype.createStyle=function(r){return qo(ii,r)},t.prototype.useStyle=function(r){r[il]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[il]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,iv)},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.style?o?a?l=i.style:(l=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(l,i.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(l,i.style)):u&&(l=n.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=dt(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=dt(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var y=this.__inHover?w1:iv,c=0;c<y.length;c++){var v=y[c];i&&i[v]!=null?this[v]=i[v]:u&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(r,i){return E(r,i),r},t.prototype.getAnimationStyleProps=function(){return ts},t.initDefaultProps=(function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Zt|mn})(),t})(Qo),zs=new J(0,0,0,0),Hs=new J(0,0,0,0);function b1(e,t,r){return zs.copy(e.getBoundingRect()),e.transform&&zs.applyTransform(e.transform),Hs.width=t,Hs.height=r,!zs.intersect(Hs)}var ne=Math.min,ae=Math.max,Gs=Math.sin,Vs=Math.cos,Er=Math.PI*2,Sa=$i(),xa=$i(),wa=$i();function nv(e,t,r,i,n,a){n[0]=ne(e,r),n[1]=ne(t,i),a[0]=ae(e,r),a[1]=ae(t,i)}var av=[],ov=[];function T1(e,t,r,i,n,a,o,s,u,l){var f=cp,h=Bt,c=f(e,r,n,o,av);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(e,r,n,o,av[v]);u[0]=ne(d,u[0]),l[0]=ae(d,l[0])}c=f(t,i,a,s,ov);for(var v=0;v<c;v++){var y=h(t,i,a,s,ov[v]);u[1]=ne(y,u[1]),l[1]=ae(y,l[1])}u[0]=ne(e,u[0]),l[0]=ae(e,l[0]),u[0]=ne(o,u[0]),l[0]=ae(o,l[0]),u[1]=ne(t,u[1]),l[1]=ae(t,l[1]),u[1]=ne(s,u[1]),l[1]=ae(s,l[1])}function C1(e,t,r,i,n,a,o,s){var u=dp,l=zt,f=ae(ne(u(e,r,n),1),0),h=ae(ne(u(t,i,a),1),0),c=l(e,r,n,f),v=l(t,i,a,h);o[0]=ne(e,n,c),o[1]=ne(t,a,v),s[0]=ae(e,n,c),s[1]=ae(t,a,v)}function M1(e,t,r,i,n,a,o,s,u){var l=Li,f=Pi,h=Math.abs(n-a);if(h%Er<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-i,u[0]=e+r,u[1]=t+i;return}if(Sa[0]=Vs(n)*r+e,Sa[1]=Gs(n)*i+t,xa[0]=Vs(a)*r+e,xa[1]=Gs(a)*i+t,l(s,Sa,xa),f(u,Sa,xa),n=n%Er,n<0&&(n=n+Er),a=a%Er,a<0&&(a=a+Er),n>a&&!o?a+=Er:n<a&&o&&(n+=Er),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(wa[0]=Vs(v)*r+e,wa[1]=Gs(v)*i+t,l(s,wa,s),f(u,wa,u))}var nt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},kr=[],Or=[],Te=[],tr=[],Ce=[],Me=[],Ws=Math.min,Us=Math.max,Br=Math.cos,Nr=Math.sin,He=Math.abs,nl=Math.PI,or=nl*2,Ys=typeof Float32Array<"u",en=[];function Xs(e){var t=Math.round(e/nl*1e8)/1e8;return t%2*nl}function D1(e,t){var r=Xs(e[0]);r<0&&(r+=or);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=or?n=r+or:t&&r-n>=or?n=r-or:!t&&r>n?n=r+(or-Xs(r-n)):t&&r<n&&(n=r-(or-Xs(n-r))),e[0]=r,e[1]=n}var Gi=(function(){function e(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 e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,i){i=i||0,i>0&&(this._ux=He(i/To/t)||0,this._uy=He(i/To/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(nt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=He(t-this._xi),n=He(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(nt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(nt.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(nt.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),en[0]=n,en[1]=a,D1(en,o),n=en[0],a=en[1];var s=a-n;return this.addData(nt.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Br(a)*i+t,this._yi=Nr(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(nt.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(nt.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&Ys&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=t[i];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,i=0,n=this._len,a=0;a<r;a++)i+=t[a].len();var o=this.data;if(Ys&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=t[a].data,s=0;s<u.length;s++)this.data[n++]=u[s];this._len=n}},e.prototype.addData=function(t,r,i,n,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ys&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Te[0]=Te[1]=Ce[0]=Ce[1]=Number.MAX_VALUE,tr[0]=tr[1]=Me[0]=Me[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],i=t[o+1],n=r,a=i),s){case nt.M:r=n=t[o++],i=a=t[o++],Ce[0]=n,Ce[1]=a,Me[0]=n,Me[1]=a;break;case nt.L:nv(r,i,t[o],t[o+1],Ce,Me),r=t[o++],i=t[o++];break;case nt.C:T1(r,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ce,Me),r=t[o++],i=t[o++];break;case nt.Q:C1(r,i,t[o++],t[o++],t[o],t[o+1],Ce,Me),r=t[o++],i=t[o++];break;case nt.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var y=!t[o++];u&&(n=Br(v)*h+l,a=Nr(v)*c+f),M1(l,f,h,c,v,d,y,Ce,Me),r=Br(d)*h+l,i=Nr(d)*c+f;break;case nt.R:n=r=t[o++],a=i=t[o++];var g=t[o++],p=t[o++];nv(n,a,n+g,a+p,Ce,Me);break;case nt.Z:r=n,i=a;break}Li(Te,Te,Ce),Pi(tr,tr,Me)}return o===0&&(Te[0]=Te[1]=tr[0]=tr[1]=0),new J(Te[0],Te[1],tr[0]-Te[0],tr[1]-Te[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,c=0;c<r;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,u=o);var y=-1;switch(v){case nt.M:a=s=t[c++],o=u=t[c++];break;case nt.L:{var g=t[c++],p=t[c++],m=g-a,_=p-o;(He(m)>i||He(_)>n||c===r-1)&&(y=Math.sqrt(m*m+_*_),a=g,o=p);break}case nt.C:{var S=t[c++],w=t[c++],g=t[c++],p=t[c++],x=t[c++],b=t[c++];y=$0(a,o,S,w,g,p,x,b,10),a=x,o=b;break}case nt.Q:{var S=t[c++],w=t[c++],g=t[c++],p=t[c++];y=K0(a,o,S,w,g,p,10),a=g,o=p;break}case nt.A:var M=t[c++],D=t[c++],A=t[c++],C=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,d&&(s=Br(I)*A+M,u=Nr(I)*C+D),y=Us(A,C)*Ws(or,Math.abs(L)),a=Br(P)*A+M,o=Nr(P)*C+D;break;case nt.R:{s=a=t[c++],u=o=t[c++];var R=t[c++],O=t[c++];y=R*2+O*2;break}case nt.Z:{var m=s-a,_=u-o;y=Math.sqrt(m*m+_*_),a=s,o=u;break}}y>=0&&(l[h++]=y,f+=y)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,y,g=0,p=0,m,_=0,S,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,m=r*y,!m)))t:for(var x=0;x<o;){var b=i[x++],M=x===1;switch(M&&(l=i[x],f=i[x+1],s=l,u=f),b!==nt.L&&_>0&&(t.lineTo(S,w),_=0),b){case nt.M:s=l=i[x++],u=f=i[x++],t.moveTo(l,f);break;case nt.L:{h=i[x++],c=i[x++];var D=He(h-l),A=He(c-f);if(D>n||A>a){if(v){var C=d[p++];if(g+C>m){var I=(m-g)/C;t.lineTo(l*(1-I)+h*I,f*(1-I)+c*I);break t}g+=C}t.lineTo(h,c),l=h,f=c,_=0}else{var L=D*D+A*A;L>_&&(S=h,w=c,_=L)}break}case nt.C:{var P=i[x++],R=i[x++],O=i[x++],Z=i[x++],B=i[x++],X=i[x++];if(v){var C=d[p++];if(g+C>m){var I=(m-g)/C;xo(l,P,O,B,I,kr),xo(f,R,Z,X,I,Or),t.bezierCurveTo(kr[1],Or[1],kr[2],Or[2],kr[3],Or[3]);break t}g+=C}t.bezierCurveTo(P,R,O,Z,B,X),l=B,f=X;break}case nt.Q:{var P=i[x++],R=i[x++],O=i[x++],Z=i[x++];if(v){var C=d[p++];if(g+C>m){var I=(m-g)/C;wo(l,P,O,I,kr),wo(f,R,Z,I,Or),t.quadraticCurveTo(kr[1],Or[1],kr[2],Or[2]);break t}g+=C}t.quadraticCurveTo(P,R,O,Z),l=O,f=Z;break}case nt.A:var W=i[x++],V=i[x++],H=i[x++],tt=i[x++],xt=i[x++],xe=i[x++],we=i[x++],be=!i[x++],ze=H>tt?H:tt,Xt=He(H-tt)>.001,Dt=xt+xe,Q=!1;if(v){var C=d[p++];g+C>m&&(Dt=xt+xe*(m-g)/C,Q=!0),g+=C}if(Xt&&t.ellipse?t.ellipse(W,V,H,tt,we,xt,Dt,be):t.arc(W,V,ze,xt,Dt,be),Q)break t;M&&(s=Br(xt)*H+W,u=Nr(xt)*tt+V),l=Br(Dt)*H+W,f=Nr(Dt)*tt+V;break;case nt.R:s=l=i[x],u=f=i[x+1],h=i[x++],c=i[x++];var rt=i[x++],Cr=i[x++];if(v){var C=d[p++];if(g+C>m){var kt=m-g;t.moveTo(h,c),t.lineTo(h+Ws(kt,rt),c),kt-=rt,kt>0&&t.lineTo(h+rt,c+Ws(kt,Cr)),kt-=Cr,kt>0&&t.lineTo(h+Us(rt-kt,0),c+Cr),kt-=rt,kt>0&&t.lineTo(h,c+Us(Cr-kt,0));break t}g+=C}t.rect(h,c,rt,Cr);break;case nt.Z:if(v){var C=d[p++];if(g+C>m){var I=(m-g)/C;t.lineTo(l*(1-I)+s*I,f*(1-I)+u*I);break t}g+=C}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=nt,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function pi(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=e;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-i)/(e-r),l=(e*i-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function A1(e,t,r,i,n,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||l>e+h&&l>r+h&&l>n+h&&l>o+h||l<e-h&&l<r-h&&l<n-h&&l<o-h)return!1;var c=X0(e,t,r,i,n,a,o,s,l,f);return c<=h/2}function L1(e,t,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>i+l&&u>a+l||u<t-l&&u<i-l&&u<a-l||s>e+l&&s>r+l&&s>n+l||s<e-l&&s<r-l&&s<n-l)return!1;var f=q0(e,t,r,i,n,a,s,u);return f<=l/2}var sv=Math.PI*2;function ba(e){return e%=sv,e<0&&(e+=sv),e}var rn=Math.PI*2;function P1(e,t,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(i-n)%rn<1e-4)return!0;if(a){var h=i;i=ba(n),n=ba(h)}else i=ba(i),n=ba(n);i>n&&(n+=rn);var c=Math.atan2(u,s);return c<0&&(c+=rn),c>=i&&c<=n||c+rn>=i&&c+rn<=n}function Fr(e,t,r,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var u=o*(r-e)+e;return u===n?1/0:u>n?s:0}var er=Gi.CMD,zr=Math.PI*2,I1=1e-4;function R1(e,t){return Math.abs(e-t)<I1}var Ot=[-1,-1,-1],re=[-1,-1];function E1(){var e=re[0];re[0]=re[1],re[1]=e}function k1(e,t,r,i,n,a,o,s,u,l){if(l>t&&l>i&&l>a&&l>s||l<t&&l<i&&l<a&&l<s)return 0;var f=vp(t,i,a,s,l,Ot);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,y=0;y<f;y++){var g=Ot[y],p=g===0||g===1?.5:1,m=Bt(e,r,n,o,g);m<u||(c<0&&(c=cp(t,i,a,s,re),re[1]<re[0]&&c>1&&E1(),v=Bt(t,i,a,s,re[0]),c>1&&(d=Bt(t,i,a,s,re[1]))),c===2?g<re[0]?h+=v<t?p:-p:g<re[1]?h+=d<v?p:-p:h+=s<d?p:-p:g<re[0]?h+=v<t?p:-p:h+=s<v?p:-p)}return h}function O1(e,t,r,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var u=Z0(t,i,a,s,Ot);if(u===0)return 0;var l=dp(t,i,a);if(l>=0&&l<=1){for(var f=0,h=zt(t,i,a,l),c=0;c<u;c++){var v=Ot[c]===0||Ot[c]===1?.5:1,d=zt(e,r,n,Ot[c]);d<o||(Ot[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Ot[0]===0||Ot[0]===1?.5:1,d=zt(e,r,n,Ot[0]);return d<o?0:a<t?v:-v}}function B1(e,t,r,i,n,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Ot[0]=-u,Ot[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=zr-1e-4){i=0,n=zr;var f=a?1:-1;return o>=Ot[0]+e&&o<=Ot[1]+e?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=zr,n+=zr);for(var c=0,v=0;v<2;v++){var d=Ot[v];if(d+e>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=zr+y),(y>=i&&y<=n||y+zr>=i&&y+zr<=n)&&(y>Math.PI/2&&y<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Gp(e,t,r,i,n){for(var a=e.data,o=e.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var y=a[d++],g=d===1;switch(y===er.M&&d>1&&(r||(s+=Fr(u,l,f,h,i,n))),g&&(u=a[d],l=a[d+1],f=u,h=l),y){case er.M:f=a[d++],h=a[d++],u=f,l=h;break;case er.L:if(r){if(pi(u,l,a[d],a[d+1],t,i,n))return!0}else s+=Fr(u,l,a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case er.C:if(r){if(A1(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=k1(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case er.Q:if(r){if(L1(u,l,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=O1(u,l,a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case er.A:var p=a[d++],m=a[d++],_=a[d++],S=a[d++],w=a[d++],x=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(w)*_+p,v=Math.sin(w)*S+m,g?(f=c,h=v):s+=Fr(u,l,c,v,i,n);var M=(i-p)*S/_+p;if(r){if(P1(p,m,S,w,w+x,b,t,M,n))return!0}else s+=B1(p,m,S,w,w+x,b,M,n);u=Math.cos(w+x)*_+p,l=Math.sin(w+x)*S+m;break;case er.R:f=u=a[d++],h=l=a[d++];var D=a[d++],A=a[d++];if(c=f+D,v=h+A,r){if(pi(f,h,c,h,t,i,n)||pi(c,h,c,v,t,i,n)||pi(c,v,f,v,t,i,n)||pi(f,v,f,h,t,i,n))return!0}else s+=Fr(c,h,c,v,i,n),s+=Fr(f,v,f,h,i,n);break;case er.Z:if(r){if(pi(u,l,f,h,t,i,n))return!0}else s+=Fr(u,l,f,h,i,n);u=f,l=h;break}}return!r&&!R1(l,h)&&(s+=Fr(u,l,f,h,i,n)||0),s!==0}function N1(e,t,r){return Gp(e,0,!1,t,r)}function F1(e,t,r,i){return Gp(e,t,!0,r,i)}var Vp=lt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ii),z1={style:lt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ts.style)},$s=Gn.concat(["invisible","culling","z","z2","zlevel","parent"]),ft=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(u){r.buildPath(u,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<$s.length;++s)n[$s[s]]=this[$s[s]];n.__dirty|=Zt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var i=dt(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?E(this.style,s):this.useStyle(s):o==="shape"?E(this.shape,s):e.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 r=this.style.fill;if(r!=="none"){if(z(r)){var i=bo(r,0);return i>.5?Qu:i>.2?y_:Ju}else if(r)return Ju}return Qu},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(z(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=bo(r,0)<Ku;if(a===o)return i}},t.prototype.buildPath=function(r,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Ai},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Gi(!1)},t.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ai)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),F1(s,u/l,r,i)))return!0}if(this.hasFill())return N1(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ai,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:E(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ai)},t.prototype.createStyle=function(r){return qo(Vp,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=E({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=E({},n.shape),E(l,i.shape)):(l=E({},a?this.shape:n.shape),E(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=E({},this.shape);for(var f={},h=dt(l),c=0;c<h.length;c++){var v=h[c];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return z1},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var i=(function(a){F(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return et(r.style)},o.prototype.getDefaultShape=function(){return et(r.shape)},o})(t);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Zt|mn|Ai})(),t})(ua),H1=lt({strokeFirst:!0,font:gr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Vp),Ao=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Hp(this.style)},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return qo(H1,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=x1(this.style)),this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})(ua);Ao.prototype.type="tspan";var G1=lt({x:0,y:0},ii),V1={style:lt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ts.style)};function W1(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ui=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return qo(G1,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=W1(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return V1},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new J(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(ua);ui.prototype.type="image";function U1(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>n&&(h=s+u,s*=n/h,u*=n/h),l+f>n&&(h=l+f,l*=n/h,f*=n/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,i),e.lineTo(r+n-u,i),u!==0&&e.arc(r+n-u,i+u,u,-Math.PI/2,0),e.lineTo(r+n,i+a-l),l!==0&&e.arc(r+n-l,i+a-l,l,0,Math.PI/2),e.lineTo(r+f,i+a),f!==0&&e.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var Ei=Math.round;function Wp(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Ei(i*2)===Ei(n*2)&&(e.x1=e.x2=Jr(i,s,!0)),Ei(a*2)===Ei(o*2)&&(e.y1=e.y2=Jr(a,s,!0))),e}}function Up(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Jr(i,s,!0),e.y=Jr(n,s,!0),e.width=Math.max(Jr(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Jr(n+o,s,!1)-e.y,o===0?0:1)),e}}function Jr(e,t,r){if(!t)return e;var i=Ei(e*2);return(i+Ei(t))%2===0?i/2:(i+(r?1:-1))/2}var Y1=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),X1={},St=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Y1},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=Up(X1,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?U1(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ft);St.prototype.type="rect";var uv={fill:"#000"},lv=2,De={},$1={style:lt({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},ts.style)},Kt=(function(e){F(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=uv,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,J1(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new J(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],u=s.getBoundingRect(),l=s.getLocalTransform(n);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||uv},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return E(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,i){for(var n=dt(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},E(r[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return $1},t.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||gr,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||"left",l=r.verticalAlign||a.verticalAlign||"top";tv(De,a.overflowRect,o,s,u,l),o=De.baseX,s=De.baseY;var f=gv(r),h=d1(f,r,De.outerWidth,De.outerHeight),c=Zs(r),v=!!r.backgroundColor,d=h.outerHeight,y=h.outerWidth,g=h.lines,p=h.lineHeight;this.isTruncated=!!h.isTruncated;var m=o,_=ri(s,h.contentHeight,l);if(c||n){var S=Hi(o,y,u),w=ri(s,d,l);c&&this._renderBackground(r,r,S,w,y,d)}_+=p/2,n&&(m=pv(o,u,n),l==="top"?_+=n[0]:l==="bottom"&&(_-=n[2]));for(var x=0,b=!1,M=!1,D=dv("fill"in r?r.fill:(M=!0,a.fill)),A=cv("stroke"in r?r.stroke:!v&&(!a.autoStroke||M)?(x=lv,b=!0,a.stroke):null),C=r.textShadowBlur>0,I=0;I<g.length;I++){var L=this._getOrCreateChild(Ao),P=L.createStyle();L.useStyle(P),P.text=g[I],P.x=m,P.y=_,P.textAlign=u,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,C&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=A,P.fill=D,A&&(P.lineWidth=r.lineWidth||x,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=i,hv(P,r),_+=p,L.setBoundingRect(rl(P,h.contentWidth,h.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;tv(De,i.overflowRect,o,s,n,a),o=De.baseX,s=De.baseY;var u=gv(r),l=y1(u,r,De.outerWidth,De.outerHeight,n),f=l.width,h=l.outerWidth,c=l.outerHeight,v=r.padding;this.isTruncated=!!l.isTruncated;var d=Hi(o,h,n),y=ri(s,c,a),g=d,p=y;v&&(g+=v[3],p+=v[0]);var m=g+f;Zs(r)&&this._renderBackground(r,r,d,y,h,c);for(var _=!!r.backgroundColor,S=0;S<l.lines.length;S++){for(var w=l.lines[S],x=w.tokens,b=x.length,M=w.lineHeight,D=w.width,A=0,C=g,I=m,L=b-1,P=void 0;A<b&&(P=x[A],!P.align||P.align==="left");)this._placeToken(P,r,M,p,C,"left",_),D-=P.width,C+=P.width,A++;for(;L>=0&&(P=x[L],P.align==="right");)this._placeToken(P,r,M,p,I,"right",_),D-=P.width,I-=P.width,L--;for(C+=(f-(C-g)-(m-I)-D)/2;A<=L;)P=x[A],this._placeToken(P,r,M,p,C+P.width/2,"center",_),C+=P.width,A++;p+=M}},t.prototype._placeToken=function(r,i,n,a,o,s,u){var l=i.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+n/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+n-r.height/2);var c=!r.isLineHolder&&Zs(l);c&&this._renderBackground(l,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=pv(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(Ao),g=y.createStyle();y.useStyle(g);var p=this._defaultStyle,m=!1,_=0,S=!1,w=dv("fill"in l?l.fill:"fill"in i?i.fill:(m=!0,p.fill)),x=cv("stroke"in l?l.stroke:"stroke"in i?i.stroke:!v&&!u&&(!p.autoStroke||m)?(_=lv,S=!0,p.stroke):null),b=l.textShadowBlur>0||i.textShadowBlur>0;g.text=r.text,g.x=o,g.y=h,b&&(g.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,g.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||gr,g.opacity=Oi(l.opacity,i.opacity,1),hv(g,l),x&&(g.lineWidth=Oi(l.lineWidth,i.lineWidth,_),g.lineDash=$(l.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=x),w&&(g.fill=w),y.setBoundingRect(rl(g,r.contentWidth,r.contentHeight,S?0:null))},t.prototype._renderBackground=function(r,i,n,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,c=u&&!h,v=r.borderRadius,d=this,y,g;if(c||r.lineHeight||l&&f){y=this._getOrCreateChild(St),y.useStyle(y.createStyle()),y.style.fill=null;var p=y.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=v,y.dirtyShape()}if(c){var m=y.style;m.fill=u||null,m.fillOpacity=$(r.fillOpacity,1)}else if(h){g=this._getOrCreateChild(ui),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=u.image,_.x=n,_.y=a,_.width=o,_.height=s}if(l&&f){var m=y.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=$(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(y||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Oi(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return Q1(r)&&(i=[r.fontStyle,r.fontWeight,K1(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Pe(i)||r.textFont||r.font},t})(ua),Z1={left:!0,right:1,center:1},q1={top:1,bottom:1,middle:1},fv=["fontStyle","fontWeight","fontSize","fontFamily"];function K1(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Ql+"px":e+"px"}function hv(e,t){for(var r=0;r<fv.length;r++){var i=fv[r],n=t[i];n!=null&&(e[i]=n)}}function Q1(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function J1(e){return vv(e),T(e.rich,vv),e}function vv(e){if(e){e.font=Kt.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Z1[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||q1[r]?r:"top";var i=e.padding;i&&(e.padding=rf(e.padding))}}function cv(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function dv(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function pv(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function gv(e){var t=e.text;return t!=null&&(t+=""),t}function Zs(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var ut=yt(),j1=function(e,t,r,i){if(i){var n=ut(i);n.dataIndex=r,n.dataType=t,n.seriesIndex=e,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=ut(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},yv=1,mv={},Yp=yt(),df=yt(),pf=0,es=1,rs=2,_r=["emphasis","blur","select"],_v=["normal","emphasis","blur","select"],tS=10,eS=9,ni="highlight",so="downplay",Lo="select",al="unselect",Po="toggleSelect",gf="selectchanged";function gi(e){return e!=null&&e!=="none"}function is(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Xp(e){is(e,"emphasis",rs)}function $p(e){e.hoverState===rs&&is(e,"normal",pf)}function yf(e){is(e,"blur",es)}function Zp(e){e.hoverState===es&&is(e,"normal",pf)}function rS(e){e.selected=!0}function iS(e){e.selected=!1}function Sv(e,t,r){t(e,r)}function je(e,t,r){Sv(e,t,r),e.isGroup&&e.traverse(function(i){Sv(i,t,r)})}function YA(e,t){switch(t){case"emphasis":e.hoverState=rs;break;case"normal":e.hoverState=pf;break;case"blur":e.hoverState=es;break;case"select":e.selected=!0}}function nS(e,t,r,i){for(var n=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=n[s];a[s]=u??(i&&i[s])}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function aS(e,t,r,i){var n=r&&it(r,"select")>=0,a=!1;if(e instanceof ft){var o=Yp(e),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(gi(s)||gi(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=E({},i),l=E({},l),l.fill=s):!gi(l.fill)&&gi(s)?(a=!0,i=E({},i),l=E({},l),l.fill=kh(s)):!gi(l.stroke)&&gi(u)&&(a||(i=E({},i),l=E({},l)),l.stroke=kh(u)),i.style=l}}if(i&&i.z2==null){a||(i=E({},i));var f=e.z2EmphasisLift;i.z2=e.z2+(f??tS)}return i}function oS(e,t,r){if(r&&r.z2==null){r=E({},r);var i=e.z2SelectLift;r.z2=e.z2+(i??eS)}return r}function sS(e,t,r){var i=it(e.currentStates,t)>=0,n=e.style.opacity,a=i?null:nS(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=E({},r),o=E({opacity:i?n:a.opacity*.1},o),r.style=o),r}function qs(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return aS(this,e,t,r);if(e==="blur")return sS(this,e,r);if(e==="select")return oS(this,e,r)}return r}function uS(e){e.stateProxy=qs;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=qs),r&&(r.stateProxy=qs)}function xv(e,t){!Jp(e,t)&&!e.__highByOuter&&je(e,Xp)}function wv(e,t){!Jp(e,t)&&!e.__highByOuter&&je(e,$p)}function ol(e,t){e.__highByOuter|=1<<(t||0),je(e,Xp)}function sl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&je(e,$p)}function lS(e){je(e,yf)}function qp(e){je(e,Zp)}function Kp(e){je(e,rS)}function Qp(e){je(e,iS)}function Jp(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function jp(e){var t=e.getModel(),r=[],i=[];t.eachComponent(function(n,a){var o=df(a),s=n==="series",u=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&i.push(u),o.isBlured&&(u.group.traverse(function(l){Zp(l)}),s&&r.push(a)),o.isBlured=!1}),T(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,t)})}function ul(e,t,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&qp(c)}}if(e!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];n.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!c||t==="series"&&f)){var v=i.getViewOfSeriesModel(l);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||yf(g)}),Wt(t))a(l.getData(),t);else if(G(t))for(var d=dt(t),y=0;y<d.length;y++)a(l.getData(d[y]),t[d[y]]);u.push(l),df(l).isBlured=!0}}),n.eachComponent(function(l,f){if(l!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,n)}})}}function ll(e,t,r){if(!(e==null||t==null)){var i=r.getModel().getComponent(e,t);if(i){df(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){yf(a)})}}}function fS(e,t,r){var i=e.seriesIndex,n=e.getData(t.dataType);if(n){var a=oa(n,t);a=(N(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),u=0;!o&&u<s;)o=n.getItemGraphicEl(u++);if(o){var l=ut(o);ul(i,l.focus,l.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&ul(i,f,h,r)}}}function mf(e,t,r,i){var n={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return n;var a=i.getModel().getComponent(e,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(ut(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function hS(e,t,r){var i=ut(e),n=mf(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&ll(i.componentMainType,i.componentIndex,r),T(a,function(s){return xv(s,t)})):(ul(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&ll(i.componentMainType,i.componentIndex,r),xv(e,t))}function vS(e,t,r){jp(r);var i=ut(e),n=mf(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?T(n,function(a){return wv(a,t)}):wv(e,t)}function cS(e,t,r){if(vl(t)){var i=t.dataType,n=e.getData(i),a=oa(n,t);N(a)||(a=[a]),e[t.type===Po?"toggleSelect":t.type===Lo?"select":"unselect"](a,i)}}function bv(e){var t=e.getAllData();T(t,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){e.isSelected(o,n)?Kp(a):Qp(a)})})}function dS(e){var t=[];return e.eachSeries(function(r){var i=r.getAllData();T(i,function(n){n.data;var a=n.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function fl(e,t,r){tg(e,!0),je(e,uS),yS(e,t,r)}function pS(e){tg(e,!1)}function gS(e,t,r,i){i?pS(e):fl(e,t,r)}function yS(e,t,r){var i=ut(e);t!=null?(i.focus=t,i.blurScope=r):i.focus&&(i.focus=null)}var Tv=["emphasis","blur","select"],mS={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _S(e,t,r,i){r=r||"itemStyle";for(var n=0;n<Tv.length;n++){var a=Tv[n],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[mS[r]]()}}function tg(e,t){var r=t===!1,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function hl(e){return!!(e&&e.__highDownDispatcher)}function SS(e){var t=mv[e];return t==null&&yv<=32&&(t=mv[e]=yv++),t}function vl(e){var t=e.type;return t===Lo||t===al||t===Po}function Cv(e){var t=e.type;return t===ni||t===so}function xS(e){var t=Yp(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var yi=Gi.CMD,wS=[[],[],[]],Mv=Math.sqrt,bS=Math.atan2;function TS(e,t){if(t){var r=e.data,i=e.len(),n,a,o,s,u,l,f=yi.M,h=yi.C,c=yi.L,v=yi.R,d=yi.A,y=yi.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case c:a=1;break;case h:a=3;break;case y:a=2;break;case d:var g=t[4],p=t[5],m=Mv(t[0]*t[0]+t[1]*t[1]),_=Mv(t[2]*t[2]+t[3]*t[3]),S=bS(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=g,r[o]*=_,r[o++]+=p,r[o++]*=m,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],ue(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],ue(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var w=wS[u];w[0]=r[o++],w[1]=r[o++],ue(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var Ks=Math.sqrt,Ta=Math.sin,Ca=Math.cos,nn=Math.PI;function Dv(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function cl(e,t){return(e[0]*t[0]+e[1]*t[1])/(Dv(e)*Dv(t))}function Av(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(cl(e,t))}function Lv(e,t,r,i,n,a,o,s,u,l,f){var h=u*(nn/180),c=Ca(h)*(e-r)/2+Ta(h)*(t-i)/2,v=-1*Ta(h)*(e-r)/2+Ca(h)*(t-i)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Ks(d),s*=Ks(d));var y=(n===a?-1:1)*Ks((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=y*o*v/s,p=y*-s*c/o,m=(e+r)/2+Ca(h)*g-Ta(h)*p,_=(t+i)/2+Ta(h)*g+Ca(h)*p,S=Av([1,0],[(c-g)/o,(v-p)/s]),w=[(c-g)/o,(v-p)/s],x=[(-1*c-g)/o,(-1*v-p)/s],b=Av(w,x);if(cl(w,x)<=-1&&(b=nn),cl(w,x)>=1&&(b=0),b<0){var M=Math.round(b/nn*1e6)/1e6;b=nn*2+M%2*nn}f.addData(l,m,_,o,s,S,b,h,a)}var CS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,MS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function DS(e){var t=new Gi;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=Gi.CMD,u=e.match(CS);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(MS)||[],d=v.length,y=0;y<d;y++)v[y]=parseFloat(v[y]);for(var g=0;g<d;){var p=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,M=r,D=i,A=void 0,C=void 0;switch(h){case"l":r+=v[g++],i+=v[g++],c=s.L,t.addData(c,r,i);break;case"L":r=v[g++],i=v[g++],c=s.L,t.addData(c,r,i);break;case"m":r+=v[g++],i+=v[g++],c=s.M,t.addData(c,r,i),n=r,a=i,h="l";break;case"M":r=v[g++],i=v[g++],c=s.M,t.addData(c,r,i),n=r,a=i,h="L";break;case"h":r+=v[g++],c=s.L,t.addData(c,r,i);break;case"H":r=v[g++],c=s.L,t.addData(c,r,i);break;case"v":i+=v[g++],c=s.L,t.addData(c,r,i);break;case"V":i=v[g++],c=s.L,t.addData(c,r,i);break;case"C":c=s.C,t.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),r=v[g-2],i=v[g-1];break;case"c":c=s.C,t.addData(c,v[g++]+r,v[g++]+i,v[g++]+r,v[g++]+i,v[g++]+r,v[g++]+i),r+=v[g-2],i+=v[g-1];break;case"S":p=r,m=i,A=t.len(),C=t.data,o===s.C&&(p+=r-C[A-4],m+=i-C[A-3]),c=s.C,M=v[g++],D=v[g++],r=v[g++],i=v[g++],t.addData(c,p,m,M,D,r,i);break;case"s":p=r,m=i,A=t.len(),C=t.data,o===s.C&&(p+=r-C[A-4],m+=i-C[A-3]),c=s.C,M=r+v[g++],D=i+v[g++],r+=v[g++],i+=v[g++],t.addData(c,p,m,M,D,r,i);break;case"Q":M=v[g++],D=v[g++],r=v[g++],i=v[g++],c=s.Q,t.addData(c,M,D,r,i);break;case"q":M=v[g++]+r,D=v[g++]+i,r+=v[g++],i+=v[g++],c=s.Q,t.addData(c,M,D,r,i);break;case"T":p=r,m=i,A=t.len(),C=t.data,o===s.Q&&(p+=r-C[A-4],m+=i-C[A-3]),r=v[g++],i=v[g++],c=s.Q,t.addData(c,p,m,r,i);break;case"t":p=r,m=i,A=t.len(),C=t.data,o===s.Q&&(p+=r-C[A-4],m+=i-C[A-3]),r+=v[g++],i+=v[g++],c=s.Q,t.addData(c,p,m,r,i);break;case"A":_=v[g++],S=v[g++],w=v[g++],x=v[g++],b=v[g++],M=r,D=i,r=v[g++],i=v[g++],c=s.A,Lv(M,D,r,i,x,b,_,S,w,c,t);break;case"a":_=v[g++],S=v[g++],w=v[g++],x=v[g++],b=v[g++],M=r,D=i,r+=v[g++],i+=v[g++],c=s.A,Lv(M,D,r,i,x,b,_,S,w,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),r=n,i=a),o=c}return t.toStatic(),t}var eg=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(ft);function rg(e){return e.setData!=null}function ig(e,t){var r=DS(e),i=E({},t);return i.buildPath=function(n){var a=rg(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){TS(r,n),this.dirtyShape()},i}function AS(e,t){return new eg(ig(e,t))}function LS(e,t){var r=ig(e,t),i=(function(n){F(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(eg);return i}function PS(e,t){for(var r=[],i=e.length,n=0;n<i;n++){var a=e[n];r.push(a.getUpdatedPathProxy(!0))}var o=new ft(t);return o.createPathProxy(),o.buildPath=function(s){if(rg(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var IS=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),ns=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new IS},t.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(ft);ns.prototype.type="circle";var RS=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),_f=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new RS},t.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,f=u*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},t})(ft);_f.prototype.type="ellipse";var ng=Math.PI,Qs=ng*2,Hr=Math.sin,mi=Math.cos,ES=Math.acos,Pt=Math.atan2,Pv=Math.abs,Pn=Math.sqrt,Sn=Math.max,Ae=Math.min,he=1e-4;function kS(e,t,r,i,n,a,o,s){var u=r-e,l=i-t,f=o-n,h=s-a,c=h*u-f*l;if(!(c*c<he))return c=(f*(t-a)-h*(e-n))/c,[e+c*u,t+c*l]}function Ma(e,t,r,i,n,a,o){var s=e-r,u=t-i,l=(o?a:-a)/Pn(s*s+u*u),f=l*u,h=-l*s,c=e+f,v=t+h,d=r+f,y=i+h,g=(c+d)/2,p=(v+y)/2,m=d-c,_=y-v,S=m*m+_*_,w=n-a,x=c*y-d*v,b=(_<0?-1:1)*Pn(Sn(0,w*w*S-x*x)),M=(x*_-m*b)/S,D=(-x*m-_*b)/S,A=(x*_+m*b)/S,C=(-x*m+_*b)/S,I=M-g,L=D-p,P=A-g,R=C-p;return I*I+L*L>P*P+R*R&&(M=A,D=C),{cx:M,cy:D,x0:-f,y0:-h,x1:M*(n/w-1),y1:D*(n/w-1)}}function OS(e){var t;if(N(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function BS(e,t){var r,i=Sn(t.r,0),n=Sn(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Pv(l-u),d=v>Qs&&v%Qs;if(d>he&&(v=d),!(i>he))e.moveTo(f,h);else if(v>Qs-he)e.moveTo(f+i*mi(u),h+i*Hr(u)),e.arc(f,h,i,u,l,!c),n>he&&(e.moveTo(f+n*mi(l),h+n*Hr(l)),e.arc(f,h,n,l,u,c));else{var y=void 0,g=void 0,p=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,M=void 0,D=void 0,A=void 0,C=void 0,I=void 0,L=void 0,P=void 0,R=i*mi(u),O=i*Hr(u),Z=n*mi(l),B=n*Hr(l),X=v>he;if(X){var W=t.cornerRadius;W&&(r=OS(W),y=r[0],g=r[1],p=r[2],m=r[3]);var V=Pv(i-n)/2;if(_=Ae(V,p),S=Ae(V,m),w=Ae(V,y),x=Ae(V,g),D=b=Sn(_,S),A=M=Sn(w,x),(b>he||M>he)&&(C=i*mi(l),I=i*Hr(l),L=n*mi(u),P=n*Hr(u),v<ng)){var H=kS(R,O,L,P,C,I,Z,B);if(H){var tt=R-H[0],xt=O-H[1],xe=C-H[0],we=I-H[1],be=1/Hr(ES((tt*xe+xt*we)/(Pn(tt*tt+xt*xt)*Pn(xe*xe+we*we)))/2),ze=Pn(H[0]*H[0]+H[1]*H[1]);D=Ae(b,(i-ze)/(be+1)),A=Ae(M,(n-ze)/(be-1))}}}if(!X)e.moveTo(f+R,h+O);else if(D>he){var Xt=Ae(p,D),Dt=Ae(m,D),Q=Ma(L,P,R,O,i,Xt,c),rt=Ma(C,I,Z,B,i,Dt,c);e.moveTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),D<b&&Xt===Dt?e.arc(f+Q.cx,h+Q.cy,D,Pt(Q.y0,Q.x0),Pt(rt.y0,rt.x0),!c):(Xt>0&&e.arc(f+Q.cx,h+Q.cy,Xt,Pt(Q.y0,Q.x0),Pt(Q.y1,Q.x1),!c),e.arc(f,h,i,Pt(Q.cy+Q.y1,Q.cx+Q.x1),Pt(rt.cy+rt.y1,rt.cx+rt.x1),!c),Dt>0&&e.arc(f+rt.cx,h+rt.cy,Dt,Pt(rt.y1,rt.x1),Pt(rt.y0,rt.x0),!c))}else e.moveTo(f+R,h+O),e.arc(f,h,i,u,l,!c);if(!(n>he)||!X)e.lineTo(f+Z,h+B);else if(A>he){var Xt=Ae(y,A),Dt=Ae(g,A),Q=Ma(Z,B,C,I,n,-Dt,c),rt=Ma(R,O,L,P,n,-Xt,c);e.lineTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),A<M&&Xt===Dt?e.arc(f+Q.cx,h+Q.cy,A,Pt(Q.y0,Q.x0),Pt(rt.y0,rt.x0),!c):(Dt>0&&e.arc(f+Q.cx,h+Q.cy,Dt,Pt(Q.y0,Q.x0),Pt(Q.y1,Q.x1),!c),e.arc(f,h,n,Pt(Q.cy+Q.y1,Q.cx+Q.x1),Pt(rt.cy+rt.y1,rt.cx+rt.x1),c),Xt>0&&e.arc(f+rt.cx,h+rt.cy,Xt,Pt(rt.y1,rt.x1),Pt(rt.y0,rt.x0),!c))}else e.lineTo(f+Z,h+B),e.arc(f,h,n,l,u,c)}e.closePath()}}}var NS=(function(){function e(){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 e})(),Ki=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new NS},t.prototype.buildPath=function(r,i){BS(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ft);Ki.prototype.type="sector";var FS=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),Sf=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new FS},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t})(ft);Sf.prototype.type="ring";function zS(e,t,r,i){var n=[],a=[],o=[],s=[],u,l,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=e.length;c<v;c++)Li(f,f,e[c]),Pi(h,h,e[c]);Li(f,f,i[0]),Pi(h,h,i[1])}for(var c=0,v=e.length;c<v;c++){var d=e[c];if(r)u=e[c?c-1:v-1],l=e[(c+1)%v];else if(c===0||c===v-1){n.push(h0(e[c]));continue}else u=e[c-1],l=e[c+1];v0(a,l,u),ds(a,a,t);var y=Ou(d,u),g=Ou(d,l),p=y+g;p!==0&&(y/=p,g/=p),ds(o,a,-y),ds(s,a,g);var m=yh([],d,o),_=yh([],d,s);i&&(Pi(m,m,f),Li(m,m,h),Pi(_,_,f),Li(_,_,h)),n.push(m),n.push(_)}return r&&n.push(n.shift()),n}function ag(e,t,r){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=zS(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=n[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)e.lineTo(n[s][0],n[s][1])}r&&e.closePath()}}var HS=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),xf=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new HS},t.prototype.buildPath=function(r,i){ag(r,i,!0)},t})(ft);xf.prototype.type="polygon";var GS=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),wf=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new GS},t.prototype.buildPath=function(r,i){ag(r,i,!1)},t})(ft);wf.prototype.type="polyline";var VS={},WS=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),Sr=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new WS},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=Wp(VS,i,this.style);n=u.x1,a=u.y1,o=u.x2,s=u.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var l=i.percent;l!==0&&(r.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},t})(ft);Sr.prototype.type="line";var Nt=[],US=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function Iv(e,t,r){var i=e.cpx2,n=e.cpy2;return i!=null||n!=null?[(r?Lh:Bt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Lh:Bt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Ph:zt)(e.x1,e.cpx1,e.x2,t),(r?Ph:zt)(e.y1,e.cpy1,e.y2,t)]}var bf=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new US},t.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,u=i.cpx1,l=i.cpy1,f=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(r.moveTo(n,a),f==null||h==null?(c<1&&(wo(n,u,o,c,Nt),u=Nt[1],o=Nt[2],wo(a,l,s,c,Nt),l=Nt[1],s=Nt[2]),r.quadraticCurveTo(u,l,o,s)):(c<1&&(xo(n,u,f,o,c,Nt),u=Nt[1],f=Nt[2],o=Nt[3],xo(a,l,h,s,c,Nt),l=Nt[1],h=Nt[2],s=Nt[3]),r.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(r){return Iv(this.shape,r,!1)},t.prototype.tangentAt=function(r){var i=Iv(this.shape,r,!0);return p0(i,i)},t})(ft);bf.prototype.type="bezier-curve";var YS=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),as=(function(e){F(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new YS},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,u=i.endAngle,l=i.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+n,h*o+a),r.arc(n,a,o,s,u,!l)},t})(ft);as.prototype.type="arc";var XS=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ft.prototype.getBoundingRect.call(this)},t})(ft),og=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),$S=(function(e){F(t,e);function t(r,i,n,a,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t})(og),ZS=(function(e){F(t,e);function t(r,i,n,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(og),Js=Math.min,qS=Math.max,Da=Math.abs,Gr=[0,0],Vr=[0,0],Ct=ap(),Aa=Ct.minTv,La=Ct.maxTv,sg=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new st;for(var i=0;i<2;i++)this._axes[i]=new st;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,u),i[3].set(a,u),r)for(var l=0;l<4;l++)i[l].transform(r);st.sub(n[0],i[1],i[0]),st.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},e.prototype.intersect=function(t,r,i){var n=!0,a=!r;return r&&st.set(r,0,0),Ct.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!Ct.negativeSize&&st.copy(r,n?Ct.useDir?Ct.dirMinTv:Aa:La),n},e.prototype._intersectCheckOneSide=function(t,r,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Gr),t._getProjMinMaxOnAxis(o,r._corners,Vr),Ct.negativeSize||Gr[1]<Vr[0]||Gr[0]>Vr[1]){if(a=!1,Ct.negativeSize||i)return a;var u=Da(Vr[0]-Gr[1]),l=Da(Gr[0]-Vr[1]);Js(u,l)>La.len()&&(u<l?st.scale(La,s,-u*n):st.scale(La,s,l*n))}else if(!i){var u=Da(Vr[0]-Gr[1]),l=Da(Gr[0]-Vr[1]);(Ct.useDir||Js(u,l)<Aa.len())&&((u<l||!Ct.bidirectional)&&(st.scale(Aa,s,u*n),Ct.useDir&&Ct.calcDirMTV()),(u>=l||!Ct.bidirectional)&&(st.scale(Aa,s,-l*n),Ct.useDir&&Ct.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,i){for(var n=this._axes[t],a=this._origin,o=r[0].dot(n)+a[t],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(n)+a[t];s=Js(f,s),u=qS(f,u)}i[0]=s+Ct.touchThreshold,i[1]=u-Ct.touchThreshold,Ct.negativeSize=i[1]<i[0]},e})(),KS=[],QS=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,i){r.call(i,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(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new J(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(KS)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},t})(ua),JS=yt();function jS(e,t,r,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,f=void 0,h=void 0;i?(l=$(i.duration,200),f=$(i.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),K(h)&&(h=h(r,n)),K(l)&&(l=l(r));var c={duration:l||0,delay:h,easing:f};return c}else return null}function Tf(e,t,r,i,n,a,o){var s=!1,u;K(n)?(o=a,a=n,n=null):G(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var f=jS(e,i,n,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Qe(e,t,r,i,n,a){Tf("update",e,t,r,i,n,a)}function oi(e,t,r,i,n,a){Tf("enter",e,t,r,i,n,a)}function In(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function ug(e,t,r,i,n,a){In(e)||Tf("leave",e,t,r,i,n,a)}function Rv(e,t,r,i){e.removeTextContent(),e.removeTextGuideLine(),ug(e,{style:{opacity:0}},t,r,i)}function uo(e,t,r){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(n){n.isGroup||Rv(n,t,r,i)}):Rv(e,t,r,i)}function tx(e){JS(e).oldStyle=e.style}var dl={},ur=["x","y"],Vi=["width","height"];function ex(e){return ft.extend(e)}var rx=LS;function ix(e,t){return rx(e,t)}function _e(e,t){dl[e]=t}function nx(e){if(dl.hasOwnProperty(e))return dl[e]}function Cf(e,t,r,i){var n=AS(e,t);return r&&(i==="center"&&(r=fg(r,n.getBoundingRect())),hg(n,r)),n}function lg(e,t,r){var i=new ui({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(fg(t,a))}}});return i}function fg(e,t){var r=t.width/t.height,i=e.height*r,n;i<=e.width?n=e.height:(i=e.width,n=i/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var ax=PS;function hg(e,t){if(e.applyTransform){var r=e.getBoundingRect(),i=r.calculateTransform(t);e.applyTransform(i)}}function Yn(e,t){return Wp(e,e,{lineWidth:t}),e}function ox(e,t){return Up(e,e,t),e}var sx=Jr;function ux(e,t){for(var r=af([]);e&&e!==t;)Mn(r,e.getLocalTransform(),r),e=e.parent;return r}function Mf(e,t,r){return t&&!Wt(t)&&(t=uf.getLocalTransform(t)),r&&(t=na([],t)),ue([],e,t)}function lx(e,t,r){var i=t[4]===0||t[5]===0||t[0]===0?1:Ie(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Ie(2*t[4]/t[2]),a=[e==="left"?-i:e==="right"?i:0,e==="top"?-n:e==="bottom"?n:0];return a=Mf(a,t,r),Ie(a[0])>Ie(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Ev(e){return!e.isGroup}function fx(e){return e.shape!=null}function vg(e,t,r){if(!e||!t)return;function i(o){var s={};return o.traverse(function(u){Ev(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return fx(o)&&(s.shape=et(o.shape)),s}var a=i(e);t.traverse(function(o){if(Ev(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),Qe(o,u,r,ut(o).dataIndex)}}})}function hx(e,t){return Y(e,function(r){var i=r[0];i=qt(i,t.x),i=Vn(i,t.x+t.width);var n=r[1];return n=qt(n,t.y),n=Vn(n,t.y+t.height),[i,n]})}function vx(e,t){var r=qt(e.x,t.x),i=Vn(e.x+e.width,t.x+t.width),n=qt(e.y,t.y),a=Vn(e.y+e.height,t.y+t.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function Df(e,t,r){var i=E({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(n.image=e.slice(8),lt(n,r),new ui(i)):Cf(e.replace("path://",""),i,r,"center")}function cx(e,t,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(cg(e,t,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function cg(e,t,r,i,n,a,o,s){var u=r-e,l=i-t,f=o-n,h=s-a,c=js(f,h,u,l);if(dx(c))return!1;var v=e-n,d=t-a,y=js(v,d,u,l)/c;if(y<0||y>1)return!1;var g=js(v,d,f,h)/c;return!(g<0||g>1)}function js(e,t,r,i){return e*i-r*t}function dx(e){return e<=1e-6&&e>=-1e-6}function Io(e,t,r,i,n){return t==null||(ct(t)?ht[0]=ht[1]=ht[2]=ht[3]=t:(ht[0]=t[0],ht[1]=t[1],ht[2]=t[2],ht[3]=t[3]),i&&(ht[0]=qt(0,ht[0]),ht[1]=qt(0,ht[1]),ht[2]=qt(0,ht[2]),ht[3]=qt(0,ht[3])),r&&(ht[0]=-ht[0],ht[1]=-ht[1],ht[2]=-ht[2],ht[3]=-ht[3]),kv(e,ht,"x","width",3,1,n&&n[0]||0),kv(e,ht,"y","height",0,2,n&&n[1]||0)),e}var ht=[0,0,0,0];function kv(e,t,r,i,n,a,o){var s=t[a]+t[n],u=e[i];e[i]+=s,o=qt(0,Vn(o,u)),e[i]<o?(e[i]=o,e[r]+=t[n]>=0?-t[n]:t[a]>=0?u+t[a]:Ie(s)>1e-8?(u-o)*t[n]/s:0):e[r]-=t[n]}function os(e){var t=e.itemTooltipOption,r=e.componentModel,i=e.itemName,n=z(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&T(dt(u),function(f){de(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=ut(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:lt({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function pl(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Af(e,t){if(e)if(N(e))for(var r=0;r<e.length;r++)pl(e[r],t);else pl(e,t)}function Lf(e){return!e||Ie(e[1])<Pa&&Ie(e[2])<Pa||Ie(e[0])<Pa&&Ie(e[3])<Pa}var Pa=1e-5;function Xn(e,t){return e?J.copy(e,t):t.clone()}function Pf(e,t){return t?np(e||Ze(),t):void 0}function dg(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function px(e){var t=-1/0,r=1/0;pl(e,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function pg(e,t,r){gg(e,t,r,-1/0)}function gg(e,t,r,i){if(e.ignoreModelZ)return i;var n=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),u=0;u<s.length;u++)i=qt(gg(s[u],t,r,i),i);else e.z=t,e.zlevel=r,i=qt(e.z2||0,i);if(n&&(n.z=t,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var l=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(i)&&(a.z2=i+(l&&l.showAbove?1:-1))}return i}_e("circle",ns);_e("ellipse",_f);_e("sector",Ki);_e("ring",Sf);_e("polygon",xf);_e("polyline",wf);_e("rect",St);_e("line",Sr);_e("bezierCurve",bf);_e("arc",as);const gx=Object.freeze(Object.defineProperty({__proto__:null,Arc:as,BezierCurve:bf,BoundingRect:J,Circle:ns,CompoundPath:XS,Ellipse:_f,Group:Yt,Image:ui,IncrementalDisplayable:QS,Line:Sr,LinearGradient:$S,OrientedBoundingRect:sg,Path:ft,Point:st,Polygon:xf,Polyline:wf,RadialGradient:ZS,Rect:St,Ring:Sf,Sector:Ki,Text:Kt,WH:Vi,XY:ur,applyTransform:Mf,calcZ2Range:px,clipPointsByRect:hx,clipRectByRect:vx,createIcon:Df,ensureCopyRect:Xn,ensureCopyTransform:Pf,expandOrShrinkRect:Io,extendPath:ix,extendShape:ex,getShapeClass:nx,getTransform:ux,groupTransition:vg,initProps:oi,isBoundingRectAxisAligned:Lf,isElementRemoved:In,lineLineIntersect:cg,linePolygonIntersect:cx,makeImage:lg,makePath:Cf,mergePath:ax,registerShape:_e,removeElement:ug,removeElementWithFadeOut:uo,resizePath:hg,retrieveZInfo:dg,setTooltipConfig:os,subPixelOptimize:sx,subPixelOptimizeLine:Yn,subPixelOptimizeRect:ox,transformDirection:lx,traverseElements:Af,traverseUpdateZ:pg,updateProps:Qe},Symbol.toStringTag,{value:"Module"}));var ss={};function yx(e,t){for(var r=0;r<_r.length;r++){var i=_r[r],n=t[i],a=e.ensureState(i);a.style=a.style||{},a.style.text=n}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Ov(e,t,r){var i=e.labelFetcher,n=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=K(e.defaultText)?e.defaultText(n,e,r):e.defaultText);for(var u={normal:s},l=0;l<_r.length;l++){var f=_r[l],h=t[f];u[f]=$(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return u}function yg(e,t,r,i){r=r||ss;for(var n=e instanceof Kt,a=!1,o=0;o<_v.length;o++){var s=t[_v[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=n?e:e.getTextContent();if(a){n||(u||(u=new Kt,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=Ov(r,t),f=t.normal,h=!!f.getShallow("show"),c=Wi(f,i&&i.normal,r,!1,!n);c.text=l.normal,n||e.setTextConfig(Bv(f,r,!1));for(var o=0;o<_r.length;o++){var v=_r[o],s=t[v];if(s){var d=u.ensureState(v),y=!!$(s.getShallow("show"),h);if(y!==h&&(d.ignore=!y),d.style=Wi(s,i&&i[v],r,!0,!n),d.style.text=l[v],!n){var g=e.ensureState(v);g.textConfig=Bv(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),r.enableTextSetter&&(If(u).setLabelText=function(p){var m=Ov(r,t,p);yx(u,m)})}else u&&(u.ignore=!0);e.dirty()}function mx(e,t){t=t||"label";for(var r={normal:e.getModel(t)},i=0;i<_r.length;i++){var n=_r[i];r[n]=e.getModel([n,t])}return r}function Wi(e,t,r,i,n){var a={};return _x(a,e,r,i,n),t&&E(a,t),a}function Bv(e,t,r){t=t||{};var i={},n,a=e.getShallow("rotate"),o=$(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return n=e.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}function _x(e,t,r,i,n){r=r||ss;var a=t.ecModel,o=a&&a.option.textStyle,s=Sx(t),u;if(s){u={};var l="richInheritPlainLabel",f=$(t.get(l),a?a.get(l):void 0);for(var h in s)if(s.hasOwnProperty(h)){var c=t.getModel(["rich",h]);Hv(u[h]={},c,o,t,f,r,i,n,!1,!0)}}u&&(e.rich=u);var v=t.get("overflow");v&&(e.overflow=v);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var y=e,g=t.get("minMargin");if(g!=null)g=ct(g)?g/2:0,y.margin=[g,g,g,g],y.__marginType=ki.minMargin;else{var p=t.get("textMargin");p!=null&&(y.margin=rf(p),y.__marginType=ki.textMargin)}Hv(e,t,o,null,null,r,i,n,!0,!1)}function Sx(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||ss).rich;if(r){t=t||{};for(var i=dt(r),n=0;n<i.length;n++){var a=i[n];t[a]=1}}e=e.parentModel}return t}var Nv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Fv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],zv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Hv(e,t,r,i,n,a,o,s,u,l){r=!o&&r||ss;var f=a&&a.inheritColor,h=t.getShallow("color"),c=t.getShallow("textBorderColor"),v=$(t.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(f?h=f:h=null),(c==="inherit"||c==="auto")&&(f?c=f:c=null),s||(h=h||r.color,c=c||r.textBorderColor),h!=null&&(e.fill=h),c!=null&&(e.stroke=c);var d=$(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var y=$(t.getShallow("textBorderType"),r.textBorderType);y!=null&&(e.lineDash=y);var g=$(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&v==null&&!l&&(v=a&&a.defaultOpacity),v!=null&&(e.opacity=v),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var p=0;p<Nv.length;p++){var m=Nv[p],_=n!==!1&&i?Oi(t.getShallow(m),i.getShallow(m),r[m]):$(t.getShallow(m),r[m]);_!=null&&(e[m]=_)}for(var p=0;p<Fv.length;p++){var m=Fv[p],_=t.getShallow(m);_!=null&&(e[m]=_)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!u||!a.disableBox){for(var p=0;p<zv.length;p++){var m=zv[p],_=t.getShallow(m);_!=null&&(e[m]=_)}var w=t.getShallow("borderType");w!=null&&(e.borderDash=w),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function xx(e,t){var r=t&&t.getModel("textStyle");return Pe([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var If=yt();function bx(e,t,r,i){if(e){var n=If(e);n.prevValue=n.value,n.value=r;var a=t.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=t)}}var ki={minMargin:1,textMargin:2},Tx=["textStyle","color"],tu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],eu=new Kt,Cx=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(Tx):null)},e.prototype.getFont=function(){return xx({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<tu.length;i++)r[tu[i]]=this.getShallow(tu[i]);return eu.useStyle(r),eu.update(),eu.getBoundingRect()},e})(),mg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mx=Un(mg),Dx=(function(){function e(){}return e.prototype.getLineStyle=function(t){return Mx(this,t)},e})(),_g=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ax=Un(_g),Lx=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Ax(this,t,r)},e})(),pt=(function(){function e(t,r,i){this.parentModel=r,this.ecModel=i,this.option=t}return e.prototype.init=function(t,r,i){},e.prototype.mergeOption=function(t,r){at(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var i=this.option,n=i==null?i:i[t];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},e.prototype.getModel=function(t,r){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(et(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!q.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(t),r.parentModel)),i},e})();vf(pt);a1(pt);Ne(pt,Dx);Ne(pt,Lx);Ne(pt,f1);Ne(pt,Cx);var Px=Math.round(Math.random()*10);function us(e){return[e||"",Px++].join("_")}function Ix(e){var t={};e.registerSubTypeDefaulter=function(r,i){var n=Re(r);t[n.main]=i},e.determineSubType=function(r,i){var n=i.type;if(!n){var a=Re(r).main;e.hasSubTypes(r)&&t[a]&&(n=t[a](i))}return n}}function Rx(e,t){e.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,h=l.noEntryList,c={};for(T(a,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],y=!!c[v];y&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),T(d.successor,y?p:g)}T(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function p(m){c[m]=!0,g(m)}};function r(a){var o={},s=[];return T(a,function(u){var l=i(o,u),f=l.originalDeps=t(u),h=n(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),T(h,function(c){it(l.predecessor,c)<0&&l.predecessor.push(c);var v=i(o,c);it(v.successor,c)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return T(a,function(u){it(o,u)>=0&&s.push(u)}),s}}function Sg(e,t){return at(at({},e,!0),t,!0)}const Ex={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},kx={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Ro="ZH",Rf="EN",Fi=Rf,lo={},Ef={},xg=q.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Fi).toUpperCase();return e.indexOf(Ro)>-1?Ro:Fi})():Fi;function wg(e,t){e=e.toUpperCase(),Ef[e]=new pt(t),lo[e]=t}function Ox(e){if(z(e)){var t=lo[e.toUpperCase()]||{};return e===Ro||e===Rf?et(t):at(et(t),et(lo[Fi]),!1)}else return at(et(e),et(lo[Fi]),!1)}function Bx(e){return Ef[e]}function Nx(){return Ef[Fi]}wg(Rf,Ex);wg(Ro,kx);var Fx=null;function Eo(){return Fx}var kf=1e3,Of=kf*60,Rn=Of*60,se=Rn*24,Gv=se*365,zx={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},fo={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Hx="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Ia="{yyyy}-{MM}-{dd}",Vv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ia,hour:Ia+" "+fo.hour,minute:Ia+" "+fo.minute,second:Ia+" "+fo.second,millisecond:Hx},ai=["year","month","day","hour","minute","second","millisecond"],Gx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vx(e){return!z(e)&&!K(e)?Wx(e):e}function Wx(e){e=e||{};var t={},r=!0;return T(ai,function(i){r&&(r=e[i]==null)}),T(ai,function(i,n){var a=e[i];t[i]={};for(var o=null,s=n;s>=0;s--){var u=ai[s],l=G(a)&&!N(a)?a[u]:a,f=void 0;N(l)?(f=l.slice(),o=f[0]||""):z(l)?(o=l,f=[o]):(o==null?o=fo[i]:zx[u].test(o)||(o=t[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[i][u]=f}}),t}function rr(e,t){return e+="","0000".substr(0,t-e.length)+e}function En(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Ux(e){return e===En(e)}function Yx(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ls(e,t,r,i){var n=qi(e),a=n[bg(r)](),o=n[Bf(r)]()+1,s=Math.floor((o-1)/3)+1,u=n[Nf(r)](),l=n["get"+(r?"UTC":"")+"Day"](),f=n[Ff(r)](),h=(f-1)%12+1,c=n[zf(r)](),v=n[Hf(r)](),d=n[Gf(r)](),y=f>=12?"pm":"am",g=y.toUpperCase(),p=i instanceof pt?i:Bx(i||xg)||Nx(),m=p.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),w=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,rr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,rr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,rr(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,w[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+"").replace(/{HH}/g,rr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,rr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,rr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,rr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,rr(d,3)).replace(/{S}/g,d+"")}function Xx(e,t,r,i,n){var a=null;if(z(r))a=r;else if(K(r)){var o={time:e.time,level:e.time.level},s=Eo();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var u=e.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=ko(e.value,n);a=r[f][f][0]}}return ls(new Date(e.value),a,n,i)}function ko(e,t){var r=qi(e),i=r[Bf(t)]()+1,n=r[Nf(t)](),a=r[Ff(t)](),o=r[zf(t)](),s=r[Hf(t)](),u=r[Gf(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&n===1,d=v&&i===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function gl(e,t,r){switch(t){case"year":e[Tg(r)](0);case"month":e[Cg(r)](1);case"day":e[Mg(r)](0);case"hour":e[Dg(r)](0);case"minute":e[Ag(r)](0);case"second":e[Lg(r)](0)}return e}function bg(e){return e?"getUTCFullYear":"getFullYear"}function Bf(e){return e?"getUTCMonth":"getMonth"}function Nf(e){return e?"getUTCDate":"getDate"}function Ff(e){return e?"getUTCHours":"getHours"}function zf(e){return e?"getUTCMinutes":"getMinutes"}function Hf(e){return e?"getUTCSeconds":"getSeconds"}function Gf(e){return e?"getUTCMilliseconds":"getMilliseconds"}function $x(e){return e?"setUTCFullYear":"setFullYear"}function Tg(e){return e?"setUTCMonth":"setMonth"}function Cg(e){return e?"setUTCDate":"setDate"}function Mg(e){return e?"setUTCHours":"setHours"}function Dg(e){return e?"setUTCMinutes":"setMinutes"}function Ag(e){return e?"setUTCSeconds":"setSeconds"}function Lg(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Pg(e){if(!B_(e))return z(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Ig(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var fs=rf;function yl(e,t,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Pe(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?qi(e):e;if(isNaN(+u)){if(s)return"-"}else return ls(u,i,r)}if(t==="ordinal")return Eu(e)?n(e):ct(e)&&a(e)?e+"":"-";var l=Do(e);return a(l)?Pg(l):Eu(e)?n(e):typeof e=="boolean"?e+"":"-"}var Wv=["a","b","c","d","e","f","g"],ru=function(e,t){return"{"+e+(t??"")+"}"};function Rg(e,t,r){N(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=Wv[a];e=e.replace(ru(o),ru(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=t[s][n[u]];e=e.replace(ru(Wv[u],s),r?Ft(l):l)}return e}function Zx(e,t){var r=z(e)?{color:e,extraCssText:t}:e||{},i=r.color,n=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ft(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ft(i)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function $n(e,t){return t=t||"transparent",z(e)?e:G(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function XA(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ho={},iu={},Vf=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=i(ho),this._normalMasterList=i(iu);function i(n,a){var o=[];return T(n,function(s,u){var l=s.create(t,r);o=o.concat(l||[])}),o}},e.prototype.update=function(t,r){T(this._normalMasterList,function(i){i.update&&i.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){ho[t]=r;return}iu[t]=r},e.get=function(t){return iu[t]||ho[t]},e})();function qx(e){return!!ho[e]}var ml={coord:1,coord2:2};function $A(e){Eg.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Eg=j();function Kx(e){var t=e.getShallow("coord",!0),r=ml.coord;if(t==null){var i=Eg.get(e.type);i&&i.getCoord2&&(r=ml.coord2,t=i.getCoord2(e))}return{coord:t,from:r}}var Ye={none:0,dataCoordSys:1,boxCoordSys:2};function Qx(e,t){var r=e.getShallow("coordinateSystem"),i=e.getShallow("coordinateSystemUsage",!0),n=Ye.none;if(r){var a=e.mainType==="series";i==null&&(i=a?"data":"box"),i==="data"?(n=Ye.dataCoordSys,a||(n=Ye.none)):i==="box"&&(n=Ye.boxCoordSys,!a&&!qx(r)&&(n=Ye.none))}return{coordSysType:r,kind:n}}function Jx(e){var t=e.targetModel,r=e.coordSysType,i=e.coordSysProvider,n=e.isDefaultDataCoordSys,a=Qx(t),o=a.kind,s=a.coordSysType;if(n&&o!==Ye.dataCoordSys&&(o=Ye.dataCoordSys,s=r),o===Ye.none||s!==r)return!1;var u=i(r,t);return u?(o===Ye.dataCoordSys?t.coordinateSystem=u:t.boxCoordinateSystem=u,!0):!1}var vo=T,jx=["left","right","top","bottom","width","height"],Ra=[["width","left","right"],["height","top","bottom"]];function Wf(e,t,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(e==="horizontal"){var y=f.width+(c?-c.x+f.x:0);v=a+y,v>i||u.newline?(a=0,v=y,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>n||u.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var kn=Wf;bt(Wf,"vertical");bt(Wf,"horizontal");function tw(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function ew(e,t){var r=Uf(e,t,{enableLayoutOnlyByCenter:!0}),i=e.getBoxLayoutParams(),n,a;if(r.type===xn.point)a=r.refPoint,n=xr(i,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=N(o)?o:[o,o];n=xr(i,r.refContainer),a=r.boxCoordFrom===ml.coord2?r.refPoint:[_t(s[0],n.width)+n.x,_t(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function ZA(e,t){var r=ew(e,t),i=r.viewRect,n=r.center,a=e.get("radius");N(a)||(a=[0,a]);var o=_t(i.width,t.getWidth()),s=_t(i.height,t.getHeight()),u=Math.min(o,s),l=_t(a[0],u/2),f=_t(a[1],u/2);return{cx:n[0],cy:n[1],r0:l,r:f,viewRect:i}}function xr(e,t,r){r=fs(r||0);var i=t.width,n=t.height,a=_t(e.left,i),o=_t(e.top,n),s=_t(e.right,i),u=_t(e.bottom,n),l=_t(e.width,i),f=_t(e.height,n),h=r[2]+r[0],c=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=i-s-c-a),isNaN(f)&&(f=n-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>i/n?l=i*.8:f=n*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=i-s-l-c),isNaN(o)&&(o=n-u-f-h),e.left||e.right){case"center":a=i/2-l/2-r[3];break;case"right":a=i-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(u||0));var d=new J((t.x||0)+a+r[3],(t.y||0)+o+r[0],l,f);return d.margin=r,d}var xn={rect:1,point:2};function Uf(e,t,r){var i,n,a,o=e.boxCoordinateSystem,s;if(o){var u=Kx(e),l=u.coord,f=u.from;if(o.dataToLayout){a=xn.rect,s=f;var h=o.dataToLayout(l);i=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=xn.point,s=f,n=o.dataToPoint(l))}return a==null&&(a=xn.rect),a===xn.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function qA(e,t,r,i,n,a){a=a||e,a.x=e.x,a.y=e.y;var o;if(o=e.getBoundingRect(),e.needLocalTransform()){var s=e.getLocalTransform();o=o.clone(),o.applyTransform(s)}var u=xr(lt({width:o.width,height:o.height},t),r,i),l=u.x-o.x,f=u.y-o.y;return a.x+=l,a.y+=f,a===e&&e.markRedraw(),!0}function Zn(e){var t=e.layoutMode||e.constructor.layoutMode;return G(t)?t:t?{type:t}:null}function wr(e,t,r){var i=r&&r.ignoreSize;!N(i)&&(i=[i,i]);var n=o(Ra[0],0),a=o(Ra[1],1);u(Ra[0],e,n),u(Ra[1],e,a);function o(l,f){var h={},c=0,v={},d=0,y=2;if(vo(l,function(m){v[m]=e[m]}),vo(l,function(m){de(t,m)&&(h[m]=v[m]=t[m]),s(h,m)&&c++,s(v,m)&&d++}),i[f])return s(t,l[1])?v[l[2]]=null:s(t,l[2])&&(v[l[1]]=null),v;if(d===y||!c)return v;if(c>=y)return h;for(var g=0;g<l.length;g++){var p=l[g];if(!de(h,p)&&de(e,p)){h[p]=e[p];break}}return h}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,h){vo(l,function(c){f[c]=h[c]})}}function la(e){return rw({},e)}function rw(e,t){return t&&e&&vo(jx,function(r){de(t,r)&&(e[r]=t[r])}),e}var iw=yt(),ot=(function(e){F(t,e);function t(r,i,n){var a=e.call(this,r,i,n)||this;return a.uid=us("ec_cpt_model"),a}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=Zn(this),a=n?la(r):{},o=i.getTheme();at(r,o.get(this.mainType)),at(r,this.getDefaultOption()),n&&wr(r,a,n)},t.prototype.mergeOption=function(r,i){at(this.option,r,!0);var n=Zn(this);n&&wr(this.option,r,n)},t.prototype.optionUpdated=function(r,i){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!r1(r))return r.defaultOption;var i=iw(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},u=n.length-1;u>=0;u--)s=at(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return sa(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){return tw(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(pt);Op(ot,pt);Jo(ot);Ix(ot);Rx(ot,nw);function nw(e){var t=[];return T(ot.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Y(t,function(r){return Re(r).main}),e!=="dataset"&&it(t,"dataset")<=0&&t.unshift("dataset"),t}var U={color:{},darkColor:{},size:{}},gt=U.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};E(gt,{primary:gt.neutral80,secondary:gt.neutral70,tertiary:gt.neutral60,quaternary:gt.neutral50,disabled:gt.neutral20,border:gt.neutral30,borderTint:gt.neutral20,borderShade:gt.neutral40,background:gt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:gt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:gt.neutral70,axisLineTint:gt.neutral40,axisTick:gt.neutral70,axisTickMinor:gt.neutral60,axisLabel:gt.neutral70,axisSplitLine:gt.neutral15,axisMinorSplitLine:gt.neutral05});for(var Wr in gt)if(gt.hasOwnProperty(Wr)){var Uv=gt[Wr];Wr==="theme"?U.darkColor.theme=gt.theme.slice():Wr==="highlight"?U.darkColor.highlight="rgba(255,231,130,0.4)":Wr.indexOf("accent")===0?U.darkColor[Wr]=Uu(Uv,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):U.darkColor[Wr]=Uu(Uv,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}U.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var kg="";typeof navigator<"u"&&(kg=navigator.platform||"");var _i="rgba(0, 0, 0, 0.2)",Og=U.color.theme[0],aw=Uu(Og,null,null,.9);const ow={darkMode:"auto",colorBy:"series",color:U.color.theme,gradientColor:[aw,Og],aria:{decal:{decals:[{color:_i,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:_i,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:_i,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:_i,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:_i,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:_i,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:kg.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 Bg=j(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Qt="original",Et="arrayRows",le="objectRows",Se="keyedColumns",cr="typedArray",Ng="unknown",Oe="column",li="row",At={Must:1,Might:2,Not:3},Fg=yt();function sw(e){Fg(e).datasetMap=j()}function uw(e,t,r){var i={},n=Yf(t);if(!n||!e)return i;var a=[],o=[],s=t.ecModel,u=Fg(s).datasetMap,l=n.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),T(e,function(y,g){var p=G(y)?y:e[g]={name:y};p.type==="ordinal"&&f==null&&(f=g,h=d(p)),i[p.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});T(e,function(y,g){var p=y.name,m=d(y);if(f==null){var _=c.valueWayDim;v(i[p],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(i[p],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(i[p],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(y,g,p){for(var m=0;m<p;m++)y.push(g+m)}function d(y){var g=y.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function KA(e,t,r){var i={},n=Yf(e);if(!n)return i;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===le||a===Se)&&T(o,function(f,h){(G(f)?f.name:f)==="name"&&(s=h)});var u=(function(){for(var f={},h={},c=[],v=0,d=Math.min(5,r);v<d;v++){var y=Hg(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(y);var g=y===At.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===At.Not)&&(f.n=v),p(f)&&c[f.n]!==At.Not)return f;g||(y===At.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function p(m){return m.v!=null&&m.n!=null}return p(f)?f:p(h)?h:null})();if(u){i.value=[u.v];var l=s??u.n;i.itemName=[l],i.seriesName=[l]}return i}function Yf(e){var t=e.get("data",!0);if(!t)return sa(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},oe).models[0]}function lw(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:sa(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},oe).models}function zg(e,t){return Hg(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Hg(e,t,r,i,n,a){var o,s=5;if(Ut(e))return At.Not;var u,l;if(i){var f=i[a];G(f)?(u=f.name,l=f.type):z(f)&&(u=f)}if(l!=null)return l==="ordinal"?At.Must:At.Not;if(t===Et){var h=e;if(r===li){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[n+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[n+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===le){var y=e;if(!u)return At.Not;for(var v=0;v<y.length&&v<s;v++){var g=y[v];if(g&&(o=S(g[u]))!=null)return o}}else if(t===Se){var p=e;if(!u)return At.Not;var c=p[u];if(!c||Ut(c))return At.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===Qt)for(var m=e,v=0;v<m.length&&v<s;v++){var g=m[v],_=aa(g);if(!N(_))return At.Not;if((o=S(_[a]))!=null)return o}function S(w){var x=z(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return x?At.Might:At.Not;if(x&&w!=="-")return At.Must}return At.Not}var fw=j();function hw(e,t,r){var i=fw.get(t);if(!i)return r;var n=i(e);return n?r.concat(n):r}var Yv=yt();yt();var Xf=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,i){var n=Rt(this.get("color",!0)),a=this.get("colorLayer",!0);return cw(this,Yv,n,a,t,r,i)},e.prototype.clearColorPalette=function(){dw(this,Yv)},e})();function vw(e,t){for(var r=e.length,i=0;i<r;i++)if(e[i].length>t)return e[i];return e[r-1]}function cw(e,t,r,i,n,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var f=o==null||!i?r:vw(i,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return n&&(l[n]=h),s.paletteIdx=(u+1)%f.length,h}}function dw(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ea,an,Xv,$v="\0_ec_inner",pw=1,$f=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new pt(a),this._locale=new pt(o),this._optionManager=s},t.prototype.setOption=function(r,i,n){var a=Kv(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,i){return this._resetOption(r,Kv(i))},t.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Xv(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&T(u,function(l){n=!0,this._mergeOption(l,i)},this)}return n},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=j(),l=i&&i.replaceMergeMainTypeMap;sw(this),T(r,function(h,c){h!=null&&(ot.hasClass(c)?c&&(s.push(c),u.set(c,!0)):n[c]=n[c]==null?et(h):at(n[c],h,!0))}),l&&l.each(function(h,c){ot.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),ot.topologicalTravel(s,ot.getAllClassMainTypes(),f,this);function f(h){var c=hw(this,h,Rt(r[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=V_(v,c,d);q_(y,h,ot),n[h]=null,a.set(h,null),o.set(h,0);var g=[],p=[],m=0,_;T(y,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var M=h==="series",D=ot.getClass(h,S.keyInfo.subType,!M);if(!D)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var A=E({componentIndex:w},S.keyInfo);x=new D(b,this,this,A),E(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),p.push(x),m++):(g.push(void 0),p.push(void 0))},this),n[h]=g,a.set(h,p),o.set(h,m),h==="series"&&Ea(this)}this._seriesIndices||Ea(this)},t.prototype.getOption=function(){var r=et(this.option);return T(r,function(i,n){if(ot.hasClass(n)){for(var a=Rt(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Wn(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[$v],r},t.prototype.setTheme=function(r){this._theme=new pt(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var u;return n!=null?(u=[],T(Rt(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=Zv("id",a,s):o!=null?u=Zv("name",o,s):u=Mt(s,function(l){return!!l}),qv(u,r)},t.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):Mt(this._componentsMap.get(n),function(l){return!!l});return u(qv(o,r));function s(l){var f=n+"Index",h=n+"Id",c=n+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:n,index:l[f],id:l[h],name:l[c]}:null}function u(l){return r.filter?Mt(l,r.filter):l}},t.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(K(r)){var o=i,s=r;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var u=z(r)?a.get(r):G(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var i=ye(r,null);return Mt(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Mt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},t.prototype.getSeries=function(){return Mt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,i){an(this),T(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},t.prototype.eachRawSeries=function(r,i){T(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(r,i,n){an(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,i,n){return T(this.getSeriesByType(r),i,n)},t.prototype.isSeriesFiltered=function(r){return an(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,i){an(this);var n=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=j(n)},t.prototype.restoreData=function(r){Ea(this);var i=this._componentsMap,n=[];i.each(function(a,o){ot.hasClass(o)&&n.push(o)}),ot.topologicalTravel(n,ot.getAllClassMainTypes(),function(a){T(i.get(a),function(o){o&&(a!=="series"||!gw(o,r))&&o.restoreData()})})},t.internalField=(function(){Ea=function(r){var i=r._seriesIndices=[];T(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=j(i)},an=function(r){},Xv=function(r,i){r.option={},r.option[$v]=pw,r._componentsMap=j({series:[]}),r._componentsCount=j();var n=i.aria;G(n)&&n.enabled==null&&(n.enabled=!0),yw(i,r._theme.option),at(i,ow,!1),r._mergeOption(i,null)}})(),t})(pt);function gw(e,t){if(t){var r=t.seriesIndex,i=t.seriesId,n=t.seriesName;return r!=null&&e.componentIndex!==r||i!=null&&e.id!==i||n!=null&&e.name!==n}}function yw(e,t){var r=e.color&&!e.colorLayer;T(t,function(i,n){n==="colorLayer"&&r||n==="color"&&e.color||ot.hasClass(n)||(typeof i=="object"?e[n]=e[n]?at(e[n],i,!1):et(i):e[n]==null&&(e[n]=i))})}function Zv(e,t,r){if(N(t)){var i=j();return T(t,function(a){if(a!=null){var o=ye(a,null);o!=null&&i.set(a,!0)}}),Mt(r,function(a){return a&&i.get(a[e])})}else{var n=ye(t,null);return Mt(r,function(a){return a&&n!=null&&a[e]===n})}}function qv(e,t){return t.hasOwnProperty("subType")?Mt(e,function(r){return r&&r.subType===t.subType}):e}function Kv(e){var t=j();return e&&T(Rt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Ne($f,Xf);var mw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Gg=(function(){function e(t){T(mw,function(r){this[r]=vt(t[r],t)},this)}return e})(),_w=/^(min|max)?(.+)$/,Sw=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,i){t&&(T(Rt(t.series),function(o){o&&o.data&&Ut(o.data)&&ku(o.data)}),T(Rt(t.dataset),function(o){o&&o.source&&Ut(o.source)&&ku(o.source)})),t=et(t);var n=this._optionBackup,a=xw(t,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],et(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(r=et(i[n.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var u=0,l=n.length;u<l;u++)ww(n[u].query,r,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!Tw(o,this._currentMediaIndices)&&(s=Y(o,function(f){return et(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},e})();function xw(e,t,r){var i=[],n,a,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,f=!!e.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(e.options=e.media=null),a=e),f&&N(l)&&T(l,function(v){v&&v.option&&(v.query?i.push(v):n||(n=v))}),c(a),T(u,function(v){return c(v)}),T(i,function(v){return c(v.option)});function c(v){T(t,function(d){d(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:n,mediaList:i}}function ww(e,t,r){var i={width:t,height:r,aspectratio:t/r},n=!0;return T(e,function(a,o){var s=o.match(_w);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();bw(i[l],a,u)||(n=!1)}}),n}function bw(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Tw(e,t){return e.join(",")===t.join(",")}var fe=T,qn=G,Qv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function nu(e){var t=e&&e.itemStyle;if(t)for(var r=0,i=Qv.length;r<i;r++){var n=Qv[r],a=t.normal,o=t.emphasis;a&&a[n]&&(e[n]=e[n]||{},e[n].normal?at(e[n].normal,a[n]):e[n].normal=a[n],a[n]=null),o&&o[n]&&(e[n]=e[n]||{},e[n].emphasis?at(e[n].emphasis,o[n]):e[n].emphasis=o[n],o[n]=null)}}function It(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,n=e[t].emphasis;i&&(r?(e[t].normal=e[t].emphasis=null,lt(e[t],i)):e[t]=i),n&&(e.emphasis=e.emphasis||{},e.emphasis[t]=n,n.focus&&(e.emphasis.focus=n.focus),n.blurScope&&(e.emphasis.blurScope=n.blurScope))}}function wn(e){It(e,"itemStyle"),It(e,"lineStyle"),It(e,"areaStyle"),It(e,"label"),It(e,"labelLine"),It(e,"upperLabel"),It(e,"edgeLabel")}function mt(e,t){var r=qn(e)&&e[t],i=qn(r)&&r.textStyle;if(i)for(var n=0,a=Qh.length;n<a;n++){var o=Qh[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function ee(e){e&&(wn(e),mt(e,"label"),e.emphasis&&mt(e.emphasis,"label"))}function Cw(e){if(qn(e)){nu(e),wn(e),mt(e,"label"),mt(e,"upperLabel"),mt(e,"edgeLabel"),e.emphasis&&(mt(e.emphasis,"label"),mt(e.emphasis,"upperLabel"),mt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(nu(t),ee(t));var r=e.markLine;r&&(nu(r),ee(r));var i=e.markArea;i&&ee(i);var n=e.data;if(e.type==="graph"){n=n||e.nodes;var a=e.links||e.edges;if(a&&!Ut(a))for(var o=0;o<a.length;o++)ee(a[o]);T(e.categories,function(l){wn(l)})}if(n&&!Ut(n))for(var o=0;o<n.length;o++)ee(n[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ee(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)N(u[o])?(ee(u[o][0]),ee(u[o][1])):ee(u[o]);e.type==="gauge"?(mt(e,"axisLabel"),mt(e,"title"),mt(e,"detail")):e.type==="treemap"?(It(e.breadcrumb,"itemStyle"),T(e.levels,function(l){wn(l)})):e.type==="tree"&&wn(e.leaves)}}function Ge(e){return N(e)?e:e?[e]:[]}function Jv(e){return(N(e)?e[0]:e)||{}}function Mw(e,t){fe(Ge(e.series),function(i){qn(i)&&Cw(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),fe(r,function(i){fe(Ge(e[i]),function(n){n&&(mt(n,"axisLabel"),mt(n.axisPointer,"label"))})}),fe(Ge(e.parallel),function(i){var n=i&&i.parallelAxisDefault;mt(n,"axisLabel"),mt(n&&n.axisPointer,"label")}),fe(Ge(e.calendar),function(i){It(i,"itemStyle"),mt(i,"dayLabel"),mt(i,"monthLabel"),mt(i,"yearLabel")}),fe(Ge(e.radar),function(i){mt(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),fe(Ge(e.geo),function(i){qn(i)&&(ee(i),fe(Ge(i.regions),function(n){ee(n)}))}),fe(Ge(e.timeline),function(i){ee(i),It(i,"label"),It(i,"itemStyle"),It(i,"controlStyle",!0);var n=i.data;N(n)&&T(n,function(a){G(a)&&(It(a,"label"),It(a,"itemStyle"))})}),fe(Ge(e.toolbox),function(i){It(i,"iconStyle"),fe(i.feature,function(n){It(n,"iconStyle")})}),mt(Jv(e.axisPointer),"label"),mt(Jv(e.tooltip).axisPointer,"label")}function Dw(e,t){for(var r=t.split(","),i=e,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function Aw(e,t,r,i){for(var n=t.split(","),a=e,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=r)}function jv(e){e&&T(Lw,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Lw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Pw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],au=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function on(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<au.length;r++){var i=au[r][1],n=au[r][0];t[i]!=null&&(t[n]=t[i])}}function tc(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function ec(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Iw(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function Vg(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Vg(e[r].children,t)}function Wg(e,t){Mw(e,t),e.series=Rt(e.series),T(e.series,function(r){if(G(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),tc(r.label);var n=r.data;if(n&&!Ut(n))for(var a=0;a<n.length;a++)tc(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=Dw(r,"pointer.color");o!=null&&Aw(r,"itemStyle.color",o)}else if(i==="bar"){on(r),on(r.backgroundStyle),on(r.emphasis);var n=r.data;if(n&&!Ut(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(on(n[a]),on(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),ec(r),Vg(r.data,ec)}else i==="graph"||i==="sankey"?Iw(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&<(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),jv(r)}}),e.dataRange&&(e.visualMap=e.dataRange),T(Pw,function(r){var i=e[r];i&&(N(i)||(i=[i]),T(i,function(n){jv(n)}))})}function Rw(e){var t=j();e.eachSeries(function(r){var i=r.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),T(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),Ew(r)}})}function Ew(e){T(e,function(t,r){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return n;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var y=NaN,g=r-1;g>=0;g--){var p=e[g];if(s||(d=p.data.rawIndexOf(p.stackedByDimension,v)),d>=0){var m=p.data.getByRawIndex(p.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&c>=0&&m>0||u==="samesign"&&c<=0&&m<0){c=E_(c,m),y=m;break}}}return i[0]=c,i[1]=y,i})})}var hs=(function(){function e(t){this.data=t.data||(t.sourceFormat===Se?{}:[]),this.sourceFormat=t.sourceFormat||Ng,this.seriesLayoutBy=t.seriesLayoutBy||Oe,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&zg(this,i)===At.Must&&(n.type="ordinal")}}return e})();function Zf(e){return e instanceof hs}function _l(e,t,r){r=r||Yg(e);var i=t.seriesLayoutBy,n=Ow(e,r,i,t.sourceHeader,t.dimensions),a=new hs({data:e,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:et(t)});return a}function Ug(e){return new hs({data:e,sourceFormat:Ut(e)?cr:Qt})}function kw(e){return new hs({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:et(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Yg(e){var t=Ng;if(Ut(e))t=cr;else if(N(e)){e.length===0&&(t=Et);for(var r=0,i=e.length;r<i;r++){var n=e[r];if(n!=null){if(N(n)||Ut(n)){t=Et;break}else if(G(n)){t=le;break}}}}else if(G(e)){for(var a in e)if(de(e,a)&&Wt(e[a])){t=Se;break}}return t}function Ow(e,t,r,i,n){var a,o;if(!e)return{dimensionsDefine:rc(n),startIndex:o,dimensionsDetectedCount:a};if(t===Et){var s=e;i==="auto"||i==null?ic(function(l){l!=null&&l!=="-"&&(z(l)?o==null&&(o=1):o=0)},r,s,10):o=ct(i)?i:i?1:0,!n&&o===1&&(n=[],ic(function(l,f){n[f]=l!=null?l+"":""},r,s,1/0)),a=n?n.length:r===li?s.length:s[0]?s[0].length:null}else if(t===le)n||(n=Bw(e));else if(t===Se)n||(n=[],T(e,function(l,f){n.push(f)}));else if(t===Qt){var u=aa(e[0]);a=N(u)&&u.length||1}return{startIndex:o,dimensionsDefine:rc(n),dimensionsDetectedCount:a}}function Bw(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return dt(r)}function rc(e){if(e){var t=j();return Y(e,function(r,i){r=G(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function ic(e,t,r,i){if(t===li)for(var n=0;n<r.length&&n<i;n++)e(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)e(a[n],n)}function Xg(e){var t=e.sourceFormat;return t===le||t===Se}var Ur,Yr,Xr,$r,nc,ac,$g=(function(){function e(t,r){var i=Zf(t)?t:Ug(t);this._source=i;var n=this._data=i.data,a=i.sourceFormat;i.seriesLayoutBy,a===cr&&(this._offset=0,this._dimSize=r,this._data=n),ac(this,n,i)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;ac=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=nc[qf(l,f)];if(E(o,v),l===cr)o.getItem=r,o.count=n,o.fillStorage=i;else{var d=Zg(l,f);o.getItem=vt(d,null,s,h,c);var y=qg(l,f);o.count=vt(y,null,s,h,c)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},i=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],y=v[1]==null?-1/0:v[1],g=s-o,p=u[c],m=0;m<g;m++){var _=f[m*h+c];p[o+m]=_,_<d&&(d=_),_>y&&(y=_)}v[0]=d,v[1]=y}},n=function(){return this._data?this._data.length/this._dimSize:0};nc=(t={},t[Et+"_"+Oe]={pure:!0,appendData:a},t[Et+"_"+li]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[le]={pure:!0,appendData:a},t[Se]={pure:!0,appendData:function(o){var s=this._data;T(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[Qt]={appendData:a},t[cr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),e})(),ka=function(e){N(e)||Pp("series.data or dataset.source must be an array.")};Ur={},Ur[Et+"_"+Oe]=ka,Ur[Et+"_"+li]=ka,Ur[le]=ka,Ur[Se]=function(e,t){for(var r=0;r<t.length;r++){var i=t[r].name;i==null&&Pp("dimension name must not be null/undefined.")}},Ur[Qt]=ka;var oc=function(e,t,r,i){return e[i]},Nw=(Yr={},Yr[Et+"_"+Oe]=function(e,t,r,i){return e[i+t]},Yr[Et+"_"+li]=function(e,t,r,i,n){i+=t;for(var a=n||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},Yr[le]=oc,Yr[Se]=function(e,t,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?e[s]:null;a[o]=u?u[i]:null}return a},Yr[Qt]=oc,Yr);function Zg(e,t){var r=Nw[qf(e,t)];return r}var sc=function(e,t,r){return e.length},Fw=(Xr={},Xr[Et+"_"+Oe]=function(e,t,r){return Math.max(0,e.length-t)},Xr[Et+"_"+li]=function(e,t,r){var i=e[0];return i?Math.max(0,i.length-t):0},Xr[le]=sc,Xr[Se]=function(e,t,r){var i=r[0].name,n=i!=null?e[i]:null;return n?n.length:0},Xr[Qt]=sc,Xr);function qg(e,t){var r=Fw[qf(e,t)];return r}var ou=function(e,t,r){return e[t]},zw=($r={},$r[Et]=ou,$r[le]=function(e,t,r){return e[r]},$r[Se]=ou,$r[Qt]=function(e,t,r){var i=aa(e);return i instanceof Array?i[t]:i},$r[cr]=ou,$r);function Kg(e){var t=zw[e];return t}function qf(e,t){return e===Et?e+"_"+t:e}function Ui(e,t,r){if(e){var i=e.getRawDataItem(t);if(i!=null){var n=e.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=n.getDimensionProperty(o);return Kg(a)(i,o,s)}else{var u=i;return a===Qt&&(u=aa(i)),u}}}}var Hw=/\{@(.+?)\}/g,Gw=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var i=this.getData(r),n=this.getRawValue(t,r),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),u=i.getItemVisual(t,"style"),l=u&&u[i.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,i,n,a,o){r=r||"normal";var s=this.getData(i),u=this.getDataParams(t,i);if(o&&(u.value=o.interpolatedValue),n!=null&&N(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(t);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(K(a))return u.status=r,u.dimensionIndex=n,a(u);if(z(a)){var f=Rg(a,u);return f.replace(Hw,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var y=Ui(s,t,d);if(o&&N(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(y=o.interpolatedValue[g])}return y!=null?y+"":""})}},e.prototype.getRawValue=function(t,r){return Ui(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,i){},e})();function uc(e){var t,r;return G(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function On(e){return new Vw(e)}var Vw=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,i=t&&t.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v<d)){var y=this._progress;if(N(y))for(var g=0;g<y.length;g++)this._doProgress(y[g],v,d,u,l);else this._doProgress(y,v,d,u,l)}this._dueIndex=d;var p=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=p}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,i,n,a){lc.reset(r,i,n,a),this._callingProgress=t,this._callingProgress({start:r,end:i,count:i-r,next:lc.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),N(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),lc=(function(){var e,t,r,i,n,a={reset:function(u,l,f,h){t=u,e=l,r=f,i=h,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%n*r+Math.ceil(t/n),l=t>=e?null:u<i?u:t;return t++,l}})();function co(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ct(e)&&e!=null&&e!=="-"&&(e=+qi(e)),e==null||e===""?NaN:Number(e))}j({number:function(e){return parseFloat(e)},time:function(e){return+qi(e)},trim:function(e){return z(e)?Pe(e):e}});var Ww=(function(){function e(t,r){var i=t==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var i=ct(t)?t:Do(t),n=ct(r)?r:Do(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=z(t),u=z(r);s&&(i=u?t:0),u&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},e})(),Uw=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return co(t,r)},e})();function Yw(e,t){var r=new Uw,i=e.data,n=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Oe&&Ht(o);var s=[],u={},l=e.dimensionsDefine;if(l)T(l,function(y,g){var p=y.name,m={index:g,name:p,displayName:y.displayName};if(s.push(m),p!=null){var _="";de(u,p)&&Ht(_),u[p]=m}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=Zg(n,Oe);t.__isBuiltIn&&(r.getRawDataItem=function(y){return h(i,a,s,y)},r.getRawData=vt(Xw,null,e)),r.cloneRawData=vt($w,null,e);var c=qg(n,Oe);r.count=vt(c,null,i,a,s);var v=Kg(n);r.retrieveValue=function(y,g){var p=h(i,a,s,y);return d(p,g)};var d=r.retrieveValueFromItem=function(y,g){if(y!=null){var p=s[g];if(p)return v(y,g,p.name)}};return r.getDimensionInfo=vt(Zw,null,s,u),r.cloneAllDimensionInfo=vt(qw,null,s),r}function Xw(e){var t=e.sourceFormat;if(!Kf(t)){var r="";Ht(r)}return e.data}function $w(e){var t=e.sourceFormat,r=e.data;if(!Kf(t)){var i="";Ht(i)}if(t===Et){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(t===le){for(var n=[],a=0,o=r.length;a<o;a++)n.push(E({},r[a]));return n}}function Zw(e,t,r){if(r!=null){if(ct(r)||!isNaN(r)&&!de(t,r))return e[r];if(de(t,r))return t[r]}}function qw(e){return et(e)}var Qg=j();function Kw(e){e=et(e);var t=e.type,r="";t||Ht(r);var i=t.split(":");i.length!==2&&Ht(r);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),e.__isBuiltIn=n,Qg.set(t,e)}function Qw(e,t,r){var i=Rt(e),n=i.length,a="";n||Ht(a);for(var o=0,s=n;o<s;o++){var u=i[o];t=Jw(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Jw(e,t,r,i){var n="";t.length||Ht(n),G(e)||Ht(n);var a=e.type,o=Qg.get(a);o||Ht(n);var s=Y(t,function(l){return Yw(l,o)}),u=Rt(o.transform({upstream:s[0],upstreamList:s,config:et(e.config)}));return Y(u,function(l,f){var h="";G(l)||Ht(h),l.data||Ht(h);var c=Yg(l.data);Kf(c)||Ht(h);var v,d=t[0];if(d&&f===0&&!l.dimensions){var y=d.startIndex;y&&(l.data=d.data.slice(0,y).concat(l.data)),v={seriesLayoutBy:Oe,sourceHeader:y,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Oe,sourceHeader:0,dimensions:l.dimensions};return _l(l.data,v,null)})}function Kf(e){return e===Et||e===le}var vs="undefined",jw=typeof Uint32Array===vs?Array:Uint32Array,tb=typeof Uint16Array===vs?Array:Uint16Array,Jg=typeof Int32Array===vs?Array:Int32Array,fc=typeof Float64Array===vs?Array:Float64Array,jg={float:fc,int:Jg,ordinal:Array,number:Array,time:fc},su;function Si(e){return e>65535?jw:tb}function xi(){return[1/0,-1/0]}function eb(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function hc(e,t,r,i,n){var a=jg[r||"float"];if(n){var o=e[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(i)}var Sl=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=j()}return e.prototype.initData=function(t,r,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=su[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],Xg(n),this._dimensions=Y(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(t,a),this._chunks[a]=new jg[r||"float"](this._rawCount),this._rawExtent[a]=xi(),a},e.prototype.collectOrdinalMeta=function(t,r){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=xi());for(var u=a[t],l=o;l<s;l++){var f=i[l]=r.parseAndCollect(i[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],i=r.ordinalMeta;return i},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,i=this.count();r.appendData(t);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},e.prototype.appendValues=function(t,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var f=n[l];hc(i,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<a;d++){var f=n[d],y=su.arrayRows.call(this,t[v]||h,f.property,v,d);i[d][c]=y;var g=o[d];y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=Y(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=xi()),hc(a,f,h.type,r,i)}if(n.fillStorage)n.fillStorage(t,r,a,u);else for(var c=[],v=t;v<r;v++){c=n.getItem(v,c);for(var d=0;d<s;d++){var y=a[d],g=this._dimValueGetter(c,l[d],v,d);y[v]=g;var p=u[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var i=[],n=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[t];return i?i[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var i=r.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,i=r[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<t)n=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=r[a]}else t=new i(r.buffer,0,n)}else{var i=Si(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Si(i._rawCount),o=new a(n),s=[],u=t.length,l=0,f=t[0],h=i._chunks,c=0;c<n;c++){var v=void 0,d=i.getRawIndex(c);if(u===0)v=r(c);else if(u===1){var y=h[f][d];v=r(y,c)}else{for(var g=0;g<u;g++)s[g]=h[t[g]][d];s[g]=c,v=r.apply(null,s)}v&&(o[l++]=d)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},e.prototype.selectRange=function(t){var r=this.clone(),i=r._count;if(!i)return this;var n=dt(t),a=n.length;if(!a)return this;var o=r.count(),s=Si(r._rawCount),u=new s(o),l=0,f=n[0],h=t[f][0],c=t[f][1],v=r._chunks,d=!1;if(!r._indices){var y=0;if(a===1){for(var g=v[n[0]],p=0;p<i;p++){var m=g[p];(m>=h&&m<=c||isNaN(m))&&(u[l++]=y),y++}d=!0}else if(a===2){for(var g=v[n[0]],_=v[n[1]],S=t[n[1]][0],w=t[n[1]][1],p=0;p<i;p++){var m=g[p],x=_[p];(m>=h&&m<=c||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(u[l++]=y),y++}d=!0}}if(!d)if(a===1)for(var p=0;p<o;p++){var b=r.getRawIndex(p),m=v[n[0]][b];(m>=h&&m<=c||isNaN(m))&&(u[l++]=b)}else for(var p=0;p<o;p++){for(var M=!0,b=r.getRawIndex(p),D=0;D<a;D++){var A=n[D],m=v[A][b];(m<t[A][0]||m>t[A][1])&&(M=!1)}M&&(u[l++]=r.getRawIndex(p))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var i=this.clone(t);return this._updateDims(i,t,r),i},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,i){for(var n=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<r.length;f++)l[r[f]]=xi();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=n[r[v]][c];u[o]=h;var d=i&&i.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var y=r[f],g=d[f],p=l[y],m=n[y];m&&(m[c]=g),g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(Si(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var y=Math.min(d+u,o-1),g=Math.min(d+u*2,o),p=(g+y)/2,m=0,_=y;_<g;_++){var S=this.getRawIndex(_),w=a[S];isNaN(w)||(m+=w)}m/=g-y;var x=d,b=Math.min(d+u,o),M=d-1,D=a[l];f=-1,c=x;for(var A=-1,C=0,_=x;_<b;_++){var S=this.getRawIndex(_),w=a[S];if(isNaN(w)){C++,A<0&&(A=S);continue}h=Math.abs((M-p)*(w-D)-(M-_)*(m-D)),h>f&&(f=h,c=S)}C>0&&C<b-x&&(v[s++]=Math.min(A,c),c=Math.max(A,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},e.prototype.minmaxDownSample=function(t,r){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/r),o=n[t],s=this.count(),u=new(Si(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],y=a;f+a>s&&(y=s-f);for(var g=0;g<y;g++){var p=this.getRawIndex(f+g),m=o[p];m<c&&(c=m,h=f+g),m>d&&(d=m,v=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return i._count=l,i._indices=u,i._updateGetRawIdx(),i},e.prototype.downSample=function(t,r,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[t],f=this.count(),h=a._rawExtent[t]=xi(),c=new(Si(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var y=0;y<u;y++){var g=this.getRawIndex(d+y);s[y]=l[g]}var p=i(s),m=this.getRawIndex(Math.min(d+n(s,p)||0,f-1));l[m]=p,p<h[0]&&(h[0]=p),p>h[1]&&(h[1]=p),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[t[0]][s],a);break;case 2:r(n[t[0]][s],n[t[1]][s],a);break;default:for(var u=0,l=[];u<i;u++)l[u]=n[t[u]][s];l[u]=a,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],i=xi();if(!r)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],u=o[1],l=0;l<n;l++){var f=this.getRawIndex(l),h=r[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},e.prototype.clone=function(t,r){var i=new e,n=this._chunks,a=t&&yr(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?eb(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=et(this._extent),t._rawExtent=et(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var i=this._indices.length;r=new t(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,i,n,a){return co(r[a],this._dimensions[a])}su={arrayRows:t,objectRows:function(r,i,n,a){return co(r[i],this._dimensions[a])},keyedColumns:t,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return co(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),e})(),rb=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(Oa(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=Ut(s)?cr:Qt,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=$(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=$(h.sourceHeader,c.sourceHeader),y=$(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||y;n=g?[_l(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},u)]:[]}else{var p=t;if(i){var m=this._applyTransform(r);n=m.sourceList,a=m.upstreamSignList}else{var _=p.get("source",!0);n=[_l(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&vc(a)}var o,s=[],u=[];return T(t,function(l){l.prepareSource();var f=l.getSource(n||0),h="";n!=null&&!f&&vc(h),s.push(f),u.push(l._getVersionSign())}),i?o=Qw(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[kw(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var i=t[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var u=this._getUpstreamSourceManagers()[0];Oa(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,i):(s=new Sl,s.initData(new $g(r,t.length),t)),o[i]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Oa(t)){var r=Yf(t);return r?[r.getSourceManager()]:[]}else return Y(lw(t),function(i){return i.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,i,n;if(Oa(t))r=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},e})();function Oa(e){return e.mainType==="series"}function vc(e){throw new Error(e)}var ib="line-height:1";function ty(e){var t=e.lineHeight;return t==null?ib:"line-height:"+Ft(t+"")+"px"}function ey(e,t){var r=e.color||U.color.tertiary,i=e.fontSize||12,n=e.fontWeight||"400",a=e.color||U.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ft(i+"")+"px;color:"+Ft(r)+";font-weight:"+Ft(n+""),valueStyle:"font-size:"+Ft(o+"")+"px;color:"+Ft(a)+";font-weight:"+Ft(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var nb=[0,10,20,30],ab=["",`
|
|
9
|
+
`,`
|
|
10
|
+
|
|
11
|
+
`,`
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
`];function Kn(e,t){return t.type=e,t}function xl(e){return e.type==="section"}function ry(e){return xl(e)?ob:sb}function iy(e){if(xl(e)){var t=0,r=e.blocks.length,i=r>1||r>0&&!e.noHeader;return T(e.blocks,function(n){var a=iy(n);a>=t&&(t=a+ +(i&&(!a||xl(n)&&!n.noHeader)))}),t}return 0}function ob(e,t,r,i){var n=t.noHeader,a=ub(iy(t)),o=[],s=t.blocks||[];Ke(!s||N(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(de(l,u)){var f=new Ww(l[u],null);s.sort(function(y,g){return f.evaluate(y.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}T(s,function(y,g){var p=t.valueFormatter,m=ry(y)(p?E(E({},e),{valueFormatter:p}):e,y,g>0?a.html:0,i);m!=null&&o.push(m)});var h=e.renderMode==="richText"?o.join(a.richText):wl(i,o.join(""),n?r:a.html);if(n)return h;var c=yl(t.header,"ordinal",e.useUTC),v=ey(i,e.renderMode).nameStyle,d=ty(i);return e.renderMode==="richText"?ny(e,c,v)+a.richText+h:wl(i,'<div style="'+v+";"+d+';">'+Ft(c)+"</div>"+h,r)}function sb(e,t,r,i){var n=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(S){return S=N(S)?S:[S],Y(S,function(w,x){return yl(w,N(v)?v[x]:v,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||U.color.secondary,n),c=a?"":yl(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),y=!s||!a,g=!s&&a,p=ey(i,n),m=p.nameStyle,_=p.valueStyle;return n==="richText"?(s?"":h)+(a?"":ny(e,c,m))+(o?"":hb(e,d,y,g,_)):wl(i,(s?"":h)+(a?"":lb(c,!s,m))+(o?"":fb(d,y,g,_)),r)}}function cc(e,t,r,i,n,a){if(e){var o=ry(e),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function ub(e){return{html:nb[e],richText:ab[e]}}function wl(e,t,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=ty(e);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function lb(e,t,r){var i=t?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+Ft(e)+"</span>"}function fb(e,t,r,i){var n=r?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return e=N(e)?e:[e],'<span style="'+a+";"+i+'">'+Y(e,function(o){return Ft(o)}).join(" ")+"</span>"}function ny(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function hb(e,t,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(" "):t,a)}function vb(e,t){var r=e.getData().getItemVisual(t,"style"),i=r[e.visualDrawType];return $n(i)}function ay(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var uu=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ap()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,i){var n=i==="richText"?this._generateStyleName():null,a=Zx({color:r,type:t,renderMode:i,markerId:n});return z(a)?a:(this.richTextStyles[n]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var i={};N(r)?T(r,function(a){return E(i,a)}):E(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},e})();function cb(e){var t=e.series,r=e.dataIndex,i=e.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=N(s),l=vb(t,r),f,h,c,v;if(o>1||u&&!o){var d=db(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var y=n.getDimensionInfo(a[0]);v=f=Ui(n,r,a[0]),h=y.type}else v=f=u?s[0]:s;var g=ff(t),p=g&&t.name||"",m=n.getName(r),_=i?p:m;return Kn("section",{header:p,noHeader:i||!g,sortParam:v,blocks:[Kn("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Pe(_),value:f,valueType:h,dataIndex:r})].concat(c||[])})}function db(e,t,r,i,n){var a=t.getData(),o=yr(e,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];i.length?T(i,function(h){f(Ui(a,r,h),h)}):T(e,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(Kn("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var ir=yt();function Ba(e,t){return e.getName(t)||e.getId(t)}var pb="__universalTransitionEnabled",Je=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=On({count:yb,reset:mb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=ir(this).sourceManager=new rb(this);a.prepareSource();var o=this.getInitialData(r,n);pc(o,this),this.dataTask.context.data=o,ir(this).dataBeforeProcessed=o,dc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=Zn(this),a=n?la(r):{},o=this.subType;ot.hasClass(o)&&(o+="Series"),at(r,i.getTheme().get(this.subType)),at(r,this.getDefaultOption()),Kh(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&wr(r,a,n)},t.prototype.mergeOption=function(r,i){r=at(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Zn(this);n&&wr(this.option,r,n);var a=ir(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);pc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ir(this).dataBeforeProcessed=o,dc(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Ut(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&Kh(r[n],"label",i)},t.prototype.getInitialData=function(r,i){},t.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},t.prototype.getData=function(r){var i=bl(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return ir(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var i=bl(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}ir(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return j(r)},t.prototype.getSourceManager=function(){return ir(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ir(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(n);a==null&&(a=1/0);var f=[],h=1/0,c=-1,v=0;return o.each(i,function(d,y){var g=u.dataToCoord(d),p=l-g,m=Math.abs(p);m<=a&&((m<h||m===h&&p>=0&&c<0)&&(h=m,c=p,v=0),p===c&&(f[v++]=y))}),f.length=v,f},t.prototype.formatTooltip=function(r,i,n){return cb({series:this,dataIndex:r,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(q.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=Xf.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},t.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=Ba(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=dt(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Ba(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[pb])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,u=i.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){G(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=i[f],c=Ba(r,h);l[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[u-1],c=Ba(r,v);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},t.registerClass=function(r){return ot.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})(ot);Ne(Je,Gw);Ne(Je,Xf);Op(Je,ot);function dc(e){var t=e.name;ff(e)||(e.name=gb(e)||t)}function gb(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),i=[];return T(r,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function yb(e){return e.model.getRawData().count()}function mb(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_b}function _b(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function pc(e,t){T(l0(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,bt(Sb,t))})}function Sb(e,t){var r=bl(e);return r&&r.setOutputEnd((t||this).count()),t}function bl(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(e.uid))}return i}}var Be=(function(){function e(){this.group=new Yt,this.uid=us("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){},e.prototype.updateLayout=function(t,r,i,n){},e.prototype.updateVisual=function(t,r,i,n){},e.prototype.toggleBlurSeries=function(t,r,i){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();vf(Be);Jo(Be);function oy(){var e=yt();return function(t){var r=e(t),i=t.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var sy=yt(),xb=oy(),dr=(function(){function e(){this.group=new Yt,this.uid=us("viewChart"),this.renderTask=On({plan:wb,reset:bb}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.highlight=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&yc(a,n,"emphasis")},e.prototype.downplay=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&yc(a,n,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.updateLayout=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.updateVisual=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.eachRendered=function(t){Af(this.group,t)},e.markUpdateMethod=function(t,r){sy(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function gc(e,t,r){e&&hl(e)&&(t==="emphasis"?ol:sl)(e,r)}function yc(e,t,r){var i=oa(e,t),n=t&&t.highlightKey!=null?SS(t.highlightKey):null;i!=null?T(Rt(i),function(a){gc(e.getItemGraphicEl(a),r,n)}):e.eachItemGraphicEl(function(a){gc(a,r,n)})}vf(dr);Jo(dr);function wb(e){return xb(e.model)}function bb(e){var t=e.model,r=e.ecModel,i=e.api,n=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=n&&sy(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,i,n),Tb[u]}var Tb={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Oo="\0__throttleOriginMethod",mc="\0__throttleRate",_c="\0__throttleType";function Qf(e,t,r){var i,n=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];i=new Date().getTime(),u=this,l=v;var y=f||t,g=f||r;f=null,s=i-(g?n:a)-y,clearTimeout(o),g?o=setTimeout(h,y):s>=0?h():o=setTimeout(h,-s),n=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function uy(e,t,r,i){var n=e[t];if(n){var a=n[Oo]||n,o=n[_c],s=n[mc];if(s!==r||o!==i){if(r==null||!i)return e[t]=a;n=e[t]=Qf(a,r,i==="debounce"),n[Oo]=a,n[_c]=i,n[mc]=r}return n}}function Tl(e,t){var r=e[t];r&&r[Oo]&&(r.clear&&r.clear(),e[t]=r[Oo])}var Sc=yt(),xc={itemStyle:Un(_g,!0),lineStyle:Un(mg,!0)},Cb={lineStyle:"stroke",itemStyle:"fill"};function ly(e,t){var r=e.visualStyleMapper||xc[t];return r||(console.warn("Unknown style type '"+t+"'."),xc.itemStyle)}function fy(e,t){var r=e.visualDrawType||Cb[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Mb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),i=e.visualStyleAccessPath||"itemStyle",n=e.getModel(i),a=ly(e,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=fy(e,i),l=o[u],f=K(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=e.getDataParams(d),g=E({},o);g[u]=f(y),v.setItemVisual(d,"style",g)}}}},sn=new pt,Db={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),i=e.visualStyleAccessPath||"itemStyle",n=ly(e,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){sn.option=u[i];var l=n(sn),f=o.ensureUniqueItemVisual(s,"style");E(f,l),sn.option.decal&&(o.setItemVisual(s,"decal",sn.option.decal),sn.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Ab={performRawSeries:!0,overallReset:function(e){var t=j();e.eachSeries(function(r){var i=r.getColorBy();if(!r.isColorBySeries()){var n=r.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),Sc(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var i=r.getRawData(),n={},a=r.getData(),o=Sc(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=fy(r,s);a.each(function(l){var f=a.getRawIndex(l);n[f]=l}),i.each(function(l){var f=n[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(l)||l+"",d=i.count();c[u]=r.getColorFromPalette(v,o,d)}})}})}},Na=Math.PI;function Lb(e,t){t=t||{},lt(t,{text:"loading",textColor:U.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:U.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Yt,i=new St({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var n=new Kt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new St({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new as({shape:{startAngle:-Na/2,endAngle:-Na/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:Na*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Na*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var hy=(function(){function e(t,r,i,n){this._stageTaskMap=j(),this.ecInstance=t,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&r.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,i=r._pipelineMap=j();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(n,n.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),i=this.api;T(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";Ke(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},e.prototype.prepareView=function(t,r,i,n){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,i){this._performStageTasks(this._visualHandlers,t,r,i)},e.prototype._performStageTasks=function(t,r,i,n){n=n||{};var a=!1,o=this;T(t,function(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var y=o.getPerformArgs(c,n.block);d.each(function(g){g.perform(y)}),c.perform(y)&&(a=!0)}else h&&h.each(function(g,p){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=j(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):u?i.eachRawSeriesByType(u,f):l&&l(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||On({plan:kb,reset:Ob,count:Nb}));v.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},e.prototype._createOverallStageTask=function(t,r,i,n){var a=this,o=r.overallTask=r.overallTask||On({reset:Pb});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=j(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";Ke(!t.createOnAllSeries,v),l?i.eachRawSeriesByType(l,d):f?f(i,n).each(d):(h=!1,T(i.getSeries(),d));function d(y){var g=y.uid,p=u.set(g,s&&s.get(g)||(c=!0,On({reset:Ib,onDirty:Eb})));p.context={model:y,overallProgress:h},p.agent=o,p.__block=h,a._pipe(y,p)}c&&o.dirty()},e.prototype._pipe=function(t,r){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},e.wrapStageHandler=function(t,r){return K(t)&&(t={overallReset:t,seriesType:Fb(t)}),t.uid=us("stageHandler"),r&&(t.visualType=r),t},e})();function Pb(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ib(e){return e.overallProgress&&Rb}function Rb(){this.agent.dirty(),this.getDownstream().dirty()}function Eb(){this.agent&&this.agent.dirty()}function kb(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Ob(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Rt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Y(t,function(r,i){return vy(i)}):Bb}var Bb=vy(0);function vy(e){return function(t,r){var i=r.data,n=r.resetDefines[e];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function Nb(e){return e.data.count()}function Fb(e){Bo=null;try{e(Qn,cy)}catch{}return Bo}var Qn={},cy={},Bo;dy(Qn,$f);dy(cy,Gg);Qn.eachSeriesByType=Qn.eachRawSeriesByType=function(e){Bo=e};Qn.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Bo=e.subType)};function dy(e,t){for(var r in t.prototype)e[r]=Vt}var k=U.darkColor,zb=k.background,un=function(){return{axisLine:{lineStyle:{color:k.axisLine}},splitLine:{lineStyle:{color:k.axisSplitLine}},splitArea:{areaStyle:{color:[k.backgroundTint,k.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:k.axisMinorSplitLine}},axisLabel:{color:k.axisLabel},axisName:{}}},wc={label:{color:k.secondary},itemStyle:{borderColor:k.borderTint},dividerLineStyle:{color:k.border}},py={darkMode:!0,color:k.theme,backgroundColor:zb,axisPointer:{lineStyle:{color:k.border},crossStyle:{color:k.borderShade},label:{color:k.tertiary}},legend:{textStyle:{color:k.secondary},pageTextStyle:{color:k.tertiary}},textStyle:{color:k.secondary},title:{textStyle:{color:k.primary},subtextStyle:{color:k.quaternary}},toolbox:{iconStyle:{borderColor:k.accent50}},tooltip:{backgroundColor:k.neutral20,defaultBorderColor:k.border,textStyle:{color:k.tertiary}},dataZoom:{borderColor:k.accent10,textStyle:{color:k.tertiary},brushStyle:{color:k.backgroundTint},handleStyle:{color:k.neutral00,borderColor:k.accent20},moveHandleStyle:{color:k.accent40},emphasis:{handleStyle:{borderColor:k.accent50}},dataBackground:{lineStyle:{color:k.accent30},areaStyle:{color:k.accent20}},selectedDataBackground:{lineStyle:{color:k.accent50},areaStyle:{color:k.accent30}}},visualMap:{textStyle:{color:k.secondary},handleStyle:{borderColor:k.neutral30}},timeline:{lineStyle:{color:k.accent10},label:{color:k.tertiary},controlStyle:{color:k.accent30,borderColor:k.accent30}},calendar:{itemStyle:{color:k.neutral00,borderColor:k.neutral20},dayLabel:{color:k.tertiary},monthLabel:{color:k.secondary},yearLabel:{color:k.secondary}},matrix:{x:wc,y:wc,backgroundColor:{borderColor:k.axisLine},body:{itemStyle:{borderColor:k.borderTint}}},timeAxis:un(),logAxis:un(),valueAxis:un(),categoryAxis:un(),line:{symbol:"circle"},graph:{color:k.theme},gauge:{title:{color:k.secondary},axisLine:{lineStyle:{color:[[1,k.neutral05]]}},axisLabel:{color:k.axisLabel},detail:{color:k.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:k.background}},radar:(function(){var e=un();return e.axisName={color:k.axisLabel},e.axisLine.lineStyle.color=k.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:k.neutral20,textStyle:{color:k.secondary}},emphasis:{itemStyle:{color:k.neutral30}}}},sunburst:{itemStyle:{borderColor:k.background}},map:{itemStyle:{borderColor:k.border,areaColor:k.neutral10},label:{color:k.tertiary},emphasis:{label:{color:k.primary},itemStyle:{areaColor:k.highlight}},select:{label:{color:k.primary},itemStyle:{areaColor:k.highlight}}},geo:{itemStyle:{borderColor:k.border,areaColor:k.neutral10},emphasis:{label:{color:k.primary},itemStyle:{areaColor:k.highlight}},select:{label:{color:k.primary},itemStyle:{color:k.highlight}}}};py.categoryAxis.splitLine.show=!1;var Hb=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},i={},n={};if(z(t)){var a=Re(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(i[l]=u,f=!0),f||(n[l]=u)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},e.prototype.filter=function(t,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,n,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),Cl=["symbol","symbolSize","symbolRotate","symbolOffset"],bc=Cl.concat(["symbolKeepAspect"]),Gb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Cl.length;o++){var s=Cl[o],u=e.get(s);K(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||e.defaultSymbol,r.setVisual(E({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),t.isSeriesFiltered(e))return;var l=dt(n);function f(h,c){for(var v=e.getRawValue(c),d=e.getDataParams(c),y=0;y<l.length;y++){var g=l[y];h.setItemVisual(c,g,n[g](v,d))}}return{dataEach:a?f:null}}},Vb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<bc.length;s++){var u=bc[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?i:null}}};function Wb(e,t,r){switch(r){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function Ub(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function QA(e,t,r,i){switch(r){case"color":var n=e.ensureUniqueItemVisual(t,"style");n[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,i);break}}function JA(e,t){function r(i,n){var a=[];return i.eachComponent({mainType:"series",subType:e,query:n},function(o){a.push(o.seriesIndex)}),a}T([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(i){t(i[0],function(n,a,o){n=E({},n),o.dispatchAction(E(n,{type:i[1],seriesIndex:r(a,n)}))})})}function wi(e,t,r,i,n){var a=e+t;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=n.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=oa(h,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:N(c)?h.getName(c[0]):h.getName(c),selected:z(u)?u:E({},u)})}})}function Yb(e,t,r){e.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(wi("map","selectchanged",t,n,i),wi("pie","selectchanged",t,n,i)):i.fromAction==="select"?(wi("map","selected",t,n,i),wi("pie","selected",t,n,i)):i.fromAction==="unselect"&&(wi("map","unselected",t,n,i),wi("pie","unselected",t,n,i))})}function bn(e,t,r){for(var i;e&&!(t(e)&&(i=e,r));)e=e.__hostTarget||e.parent;return i}var Xb=Math.round(Math.random()*9),$b=typeof Object.defineProperty=="function",Zb=(function(){function e(){this._id="__ec_inner_"+Xb++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var i=this._guard(t);return $b?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),qb=ft.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i+a),e.lineTo(r-n,i+a),e.closePath()}}),Kb=ft.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i),e.lineTo(r,i+a),e.lineTo(r-n,i),e.closePath()}}),Qb=ft.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),u=i-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;e.moveTo(r-f,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+f-h*v,u+s+c*v,r,i-d,r,i),e.bezierCurveTo(r,i-d,r-f+h*v,u+s+c*v,r-f,u+s),e.closePath()}}),Jb=ft.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;e.moveTo(n,a),e.lineTo(n+o,a+r),e.lineTo(n,a+r/4*3),e.lineTo(n-o,a+r),e.lineTo(n,a),e.closePath()}}),jb={line:Sr,rect:St,roundRect:St,square:St,circle:ns,diamond:Kb,pin:Qb,arrow:Jb,triangle:qb},tT={line:function(e,t,r,i,n){n.x1=e,n.y1=t+i/2,n.x2=e+r,n.y2=t+i/2},rect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i},roundRect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(e,t,r,i,n){var a=Math.min(r,i);n.x=e,n.y=t,n.width=a,n.height=a},circle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.r=Math.min(r,i)/2},diamond:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i},pin:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},arrow:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},triangle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i}},Ml={};T(jb,function(e,t){Ml[t]=new e});var eT=ft.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var i=Co(e,t,r),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(e,t,r){var i=t.symbolType;if(i!=="none"){var n=Ml[i];n||(i="rect",n=Ml[i]),tT[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(e,n.shape,r)}}});function rT(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||U.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Jf(e,t,r,i,n,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=lg(e.slice(8),new J(t,r,i,n),o?"center":"cover"):e.indexOf("path://")===0?u=Cf(e.slice(7),{},new J(t,r,i,n),o?"center":"cover"):u=new eT({shape:{symbolType:e,x:t,y:r,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=rT,a&&u.setColor(a),u}function jA(e){return N(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function iT(e,t){if(e!=null)return N(e)||(e=[e,e]),[_t(e[0],t[0])||0,_t($(e[1],e[0]),t[1])||0]}function jr(e){return isFinite(e)}function nT(e,t,r){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=jr(i)?i:0,n=jr(n)?n:1,a=jr(a)?a:0,o=jr(o)?o:0;var s=e.createLinearGradient(i,a,n,o);return s}function aT(e,t,r){var i=r.width,n=r.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*i+r.x,s=s*n+r.y,u=u*a),o=jr(o)?o:.5,s=jr(s)?s:.5,u=u>=0&&jr(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function Dl(e,t,r){for(var i=t.type==="radial"?aT(e,t,r):nT(e,t,r),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function oT(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Fa(e){return parseInt(e,10)}function za(e,t,r){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(e);return(e[n]||Fa(s[i])||Fa(e.style[i]))-(Fa(s[a])||0)-(Fa(s[o])||0)|0}function sT(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ct(e)?[e]:N(e)?e:null}function gy(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&sT(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=Y(r,function(a){return a/n}),i/=n)}return[r,i]}var uT=new Gi(!0);function No(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Tc(e){return typeof e=="string"&&e!=="none"}function Fo(e){var t=e.fill;return t!=null&&t!=="none"}function Cc(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Mc(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Al(e,t,r){var i=Bp(t.image,t.__image,r);if(jo(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*f0),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function lT(e,t,r,i){var n,a=No(r),o=Fo(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||uT,h=t.__dirty;if(!i){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,y=a&&!!v.colorStops,g=o&&!!c.image,p=a&&!!v.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||y)&&(x=t.getBoundingRect()),d&&(m=h?Dl(e,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),y&&(_=h?Dl(e,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?Al(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),p&&(w=h||!t.__canvasStrokePattern?Al(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?e.fillStyle=m:g&&(S?e.fillStyle=S:o=!1),y?e.strokeStyle=_:p&&(w?e.strokeStyle=w:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var M,D;e.setLineDash&&r.lineDash&&(n=gy(t),M=n[0],D=n[1]);var A=!0;(l||h&Ai)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),A=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(e,u?s:1),M&&(e.setLineDash(M),e.lineDashOffset=D),i||(r.strokeFirst?(a&&Mc(e,r),o&&Cc(e,r)):(o&&Cc(e,r),a&&Mc(e,r))),M&&e.setLineDash([])}function fT(e,t,r){var i=t.__image=Bp(r.image,t.__image,t,t.onload);if(!(!i||!jo(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(i,l,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,c=s-f;e.drawImage(i,l,f,h,c,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function hT(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||gr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=gy(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(No(r)&&e.strokeText(n,r.x,r.y),Fo(r)&&e.fillText(n,r.x,r.y)):(Fo(r)&&e.fillText(n,r.x,r.y),No(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var Dc=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ac=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function yy(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){Gt(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ii.opacity:o}(i||t.blend!==r.blend)&&(a||(Gt(e,n),a=!0),e.globalCompositeOperation=t.blend||ii.blend);for(var s=0;s<Dc.length;s++){var u=Dc[s];(i||t[u]!==r[u])&&(a||(Gt(e,n),a=!0),e[u]=e.dpr*(t[u]||0))}return(i||t.shadowColor!==r.shadowColor)&&(a||(Gt(e,n),a=!0),e.shadowColor=t.shadowColor||ii.shadowColor),a}function Lc(e,t,r,i,n){var a=Jn(t,n.inHover),o=i?null:r&&Jn(r,n.inHover)||{};if(a===o)return!1;var s=yy(e,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Gt(e,n),s=!0),Tc(a.fill)&&(e.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Gt(e,n),s=!0),Tc(a.stroke)&&(e.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Gt(e,n),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Gt(e,n),s=!0),e.lineWidth=l)}for(var f=0;f<Ac.length;f++){var h=Ac[f],c=h[0];(i||a[c]!==o[c])&&(s||(Gt(e,n),s=!0),e[c]=a[c]||h[1])}return s}function vT(e,t,r,i,n){return yy(e,Jn(t,n.inHover),r&&Jn(r,n.inHover),i,n)}function my(e,t){var r=t.transform,i=e.dpr||1;r?e.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):e.setTransform(i,0,0,i,0,0)}function cT(e,t,r){for(var i=!1,n=0;n<e.length;n++){var a=e[n];i=i||a.isZeroArea(),my(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=i}function dT(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Pc=1,Ic=2,Rc=3,Ec=4;function pT(e){var t=Fo(e),r=No(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Gt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Jn(e,t){return t&&e.__hoverStyle||e.style}function _y(e,t){ti(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ti(e,t,r,i){var n=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Zt,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||oT(a,o))&&(o&&o.length&&(Gt(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Gt(e,r),e.save(),cT(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=t instanceof ft&&t.autoBatch&&pT(t.style);s||dT(n,l.transform)?(Gt(e,r),my(e,t)):f||Gt(e,r);var h=Jn(t,r.inHover);t instanceof ft?(r.lastDrawType!==Pc&&(u=!0,r.lastDrawType=Pc),Lc(e,t,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),lT(e,t,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof Ao?(r.lastDrawType!==Rc&&(u=!0,r.lastDrawType=Rc),Lc(e,t,l,u,r),hT(e,t,h)):t instanceof ui?(r.lastDrawType!==Ic&&(u=!0,r.lastDrawType=Ic),vT(e,t,l,u,r),fT(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==Ec&&(u=!0,r.lastDrawType=Ec),gT(e,t,r)),f&&i&&Gt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function gT(e,t,r){var i=t.getDisplayables(),n=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var u=i[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),ti(e,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=n.length;l<f;l++){var u=n[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),ti(e,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var lu=new Zb,kc=new zi(100),Oc=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ll(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";e.dirty&&lu.delete(e);var a=lu.get(e);if(a)return a;var o=lt(e,{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 u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,lu.set(e,s),e.dirty=!1,s;function u(l){for(var f=[r],h=!0,c=0;c<Oc.length;++c){var v=o[Oc[c]];if(v!=null&&!N(v)&&!z(v)&&!ct(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(n?"-svg":"");var y=kc.get(d);y&&(n?l.svgElement=y:l.image=y)}var g=xy(o.dashArrayX),p=yT(o.dashArrayY),m=Sy(o.symbol),_=mT(g),S=wy(p),w=!n&&qe.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},b=D(),M;w&&(w.width=b.width*r,w.height=b.height*r,M=w.getContext("2d")),A(),h&&kc.put(d,w||x),l.image=w,l.svgElement=x,l.svgWidth=b.width,l.svgHeight=b.height;function D(){for(var C=1,I=0,L=_.length;I<L;++I)C=Zh(C,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=Zh(P,m[I].length);C*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(C,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){M&&(M.clearRect(0,0,w.width,w.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,w.width,w.height)));for(var C=0,I=0;I<p.length;++I)C+=p[I];if(C<=0)return;for(var L=-S,P=0,R=0,O=0;L<b.height;){if(P%2===0){for(var Z=R/2%m.length,B=0,X=0,W=0;B<b.width*2;){for(var V=0,I=0;I<g[O].length;++I)V+=g[O][I];if(V<=0)break;if(X%2===0){var H=(1-o.symbolSize)*.5,tt=B+g[O][X]*H,xt=L+p[P]*H,xe=g[O][X]*o.symbolSize,we=p[P]*o.symbolSize,be=W/2%m[Z].length;ze(tt,xt,xe,we,m[Z][be])}B+=g[O][X],++W,++X,X===g[O].length&&(X=0)}++O,O===g.length&&(O=0)}L+=p[P],++R,++P,P===p.length&&(P=0)}function ze(Xt,Dt,Q,rt,Cr){var kt=n?1:r,ch=Jf(Cr,Xt*kt,Dt*kt,Q*kt,rt*kt,o.color,o.symbolKeepAspect);if(n){var dh=i.painter.renderOneToVNode(ch);dh&&x.children.push(dh)}else _y(M,ch)}}}}function Sy(e){if(!e||e.length===0)return[["rect"]];if(z(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!z(e[r])){t=!1;break}if(t)return Sy([e]);for(var i=[],r=0;r<e.length;++r)z(e[r])?i.push([e[r]]):i.push(e[r]);return i}function xy(e){if(!e||e.length===0)return[[0,0]];if(ct(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,i=0;i<e.length;++i)if(!ct(e[i])){r=!1;break}if(r)return xy([e]);for(var n=[],i=0;i<e.length;++i)if(ct(e[i])){var t=Math.ceil(e[i]);n.push([t,t])}else{var t=Y(e[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function yT(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ct(e)){var t=Math.ceil(e);return[t,t]}var r=Y(e,function(i){return Math.ceil(i)});return e.length%2?r.concat(r):r}function mT(e){return Y(e,function(t){return wy(t)})}function wy(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function _T(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var u=i.ensureUniqueItemVisual(o,"style");u.decal=Ll(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Ll(n,t)}}})}var ce=new Fe,by={};function ST(e,t){by[e]=t}function xT(e){return by[e]}var wT=1,bT=800,TT=900,CT=1e3,MT=2e3,DT=5e3,Ty=1e3,AT=1100,jf=2e3,Cy=3e3,LT=4e3,cs=4500,PT=4600,IT=5e3,RT=6e3,My=7e3,ET={PROCESSOR:{FILTER:CT,SERIES_FILTER:bT,STATISTIC:DT},VISUAL:{LAYOUT:Ty,PROGRESSIVE_LAYOUT:AT,GLOBAL:jf,CHART:Cy,POST_CHART_LAYOUT:PT,COMPONENT:LT,BRUSH:IT,CHART_ITEM:cs,ARIA:RT,DECAL:My}},wt="__flagInMainProcess",Ha="__mainProcessVersion",Tt="__pendingUpdate",fu="__needsUpdateStatus",Bc=/^[a-zA-Z0-9_]+$/,hu="__connectUpdateStatus",Nc=0,kT=1,OT=2;function Dy(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return Ly(this,e,t)}}function Ay(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ly(this,e,t)}}function Ly(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Fe.prototype[t].apply(e,r)}var Py=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Fe),Iy=Py.prototype;Iy.on=Ay("on");Iy.off=Ay("off");var Zr,vu,Ga,Ve,Va,cu,du,bi,Ti,Fc,zc,pu,Hc,Wa,Gc,Ry,Jt,Vc,Ci,Ey=(function(e){F(t,e);function t(r,i,n){var a=e.call(this,new Hb)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a._dom=r;var o="canvas",s="auto",u=!1;a[Ha]=1,n.ssr;var l=a._zr=Yh(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:$(n.useDirtyRect,u),useCoarsePointer:$(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Qf(vt(l.flush,l),17),a._updateTheme(i),a._locale=Ox(n.locale||xg),a._coordSysMgr=new Vf;var f=a._api=Gc(a);function h(c,v){return c.__prio-v.__prio}return eo(Ho,h),eo(Rl,h),a._scheduler=new hy(a,f,Rl,Ho),a._messageCenter=new Py,a._initEvents(),a.resize=vt(a.resize,a),l.animation.on("frame",a._onframe,a),Fc(l,a),zc(l,a),ku(a),a}return t.prototype._onframe=function(){if(!this._disposed){Vc(this);var r=this._scheduler;if(this[Tt]){var i=this[Tt].silent;this[wt]=!0,Ci(this);try{Zr(this),Ve.update.call(this,null,this[Tt].updateParams)}catch(u){throw this[wt]=!1,this[Tt]=null,u}this._zr.flush(),this[wt]=!1,this[Tt]=null,bi.call(this,i),Ti.call(this,i)}else if(r.unfinished){var n=wT,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),cu(this,a),r.performVisualTasks(a),Wa(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&r.unfinished);r.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(r,i,n){if(!this[wt]){if(this._disposed){this.id;return}var a,o,s;if(G(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[wt]=!0,Ci(this),!this._model||i){var u=new Sw(this._api),l=this._theme,f=this._model=new $f;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},El);var h={seriesTransition:s,optionChanged:!0};if(n)this[Tt]={silent:a,updateParams:h},this[wt]=!1,this.getZr().wakeUp();else{try{Zr(this),Ve.update.call(this,null,h)}catch(c){throw this[Tt]=null,this[wt]=!1,c}this._ssr||this._zr.flush(),this[Tt]=null,this[wt]=!1,bi.call(this,a),Ti.call(this,a)}}},t.prototype.setTheme=function(r,i){if(!this[wt]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[Tt]&&(a==null&&(a=this[Tt].silent),o=this[Tt].updateParams,this[Tt]=null),this[wt]=!0,Ci(this);try{this._updateTheme(r),n.setTheme(this._theme),Zr(this),Ve.update.call(this,{type:"setTheme"},o)}catch(s){throw this[wt]=!1,s}this[wt]=!1,bi.call(this,a),Ti.call(this,a)}}},t.prototype._updateTheme=function(r){z(r)&&(r=ky[r]),r&&(r=et(r),r&&Wg(r,!0),this._theme=r)},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||q.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return T(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;T(i,function(u){n.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return T(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Wc[n]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();T(Bn,function(_,S){if(_.group===n){var w=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(et(r)),x=_.getDom().getBoundingClientRect();u=a(x.left,u),l=a(x.top,l),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:w,left:x.left,top:x.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,y=h-l,g=qe.createCanvas(),p=Yh(g,{renderer:i?"svg":"canvas"});if(p.resize({width:d,height:y}),i){var m="";return T(c,function(_){var S=_.left-u,w=_.top-l;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&p.painter.setBackgroundColor(r.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}else return r.connectedBackgroundColor&&p.add(new St({shape:{x:0,y:0,width:d,height:y},style:{fill:r.connectedBackgroundColor}})),T(c,function(_){var S=new ui({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});p.add(S)}),p.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,i,n){return Va(this,"convertToPixel",r,i,n)},t.prototype.convertToLayout=function(r,i,n){return Va(this,"convertToLayout",r,i,n)},t.prototype.convertFromPixel=function(r,i,n){return Va(this,"convertFromPixel",r,i,n)},t.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=Bs(n,r);return T(o,function(s,u){u.indexOf("Models")>=0&&T(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,l))}},this)},this),!!a},t.prototype.getVisual=function(r,i){var n=this._model,a=Bs(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?Wb(s,u,i):Ub(s,i)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;T(BT,function(n){var a=function(o){var s=r.getModel(),u=o.target,l,f=n==="globalout";if(f?l={}:u&&bn(u,function(y){var g=ut(y);if(g&&g.dataIndex!=null){var p=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,u)||{},!0}else if(g.eventData)return l=E({},g.eventData),!0},!0),l){var h=l.componentType,c=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=l.seriesIndex);var v=h&&c!=null&&s.getComponent(h,c),d=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:v,view:d},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;T(Il,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),Yb(i,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 r=this.getDom();r&&Ep(this.getDom(),eh,"");var i=this,n=i._api,a=i._model;T(i._componentsViews,function(o){o.dispose(a,n)}),T(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Bn[i.id]},t.prototype.resize=function(r){if(!this[wt]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[Tt]&&(a==null&&(a=this[Tt].silent),n=!0,this[Tt]=null),this[wt]=!0,Ci(this);try{n&&Zr(this),Ve.update.call(this,{type:"resize",animation:E({duration:0},r&&r.animation)})}catch(o){throw this[wt]=!1,o}this[wt]=!1,bi.call(this,a),Ti.call(this,a)}}},t.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(G(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!kl[r]){var n=kl[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var i=E({},r);return i.type=Pl[r.type],i},t.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(G(i)||(i={silent:!!i}),!!zo[r.type]&&this._model){if(this[wt]){this._pendingActions.push(r);return}var n=i.silent;du.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&q.browser.weChat&&this._throttledZrFlush(),bi.call(this,n),Ti.call(this,n)}},t.prototype.updateLabelLayout=function(){ce.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Zr=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),vu(h,!0),vu(h,!1),c.plan()},vu=function(h,c){for(var v=h._model,d=h._scheduler,y=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,p=h._zr,m=h._api,_=0;_<y.length;_++)y[_].__alive=!1;c?v.eachComponent(function(x,b){x!=="series"&&S(b)}):v.eachSeries(S);function S(x){var b=x.__requireNewView;x.__requireNewView=!1;var M="_ec_"+x.id+"_"+x.type,D=!b&&g[M];if(!D){var A=Re(x.type),C=c?Be.getClass(A.main,A.sub):dr.getClass(A.sub);D=new C,D.init(v,m),g[M]=D,y.push(D),p.add(D.group)}x.__viewId=D.__id=M,D.__alive=!0,D.__model=x,D.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!c&&d.prepareView(D,x,v,m)}for(var _=0;_<y.length;){var w=y[_];w.__alive?_++:(!c&&w.renderTask.dispose(),p.remove(w.group),w.dispose(v,m),y.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Ga=function(h,c,v,d,y){var g=h._model;if(g.setUpdatePayload(v),!d){T([].concat(h._componentsViews).concat(h._chartsViews),w);return}var p={};p[d+"Id"]=v[d+"Id"],p[d+"Index"]=v[d+"Index"],p[d+"Name"]=v[d+"Name"];var m={mainType:d,query:p};y&&(m.subType=y);var _=v.excludeSeriesId,S;_!=null&&(S=j(),T(Rt(_),function(x){var b=ye(x,null);b!=null&&S.set(b,!0)})),g&&g.eachComponent(m,function(x){var b=S&&S.get(x.id)!=null;if(!b)if(Cv(v))if(x instanceof Je)v.type===ni&&!v.notBlur&&!x.get(["emphasis","disabled"])&&fS(x,v,h._api);else{var M=mf(x.mainType,x.componentIndex,v.name,h._api),D=M.focusSelf,A=M.dispatchers;v.type===ni&&D&&!v.notBlur&&ll(x.mainType,x.componentIndex,h._api),A&&T(A,function(C){v.type===ni?ol(C):sl(C)})}else vl(v)&&x instanceof Je&&(cS(x,v,h._api),bv(x),Jt(h))},h),g&&g.eachComponent(m,function(x){var b=S&&S.get(x.id)!=null;b||w(h[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function w(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,h._api,v)}},Ve={prepareAndUpdate:function(h){Zr(this),Ve.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,y=this._zr,g=this._coordSysMgr,p=this._scheduler;if(v){v.setUpdatePayload(h),p.restoreData(v,h),p.performSeriesTasks(v),g.create(v,d),p.performDataProcessorTasks(v,h),cu(this,v),g.update(v,d),i(v),p.performVisualTasks(v,h);var m=v.get("backgroundColor")||"transparent";y.setBackgroundColor(m);var _=v.get("darkMode");_!=null&&_!=="auto"&&y.setDarkMode(_),pu(this,v,d,h,c),ce.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var y=[];v.eachComponent(function(p,m){if(p!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,h);S&&S.update&&y.push(_)}else y.push(_)}});var g=j();v.eachSeries(function(p){var m=c._chartsMap[p.__viewId];if(m.updateTransform){var _=m.updateTransform(p,v,d,h);_&&_.update&&g.set(p.uid,1)}else g.set(p.uid,1)}),i(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),Wa(this,v,d,h,{},g),ce.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),dr.markUpdateMethod(h,"updateView"),i(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),pu(this,c,this._api,h,{}),ce.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),dr.markUpdateMethod(h,"updateVisual"),i(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,y){if(d!=="series"){var g=c.getViewOfComponentModel(y);g&&g.__alive&&g.updateVisual(y,v,c._api,h)}}),v.eachSeries(function(d){var y=c._chartsMap[d.__viewId];y.updateVisual(d,v,c._api,h)}),ce.trigger("afterupdate",v,this._api))},updateLayout:function(h){Ve.update.call(this,h)}};function r(h,c,v,d,y){if(h._disposed){h.id;return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),m,_=Bs(g,v),S=0;S<p.length;S++){var w=p[S];if(w[c]&&(m=w[c](g,_,d,y))!=null)return m}}Va=r,cu=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(y){d.updateStreamModes(y,v[y.__viewId])})},du=function(h,c){var v=this,d=this.getModel(),y=h.type,g=h.escapeConnect,p=zo[y],m=(p.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&Re(m[0]);this[wt]=!0,Ci(this);var w=[h],x=!1;h.batch&&(x=!0,w=Y(h.batch,function(O){return O=lt(E({},O),h),O.batch=null,O}));var b=[],M,D=[],A=p.nonRefinedEventType,C=vl(h),I=Cv(h);if(I&&jp(this._api),T(w,function(O){var Z=p.action(O,d,v._api);if(p.refineEvent?D.push(Z):M=Z,M=M||E({},O),M.type=A,b.push(M),I){var B=hf(h),X=B.queryOptionMap,W=B.mainTypeSpecified,V=W?X.keys()[0]:"series";Ga(v,_,O,V),Jt(v)}else C?(Ga(v,_,O,"series"),Jt(v)):S&&Ga(v,_,O,S.main,S.sub)}),_!=="none"&&!I&&!C&&!S)try{this[Tt]?(Zr(this),Ve.update.call(this,h),this[Tt]=null):Ve[_].call(this,h)}catch(O){throw this[wt]=!1,O}if(x?M={type:A,escapeConnect:g,batch:b}:M=b[0],this[wt]=!1,!c){var L=void 0;if(p.refineEvent){var P=p.refineEvent(D,h,d,this._api).eventContent;Ke(G(P)),L=lt({type:p.refinedEventType},P),L.fromAction=h.type,L.fromActionPayload=h,L.escapeConnect=!0}var R=this._messageCenter;R.trigger(M.type,M),L&&R.trigger(L.type,L)}},bi=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();du.call(this,v,h)}},Ti=function(h){!h&&this.trigger("updated")},Fc=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Tt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},zc=function(h,c){h.on("mouseover",function(v){var d=v.target,y=bn(d,hl);y&&(hS(y,v,c._api),Jt(c))}).on("mouseout",function(v){var d=v.target,y=bn(d,hl);y&&(vS(y,v,c._api),Jt(c))}).on("click",function(v){var d=v.target,y=bn(d,function(m){return ut(m).dataIndex!=null},!0);if(y){var g=y.selected?"unselect":"select",p=ut(y);c._api.dispatchAction({type:g,dataType:p.dataType,dataIndexInside:p.dataIndex,seriesIndex:p.seriesIndex,isFromClick:!0})}})};function i(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,w=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:c).push({zlevel:S,z:w,idx:_.componentIndex,type:m,key:x})}),d){var y=c.concat(v),g,p;eo(y,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),T(y,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,w=m.key;g!=null&&(S=Math.max(g,S)),w?(S===g&&w!==p&&S++,p=w):p&&(S===g&&S++,p=""),g=S,_.setZLevel(S)})}}pu=function(h,c,v,d,y){n(c),Hc(h,c,v,d,y),T(h._chartsViews,function(g){g.__alive=!1}),Wa(h,c,v,d,y),T(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},Hc=function(h,c,v,d,y,g){T(g||h._componentsViews,function(p){var m=p.__model;l(m,p),p.render(m,c,v,d),u(m,p),f(m,p)})},Wa=function(h,c,v,d,y,g){var p=h._scheduler;y=E(y||{},{updatedSeries:c.getSeries()}),ce.trigger("series:beforeupdate",c,v,y);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;p.updatePayload(w,d),l(_,S),g&&g.get(_.uid)&&w.dirty(),w.perform(p.getPerformArgs(w))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),bv(_)}),p.unfinished=m||p.unfinished,ce.trigger("series:layoutlabels",c,v,y),ce.trigger("series:transition",c,v,y),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];u(_,S),f(_,S)}),o(h,c),ce.trigger("series:afterupdate",c,v,y)},Jt=function(h){h[fu]=!0,h.getZr().wakeUp()},Ci=function(h){h[Ha]=(h[Ha]+1)%1e3},Vc=function(h){h[fu]&&(h.getZr().storage.traverse(function(c){In(c)||a(c)}),h[fu]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var y=v[d];y==="emphasis"||y==="blur"||y==="select"||c.push(y)}h.selected&&h.states.select&&c.push("select"),h.hoverState===rs&&h.states.emphasis?c.push("emphasis"):h.hoverState===es&&h.states.blur&&c.push("blur"),h.useStates(c)}function o(h,c){var v=h._zr,d=v.storage,y=0;d.traverse(function(g){g.isGroup||y++}),y>c.get("hoverLayerThreshold")&&!q.node&&!q.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var p=h._chartsMap[g.__viewId];p.__alive&&p.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function u(h,c){if(!h.preventAutoZ){var v=dg(h);c.eachRendered(function(d){return pg(d,v.z,v.zlevel),!0})}}function l(h,c){c.eachRendered(function(v){if(!In(v)){var d=v.getTextContent(),y=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),y=v.get("duration"),g=y>0?{duration:y,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(p){if(p.states&&p.states.emphasis){if(In(p))return;if(p instanceof ft&&xS(p),p.__dirty){var m=p.prevStates;m&&p.useStates(m)}if(d){p.stateTransition=g;var _=p.getTextContent(),S=p.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}p.__dirty&&a(p)}})}Gc=function(h){return new((function(c){F(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);d=d.parent}},v.prototype.enterEmphasis=function(d,y){ol(d,y),Jt(h)},v.prototype.leaveEmphasis=function(d,y){sl(d,y),Jt(h)},v.prototype.enterBlur=function(d){lS(d),Jt(h)},v.prototype.leaveBlur=function(d){qp(d),Jt(h)},v.prototype.enterSelect=function(d){Kp(d),Jt(h)},v.prototype.leaveSelect=function(d){Qp(d),Jt(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return h[Ha]},v})(Gg))(h)},Ry=function(h){function c(v,d){for(var y=0;y<v.length;y++){var g=v[y];g[hu]=d}}T(Pl,function(v,d){h._messageCenter.on(d,function(y){if(Wc[h.group]&&h[hu]!==Nc){if(y&&y.escapeConnect)return;var g=h.makeActionFromEvent(y),p=[];T(Bn,function(m){m!==h&&m.group===h.group&&p.push(m)}),c(p,Nc),T(p,function(m){m[hu]!==kT&&m.dispatchAction(g)}),c(p,OT)}})})}})(),t})(Fe),th=Ey.prototype;th.on=Dy("on");th.off=Dy("off");th.one=function(e,t,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(e,n)}this.on.call(this,e,n,r)};var BT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var zo={},Pl={},Il={},Rl=[],El=[],Ho=[],ky={},kl={},Bn={},Wc={},NT=+new Date-0,eh="_echarts_instance_";function tL(e,t,r){var i=!(r&&r.ssr);if(i){var n=FT(e);if(n)return n}var a=new Ey(e,t,r);return a.id="ec_"+NT++,Bn[a.id]=a,i&&Ep(e,eh,a.id),Ry(a),ce.trigger("afterinit",a),a}function FT(e){return Bn[J_(e,eh)]}function Oy(e,t){ky[e]=t}function By(e){it(El,e)<0&&El.push(e)}function Ny(e,t){ih(Rl,e,t,MT)}function zT(e){rh("afterinit",e)}function HT(e){rh("afterupdate",e)}function rh(e,t){ce.on(e,t)}function Qi(e,t,r){var i,n,a,o,s;K(t)&&(r=t,t=""),G(e)?(i=e.type,n=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(i=e,n=t);function u(f){return f.toLowerCase()}n=u(n||i);var l=a?u(i):n;zo[i]||(Ke(Bc.test(i)&&Bc.test(n)),a&&Ke(n!==i),zo[i]={actionType:i,refinedEventType:n,nonRefinedEventType:l,update:o,action:r,refineEvent:a},Il[n]=1,a&&s&&(Il[l]=1),Pl[l]=i)}function GT(e,t){Vf.register(e,t)}function VT(e,t){ih(Ho,e,t,Ty,"layout")}function fi(e,t){ih(Ho,e,t,Cy,"visual")}var Uc=[];function ih(e,t,r,i,n){if((K(t)||G(t))&&(r=t,t=i),!(it(Uc,r)>=0)){Uc.push(r);var a=hy.wrapStageHandler(r,n);a.__prio=t,a.__raw=r,e.push(a)}}function Fy(e,t){kl[e]=t}function WT(e,t,r){var i=xT("registerMap");i&&i(e,t,r)}var UT=Kw;fi(jf,Mb);fi(cs,Db);fi(cs,Ab);fi(jf,Gb);fi(cs,Vb);fi(My,_T);By(Wg);Ny(TT,Rw);Fy("default",Lb);Qi({type:ni,event:ni,update:ni},Vt);Qi({type:so,event:so,update:so},Vt);Qi({type:Lo,event:gf,update:Lo,action:Vt,refineEvent:nh,publishNonRefinedEvent:!0});Qi({type:al,event:gf,update:al,action:Vt,refineEvent:nh,publishNonRefinedEvent:!0});Qi({type:Po,event:gf,update:Po,action:Vt,refineEvent:nh,publishNonRefinedEvent:!0});function nh(e,t,r,i){return{eventContent:{selected:dS(r),isFromClick:t.isFromClick||!1}}}Oy("default",{});Oy("dark",py);function ln(e){return e==null?0:e.length||1}function Yc(e){return e}var YT=(function(){function e(t,r,i,n,a,o){this._old=t,this._new=r,this._oldKeyGetter=i||Yc,this._newKeyGetter=n||Yc,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,i={},n=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],u=i[s],l=ln(u);if(l>1){var f=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(f,o)}else l===1?(i[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=i[u],f=n[u],h=ln(l),c=ln(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),n[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),n[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),n[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),n[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},e.prototype._performRestAdd=function(t,r){for(var i=0;i<t.length;i++){var n=t[i],a=r[n],o=ln(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},e.prototype._initIndexMap=function(t,r,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!r){var u=r[s],l=ln(u);l===0?(r[s]=o,a&&i.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e})(),XT=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function $T(e,t){var r={},i=r.encode={},n=j(),a=[],o=[],s={};T(e.dimensions,function(c){var v=e.getDimensionInfo(c),d=v.coordDim;if(d){var y=v.coordDimIndex;gu(i,d)[y]=c,v.isExtraCoord||(n.set(d,1),qT(v.type)&&(a[0]=c),gu(s,d)[y]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}Bg.each(function(g,p){var m=gu(i,p),_=v.otherDims[p];_!=null&&_!==!1&&(m[_]=v.name)})});var u=[],l={};n.each(function(c,v){var d=i[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=Y(u,function(c){return e.getDimensionInfo(c).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new XT(s,t),r}function gu(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function ZT(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function qT(e){return!(e==="ordinal"||e==="time")}var po=(function(){function e(t){this.otherDims={},t!=null&&E(this,t)}return e})(),KT=yt(),QT={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},zy=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Vy(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return $(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=Xg(this.source),i=!Wy(t),n="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=r?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=r?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!h||!h.isCalculationCoord)&&(n+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),n+="$",n+=QT[l]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}t.push(n)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function Hy(e){return e instanceof zy}function Gy(e){for(var t=j(),r=0;r<(e||[]).length;r++){var i=e[r],n=G(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,r)}return t}function Vy(e){var t=KT(e);return t.dimNameMap||(t.dimNameMap=Gy(e.dimensionsDefine))}function Wy(e){return e>30}var fn=G,nr=Y,JT=typeof Int32Array>"u"?Array:Int32Array,jT="e\0\0",Xc=-1,tC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],eC=["_approximateExtent"],$c,Ua,hn,vn,yu,cn,mu,rC=(function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;Hy(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<i.length;f++){var h=i[f],c=z(h)?new po({name:h}):h instanceof po?h:new po(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]);var y=f;ct(c.storeDimIndex)&&(y=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=y),d.itemId===0&&(this._idDimIdx=y),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=j();T(o,function(p){g.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ct(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,i=r.encode[t];return(i||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,i){var n=this,a;if(t instanceof Sl&&(a=t),!a){var o=this.dimensions,s=Zf(t)||Wt(t)?new $g(t,o.length):t;a=new Sl;var u=nr(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=$T(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var i=this._store.appendValues(t,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var u=s-n;this._nameList[s]=r[u],o&&mu(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==cr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===Qt;if(u&&!n.pure)for(var l=[],f=t;f<r;f++){var h=n.getItem(f,l);if(!this.hasItemOption&&G_(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=ye(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=ye(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)mu(this,f);$c(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){fn(t)?E(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=hn(this,this._nameDimIdx,r)),i==null&&(i=""),i},e.prototype._getCategory=function(t,r){var i=this._store.get(t,r),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},e.prototype.getId=function(t){return Ua(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var i=this,n=this._store;return N(t)?n.getValues(nr(t,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var i=t&&this._invertedIndicesMap[t],n=i&&i[r];return n==null||isNaN(n)?Xc:n},e.prototype.each=function(t,r,i){K(t)&&(i=r,r=t,t=[]);var n=i||this,a=nr(vn(t),this._getStoreDimIndex,this);this._store.each(a,n?vt(r,n):r)},e.prototype.filterSelf=function(t,r,i){K(t)&&(i=r,r=t,t=[]);var n=i||this,a=nr(vn(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?vt(r,n):r),this},e.prototype.selectRange=function(t){var r=this,i={},n=dt(t);return T(n,function(a){var o=r._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},e.prototype.mapArray=function(t,r,i){K(t)&&(i=r,r=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(r&&r.apply(this,arguments))},i),n},e.prototype.map=function(t,r,i,n){var a=i||n||this,o=nr(vn(t),this._getStoreDimIndex,this),s=cn(this);return s._store=this._store.map(o,a?vt(r,a):r),s},e.prototype.modify=function(t,r,i,n){var a=i||n||this,o=nr(vn(t),this._getStoreDimIndex,this);this._store.modify(o,a?vt(r,a):r)},e.prototype.downSample=function(t,r,i,n){var a=cn(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,i,n),a},e.prototype.minmaxDownSample=function(t,r){var i=cn(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),i},e.prototype.lttbDownSample=function(t,r){var i=cn(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),i},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,i=this.getRawDataItem(t);return new pt(i,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new YT(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Ua(t,i)},function(i){return Ua(r,i)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},fn(t)?E(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var i=this._itemVisuals[t],n=i&&i[r];return n??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[r];return a==null&&(a=this.getVisual(r),N(a)?a=a.slice():fn(a)&&(a=E({},a)),n[r]=a),a},e.prototype.setItemVisual=function(t,r,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,fn(r)?E(n,r):n[r]=i},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){fn(t)?E(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,i){this._itemLayouts[t]=i?E(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var i=this.hostModel&&this.hostModel.seriesIndex;j1(i,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){T(this._graphicEls,function(i,n){i&&t&&t.call(r,i,n)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:nr(this.dimensions,this._getDimInfo,this),this.hostModel)),yu(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var i=this[t];K(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(ef(arguments)))})},e.internalField=(function(){$c=function(t){var r=t._invertedIndicesMap;T(r,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=r[n]=new JT(o.categories.length);for(var u=0;u<i.length;u++)i[u]=Xc;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},hn=function(t,r,i){return ye(t._getCategory(r,i),null)},Ua=function(t,r){var i=t._idList[r];return i==null&&t._idDimIdx!=null&&(i=hn(t,t._idDimIdx,r)),i==null&&(i=jT+r),i},vn=function(t){return N(t)||(t=t!=null?[t]:[]),t},cn=function(t){var r=new e(t._schema?t._schema:nr(t.dimensions,t._getDimInfo,t),t.hostModel);return yu(r,t),r},yu=function(t,r){T(tC.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(t[i]=r[i])}),t.__wrappedMethods=r.__wrappedMethods,T(eC,function(i){t[i]=et(r[i])}),t._calculationInfo=E({},r._calculationInfo)},mu=function(t,r){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[r],u=n[r];if(s==null&&a!=null&&(i[r]=s=hn(t,a,r)),u==null&&o!=null&&(n[r]=u=hn(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),n[r]=u}}})(),e})();function iC(e,t){Zf(e)||(e=Ug(e)),t=t||{};var r=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],n=j(),a=[],o=aC(e,r,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Wy(o),u=i===e.dimensionsDefine,l=u?Vy(e):Gy(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=j(f),c=new Jg(o),v=0;v<c.length;v++)c[v]=-1;function d(D){var A=c[D];if(A<0){var C=i[D],I=G(C)?C:{name:C},L=new po,P=I.name;P!=null&&l.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var R=a.length;return c[D]=R,L.storeDimIndex=D,a.push(L),L}return a[A]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(D,A){var C=Rt(D).slice();if(C.length===1&&!z(C[0])&&C[0]<0){h.set(A,!1);return}var I=h.set(A,[]);T(C,function(L,P){var R=z(L)?l.get(L):L;R!=null&&R<o&&(I[P]=R,g(d(R),A,P))})});var y=0;T(r,function(D){var A,C,I,L;if(z(D))A=D,L={};else{L=D,A=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=E({},L),L.ordinalMeta=P,C=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(A);if(R!==!1){if(R=Rt(R),!R.length)for(var O=0;O<(C&&C.length||1);O++){for(;y<o&&d(y).coordDim!=null;)y++;y<o&&R.push(y++)}T(R,function(Z,B){var X=d(Z);if(u&&L.type!=null&&(X.type=L.type),g(lt(X,L),A,B),X.name==null&&C){var W=C[B];!G(W)&&(W={name:W}),X.name=X.displayName=W.name,X.defaultTooltip=W.defaultTooltip}I&<(X.otherDims,I)})}});function g(D,A,C){Bg.get(A)!=null?D.otherDims[A]=C:(D.coordDim=A,D.coordDimIndex=C,n.set(A,!0))}var p=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=p?m||1:0;var S=p||"value";function w(D){D.name==null&&(D.name=D.coordDim)}if(s)T(a,function(D){w(D)}),a.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var b=d(x),M=b.coordDim;M==null&&(b.coordDim=oC(S,n,_),b.coordDimIndex=0,(!p||m<=0)&&(b.isExtraCoord=!0),m--),w(b),b.type==null&&(zg(e,x)===At.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return nC(a),new zy({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function nC(e){for(var t=j(),r=0;r<e.length;r++){var i=e[r],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function aC(e,t,r,i){var n=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,i||0);return T(t,function(a){var o;G(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function oC(e,t,r){if(r||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}var sC=(function(){function e(t){this.coordSysDims=[],this.axisMap=j(),this.categoryAxisMap=j(),this.coordSysName=t}return e})();function uC(e){var t=e.get("coordinateSystem"),r=new sC(t),i=lC[t];if(i)return i(e,r,r.axisMap,r.categoryAxisMap),r}var lC={cartesian2d:function(e,t,r,i){var n=e.getReferringComponents("xAxis",oe).models[0],a=e.getReferringComponents("yAxis",oe).models[0];t.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),Mi(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Mi(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,i){var n=e.getReferringComponents("singleAxis",oe).models[0];t.coordSysDims=["single"],r.set("single",n),Mi(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(e,t,r,i){var n=e.getReferringComponents("polar",oe).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Mi(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Mi(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,i){var n=e.ecModel,a=n.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,u){var l=n.getComponent("parallelAxis",s),f=o[u];r.set(f,l),Mi(l)&&(i.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})},matrix:function(e,t,r,i){var n=e.getReferringComponents("matrix",oe).models[0];t.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function Mi(e){return e.get("type")==="category"}function fC(e,t,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;hC(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,c;if(T(a,function(m,_){z(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!i&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!i&&!l&&(i=!0),f){h="__\0ecstackresult_"+e.id,c="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;T(a,function(m){m.coordDim===v&&y++});var g={name:h,coordDim:v,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},p={name:c,coordDim:c,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),p.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(p)):(a.push(g),a.push(p))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function hC(e){return!Hy(e.schema)}function Uy(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function vC(e,t){return Uy(e,t)?e.getCalculationInfo("stackResultDimension"):t}function cC(e,t){var r=e.get("coordinateSystem"),i=Vf.get(r),n;return t&&t.coordSysDims&&(n=Y(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=ZT(u)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function dC(e,t,r){var i,n;return r&&T(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(i==null&&(i=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(e[i].otherDims.itemName=0),i}function Yy(e,t,r){r=r||{};var i=t.getSourceManager(),n,a=!1;n=i.getSource(),a=n.sourceFormat===Qt;var o=uC(t),s=cC(t,o),u=r.useEncodeDefaulter,l=K(u)?u:u?bt(uw,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=iC(n,f),c=dC(h.dimensions,r.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),d=fC(t,{schema:h,store:v}),y=new rC(h,t);y.setCalculationInfo(d);var g=c!=null&&pC(n)?function(p,m,_,S){return S===c?_:this.defaultDimValueGetter(p,m,_,S)}:null;return y.hasItemOption=!1,y.initData(a?n:v,null,g),y}function pC(e){if(e.sourceFormat===Qt){var t=gC(e.data||[]);return!N(aa(t))}}function gC(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function Ol(e){return e.type==="interval"||e.type==="log"}function yC(e,t,r,i,n){var a={},o=a.interval=Dp(t/r);i!=null&&o<i&&(o=a.interval=i),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=jn(o),u=a.niceTickExtent=[Lt(Math.ceil(e[0]/o)*o,s),Lt(Math.floor(e[1]/o)*o,s)];return mC(u,e),a}function _u(e){var t=Math.pow(10,lf(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Lt(r*t)}function jn(e){return Xe(e)+2}function Zc(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function mC(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Zc(e,0,t),Zc(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ah(e,t){return e>=t[0]&&e<=t[1]}var _C=(function(){function e(){this.normalize=qc,this.scale=Kc}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=vt(t.normalize,t),this.scale=vt(t.scale,t)):(this.normalize=qc,this.scale=Kc)},e})();function qc(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Kc(e,t){return e*(t[1]-t[0])+t[0]}function Bl(e,t,r){var i=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/i,Math.log(r?t[1]:Math.max(0,t[1]))/i]}var Tr=(function(){function e(t){this._calculator=new _C,this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]<r[0]?t[0]:r[0],t[1]>r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(r)||(i[1]=r),this._brkCtx&&this._brkCtx.update(i)},e.prototype.setBreaksFromOption=function(t){},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();Jo(Tr);var SC=0,Nl=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++SC,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,i=r.data,n=i&&Y(i,xC);return new e({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,i=this._needCollect;if(!z(t)&&!i)return t;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var n=this._getOrCreateMap();return r=n.get(t),r==null&&(i?(r=this.categories.length,this.categories[r]=t,n.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=j(this.categories))},e})();function xC(e){return G(e)&&e.value!=null?e.value:e+""}var Xy=(function(e){F(t,e);function t(r){var i=e.call(this,r)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new Nl({})),N(n)&&(n=new Nl({categories:Y(n,function(a){return G(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(r){return r==null?NaN:z(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return ah(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},t.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],i=this._extent,n=i[0];n<=i[1];)r.push({value:n}),n++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,i.length);o<u;++o){var l=i[o];n[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Tr);Tr.registerClass(Xy);var ar=Lt,Yi=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return ah(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=jn(r)},t.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=Eo(),u=[];if(!i)return u;r.breakTicks;var l=1e4;n[0]<a[0]&&(r.expandToNicedExtent?u.push({value:ar(a[0]-i,o)}):u.push({value:n[0]}));for(var f=function(d,y){return Math.round((y-d)/i)},h=a[0];h<=a[1];){if(u.push({value:h}),h=ar(h+i,o),this._brkCtx){var c=this._brkCtx.calcNiceTickMultiple(h,f);c>=0&&(h=ar(h+c*i,o))}if(u.length>0&&h===u[u.length-1].value)break;if(u.length>l)return[]}var v=u.length?u[u.length-1].value:a[1];return n[1]>v&&(r.expandToNicedExtent?u.push({value:ar(v+i,o)}):u.push({value:n[1]})),r.breakTicks,u},t.prototype.getMinorTicks=function(r){for(var i=this.getTicks({expandToNicedExtent:!0}),n=[],a=this.getExtent(),o=1;o<i.length;o++){var s=i[o],u=i[o-1];if(!(u.break||s.break)){for(var l=0,f=[],h=s.value-u.value,c=h/r,v=jn(c);l<r-1;){var d=ar(u.value+(l+1)*c,v);d>a[0]&&d<a[1]&&f.push(d),l++}var y=Eo();y&&y.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(g){return g},this._interval,a),n.push(f)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=Xe(r.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=ar(r.value,n,!0);return Pg(a)},t.prototype.calcNiceTicks=function(r,i,n){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=yC(a,o,r,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var i=this._extent.slice();if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);r.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this._innerSetExtent(i[0],i[1]),i=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(i[0]=ar(Math.floor(i[0]/o)*o,s)),r.fixMax||(i[1]=ar(Math.ceil(i[1]/o)*o,s)),this._innerSetExtent(i[0],i[1])},t.prototype.setNiceExtent=function(r,i){this._niceExtent=[r,i]},t.type="interval",t})(Tr);Tr.registerClass(Yi);var $y=typeof Float32Array<"u",wC=$y?Float32Array:Array;function Su(e){return N(e)?$y?new Float32Array(e):e:new wC(e)}var bC="__ec_stack_";function Zy(e){return e.get("stack")||bC+e.seriesIndex}function oh(e){return e.dim+e.index}function qy(e,t){var r=[];return t.eachSeriesByType(e,function(i){Qy(i)&&r.push(i)}),r}function TC(e){var t={};T(e,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),y=0,g=d.count();y<g;++y){var p=d.get(v,y);t[c]?t[c].push(p):t[c]=[p]}});var r={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(u,l){return u-l});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[i]=a}}return r}function Ky(e){var t=TC(e),r=[];return T(e,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=_t(i.get("barWidth"),s),y=_t(i.get("barMaxWidth"),s),g=_t(i.get("barMinWidth")||(Jy(i)?.5:1),s),p=i.get("barGap"),m=i.get("barCategoryGap"),_=i.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:g,barGap:p,barCategoryGap:m,defaultBarGap:_,axisKey:oh(a),stackId:Zy(i)})}),CC(r)}function CC(e){var t={};T(e,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:i.defaultBarGap||0,stacks:{}},u=s.stacks;t[a]=s;var l=i.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=i.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(u[l].maxWidth=h);var c=i.barMinWidth;c&&(u[l].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return T(t,function(i,n){r[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var u=dt(a).length;s=Math.max(35-u*4,15)+"%"}var l=_t(s,o),f=_t(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),T(a,function(p){var m=p.maxWidth,_=p.minWidth;if(p.width){var S=p.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),p.width=S,h-=S+f*S,c--}else{var S=v;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==v&&(p.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,y;T(a,function(p,m){p.width||(p.width=v),y=p,d+=p.width*(1+f)}),y&&(d-=y.width*f);var g=-d/2;T(a,function(p,m){r[n][m]=r[n][m]||{bandWidth:o,offset:g,width:p.width},g+=p.width*(1+f)})}),r}function MC(e,t,r){if(e&&t){var i=e[oh(t)];return i}}function DC(e,t){var r=qy(e,t),i=Ky(r);T(r,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),u=Zy(n),l=i[oh(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function AC(e){return{seriesType:e,plan:oy(),reset:function(t){if(Qy(t)){var r=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),u=t.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Uy(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=LC(n,a),d=Jy(t),y=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),p=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&Su(w*3),b=d&&u&&Su(w*3),M=d&&Su(w),D=i.master.getRect(),A=c?D.width:D.height,C,I=S.getStore(),L=0;(C=_.next())!=null;){var P=I.get(h?g:o,C),R=I.get(s,C),O=v,Z=void 0;h&&(Z=+P-I.get(o,C));var B=void 0,X=void 0,W=void 0,V=void 0;if(c){var H=i.dataToPoint([P,R]);if(h){var tt=i.dataToPoint([Z,R]);O=tt[0]}B=O,X=H[1]+m,W=H[0]-O,V=p,Math.abs(W)<y&&(W=(W<0?-1:1)*y)}else{var H=i.dataToPoint([R,P]);if(h){var tt=i.dataToPoint([R,Z]);O=tt[1]}B=H[0]+m,X=O,W=p,V=H[1]-O,Math.abs(V)<y&&(V=(V<=0?-1:1)*y)}d?(x[L]=B,x[L+1]=X,x[L+2]=c?W:V,b&&(b[L]=c?D.x:B,b[L+1]=c?X:D.y,b[L+2]=A),M[C]=C):S.setItemLayout(C,{x:B,y:X,width:W,height:V}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:M,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function Qy(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Jy(e){return e.pipelineContext&&e.pipelineContext.large}function LC(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var PC=function(e,t,r,i){for(;r<i;){var n=r+i>>>1;e[n][1]<t?r=n+1:i=n}return r},jy=(function(e){F(t,e);function t(r){var i=e.call(this,r)||this;return i.type="time",i}return t.prototype.getLabel=function(r){var i=this.getSetting("useUTC");return ls(r.value,Vv[Yx(En(this._minLevelUnit))]||Vv.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Xx(r,i,n,o,a)},t.prototype.getTicks=function(r){var i=this._interval,n=this._extent,a=[];if(!i)return a;var o=this.getSetting("useUTC"),s=ko(n[1],o);a.push({value:n[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var u=FC(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(u);var l=ko(n[1],o);a.push({value:n[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}}),this.getSetting("useUTC");var f=ai.length-1,h=0;return T(a,function(c){f=Math.min(f,it(ai,c.time.upperTimeUnit)),h=Math.max(h,c.time.level)}),a},t.prototype.calcNiceExtent=function(r){var i=this.getExtent();if(i[0]===i[1]&&(i[0]-=se,i[1]+=se),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-se}this._innerSetExtent(i[0],i[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,i,n){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=Ya.length,s=Math.min(PC(Ya,this._approxInterval,0,o),o-1);this._interval=Ya[s][1],this._intervalPrecision=jn(this._interval),this._minLevelUnit=Ya[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return ct(r)?r:+qi(r)},t.prototype.contain=function(r){return ah(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t})(Yi),Ya=[["second",kf],["minute",Of],["hour",Rn],["quarter-day",Rn*6],["half-day",Rn*12],["day",se*1.2],["half-week",se*3.5],["week",se*7],["month",se*31],["quarter",se*95],["half-year",Gv/2],["year",Gv]];function IC(e,t,r,i){return gl(new Date(t),e,i).getTime()===gl(new Date(r),e,i).getTime()}function RC(e,t){return e/=se,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function EC(e){var t=30*se;return e/=t,e>6?6:e>3?3:e>2?2:1}function kC(e){return e/=Rn,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Qc(e,t){return e/=t?Of:kf,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function OC(e){return Dp(e)}function BC(e,t,r){var i=Math.max(0,it(ai,t)-1);return gl(new Date(e),ai[i],r).getTime()}function NC(e,t){var r=new Date(0);r[e](1);var i=r.getTime();r[e](1+t);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function FC(e,t,r,i,n,a){var o=1e4,s=Gx,u=0;function l(L,P,R,O,Z,B,X){for(var W=NC(Z,L),V=P,H=new Date(V);V<R&&V<=i[1]&&(X.push({value:V}),!(u++>o));)if(H[Z](H[O]()+L),V=H.getTime(),a){var tt=a.calcNiceTickMultiple(V,W);tt>0&&(H[Z](H[O]()+tt*L),V=H.getTime())}X.push({value:V,notAdd:!0})}function f(L,P,R){var O=[],Z=!P.length;if(!IC(En(L),i[0],i[1],r)){Z&&(P=[{value:BC(i[0],L,r)},{value:i[1]}]);for(var B=0;B<P.length-1;B++){var X=P[B].value,W=P[B+1].value;if(X!==W){var V=void 0,H=void 0,tt=void 0,xt=!1;switch(L){case"year":V=Math.max(1,Math.round(t/se/365)),H=bg(r),tt=$x(r);break;case"half-year":case"quarter":case"month":V=EC(t),H=Bf(r),tt=Tg(r);break;case"week":case"half-week":case"day":V=RC(t),H=Nf(r),tt=Cg(r),xt=!0;break;case"half-day":case"quarter-day":case"hour":V=kC(t),H=Ff(r),tt=Mg(r);break;case"minute":V=Qc(t,!0),H=zf(r),tt=Dg(r);break;case"second":V=Qc(t,!1),H=Hf(r),tt=Ag(r);break;case"millisecond":V=OC(t),H=Gf(r),tt=Lg(r);break}W>=i[0]&&X<=i[1]&&l(V,X,W,H,tt,xt,O),L==="year"&&R.length>1&&B===0&&R.unshift({value:R[0].value-V})}}for(var B=0;B<O.length;B++)R.push(O[B])}}for(var h=[],c=[],v=0,d=0,y=0;y<s.length;++y){var g=En(s[y]);if(Ux(s[y])){f(s[y],h[h.length-1]||[],c);var p=s[y+1]?En(s[y+1]):null;if(g!==p){if(c.length){d=v,c.sort(function(L,P){return L.value-P.value});for(var m=[],_=0;_<c.length;++_){var S=c[_].value;(_===0||c[_-1].value!==S)&&(m.push(c[_]),S>=i[0]&&S<=i[1]&&v++)}var w=n/t;if(v>w*1.5&&d>w/1.5||(h.push(m),v>w||e===s[y]))break}c=[]}}}for(var x=Mt(Y(h,function(L){return Mt(L,function(P){return P.value>=i[0]&&P.value<=i[1]&&!P.notAdd})}),function(L){return L.length>0}),b=[],M=x.length-1,y=0;y<x.length;++y)for(var D=x[y],A=0;A<D.length;++A){var C=ko(D[A].value,r);b.push({value:D[A].value,time:{level:M-y,upperTimeUnit:C,lowerTimeUnit:C}})}b.sort(function(L,P){return L.value-P.value});for(var I=[],y=0;y<b.length;++y)(y===0||b[y].value!==b[y-1].value)&&I.push(b[y]);return I}Tr.registerClass(jy);var Fl=Lt,zC=Math.floor,HC=Math.ceil,Xa=Math.pow,$a=Math.log,tm=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Yi,r}return t.prototype.getTicks=function(r){r=r||{};var i=this._extent.slice(),n=this._originalScale.getExtent(),a=e.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),Y(a,function(s){var u=s.value,l=null,f=Xa(o,u);u===i[0]&&this._fixMin?l=n[0]:u===i[1]&&this._fixMax&&(l=n[1]);var h;return l!=null&&(f=xu(f,l)),{value:f,break:h}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(r,i){this._originalScale.setExtent(r,i);var n=Bl(this.base,[r,i]);e.prototype.setExtent.call(this,n[0],n[1])},t.prototype.getExtent=function(){var r=this.base,i=e.prototype.getExtent.call(this);i[0]=Xa(r,i[0]),i[1]=Xa(r,i[1]);var n=this._originalScale.getExtent();return this._fixMin&&(i[0]=xu(i[0],n[0])),this._fixMax&&(i[1]=xu(i[1],n[1])),i},t.prototype.unionExtentFromData=function(r,i){this._originalScale.unionExtentFromData(r,i);var n=Bl(this.base,r.getApproximateExtent(i),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(r){r=r||10;var i=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var a=O_(n),o=r/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Fl(HC(i[0]/a)*a),Fl(zC(i[1]/a)*a)];this._interval=a,this._intervalPrecision=jn(a),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=$a(r)/$a(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=$a(r)/$a(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),Xa(this.base,r)},t.prototype.setBreaksFromOption=function(r){},t.type="log",t})(Yi);function xu(e,t){return Fl(e,Xe(t))}Tr.registerClass(tm);var GC=(function(){function e(t,r,i){this._prepareParams(t,r,i)}return e.prototype._prepareParams=function(t,r,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;K(o)?this._modelMinNum=Za(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=Za(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(K(s)?this._modelMaxNum=Za(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=Za(t,s)),n)this._axisDataLen=r.getCategories().length;else{var u=r.get("boundaryGap"),l=N(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[mr(l[0],1),mr(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?n?0:NaN:r-a[0]*o),u==null&&(u=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=zn(s)||zn(u)||t&&!n;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[WC[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var i=VC[t];this[i]=r},e.prototype.freeze=function(){this.frozen=!0},e})(),VC={min:"_determinedMin",max:"_determinedMax"},WC={min:"_dataMin",max:"_dataMax"};function UC(e,t,r){var i=e.rawExtentInfo;return i||(i=new GC(e,t,r),e.rawExtentInfo=i,i)}function Za(e,t){return t==null?null:zn(t)?NaN:e.parse(t)}function em(e,t){var r=e.type,i=UC(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&r==="time"){var s=qy("bar",o),u=!1;if(T(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=Ky(s),f=YC(n,a,t,l);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function YC(e,t,r,i){var n=r.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=MC(i,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;T(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-e,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),e-=c*(s/l),{min:e,max:t}}function Jc(e,t){var r=t,i=em(e,r),n=i.extent,a=r.get("splitNumber");e instanceof tm&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setBreaksFromOption(im(r)),e.setExtent(n[0],n[1]),e.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function XC(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Xy({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new jy({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Tr.getClass(t)||Yi)}}function $C(e){var t=e.scale.getExtent(),r=t[0],i=t[1];return!(r>0&&i>0||r<0&&i<0)}function fa(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=Vx(t);return function(n,a){return e.scale.getFormattedLabel(n,a,r)}}else{if(z(t))return function(n){var a=e.scale.getLabel(n),o=t.replace("{value}",a??"");return o};if(K(t)){if(e.type==="category")return function(n,a){return t(Go(e,n),n.value-e.scale.getExtent()[0],null)};var i=Eo();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),t(Go(e,n),a,o)}}else return function(n){return e.scale.getLabel(n)}}}function Go(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function sh(e){var t=e.get("interval");return t??"auto"}function rm(e){return e.type==="category"&&sh(e.getLabelModel())===0}function ZC(e,t){var r={};return T(e.mapDimensionsAll(t),function(i){r[vC(e,i)]=!0}),dt(r)}function Xi(e){return e==="middle"||e==="center"}function ta(e){return e.getShallow("show")}function im(e){var t=e.get("breaks",!0);t==null}var qC=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})(),jc=[],KC={registerPreprocessor:By,registerProcessor:Ny,registerPostInit:zT,registerPostUpdate:HT,registerUpdateLifecycle:rh,registerAction:Qi,registerCoordinateSystem:GT,registerLayout:VT,registerVisual:fi,registerTransform:UT,registerLoading:Fy,registerMap:WT,registerImpl:ST,PRIORITY:ET,ComponentModel:ot,ComponentView:Be,SeriesModel:Je,ChartView:dr,registerComponentModel:function(e){ot.registerClass(e)},registerComponentView:function(e){Be.registerClass(e)},registerSeriesModel:function(e){Je.registerClass(e)},registerChartView:function(e){dr.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){ot.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){A_(e,t)}};function si(e){if(N(e)){T(e,function(t){si(t)});return}it(jc,e)>=0||(jc.push(e),K(e)&&(e={install:e}),e.install(KC))}var QC=yt(),Nn=yt(),me={estimate:1,determine:2};function Vo(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function nm(e,t){var r=Y(t,function(i){return e.scale.parse(i)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function JC(e,t){var r=e.getLabelModel().get("customValues");if(r){var i=fa(e),n=e.scale.getExtent(),a=nm(e,r),o=Mt(a,function(s){return s>=n[0]&&s<=n[1]});return{labels:Y(o,function(s){var u={value:s};return{formattedLabel:i(u),rawLabel:e.scale.getLabel(u),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?tM(e,t):rM(e)}function jC(e,t,r){var i=e.getTickModel().get("customValues");if(i){var n=e.scale.getExtent(),a=nm(e,i);return{ticks:Mt(a,function(o){return o>=n[0]&&o<=n[1]})}}return e.type==="category"?eM(e,t):{ticks:Y(e.scale.getTicks(r),function(o){return o.value})}}function tM(e,t){var r=e.getLabelModel(),i=am(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:i}function am(e,t,r){var i=nM(e),n=sh(t),a=r.kind===me.estimate;if(!a){var o=sm(i,n);if(o)return o}var s,u;K(n)?s=fm(e,n):(u=n==="auto"?aM(e,r):n,s=lm(e,u));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return zl(i,n,l),!0}):zl(i,n,l),l}function eM(e,t){var r=iM(e),i=sh(t),n=sm(r,i);if(n)return n;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),K(i))a=fm(e,i,!0);else if(i==="auto"){var s=am(e,e.getLabelModel(),Vo(me.determine));o=s.labelCategoryInterval,a=Y(s.labels,function(u){return u.tickValue})}else o=i,a=lm(e,o,!0);return zl(r,i,{ticks:a,tickCategoryInterval:o})}function rM(e){var t=e.scale.getTicks(),r=fa(e);return{labels:Y(t,function(i,n){return{formattedLabel:r(i,n),rawLabel:e.scale.getLabel(i),tickValue:i.value,time:i.time,break:i.break}})}}var iM=om("axisTick"),nM=om("axisLabel");function om(e){return function(r){return Nn(r)[e]||(Nn(r)[e]={list:[]})}}function sm(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function zl(e,t,r){return e.list.push({key:t,value:r}),r}function aM(e,t){if(t.kind===me.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Nn(e).autoInterval=r,!0}),r}var i=Nn(e).autoInterval;return i??(Nn(e).autoInterval=e.calculateCategoryInterval(t))}function oM(e,t){var r=t.kind,i=uM(e),n=fa(e),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,f=40;u>f&&(l=Math.max(1,Math.floor(u/f)));for(var h=s[0],c=e.dataToCoord(h+1)-e.dataToCoord(h),v=Math.abs(c*Math.cos(a)),d=Math.abs(c*Math.sin(a)),y=0,g=0;h<=s[1];h+=l){var p=0,m=0,_=wp(n({value:h}),i.font,"center","top");p=_.width*1.3,m=_.height*1.3,y=Math.max(y,p,7),g=Math.max(g,m,7)}var S=y/v,w=g/d;isNaN(S)&&(S=1/0),isNaN(w)&&(w=1/0);var x=Math.max(0,Math.floor(Math.min(S,w)));if(r===me.estimate)return t.out.noPxChangeTryDetermine.push(vt(sM,null,e,x,u)),x;var b=um(e,x,u);return b??x}function sM(e,t,r){return um(e,t,r)==null}function um(e,t,r){var i=QC(e.model),n=e.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=t,i.axisExtent0=n[0],i.axisExtent1=n[1]}function uM(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function lm(e,t,r){var i=fa(e),n=e.scale,a=n.getExtent(),o=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=n.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=rm(e),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&y(a[0]);for(var d=l;d<=a[1];d+=u)y(d);v&&d-u!==a[1]&&y(a[1]);function y(g){var p={value:g};s.push(r?g:{formattedLabel:i(p),rawLabel:n.getLabel(p),tickValue:g,time:void 0,break:void 0})}return s}function fm(e,t,r){var i=e.scale,n=fa(e),a=[];return T(i.getTicks(),function(o){var s=i.getLabel(o),u=o.value;t(o.value,s)&&a.push(r?u:{formattedLabel:n(o),rawLabel:s,tickValue:u,time:void 0,break:void 0})}),a}var td=[0,1],lM=(function(){function e(t,r,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=i||[0,0]}return e.prototype.contain=function(t){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return t>=i&&t<=n},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return R_(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var i=this._extent;i[0]=t,i[1]=r},e.prototype.dataToCoord=function(t,r){var i=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(i=i.slice(),ed(i,n.count())),$h(t,td,i,r)},e.prototype.coordToData=function(t,r){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),ed(i,n.count()));var a=$h(t,i,td,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),i=jC(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=i.ticks,a=Y(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return fM(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=Y(i,function(a){return Y(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},e.prototype.getViewLabels=function(t){return t=t||Vo(me.determine),JC(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),i=r[1]-r[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},e.prototype.calculateCategoryInterval=function(t){return t=t||Vo(me.determine),oM(this,t)},e})();function ed(e,t){var r=e[1]-e[0],i=t,n=r/i/2;e[0]+=n,e[1]-=n}function fM(e,t,r,i){var n=t.length;if(!e.onBand||r||!n)return;var a=e.getExtent(),o,s;if(n===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var u=t[n-1].tickValue-t[0].tickValue,l=(t[n-1].coord-t[0].coord)/u;T(t,function(v){v.coord-=l/2,v.onBand=!0});var f=e.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+l*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&c(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),c(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&c(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function c(v,d){return v=Lt(v),d=Lt(d),h?v>d:v<d}}var rd=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],hM=1,Wo=2,hm=hM|Wo;function Uo(e,t,r){r=r||hm,t?e.dirty|=r:e.dirty&=~r}function vm(e,t){return t=t||hm,e.dirty==null||!!(e.dirty&t)}function br(e){if(e)return vm(e)&&vM(e,e.label,e),e}function vM(e,t,r){var i=t.getComputedTransform();e.transform=Pf(e.transform,i);var n=e.localRect=Xn(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=ki.textMargin);for(var h=0;h<4;h++)wu[h]=f===ki.minMargin&&u&&u[h]!=null?u[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===ki.textMargin&&Io(n,wu,!1,!1);var c=e.rect=Xn(e.rect,n);return i&&c.applyTransform(i),f===ki.minMargin&&Io(c,wu,!1,!1),e.axisAligned=Lf(i),(e.label=e.label||{}).ignore=t.ignore,Uo(e,!1),Uo(e,!0,Wo),e}var wu=[0,0,0,0];function cM(e,t,r){return e.transform=Pf(e.transform,r),e.localRect=Xn(e.localRect,t),e.rect=Xn(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=Lf(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function dM(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var i=e.rect;i&&(i.x+=t.x,i.y+=t.y);var n=e.obb;n&&n.fromBoundingRect(e.localRect,r)}}function id(e,t){for(var r=0;r<rd.length;r++){var i=rd[r];e[i]==null&&(e[i]=t[i])}return br(e)}function nd(e){var t=e.obb;return(!t||vm(e,Wo))&&(e.obb=t=t||new sg,t.fromBoundingRect(e.localRect,e.transform),Uo(e,!1,Wo)),t}function eL(e,t,r,i,n){var a=e.length,o=ur[t],s=Vi[t];if(a<2)return!1;e.sort(function(b,M){return b.rect[o]-M.rect[o]});for(var u=0,l,f=!1,h=0;h<a;h++){var c=e[h],v=c.rect;l=v[o]-u,l<0&&(v[o]-=l,c.label[o]-=l,f=!0),u=v[o]+v[s]}var d=e[0],y=e[a-1],g,p;m(),g<0&&w(-g,.8),p<0&&w(p,.8),m(),_(g,p,1),_(p,g,-1),m(),g<0&&x(-g),p<0&&x(p);function m(){g=d.rect[o]-r,p=i-y.rect[o]-y.rect[s]}function _(b,M,D){if(b<0){var A=Math.min(M,-b);if(A>0){S(A*D,0,a);var C=A+b;C<0&&w(-C*D,1)}else w(-b*D,1)}}function S(b,M,D){b!==0&&(f=!0);for(var A=M;A<D;A++){var C=e[A],I=C.rect;I[o]+=b,C.label[o]+=b}}function w(b,M){for(var D=[],A=0,C=1;C<a;C++){var I=e[C-1].rect,L=Math.max(e[C].rect[o]-I[o]-I[s],0);D.push(L),A+=L}if(A){var P=Math.min(Math.abs(b)/A,M);if(b>0)for(var C=0;C<a-1;C++){var R=D[C]*P;S(R,0,C+1)}else for(var C=a-1;C>0;C--){var R=D[C-1]*P;S(-R,C,a)}}}function x(b){var M=b<0?-1:1;b=Math.abs(b);for(var D=Math.ceil(b/(a-1)),A=0;A<a-1;A++)if(M>0?S(D,0,A+1):S(-D,a-A-1,a),b-=D,b<=0)return}return f}function pM(e){var t=[];e.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function r(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var i=0;i<e.length;i++){var n=br(e[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,u=0;u<t.length;u++)if(uh(n,t[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(n)}}}function uh(e,t,r,i){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,i)?!1:e.axisAligned&&t.axisAligned?!0:nd(e).intersect(nd(t),r,i)}function gM(e,t){var r=e.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=Ui(e,t,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(Ui(e,t,r[o]));return a.join(" ")}}function yM(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!N(t))return t+"";for(var i=[],n=0;n<r.length;n++){var a=e.getDimensionIndex(r[n]);a>=0&&i.push(t[a])}return i.join(" ")}function mM(e,t,r,i,n){var a=e.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var h=new St({shape:{x:o,y:s,width:u,height:l}});if(t){var c=e.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=u),h.shape.width=0):(d||(h.shape.y+=l),h.shape.height=0);var y=K(n)?function(g){n(g,h)}:null;oi(h,{shape:{width:u,height:l,x:o,y:s}},r,null,i,y)}return h}function _M(e,t,r){var i=e.getArea(),n=Lt(i.r0,1),a=Lt(i.r,1),o=new Ki({shape:{cx:Lt(e.cx,1),cy:Lt(e.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,oi(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function SM(e,t,r,i,n){if(e){if(e.type==="polar")return _M(e,t,r);if(e.type==="cartesian2d")return mM(e,t,r,i,n)}else return null;return null}function cm(e,t){return e.type===t}var xM={average:function(e){for(var t=0,r=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},wM=function(e){return Math.round(e.length/2)};function bM(e){return{seriesType:e,reset:function(t,r,i){var n=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/v)):a==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(l.dim),1/v));var d=void 0;z(a)?d=xM[a]:K(a)&&(d=a),d&&t.setData(n.downSample(n.mapDimension(l.dim),1/v,d,wM))}}}}}var Hl=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,i){return Yy(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)T(a.getAxes(),function(c,v){if(c.type==="category"&&i!=null){var d=c.getTicksCoords(),y=c.getTickModel().get("alignWithLabel"),g=o[v],p=i[v]==="x1"||i[v]==="y1";if(p&&!y&&(g+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[p?1:0]);return}for(var m=void 0,_=void 0,S=1,w=0;w<d.length;w++){var x=d[w].coord,b=w===d.length-1?d[w-1].tickValue+S:d[w].tickValue;if(b===g){_=x;break}else if(b<g)m=x;else if(m!=null&&b>g){_=(x+m)/2;break}w===1&&(S=b-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout("offset"),f=u.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=l+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",defaultBarGap:"10%"},t})(Je);Je.registerClass(Hl);var TM=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Yy(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 r=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>r&&(r=i),r},t.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Sg(Hl.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:U.color.primary,borderWidth:2}},realtimeSort:!1}),t})(Hl),CM=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),ad=(function(e){F(t,e);function t(r){var i=e.call(this,r)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new CM},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),u=(s-o)*.5,l=o+u,f=i.startAngle,h=i.endAngle,c=i.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var y=Math.cos(f),g=Math.sin(f),p=Math.cos(h),m=Math.sin(h);d?(r.moveTo(y*o+n,g*o+a),r.arc(y*l+n,g*l+a,u,-Math.PI+f,f,!c)):r.moveTo(y*s+n,g*s+a),r.arc(n,a,s,f,h,!c),r.arc(p*l+n,m*l+a,u,h-Math.PI*2,h-Math.PI,!c),o!==0&&r.arc(n,a,o,h,f,c)},t})(ft);function MM(e,t){t=t||{};var r=t.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Co(i,n,a);var s=e(o),u=n.distance!=null?n.distance:5,l=this.shape,f=l.cx,h=l.cy,c=l.r,v=l.r0,d=(c+v)/2,y=l.startAngle,g=l.endAngle,p=(y+g)/2,m=r?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,w=f+c*_(y),x=h+c*S(y),b="left",M="top";switch(s){case"startArc":w=f+(v-u)*_(p),x=h+(v-u)*S(p),b="center",M="top";break;case"insideStartArc":w=f+(v+u)*_(p),x=h+(v+u)*S(p),b="center",M="bottom";break;case"startAngle":w=f+d*_(y)+qa(y,u+m,!1),x=h+d*S(y)+Ka(y,u+m,!1),b="right",M="middle";break;case"insideStartAngle":w=f+d*_(y)+qa(y,-u+m,!1),x=h+d*S(y)+Ka(y,-u+m,!1),b="left",M="middle";break;case"middle":w=f+d*_(p),x=h+d*S(p),b="center",M="middle";break;case"endArc":w=f+(c+u)*_(p),x=h+(c+u)*S(p),b="center",M="bottom";break;case"insideEndArc":w=f+(c-u)*_(p),x=h+(c-u)*S(p),b="center",M="top";break;case"endAngle":w=f+d*_(g)+qa(g,u+m,!0),x=h+d*S(g)+Ka(g,u+m,!0),b="left",M="middle";break;case"insideEndAngle":w=f+d*_(g)+qa(g,-u+m,!0),x=h+d*S(g)+Ka(g,-u+m,!0),b="right",M="middle";break;default:return Co(i,n,a)}return i=i||{},i.x=w,i.y=x,i.align=b,i.verticalAlign=M,i}}function DM(e,t,r,i){if(ct(i)){e.setTextConfig({rotation:i});return}else if(N(t)){e.setTextConfig({rotation:0});return}var n=e.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,u,l=r(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=a;break;case"endAngle":case"insideEndAngle":u=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-u;l==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function qa(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Ka(e,t,r){return t*Math.cos(e)*(r?1:-1)}function AM(e,t,r){var i=e.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;N(i)||(i=[i,i,i,i]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Y(i,function(a){return mr(a,n)})}}var bu=Math.max,Tu=Math.min;function LM(e,t){var r=e.getArea&&e.getArea();if(cm(e,"cartesian2d")){var i=e.getBaseAxis();if(i.type!=="category"||!i.onBand){var n=t.getLayout("bandWidth");i.isHorizontal()?(r.x-=n,r.width+=n*2):(r.y-=n,r.height+=n*2)}}return r}var PM=(function(e){F(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},t.prototype.eachRendered=function(r){Af(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),u=this._data,l=r.coordinateSystem,f=l.getBaseAxis(),h;l.type==="cartesian2d"?h=f.isHorizontal():l.type==="polar"&&(h=f.dim==="angle");var c=r.isAnimationEnabled()?r:null,v=IM(r,l);v&&this._enableRealtimeSort(v,s,n);var d=r.get("clip",!0)||v,y=LM(l,s);o.removeClipPath();var g=r.get("roundCap",!0),p=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],w=this._backgroundEls,x=a&&a.isInitSort,b=a&&a.type==="changeAxisOrder";function M(C){var I=Qa[l.type](s,C);if(!I)return null;var L=FM(l,h,I);return L.useStyle(m.getItemStyle()),l.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[C]=L,L}s.diff(u).add(function(C){var I=s.getItemModel(C),L=Qa[l.type](s,C,I);if(L&&(p&&M(C),!(!s.hasValue(C)||!fd[l.type](L)))){var P=!1;d&&(P=od[l.type](y,L));var R=sd[l.type](r,s,C,L,h,c,f.model,!1,g);v&&(R.forceLabelAnimation=!0),hd(R,s,C,I,L,r,h,l.type==="polar"),x?R.attr({shape:L}):v?ud(v,c,R,L,C,h,!1,!1):oi(R,{shape:L},r,C),s.setItemGraphicEl(C,R),o.add(R),R.ignore=P}}).update(function(C,I){var L=s.getItemModel(C),P=Qa[l.type](s,C,L);if(P){if(p){var R=void 0;w.length===0?R=M(I):(R=w[I],R.useStyle(m.getItemStyle()),l.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[C]=R);var O=Qa[l.type](s,C),Z=pm(h,O,l);Qe(R,{shape:Z},c,C)}var B=u.getItemGraphicEl(I);if(!s.hasValue(C)||!fd[l.type](P)){o.remove(B);return}var X=!1;d&&(X=od[l.type](y,P),X&&o.remove(B));var W=B&&(B.type==="sector"&&g||B.type==="sausage"&&!g);if(W&&(B&&uo(B,r,I),B=null),B?tx(B):B=sd[l.type](r,s,C,P,h,c,f.model,!0,g),v&&(B.forceLabelAnimation=!0),b){var V=B.getTextContent();if(V){var H=If(V);H.prevValue!=null&&(H.prevValue=H.value)}}else hd(B,s,C,L,P,r,h,l.type==="polar");x?B.attr({shape:P}):v?ud(v,c,B,P,C,h,!0,b):Qe(B,{shape:P},r,C,null),s.setItemGraphicEl(C,B),B.ignore=X,o.add(B)}}).remove(function(C){var I=u.getItemGraphicEl(C);I&&uo(I,r,C)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Yt);D.removeAll();for(var A=0;A<S.length;++A)D.add(S[A]);o.add(D),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,i,n){this._clear(),cd(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),cd(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&SM(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},t.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),this._isFirstFrame=!1;else{var s=function(u){var l=i.getItemGraphicEl(u),f=l&&l.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var u=n(s);u=u??NaN,a.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Y(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,u=0,l=a.getOrdinalMeta().categories.length;u<l;++u){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(u)),h=f<0?Number.MIN_VALUE:i(r.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){uo(a,r,ut(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(dr),od={cartesian2d:function(e,t){var r=t.width<0?-1:1,i=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=e.x+e.width,a=e.y+e.height,o=bu(t.x,e.x),s=Tu(t.x+t.width,n),u=bu(t.y,e.y),l=Tu(t.y+t.height,a),f=s<o,h=l<u;return t.x=f&&o>n?s:o,t.y=h&&u>a?l:u,t.width=f?0:s-o,t.height=h?0:l-u,r<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var i=t.r;t.r=t.r0,t.r0=i}var n=Tu(t.r,e.r),a=bu(t.r0,e.r0);t.r=n,t.r0=a;var o=n-a<0;if(r<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},sd={cartesian2d:function(e,t,r,i,n,a,o,s,u){var l=new St({shape:E({},i),z2:1});if(l.__dataIndex=r,l.name="item",a){var f=l.shape,h=n?"height":"width";f[h]=0}return l},polar:function(e,t,r,i,n,a,o,s,u){var l=!n&&u?ad:Ki,f=new l({shape:i,z2:1});f.name="item";var h=dm(n);if(f.calculateTextPosition=MM(h,{isRoundCap:l===ad}),a){var c=f.shape,v=n?"r":"endAngle",d={};c[v]=n?i.r0:i.startAngle,d[v]=i[v],(s?Qe:oi)(f,{shape:d},a)}return f}};function IM(e,t){var r=e.get("realtimeSort",!0),i=t.getBaseAxis();if(r&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function ud(e,t,r,i,n,a,o,s){var u,l;a?(l={x:i.x,width:i.width},u={y:i.y,height:i.height}):(l={y:i.y,height:i.height},u={x:i.x,width:i.width}),s||(o?Qe:oi)(r,{shape:u},t,n,null);var f=t?e.baseAxis.model:null;(o?Qe:oi)(r,{shape:l},f,n)}function ld(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var RM=["x","y","width","height"],EM=["cx","cy","r","startAngle","endAngle"],fd={cartesian2d:function(e){return!ld(e,RM)},polar:function(e){return!ld(e,EM)}},Qa={cartesian2d:function(e,t,r){var i=e.getItemLayout(t);if(!i)return null;var n=r?OM(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(e,t,r){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function kM(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function dm(e){return(function(t){var r=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(e)}function hd(e,t,r,i,n,a,o,s){var u=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,h=AM(i.getModel("itemStyle"),f,!0);E(f,h),e.setShape(f)}}else{var l=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",l)}e.useStyle(u);var c=i.getShallow("cursor");c&&e.attr("cursor",c);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=mx(i);yg(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:gM(a.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var y=e.getTextContent();if(s&&y){var g=i.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,DM(e,g==="outside"?v:g,dm(o),i.get(["label","rotate"]))}bx(y,d,a.getRawValue(r),function(m){return yM(t,m)});var p=i.getModel(["emphasis"]);gS(e,p.get("focus"),p.get("blurScope"),p.get("disabled")),_S(e,i),kM(n)&&(e.style.fill="none",e.style.stroke="none",T(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function OM(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=e.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var BM=(function(){function e(){}return e})(),vd=(function(e){F(t,e);function t(r){var i=e.call(this,r)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new BM},t.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f<n.length;f+=3)u[a]=l,u[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],r.rect(s[0],s[1],u[0],u[1])},t})(ft);function cd(e,t,r,i){var n=e.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),u=e.getModel("backgroundStyle"),l=n.getLayout("largeBackgroundPoints");if(l){var f=new vd({shape:{points:l},incremental:!!i,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),t.add(f),r&&r.push(f)}var h=new vd({shape:{points:n.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(n.getVisual("style")),h.style.stroke=null,ut(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",dd),h.on("mousemove",dd)),r&&r.push(h)}var dd=Qf(function(e){var t=this,r=NM(t,e.offsetX,e.offsetY);ut(t).dataIndex=r>=0?r:null},30,!1);function NM(e,t,r){for(var i=e.baseDimIdx,n=1-i,a=e.shape.points,o=e.largeDataIndices,s=[],u=[],l=e.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(u[i]=l,u[n]=a[c+2],s[i]=a[c+i],s[n]=a[c+n],u[n]<0&&(s[n]+=u[n],u[n]=-u[n]),t>=s[0]&&t<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[f]}return-1}function pm(e,t,r){if(cm(r,"cartesian2d")){var i=t,n=r.getArea();return{x:e?i.x:n.x,y:e?n.y:i.y,width:e?i.width:n.width,height:e?n.height:i.height}}else{var n=r.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:e?n.r0:a.r0,r:e?n.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function FM(e,t,r){var i=e.type==="polar"?Ki:St;return new i({shape:pm(t,r,e),silent:!0,z2:0})}function rL(e){e.registerChartView(PM),e.registerSeriesModel(TM),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,bt(DC,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AC("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,bM("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var i=t.componentType||"series";r.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var gm={left:0,right:0,top:0,bottom:0},Yo=["25%","25%"],zM=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,i){var n=la(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&wr(r.outerBounds,n)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&wr(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:gm,outerBoundsContain:"all",outerBoundsClampWidth:Yo[0],outerBoundsClampHeight:Yo[1],backgroundColor:U.color.transparent,borderWidth:1,borderColor:U.color.neutral30},t})(ot),Gl=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",oe).models[0]},t.type="cartesian2dAxis",t})(ot);Ne(Gl,qC);var ym={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:U.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:U.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:U.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[U.color.backgroundTint,U.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:U.color.neutral00,borderColor:U.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},HM=at({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},ym),lh=at({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:U.color.axisMinorSplitLine,width:1}}},ym),GM=at({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},lh),VM=lt({logBase:10},lh);const WM={category:HM,value:lh,time:GM,log:VM};var UM={value:1,category:1,time:1,log:1},YM=null;function XM(){return YM}function pd(e,t,r,i){T(UM,function(n,a){var o=at(at({},WM[a],!0),i,!0),s=(function(u){F(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=Zn(this),v=c?la(f):{},d=h.getTheme();at(f,d.get(a+"Axis")),at(f,this.getDefaultOption()),f.type=gd(f),c&&wr(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Nl.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(f){return{breaks:[]}},l.type=t+"Axis."+a,l.defaultOption=o,l})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",gd)}function gd(e){return e.type||(e.data?"category":"value")}var $M=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Mt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e})(),Vl=["x","y"];function yd(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var ZM=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Vl,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!yd(r)||!yd(i))){var n=r.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),u=n[1]-n[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-n[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=na([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new J(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ue(n,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=u.toGlobalCoord(u.dataToCoord(o,i)),n},t.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),u=n.parse(r[0]),l=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return ue(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,u=Math.max(n[0],n[1])-o+r;return new J(a,o,s,u)},t})($M),qM=(function(e){F(t,e);function t(r,i,n,a,o){var s=e.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(lM),KM="expandAxisBreak",hr=Math.PI,QM=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],JM=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ea=yt(),mm=yt(),_m=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,i=t.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},e})();function jM(e,t,r,i){var n=r.axis,a=t.ensureRecord(r),o=[],s,u=fh(e.axisName)&&Xi(e.nameLocation);T(i,function(d){var y=br(d);if(!(!y||y.label.ignore)){o.push(y);var g=a.transGroup;u&&(g.transform?na(dn,g.transform):af(dn),y.transform&&Mn(dn,dn,y.transform),J.copy(Ja,y.localRect),Ja.applyTransform(dn),s?s.union(Ja):J.copy(s=new J(0,0,0,0),Ja))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,y){return Math.abs(d.label[l]-f)-Math.abs(y.label[l]-f)}),u&&s){var h=n.getExtent(),c=Math.min(h[0],h[1]),v=Math.max(h[0],h[1])-c;s.union(new J(c,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var dn=Ze(),Ja=new J(0,0,0,0),Sm=function(e,t,r,i,n,a){if(Xi(e.nameLocation)){var o=a.stOccupiedRect;o&&xm(cM({},o,a.transGroup.transform),i,n)}else wm(a.labelInfoList,a.dirVec,i,n)};function xm(e,t,r){var i=new st;uh(e,t,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&dM(t,i)}function wm(e,t,r,i){for(var n=st.dot(i,t)>=0,a=0,o=e.length;a<o;a++){var s=e[n?a:o-1-a];s.label.ignore||xm(s,r,i)}}var pr=(function(){function e(t,r,i,n){this.group=new Yt,this._axisModel=t,this._api=r,this._local={},this._shared=n||new _m(Sm),this._resetCfgDetermined(i)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=$(t.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=$(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:$(t.nameDirection,1),tickDirection:$(t.tickDirection,1),labelDirection:$(t.labelDirection,1),labelOffset:$(t.labelOffset,0),silent:$(t.silent,!0),axisName:n,nameLocation:Oi(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:fh(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Yt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new st(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(tD,function(n){t[n]&&eD[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},e.innerTextLayout=function(t,r,i){var n=Mp(r-t),a,o;return Mo(n)?(o=i>0?"top":"bottom",a="center"):Mo(n-hr)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<hr?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e})(),tD=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],eD={axisLine:function(e,t,r,i,n,a,o){var s=i.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var u=i.axis.getExtent(),l=a.transform,f=[u[0],0],h=[u[1],0],c=f[0]>h[0];l&&(ue(f,f,l),ue(h,h,l));var v=E({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())XM().buildAxisBreakLine(i,n,a,d);else{var y=new Sr(E({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));Yn(y.shape,y.style.lineWidth),y.anid="line",n.add(y)}var g=i.get(["axisLine","symbol"]);if(g!=null){var p=i.get(["axisLine","symbolSize"]);z(g)&&(g=[g,g]),(z(p)||ct(p))&&(p=[p,p]);var m=iT(i.get(["axisLine","symbolOffset"])||0,p),_=p[0],S=p[1];T([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(w,x){if(g[x]!=="none"&&g[x]!=null){var b=Jf(g[x],-_/2,-S/2,_,S,v.stroke,!0),M=w.r+w.offset,D=c?h:f;b.attr({rotation:w.rotate,x:D[0]+M*Math.cos(e.rotation),y:D[1]-M*Math.sin(e.rotation),silent:!0,z2:11}),n.add(b)}})}}},axisTickLabelEstimate:function(e,t,r,i,n,a,o,s){var u=_d(t,n,s);u&&md(e,t,r,i,n,a,o,me.estimate)},axisTickLabelDetermine:function(e,t,r,i,n,a,o,s){var u=_d(t,n,s);u&&md(e,t,r,i,n,a,o,me.determine);var l=aD(e,n,a,i);nD(e,t.labelLayoutList,l),oD(e,n,a,i,e.tickDirection)},axisName:function(e,t,r,i,n,a,o,s){var u=r.ensureRecord(i);t.nameEl&&(n.remove(t.nameEl),t.nameEl=u.nameLayout=u.nameLocation=null);var l=e.axisName;if(fh(l)){var f=e.nameLocation,h=e.nameDirection,c=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),y=i.axis.inverse?-1:1,g=new st(0,0),p=new st(0,0);f==="start"?(g.x=d[0]-y*v,p.x=-y):f==="end"?(g.x=d[1]+y*v,p.x=y):(g.x=(d[0]+d[1])/2,g.y=e.labelOffset+h*v,p.y=h);var m=Ze();p.transform(of(m,m,e.rotation));var _=i.get("nameRotate");_!=null&&(_=_*hr/180);var S,w;Xi(f)?S=pr.innerTextLayout(e.rotation,_??e.rotation,h):(S=rD(e.rotation,f,_||0,d),w=e.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(S.rotation)),!isFinite(w)&&(w=null)));var x=c.getFont(),b=i.get("nameTruncate",!0)||{},M=b.ellipsis,D=yo(e.raw.nameTruncateMaxWidth,b.maxWidth,w),A=s.nameMarginLevel||0,C=new Kt({x:g.x,y:g.y,rotation:S.rotation,silent:pr.isLabelSilent(i),style:Wi(c,{text:l,font:x,overflow:"truncate",width:D,ellipsis:M,fill:c.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:c.get("align")||S.textAlign,verticalAlign:c.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(os({el:C,componentModel:i,itemName:l}),C.__fullText=l,C.anid="name",i.get("triggerEvent")){var I=pr.makeAxisEventDataBase(i);I.targetType="axisName",I.name=l,ut(C).eventData=I}a.add(C),C.updateTransform(),t.nameEl=C;var L=u.nameLayout=br({label:C,priority:C.z2,defaultAttr:{ignore:C.ignore},marginDefault:Xi(f)?QM[A]:JM[A]});if(u.nameLocation=f,n.add(C),C.decomposeTransform(),e.shouldNameMoveOverlap&&L){var P=r.ensureRecord(i);r.resolveAxisNameOverlap(e,r,i,L,p,P)}}}};function md(e,t,r,i,n,a,o,s){Tm(t)||sD(e,t,n,s,i,o);var u=t.labelLayoutList;uD(e,i,u,a),e.rotation;var l=e.optionHideOverlap;iD(i,u,l),l&&pM(Mt(u,function(f){return f&&!f.label.ignore})),jM(e,r,i,u)}function rD(e,t,r,i){var n=Mp(r-e),a,o,s=i[0]>i[1],u=t==="start"&&!s||t!=="start"&&s;return Mo(n-hr/2)?(o=u?"bottom":"top",a="center"):Mo(n-hr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",n<hr*1.5&&n>hr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function iD(e,t,r){if(rm(e.axis))return;function i(s,u,l){var f=br(t[u]),h=br(t[l]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){Tn(f.label);return}if(h.suggestIgnore){Tn(h.label);return}var c=.1;if(!r){var v=[0,0,0,0];f=id({marginForce:v},f),h=id({marginForce:v},h)}uh(f,h,null,{touchThreshold:c})&&Tn(s?h.label:f.label)}}var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]),o=t.length;i(n,0,1),i(a,o-1,o-2)}function nD(e,t,r){e.showMinorTicks||T(t,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=mm(a),s=ea(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Tn(a);return}}})}function Tn(e){e&&(e.ignore=!0)}function bm(e,t,r,i,n){for(var a=[],o=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,t&&(ue(o,o,t),ue(s,s,t));var f=new Sr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Yn(f.shape,f.style.lineWidth),f.anid=n+"_"+e[u].tickValue,a.push(f);var h=mm(f);h.onBand=!!e[u].onBand,h.tickValue=e[u].tickValue}return a}function aD(e,t,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=e.tickDirection*a.get("length"),l=n.getTicksCoords(),f=bm(l,r.transform,u,lt(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function oD(e,t,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=n*o.get("length"),f=lt(u.getLineStyle(),lt(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var c=bm(s[h],r.transform,l,f,"minorticks_"+h),v=0;v<c.length;v++)t.add(c[v])}}function _d(e,t,r){if(Tm(e)){var i=e.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(t.remove(e.labelGroup),Wl(e,null,null,null))}return!0}function sD(e,t,r,i,n,a){var o=n.axis,s=yo(e.raw.axisLabelShow,n.get(["axisLabel","show"])),u=new Yt;r.add(u);var l=Vo(i);if(!s||o.scale.isBlank()){Wl(t,[],u,l);return}var f=n.getModel("axisLabel"),h=o.getViewLabels(l),c=(yo(e.raw.labelRotate,f.get("rotate"))||0)*hr/180,v=pr.innerTextLayout(e.rotation,c,e.labelDirection),d=n.getCategories&&n.getCategories(!0),y=[],g=n.get("triggerEvent"),p=1/0,m=-1/0;T(h,function(S,w){var x,b=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,M=S.formattedLabel,D=S.rawLabel,A=f;if(d&&d[b]){var C=d[b];G(C)&&C.textStyle&&(A=new pt(C.textStyle,f,n.ecModel))}var I=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||v.textAlign,P=$(A.getShallow("alignMinLabel",!0),L),R=$(A.getShallow("alignMaxLabel",!0),L),O=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,Z=$(A.getShallow("verticalAlignMinLabel",!0),O),B=$(A.getShallow("verticalAlignMaxLabel",!0),O),X=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);p=Math.min(p,X),m=Math.max(m,X);var W=new Kt({x:0,y:0,rotation:0,silent:pr.isLabelSilent(n),z2:X,style:Wi(A,{text:M,align:w===0?P:w===h.length-1?R:L,verticalAlign:w===0?Z:w===h.length-1?B:O,fill:K(I)?I(o.type==="category"?D:o.type==="value"?b+"":b,w):I})});W.anid="label_"+b;var V=ea(W);if(V.break=S.break,V.tickValue=b,V.layoutRotation=v.rotation,os({el:W,componentModel:n,itemName:M,formatterParamsExtra:{isTruncated:function(){return W.isTruncated},value:D,tickIndex:w}}),g){var H=pr.makeAxisEventDataBase(n);H.targetType="axisLabel",H.value=D,H.tickIndex=w,S.break&&(H.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(H.dataIndex=b),ut(W).eventData=H,S.break&&fD(n,a,W,S.break)}y.push(W),u.add(W)});var _=Y(y,function(S){return{label:S,priority:ea(S).break?S.z2+(m-p+1):S.z2,defaultAttr:{ignore:S.ignore}}});Wl(t,_,u,l)}function Tm(e){return!!e.labelLayoutList}function Wl(e,t,r,i){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=i}function uD(e,t,r,i){var n=t.get(["axisLabel","margin"]);T(r,function(a,o){var s=br(a);if(s){var u=s.label,l=ea(u);s.suggestIgnore=u.ignore,u.ignore=!1,ju(We,lD),We.x=t.axis.dataToCoord(l.tickValue),We.y=e.labelOffset+e.labelDirection*n,We.rotation=l.layoutRotation,i.add(We),We.updateTransform(),i.remove(We),We.decomposeTransform(),ju(u,We),u.markRedraw(),Uo(s,!0),br(s)}})}var We=new St,lD=new St;function fh(e){return!!e}function fD(e,t,r,i){r.on("click",function(n){var a={type:KM,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(a)})}function Xo(e,t,r){r=r||{};var i=t.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,u=i.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,c=u==="x"?[l[2]-h,l[3]+h]:[l[0]-h,l[1]+h];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));c[f.onZero]=Math.max(Math.min(v,c[1]),c[0])}n.position=[u==="y"?c[f[s]]:l[0],u==="x"?c[f[s]]:l[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=a?c[f[o]]-c[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),yo(r.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var y=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-y:y,n.z2=1,n}function hD(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Sd(e){var t={xAxisModel:null,yAxisModel:null};return T(t,function(r,i){var n=i.replace(/Model$/,""),a=e.getReferringComponents(n,oe).models[0];t[i]=a}),t}function vD(e,t,r,i,n,a){for(var o=Xo(e,r),s=!1,u=!1,l=0;l<t.length;l++)Ol(t[l].getOtherAxis(r.axis).scale)&&(s=u=!0,r.axis.type==="category"&&r.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new pr(r,i,o,n)}function cD(e,t,r){var i=Xo(t,r);e.updateCfg(i)}function dD(e,t,r){var i=Yi.prototype,n=i.getTicks.call(r),a=i.getTicks.call(r,{expandToNicedExtent:!0}),o=n.length-1,s=i.getInterval.call(r),u=em(e,t),l=u.extent,f=u.fixMin,h=u.fixMax;e.type==="log"&&(l=Bl(e.base,l,!0)),e.setBreaksFromOption(im(t)),e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=i.getExtent.call(e);f&&(l[0]=c[0]),h&&(l[1]=c[1]);var v=i.getInterval.call(e),d=l[0],y=l[1];if(f&&h)v=(y-d)/o;else if(f)for(y=l[0]+v*o;y<l[1]&&isFinite(y)&&isFinite(l[1]);)v=_u(v),y=l[0]+v*o;else if(h)for(d=l[1]-v*o;d>l[0]&&isFinite(d)&&isFinite(l[0]);)v=_u(v),d=l[1]-v*o;else{var g=e.getTicks().length-1;g>o&&(v=_u(v));var p=v*o;y=Math.ceil(l[1]/v)*v,d=Lt(y-p),d<0&&l[0]>=0?(d=0,y=Lt(p)):y>0&&l[1]<=0&&(y=0,d=-Lt(p))}var m=(n[0].value-a[0].value)/s,_=(n[o].value-a[o].value)/s;i.setExtent.call(e,d+v*m,y+v*_),i.setInterval.call(e,v),(m||_)&&i.setNiceExtent.call(e,d+v,y-v)}var xd=[[3,1],[0,2]],pD=(function(){function e(t,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Vl,this._initCartesian(t,r,i),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,u=dt(o),l=u.length;if(l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,y=v.scale;Ol(y)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Jc(y,d),Ol(y)&&(s=v))}f.length&&(s||(s=f.pop(),Jc(s.scale,s.model)),T(f,function(g){dD(g.scale,g.model,s.scale)}))}}n(i.x),n(i.y);var a={};T(i.x,function(o){wd(i,"y",o,a)}),T(i.y,function(o){wd(i,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,i){var n=Uf(t,r),a=this._rect=xr(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,u=t.get("containLabel");if(Cm(o,a),!i){var l=yD(a,s,o,u,r),f=void 0;if(u)f=Cd(a.clone(),"axisLabel",null,a,o,l,n);else{var h=mD(t,a,n),c=h.outerBoundsRect,v=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;c&&(f=Cd(c,v,d,a,o,l,n))}Mm(a,o,me.determine,null,f,n)}T(this._coordsList,function(y){y.calcAffineTransform()})},e.prototype.getAxis=function(t,r){var i=this._axesMap[t];if(i!=null)return i[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var i="x"+t+"y"+r;return this._coordsMap[i]}G(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===r)return a[n]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},e.prototype.convertFromPixel=function(t,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",oe).models[0],n=t.yAxisModel||r&&r.getReferringComponents("yAxis",oe).models[0],a=t.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,it(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)u=this.getAxis("x",i.componentIndex);else if(n)u=this.getAxis("y",n.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",l("x"),this),r.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,h){T(s.y,function(c,v){var d="x"+h+"y"+v,y=new ZM(d);y.master=n,y.model=t,n._coordsMap[d]=y,n._coordsList.push(y),y.addAxis(f),y.addAxis(c)})});function l(f){return function(h,c){if(Cu(h,t)){var v=h.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 qM(f,XC(h),[0,0],h.get("type"),v),y=d.type==="category";d.onBand=y&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,u[f]++}}}},e.prototype._updateScale=function(t,r){T(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var a=n.model.get("categorySortInfo");n.scale.setSortInfo(a)}}),t.eachSeries(function(n){if(hD(n)){var a=Sd(n),o=a.xAxisModel,s=a.yAxisModel;if(!Cu(o,r)||!Cu(s,r))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),l=n.getData(),f=u.getAxis("x"),h=u.getAxis("y");i(l,f),i(l,h)}},this);function i(n,a){T(ZC(n,a.dim),function(o){a.scale.unionExtentFromData(n,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],i=[];return T(this.getCartesians(),function(n){var a=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);it(r,a)<0&&r.push(a),it(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},e.create=function(t,r){var i=[];return t.eachComponent("grid",function(n,a){var o=new e(n,t,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(n){Jx({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=Sd(n),s=o.xAxisModel,u=o.yAxisModel,l=s.getCoordSysModel(),f=l.coordinateSystem;return f.getCartesian(s.componentIndex,u.componentIndex)}}),i},e.dimensions=Vl,e})();function Cu(e,t){return e.getCoordSysModel()===t}function wd(e,t,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)bd(n[u])&&(a=n[u]);else for(var l in n)if(n.hasOwnProperty(l)&&bd(n[l])&&!i[f(n[l])]){a=n[l];break}a&&(i[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function bd(e){return e&&e.type!=="category"&&e.type!=="time"&&$C(e)}function gD(e,t){var r=e.getExtent(),i=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(n){return n+t}:function(n){return i-n+t},e.toLocalCoord=e.dim==="x"?function(n){return n-t}:function(n){return i-n+t}}function Cm(e,t){T(e.x,function(r){return Td(r,t.x,t.width)}),T(e.y,function(r){return Td(r,t.y,t.height)})}function Td(e,t,r){var i=[0,r],n=e.inverse?1:0;e.setExtent(i[n],i[1-n]),gD(e,t)}function Cd(e,t,r,i,n,a,o){Mm(i,n,me.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),f(i,0,NaN),f(i,1,NaN);var u=i0(s,function(c){return c>0})==null;return Io(i,s,!0,!0,r),Cm(n,i),u;function l(c){T(n[ur[c]],function(v){if(ta(v.model)){var d=a.ensureRecord(v.model),y=d.labelInfoList;if(y)for(var g=0;g<y.length;g++){var p=y[g],m=v.scale.normalize(ea(p.label).tickValue);m=c===1?1-m:m,f(p.rect,c,m),f(p.rect,1-c,NaN)}var _=d.nameLayout;if(_){var m=Xi(d.nameLocation)?.5:NaN;f(_.rect,c,m),f(_.rect,1-c,NaN)}}})}function f(c,v,d){var y=e[ur[v]]-c[ur[v]],g=c[Vi[v]]+c[ur[v]]-(e[Vi[v]]+e[ur[v]]);y=h(y,1-d),g=h(g,d);var p=xd[v][0],m=xd[v][1];s[p]=qt(s[p],y),s[m]=qt(s[m],g)}function h(c,v){return c>0&&!zn(v)&&v>1e-4&&(c/=v),c}}function yD(e,t,r,i,n){var a=new _m(_D);return T(r,function(o){return T(o,function(s){if(ta(s.model)){var u=!i;s.axisBuilder=vD(e,t,s.model,n,a,u)}})}),a}function Mm(e,t,r,i,n,a){var o=r===me.determine;T(t,function(l){return T(l,function(f){ta(f.model)&&(cD(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[ur[1-l]]=e[Vi[l]]<=a.refContainer[Vi[l]]*.5?0:1-l===1?2:1}T(t,function(l,f){return T(l,function(h){ta(h.model)&&((i==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function mD(e,t,r){var i,n=e.get("outerBoundsMode",!0);n==="same"?i=t.clone():(n==null||n==="auto")&&(i=xr(e.get("outerBounds",!0)||gm,r.refContainer));var a=e.get("outerBoundsContain",!0),o;a==null||a==="auto"||it(["all","axisLabel"],a)<0?o="all":o=a;var s=[tl($(e.get("outerBoundsClampWidth",!0),Yo[0]),t.width),tl($(e.get("outerBoundsClampHeight",!0),Yo[1]),t.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var _D=function(e,t,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";Sm(e,t,r,i,n,a),Xi(e.nameLocation)||T(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&wm(s.labelInfoList,s.dirVec,i,n)})};function SD(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return xD(r,e,t),r.seriesInvolved&&bD(r,e),r}function xD(e,t,r){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];T(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=ra(s.model),l=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",i);if(T(s.getAxes(),bt(y,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&T(d.baseAxes,bt(y,v?"cross":!0,c)),v&&T(d.otherAxes,bt(y,"cross",!1))}function y(g,p,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Ul(_))){p==null&&(p=_.get("triggerTooltip")),_=g?wD(m,h,n,t,g,p):_;var w=_.get("snap"),x=_.get("triggerEmphasis"),b=ra(m.model),M=p||w||m.type==="category",D=e.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:p,triggerEmphasis:x,involveSeries:M,snap:w,useHandle:Ul(_),seriesModels:[],linkGroup:null};l[b]=D,e.seriesInvolved=e.seriesInvolved||M;var A=TD(a,m);if(A!=null){var C=o[A]||(o[A]={axesInfo:{}});C.axesInfo[b]=D,C.mapper=a[A].mapper,D.linkGroup=C}}}})}function wD(e,t,r,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};T(s,function(c){u[c]=et(o.get(c))}),u.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),n==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&<(l,h.textStyle)}}return e.model.getModel("axisPointer",new pt(u,r,i))}function bD(e,t){t.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||T(e.coordSysAxesInfo[ra(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function TD(e,t){for(var r=t.model,i=t.dim,n=0;n<e.length;n++){var a=e[n]||{};if(Mu(a[i+"AxisId"],r.id)||Mu(a[i+"AxisIndex"],r.componentIndex)||Mu(a[i+"AxisName"],r.name))return n}}function Mu(e,t){return e==="all"||N(e)&&it(e,t)>=0||e===t}function CD(e){var t=hh(e);if(t){var r=t.axisPointerModel,i=t.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=Ul(r);a==null&&(n.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function hh(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ra(e)]}function MD(e){var t=hh(e);return t&&t.axisPointerModel}function Ul(e){return!!e.get(["handle","show"])}function ra(e){return e.type+"||"+e.id}var Md={},Dm=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n,a){this.axisPointerClass&&CD(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},t.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},t.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(r,i){this._disposeAxisPointer(i),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=MD(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,i){Md[r]=i},t.getAxisPointerClass=function(r){return r&&Md[r]},t.type="axis",t})(Be),Yl=yt();function DD(e,t,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=i.coordinateSystem.getRect(),l=n.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var f=s.length,h=Yl(e).splitAreaColors,c=j(),v=0;if(h)for(var d=0;d<l.length;d++){var y=h.get(l[d].tickValue);if(y!=null){v=(y+(f-1)*d)%f;break}}var g=n.toGlobalCoord(l[0].coord),p=o.getAreaStyle();s=N(s)?s:[s];for(var d=1;d<l.length;d++){var m=n.toGlobalCoord(l[d].coord),_=void 0,S=void 0,w=void 0,x=void 0;n.isHorizontal()?(_=g,S=u.y,w=m-_,x=u.height,g=_+w):(_=u.x,S=g,w=u.width,x=m-S,g=S+x);var b=l[d-1].tickValue;b!=null&&c.set(b,v),t.add(new St({anid:b!=null?"area_"+b:null,shape:{x:_,y:S,width:w,height:x},style:lt({fill:s[v]},p),autoBatch:!0,silent:!0})),v=(v+1)%f}Yl(e).splitAreaColors=c}}}function AD(e){Yl(e).splitAreaColors=null}var LD=["splitArea","splitLine","minorSplitLine","breakArea"],Am=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Yt,this.group.add(this._axisGroup),!!ta(r)){this._axisGroup.add(r.axis.axisBuilder.group),T(LD,function(u){r.get([u,"show"])&&PD[u](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||vg(o,this._axisGroup,r),e.prototype.render.call(this,r,i,n,a)}},t.prototype.remove=function(){AD(this)},t.type="cartesianAxis",t})(Dm),PD={splitLine:function(e,t,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),l=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=N(u)?u:[u];for(var h=i.coordinateSystem.getRect(),c=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),y=[],g=[],p=s.getLineStyle(),m=0;m<d.length;m++){var _=a.toGlobalCoord(d[m].coord);if(!(m===0&&!l||m===d.length-1&&!f)){var S=d[m].tickValue;c?(y[0]=_,y[1]=h.y,g[0]=_,g[1]=h.y+h.height):(y[0]=h.x,y[1]=_,g[0]=h.x+h.width,g[1]=_);var w=v++%u.length,x=new Sr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:y[0],y1:y[1],x2:g[0],y2:g[1]},style:lt({stroke:u[w]},p),silent:!0});Yn(x.shape,p.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=i.coordinateSystem.getRect(),l=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],c=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var y=0;y<f[d].length;y++){var g=a.toGlobalCoord(f[d][y].coord);l?(h[0]=g,h[1]=u.y,c[0]=g,c[1]=u.y+u.height):(h[0]=u.x,h[1]=g,c[0]=u.x+u.width,c[1]=g);var p=new Sr({anid:"minor_line_"+f[d][y].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:v,silent:!0});Yn(p.shape,v.lineWidth),t.add(p)}},splitArea:function(e,t,r,i,n){DD(e,t,r,i)},breakArea:function(e,t,r,i,n){r.axis.scale}},Lm=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t})(Am),ID=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Lm.type,r}return t.type="yAxis",t})(Am),RD=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new St({shape:r.coordinateSystem.getRect(),style:lt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Be),Dd={offset:0};function ED(e){e.registerComponentView(RD),e.registerComponentModel(zM),e.registerCoordinateSystem("cartesian2d",pD),pd(e,"x",Gl,Dd),pd(e,"y",Gl,Dd),e.registerComponentView(Lm),e.registerComponentView(ID),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Kr=yt(),Ad=et,Du=vt,kD=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,r,i);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Yt,this.createPointerEl(s,l,t,r),this.createLabelEl(s,l,t,r),i.getZr().add(s);else{var c=bt(Ld,r,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,r)}Id(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var i=r.get("animation"),n=t.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var u=hh(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return i===!0},e.prototype.makeElOption=function(t,r,i,n,a){},e.prototype.createPointerEl=function(t,r,i,n){var a=r.pointer;if(a){var o=Kr(t).pointerEl=new gx[a.type](Ad(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,i,n){if(r.label){var a=Kr(t).labelEl=new Kt(Ad(r.label));t.add(a),Pd(a,n)}},e.prototype.updatePointerEl=function(t,r,i){var n=Kr(t).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,i,n){var a=Kr(t).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),Pd(a,n))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Df(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){ip(l.event)},onmousedown:Du(this._onHandleDragMove,this,0,0),drift:Du(this._onHandleDragMove,this),ondragend:Du(this._onHandleDragEnd,this)}),i.add(n)),Id(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");N(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,uy(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Ld(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Au(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Au(i),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Au(n)),Kr(i).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Tl(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,i){return i=i||0,{x:t[i],y:t[1-i],width:r[i],height:r[1-i]}},e})();function Ld(e,t,r,i){Pm(Kr(r).lastProp,i)||(Kr(r).lastProp=i,t?Qe(r,i,e):(r.stopAnimation(),r.attr(i)))}function Pm(e,t){if(G(e)&&G(t)){var r=!0;return T(t,function(i,n){r=r&&Pm(e[n],i)}),!!r}else return e===t}function Pd(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Au(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Id(e,t,r){var i=t.get("z"),n=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}function OD(e){var t=e.get("type"),r=e.getModel(t+"Style"),i;return t==="line"?(i=r.getLineStyle(),i.fill=null):t==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function BD(e,t,r,i,n){var a=r.get("value"),o=Im(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=fs(s.get("padding")||0),l=s.getFont(),f=wp(o,l),h=n.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var y=n.verticalAlign;y==="bottom"&&(h[1]-=v),y==="middle"&&(h[1]-=v/2),ND(h,c,v,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:Wi(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function ND(e,t,r,i){var n=i.getWidth(),a=i.getHeight();e[0]=Math.min(e[0]+t,n)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Im(e,t,r,i,n){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:n.precision}),o=n.formatter;if(o){var s={value:Go(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(i,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),z(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function Rm(e,t,r){var i=Ze();return of(i,i,r.rotation),zu(i,i,r.position),Mf([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function FD(e,t,r,i,n,a){var o=pr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),BD(t,i,n,a,{position:Rm(i.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function zD(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function HD(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var GD=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,u=s.grid,l=a.get("type"),f=Rd(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!=="none"){var c=OD(a),v=VD[l](s,h,f);v.style=c,r.graphicKey=v.type,r.pointer=v}var d=Xo(u.getRect(),n);FD(i,r,d,n,a,o)},t.prototype.getHandleTransform=function(r,i,n){var a=Xo(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Rm(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Rd(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=i[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t})(kD);function Rd(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var VD={line:function(e,t,r){var i=zD([t,r[0]],[t,r[1]],Ed(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,r){var i=Math.max(1,e.getBandWidth()),n=r[1]-r[0];return{type:"Rect",shape:HD([t-i/2,r[0]],[i,n],Ed(e))}}};function Ed(e){return e.dim==="x"?0:1}var WD=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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:U.color.border,width:1,type:"dashed"},shadowStyle:{color:U.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:U.color.neutral00,padding:[5,7,5,7],backgroundColor:U.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:U.color.accent40,throttle:40}},t})(ot),$e=yt(),UD=T;function Em(e,t,r){if(!q.node){var i=t.getZr();$e(i).records||($e(i).records={}),YD(i,t);var n=$e(i).records[e]||($e(i).records[e]={});n.handler=r}}function YD(e,t){if($e(e).initialized)return;$e(e).initialized=!0,r("click",bt(kd,"click")),r("mousemove",bt(kd,"mousemove")),r("globalout",$D);function r(i,n){e.on(i,function(a){var o=ZD(t);UD($e(e).records,function(s){s&&n(s,a,o.dispatchAction)}),XD(o.pendings,t)})}}function XD(e,t){var r=e.showTip.length,i=e.hideTip.length,n;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function $D(e,t,r){e.handler("leave",null,r)}function kd(e,t,r,i){t.handler(e,r,i)}function ZD(e){var t={showTip:[],hideTip:[]},r=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=r,e.dispatchAction(i))};return{dispatchAction:r,pendings:t}}function Xl(e,t){if(!q.node){var r=t.getZr(),i=($e(r).records||{})[e];i&&($e(r).records[e]=null)}}var qD=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Em("axisPointer",n,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(r,i){Xl("axisPointer",i)},t.prototype.dispose=function(r,i){Xl("axisPointer",i)},t.type="axisPointer",t})(Be);function km(e,t){var r=[],i=e.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=oa(a,e);if(o==null||o<0||N(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),y=[];y[v]=a.get(d,o),y[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(y)||[]}else r=u.dataToPoint(a.getValues(Y(u.dimensions,function(p){return a.mapDimension(p)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Od=yt();function KD(e,t,r){var i=e.currTrigger,n=[e.x,e.y],a=e,o=e.dispatchAction||vt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){go(n)&&(n=km({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=go(n),l=a.axesInfo,f=s.axesInfo,h=i==="leave"||go(n),c={},v={},d={list:[],map:{}},y={showPointer:bt(JD,v),showTooltip:bt(jD,d)};T(s.coordSysMap,function(p,m){var _=u||p.containPoint(n);T(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=iA(l,S);if(!h&&_&&(!l||b)){var M=b&&b.value;M==null&&!u&&(M=x.pointToData(n)),M!=null&&Bd(S,M,y,!1,c)}})});var g={};return T(f,function(p,m){var _=p.linkGroup;_&&!v[m]&&T(_.axesInfo,function(S,w){var x=v[w];if(S!==p&&x){var b=x.value;_.mapper&&(b=p.axis.scale.parse(_.mapper(b,Nd(S),Nd(p)))),g[p.key]=b}})}),T(g,function(p,m){Bd(f[m],p,y,!0,c)}),tA(v,f,c),eA(d,n,e,o),rA(f,o,r),c}}function Bd(e,t,r,i,n){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=QD(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&E(n,s[0]),!i&&e.snap&&a.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function QD(e,t){var r=t.axis,i=r.dim,n=e,a=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(i),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,e,r);c=v.dataIndices,h=v.nestestValue}else{if(c=u.indicesOfNearest(i,f[0],e,r.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=e-h,y=Math.abs(d);y<=o&&((y<o||d>=0&&s<0)&&(o=y,s=d,n=h,a.length=0),T(c,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function JD(e,t,r,i){e[t.key]={value:r,payloadBatch:i}}function jD(e,t,r,i){var n=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=ra(u),f=e.map[l];f||(f=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function tA(e,t,r){var i=r.axesInfo=[];T(t,function(n,a){var o=n.axisPointerModel.option,s=e[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function eA(e,t,r,i){if(go(t)||!e.list.length){i({type:"hideTip"});return}var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}function rA(e,t,r){var i=r.getZr(),n="axisPointerLastHighlights",a=Od(i)[n]||{},o=Od(i)[n]={};T(e,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&T(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];T(a,function(l,f){!o[f]&&u.push(l)}),T(o,function(l,f){!a[f]&&s.push(l)}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function iA(e,t){for(var r=0;r<(e||[]).length;r++){var i=e[r];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function Nd(e){var t=e.axis.model,r={},i=r.axisDim=e.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=t.componentIndex,r.axisName=r[i+"AxisName"]=t.name,r.axisId=r[i+"AxisId"]=t.id,r}function go(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Om(e){Dm.registerAxisPointerClass("CartesianAxisPointer",GD),e.registerComponentModel(WD),e.registerComponentView(qD),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!N(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=SD(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},KD)}function iL(e){si(ED),si(Om)}function nA(e,t){var r=fs(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var n=new St({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var aA=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:U.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:U.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:U.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:U.color.tertiary,fontSize:14}},t})(ot);function Bm(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Nm(e){if(q.domSupported){for(var t=document.documentElement.style,r=0,i=e.length;r<i;r++)if(e[r]in t)return e[r]}}var Fm=Nm(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),oA=Nm(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function zm(e,t){if(!e)return t;t=Ig(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function sA(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var uA=zm(oA,"transition"),vh=zm(Fm,"transform"),lA="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(q.transform3dSupported?"will-change:transform;":"");function fA(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function hA(e,t,r){if(!z(r)||r==="inside")return"";var i=e.get("backgroundColor"),n=e.get("borderWidth");t=$n(t);var a=fA(r),o=Math.max(Math.round(n)*1.5,6),s="",u=vh+":",l;it(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+n+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+y.join("")+'"></div>'}function vA(e,t,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+e/2+"s "+i,a="opacity"+n+",visibility"+n),t||(n=" "+e+"s "+i,a+=(a.length?",":"")+(q.transformSupported?""+vh+n:",left"+n+",top"+n)),uA+":"+a}function Fd(e,t,r){var i=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!q.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=q.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+vh+":"+o+";":[["top",0],["left",0],[Fm,o]]}function cA(e){var t=[],r=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var n=$(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+n+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),T(["decoration","align"],function(l){var f=e.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function dA(e,t,r,i){var n=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),u=e.get("shadowColor"),l=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),h=e.getModel("textStyle"),c=ay(e,"html"),v=l+"px "+f+"px "+s+"px "+u;return n.push("box-shadow:"+v),t&&a>0&&n.push(vA(a,r,i)),o&&n.push("background-color:"+o),T(["width","color","radius"],function(d){var y="border-"+d,g=Ig(y),p=e.get(g);p!=null&&n.push(y+":"+p+(d==="color"?"":"px"))}),n.push(cA(h)),c!=null&&n.push("padding:"+fs(c).join("px ")+"px"),n.join(";")+";"}function zd(e,t,r,i,n){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&S0(e,o,r,i,n)}else{e[0]=i,e[1]=n;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var pA=(function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,q.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=r.appendTo,o=a&&(z(a)?document.querySelector(a):Fn(a)?a:K(a)&&a(t.getDom()));zd(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=n.handler,f=n.painter.getViewportRoot();te(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),i=sA(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=lA+dA(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Fd(a[0],a[1],!0)+("border-color:"+$n(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(z(a)&&i.get("trigger")==="item"&&!Bm(i)&&(s=hA(i,n,a)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var u=0;u<t.length;u++)Fn(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var i=this._styleCoord;if(zd(i,this._zr,this._container,t,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=Fd(i[0],i[1]);T(a,function(o){n[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",q.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(vt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;x0(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},e})(),gA=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Gd(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,i,n,a){var o=this;G(t)&&Ht(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Kt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:ay(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=i.get(l)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),i=Hd(t.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},e.prototype.moveTo=function(t,r){var i=this.el;if(i){var n=this._styleCoord;Gd(n,this._zr,t,r),t=n[0],r=n[1];var a=i.style,o=sr(a.borderWidth||0),s=Hd(a);i.x=t+o+s.left,i.y=r+o+s.top,i.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(vt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function sr(e){return Math.max(0,e)}function Hd(e){var t=sr(e.shadowBlur||0),r=sr(e.shadowOffsetX||0),i=sr(e.shadowOffsetY||0);return{left:sr(t-r),right:sr(t+r),top:sr(t-i),bottom:sr(t+i)}}function Gd(e,t,r,i){e[0]=r,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var yA=new St({shape:{x:-1,y:-1,width:2,height:2}}),mA=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,i){if(!(q.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=j_(n.get("renderMode"));this._tooltipContent=a==="richText"?new gA(i):new pA(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(r,i,n){if(!(q.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?uy(this,"_updatePosition",50,"fixRate"):Tl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");Em("itemTooltip",this._api,vt(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||q.node||!n.getDom())){var o=Vd(a,n);this._ticket="";var s=a.dataByCoordSys,u=wA(a,i,n);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=yA;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var h=km(a,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Vd(a,n))},t.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=i.getSeriesByIndex(o);if(l){var f=l.getData(),h=pn([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=ut(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;bn(n,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(ut(f).dataIndex!=null?u=f:ut(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(r,u,i):l?this._showComponentItemTooltip(r,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=vt(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=pn([i.tooltipOption],a),u=this._renderMode,l=[],f=Kn("section",{blocks:[],noHeader:!0}),h=[],c=new uu;T(r,function(m){T(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=Im(w,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),b=Kn("section",{header:x,noHeader:!Pe(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),T(_.seriesDataIndices,function(M){var D=n.getSeriesByIndex(M.seriesIndex),A=M.dataIndexInside,C=D.getDataParams(A);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=Go(S.axis,{value:w}),C.axisValueLabel=x,C.marker=c.makeTooltipMarker("item",$n(C.color),u);var I=uc(D.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=pn([D],a).get("valueFormatter");b.blocks.push(P?E({valueFormatter:P},L):L)}I.text&&h.push(I.text),l.push(C)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),y=cc(f,c,u,d,n.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var g=u==="richText"?`
|
|
15
|
+
|
|
16
|
+
`:"<br/>",p=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,p,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=ut(i),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=r.positionDefault,y=pn([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=y.get("trigger");if(!(g!=null&&g!=="item")){var p=l.getDataParams(f,h),m=new uu;p.marker=m.makeTooltipMarker("item",$n(p.color),v);var _=uc(l.formatTooltip(f,!1,h)),S=y.get("order"),w=y.get("valueFormatter"),x=_.frag,b=x?cc(w?E({valueFormatter:w},x):x,m,v,S,a.get("useUTC"),y.get("textStyle")):_.text,M="item_"+l.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,b,p,M,r.offsetX,r.offsetY,r.position,r.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=ut(i),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(z(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=et(u),u.content=Ft(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=r.positionDefault,d=pn(h,this._tooltipModel,v?{position:v}:null),y=d.get("content"),g=Math.random()+"",p=new uu;this._showOrMove(d,function(){var m=et(d.get("formatterParams")||{});this._showTooltipContent(d,y,m,g,r.offsetX,r.offsetY,r.position,i,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,i,n,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var c=r.get("formatter");u=u||r.get("position");var v=i,d=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),y=d.color;if(c)if(z(c)){var g=r.ecModel.get("useUTC"),p=N(n)?n[0]:n,m=p&&p.axisType&&p.axisType.indexOf("time")>=0;v=c,m&&(v=ls(p.axisValue,v,g)),v=Rg(v,n,!0)}else if(K(c)){var _=vt(function(S,w){S===this._ticket&&(h.setContent(w,f,r,y,u),this._updatePosition(r,u,o,s,h,n,l))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,r,y,u),h.show(r,y),this._updatePosition(r,u,o,s,h,n,l)}},t.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||N(i))return{color:a||o};if(!N(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(r,i,n,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var h=o.getSize(),c=r.get("align"),v=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),K(i)&&(i=i([n,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),N(i))n=_t(i[0],l),a=_t(i[1],f);else if(G(i)){var y=i;y.width=h[0],y.height=h[1];var g=xr(y,{width:l,height:f});n=g.x,a=g.y,c=null,v=null}else if(z(i)&&u){var p=xA(i,d,h,r.get("borderWidth"));n=p[0],a=p[1]}else{var p=_A(n,a,o,l,f,c?null:20,v?null:20);n=p[0],a=p[1]}if(c&&(n-=Wd(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Wd(v)?h[1]/2:v==="bottom"?h[1]:0),Bm(r)){var p=SA(n,a,o,l,f);n=p[0],a=p[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&T(n,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&T(l,function(c,v){var d=h[v]||{},y=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&y.length===g.length,o&&T(y,function(p,m){var _=g[m];o=o&&p.seriesIndex===_.seriesIndex&&p.dataIndex===_.dataIndex}),a&&T(c.seriesDataIndices,function(p){var m=p.seriesIndex,_=i[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,i){q.node||!i.getDom()||(Tl(this,"_updatePosition"),this._tooltipContent.dispose(),Xl("itemTooltip",i))},t.type="tooltip",t})(Be);function pn(e,t,r){var i=t.ecModel,n;r?(n=new pt(r,i,i),n=new pt(t.option,n,i)):n=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof pt&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(n=new pt(o,n,i)))}return n}function Vd(e,t){return e.dispatchAction||vt(t.dispatchAction,t)}function _A(e,t,r,i,n,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(e+u+a+2>i?e-=u+a:e+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[e,t]}function SA(e,t,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,i)-o,t=Math.min(t+s,n)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function xA(e,t,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,f=t.height;switch(e){case"inside":s=t.x+l/2-n/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-n/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-n/2,u=t.y+f+o;break;case"left":s=t.x-n-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function Wd(e){return e==="center"||e==="middle"}function wA(e,t,r){var i=hf(e).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=sa(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=ut(l).tooltipConfig;if(f&&f.name===e.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}function nL(e){si(Om),e.registerComponentModel(aA),e.registerComponentView(mA),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Vt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Vt)}var bA=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},$l=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},t.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),N(i)&&T(i,function(a,o){z(a)&&(a={type:a}),i[o]=at(a,bA(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(u){var l=u.name;n.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,c=h.getAllNames();r.isSeriesFiltered(u)||(n=n.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&ff(u)&&i.push(u.name)}),this._availableNames=n;var a=this.get("data")||i,o=j(),s=Y(a,function(u){return(z(u)||ct(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new pt(u,this,this.ecModel))},this);this._data=Mt(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;T(a,function(o){i[o.get("name")]=!1})}i[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,i=this.option.selected;T(r,function(n){i[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;T(r,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&it(this._availableNames,r)>=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",bottom:U.size.m,align:"auto",backgroundColor:U.color.transparent,borderColor:U.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:U.color.disabled,inactiveBorderColor:U.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:U.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:U.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:U.color.tertiary,borderWidth:1,borderColor:U.color.border},emphasis:{selectorLabel:{show:!0,color:U.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(ot),Di=bt,Zl=T,ja=Yt,Hm=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new ja),this.group.add(this._selectorGroup=new ja),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,r,i,n,u,s,l);var f=Uf(r,n).refContainer,h=r.getBoxLayoutParams(),c=r.get("padding"),v=xr(h,f,c),d=this.layoutInner(r,o,v,a,u,l),y=xr(lt({width:d.width,height:d.height},h),f,c);this.group.x=y.x-d.x,this.group.y=y.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=nA(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,i,n,a,o,s,u){var l=this.getContentGroup(),f=j(),h=i.get("selectedMode"),c=i.get("triggerEvent"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Zl(i.getData(),function(d,y){var g=this,p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
|
|
17
|
+
`)){var m=new ja;m.newline=!0,l.add(m);return}var _=n.getSeriesByName(p)[0];if(!f.get(p))if(_){var S=_.getData(),w=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),b=S.getVisual("style"),M=this._createItem(_,p,y,d,i,r,w,b,x,h,a);M.on("click",Di(Ud,p,null,a,v)).on("mouseover",Di(ql,_.name,null,a,v)).on("mouseout",Di(Kl,_.name,null,a,v)),n.ssr&&M.eachChild(function(D){var A=ut(D);A.seriesIndex=_.seriesIndex,A.dataIndex=y,A.ssrType="legend"}),c&&M.eachChild(function(D){g.packEventData(D,i,_,y,p)}),f.set(p,!0)}else n.eachRawSeries(function(D){var A=this;if(!f.get(p)&&D.legendVisualProvider){var C=D.legendVisualProvider;if(!C.containName(p))return;var I=C.indexOfName(p),L=C.getItemVisual(I,"style"),P=C.getItemVisual(I,"legendIcon"),R=ge(L.fill);R&&R[3]===0&&(R[3]=.2,L=E(E({},L),{fill:Zi(R,"rgba")}));var O=this._createItem(D,p,y,d,i,r,{},L,P,h,a);O.on("click",Di(Ud,null,p,a,v)).on("mouseover",Di(ql,null,p,a,v)).on("mouseout",Di(Kl,null,p,a,v)),n.ssr&&O.eachChild(function(Z){var B=ut(Z);B.seriesIndex=D.seriesIndex,B.dataIndex=y,B.ssrType="legend"}),c&&O.eachChild(function(Z){A.packEventData(Z,i,D,y,p)}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,i,a,s,u)},t.prototype.packEventData=function(r,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};ut(r).eventData=s},t.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();Zl(r,function(l){var f=l.type,h=new Kt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(h);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);yg(h,{normal:c,emphasis:v},{defaultText:l.title}),fl(h)})},t.prototype._createItem=function(r,i,n,a,o,s,u,l,f,h,c){var v=r.visualDrawType,d=o.get("itemWidth"),y=o.get("itemHeight"),g=o.isSelected(i),p=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=TA(f,a,u,l,v,g,c),w=new ja,x=a.getModel("textStyle");if(K(r.getLegendIcon)&&(!_||_==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:y,icon:f,iconRotate:p,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&r.getData().getVisual("symbol")?p==="inherit"?r.getData().getVisual("symbolRotate"):p:0;w.add(CA({itemWidth:d,itemHeight:y,icon:f,iconRotate:b,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var M=s==="left"?d+5:-5,D=s,A=o.get("formatter"),C=i;z(A)&&A?C=A.replace("{name}",i??""):K(A)&&(C=A(i));var I=g?x.getTextColor():a.get("inactiveColor");w.add(new Kt({style:Wi(x,{text:C,x:M,y:y/2,fill:I,align:D,verticalAlign:"middle"},{inheritColor:I})}));var L=new St({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&os({el:L,componentModel:o,itemName:i,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),fl(w),w.__legendDataIndex=n,w},t.prototype.layoutInner=function(r,i,n,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();kn(r.get("orient"),u,r.get("itemGap"),n.width,n.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){kn("horizontal",l,r.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=r.get("selectorButtonGap",!0),y=r.getOrient().index,g=y===0?"width":"height",p=y===0?"height":"width",m=y===0?"y":"x";s==="end"?v[y]+=f[g]+d:h[y]+=c[g]+d,v[1-y]+=f[p]/2-c[p]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[p]=Math.max(f[p],c[p]),_[m]=Math.min(0,c[m]+v[1-y]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Be);function TA(e,t,r,i,n,a,o){function s(g,p){g.lineWidth==="auto"&&(g.lineWidth=p.lineWidth>0?2:0),Zl(g,function(m,_){g[_]==="inherit"&&(g[_]=p[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?i.decal:Ll(h,o),l.fill==="inherit"&&(l.fill=i[n]),l.stroke==="inherit"&&(l.stroke=i[f]),l.opacity==="inherit"&&(l.opacity=(n==="fill"?i:r).opacity),s(l,i);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,r),l.fill==="auto"&&(l.fill=i.fill),l.stroke==="auto"&&(l.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),y=l[f];l.lineWidth=d==="auto"?i.lineWidth>0&&y?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function CA(e){var t=e.icon||"roundRect",r=Jf(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=U.color.neutral00,r.style.lineWidth=2),r}function Ud(e,t,r,i){Kl(e,t,r,i),r.dispatchAction({type:"legendToggleSelect",name:e??t}),ql(e,t,r,i)}function Gm(e){for(var t=e.getZr().storage.getDisplayList(),r,i=0,n=t.length;i<n&&!(r=t[i].states.emphasis);)i++;return r&&r.hoverLayer}function ql(e,t,r,i){Gm(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function Kl(e,t,r,i){Gm(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}function MA(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var i=0;i<t.length;i++)if(!t[i].isSelected(r.name))return!1;return!0})}function gn(e,t,r){var i=e==="allSelect"||e==="inverseSelect",n={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){i?s[e]():s[e](t.name),Yd(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){T(n,function(u,l){s[u?"select":"unSelect"](l)}),Yd(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Yd(e,t){var r=t||{};return T(e.getData(),function(i){var n=i.get("name");if(!(n===`
|
|
18
|
+
`||n==="")){var a=e.isSelected(n);de(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function DA(e){e.registerAction("legendToggleSelect","legendselectchanged",bt(gn,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",bt(gn,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",bt(gn,"inverseSelect")),e.registerAction("legendSelect","legendselected",bt(gn,"select")),e.registerAction("legendUnSelect","legendunselected",bt(gn,"unSelect"))}function Vm(e){e.registerComponentModel($l),e.registerComponentView(Hm),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,MA),e.registerSubTypeDefaulter("legend",function(){return"plain"}),DA(e)}var AA=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,i,n){var a=la(r);e.prototype.init.call(this,r,i,n),Xd(this,r,a)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.call(this,r,i),Xd(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Sg($l.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:U.color.accent50,pageIconInactiveColor:U.color.accent10,pageIconSize:15,pageTextStyle:{color:U.color.tertiary},animationDurationUpdate:800}),t})($l);function Xd(e,t,r){var i=e.getOrient(),n=[1,1];n[i.index]=0,wr(t,r,{type:"box",ignoreSize:!!n})}var $d=Yt,Lu=["width","height"],Pu=["x","y"],LA=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new $d),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new $d)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,i,n,a,o,s,u){var l=this;e.prototype.renderInner.call(this,r,i,n,a,o,s,u);var f=this._controllerGroup,h=i.get("pageIconSize",!0),c=N(h)?h:[h,h];d("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new Kt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(y,g){var p=y+"DataIndex",m=Df(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:vt(l._pageGo,l,p,i,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=y,f.add(m)}},t.prototype.layoutInner=function(r,i,n,a,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=Lu[l],h=Pu[l],c=Lu[1-l],v=Pu[1-l];o&&kn("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),y=u.getBoundingRect(),g=[-y.x,-y.y],p=et(n);o&&(p[f]=n[f]-y[f]-d);var m=this._layoutContentAndController(r,a,p,l,f,c,v,h);if(o){if(s==="end")g[l]+=m[f]+d;else{var _=y[f]+d;g[l]-=_,m[h]-=_}m[f]+=y[f]+d,g[1-l]+=m[v]+m[c]/2-y[c]/2,m[c]=Math.max(m[c],y[c]),m[v]=Math.min(m[v],y[v]+g[1-l]),u.x=g[0],u.y=g[1],u.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,i,n,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;kn(r.get("orient"),f,r.get("itemGap"),a?n.width:null,a?null:n.height),kn("horizontal",c,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),y=this._showController=v[o]>n[o],g=[-v.x,-v.y];i||(g[a]=f[l]);var p=[0,0],m=[-d.x,-d.y],_=$(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(y){var S=r.get("pageButtonPosition",!0);S==="end"?m[a]+=n[o]-d[o]:p[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(p),c.setPosition(m);var w={x:0,y:0};if(w[o]=y?n[o]:v[o],w[s]=Math.max(v[s],d[s]),w[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=n[o],y){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=w[s],h.setClipPath(new St({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(r);return b.pageIndex!=null&&Qe(f,{x:b.contentPosition[0],y:b.contentPosition[1]},y?r:null),this._updatePageInfoView(r,b),w},t.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=i[h]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",c?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,u=s!=null?s+1:0,l=i.pageCount;a&&o&&a.setStyle("text",z(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Lu[o],u=Pu[o],l=this._findTargetItemIndex(i),f=n.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var y=S(h);d.contentPosition[o]=-y.s;for(var g=l+1,p=y,m=y,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>p.s+a||_&&!w(_,p.s))&&(m.i>p.i?p=m:p=_,p&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=p.i),++d.pageCount)),m=_;for(var g=l-1,p=y,m=y,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&p.i<m.i&&(m=p,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=p.i),++d.pageCount,++d.pageIndex),p=_;return d;function S(x){if(x){var b=x.getBoundingRect(),M=b[u]+x[u];return{s:M,e:M+b[s],i:x.__legendDataIndex}}}function w(x,b){return x.e>=b&&x.s<=b+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===r&&(i=s)}),i??a},t.type="legend.scroll",t})(Hm);function PA(e){e.registerAction("legendScroll","legendscroll",function(t,r){var i=t.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function IA(e){si(Vm),e.registerComponentModel(AA),e.registerComponentView(LA),PA(e)}function aL(e){si(Vm),si(IA)}function Zd(e,t,r){var i=qe.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",e)),i.width=n*r,i.height=a*r,i}var Iu=(function(e){F(t,e);function t(r,i,n){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||To,typeof r=="string"?o=Zd(r,i,n):G(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(ep(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}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 r=this.dpr;this.domBack=Zd("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new J(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new J(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,w=1/0,x=0,b=0;b<o.length;++b){var M=o[b];if(M.intersect(m)){var D=new J(0,0,0,0);D.copy(M),D.union(m),o[b]=D,S=!0;break}else if(u){l.copy(m),l.union(M);var A=m.width*m.height,C=M.width*M.height,I=l.width*l.height,L=I-A-C;L<w&&(w=L,x=b)}}if(u&&(o[x].union(m),S=!0),!S){var _=new J(0,0,0,0);_.copy(m),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=r[h];if(c){var v=c.shouldBePainted(n,a,!0,!0),d=c.__isRendered&&(c.__dirty&Zt||!v)?c.getPrevPaintRect():null;d&&f(d);var y=v&&(c.__dirty&Zt||!c.__isRendered)?c.getPaintRect():null;y&&f(y)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=i[h],v=c&&c.shouldBePainted(n,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var p=h+1;p<o.length;)o[h].intersect(o[p])?(g=!0,o[h].union(o[p]),o.splice(p,1)):p++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,u=a.height;i=i||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(y,g,p,m){if(o.clearRect(y,g,p,m),i&&i!=="transparent"){var _=void 0;if(Zo(i)){var S=i.global||i.__width===p&&i.__height===m;_=S&&i.__canvasGradient||Dl(o,i,{x:0,y:0,width:p,height:m}),i.__canvasGradient=_,i.__width=p,i.__height=m}else a0(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=Al(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(y,g,p,m),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,y,g,p,m),o.restore())}!n||l?d(0,0,s,u):n.length&&T(n,function(y){d(y.x*h,y.y*h,y.width*h,y.height*h)})},t})(Fe),qd=1e5,qr=314159,to=.01,RA=.001;function EA(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function kA(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var OA=(function(){function e(t,r,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=E({},i||{}),this.dpr=i.devicePixelRatio||To,this._singleCanvas=a,this.root=t;var o=t.style;o&&(ep(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,c=f.height;i.width!=null&&(h=i.width),i.height!=null&&(c=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new Iu(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[qr]=v,v.zlevel=qr,s.push(qr),this._domRoot=t}else{this._width=za(t,0,i),this._height=za(t,1,i);var l=this._domRoot=kA(this._width,this._height);t.appendChild(l)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,i=this._hoverlayer;if(i&&i.clear(),!!r){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(qd)),a||(a=i.ctx,a.save()),ti(a,s,n,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(qd)},e.prototype.paintOne=function(t,r){_y(t,r)},e.prototype._paintList=function(t,r,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;_o(function(){u._paintList(t,r,i,n)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(qr).ctx,r=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,r,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,r,i)})},e.prototype._doPaintList=function(t,r,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&a.push(l)}for(var f=!0,h=!1,c=function(y){var g=a[y],p=g.ctx,m=o&&g.createRepaintRects(t,r,v._width,v._height),_=i?g.__startIndex:g.__drawIndex,S=!i&&g.incremental&&Date.now,w=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 b=t[_];(!b.incremental||!b.notClear||i)&&g.clear(!1,x,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var M,D=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(M=_;M<g.__endIndex;M++){var R=t[M];if(R.__inHover&&(h=!0),n._doPaintEl(R,g,o,L,P,M===g.__endIndex-1),S){var O=Date.now()-w;if(O>15)break}}P.prevElClipPaths&&p.restore()};if(m)if(m.length===0)M=g.__endIndex;else for(var A=v.dpr,C=0;C<m.length;++C){var I=m[C];p.save(),p.beginPath(),p.rect(I.x*A,I.y*A,I.width*A,I.height*A),p.clip(),D(I),p.restore()}else p.save(),D(),p.restore();g.__drawIndex=M,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return q.wxa&&T(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:f,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,r,i,n,a,o){var s=r.ctx;if(i){var u=t.getPaintRect();(!n||u&&u.intersect(n))&&(ti(s,t,a,o),t.setPrevPaintRect(u))}else ti(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=qr);var i=this._layers[t];return i||(i=new Iu("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?at(i,this._layerConfig[t],!0):this._layerConfig[t-to]&&at(i,this._layerConfig[t-to],!0),r&&(i.virtual=r),this.insertLayer(t,i),i.initContext()),i},e.prototype.insertLayer=function(t,r){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,u=-1;if(!i[t]&&EA(r)){if(a>0&&t>n[0]){for(u=0;u<a-1&&!(n[u]<t&&n[u+1]>t);u++);s=i[n[u]]}if(n.splice(u+1,0,t),i[t]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var n=t[u],l=n.zlevel,f=void 0;s!==l&&(s=l,o=0),n.incremental?(f=this.getLayer(l+RA,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?to:0),this._needsManuallyCompositing),f.__builtin__||tf("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,r(u),a=f),n.__dirty&Zt&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,T(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?at(i[t],r,!0):i[t]=r;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+to){var o=this._layers[a];at(o,i[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,i=this._zlevelList,n=r[t];n&&(n.dom.parentNode.removeChild(n.dom),delete r[t],i.splice(it(i,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),r!=null&&(n.height=r),t=za(a,0,n),r=za(a,1,n),i.style.display="",this._width!==t||r!==this._height){i.style.width=t+"px",i.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(qr).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[qr].dom;var r=new Iu("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var i=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];ti(i,f,o,u===l-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function oL(e){e.registerPainter("canvas",OA)}export{Kt as $,gS as A,ut as B,ug as C,_v as D,jA as E,Af as F,Yt as G,G as H,Y as I,Uy as J,ct as K,Su as L,Gi as M,vp as N,ft as O,st as P,Bt as Q,vt as R,_r as S,$n as T,_S as U,oa as V,dr as W,YA as X,K as Y,ui as Z,F as _,iL as a,it as a$,yM as a0,UA as a1,If as a2,T as a3,$S as a4,cm as a5,mM as a6,_M as a7,FA as a8,oy as a9,NA as aA,Vt as aB,Ke as aC,ge as aD,zA as aE,Uu as aF,Sr as aG,bf as aH,p0 as aI,Lt as aJ,v0 as aK,qe as aL,St as aM,zn as aN,Vf as aO,Wb as aP,QA as aQ,ot as aR,Wi as aS,XA as aT,Uf as aU,xr as aV,Be as aW,q as aX,Kn as aY,Gw as aZ,Ne as a_,bM as aa,ZA as ab,D1 as ac,$h as ad,yt as ae,_t as af,J as ag,vM as ah,eL as ai,Ki as aj,et as ak,uo as al,AM as am,Oi as an,N as ao,iC as ap,rC as aq,bt as ar,KA as as,GA as at,Kh as au,$A as av,JA as aw,dt as ax,z as ay,Zi as az,nL as b,co as b0,Xe as b1,j as b2,lS as b3,qp as b4,dg as b5,pg as b6,Ub as b7,Mt as b8,yo as b9,vC as ba,at as bb,sa as bc,HA as bd,Sg as be,fs as bf,qA as bg,mr as bh,ip as bi,tg as bj,Mf as bk,ux as bl,WA as bm,bn,lx as bo,xf as bp,VA as bq,kn as br,aL as c,oL as d,tL as e,wf as f,lt as g,g0 as h,rL as i,Yy as j,Jf as k,BA as l,Je as m,ol as n,sl as o,Qe as p,oi as q,$ as r,tx as s,U as t,si as u,mx as v,iT as w,E as x,yg as y,gM as z};
|