@matdata/yasgui-chart-plugin 0.0.0-stage → 1.0.0
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.
- package/LICENSE +201 -0
- package/README.md +123 -2
- package/dist/ChartPlugin.d.ts +73 -0
- package/dist/ChartPlugin.d.ts.map +1 -0
- package/dist/chartOptions.d.ts +26 -0
- package/dist/chartOptions.d.ts.map +1 -0
- package/dist/columns.d.ts +45 -0
- package/dist/columns.d.ts.map +1 -0
- package/dist/controls.d.ts +22 -0
- package/dist/controls.d.ts.map +1 -0
- package/dist/dataModel.d.ts +75 -0
- package/dist/dataModel.d.ts.map +1 -0
- package/dist/describe/describe-modal.d.ts +109 -0
- package/dist/describe/describe-modal.d.ts.map +1 -0
- package/dist/describe/describe-parser.d.ts +37 -0
- package/dist/describe/describe-parser.d.ts.map +1 -0
- package/dist/describe/resource-query.d.ts +37 -0
- package/dist/describe/resource-query.d.ts.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/settings.d.ts +40 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/theme.d.ts +17 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/types.d.ts +91 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/yasgui-chart-plugin.cjs.js +51105 -0
- package/dist/yasgui-chart-plugin.cjs.js.map +7 -0
- package/dist/yasgui-chart-plugin.css +495 -0
- package/dist/yasgui-chart-plugin.esm.js +51088 -0
- package/dist/yasgui-chart-plugin.esm.js.map +7 -0
- package/dist/yasgui-chart-plugin.min.css +1 -0
- package/dist/yasgui-chart-plugin.min.js +62 -0
- package/dist/yasgui-chart-plugin.min.js.map +7 -0
- package/package.json +63 -4
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";var YasguiChartPlugin=(()=>{var Zp=Object.defineProperty;var PI=Object.getOwnPropertyDescriptor;var OI=Object.getOwnPropertyNames;var RI=Object.prototype.hasOwnProperty;var W_=(r,e)=>{for(var t in e)Zp(r,t,{get:e[t],enumerable:!0})},NI=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of OI(e))!RI.call(r,n)&&n!==t&&Zp(r,n,{get:()=>e[n],enumerable:!(i=PI(e,n))||i.enumerable});return r};var kI=r=>NI(Zp({},"__esModule",{value:!0}),r);var eH={};W_(eH,{default:()=>JV});var Xp=function(r,e){return Xp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},Xp(r,e)};function F(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xp(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var BI=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),zI=(function(){function r(){this.browser=new BI,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return r})(),Fi=new zI;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Fi.wxa=!0,Fi.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Fi.worker=!0:!Fi.hasGlobalWindow||"Deno"in window||typeof navigator!="undefined"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Fi.node=!0,Fi.svgSupported=!0):FI(navigator.userAgent,Fi);function FI(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),n&&(t.ie=!0,t.version=n[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document!="undefined";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var se=Fi;var Vu=12,qp="sans-serif",Vt=Vu+"px "+qp,UI=20,VI=100,HI="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function GI(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),n=(r.charCodeAt(t)-UI)/VI;e[i]=n}return e}var YI=GI(HI),$e={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,i){if(!r){var n=$e.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==i&&(e=r.font=i||Vt),r.measureText(t);t=t||"",i=i||Vt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Vu,s=0;if(i.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=YI[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=r,i},getTime:function(){return Date.now?Date.now():+new Date}};var X_=$t(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),q_=$t(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),ks=Object.prototype.toString,Gu=Array.prototype,WI=Gu.forEach,jI=Gu.filter,$p=Gu.slice,ZI=Gu.map,j_=function(){}.constructor,Hu=j_?j_.prototype:null,Qp="__proto__",Kp=2311,XI=Math.pow(2,53)-1;function Yu(){return Kp>=XI&&(Kp=0),Kp++}function ao(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,r)}function te(r){if(r==null||typeof r!="object")return r;var e=r,t=ks.call(r);if(t==="[object Array]"){if(!Ns(r)){e=[];for(var i=0,n=r.length;i<n;i++)e[i]=te(r[i])}}else if(q_[t]){if(!Ns(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var i=0,n=r.length;i<n;i++)e[i]=r[i]}}}else if(!X_[t]&&!Ns(r)&&!no(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Qp&&(e[o]=te(r[o]))}return e}function de(r,e,t){if(!Y(e)||!Y(r))return t?te(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==Qp){var n=r[i],a=e[i];Y(a)&&Y(n)&&!N(a)&&!N(n)&&!no(a)&&!no(n)&&!Z_(a)&&!Z_(n)&&!Ns(a)&&!Ns(n)?de(n,a,t):(t||!(i in r))&&(r[i]=te(e[i]))}return r}function O(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Qp&&(r[t]=e[t]);return r}function K_(r,e,t){r=r||{};for(var i=0;i<t.length;i++){var n=t[i];r[n]=e[n]}return r}function ie(r,e,t){for(var i=ne(e),n=0,a=i.length;n<a;n++){var o=i[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var oH=$e.createCanvas;function ue(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t}return-1}function $_(r,e){var t=r.prototype;function i(){}i.prototype=e.prototype,r.prototype=new i;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function It(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}else ie(r,e,t)}function et(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function C(r,e,t){if(r&&e)if(r.forEach&&r.forEach===WI)r.forEach(e,t);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)e.call(t,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function B(r,e,t){if(!r)return[];if(!e)return Wu(r);if(r.map&&r.map===ZI)return r.map(e,t);for(var i=[],n=0,a=r.length;n<a;n++)i.push(e.call(t,r[n],n,r));return i}function $t(r,e,t,i){if(r&&e){for(var n=0,a=r.length;n<a;n++)t=e.call(i,t,r[n],n,r);return t}}function ke(r,e,t){if(!r)return[];if(!e)return Wu(r);if(r.filter&&r.filter===jI)return r.filter(e,t);for(var i=[],n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r)&&i.push(r[n]);return i}function Q_(r,e,t){if(r&&e){for(var i=0,n=r.length;i<n;i++)if(e.call(t,r[i],i,r))return r[i]}}function ne(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function qI(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return r.apply(e,t.concat($p.call(arguments)))}}var Q=Hu&&Z(Hu.bind)?Hu.call.bind(Hu.bind):qI;function Te(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat($p.call(arguments)))}}function N(r){return Array.isArray?Array.isArray(r):ks.call(r)==="[object Array]"}function Z(r){return typeof r=="function"}function z(r){return typeof r=="string"}function Bs(r){return ks.call(r)==="[object String]"}function fe(r){return typeof r=="number"}function Y(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Z_(r){return!!X_[ks.call(r)]}function We(r){return!!q_[ks.call(r)]}function no(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Ui(r){return r.colorStops!=null}function J_(r){return r.image!=null}function Vi(r){return r!==r}function oo(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,i=r.length;t<i;t++)if(r[t]!=null)return r[t]}function G(r,e){return r!=null?r:e}function Qt(r,e,t){return r!=null?r:e!=null?e:t}function Wu(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return $p.apply(r,e)}function so(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Ue(r,e){if(!r)throw new Error(e)}function mt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var e0="__ec_primitive__";function lo(r){r[e0]=!0}function Ns(r){return r[e0]}var KI=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return ne(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},r})(),t0=typeof Map=="function";function $I(){return t0?new Map:new KI}var QI=(function(){function r(e){var t=N(e);this.data=$I();var i=this;e instanceof r?e.each(n):e&&C(e,n);function n(a,o){t?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(i,n){e.call(t,i,n)})},r.prototype.keys=function(){var e=this.data.keys();return t0?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function V(r){return new QI(r)}function r0(r,e){for(var t=new r.constructor(r.length+e.length),i=0;i<r.length;i++)t[i]=r[i];for(var n=r.length,i=0;i<e.length;i++)t[i+n]=e[i];return t}function Hi(r,e){var t;if(Object.create)t=Object.create(r);else{var i=function(){};i.prototype=r,t=new i}return e&&O(t,e),t}function ju(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Pe(r,e){return r.hasOwnProperty(e)}function Ee(){}var uo=180/Math.PI,sH=Number.EPSILON||Math.pow(2,-52);var Jp=function(r,e){return Jp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},Jp(r,e)};function oe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Jp(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Gi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function i0(r){return[r[0],r[1]]}function Zu(r,e,t){return r[0]=e,r[1]=t,r}function ed(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function n0(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function JI(r){return Math.sqrt(eL(r))}function eL(r){return r[0]*r[0]+r[1]*r[1]}function Xu(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function a0(r,e){var t=JI(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function qu(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var zs=qu;function tL(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var zn=tL;function Ku(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function gt(r,e,t){var i=e[0],n=e[1];return r[0]=t[0]*i+t[2]*n+t[4],r[1]=t[1]*i+t[3]*n+t[5],r}function hi(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function pi(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var fo=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),rL=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new fo(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,t.drift(a,o,e),this.handler.dispatchToElement(new fo(t,e),"drag",e.event);var s=this.handler.findHover(i,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new fo(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new fo(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new fo(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new fo(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),o0=rL;var iL=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(n=i,i=t,t=null),!i||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:t,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==t&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},r.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r})(),at=iL;var nL=Math.log(2);function td(r,e,t,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/nL);return r[t][l]}for(var u=i|1<<t,f=t+1;i&1<<f;)f++;for(var c=0,h=0,p=0;h<s;h++){var d=1<<h;d&n||(c+=(p%2?-1:1)*r[t][h]*td(r,e-1,f,u,n|d,a),p++)}return a[o]=c,c}function rd(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],i={},n=td(t,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)*td(t,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var $u="___zrEVENTSAVED",id=[];function s0(r,e,t,i,n){return Qu(id,e,i,n,!0)&&Qu(r,t,id[0],id[1])}function l0(r,e){r&&t(r),e&&t(e);function t(i){var n=i[$u];n&&(n.clearMarkers&&n.clearMarkers(),delete i[$u])}}function Qu(r,e,t,i,n){if(e.getBoundingClientRect&&se.domSupported&&!nd(e)){var a=e[$u]||(e[$u]={}),o=aL(e,a),s=oL(o,a,n);if(s)return s(r,t,i),!0}return!1}function aL(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){C(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function oL(r,e,t){for(var i=t?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,h=f.left,p=f.top;o.push(h,p),l=l&&a&&h===a[c]&&p===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=t?rd(s,o):rd(o,s))}function nd(r){return r.nodeName.toUpperCase()==="CANVAS"}var sL=/([&<>"'])/g,lL={"&":"&","<":"<",">":">",'"':""","'":"'"};function ot(r){return r==null?"":(r+"").replace(sL,function(e,t){return lL[t]})}var uL=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ad=[],fL=se.browser.firefox&&+se.browser.version.split(".")[0]<39;function Ju(r,e,t,i){return t=t||{},i?u0(r,e,t):fL&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):u0(r,e,t),t}function u0(r,e,t){if(se.domSupported&&r.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(nd(r)){var a=r.getBoundingClientRect();t.zrX=i-a.left,t.zrY=n-a.top;return}else if(Qu(ad,r,i,n)){t.zrX=ad[0],t.zrY=ad[1];return}}t.zrX=t.zrY=0}function ef(r){return r||window.event}function Ht(r,e,t){if(e=ef(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Ju(r,o,e,t)}else{Ju(r,e,e,t);var a=cL(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&uL.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function cL(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,i=r.deltaY;if(t==null||i==null)return e;var n=Math.abs(i!==0?i:t),a=i>0?-1:i<0?1:t>0?-1:1;return 3*n*a}function f0(r,e,t,i){r.addEventListener(e,t,i)}function c0(r,e,t,i){r.removeEventListener(e,t,i)}var Hr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function od(r){return r.which===2||r.which===3}var p0=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Ju(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in sd)if(sd.hasOwnProperty(t)){var i=sd[t](this._track,e);if(i)return i}},r})();function h0(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function hL(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var sd={pinch:function(r,e){var t=r.length;if(t){var i=(r[t-1]||{}).points,n=(r[t-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=h0(i)/h0(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=hL(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Lt(){return[1,0,0,1,0,0]}function di(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Us(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Wi(r,e,t){var i=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Vs(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function co(r,e,t,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),c=Math.cos(t);return r[0]=n*c+s*f,r[1]=-n*f+s*c,r[2]=a*c+l*f,r[3]=-a*f+c*l,r[4]=c*(o-i[0])+f*(u-i[1])+i[0],r[5]=c*(u-i[1])-f*(o-i[0])+i[1],r}function d0(r,e,t){var i=t[0],n=t[1];return r[0]=e[0]*i,r[1]=e[1]*n,r[2]=e[2]*i,r[3]=e[3]*n,r[4]=e[4]*i,r[5]=e[5]*n,r}function Gr(r,e){var t=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-t*s)*l,r):null}var pL=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,n){e.x=t.x+i.x*n,e.y=t.y+i.y*n},r.lerp=function(e,t,i,n){var a=1-n;e.x=a*t.x+n*i.x,e.y=a*t.y+n*i.y},r})(),le=pL;var Gn=Math.min,ho=Math.max,fd=Math.abs,v0=["x","y"],dL=["width","height"],Fn=new le,Un=new le,Vn=new le,Hn=new le,Jt=hd(),Gs=Jt.minTv,cd=Jt.maxTv,Ys=[0,0],vi=(function(){function r(e,t,i,n){ld(this,e,t,i,n)}return r.set=function(e,t,i,n,a){return n<0&&(t=t+n,n=-n),a<0&&(i=i+a,a=-a),e.x=t,e.y=i,e.width=n,e.height=a,e},r.prototype.union=function(e){var t=Gn(e.x,this.x),i=Gn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ho(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ho(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return vL(Lt(),this,e)},r.prototype.intersect=function(e,t,i){return r.intersect(this,e,t,i)},r.intersect=function(e,t,i,n){i&&le.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),!e||!t)return!1;e instanceof r||(e=ld(mL,e.x,e.y,e.width,e.height)),t instanceof r||(t=ld(gL,t.x,t.y,t.width,t.height));var s=!!i;Jt.reset(n,s);var l=Jt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,h=e.y+e.height-l,p=t.x+l,d=t.x+t.width-l,v=t.y+l,m=t.y+t.height-l;if(u>f||c>h||p>d||v>m)return!1;var g=!(f<p||d<u||h<v||m<c);return(s||a)&&(Ys[0]=1/0,Ys[1]=0,g0(u,f,p,d,0,s,a,o),g0(c,h,v,m,1,s,a,o),s&&le.copy(i,g?Jt.useDir?Jt.dirMinTv:Gs:cd)),g},r.contain=function(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){m0(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,i){if(!i){e!==t&&m0(e,t);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];e.x=t.x*n+o,e.y=t.y*a+s,e.width=t.width*n,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Fn.x=Vn.x=t.x,Fn.y=Hn.y=t.y,Un.x=Hn.x=t.x+t.width,Un.y=Vn.y=t.y+t.height,Fn.transform(i),Hn.transform(i),Un.transform(i),Vn.transform(i),e.x=Gn(Fn.x,Un.x,Vn.x,Hn.x),e.y=Gn(Fn.y,Un.y,Vn.y,Hn.y);var l=ho(Fn.x,Un.x,Vn.x,Hn.x),u=ho(Fn.y,Un.y,Vn.y,Hn.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,i){var n=i.width/t.width,a=i.height/t.height;return e=di(e||[]),Vs(e,e,Zu(ud,-t.x,-t.y)),d0(e,e,Zu(ud,n,a)),Vs(e,e,Zu(ud,i.x,i.y)),e},r})(),bH=vi.create,ld=vi.set,m0=vi.copy,vL=vi.calculateTransform,SH=vi.applyTransform,TH=vi.contain,mL=new vi(0,0,0,0),gL=new vi(0,0,0,0),ud=[];function g0(r,e,t,i,n,a,o,s){var l=fd(e-t),u=fd(i-r),f=Gn(l,u),c=v0[n],h=v0[1-n],p=dL[n];e<t||i<r?l<u?(a&&(cd[c]=-l),s&&(o[c]=e,o[p]=0)):(a&&(cd[c]=u),s&&(o[c]=r,o[p]=0)):(o&&(o[c]=ho(r,t),o[p]=Gn(e,i)-o[c]),a&&(f<Ys[0]||Jt.useDir)&&(Ys[0]=Gn(f,Ys[0]),(l<u||!Jt.bidirectional)&&(Gs[c]=l,Gs[h]=0,Jt.useDir&&Jt.calcDirMTV()),(l>=u||!Jt.bidirectional)&&(Gs[c]=-u,Gs[h]=0,Jt.useDir&&Jt.calcDirMTV())))}function hd(){var r=0,e=new le,t=new le,i={minTv:new le,maxTv:new le,useDir:!1,dirMinTv:new le,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=ho(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),t.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,n(t.x)&&n(t.y)){o.set(0,0);return}(i.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function n(a){return fd(a)<1e-10}return i}var re=vi;var _0="silent";function yL(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:_L}}function _L(){Hr(this.event)}var xL=(function(r){oe(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(at),Ws=(function(){function r(e,t){this.x=e,this.y=t}return r})(),bL=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],pd=new re(0,0,0,0),x0=(function(r){oe(e,r);function e(t,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Ws(0,0),s.storage=t,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new xL,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new o0(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(C(bL,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,n=t.zrY,a=b0(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ws(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ws(0,0)},e.prototype.dispatch=function(t,i){var n=this[t];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,n){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+i,s=yL(i,t,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(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,n){var a=this.storage.getDisplayList(),o=new Ws(t,i);if(y0(a,o,t,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new re(t-u,i-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==n&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(pd.copy(h.getBoundingRect()),h.transform&&pd.applyTransform(h.transform),pd.intersect(f)&&s.push(h))}if(s.length)for(var p=4,d=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=p)for(var g=0;g<v;g+=d){var y=t+m*Math.cos(g),_=i+m*Math.sin(g);if(y0(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new p0);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;t.gestureEvent=o;var s=new Ws;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(at);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){x0.prototype[r]=function(e){var t=e.zrX,i=e.zrY,n=b0(this,t,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(t,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||zs(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function SL(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?_0:!0}return!1}function y0(r,e,t,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=SL(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==_0)){e.target=o;break}}}function b0(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var S0=x0;var w0=32,js=7;function TL(r){for(var e=0;r>=w0;)e|=r&1,r>>=1;return r+e}function T0(r,e,t,i){var n=e+1;if(n===t)return 1;if(i(r[n++],r[e])<0){for(;n<t&&i(r[n],r[n-1])<0;)n++;CL(r,e,n)}else for(;n<t&&i(r[n],r[n-1])>=0;)n++;return n-e}function CL(r,e,t){for(t--;e<t;){var i=r[e];r[e++]=r[t],r[t--]=i}}function C0(r,e,t,i,n){for(i===e&&i++;i<t;i++){for(var a=r[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function dd(r,e,t,i,n,a){var o=0,s=0,l=1;if(a(r,e[t+n])>0){for(s=i-n;l<s&&a(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])>0?o=f+1:l=f}return l}function vd(r,e,t,i,n,a){var o=0,s=0,l=1;if(a(r,e[t+n])<0){for(s=n+1;l<s&&a(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])<0?l=f:o=f+1}return l}function wL(r,e){var t=js,i,n,a=0,o=[];i=[],n=[];function s(p,d){i[a]=p,n[a]=d,a+=1}function l(){for(;a>1;){var p=a-2;if(p>=1&&n[p-1]<=n[p]+n[p+1]||p>=2&&n[p-2]<=n[p]+n[p-1])n[p-1]<n[p+1]&&p--;else if(n[p]>n[p+1])break;f(p)}}function u(){for(;a>1;){var p=a-2;p>0&&n[p-1]<n[p+1]&&p--,f(p)}}function f(p){var d=i[p],v=n[p],m=i[p+1],g=n[p+1];n[p]=v+g,p===a-3&&(i[p+1]=i[p+2],n[p+1]=n[p+2]),a--;var y=vd(r[m],r,d,v,0,e);d+=y,v-=y,v!==0&&(g=dd(r[d+v-1],r,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):h(d,v,m,g)))}function c(p,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=r[p+g];var y=0,_=v,x=p;if(r[x++]=r[_++],--m===0){for(g=0;g<d;g++)r[x+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)r[x+g]=r[_+g];r[x+m]=o[y];return}for(var b=t,S,T,A;;){S=0,T=0,A=!1;do if(e(r[_],o[y])<0){if(r[x++]=r[_++],T++,S=0,--m===0){A=!0;break}}else if(r[x++]=o[y++],S++,T=0,--d===1){A=!0;break}while((S|T)<b);if(A)break;do{if(S=vd(r[_],o,y,d,0,e),S!==0){for(g=0;g<S;g++)r[x+g]=o[y+g];if(x+=S,y+=S,d-=S,d<=1){A=!0;break}}if(r[x++]=r[_++],--m===0){A=!0;break}if(T=dd(o[y],r,_,m,0,e),T!==0){for(g=0;g<T;g++)r[x+g]=r[_+g];if(x+=T,_+=T,m-=T,m===0){A=!0;break}}if(r[x++]=o[y++],--d===1){A=!0;break}b--}while(S>=js||T>=js);if(A)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(g=0;g<m;g++)r[x+g]=r[_+g];r[x+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)r[x+g]=o[y+g]}}function h(p,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=r[v+g];var y=p+d-1,_=m-1,x=v+m-1,b=0,S=0;if(r[x--]=r[y--],--d===0){for(b=x-(m-1),g=0;g<m;g++)r[b+g]=o[g];return}if(m===1){for(x-=d,y-=d,S=x+1,b=y+1,g=d-1;g>=0;g--)r[S+g]=r[b+g];r[x]=o[_];return}for(var T=t;;){var A=0,w=0,E=!1;do if(e(o[_],r[y])<0){if(r[x--]=r[y--],A++,w=0,--d===0){E=!0;break}}else if(r[x--]=o[_--],w++,A=0,--m===1){E=!0;break}while((A|w)<T);if(E)break;do{if(A=d-vd(o[_],r,p,d,d-1,e),A!==0){for(x-=A,y-=A,d-=A,S=x+1,b=y+1,g=A-1;g>=0;g--)r[S+g]=r[b+g];if(d===0){E=!0;break}}if(r[x--]=o[_--],--m===1){E=!0;break}if(w=m-dd(r[y],o,0,m,m-1,e),w!==0){for(x-=w,_-=w,m-=w,S=x+1,b=_+1,g=0;g<w;g++)r[S+g]=o[b+g];if(m<=1){E=!0;break}}if(r[x--]=r[y--],--d===0){E=!0;break}T--}while(A>=js||w>=js);if(E)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(x-=d,y-=d,S=x+1,b=y+1,g=d-1;g>=0;g--)r[S+g]=r[b+g];r[x]=o[_]}else{if(m===0)throw new Error;for(b=x-(m-1),g=0;g<m;g++)r[b+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Yn(r,e,t,i){t||(t=0),i||(i=r.length);var n=i-t;if(!(n<2)){var a=0;if(n<w0){a=T0(r,t,i,e),C0(r,t,i,t+a,e);return}var o=wL(r,e),s=TL(n);do{if(a=T0(r,t,i,e),a<s){var l=n;l>s&&(l=s),C0(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),n-=a,t+=a}while(n!==0);o.forceMergeRuns()}}var Qe=1,Wn=2,ji=4;var A0=!1;function md(){A0||(A0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function E0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var AL=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=E0}return r.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(t),i},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,a=t.length;n<a;n++)this._updateAndAddDisplayable(t[n],null,e);i.length=this._displayListLen,Yn(i,E0)},r.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),h=0;h<c.length;h++){var p=c[h];e.__dirty&&(p.__dirty|=Qe),this._updateAndAddDisplayable(p,s,i)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(md(),d.z=0),isNaN(d.z2)&&(md(),d.z2=0),isNaN(d.zlevel)&&(md(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var n=ue(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),D0=AL;var M0;M0=se.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Zs=M0;var tf={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-tf.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?tf.bounceIn(r*2)*.5:tf.bounceOut(r*2-1)*.5+.5}},rf=tf;var nf=Math.pow,Xi=Math.sqrt,of=1e-8,L0=1e-4,I0=Xi(3),af=1/3,Yr=Gi(),lr=Gi(),po=Gi();function Zi(r){return r>-of&&r<of}function P0(r){return r>of||r<-of}function Be(r,e,t,i,n){var a=1-n;return a*a*(a*r+3*n*e)+n*n*(n*i+3*a*t)}function gd(r,e,t,i,n){var a=1-n;return 3*(((e-r)*a+2*(t-e)*n)*a+(i-t)*n*n)}function jn(r,e,t,i,n,a){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,p=0;if(Zi(f)&&Zi(c))if(Zi(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[p++]=d)}else{var v=c*c-4*f*h;if(Zi(v)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(a[p++]=d),g>=0&&g<=1&&(a[p++]=g)}else if(v>0){var y=Xi(v),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-nf(-_,af):_=nf(_,af),x<0?x=-nf(-x,af):x=nf(x,af);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(a[p++]=d)}else{var b=(2*f*s-3*o*c)/(2*Xi(f*f*f)),S=Math.acos(b)/3,T=Xi(f),A=Math.cos(S),d=(-s-2*T*A)/(3*o),g=(-s+T*(A+I0*Math.sin(S)))/(3*o),w=(-s+T*(A-I0*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[p++]=d),g>=0&&g<=1&&(a[p++]=g),w>=0&&w<=1&&(a[p++]=w)}}return p}function sf(r,e,t,i,n){var a=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(Zi(o)){if(P0(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Zi(f))n[0]=-a/(2*o);else if(f>0){var c=Xi(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function vo(r,e,t,i,n,a){var o=(e-r)*n+r,s=(t-e)*n+e,l=(i-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function O0(r,e,t,i,n,a,o,s,l,u,f){var c,h=.005,p=1/0,d,v,m,g;Yr[0]=l,Yr[1]=u;for(var y=0;y<1;y+=.05)lr[0]=Be(r,t,n,o,y),lr[1]=Be(e,i,a,s,y),m=zn(Yr,lr),m<p&&(c=y,p=m);p=1/0;for(var _=0;_<32&&!(h<L0);_++)d=c-h,v=c+h,lr[0]=Be(r,t,n,o,d),lr[1]=Be(e,i,a,s,d),m=zn(lr,Yr),d>=0&&m<p?(c=d,p=m):(po[0]=Be(r,t,n,o,v),po[1]=Be(e,i,a,s,v),g=zn(po,Yr),v<=1&&g<p?(c=v,p=g):h*=.5);return f&&(f[0]=Be(r,t,n,o,c),f[1]=Be(e,i,a,s,c)),Xi(p)}function R0(r,e,t,i,n,a,o,s,l){for(var u=r,f=e,c=0,h=1/l,p=1;p<=l;p++){var d=p*h,v=Be(r,t,n,o,d),m=Be(e,i,a,s,d),g=v-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=v,f=m}return c}function st(r,e,t,i){var n=1-i;return n*(n*r+2*i*e)+i*i*t}function yd(r,e,t,i){return 2*((1-i)*(e-r)+i*(t-e))}function N0(r,e,t,i,n){var a=r-2*e+t,o=2*(e-r),s=r-i,l=0;if(Zi(a)){if(P0(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Zi(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Xi(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function lf(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function mo(r,e,t,i,n){var a=(e-r)*i+r,o=(t-e)*i+e,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function k0(r,e,t,i,n,a,o,s,l){var u,f=.005,c=1/0;Yr[0]=o,Yr[1]=s;for(var h=0;h<1;h+=.05){lr[0]=st(r,t,n,h),lr[1]=st(e,i,a,h);var p=zn(Yr,lr);p<c&&(u=h,c=p)}c=1/0;for(var d=0;d<32&&!(f<L0);d++){var v=u-f,m=u+f;lr[0]=st(r,t,n,v),lr[1]=st(e,i,a,v);var p=zn(lr,Yr);if(v>=0&&p<c)u=v,c=p;else{po[0]=st(r,t,n,m),po[1]=st(e,i,a,m);var g=zn(po,Yr);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=st(r,t,n,u),l[1]=st(e,i,a,u)),Xi(c)}function B0(r,e,t,i,n,a,o){for(var s=r,l=e,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,p=st(r,t,n,h),d=st(e,i,a,h),v=p-s,m=d-l;u+=Math.sqrt(v*v+m*m),s=p,l=d}return u}var EL=/cubic-bezier\(([0-9,\.e ]+)\)/;function go(r){var e=r&&EL.exec(r);if(e){var t=e[1].split(","),i=+mt(t[0]),n=+mt(t[1]),a=+mt(t[2]),o=+mt(t[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:jn(0,i,a,1,l,s)&&Be(0,n,o,1,s[0])}}}var DL=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ee,this.ondestroy=e.ondestroy||Ee,this.onrestart=e.onrestart||Ee,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,n=e-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 l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Z(e)?e:rf[e]||go(e)},r})(),z0=DL;var F0=(function(){function r(e){this.value=e}return r})();var ML=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new F0(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})();var IL=(function(){function r(e){this._list=new ML,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new F0(t),s.key=e,i.insertEntry(s),n[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),Wr=IL;var U0={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 qi(r){return r=Math.round(r),r<0?0:r>255?255:r}function LL(r){return r=Math.round(r),r<0?0:r>360?360:r}function Sd(r){return r<0?0:r>1?1:r}function xd(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?qi(parseFloat(e)/100*255):qi(parseInt(e,10))}function Zn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Sd(parseFloat(e)/100):Sd(parseFloat(e))}function bd(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function uf(r,e,t){return r+(e-r)*t}function ur(r,e,t,i,n){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}function Td(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var G0=new Wr(20),ff=null;function yo(r,e){ff&&Td(ff,e),ff=G0.put(r,ff||e.slice())}function Pt(r,e){if(r){e=e||[];var t=G0.get(r);if(t)return Td(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in U0)return Td(e,U0[i]),yo(r,e),e;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)){ur(e,0,0,0,1);return}return ur(e,(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),yo(r,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ur(e,0,0,0,1);return}return ur(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),yo(r,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ur(e,+u[0],+u[1],+u[2],1):ur(e,0,0,0,1);f=Zn(u.pop());case"rgb":if(u.length>=3)return ur(e,xd(u[0]),xd(u[1]),xd(u[2]),u.length===3?f:Zn(u[3])),yo(r,e),e;ur(e,0,0,0,1);return;case"hsla":if(u.length!==4){ur(e,0,0,0,1);return}return u[3]=Zn(u[3]),Cd(u,e),yo(r,e),e;case"hsl":if(u.length!==3){ur(e,0,0,0,1);return}return Cd(u,e),yo(r,e),e;default:return}}ur(e,0,0,0,1)}}function Cd(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=Zn(r[1]),n=Zn(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],ur(e,qi(bd(o,a,t+1/3)*255),qi(bd(o,a,t)*255),qi(bd(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function PL(r){if(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,n=Math.min(e,t,i),a=Math.max(e,t,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-t)/6+o/2)/o,h=((a-i)/6+o/2)/o;e===a?l=h-c:t===a?l=1/3+f-h:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return r[3]!=null&&p.push(r[3]),p}}function V0(r,e){var t=Pt(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return Xn(t,t.length===4?"rgba":"rgb")}}function Y0(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var i=r*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=Pt(e[n]),s=Pt(e[a]),l=i-n,u=Xn([qi(uf(o[0],s[0],l)),qi(uf(o[1],s[1],l)),qi(uf(o[2],s[2],l)),Sd(uf(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function Xs(r,e,t,i){var n=Pt(r);if(r)return n=PL(n),e!=null&&(n[0]=LL(Z(e)?e(n[0]):e)),t!=null&&(n[1]=Zn(Z(t)?t(n[1]):t)),i!=null&&(n[2]=Zn(Z(i)?i(n[2]):i)),Xn(Cd(n),"rgba")}function Xn(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function _o(r,e){var t=Pt(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var H0=new Wr(100);function qs(r){if(z(r)){var e=H0.get(r);return e||(e=V0(r,-.1),H0.put(r,e)),e}else if(Ui(r)){var t=O({},r);return t.colorStops=B(r.colorStops,function(i){return{offset:i.offset,color:V0(i.color,-.1)}}),t}return r}var hf=Math.round;function Ki(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Pt(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e==null?1:e}}var W0=1e-4;function jr(r){return r<W0&&r>-W0}function cf(r){return hf(r*1e3)/1e3}function pf(r){return hf(r*1e4)/1e4}function j0(r){return"matrix("+cf(r[0])+","+cf(r[1])+","+cf(r[2])+","+cf(r[3])+","+pf(r[4])+","+pf(r[5])+")"}var Z0={left:"start",right:"end",center:"middle",middle:"middle"};function X0(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function q0(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function K0(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function wd(r){return r&&!!r.image}function RL(r){return r&&!!r.svgElement}function Ks(r){return wd(r)||RL(r)}function df(r){return r.type==="linear"}function vf(r){return r.type==="radial"}function mf(r){return r&&(r.type==="linear"||r.type==="radial")}function $s(r){return"url(#"+r+")"}function gf(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function yf(r){var e=r.x||0,t=r.y||0,i=(r.rotation||0)*uo,n=G(r.scaleX,1),a=G(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(n!==1||a!==1)&&l.push("scale("+n+","+a+")"),(o||s)&&l.push("skew("+hf(o*uo)+"deg, "+hf(s*uo)+"deg)"),l.join(" ")}var $0=(function(){return typeof Buffer!="undefined"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}})();var Ed=Array.prototype.slice;function mi(r,e,t){return(e-r)*t+r}function Ad(r,e,t,i){for(var n=e.length,a=0;a<n;a++)r[a]=mi(e[a],t[a],i);return r}function NL(r,e,t,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=mi(e[o][s],t[o][s],i)}return r}function _f(r,e,t,i){for(var n=e.length,a=0;a<n;a++)r[a]=e[a]+t[a]*i;return r}function Q0(r,e,t,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*i}return r}function kL(r,e){for(var t=r.length,i=e.length,n=t>i?e:r,a=Math.min(t,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function BL(r,e,t){var i=r,n=e;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 l=a;l<o;l++)i.push(t===1?n[l]:Ed.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function el(r){if(et(r)){var e=r.length;if(et(r[0])){for(var t=[],i=0;i<e;i++)t.push(Ed.call(r[i]));return t}return Ed.call(r)}return r}function Sf(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function zL(r){return et(r&&r[0])?2:1}var xf=0,Tf=1,tx=2,Js=3,Dd=4,Md=5,J0=6;function ex(r){return r===Dd||r===Md}function bf(r){return r===Tf||r===tx}var Qs=[0,0,0,0],FL=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=J0,l=t;if(et(t)){var u=zL(t);s=u,(u===1&&!fe(t[0])||u===2&&!fe(t[0][0]))&&(o=!0)}else if(fe(t)&&!Vi(t))s=xf;else if(z(t))if(!isNaN(+t))s=xf;else{var f=Pt(t);f&&(l=f,s=Js)}else if(Ui(t)){var c=O({},l);c.colorStops=B(t.colorStops,function(p){return{offset:p.offset,color:Pt(p.color)}}),df(t)?s=Dd:vf(t)&&(s=Md),l=c}a===0?this.valType=s:(s!==this.valType||s===J0)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return i&&(h.easing=i,h.easingFunc=Z(i)?i:rf[i]||go(i)),n.push(h),h},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(v,m){return v.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=bf(n),u=ex(n),f=0;f<a;f++){var c=i[f],h=c.value,p=o.value;c.percent=c.time/e,s||(l&&f!==a-1?BL(h,p,n):u&&kL(h.colorStops,p.colorStops))}if(!s&&n!==Md&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=i[0].value,f=0;f<a;f++)n===xf?i[f].additiveValue=i[f].value-d:n===Js?i[f].additiveValue=_f([],i[f].value,d,-1):bf(n)&&(i[f].additiveValue=n===Tf?_f([],i[f].value,d,-1):Q0([],i[f].value,d,-1))}},r.prototype.step=function(e,t){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,l=this.propName,u=a===Js,f,c=this._lastFr,h=Math.min,p,d;if(s===1)p=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var v=h(c+1,s-1);for(f=v;f>=0&&!(o[f].percent<=t);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>t);f++);f=h(f-1,s-2)}d=o[f+1],p=o[f]}if(p&&d){this._lastFr=f,this._lastFrP=t;var m=d.percent-p.percent,g=m===0?1:h((t-p.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=i?this._additiveValue:u?Qs:e[l];if((bf(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?p.rawValue:d.rawValue;else if(bf(a))a===Tf?Ad(y,p[n],d[n],g):NL(y,p[n],d[n],g);else if(ex(a)){var _=p[n],x=d[n],b=a===Dd;e[l]={type:b?"linear":"radial",x:mi(_.x,x.x,g),y:mi(_.y,x.y,g),colorStops:B(_.colorStops,function(T,A){var w=x.colorStops[A];return{offset:mi(T.offset,w.offset,g),color:Sf(Ad([],T.color,w.color,g))}}),global:x.global},b?(e[l].x2=mi(_.x2,x.x2,g),e[l].y2=mi(_.y2,x.y2,g)):e[l].r=mi(_.r,x.r,g)}else if(u)Ad(y,p[n],d[n],g),i||(e[l]=Sf(y));else{var S=mi(p[n],d[n],g);i?this._additiveValue=S:e[l]=S}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,n=this._additiveValue;t===xf?e[i]=e[i]+n:t===Js?(Pt(e[i],Qs),_f(Qs,Qs,n,1),e[i]=Sf(Qs)):t===Tf?_f(e[i],e[i],n,1):t===tx&&Q0(e[i],e[i],n,1)},r})(),UL=(function(){function r(e,t,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){ao("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,ne(t),i)},r.prototype.whenWithKeys=function(e,t,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new FL(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===Js&&u&&(u=Sf(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,el(u),n),this._trackKeys.push(s)}l.addKeyframe(e,el(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(t._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var h=new z0({life:n,loop:this._loop,delay:this._delay||0,onframe:function(p){t._started=2;var d=t._additiveAnimators;if(d){for(var v=!1,m=0;m<d.length;m++)if(d[m]._clip){v=!0;break}v||(t._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(t._target,p);var g=t._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](t._target,p)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(t?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},r.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var a=t[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=el(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||ne(e);for(var i=0;i<t.length;i++){var n=t[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})(),tl=UL;function qn(){return new Date().getTime()}var VL=(function(r){oe(e,r);function e(t){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,n=t.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=qn()-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,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(Zs(i),!t._paused&&t.update())}Zs(i)},e.prototype.start=function(){this._running||(this._time=qn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=qn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=qn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var n=new tl(t,i.loop);return this.addAnimator(n),n},e})(at),rx=VL;var HL=300,Id=se.domSupported,Ld=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=B(r,function(n){var a=n.replace("mouse","pointer");return t.hasOwnProperty(a)?a:n});return{mouse:r,touch:e,pointer:i}})(),ix={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},nx=!1;function Rd(r){var e=r.pointerType;return e==="pen"||e==="touch"}function GL(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Pd(r){r&&(r.zrByTouch=!0)}function YL(r,e){return Ht(r.dom,new WL(r,e),!0)}function ox(r,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return i}var WL=(function(){function r(e,t){this.stopPropagation=Ee,this.stopImmediatePropagation=Ee,this.preventDefault=Ee,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Cr={mousedown:function(r){r=Ht(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ht(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ht(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ht(this.dom,r);var e=r.toElement||r.relatedTarget;ox(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){nx=!0,r=Ht(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){nx||(r=Ht(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ht(this.dom,r),Pd(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Cr.mousemove.call(this,r),Cr.mousedown.call(this,r)},touchmove:function(r){r=Ht(this.dom,r),Pd(r),this.handler.processGesture(r,"change"),Cr.mousemove.call(this,r)},touchend:function(r){r=Ht(this.dom,r),Pd(r),this.handler.processGesture(r,"end"),Cr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<HL&&Cr.click.call(this,r)},pointerdown:function(r){Cr.mousedown.call(this,r)},pointermove:function(r){Rd(r)||Cr.mousemove.call(this,r)},pointerup:function(r){Cr.mouseup.call(this,r)},pointerout:function(r){Rd(r)||Cr.mouseout.call(this,r)}};C(["click","dblclick","contextmenu"],function(r){Cr[r]=function(e){e=Ht(this.dom,e),this.trigger(r,e)}});var Nd={pointermove:function(r){Rd(r)||Nd.mousemove.call(this,r)},pointerup:function(r){Nd.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function jL(r,e){var t=e.domHandlers;se.pointerEventsSupported?C(Ld.pointer,function(i){Cf(e,i,function(n){t[i].call(r,n)})}):(se.touchEventsSupported&&C(Ld.touch,function(i){Cf(e,i,function(n){t[i].call(r,n),GL(e)})}),C(Ld.mouse,function(i){Cf(e,i,function(n){n=ef(n),e.touching||t[i].call(r,n)})}))}function ZL(r,e){se.pointerEventsSupported?C(ix.pointer,t):se.touchEventsSupported||C(ix.mouse,t);function t(i){function n(a){a=ef(a),ox(r,a.target)||(a=YL(r,a),e.domHandlers[i].call(r,a))}Cf(e,i,n,{capture:!0})}}function Cf(r,e,t,i){r.mounted[e]=t,r.listenerOpts[e]=i,f0(r.domTarget,e,t,i)}function Od(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&c0(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var ax=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),XL=(function(r){oe(e,r);function e(t,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=i,n._localHandlerScope=new ax(t,Cr),Id&&(n._globalHandlerScope=new ax(document,Nd)),jL(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Od(this._localHandlerScope),Id&&Od(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Id&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?ZL(this,i):Od(i)}},e})(at),sx=XL;var lx=1;se.hasGlobalWindow&&(lx=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Kn=lx,rl=.4,il="#333",nl="#ccc",ux="#eee";var fx=di,cx=5e-5;function $n(r){return r>cx||r<-cx}var Qn=[],xo=[],kd=Lt(),Bd=Math.abs,hx=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return qL(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return $n(this.rotation)||$n(this.x)||$n(this.y)||$n(this.scaleX-1)||$n(this.scaleY-1)||$n(this.skewX)||$n(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(fx(i),this.invTransform=null);return}i=i||Lt(),t?this.getLocalTransform(i):fx(i),e&&(t?Wi(i,e,i):Us(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Lt(),Gr(this.invTransform,i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Qn);var i=Qn[0]<0?-1:1,n=Qn[1]<0?-1:1,a=((Qn[0]-i)*t+i)/Qn[0]||0,o=((Qn[1]-n)*t+n)/Qn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Lt(),Wi(xo,e.invTransform,t),t=xo);var i=this.originX,n=this.originY;(i||n)&&(kd[4]=i,kd[5]=n,Wi(xo,t,kd),xo[4]-=i,xo[5]-=n,t=xo),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;return n&>(i,i,n),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;return n&>(i,i,n),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&Bd(e[0]-1)>1e-10&&Bd(e[3]-1)>1e-10?Math.sqrt(Bd(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){$i(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var d=i+s,v=n+l;t[4]=-d*a-h*v*o,t[5]=-v*o-p*d*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=p*a,t[2]=h*o,u&&co(t,t,u),t[4]+=i+f,t[5]+=n+c,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),qL=hx.getLocalTransform;var bo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $i(r,e){return K_(r,e,bo)}var So=hx;function Ar(r){wf||(wf=new Wr(100)),r=r||Vt;var e=wf.get(r);return e||(e={font:r,strWidthCache:new Wr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:$e.measureText("\u56FD",r).width,asciiCharWidth:$e.measureText("a",r).width},wf.put(r,e)),e}var wf;function KL(r){if(!(zd>=px)){r=r||Vt;for(var e=[],t=+new Date,i=0;i<=127;i++)e[i]=$e.measureText(String.fromCharCode(i),r).width;var n=+new Date-t;return n>16?zd=px:n>2&&zd++,e}}var zd=0,px=5;function Fd(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=KL(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Er(r,e){var t=r.strWidthCache,i=t.get(e);return i==null&&(i=$e.measureText(e,r.font).width,t.put(e,i)),i}function dx(r,e,t,i){var n=Er(Ar(e),r),a=Jn(e),o=Qi(0,n,t),s=gi(0,a,i),l=new re(o,s,n,a);return l}function Af(r,e,t,i){var n=((r||"")+"").split(`
|
|
2
|
+
`),a=n.length;if(a===1)return dx(n[0],e,t,i);for(var o=new re(0,0,0,0),s=0;s<n.length;s++){var l=dx(n[s],e,t,i);s===0?o.copy(l):o.union(l)}return o}function Qi(r,e,t,i){return t==="right"?i?r+=e:r-=e:t==="center"&&(i?r+=e/2:r-=e/2),r}function gi(r,e,t,i){return t==="middle"?i?r+=e/2:r-=e/2:t==="bottom"&&(i?r+=e:r-=e),r}function Jn(r){return Ar(r).stWideCharWidth}function wr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function ea(r,e,t){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",c="top";if(i instanceof Array)l+=wr(i[0],t.width),u+=wr(i[1],t.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Ud="__zr_normal__",Vd=bo.concat(["ignore"]),$L=$t(bo,function(r,e){return r[e]=!0,r},{ignore:!1}),To={},QL=new re(0,0,0,0),Ef=[],Df=0,Co=1,Yd=(function(){function r(e){this.id=Yu(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(t);var f=i.position!=null,c=i.autoOverflowArea,h=void 0;if((c||f)&&(h=QL,i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),n||h.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(To,i,h):ea(To,i,h),a.x=To.x,a.y=To.y,o=To.align,s=To.verticalAlign;var p=i.origin;if(p&&i.rotation!=null){var d=void 0,v=void 0;p==="center"?(d=h.width*.5,v=h.height*.5):(d=wr(p[0],h.width),v=wr(p[1],h.height)),u=!0,a.originX=-a.x+d+(n?0:h.x),a.originY=-a.y+v+(n?0:h.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new re(0,0,0,0);a.getLocalTransform(Ef),Gr(Ef,Ef),re.copy(y,h),y.applyTransform(Ef)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,b=void 0,S=void 0;_&&this.canBeInsideText()?(x=i.insideFill,b=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(x),S=!0)):(x=i.outsideFill,b=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(x),S=!0)),x=x||"#000",(x!==g.fill||b!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=b,g.autoStroke=S,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Qe,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?nl:il},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&Pt(t);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,Xn(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},O(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Y(e))for(var i=e,n=ne(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Ud)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Vd)},r.prototype._savePrimaryToNormal=function(e,t,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Ud,!1,e)},r.prototype.useState=function(e,t,i,n){var a=e===Ud,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ue(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){ao("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=mx(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,t,yx(this,i,l),l);var h=this._textGuide;return f&&f.useState(e,t,i,!!c),h&&h.useState(e,t,i,!!c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Df,this.__dirty&=~Qe),u}}},r.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],h=this._textContent,p=mx(this,h,c,i);p&&!this.__inHover&&(this.__inHover=p);var d=this._mergeStates(n),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,yx(this,t,v),v);var m=this._textGuide;h&&h.useStates(e,t,!!p),m&&m.useStates(e,t,!!p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this.__inHover=Df,this.__dirty&=~Qe)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=ue(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var n=this.currentStates.slice(),a=ue(n,e),o=ue(n,t)>=0;a>=0?o?n.splice(a,1):n[a]=t:i&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,n=0;n<e.length;n++){var a=e[n];O(t,a),a.textConfig&&(i=i||{},O(i,a.textConfig))}return i&&(t.textConfig=i),t},r.prototype._applyStateObj=function(e,t,i,n,a,o){if(this.__inHover!==Co){var s=!(t&&n);t&&t.textConfig?(this.textConfig=O({},n?this.textConfig:i.textConfig),O(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Vd.length;f++){var c=Vd[f],h=a&&$L[c];t&&t[c]!=null?h?(u=!0,l[c]=t[c]):this[c]=t[c]:s&&i[c]!=null&&(h?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var p=this.animators[f],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(t||i)[d]:t||i)}u&&this._transitionState(e,l,o)}},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new So,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),O(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Qe;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,i){var n=e?this[e]:this,a=new tl(n,t,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var a=n.animators,o=ue(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,i){Hd(this,e,t,i)},r.prototype.animateFrom=function(e,t,i){Hd(this,e,t,i,!0)},r.prototype._transitionState=function(e,t,i,n){for(var a=Hd(this,t,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Df,e.__dirty=Qe;var t={};function i(a,o,s){t[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(h){f[s]=h}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(h){f[l]=h}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),r})();It(Yd,at);It(Yd,So);function Hd(r,e,t,i,n){t=t||{};var a=[];_x(r,"",r,e,t,i,a,n);var o=a.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&t.during&&a[0].during(function(d,v){t.during(v)});for(var h=0;h<a.length;h++){var p=a[h];f&&p.done(f),c&&p.aborted(c),t.force&&p.duration(t.duration),p.start(t.easing)}return a}function Gd(r,e,t){for(var i=0;i<t;i++)r[i]=e[i]}function JL(r){return et(r[0])}function eP(r,e,t){if(et(e[t]))if(et(r[t])||(r[t]=[]),We(e[t])){var i=e[t].length;r[t].length!==i&&(r[t]=new e[t].constructor(i),Gd(r[t],e[t],i))}else{var n=e[t],a=r[t],o=n.length;if(JL(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Gd(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Gd(a,n,o);a.length=n.length}else r[t]=e[t]}function tP(r,e){return r===e||et(r)&&et(e)&&rP(r,e)}function rP(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(r[i]!==e[i])return!1;return!0}function _x(r,e,t,i,n,a,o,s){for(var l=ne(i),u=n.duration,f=n.delay,c=n.additive,h=n.setToFinal,p=!Y(a),d=r.animators,v=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&t[g]!=null&&(p||a[g]))if(Y(y)&&!et(y)&&!Ui(y)){if(e){s||(t[g]=y,r.updateDuringAnimation(e));continue}_x(r,g,t[g],y,n,a&&a[g],o,s)}else v.push(g);else s||(t[g]=y,r.updateDuringAnimation(e),v.push(g))}var _=v.length;if(!c&&_)for(var x=0;x<d.length;x++){var b=d[x];if(b.targetName===e){var S=b.stopTracks(v);if(S){var T=ue(d,b);d.splice(T,1)}}}if(n.force||(v=ke(v,function(D){return!tP(i[D],t[D])}),_=v.length),_>0||n.force&&!o.length){var A=void 0,w=void 0,E=void 0;if(s){w={},h&&(A={});for(var x=0;x<_;x++){var g=v[x];w[g]=t[g],h?A[g]=i[g]:t[g]=i[g]}}else if(h){E={};for(var x=0;x<_;x++){var g=v[x];E[g]=el(t[g]),eP(t,i,g)}}var b=new tl(t,!1,!1,c?ke(d,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),h&&A&&b.whenWithKeys(0,A,v),E&&b.whenWithKeys(0,E,v),b.whenWithKeys(u==null?500:u,s?w:i,v).delay(f||0),r.addAnimator(b,e),o.push(b)}}function mx(r,e,t,i){return!(t&&t.hoverLayer||i)||gx(r)||e&&gx(e)?Df:Co}function gx(r){return r.type==="text"||r.type==="tspan"}function yx(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var Mf=Yd;var xx=(function(r){oe(e,r);function e(t){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===t)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var n=ue(this._children,t);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(t,i){var n=this._children,a=n[i];if(t&&t!==this&&t.parent!==this&&t!==a){n[i]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,n=this._children,a=ue(n,t);return a<0?this:(n.splice(a,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,n=0;n<t.length;n++){var a=t[n];i&&a.removeSelfFromZr(i),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];t.call(i,o,a)}return this},e.prototype.traverse=function(t,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=t.call(i,a);a.isGroup&&!o&&a.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new re(0,0,0,0),n=t||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(re.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Mf);xx.prototype.type="group";var be=xx;var If={},bx={};function iP(r){delete bx[r]}function nP(r){if(!r)return!1;if(typeof r=="string")return _o(r,1)<rl;if(r.colorStops){for(var e=r.colorStops,t=0,i=e.length,n=0;n<i;n++)t+=_o(e[n].color,1);return t/=i,t<rl}return!1}var aP=(function(){function r(e,t,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var a=new D0,o=i.renderer||"canvas";If[o]||(o=ne(If)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new If[o](t,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!se.node&&!se.worker&&!l?new sx(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?se.touchEventsSupported:!!f,h=44,p;c&&(p=G(i.pointerSize,h)),this.handler=new S0(a,s,u,s.root,p),this.animation=new rx({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=nP(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(e){var t,i=qn(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(t=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=qn();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof be&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.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,iP(this.id))},r})();function jd(r,e){var t=new aP(Yu(),r,e);return bx[t.id]=t,t}function Sx(r,e){If[r]=e}var Wd;function Tx(r){if(typeof Wd=="function")return Wd(r)}function Cx(r){Wd=r}var Ax=1e-4,Ex=20;function sP(r){return r.replace(/^\s+|\s+$/g,"")}var Re=Math.min,pe=Math.max,De=Math.abs,er=Math.round,fr=Math.floor,Zr=Math.ceil,Ji=Math.pow,wo=Math.log,Zd=Math.LN10,lP=Math.PI,uP=Math.random;function Ne(r,e,t,i){var n=e[0],a=e[1],o=t[0],s=t[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}var we=fP;function fP(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Lf(r,e,t)}function Lf(r,e,t){return z(r)?cP(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function cP(r){return!!sP(r).match(/%$/)}function me(r,e,t){return isNaN(e)?t?""+r:+r:(e=Re(pe(0,e),Ex),r=(+r).toFixed(e),t?r:+r)}function Gt(r){return r.sort(function(e,t){return e-t}),r}function Dr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(er(r*e)/e===r)return t}return hP(r)}function hP(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,n=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return pe(0,o-i)}function Pf(r,e,t){var i=De(r[1]-r[0]);if(!isFinite(i)||i===0)return NaN;var n=wo(2*De(t||1)*De(i))/Zd,a=wo(De(e))/Zd,o=pe(0,Zr(-n+a));return isFinite(o)||(o=NaN),o}function Dx(r,e){var t=$t(r,function(p,d){return p+(isNaN(d)?0:d)},0);if(t===0)return[];for(var i=Ji(10,e),n=B(r,function(p){return(isNaN(p)?0:p)/t*i*100}),a=i*100,o=B(n,function(p){return fr(p)}),s=$t(o,function(p,d){return p+d},0),l=B(n,function(p,d){return p-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return B(o,function(p){return p/i})}function yi(r,e){var t=pe(Dr(r),Dr(e)),i=r+e;return t>Ex?i:me(i,t)}var Xd=Ji(2,53)-1;function qd(r){var e=lP*2;return(r%e+e)%e}function al(r){return r>-Ax&&r<Ax}var pP=/^(?:(\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 Xr(r){if(r instanceof Date)return r;if(z(r)){var e=pP.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(er(r))}function Of(r){return Ji(10,Rf(r))}function Rf(r){if(r===0)return 0;var e=fr(wo(r)/Zd);return r/Ji(10,e)>=10&&e++,e}var Kd=2;function ta(r,e){var t=Rf(r),i=Ji(10,t),n=r/i,a;return e===Kd?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,r=a*i,me(r,-t)}function qr(r){var e=parseFloat(r);return e==r&&(e!==0||!z(r)||r.indexOf("x")<=0)?e:NaN}function $d(r){return!isNaN(qr(r))}function ol(){return er(uP()*9)}function Mx(r,e){return e===0?r:Mx(e,r%e)}function Qd(r,e){return r==null?e:e==null?r:r*e/Mx(r,e)}function tt(r){return r!=null&&isFinite(r)}var dP="[ECharts] ",Lx={},vP=typeof console!="undefined"&&console.warn&&console.log;function mP(r,e,t){if(vP){if(t){if(Lx[e])return;Lx[e]=!0}console[r](dP+e)}}function Jd(r,e){mP("error",r,e)}function ct(r){throw new Error(r)}function Px(r,e,t){return(e-r)*t+r}var Ox="series\0",gP="\0_ec_\0";function ze(r){return r instanceof Array?r:r==null?[]:[r]}function ll(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var i=0,n=t.length;i<n;i++){var a=t[i];!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a)&&(r.emphasis[e][a]=r[e][a])}}}var ev=["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 _i(r){return Y(r)&&!N(r)&&!(r instanceof Date)?r.value:r}function Rx(r){return Y(r)&&!(r instanceof Array)}function Nx(r,e,t){var i=t==="normalMerge",n=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=V();C(e,function(l,u){if(!Y(l)){e[u]=null;return}});var s=yP(r,o,t);return(i||n)&&_P(s,r,o,e),i&&xP(s,e),i||n?bP(s,e,n):a&&SP(s,e),TP(s),s}function yP(r,e,t){var i=[];if(t==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:t==="replaceMerge"||Ao(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function _P(r,e,t,i){C(i,function(n,a){if(!(!n||n.id==null)){var o=sl(n.id),s=t.get(o);if(s!=null){var l=r[s];Ue(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function xP(r,e){C(e,function(t,i){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||t.id==null)&&!Ao(t)&&!Ao(a)&&kx("name",a,t)){r[n].newOption=t,e[i]=null;return}}})}function bP(r,e,t){C(e,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||Ao(n.existing)||n.existing&&i.id!=null&&!kx("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=t):r.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),a++}})}function SP(r,e){C(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function TP(r){var e=V();C(r,function(t){var i=t.existing;i&&e.set(i.id,t)}),C(r,function(t){var i=t.newOption;Ue(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),C(r,function(t,i){var n=t.existing,a=t.newOption,o=t.keyInfo;if(Y(a)){if(o.name=a.name!=null?sl(a.name):n?n.name:Ox+i,n)o.id=sl(n.id);else if(a.id!=null)o.id=sl(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function kx(r,e,t){var i=tr(e[r],null),n=tr(t[r],null);return i!=null&&n!=null&&i===n}function sl(r){return tr(r,"")}function tr(r,e){return r==null?e:z(r)?r:fe(r)||Bs(r)?r+"":e}function Eo(r){var e=r.name;return!!(e&&e.indexOf(Ox))}function Ao(r){return r&&r.id!=null&&sl(r.id).indexOf(gP)===0}function Bx(r,e,t){C(r,function(i){var n=i.newOption;Y(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=CP(e,n,i.existing,t))})}function CP(r,e,t,i){var n=e.type?e.type:t?t.subType:i.determineSubType(r,e);return n}function cr(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return N(e.dataIndex)?B(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return N(e.name)?B(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ee(){var r="__ec_inner_"+wP++;return function(e){return e[r]||(e[r]={})}}var wP=ol();function Nf(r,e,t){var i=ul(e,t),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=en(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function ul(r,e){var t;if(z(r)){var i={};i[r+"Index"]=0,t=i}else t=r;var n=V(),a={},o=!1;return C(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ue(e.includeMainTypes,f)<0)){o=o||!!f;var h=n.get(f)||n.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var je={useDefault:!0,enableAll:!1,enableNone:!1},zx={useDefault:!1,enableAll:!0,enableNone:!0};function en(r,e,t,i){i=i||je;var n=t.index,a=t.id,o=t.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(e))?[l]:[],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=r.queryComponents({mainType:e,index:n,id:a,name:o}),s}function Fx(r,e,t){var i={};i[e+"Id"]=r[e+"Id"],i[e+"Index"]=r[e+"Index"],i[e+"Name"]=r[e+"Name"];var n={mainType:e,query:i};return t&&(n.subType=t),n}function tv(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function Ux(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function Vx(r){return r==="auto"?se.domSupported?"html":"richText":r||"html"}function rv(r,e,t,i,n){var a=e==null||e==="auto";if(i==null)return i;if(fe(i)){var o=Px(t||0,i,n);return me(o,a?Math.max(Dr(t||0),Dr(i)):e)}else{if(z(i))return n<1?t:i;for(var s=[],l=t,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var p=l&&l[c]?l[c]:0,d=u[c],o=Px(p,d,n);s[c]=me(o,a?Math.max(Dr(p),Dr(d)):e)}}return s}}var KG=(function(){function r(){}return r.prototype.reset=function(e,t,i,n){return this._list=e,this._step=n=n||1,this._idx=t,this._end=i!=null?i:n>0?e.length:0,this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function yt(){return[1/0,-1/0]}function fl(r,e){Mr(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function iv(r,e){Mr(e)&&e<r[0]&&(r[0]=e)}function nv(r,e){Mr(e)&&e>r[1]&&(r[1]=e)}function Hx(r,e){xi(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function Mr(r){return r!=null&&isFinite(r)}function xi(r,e){return Mr(r)&&Mr(e)&&r<=e}function Gx(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function Do(r){xi(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function Mo(){var r="__ec_once_"+AP++;return function(e,t){Pe(e,r)||(e[r]=1,t())}}var AP=ol();function Io(r,e,t){var i=V(),n=0;C(r,function(a){var o=e(a),s=i.get(o)||0;t&&t(a,s),!s&&!t&&(r[n++]=a),i.set(o,s+1)}),t||(r.length=n)}function Yx(r){return r.value+""}function Wx(r){return r+""}function kf(r,e){return G(e,!0)?r.seriesIndex+2:0}function Bf(r,e,t){var i=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&i>=t.threshold,large:r.get("large")&&i>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function jx(r,e){return{seriesType:r,overallReset:e}}function Lo(r){return{overallReset:r}}var EP=".",ra="___EC__COMPONENT__CONTAINER___",Zx="___EC__EXTENDED_CLASS___";function Yt(r){var e={main:"",sub:""};if(r){var t=r.split(EP);e.main=t[0]||"",e.sub=t[1]||""}return e}function DP(r){Ue(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Xx(r){return!!(r&&r[Zx])}function Po(r,e){r.$constructor=r,r.extend=function(t){var i=this,n;return MP(i)?n=(function(a){F(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(t.$constructor||i).apply(this,arguments)},$_(n,this)),O(n.prototype,t),n[Zx]=!0,n.extend=this.extend,n.superCall=LP,n.superApply=PP,n.superClass=i,n}}function MP(r){return Z(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function zf(r,e){r.extend=e.extend}var IP=Math.round(Math.random()*10);function qx(r){var e=["__\0is_clz",IP++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function LP(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(r,t)}function PP(r,e,t){return this.superClass.prototype[e].apply(r,t)}function rn(r){var e={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){DP(n),i.prototype.type=n;var a=Yt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==ra){var o=t(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=e[i];if(o&&o[ra]&&(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},r.getClassesByMainType=function(i){var n=Yt(i),a=[],o=e[n.main];return o&&o[ra]?C(o,function(s,l){l!==ra&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=Yt(i);return!!e[n.main]},r.getAllClassMainTypes=function(){var i=[];return C(e,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=Yt(i),a=e[n.main];return a&&a[ra]};function t(i){var n=e[i.main];return(!n||!n[ra])&&(n=e[i.main]={},n[ra]=!0),n}}function Kr(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ue(n,l)>=0||a&&ue(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var OP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],RP=Kr(OP),Kx=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return RP(this,e,t)},r})();var ov=new Wr(50);function Qx(r){if(typeof r=="string"){var e=ov.get(r);return e&&e.image}else return r}function cl(r,e,t,i,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=ov.get(r),o={hostEl:t,cb:i,cbPayload:n};return a?(e=a.image,!Oo(e)&&a.pending.push(o)):(e=$e.loadImage(r,$x,$x),e.__zrImageSrc=r,ov.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function $x(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Oo(r){return r&&r.width&&r.height}var sv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function kP(r,e,t,i,n,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
|
|
3
|
+
`);a=rb(t,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)ib(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
4
|
+
`),r.isTruncated=s}function rb(r,e,t,i){i=i||{};var n=O({},i);t=G(t,"..."),n.maxIterations=G(i.maxIterations,2);var a=n.minChar=G(i.minChar,0),o=n.fontMeasureInfo=Ar(e),s=o.asciiCharWidth;n.placeholder=G(i.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<a&&l>=s;u++)l-=s;var f=Er(o,t);return f>l&&(t="",f=0),l=r-f,n.ellipsis=t,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function ib(r,e,t){var i=t.containerWidth,n=t.contentWidth,a=t.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Er(a,e);if(o<=i){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?BP(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Er(a,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function BP(r,e,t){for(var i=0,n=0,a=r.length;n<a&&i<e;n++)i+=Fd(t,r.charCodeAt(n));return n}function nb(r,e,t,i){var n=fv(r),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Jn(u),h=G(e.lineHeight,c),p=e.lineOverflow==="truncate",d=!1,v=e.width;v==null&&t!=null&&(v=t-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;v!=null&&(a==="break"||a==="breakAll")?g=n?ob(n,e.font,v,a==="breakAll",0).lines:[]:g=n?n.split(`
|
|
5
|
+
`):[];var y=g.length*h;if(m==null&&(m=y),y>m&&p){var _=Math.floor(m/h);d=d||g.length>_,g=g.slice(0,_),y=g.length*h}if(n&&f&&v!=null)for(var x=rb(v,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},S=0;S<g.length;S++)ib(b,g[S],x),g[S]=b.textLine,d=d||b.isTruncated;for(var T=m,A=0,w=Ar(u),S=0;S<g.length;S++)A=Math.max(Er(w,g[S]),A);v==null&&(v=A);var E=v;return T+=l,E+=s,{lines:g,height:m,outerWidth:E,outerHeight:T,lineHeight:h,calculatedLineHeight:c,contentWidth:A,contentHeight:y,width:v,isTruncated:d}}var zP=(function(){function r(){}return r})(),Jx=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),FP=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function ab(r,e,t,i,n){var a=new FP,o=fv(r);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var h=e.overflow,p=(h==="break"||h==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:h==="breakAll"}:null,d=sv.lastIndex=0,v;(v=sv.exec(o))!=null;){var m=v.index;m>d&&lv(a,o.substring(d,m),e,p),lv(a,v[2],e,p,v[1]),d=sv.lastIndex}d<o.length&&lv(a,o.substring(d,o.length),e,p);var g=[],y=0,_=0,x=h==="truncate",b=e.lineOverflow==="truncate",S={};function T(ye,Ge,Fe){ye.width=Ge,ye.lineHeight=Fe,y+=Fe,_=Math.max(_,Ge)}e:for(var A=0;A<a.lines.length;A++){for(var w=a.lines[A],E=0,D=0,I=0;I<w.tokens.length;I++){var M=w.tokens[I],L=M.styleName&&e.rich[M.styleName]||{},P=M.textPadding=L.padding,R=P?P[1]+P[3]:0,U=M.font=L.font||e.font;M.contentHeight=Jn(U);var k=G(L.height,M.contentHeight);if(M.innerHeight=k,P&&(k+=P[0]+P[2]),M.height=k,M.lineHeight=Qt(L.lineHeight,e.lineHeight,k),M.align=L&&L.align||n,M.verticalAlign=L&&L.verticalAlign||"middle",b&&c!=null&&y+M.lineHeight>c){var H=a.lines.length;I>0?(w.tokens=w.tokens.slice(0,I),T(w,D,E),a.lines=a.lines.slice(0,A+1)):a.lines=a.lines.slice(0,A),a.isTruncated=a.isTruncated||a.lines.length<H;break e}var W=L.width,q=W==null||W==="auto";if(typeof W=="string"&&W.charAt(W.length-1)==="%")M.percentWidth=W,g.push(M),M.contentWidth=Er(Ar(U),M.text);else{if(q){var $=L.backgroundColor,J=$&&$.image;J&&(J=Qx(J),Oo(J)&&(M.width=Math.max(M.width,J.width*k/J.height)))}var K=x&&f!=null?f-D:null;K!=null&&K<M.width?!q||K<R?(M.text="",M.width=M.contentWidth=0):(kP(S,M.text,K-R,U,e.ellipsis,{minChar:e.truncateMinChar}),M.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,M.width=M.contentWidth=Er(Ar(U),M.text)):M.contentWidth=Er(Ar(U),M.text)}M.width+=R,D+=M.width,L&&(E=Math.max(E,M.lineHeight))}T(w,D,E)}a.outerWidth=a.width=G(f,_),a.outerHeight=a.height=G(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var A=0;A<g.length;A++){var M=g[A],he=M.percentWidth;M.width=parseInt(he,10)/100*a.width}return a}function lv(r,e,t,i,n){var a=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,c;if(i){var h=o.padding,p=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=wr(o.width,i.width)+p;s.length>0&&d+i.accumWidth>i.width&&(f=e.split(`
|
|
6
|
+
`),u=!0),i.accumWidth=d}else{var v=ob(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=v.accumWidth+p,c=v.linesWidths,f=v.lines}}f||(f=e.split(`
|
|
7
|
+
`));for(var m=Ar(l),g=0;g<f.length;g++){var y=f[g],_=new zP;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:Er(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new Jx)).tokens,b=x.length;b===1&&x[0].isLineHolder?x[0]=_:(y||!b||a)&&x.push(_)}else s.push(new Jx([_]))}}function UP(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var VP=$t(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function HP(r){return UP(r)?!!VP[r]:!0}function ob(r,e,t,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=Ar(e),h=0;h<r.length;h++){var p=r.charAt(h);if(p===`
|
|
8
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Fd(c,p.charCodeAt(0)),v=i?!1:!HP(p);if(a.length?f+d>t:n+f+d>t){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=p,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=p,f=d)):v?(a.push(l),o.push(u),l=p,u=d):(a.push(p),o.push(d));continue}f+=d,v?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function uv(r,e,t,i,n,a){if(r.baseX=t,r.baseY=i,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;re.set(eb,Qi(t,o,n),gi(i,s,a),o,s),re.intersect(e,eb,null,tb);var l=tb.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Qi(l.x,l.width,n,!0),r.baseY=gi(l.y,l.height,a,!0)}}var eb=new re(0,0,0,0),tb={outIntersectRect:{},clamp:!0};function fv(r){return r!=null?r+="":r=""}function sb(r){var e=fv(r.text),t=r.font,i=Er(Ar(t),e),n=Jn(t);return Ff(r,i,n,null)}function Ff(r,e,t,i){var n=new re(Qi(r.x||0,e,r.textAlign),gi(r.y||0,t,r.textBaseline),e,t),a=i!=null?i:cv(r)?r.lineWidth:0;return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function cv(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var dv="__zr_style_"+Math.round(Math.random()*10),$r={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ia={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$r[dv]=!0;var lb=["z","z2","invisible"],GP=["invisible"],YP=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=ne(t),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(t[a]):r.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&WP(this,t,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 l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=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,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new re(0,0,0,0)),i?re.applyTransform(t,n,i):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new re(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,i){t!=="style"?r.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:O(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Wn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Wn)},e.prototype.styleUpdated=function(){this.__dirty&=~Wn},e.prototype.createStyle=function(t){return Hi($r,t)},e.prototype.useStyle=function(t){t[dv]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[dv]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,lb)},e.prototype._applyStateObj=function(t,i,n,a,o,s){r.prototype._applyStateObj.call(this,t,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===Co,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=ne(c),p=0;p<h.length;p++){var d=h[p];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var v=ne(f),p=0;p<v.length;p++){var d=v[p];this.style[d]=this.style[d]}this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?GP:lb,p=0;p<m.length;p++){var d=m[p];i&&i[d]!=null?this[d]=i[d]:l&&n[d]!=null&&(this[d]=n[d])}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),n,a=0;a<t.length;a++){var o=t[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,i){return O(t,i),t},e.prototype.getAnimationStyleProps=function(){return ia},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Qe|Wn})(),e})(Mf),hv=new re(0,0,0,0),pv=new re(0,0,0,0);function WP(r,e,t){return hv.copy(r.getBoundingRect()),r.transform&&hv.applyTransform(r.transform),pv.width=e,pv.height=t,!hv.intersect(pv)}var Qr=YP;var hr=Math.min,pr=Math.max,vv=Math.sin,mv=Math.cos,na=Math.PI*2,Uf=Gi(),Vf=Gi(),Hf=Gi();function gv(r,e,t,i,n,a){n[0]=hr(r,t),n[1]=hr(e,i),a[0]=pr(r,t),a[1]=pr(e,i)}var ub=[],fb=[];function cb(r,e,t,i,n,a,o,s,l,u){var f=sf,c=Be,h=f(r,t,n,o,ub);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<h;p++){var d=c(r,t,n,o,ub[p]);l[0]=hr(d,l[0]),u[0]=pr(d,u[0])}h=f(e,i,a,s,fb);for(var p=0;p<h;p++){var v=c(e,i,a,s,fb[p]);l[1]=hr(v,l[1]),u[1]=pr(v,u[1])}l[0]=hr(r,l[0]),u[0]=pr(r,u[0]),l[0]=hr(o,l[0]),u[0]=pr(o,u[0]),l[1]=hr(e,l[1]),u[1]=pr(e,u[1]),l[1]=hr(s,l[1]),u[1]=pr(s,u[1])}function hb(r,e,t,i,n,a,o,s){var l=lf,u=st,f=pr(hr(l(r,t,n),1),0),c=pr(hr(l(e,i,a),1),0),h=u(r,t,n,f),p=u(e,i,a,c);o[0]=hr(r,n,h),o[1]=hr(e,a,p),s[0]=pr(r,n,h),s[1]=pr(e,a,p)}function pb(r,e,t,i,n,a,o,s,l){var u=hi,f=pi,c=Math.abs(n-a);if(c%na<1e-4&&c>1e-4){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(Uf[0]=mv(n)*t+r,Uf[1]=vv(n)*i+e,Vf[0]=mv(a)*t+r,Vf[1]=vv(a)*i+e,u(s,Uf,Vf),f(l,Uf,Vf),n=n%na,n<0&&(n=n+na),a=a%na,a<0&&(a=a+na),n>a&&!o?a+=na:n<a&&o&&(n+=na),o){var h=a;a=n,n=h}for(var p=0;p<a;p+=Math.PI/2)p>n&&(Hf[0]=mv(p)*t+r,Hf[1]=vv(p)*i+e,u(s,Hf,s),f(l,Hf,l))}var Ae={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},aa=[],oa=[],Jr=[],nn=[],ei=[],ti=[],yv=Math.min,_v=Math.max,sa=Math.cos,la=Math.sin,bi=Math.abs,Sv=Math.PI,an=Sv*2,xv=typeof Float32Array!="undefined",hl=[];function bv(r){var e=Math.round(r/Sv*1e8)/1e8;return e%2*Sv}function Tv(r,e){var t=bv(r[0]);t<0&&(t+=an);var i=t-r[0],n=r[1];n+=i,!e&&n-t>=an?n=t+an:e&&t-n>=an?n=t-an:!e&&t>n?n=t+(an-bv(t-n)):e&&t<n&&(n=t-(an-bv(n-t))),r[0]=t,r[1]=n}var jP=(function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,i){i=i||0,i>0&&(this._ux=bi(i/Kn/e)||0,this._uy=bi(i/Kn/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ae.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var i=bi(e-this._xi),n=bi(t-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ae.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,i,n,a,o){return this._drawPendingPt(),this.addData(Ae.C,e,t,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,n){return this._drawPendingPt(),this.addData(Ae.Q,e,t,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(e,t,i,n,a,o){this._drawPendingPt(),hl[0]=n,hl[1]=a,Tv(hl,o),n=hl[0],a=hl[1];var s=a-n;return this.addData(Ae.A,e,t,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,n,a,o),this._xi=sa(a)*i+e,this._yi=la(a)*i+t,this},r.prototype.arcTo=function(e,t,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,n,a),this},r.prototype.rect=function(e,t,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,n),this.addData(Ae.R,e,t,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ae.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&xv&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,i=0,n=this._len,a=0;a<t;a++)i+=e[a].len();var o=this.data;if(xv&&(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<t;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},r.prototype.addData=function(e,t,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,xv&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Jr[0]=Jr[1]=ei[0]=ei[1]=Number.MAX_VALUE,nn[0]=nn[1]=ti[0]=ti[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],i=e[o+1],n=t,a=i),s){case Ae.M:t=n=e[o++],i=a=e[o++],ei[0]=n,ei[1]=a,ti[0]=n,ti[1]=a;break;case Ae.L:gv(t,i,e[o],e[o+1],ei,ti),t=e[o++],i=e[o++];break;case Ae.C:cb(t,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ei,ti),t=e[o++],i=e[o++];break;case Ae.Q:hb(t,i,e[o++],e[o++],e[o],e[o+1],ei,ti),t=e[o++],i=e[o++];break;case Ae.A:var u=e[o++],f=e[o++],c=e[o++],h=e[o++],p=e[o++],d=e[o++]+p;o+=1;var v=!e[o++];l&&(n=sa(p)*c+u,a=la(p)*h+f),pb(u,f,c,h,p,d,v,ei,ti),t=sa(d)*c+u,i=la(d)*h+f;break;case Ae.R:n=t=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];gv(n,a,n+m,a+g,ei,ti);break;case Ae.Z:t=n,i=a;break}hi(Jr,Jr,ei),pi(nn,nn,ti)}return o===0&&(Jr[0]=Jr[1]=nn[0]=nn[1]=0),new re(Jr[0],Jr[1],nn[0]-Jr[0],nn[1]-Jr[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<t;){var p=e[h++],d=h===1;d&&(a=e[h],o=e[h+1],s=a,l=o);var v=-1;switch(p){case Ae.M:a=s=e[h++],o=l=e[h++];break;case Ae.L:{var m=e[h++],g=e[h++],y=m-a,_=g-o;(bi(y)>i||bi(_)>n||h===t-1)&&(v=Math.sqrt(y*y+_*_),a=m,o=g);break}case Ae.C:{var x=e[h++],b=e[h++],m=e[h++],g=e[h++],S=e[h++],T=e[h++];v=R0(a,o,x,b,m,g,S,T,10),a=S,o=T;break}case Ae.Q:{var x=e[h++],b=e[h++],m=e[h++],g=e[h++];v=B0(a,o,x,b,m,g,10),a=m,o=g;break}case Ae.A:var A=e[h++],w=e[h++],E=e[h++],D=e[h++],I=e[h++],M=e[h++],L=M+I;h+=1,d&&(s=sa(I)*E+A,l=la(I)*D+w),v=_v(E,D)*yv(an,Math.abs(M)),a=sa(L)*E+A,o=la(L)*D+w;break;case Ae.R:{s=a=e[h++],l=o=e[h++];var P=e[h++],R=e[h++];v=P*2+R*2;break}case Ae.Z:{var y=s-a,_=l-o;v=Math.sqrt(y*y+_*_),a=s,o=l;break}}v>=0&&(u[c++]=v,f+=v)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,p=t<1,d,v,m=0,g=0,y,_=0,x,b;if(!(p&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,v=this._pathLen,y=t*v,!y)))e:for(var S=0;S<o;){var T=i[S++],A=S===1;switch(A&&(u=i[S],f=i[S+1],s=u,l=f),T!==Ae.L&&_>0&&(e.lineTo(x,b),_=0),T){case Ae.M:s=u=i[S++],l=f=i[S++],e.moveTo(u,f);break;case Ae.L:{c=i[S++],h=i[S++];var w=bi(c-u),E=bi(h-f);if(w>n||E>a){if(p){var D=d[g++];if(m+D>y){var I=(y-m)/D;e.lineTo(u*(1-I)+c*I,f*(1-I)+h*I);break e}m+=D}e.lineTo(c,h),u=c,f=h,_=0}else{var M=w*w+E*E;M>_&&(x=c,b=h,_=M)}break}case Ae.C:{var L=i[S++],P=i[S++],R=i[S++],U=i[S++],k=i[S++],H=i[S++];if(p){var D=d[g++];if(m+D>y){var I=(y-m)/D;vo(u,L,R,k,I,aa),vo(f,P,U,H,I,oa),e.bezierCurveTo(aa[1],oa[1],aa[2],oa[2],aa[3],oa[3]);break e}m+=D}e.bezierCurveTo(L,P,R,U,k,H),u=k,f=H;break}case Ae.Q:{var L=i[S++],P=i[S++],R=i[S++],U=i[S++];if(p){var D=d[g++];if(m+D>y){var I=(y-m)/D;mo(u,L,R,I,aa),mo(f,P,U,I,oa),e.quadraticCurveTo(aa[1],oa[1],aa[2],oa[2]);break e}m+=D}e.quadraticCurveTo(L,P,R,U),u=R,f=U;break}case Ae.A:var W=i[S++],q=i[S++],$=i[S++],J=i[S++],K=i[S++],he=i[S++],ye=i[S++],Ge=!i[S++],Fe=$>J?$:J,Se=bi($-J)>.001,Le=K+he,ce=!1;if(p){var D=d[g++];m+D>y&&(Le=K+he*(y-m)/D,ce=!0),m+=D}if(Se&&e.ellipse?e.ellipse(W,q,$,J,ye,K,Le,Ge):e.arc(W,q,Fe,K,Le,Ge),ce)break e;A&&(s=sa(K)*$+W,l=la(K)*J+q),u=sa(Le)*$+W,f=la(Le)*J+q;break;case Ae.R:s=u=i[S],l=f=i[S+1],c=i[S++],h=i[S++];var _e=i[S++],Ft=i[S++];if(p){var D=d[g++];if(m+D>y){var Ye=y-m;e.moveTo(c,h),e.lineTo(c+yv(Ye,_e),h),Ye-=_e,Ye>0&&e.lineTo(c+_e,h+yv(Ye,Ft)),Ye-=Ft,Ye>0&&e.lineTo(c+_v(_e-Ye,0),h+Ft),Ye-=_e,Ye>0&&e.lineTo(c,h+_v(Ft-Ye,0));break e}m+=D}e.rect(c,h,_e,Ft);break;case Ae.Z:if(p){var D=d[g++];if(m+D>y){var I=(y-m)/D;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}m+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Ae,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})(),_t=jP;function ua(r,e,t,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>r+s&&a>t+s||a<r-s&&a<t-s)return!1;if(r!==t)l=(e-i)/(r-t),u=(r*i-t*e)/(r-t);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function db(r,e,t,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>r+c&&u>t+c&&u>n+c&&u>o+c||u<r-c&&u<t-c&&u<n-c&&u<o-c)return!1;var h=O0(r,e,t,i,n,a,o,s,u,f,null);return h<=c/2}function vb(r,e,t,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)return!1;var f=k0(r,e,t,i,n,a,s,l,null);return f<=u/2}var mb=Math.PI*2;function pl(r){return r%=mb,r<0&&(r+=mb),r}var dl=Math.PI*2;function gb(r,e,t,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(i-n)%dl<1e-4)return!0;if(a){var c=i;i=pl(n),n=pl(c)}else i=pl(i),n=pl(n);i>n&&(n+=dl);var h=Math.atan2(l,s);return h<0&&(h+=dl),h>=i&&h<=n||h+dl>=i&&h+dl<=n}function Si(r,e,t,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var on=_t.CMD,fa=Math.PI*2,$P=1e-4;function QP(r,e){return Math.abs(r-e)<$P}var Ot=[-1,-1,-1],dr=[-1,-1];function JP(){var r=dr[0];dr[0]=dr[1],dr[1]=r}function eO(r,e,t,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=jn(e,i,a,s,u,Ot);if(f===0)return 0;for(var c=0,h=-1,p=void 0,d=void 0,v=0;v<f;v++){var m=Ot[v],g=m===0||m===1?.5:1,y=Be(r,t,n,o,m);y<l||(h<0&&(h=sf(e,i,a,s,dr),dr[1]<dr[0]&&h>1&&JP(),p=Be(e,i,a,s,dr[0]),h>1&&(d=Be(e,i,a,s,dr[1]))),h===2?m<dr[0]?c+=p<e?g:-g:m<dr[1]?c+=d<p?g:-g:c+=s<d?g:-g:m<dr[0]?c+=p<e?g:-g:c+=s<p?g:-g)}return c}function tO(r,e,t,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=N0(e,i,a,s,Ot);if(l===0)return 0;var u=lf(e,i,a);if(u>=0&&u<=1){for(var f=0,c=st(e,i,a,u),h=0;h<l;h++){var p=Ot[h]===0||Ot[h]===1?.5:1,d=st(r,t,n,Ot[h]);d<o||(Ot[h]<u?f+=c<e?p:-p:f+=a<c?p:-p)}return f}else{var p=Ot[0]===0||Ot[0]===1?.5:1,d=st(r,t,n,Ot[0]);return d<o?0:a<e?p:-p}}function rO(r,e,t,i,n,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ot[0]=-l,Ot[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=fa-1e-4){i=0,n=fa;var f=a?1:-1;return o>=Ot[0]+r&&o<=Ot[1]+r?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=fa,n+=fa);for(var h=0,p=0;p<2;p++){var d=Ot[p];if(d+r>o){var v=Math.atan2(s,d),f=a?1:-1;v<0&&(v=fa+v),(v>=i&&v<=n||v+fa>=i&&v+fa<=n)&&(v>Math.PI/2&&v<Math.PI*1.5&&(f=-f),h+=f)}}return h}function yb(r,e,t,i,n){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,h,p,d=0;d<o;){var v=a[d++],m=d===1;switch(v===on.M&&d>1&&(t||(s+=Si(l,u,f,c,i,n))),m&&(l=a[d],u=a[d+1],f=l,c=u),v){case on.M:f=a[d++],c=a[d++],l=f,u=c;break;case on.L:if(t){if(ua(l,u,a[d],a[d+1],e,i,n))return!0}else s+=Si(l,u,a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case on.C:if(t){if(db(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,n))return!0}else s+=eO(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case on.Q:if(t){if(vb(l,u,a[d++],a[d++],a[d],a[d+1],e,i,n))return!0}else s+=tO(l,u,a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case on.A:var g=a[d++],y=a[d++],_=a[d++],x=a[d++],b=a[d++],S=a[d++];d+=1;var T=!!(1-a[d++]);h=Math.cos(b)*_+g,p=Math.sin(b)*x+y,m?(f=h,c=p):s+=Si(l,u,h,p,i,n);var A=(i-g)*x/_+g;if(t){if(gb(g,y,x,b,b+S,T,e,A,n))return!0}else s+=rO(g,y,x,b,b+S,T,A,n);l=Math.cos(b+S)*_+g,u=Math.sin(b+S)*x+y;break;case on.R:f=l=a[d++],c=u=a[d++];var w=a[d++],E=a[d++];if(h=f+w,p=c+E,t){if(ua(f,c,h,c,e,i,n)||ua(h,c,h,p,e,i,n)||ua(h,p,f,p,e,i,n)||ua(f,p,f,c,e,i,n))return!0}else s+=Si(h,c,h,p,i,n),s+=Si(f,p,f,c,i,n);break;case on.Z:if(t){if(ua(l,u,f,c,e,i,n))return!0}else s+=Si(l,u,f,c,i,n);l=f,u=c;break}}return!t&&!QP(u,c)&&(s+=Si(l,u,f,c,i,n)||0),s!==0}function _b(r,e,t){return yb(r,0,!1,e,t)}function xb(r,e,t,i){return yb(r,e,!0,t,i)}var Ro=ie({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$r),nO={style:ie({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ia.style)},Cv=bo.concat(["invisible","culling","z","z2","zlevel","parent"]),aO=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var 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<Cv.length;++s)n[Cv[s]]=this[Cv[s]];n.__dirty|=Qe}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=ne(t);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=t[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(z(t)){var i=_o(t,0);return i>.5?il:i>.2?ux:nl}else if(t)return nl}return il},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(z(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=_o(t,0)<rl;if(a===o)return i}},e.prototype.buildPath=function(t,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~ji},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new _t(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,n=!t;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ji)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect(),o=this.style;if(t=n[0],i=n[1],a.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),xb(s,l/u,t,i)))return!0}if(this.hasFill())return _b(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ji,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):r.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=i:O(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&ji)},e.prototype.createStyle=function(t){return Hi(Ro,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=O({},this.shape))},e.prototype._applyStateObj=function(t,i,n,a,o,s){if(r.prototype._applyStateObj.call(this,t,i,n,a,o,s),this.__inHover!==Co){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=O({},n.shape),O(u,i.shape)):(u=O({},a?this.shape:n.shape),O(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=O({},this.shape);for(var f={},c=ne(u),h=0;h<c.length;h++){var p=c[h];typeof u[p]=="object"?this.shape[p]=u[p]:f[p]=u[p]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),n,a=0;a<t.length;a++){var o=t[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return nO},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=(function(a){oe(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return te(t.style)},o.prototype.getDefaultShape=function(){return te(t.shape)},o})(e);for(var n in t)typeof t[n]=="function"&&(i.prototype[n]=t[n]);return i},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Qe|Wn|ji})(),e})(Qr),ae=aO;var oO=ie({strokeFirst:!0,font:Vt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ro),bb=(function(r){oe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return cv(this.style)},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Hi(oO,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=sb(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Qr);bb.prototype.type="tspan";var ca=bb;var sO=ie({x:0,y:0},$r),lO={style:ie({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ia.style)};function uO(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Sb=(function(r){oe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Hi(sO,t)},e.prototype._getSize=function(t){var i=this.style,n=i[t];if(n!=null)return n;var a=uO(i.image)?i.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return lO},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new re(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Qr);Sb.prototype.type="image";var Tt=Sb;function Tb(r,e){var t=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),r.moveTo(t+s,i),r.lineTo(t+n-l,i),l!==0&&r.arc(t+n-l,i+l,l,-Math.PI/2,0),r.lineTo(t+n,i+a-u),u!==0&&r.arc(t+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(t+f,i+a),f!==0&&r.arc(t+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(t,i+s),s!==0&&r.arc(t+s,i+s,s,Math.PI,Math.PI*1.5),r.closePath()}var No=Math.round;function Gf(r,e,t){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&(No(i*2)===No(n*2)&&(r.x1=r.x2=sn(i,s,!0)),No(a*2)===No(o*2)&&(r.y1=r.y2=sn(a,s,!0))),r}}function Yf(r,e,t){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=sn(i,s,!0),r.y=sn(n,s,!0),r.width=Math.max(sn(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(sn(n+o,s,!1)-r.y,o===0?0:1)),r}}function sn(r,e,t){if(!e)return r;var i=No(r*2);return(i+No(e))%2===0?i/2:(i+(t?1:-1))/2}var hO=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})();var pO={},Cb=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new hO},e.prototype.buildPath=function(t,i){var n,a,o,s;if(this.subPixelOptimize){var l=Yf(pO,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Tb(t,i):t.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ae);Cb.prototype.type="rect";var xe=Cb;var wb={fill:"#000"},Ab=2,ri={},dO={style:ie({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},ia.style)},Rb=(function(r){oe(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=wb,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,gO(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new re(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t)):(a=a||l.clone(),a.union(l))}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||wb},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,i){if(!i)return t;var n=i.rich,a=t.rich||n&&{};return O(t,i),n&&a?(this._mergeRich(a,n),t.rich=a):a&&(t.rich=a),t},e.prototype._mergeRich=function(t,i){for(var n=ne(i),a=0;a<n.length;a++){var o=n[a];t[o]=t[o]||{},O(t[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return dO},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];return(!i||!(i instanceof t))&&(i=new t),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||Vt,n=t.padding,a=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||a.align||"left",u=t.verticalAlign||a.verticalAlign||"top";uv(ri,a.overflowRect,o,s,l,u),o=ri.baseX,s=ri.baseY;var f=Ob(t),c=nb(f,t,ri.outerWidth,ri.outerHeight),h=wv(t),p=!!t.backgroundColor,d=c.outerHeight,v=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=gi(s,c.contentHeight,u);if(h||n){var x=Qi(o,v,l),b=gi(s,d,u);h&&this._renderBackground(t,t,x,b,v,d)}_+=g/2,n&&(y=Pb(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var S=0,T=!1,A=!1,w=Lb("fill"in t?t.fill:(A=!0,a.fill)),E=Ib("stroke"in t?t.stroke:!p&&(!a.autoStroke||A)?(S=Ab,T=!0,a.stroke):null),D=t.textShadowBlur>0,I=0;I<m.length;I++){var M=this._getOrCreateChild(ca),L=M.createStyle();M.useStyle(L),L.text=m[I],L.x=y,L.y=_,l&&(L.textAlign=l),L.textBaseline="middle",L.opacity=t.opacity,L.strokeFirst=!0,D&&(L.shadowBlur=t.textShadowBlur||0,L.shadowColor=t.textShadowColor||"transparent",L.shadowOffsetX=t.textShadowOffsetX||0,L.shadowOffsetY=t.textShadowOffsetY||0),L.stroke=E,L.fill=w,E&&(L.lineWidth=t.lineWidth||S,L.lineDash=t.lineDash,L.lineDashOffset=t.lineDashOffset||0),L.font=i,Db(L,t),_+=g,M.setBoundingRect(Ff(L,c.contentWidth,c.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,i=this._defaultStyle,n=t.align||i.align,a=t.verticalAlign||i.verticalAlign,o=t.x||0,s=t.y||0;uv(ri,i.overflowRect,o,s,n,a),o=ri.baseX,s=ri.baseY;var l=Ob(t),u=ab(l,t,ri.outerWidth,ri.outerHeight,n),f=u.width,c=u.outerWidth,h=u.outerHeight,p=t.padding;this.isTruncated=!!u.isTruncated;var d=Qi(o,c,n),v=gi(s,h,a),m=d,g=v;p&&(m+=p[3],g+=p[0]);var y=m+f;wv(t)&&this._renderBackground(t,t,d,v,c,h);for(var _=!!t.backgroundColor,x=0;x<u.lines.length;x++){for(var b=u.lines[x],S=b.tokens,T=S.length,A=b.lineHeight,w=b.width,E=0,D=m,I=y,M=T-1,L=void 0;E<T&&(L=S[E],!L.align||L.align==="left");)this._placeToken(L,t,A,g,D,"left",_),w-=L.width,D+=L.width,E++;for(;M>=0&&(L=S[M],L.align==="right");)this._placeToken(L,t,A,g,I,"right",_),w-=L.width,I-=L.width,M--;for(D+=(f-(D-m)-(y-I)-w)/2;E<=M;)L=S[E],this._placeToken(L,t,A,g,D+L.width/2,"center",_),D+=L.width,E++;g+=A}},e.prototype._placeToken=function(t,i,n,a,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,c=a+n/2;f==="top"?c=a+t.height/2:f==="bottom"&&(c=a+n-t.height/2);var h=!t.isLineHolder&&wv(u);h&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,c-t.height/2,t.width,t.height);var p=!!u.backgroundColor,d=t.textPadding;d&&(o=Pb(o,s,d),c-=t.height/2-d[0]-t.innerHeight/2);var v=this._getOrCreateChild(ca),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,b=Lb("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),S=Ib("stroke"in u?u.stroke:"stroke"in i?i.stroke:!p&&!l&&(!g.autoStroke||y)?(_=Ab,x=!0,g.stroke):null),T=u.textShadowBlur>0||i.textShadowBlur>0;m.text=t.text,m.x=o,m.y=c,T&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Vt,m.opacity=Qt(u.opacity,i.opacity,1),Db(m,u),S&&(m.lineWidth=Qt(u.lineWidth,i.lineWidth,_),m.lineDash=G(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=S),b&&(m.fill=b),v.setBoundingRect(Ff(m,t.contentWidth,t.contentHeight,x?0:null))},e.prototype._renderBackground=function(t,i,n,a,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,c=l&&l.image,h=l&&!c,p=t.borderRadius,d=this,v,m;if(h||t.lineHeight||u&&f){v=this._getOrCreateChild(xe),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=p,v.dirtyShape()}if(h){var y=v.style;y.fill=l||null,y.fillOpacity=G(t.fillOpacity,1)}else if(c){m=this._getOrCreateChild(Tt),m.onload=function(){d.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=v.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=G(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(v||m).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=Qt(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return Ev(t)&&(i=[t.fontStyle,t.fontWeight,Av(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&mt(i)||t.textFont||t.font},e})(Qr),vO={left:!0,right:1,center:1},mO={top:1,bottom:1,middle:1},Eb=["fontStyle","fontWeight","fontSize","fontFamily"];function Av(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Vu+"px":r+"px"}function Db(r,e){for(var t=0;t<Eb.length;t++){var i=Eb[t],n=e[i];n!=null&&(r[i]=n)}}function Ev(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function gO(r){return Mb(r),C(r.rich,Mb),r}function Mb(r){if(r){r.font=Rb.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||vO[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||mO[t]?t:"top";var i=r.padding;i&&(r.padding=so(r.padding))}}function Ib(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Lb(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Pb(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function Ob(r){var e=r.text;return e!=null&&(e+=""),e}function wv(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Me=Rb;var ge=ee(),Nb=function(r,e,t,i){if(i){var n=ge(i);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=ge(a);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}};var ln="undefined",Wf="series",jf=V(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),lt="original",rt="arrayRows",Ct="objectRows",Wt="keyedColumns",rr="typedArray",Dv="unknown",ir="column",ii="row";var yO=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],_O=(function(){function r(e){C(yO,function(t){this[t]=Q(e[t],e)},this)}return r})();function kb(r,e){return e.mainType===Wf?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var Zf=_O;var Bb=1,zb={},Gb=ee(),Lv=ee(),Pv=0,vl=1,ml=2,Rt=["emphasis","blur","select"],Bo=["normal","emphasis","blur","select"],xO=10,bO=9,un="highlight",gl="downplay",yl="select",qf="unselect",_l="toggleSelect",Kf="selectchanged";function ko(r){return r!=null&&r!=="none"}function $f(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function Yb(r){$f(r,"emphasis",ml)}function Wb(r){r.hoverState===ml&&$f(r,"normal",Pv)}function Ov(r){$f(r,"blur",vl)}function jb(r){r.hoverState===vl&&$f(r,"normal",Pv)}function SO(r){r.selected=!0}function TO(r){r.selected=!1}function Fb(r,e,t){e(r,t)}function Ti(r,e,t){Fb(r,e,t),r.isGroup&&r.traverse(function(i){Fb(i,e,t)})}function Rv(r,e){switch(e){case"emphasis":r.hoverState=ml;break;case"normal":r.hoverState=Pv;break;case"blur":r.hoverState=vl;break;case"select":r.selected=!0}}function CO(r,e,t,i){for(var n=r.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l==null?i&&i[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function wO(r,e,t,i){var n=t&&ue(t,"select")>=0,a=!1;if(r instanceof ae){var o=Gb(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(ko(s)||ko(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=O({},i),u=O({},u),u.fill=s):!ko(u.fill)&&ko(s)?(a=!0,i=O({},i),u=O({},u),u.fill=qs(s)):!ko(u.stroke)&&ko(l)&&(a||(i=O({},i),u=O({},u)),u.stroke=qs(l)),i.style=u}}if(i&&i.z2==null){a||(i=O({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f!=null?f:xO)}return i}function AO(r,e,t){if(t&&t.z2==null){t=O({},t);var i=r.z2SelectLift;t.z2=r.z2+(i!=null?i:bO)}return t}function EO(r,e,t){var i=ue(r.currentStates,e)>=0,n=r.style.opacity,a=i?null:CO(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=O({},t),o=O({opacity:i?n:a.opacity*.1},o),t.style=o),t}function Mv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return wO(this,r,e,t);if(r==="blur")return EO(this,r,t);if(r==="select")return AO(this,r,t)}return t}function DO(r){r.stateProxy=Mv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Mv),t&&(t.stateProxy=Mv)}function Ub(r,e){!Xb(r,e)&&!r.__highByOuter&&Ti(r,Yb)}function Vb(r,e){!Xb(r,e)&&!r.__highByOuter&&Ti(r,Wb)}function ha(r,e){r.__highByOuter|=1<<(e||0),Ti(r,Yb)}function pa(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ti(r,Wb)}function Zb(r){Ti(r,Ov)}function Nv(r){Ti(r,jb)}function kv(r){Ti(r,SO)}function Bv(r){Ti(r,TO)}function Xb(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function zv(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(n,a){var o=Lv(a),s=kb(r,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){jb(u)}),l&&t.push(a)),o.isBlured=!1}),C(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Iv(r,e,t,i){var n=i.getModel();t=t||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&Nv(h)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!h||e==="series"&&f)){var p=i.getViewOfSeriesModel(u);if(p.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||Ov(m)}),et(e))a(u.getData(),e);else if(Y(e))for(var d=ne(e),v=0;v<d.length;v++)a(u.getData(d[v]),e[d[v]]);l.push(u),Lv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Xf(r,e,t){if(!(r==null||e==null)){var i=t.getModel().getComponent(r,e);if(i){Lv(i).isBlured=!0;var n=t.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Ov(a)})}}}function qb(r,e,t){var i=r.seriesIndex,n=r.getData(e.dataType);if(n){var a=cr(n,e);a=(N(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ge(o);Iv(i,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Iv(i,f,c,t)}}}function Qf(r,e,t,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var a=i.getModel().getComponent(r,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(ge(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Kb(r,e,t){var i=ge(r),n=Qf(i.componentMainType,i.componentIndex,i.componentHighDownName,t),a=n.dispatchers,o=n.focusSelf;a?(o&&Xf(i.componentMainType,i.componentIndex,t),C(a,function(s){return Ub(s,e)})):(Iv(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&Xf(i.componentMainType,i.componentIndex,t),Ub(r,e))}function $b(r,e,t){zv(t);var i=ge(r),n=Qf(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;n?C(n,function(a){return Vb(a,e)}):Vb(r,e)}function Qb(r,e,t){if(Jf(e)){var i=e.dataType,n=r.getData(i),a=cr(n,e);N(a)||(a=[a]),r[e.type===_l?"toggleSelect":e.type===yl?"select":"unselect"](a,i)}}function Fv(r){var e=r.getAllData();C(e,function(t){var i=t.data,n=t.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?kv(a):Bv(a)})})}function Jb(r){var e=[];return r.eachSeries(function(t){var i=t.getAllData();C(i,function(n){var a=n.data,o=n.type,s=t.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function zo(r,e,t){eS(r,!0),Ti(r,DO),IO(r,e,t)}function MO(r){eS(r,!1)}function Ci(r,e,t,i){i?MO(r):zo(r,e,t)}function IO(r,e,t){var i=ge(r);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var Hb=["emphasis","blur","select"],LO={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function da(r,e,t,i){t=t||"itemStyle";for(var n=0;n<Hb.length;n++){var a=Hb[n],o=e.getModel([a,t]),s=r.ensureState(a);s.style=i?i(o):o[LO[t]]()}}function eS(r,e){var t=e===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t)}function xl(r){return!!(r&&r.__highDownDispatcher)}function tS(r){var e=zb[r];return e==null&&Bb<=32&&(e=zb[r]=Bb++),e}function Jf(r){var e=r.type;return e===yl||e===qf||e===_l}function Uv(r){var e=r.type;return e===un||e===gl}function rS(r){var e=Gb(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var it={};W_(it,{Arc:()=>Al,BezierCurve:()=>Xv,BoundingRect:()=>re,Circle:()=>Sl,CompoundPath:()=>nc,Ellipse:()=>Yv,Group:()=>be,HOVER_LAYER_FOR_INCREMENTAL:()=>Dl,HOVER_LAYER_FROM_THRESHOLD:()=>rm,HOVER_LAYER_NO:()=>tm,Image:()=>Tt,IncrementalDisplayable:()=>LS,Line:()=>Pr,LinearGradient:()=>oc,OrientedBoundingRect:()=>fc,Path:()=>ae,Point:()=>le,Polygon:()=>wl,Polyline:()=>wi,RadialGradient:()=>ES,Rect:()=>xe,Ring:()=>jv,Sector:()=>Lr,Text:()=>Me,WH:()=>cn,XY:()=>ai,applyTransform:()=>xa,calcZ2Range:()=>xR,clipPointsByRect:()=>mR,clipRectByRect:()=>gR,createIcon:()=>Ml,decomposeTransform:()=>SR,ensureCopyRect:()=>jo,ensureCopyTransform:()=>dc,expandOrShrinkRect:()=>Yo,extendPath:()=>fR,extendShape:()=>lR,getCurrentCanvasPainter:()=>TR,getShapeClass:()=>cR,getTransform:()=>nm,groupTransition:()=>om,initProps:()=>pt,isBoundingRectAxisAligned:()=>pc,isElementRemoved:()=>ya,lineLineIntersect:()=>BS,linePolygonIntersect:()=>yR,makeImage:()=>im,makePath:()=>hc,mergePath:()=>hR,payloadDisableAnimation:()=>bR,registerShape:()=>Or,removeElement:()=>Ho,removeElementWithFadeOut:()=>fn,resizePath:()=>kS,retrieveZInfo:()=>hn,setTooltipConfig:()=>Wo,subPixelOptimize:()=>dR,subPixelOptimizeLine:()=>_a,subPixelOptimizeRect:()=>pR,transformDirection:()=>am,traverseElements:()=>ba,traverseUpdateZ:()=>sm,updateProps:()=>Ve});var Fo=_t.CMD,PO=[[],[],[]],iS=Math.sqrt,OO=Math.atan2;function Vv(r,e){if(e){var t=r.data,i=r.len(),n,a,o,s,l,u,f=Fo.M,c=Fo.C,h=Fo.L,p=Fo.R,d=Fo.A,v=Fo.Q;for(o=0,s=0;o<i;){switch(n=t[o++],s=o,a=0,n){case f:a=1;break;case h:a=1;break;case c:a=3;break;case v:a=2;break;case d:var m=e[4],g=e[5],y=iS(e[0]*e[0]+e[1]*e[1]),_=iS(e[2]*e[2]+e[3]*e[3]),x=OO(-e[1]/_,e[0]/y);t[o]*=y,t[o++]+=m,t[o]*=_,t[o++]+=g,t[o++]*=y,t[o++]*=_,t[o++]+=x,t[o++]+=x,o+=2,s=o;break;case p:u[0]=t[o++],u[1]=t[o++],gt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],gt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var b=PO[l];b[0]=t[o++],b[1]=t[o++],gt(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var Hv=Math.sqrt,ec=Math.sin,tc=Math.cos,bl=Math.PI;function nS(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Gv(r,e){return(r[0]*e[0]+r[1]*e[1])/(nS(r)*nS(e))}function aS(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Gv(r,e))}function oS(r,e,t,i,n,a,o,s,l,u,f){var c=l*(bl/180),h=tc(c)*(r-t)/2+ec(c)*(e-i)/2,p=-1*ec(c)*(r-t)/2+tc(c)*(e-i)/2,d=h*h/(o*o)+p*p/(s*s);d>1&&(o*=Hv(d),s*=Hv(d));var v=(n===a?-1:1)*Hv((o*o*(s*s)-o*o*(p*p)-s*s*(h*h))/(o*o*(p*p)+s*s*(h*h)))||0,m=v*o*p/s,g=v*-s*h/o,y=(r+t)/2+tc(c)*m-ec(c)*g,_=(e+i)/2+ec(c)*m+tc(c)*g,x=aS([1,0],[(h-m)/o,(p-g)/s]),b=[(h-m)/o,(p-g)/s],S=[(-1*h-m)/o,(-1*p-g)/s],T=aS(b,S);if(Gv(b,S)<=-1&&(T=bl),Gv(b,S)>=1&&(T=0),T<0){var A=Math.round(T/bl*1e6)/1e6;T=bl*2+A%2*bl}f.addData(u,y,_,o,s,x,T,c,a)}var RO=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,NO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kO(r){var e=new _t;if(!r)return e;var t=0,i=0,n=t,a=i,o,s=_t.CMD,l=r.match(RO);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,p=f.match(NO)||[],d=p.length,v=0;v<d;v++)p[v]=parseFloat(p[v]);for(var m=0;m<d;){var g=void 0,y=void 0,_=void 0,x=void 0,b=void 0,S=void 0,T=void 0,A=t,w=i,E=void 0,D=void 0;switch(c){case"l":t+=p[m++],i+=p[m++],h=s.L,e.addData(h,t,i);break;case"L":t=p[m++],i=p[m++],h=s.L,e.addData(h,t,i);break;case"m":t+=p[m++],i+=p[m++],h=s.M,e.addData(h,t,i),n=t,a=i,c="l";break;case"M":t=p[m++],i=p[m++],h=s.M,e.addData(h,t,i),n=t,a=i,c="L";break;case"h":t+=p[m++],h=s.L,e.addData(h,t,i);break;case"H":t=p[m++],h=s.L,e.addData(h,t,i);break;case"v":i+=p[m++],h=s.L,e.addData(h,t,i);break;case"V":i=p[m++],h=s.L,e.addData(h,t,i);break;case"C":h=s.C,e.addData(h,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),t=p[m-2],i=p[m-1];break;case"c":h=s.C,e.addData(h,p[m++]+t,p[m++]+i,p[m++]+t,p[m++]+i,p[m++]+t,p[m++]+i),t+=p[m-2],i+=p[m-1];break;case"S":g=t,y=i,E=e.len(),D=e.data,o===s.C&&(g+=t-D[E-4],y+=i-D[E-3]),h=s.C,A=p[m++],w=p[m++],t=p[m++],i=p[m++],e.addData(h,g,y,A,w,t,i);break;case"s":g=t,y=i,E=e.len(),D=e.data,o===s.C&&(g+=t-D[E-4],y+=i-D[E-3]),h=s.C,A=t+p[m++],w=i+p[m++],t+=p[m++],i+=p[m++],e.addData(h,g,y,A,w,t,i);break;case"Q":A=p[m++],w=p[m++],t=p[m++],i=p[m++],h=s.Q,e.addData(h,A,w,t,i);break;case"q":A=p[m++]+t,w=p[m++]+i,t+=p[m++],i+=p[m++],h=s.Q,e.addData(h,A,w,t,i);break;case"T":g=t,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=t-D[E-4],y+=i-D[E-3]),t=p[m++],i=p[m++],h=s.Q,e.addData(h,g,y,t,i);break;case"t":g=t,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=t-D[E-4],y+=i-D[E-3]),t+=p[m++],i+=p[m++],h=s.Q,e.addData(h,g,y,t,i);break;case"A":_=p[m++],x=p[m++],b=p[m++],S=p[m++],T=p[m++],A=t,w=i,t=p[m++],i=p[m++],h=s.A,oS(A,w,t,i,S,T,_,x,b,h,e);break;case"a":_=p[m++],x=p[m++],b=p[m++],S=p[m++],T=p[m++],A=t,w=i,t+=p[m++],i+=p[m++],h=s.A,oS(A,w,t,i,S,T,_,x,b,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),t=n,i=a),o=h}return e.toStatic(),e}var sS=(function(r){oe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(ae);function lS(r){return r.setData!=null}function uS(r,e){var t=kO(r),i=O({},e);return i.buildPath=function(n){var a=lS(n);if(a&&n.canSave()){n.appendPath(t);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&t.rebuildPath(o,1)}},i.applyTransform=function(n){Vv(t,n),this.dirtyShape()},i}function fS(r,e){return new sS(uS(r,e))}function cS(r,e){var t=uS(r,e),i=(function(n){oe(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a})(sS);return i}function hS(r,e){for(var t=[],i=r.length,n=0;n<i;n++){var a=r[n];t.push(a.getUpdatedPathProxy(!0))}var o=new ae(e);return o.createPathProxy(),o.buildPath=function(s){if(lS(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var zO=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})();var pS=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new zO},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(ae);pS.prototype.type="circle";var Sl=pS;var FO=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})();var dS=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FO},e.prototype.buildPath=function(t,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),t.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),t.closePath()},e})(ae);dS.prototype.type="ellipse";var Yv=dS;var mS=Math.PI,Wv=mS*2,va=Math.sin,Uo=Math.cos,UO=Math.acos,wt=Math.atan2,vS=Math.abs,Cl=Math.sqrt,Tl=Math.max,ni=Math.min,Ir=1e-4;function VO(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,f=o-n,c=s-a,h=c*l-f*u;if(!(h*h<Ir))return h=(f*(e-a)-c*(r-n))/h,[r+h*l,e+h*u]}function rc(r,e,t,i,n,a,o){var s=r-t,l=e-i,u=(o?a:-a)/Cl(s*s+l*l),f=u*l,c=-u*s,h=r+f,p=e+c,d=t+f,v=i+c,m=(h+d)/2,g=(p+v)/2,y=d-h,_=v-p,x=y*y+_*_,b=n-a,S=h*v-d*p,T=(_<0?-1:1)*Cl(Tl(0,b*b*x-S*S)),A=(S*_-y*T)/x,w=(-S*y-_*T)/x,E=(S*_+y*T)/x,D=(-S*y+_*T)/x,I=A-m,M=w-g,L=E-m,P=D-g;return I*I+M*M>L*L+P*P&&(A=E,w=D),{cx:A,cy:w,x0:-f,y0:-c,x1:A*(n/b-1),y1:w*(n/b-1)}}function HO(r){var e;if(N(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function gS(r,e){var t,i=Tl(e.r,0),n=Tl(e.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 l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,h=!!e.clockwise,p=vS(u-l),d=p>Wv&&p%Wv;if(d>Ir&&(p=d),!(i>Ir))r.moveTo(f,c);else if(p>Wv-Ir)r.moveTo(f+i*Uo(l),c+i*va(l)),r.arc(f,c,i,l,u,!h),n>Ir&&(r.moveTo(f+n*Uo(u),c+n*va(u)),r.arc(f,c,n,u,l,h));else{var v=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,b=void 0,S=void 0,T=void 0,A=void 0,w=void 0,E=void 0,D=void 0,I=void 0,M=void 0,L=void 0,P=i*Uo(l),R=i*va(l),U=n*Uo(u),k=n*va(u),H=p>Ir;if(H){var W=e.cornerRadius;W&&(t=HO(W),v=t[0],m=t[1],g=t[2],y=t[3]);var q=vS(i-n)/2;if(_=ni(q,g),x=ni(q,y),b=ni(q,v),S=ni(q,m),w=T=Tl(_,x),E=A=Tl(b,S),(T>Ir||A>Ir)&&(D=i*Uo(u),I=i*va(u),M=n*Uo(l),L=n*va(l),p<mS)){var $=VO(P,R,M,L,D,I,U,k);if($){var J=P-$[0],K=R-$[1],he=D-$[0],ye=I-$[1],Ge=1/va(UO((J*he+K*ye)/(Cl(J*J+K*K)*Cl(he*he+ye*ye)))/2),Fe=Cl($[0]*$[0]+$[1]*$[1]);w=ni(T,(i-Fe)/(Ge+1)),E=ni(A,(n-Fe)/(Ge-1))}}}if(!H)r.moveTo(f+P,c+R);else if(w>Ir){var Se=ni(g,w),Le=ni(y,w),ce=rc(M,L,P,R,i,Se,h),_e=rc(D,I,U,k,i,Le,h);r.moveTo(f+ce.cx+ce.x0,c+ce.cy+ce.y0),w<T&&Se===Le?r.arc(f+ce.cx,c+ce.cy,w,wt(ce.y0,ce.x0),wt(_e.y0,_e.x0),!h):(Se>0&&r.arc(f+ce.cx,c+ce.cy,Se,wt(ce.y0,ce.x0),wt(ce.y1,ce.x1),!h),r.arc(f,c,i,wt(ce.cy+ce.y1,ce.cx+ce.x1),wt(_e.cy+_e.y1,_e.cx+_e.x1),!h),Le>0&&r.arc(f+_e.cx,c+_e.cy,Le,wt(_e.y1,_e.x1),wt(_e.y0,_e.x0),!h))}else r.moveTo(f+P,c+R),r.arc(f,c,i,l,u,!h);if(!(n>Ir)||!H)r.lineTo(f+U,c+k);else if(E>Ir){var Se=ni(v,E),Le=ni(m,E),ce=rc(U,k,D,I,n,-Le,h),_e=rc(P,R,M,L,n,-Se,h);r.lineTo(f+ce.cx+ce.x0,c+ce.cy+ce.y0),E<A&&Se===Le?r.arc(f+ce.cx,c+ce.cy,E,wt(ce.y0,ce.x0),wt(_e.y0,_e.x0),!h):(Le>0&&r.arc(f+ce.cx,c+ce.cy,Le,wt(ce.y0,ce.x0),wt(ce.y1,ce.x1),!h),r.arc(f,c,n,wt(ce.cy+ce.y1,ce.cx+ce.x1),wt(_e.cy+_e.y1,_e.cx+_e.x1),h),Se>0&&r.arc(f+_e.cx,c+_e.cy,Se,wt(_e.y1,_e.x1),wt(_e.y0,_e.x0),!h))}else r.lineTo(f+U,c+k),r.arc(f,c,n,u,l,h)}r.closePath()}}}var YO=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})();var yS=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new YO},e.prototype.buildPath=function(t,i){gS(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ae);yS.prototype.type="sector";var Lr=yS;var WO=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})();var _S=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new WO},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.PI*2;t.moveTo(n+i.r,a),t.arc(n,a,i.r,0,o,!1),t.moveTo(n+i.r0,a),t.arc(n,a,i.r0,0,o,!0)},e})(ae);_S.prototype.type="ring";var jv=_S;function Zv(r,e,t,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,p=r.length;h<p;h++)hi(f,f,r[h]),pi(c,c,r[h]);hi(f,f,i[0]),pi(c,c,i[1])}for(var h=0,p=r.length;h<p;h++){var d=r[h];if(t)l=r[h?h-1:p-1],u=r[(h+1)%p];else if(h===0||h===p-1){n.push(i0(r[h]));continue}else l=r[h-1],u=r[h+1];n0(a,u,l),Xu(a,a,e);var v=qu(d,l),m=qu(d,u),g=v+m;g!==0&&(v/=g,m/=g),Xu(o,a,-v),Xu(s,a,m);var y=ed([],d,o),_=ed([],d,s);i&&(pi(y,y,f),hi(y,y,c),pi(_,_,f),hi(_,_,c)),n.push(y),n.push(_)}return t&&n.push(n.shift()),n}function ic(r,e,t){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=Zv(n,i,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var jO=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})();var bS=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new jO},e.prototype.buildPath=function(t,i){ic(t,i,!0)},e})(ae);bS.prototype.type="polygon";var wl=bS;var ZO=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})();var SS=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZO},e.prototype.buildPath=function(t,i){ic(t,i,!1)},e})(ae);SS.prototype.type="polyline";var wi=SS;var XO={},qO=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();var TS=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qO},e.prototype.buildPath=function(t,i){var n,a,o,s;if(this.subPixelOptimize){var l=Gf(XO,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e})(ae);TS.prototype.type="line";var Pr=TS;var jt=[],KO=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function CS(r,e,t){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(t?gd:Be)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?gd:Be)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?yd:st)(r.x1,r.cpx1,r.x2,e),(t?yd:st)(r.y1,r.cpy1,r.y2,e)]}var wS=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new KO},e.prototype.buildPath=function(t,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,h=i.percent;h!==0&&(t.moveTo(n,a),f==null||c==null?(h<1&&(mo(n,l,o,h,jt),l=jt[1],o=jt[2],mo(a,u,s,h,jt),u=jt[1],s=jt[2]),t.quadraticCurveTo(l,u,o,s)):(h<1&&(vo(n,l,f,o,h,jt),l=jt[1],f=jt[2],o=jt[3],vo(a,u,c,s,h,jt),u=jt[1],c=jt[2],s=jt[3]),t.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(t){return CS(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=CS(this.shape,t,!0);return a0(i,i)},e})(ae);wS.prototype.type="bezier-curve";var Xv=wS;var $O=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})();var AS=(function(r){oe(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $O},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);t.moveTo(f*o+n,c*o+a),t.arc(n,a,o,s,l,!u)},e})(ae);AS.prototype.type="arc";var Al=AS;var QO=(function(r){oe(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,i=this.shapeChanged(),n=0;n<t.length;n++)i=i||t[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(i[0],i[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(t,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ae.prototype.getBoundingRect.call(this)},e})(ae),nc=QO;var JO=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),ac=JO;var eR=(function(r){oe(e,r);function e(t,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=t==null?0:t,l.y=i==null?0:i,l.x2=n==null?1:n,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return e})(ac),oc=eR;var tR=(function(r){oe(e,r);function e(t,i,n,a,o){var s=r.call(this,a)||this;return s.x=t==null?.5:t,s.y=i==null?.5:i,s.r=n==null?.5:n,s.type="radial",s.global=o||!1,s}return e})(ac),ES=tR;var qv=Math.min,rR=Math.max,sc=Math.abs,ma=[0,0],ga=[0,0],ht=hd(),lc=ht.minTv,uc=ht.maxTv,iR=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new le;for(var i=0;i<2;i++)this._axes[i]=new le;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),t)for(var u=0;u<4;u++)i[u].transform(t);le.sub(n[0],i[1],i[0]),le.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(e,t,i){var n=!0,a=!t;return t&&le.set(t,0,0),ht.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!ht.negativeSize&&le.copy(t,n?ht.useDir?ht.dirMinTv:lc:uc),n},r.prototype._intersectCheckOneSide=function(e,t,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,ma),e._getProjMinMaxOnAxis(o,t._corners,ga),ht.negativeSize||ma[1]<ga[0]||ma[0]>ga[1]){if(a=!1,ht.negativeSize||i)return a;var l=sc(ga[0]-ma[1]),u=sc(ma[0]-ga[1]);qv(l,u)>uc.len()&&(l<u?le.scale(uc,s,-l*n):le.scale(uc,s,u*n))}else if(!i){var l=sc(ga[0]-ma[1]),u=sc(ma[0]-ga[1]);(ht.useDir||qv(l,u)<lc.len())&&((l<u||!ht.bidirectional)&&(le.scale(lc,s,l*n),ht.useDir&&ht.calcDirMTV()),(l>=u||!ht.bidirectional)&&(le.scale(lc,s,-u*n),ht.useDir&&ht.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var n=this._axes[e],a=this._origin,o=t[0].dot(n)+a[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(n)+a[e];s=qv(f,s),l=rR(f,l)}i[0]=s+ht.touchThreshold,i[1]=l-ht.touchThreshold,ht.negativeSize=i[1]<i[0]},r})(),fc=iR;var Kv=0,DS=1,MS=2,IS=1,Vo=0;var nR=[],aR=(function(r){oe(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=DS,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,i){i?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new re(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(nR)),t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,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(t,i))return!0}return!1},e})(Qr),LS=aR;var oR=ee();function sR(r,e,t,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=G(i.duration,200),f=G(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),Z(c)&&(c=c(t,n)),Z(u)&&(u=u(t));var h={duration:u||0,delay:c,easing:f};return h}else return null}function $v(r,e,t,i,n,a,o){var s=!1,l;Z(n)?(o=a,a=n,n=null):Y(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=sR(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,p=f.easing,d={duration:c,delay:h||0,easing:p,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function Ve(r,e,t,i,n,a){$v("update",r,e,t,i,n,a)}function pt(r,e,t,i,n,a){$v("enter",r,e,t,i,n,a)}function ya(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function Ho(r,e,t,i,n,a){ya(r)||$v("leave",r,e,t,i,n,a)}function PS(r,e,t,i){r.removeTextContent(),r.removeTextGuideLine(),Ho(r,{style:{opacity:0}},e,t,i)}function fn(r,e,t){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||PS(n,e,t,i)}):PS(r,e,t,i)}function Go(r){oR(r).oldStyle=r.style}var Jv={},ai=["x","y"],cn=["width","height"],tm=0,rm=1,Dl=2;function lR(r){return ae.extend(r)}var uR=cS;function fR(r,e){return uR(r,e)}function Or(r,e){Jv[r]=e}function cR(r){if(Jv.hasOwnProperty(r))return Jv[r]}function hc(r,e,t,i){var n=fS(r,e);return t&&(i==="center"&&(t=NS(t,n.getBoundingRect())),kS(n,t)),n}function im(r,e,t){var i=new Tt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var a={width:n.width,height:n.height};i.setStyle(NS(e,a))}}});return i}function NS(r,e){var t=e.width/e.height,i=r.height*t,n;i<=r.width?n=r.height:(i=r.width,n=i/t);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var hR=hS;function kS(r,e){if(r.applyTransform){var t=r.getBoundingRect(),i=t.calculateTransform(e);r.applyTransform(i)}}function _a(r,e){return Gf(r,r,{lineWidth:e}),r}function pR(r,e){return Yf(r,r,e),r}var dR=sn;function nm(r,e){for(var t=di([]);r&&r!==e;)Wi(t,r.getLocalTransform(),t),r=r.parent;return t}function xa(r,e,t){return e&&!et(e)&&(e=So.getLocalTransform(e)),t&&(e=Gr([],e)),gt([],r,e)}function am(r,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:De(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:De(2*e[4]/e[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=xa(a,e,t),De(a[0])>De(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function OS(r){return!r.isGroup}function vR(r){return r.shape!=null}function om(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){OS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return vR(o)&&(s.shape=te(o.shape)),s}var a=i(r);e.traverse(function(o){if(OS(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Ve(o,l,t,ge(o).dataIndex)}}})}function mR(r,e){return B(r,function(t){var i=t[0];i=pe(i,e.x),i=Re(i,e.x+e.width);var n=t[1];return n=pe(n,e.y),n=Re(n,e.y+e.height),[i,n]})}function gR(r,e){var t=pe(r.x,e.x),i=Re(r.x+r.width,e.x+e.width),n=pe(r.y,e.y),a=Re(r.y+r.height,e.y+e.height);if(i>=t&&a>=n)return{x:t,y:n,width:i-t,height:a-n}}function Ml(r,e,t){var i=O({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ie(n,t),new Tt(i)):hc(r.replace("path://",""),i,t,"center")}function yR(r,e,t,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(BS(r,e,t,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function BS(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,f=o-n,c=s-a,h=Qv(f,c,l,u);if(_R(h))return!1;var p=r-n,d=e-a,v=Qv(p,d,l,u)/h;if(v<0||v>1)return!1;var m=Qv(p,d,f,c)/h;return!(m<0||m>1)}function Qv(r,e,t,i){return r*i-t*e}function _R(r){return r<=1e-6&&r>=-1e-6}function Yo(r,e,t,i,n){return e==null||(fe(e)?Oe[0]=Oe[1]=Oe[2]=Oe[3]=e:(Oe[0]=e[0],Oe[1]=e[1],Oe[2]=e[2],Oe[3]=e[3]),i&&(Oe[0]=pe(0,Oe[0]),Oe[1]=pe(0,Oe[1]),Oe[2]=pe(0,Oe[2]),Oe[3]=pe(0,Oe[3])),t&&(Oe[0]=-Oe[0],Oe[1]=-Oe[1],Oe[2]=-Oe[2],Oe[3]=-Oe[3]),RS(r,Oe,"x","width",3,1,n&&n[0]||0),RS(r,Oe,"y","height",0,2,n&&n[1]||0)),r}var Oe=[0,0,0,0];function RS(r,e,t,i,n,a,o){var s=e[a]+e[n],l=r[i];r[i]+=s,o=pe(0,Re(o,l)),r[i]<o?(r[i]=o,r[t]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:De(s)>1e-8?(l-o)*e[n]/s:0):r[t]-=e[n]}function Wo(r){var e=r.itemTooltipOption,t=r.componentModel,i=r.itemName,n=z(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&C(ne(l),function(f){Pe(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ge(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:ie({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function em(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function ba(r,e){if(r)if(N(r))for(var t=0;t<r.length;t++)em(r[t],e);else em(r,e)}function pc(r){return!r||De(r[1])<cc&&De(r[2])<cc||De(r[0])<cc&&De(r[3])<cc}var cc=1e-5;function jo(r,e){return r?re.copy(r,e):e.clone()}function dc(r,e){return e?Us(r||Lt(),e):void 0}function hn(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function xR(r){var e=-1/0,t=1/0;em(r,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>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function sm(r,e,t){zS(r,e,t,-1/0)}function zS(r,e,t,i){if(r.ignoreModelZ)return i;var n=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)i=pe(zS(s[l],e,t,i),i);else r.z=e,r.zlevel=t,i=pe(r.z2||0,i);if(n&&(n.z=e,n.zlevel=t,isFinite(i)&&(n.z2=i+2)),a){var u=r.textGuideLineConfig;a.z=e,a.zlevel=t,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function bR(r){return r.animation={duration:0},r}function SR(r,e){return e?Us(El.transform,e):di(El.transform),El.decomposeTransform(),$i(r,El),r}var El=new So;El.transform=Lt();function TR(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}Or("circle",Sl);Or("ellipse",Yv);Or("sector",Lr);Or("ring",jv);Or("polygon",wl);Or("polyline",wi);Or("rect",xe);Or("line",Pr);Or("bezierCurve",Xv);Or("arc",Al);var vc={};function CR(r,e){for(var t=0;t<Rt.length;t++){var i=Rt[t],n=e[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function FS(r,e,t){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Z(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<Rt.length;u++){var f=Rt[u],c=e[f];l[f]=G(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function oi(r,e,t,i){t=t||vc;for(var n=r instanceof Me,a=!1,o=0;o<Bo.length;o++){var s=e[Bo[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?r:r.getTextContent();if(a){n||(l||(l=new Me,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=FS(t,e),f=e.normal,c=!!f.getShallow("show"),h=Rr(f,i&&i.normal,t,!1,!n);h.text=u.normal,n||r.setTextConfig(US(f,t,!1));for(var o=0;o<Rt.length;o++){var p=Rt[o],s=e[p];if(s){var d=l.ensureState(p),v=!!G(s.getShallow("show"),c);if(v!==c&&(d.ignore=!v),d.style=Rr(s,i&&i[p],t,!0,!n),d.style.text=u[p],!n){var m=r.ensureState(p);m.textConfig=US(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),t.enableTextSetter&&(Zo(l).setLabelText=function(g){var y=FS(t,e,g);CR(l,y)})}else l&&(l.ignore=!0);r.dirty()}function si(r,e){e=e||"label";for(var t={normal:r.getModel(e)},i=0;i<Rt.length;i++){var n=Rt[i];t[n]=r.getModel([n,e])}return t}function Rr(r,e,t,i,n){var a={};return wR(a,r,t,i,n),e&&O(a,e),a}function US(r,e,t){e=e||{};var i={},n,a=r.getShallow("rotate"),o=G(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function wR(r,e,t,i,n){t=t||vc;var a=e.ecModel,o=a&&a.option.textStyle,s=AR(e),l;if(s){l={};var u="richInheritPlainLabel",f=G(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=e.getModel(["rich",c]);YS(l[c]={},h,o,e,f,t,i,n,!1,!0)}}l&&(r.rich=l);var p=e.get("overflow");p&&(r.overflow=p);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var v=r,m=e.get("minMargin");if(m!=null)m=fe(m)?m/2:0,v.margin=[m,m,m,m],v.__marginType=Sa.minMargin;else{var g=e.get("textMargin");g!=null&&(v.margin=so(g),v.__marginType=Sa.textMargin)}YS(r,e,o,null,null,t,i,n,!0,!1)}function AR(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||vc).rich;if(t){e=e||{};for(var i=ne(t),n=0;n<i.length;n++){var a=i[n];e[a]=1}}r=r.parentModel}return e}var VS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],HS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],GS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function YS(r,e,t,i,n,a,o,s,l,u){t=!o&&t||vc;var f=a&&a.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),p=G(e.getShallow("opacity"),t.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||t.color,h=h||t.textBorderColor),c!=null&&(r.fill=c),h!=null&&(r.stroke=h);var d=G(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var v=G(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var m=G(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);m!=null&&(r.lineDashOffset=m),!o&&p==null&&!u&&(p=a&&a.defaultOpacity),p!=null&&(r.opacity=p),!o&&!s&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var g=0;g<VS.length;g++){var y=VS[g],_=n!==!1&&i?Qt(e.getShallow(y),i.getShallow(y),t[y]):G(e.getShallow(y),t[y]);_!=null&&(r[y]=_)}for(var g=0;g<HS.length;g++){var y=HS[g],_=e.getShallow(y);_!=null&&(r[y]=_)}if(r.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(r.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<GS.length;g++){var y=GS[g],_=e.getShallow(y);_!=null&&(r[y]=_)}var b=e.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function WS(r,e){var t=e&&e.getModel("textStyle");return mt([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Zo=ee();function jS(r,e,t,i){if(r){var n=Zo(r);n.prevValue=n.value,n.value=t;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var Sa={minMargin:1,textMargin:2};var ER=["textStyle","color"],lm=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],um=new Me,DR=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(ER):null)},r.prototype.getFont=function(){return WS({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<lm.length;i++)t[lm[i]]=this.getShallow(lm[i]);return um.useStyle(t),um.update(),um.getBoundingRect()},r})(),ZS=DR;var fm=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],MR=Kr(fm),XS=(function(){function r(){}return r.prototype.getLineStyle=function(e){return MR(this,e)},r})();var cm=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],IR=Kr(cm),qS=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return IR(this,e,t)},r})();var Ta=(function(){function r(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return r.prototype.init=function(e,t,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},r.prototype.mergeOption=function(e,t){de(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var i=this.option,n=i==null?i:i[e];if(n==null&&!t){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},r.prototype.getModel=function(e,t){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(te(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!se.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},r})();Po(Ta);qx(Ta);It(Ta,XS);It(Ta,qS);It(Ta,Kx);It(Ta,ZS);var Ie=Ta;var LR=Math.round(Math.random()*10);function pn(r){return[r||"",LR++].join("_")}function KS(r){var e={};r.registerSubTypeDefaulter=function(t,i){var n=Yt(t);e[n.main]=i},r.determineSubType=function(t,i){var n=i.type;if(!n){var a=Yt(t).main;r.hasSubTypes(t)&&e[a]&&(n=e[a](i))}return n}}function $S(r,e){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),f=u.graph,c=u.noEntryList,h={};for(C(a,function(y){h[y]=!0});c.length;){var p=c.pop(),d=f[p],v=!!h[p];v&&(s.call(l,p,d.originalDeps.slice()),delete h[p]),C(d.successor,v?g:m)}C(h,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){h[y]=!0,m(y)}};function t(a){var o={},s=[];return C(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),C(c,function(h){ue(u.predecessor,h)<0&&u.predecessor.push(h);var p=i(o,h);ue(p.successor,h)<0&&p.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return C(a,function(l){ue(o,l)>=0&&s.push(l)}),s}}function dn(r,e){return de(de({},r,!0),e,!0)}var QS={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:". "}}}};var JS={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var gc="ZH",pm="EN",Xo=pm,mc={},dm={},yc=se.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Xo).toUpperCase();return r.indexOf(gc)>-1?gc:Xo})():Xo;function eT(r,e){r=r.toUpperCase(),dm[r]=new Ie(e),mc[r]=e}function tT(r){if(z(r)){var e=mc[r.toUpperCase()]||{};return r===gc||r===pm?te(e):de(te(e),te(mc[Xo]),!1)}else return de(te(r),te(mc[Xo]),!1)}function rT(r){return dm[r]}function iT(){return dm[Xo]}eT(pm,QS);eT(gc,JS);var PR=null;function He(){return PR}function _c(r,e){var t=He(),i=e.breakOption,n=e.breakParsed;return!n&&t&&(n=t.parseAxisBreakOption(i,r)),n}function Ca(r){var e=r.brk;return e?e.breaks:[]}function wa(r){var e=r.brk;return e?e.hasBreaks():!1}var Sc=1e3,Tc=Sc*60,qo=Tc*60,nr=qo*24,vm=nr*365,OR={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})/},bc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},RR="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",xc="{yyyy}-{MM}-{dd}",mm={year:"{yyyy}",month:"{yyyy}-{MM}",day:xc,hour:xc+" "+bc.hour,minute:xc+" "+bc.minute,second:xc+" "+bc.second,millisecond:RR},Zt=["year","month","day","hour","minute","second","millisecond"],nT=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function aT(r){return!z(r)&&!Z(r)?NR(r):r}function NR(r){r=r||{};var e={},t=!0;return C(Zt,function(i){t&&(t=r[i]==null)}),C(Zt,function(i,n){var a=r[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=Zt[s],u=Y(a)&&!N(a)?a[l]:a,f=void 0;N(u)?(f=u.slice(),o=f[0]||""):z(u)?(o=u,f=[o]):(o==null?o=bc[i]:OR[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function Ai(r,e){return r+="","0000".substr(0,e-r.length)+r}function Ko(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function oT(r){return r===Ko(r)}function sT(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Aa(r,e,t,i){var n=Xr(r),a=n[gm(t)](),o=n[wc(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Ac(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[Ec(t)](),c=(f-1)%12+1,h=n[Dc(t)](),p=n[Mc(t)](),d=n[Ic(t)](),v=f>=12?"pm":"am",m=v.toUpperCase(),g=i instanceof Ie?i:rT(i||yc)||iT(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),b=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ai(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ai(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ai(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ai(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ai(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ai(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ai(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Ai(d,3)).replace(/{S}/g,d+"")}function lT(r,e,t,i,n){var a=null;if(z(t))a=t;else if(Z(t)){var o={time:r.time,level:r.time?r.time.level:0},s=He();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),a=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Ea(r.value,n);a=t[f][f][0]}}return Aa(new Date(r.value),a,n,i)}function Ea(r,e){var t=Xr(r),i=t[wc(e)]()+1,n=t[Ac(e)](),a=t[Ec(e)](),o=t[Dc(e)](),s=t[Mc(e)](),l=t[Ic(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,p=h&&n===1,d=p&&i===1;return d?"year":p?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Cc(r,e,t){switch(e){case"year":r[ym(t)](0);case"month":r[_m(t)](1);case"day":r[xm(t)](0);case"hour":r[bm(t)](0);case"minute":r[Sm(t)](0);case"second":r[Tm(t)](0)}return r}function gm(r){return r?"getUTCFullYear":"getFullYear"}function wc(r){return r?"getUTCMonth":"getMonth"}function Ac(r){return r?"getUTCDate":"getDate"}function Ec(r){return r?"getUTCHours":"getHours"}function Dc(r){return r?"getUTCMinutes":"getMinutes"}function Mc(r){return r?"getUTCSeconds":"getSeconds"}function Ic(r){return r?"getUTCMilliseconds":"getMilliseconds"}function uT(r){return r?"setUTCFullYear":"setFullYear"}function ym(r){return r?"setUTCMonth":"setMonth"}function _m(r){return r?"setUTCDate":"setDate"}function xm(r){return r?"setUTCHours":"setHours"}function bm(r){return r?"setUTCMinutes":"setMinutes"}function Sm(r){return r?"setUTCSeconds":"setSeconds"}function Tm(r){return r?"setUTCMilliseconds":"setMilliseconds"}function wm(r){if(!$d(r))return z(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Lc(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var vn=so;function Pc(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&mt(f)?f:"-"}function a(f){return tt(f)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Xr(r):r;if(isNaN(+l)){if(s)return"-"}else return Aa(l,i,t)}if(e==="ordinal")return Bs(r)?n(r):fe(r)&&a(r)?r+"":"-";var u=qr(r);return a(u)?wm(u):Bs(r)?n(r):typeof r=="boolean"?r+"":"-"}var fT=["a","b","c","d","e","f","g"],Cm=function(r,e){return"{"+r+(e==null?"":e)+"}"};function Oc(r,e,t){N(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=fT[a];r=r.replace(Cm(o),Cm(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(Cm(fT[l],s),t?ot(u):u)}return r}function cT(r,e){var t=z(r)?{color:r,extraCssText:e}:r||{},i=t.color,n=t.type;e=t.extraCssText;var a=t.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:'+ot(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ot(i)+";"+(e||"")+'"></span>';var o=t.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 Nr(r,e){return e=e||"transparent",z(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}var Rc={},Em={},kR=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=i(Rc,!0),this._normalMasterList=i(Em,!1);function i(n,a){var o=[];return C(n,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){C(this._normalMasterList,function(i){i.update&&i.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Rc[e]=t;return}Em[e]=t},r.get=function(e){return Em[e]||Rc[e]},r})();function BR(r){return!!Rc[r]}var zR=1,Dm=2;function hT(r){pT.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var pT=V();function kc(r){var e=r.getShallow("coord",!0),t=zR;if(e==null){var i=pT.get(r.type);i&&i.getCoord2&&(t=Dm,e=i.getCoord2(r))}return{coord:e,from:t}}var $o=0,Nc=1,FR=2;function UR(r,e){var t=r.getShallow("coordinateSystem"),i=r.getShallow("coordinateSystemUsage",!0),n=i!=null,a=$o;if(t){var o=r.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=Nc,o||(a=$o)):i==="box"&&(a=FR,!o&&!BR(t)&&(a=$o))}return{coordSysType:t,kind:a}}function dT(r){var e=r.targetModel,t=r.coordSysType,i=r.coordSysProvider,n=r.isDefaultDataCoordSys,a=r.allowNotFound,o=UR(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==Nc&&(s=Nc,l=t),s===$o||l!==t)return $o;var u=i(t,e);return u?(s===Nc?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):$o}var Il=kR;var zc=C,VR=["left","right","top","bottom","width","height"],Bc=[["width","left","right"],["height","top","bottom"]];function Mm(r,e,t,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),h=c&&c.getBoundingRect(),p,d;if(r==="horizontal"){var v=f.width+(h?-h.x+f.x:0);p=a+v,p>i||l.newline?(a=0,p=v,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(h?-h.y+f.y:0);d=o+m,d>n||l.newline?(a+=s+t,o=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=p+t:o=d+t)})}var Da=Mm,YW=Te(Mm,"vertical"),WW=Te(Mm,"horizontal");function vT(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function HR(r,e){var t=Ma(r,e,{enableLayoutOnlyByCenter:!0}),i=r.getBoxLayoutParams(),n,a;if(t.type===Ll.point)a=t.refPoint,n=vr(i,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=N(o)?o:[o,o];n=vr(i,t.refContainer),a=t.boxCoordFrom===Dm?t.refPoint:[we(s[0],n.width)+n.x,we(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function mT(r,e){var t=HR(r,e),i=t.viewRect,n=t.center,a=r.get("radius");N(a)||(a=[0,a]);var o=we(i.width,e.getWidth()),s=we(i.height,e.getHeight()),l=Math.min(o,s),u=we(a[0],l/2),f=we(a[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:i}}function vr(r,e,t){t=vn(t||0);var i=e.width,n=e.height,a=we(r.left,i),o=we(r.top,n),s=we(r.right,i),l=we(r.bottom,n),u=we(r.width,i),f=we(r.height,n),c=t[2]+t[0],h=t[1]+t[3],p=r.aspect;switch(isNaN(u)&&(u=i-s-h-a),isNaN(f)&&(f=n-l-c-o),p!=null&&(isNaN(u)&&isNaN(f)&&(p>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=p*f),isNaN(f)&&(f=u/p)),isNaN(a)&&(a=i-s-u-h),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":a=i/2-u/2-t[3];break;case"right":a=i-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-h-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new re((e.x||0)+a+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}var Ll={rect:1,point:2};function Ma(r,e,t){var i,n,a,o=r.boxCoordinateSystem,s;if(o){var l=kc(r),u=l.coord,f=l.from;if(o.dataToLayout){a=Ll.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Ll.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=Ll.rect),a===Ll.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function mn(r){var e=r.layoutMode||r.constructor.layoutMode;return Y(e)?e:e?{type:e}:null}function ar(r,e,t){var i=t&&t.ignoreSize;!N(i)&&(i=[i,i]);var n=o(Bc[0],0),a=o(Bc[1],1);l(Bc[0],r,n),l(Bc[1],r,a);function o(u,f){var c={},h=0,p={},d=0,v=2;if(zc(u,function(y){p[y]=r[y]}),zc(u,function(y){Pe(e,y)&&(c[y]=p[y]=e[y]),s(c,y)&&h++,s(p,y)&&d++}),i[f])return s(e,u[1])?p[u[2]]=null:s(e,u[2])&&(p[u[1]]=null),p;if(d===v||!h)return p;if(h>=v)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Pe(c,g)&&Pe(r,g)){c[g]=r[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){zc(u,function(h){f[h]=c[h]})}}function mr(r){return GR({},r)}function GR(r,e){return e&&r&&zc(VR,function(t){Pe(e,t)&&(r[t]=e[t])}),r}var YR=ee(),Qo=(function(r){F(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.uid=pn("ec_cpt_model"),a}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,i){var n=mn(this),a=n?mr(t):{},o=i.getTheme();de(t,o.get(this.mainType)),de(t,this.getDefaultOption()),n&&ar(t,a,n)},e.prototype.mergeOption=function(t,i){de(this.option,t,!0);var n=mn(this);n&&ar(this.option,t,n)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Xx(t))return t.defaultOption;var i=YR(this);if(!i.defaultOption){for(var n=[],a=t;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=de(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var n=t+"Index",a=t+"Id";return en(this.ecModel,t,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return vT(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(Ie);zf(Qo,Ie);rn(Qo);KS(Qo);$S(Qo,WR);function WR(r){var e=[];return C(Qo.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=B(e,function(t){return Yt(t).main}),r!=="dataset"&&ue(e,"dataset")<=0&&e.unshift("dataset"),e}var Ce=Qo;var Ia={color:{},darkColor:{},size:{}},Ze=Ia.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)"};O(Ze,{primary:Ze.neutral80,secondary:Ze.neutral70,tertiary:Ze.neutral60,quaternary:Ze.neutral50,disabled:Ze.neutral20,border:Ze.neutral30,borderTint:Ze.neutral20,borderShade:Ze.neutral40,background:Ze.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ze.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ze.neutral70,axisLineTint:Ze.neutral40,axisTick:Ze.neutral70,axisTickMinor:Ze.neutral60,axisLabel:Ze.neutral70,axisSplitLine:Ze.neutral15,axisMinorSplitLine:Ze.neutral05});for(gn in Ze)Ze.hasOwnProperty(gn)&&(Im=Ze[gn],gn==="theme"?Ia.darkColor.theme=Ze.theme.slice():gn==="highlight"?Ia.darkColor.highlight="rgba(255,231,130,0.4)":gn.indexOf("accent")===0?Ia.darkColor[gn]=Xs(Im,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Ia.darkColor[gn]=Xs(Im,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)}));var Im,gn;Ia.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var j=Ia;var gT="";typeof navigator!="undefined"&&(gT=navigator.platform||"");var Jo="rgba(0, 0, 0, 0.2)",yT=j.color.theme[0],jR=Xs(yT,null,null,.9),Uc={darkMode:"auto",colorBy:"series",color:j.color.theme,gradientColor:[jR,yT],aria:{decal:{decals:[{color:Jo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Jo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Jo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Jo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Jo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Jo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gT.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 ut={Must:1,Might:2,Not:3},_T=ee();function xT(r){_T(r).datasetMap=V()}function bT(r,e,t){var i={},n=Vc(e);if(!n||!r)return i;var a=[],o=[],s=e.ecModel,l=_T(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),C(r,function(v,m){var g=Y(v)?v:r[m]={name:v};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),i[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});C(r,function(v,m){var g=v.name,y=d(v);if(f==null){var _=h.valueWayDim;p(i[g],_,y),p(o,_,y),h.valueWayDim+=y}else if(f===m)p(i[g],0,y),p(a,0,y);else{var _=h.categoryWayDim;p(i[g],_,y),p(o,_,y),h.categoryWayDim+=y}});function p(v,m,g){for(var y=0;y<g;y++)v.push(m+y)}function d(v){var m=v.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function ST(r,e,t){var i={},n=Vc(r);if(!n)return i;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Ct||a===Wt)&&C(o,function(f,c){(Y(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},h=[],p=0,d=Math.min(5,t);p<d;p++){var v=CT(e.data,a,e.seriesLayoutBy,o,e.startIndex,p);h.push(v);var m=v===ut.Not;if(m&&f.v==null&&p!==s&&(f.v=p),(f.n==null||f.n===f.v||!m&&h[f.n]===ut.Not)&&(f.n=p),g(f)&&h[f.n]!==ut.Not)return f;m||(v===ut.Might&&c.v==null&&p!==s&&(c.v=p),(c.n==null||c.n===c.v)&&(c.n=p))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(l){i.value=[l.v];var u=s!=null?s:l.n;i.itemName=[u],i.seriesName=[u]}return i}function Vc(r){var e=r.get("data",!0);if(!e)return en(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},je).models[0]}function TT(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:en(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},je).models}function Hc(r,e){return CT(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function CT(r,e,t,i,n,a){var o,s=5;if(We(r))return ut.Not;var l,u;if(i){var f=i[a];Y(f)?(l=f.name,u=f.type):z(f)&&(l=f)}if(u!=null)return u==="ordinal"?ut.Must:ut.Not;if(e===rt){var c=r;if(t===ii){for(var h=c[a],p=0;p<(h||[]).length&&p<s;p++)if((o=x(h[n+p]))!=null)return o}else for(var p=0;p<c.length&&p<s;p++){var d=c[n+p];if(d&&(o=x(d[a]))!=null)return o}}else if(e===Ct){var v=r;if(!l)return ut.Not;for(var p=0;p<v.length&&p<s;p++){var m=v[p];if(m&&(o=x(m[l]))!=null)return o}}else if(e===Wt){var g=r;if(!l)return ut.Not;var h=g[l];if(!h||We(h))return ut.Not;for(var p=0;p<h.length&&p<s;p++)if((o=x(h[p]))!=null)return o}else if(e===lt)for(var y=r,p=0;p<y.length&&p<s;p++){var m=y[p],_=_i(m);if(!N(_))return ut.Not;if((o=x(_[a]))!=null)return o}function x(b){var S=z(b);if(b!=null&&isFinite(Number(b))&&b!=="")return S?ut.Might:ut.Not;if(S&&b!=="-")return ut.Must}return ut.Not}var ZR=V();function wT(r,e,t){var i=ZR.get(e);if(!i)return t;var n=i(r);if(!n)return t;if(0)for(var a;a<n.length;a++);return t.concat(n)}var AT=ee(),fj=ee(),Pl=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,i){var n=ze(this.get("color",!0)),a=this.get("colorLayer",!0);return qR(this,AT,n,a,e,t,i)},r.prototype.clearColorPalette=function(){KR(this,AT)},r})();function XR(r,e){for(var t=r.length,i=0;i<t;i++)if(r[i].length>e)return r[i];return r[t-1]}function qR(r,e,t,i,n,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?t:XR(i,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function KR(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Gc,Ol,ET,DT="\0_ec_inner",$R=1;var PT=(function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Ie(a),this._locale=new Ie(o),this._optionManager=s},e.prototype.setOption=function(t,i,n){var a=LT(i);this._optionManager.setOption(t,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,i){return this._resetOption(t,LT(i))},e.prototype._resetOption=function(t,i){var n=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?ET(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&C(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=V(),u=i&&i.replaceMergeMainTypeMap;xT(this),C(t,function(c,h){c!=null&&(Ce.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?te(c):de(n[h],c,!0))}),u&&u.each(function(c,h){Ce.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Ce.topologicalTravel(s,Ce.getAllClassMainTypes(),f,this);function f(c){var h=wT(this,c,ze(t[c])),p=a.get(c),d=p?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=Nx(p,h,d);Bx(v,c,Ce),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;C(v,function(b,S){var T=b.existing,A=b.newOption;if(!A)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var w=c==="series",E=Ce.getClass(c,b.keyInfo.subType,!w);if(!E){if(0)var D,I;return}if(c==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===E)T.name=b.keyInfo.name,T.mergeOption(A,this),T.optionUpdated(A,!1);else{var M=O({componentIndex:S},b.keyInfo);T=new E(A,this,this,M),O(T,M),b.brandNew&&(T.__requireNewView=!0),T.init(A,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),g.push(T),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Gc(this)}this._seriesIndices||Gc(this)},e.prototype.getOption=function(){var t=te(this.option);return C(t,function(i,n){if(Ce.hasClass(n)){for(var a=ze(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ao(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[n]=a}}),delete t[DT],t},e.prototype.setTheme=function(t){this._theme=new Ie(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var n=this._componentsMap.get(t);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]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var n=t.index,a=t.id,o=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],C(ze(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=MT("id",a,s):o!=null?l=MT("name",o,s):l=ke(s,function(u){return!!u}),IT(l,t)},e.prototype.findComponents=function(t){var i=t.query,n=t.mainType,a=s(i),o=a?this.queryComponents(a):ke(this._componentsMap.get(n),function(u){return!!u});return l(IT(o,t));function s(u){var f=n+"Index",c=n+"Id",h=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:n,index:u[f],id:u[c],name:u[h]}:null}function l(u){return t.filter?ke(u,t.filter):u}},e.prototype.eachComponent=function(t,i,n){var a=this._componentsMap;if(Z(t)){var o=i,s=t;a.each(function(c,h){for(var p=0;c&&p<c.length;p++){var d=c[p];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=z(t)?a.get(t):Y(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=tr(t,null);return ke(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return ke(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return ke(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){Ol(this),C(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];t.call(i,a,n)},this)},e.prototype.eachRawSeries=function(t,i){C(this._componentsMap.get("series"),function(n){n&&t.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,n){Ol(this),C(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===t&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,i,n){return C(this.getSeriesByType(t),i,n)},e.prototype.isSeriesFiltered=function(t){return Ol(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){Ol(this);var n=[];C(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=V(n)},e.prototype.restoreData=function(t){Gc(this);var i=this._componentsMap,n=[];i.each(function(a,o){Ce.hasClass(o)&&n.push(o)}),Ce.topologicalTravel(n,Ce.getAllClassMainTypes(),function(a){C(i.get(a),function(o){o&&(a!=="series"||!QR(o,t))&&o.restoreData()})})},e.internalField=(function(){Gc=function(t){var i=t._seriesIndices=[];C(t._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),t._seriesIndicesMap=V(i)},Ol=function(t){},ET=function(t,i){t.option={},t.option[DT]=$R,t._componentsMap=V({series:[]}),t._componentsCount=V();var n=i.aria;Y(n)&&n.enabled==null&&(n.enabled=!0),JR(i,t._theme.option),de(i,Uc,!1),t._mergeOption(i,null)}})(),e})(Ie);function QR(r,e){if(e){var t=e.seriesIndex,i=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||i!=null&&r.id!==i||n!=null&&r.name!==n}}function JR(r,e){var t=r.color&&!r.colorLayer;C(e,function(i,n){n==="colorLayer"&&t||n==="color"&&r.color||Ce.hasClass(n)||(typeof i=="object"?r[n]=r[n]?de(r[n],i,!1):te(i):r[n]==null&&(r[n]=i))})}function MT(r,e,t){if(N(e)){var i=V();return C(e,function(a){if(a!=null){var o=tr(a,null);o!=null&&i.set(a,!0)}}),ke(t,function(a){return a&&i.get(a[r])})}else{var n=tr(e,null);return ke(t,function(a){return a&&n!=null&&a[r]===n})}}function IT(r,e){return e.hasOwnProperty("subType")?ke(r,function(t){return t&&t.subType===e.subType}):r}function LT(r){var e=V();return r&&C(ze(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}It(PT,Pl);var Yc=PT;var eN=/^(min|max)?(.+)$/,tN=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,i){e&&(C(ze(e.series),function(o){o&&o.data&&We(o.data)&&lo(o.data)}),C(ze(e.dataset),function(o){o&&o.source&&We(o.source)&&lo(o.source)})),e=te(e);var n=this._optionBackup,a=rN(e,t,!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},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],te(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(t=te(i[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)iN(n[l].query,t,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!aN(o,this._currentMediaIndices)&&(s=B(o,function(f){return te(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function rN(r,e,t){var i=[],n,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(r.options=r.media=null),a=r),f&&N(u)&&C(u,function(p){p&&p.option&&(p.query?i.push(p):n||(n=p))}),h(a),C(l,function(p){return h(p)}),C(i,function(p){return h(p.option)});function h(p){C(e,function(d){d(p,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function iN(r,e,t){var i={width:e,height:t,aspectratio:e/t},n=!0;return C(r,function(a,o){var s=o.match(eN);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();nN(i[u],a,l)||(n=!1)}}),n}function nN(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function aN(r,e){return r.join(",")===e.join(",")}var OT=tN;var kr=C,Nl=Y,RT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lm(r){var e=r&&r.itemStyle;if(e)for(var t=0,i=RT.length;t<i;t++){var n=RT[t],a=e.normal,o=e.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?de(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?de(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function At(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var i=r[e].normal,n=r[e].emphasis;i&&(t?(r[e].normal=r[e].emphasis=null,ie(r[e],i)):r[e]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Rl(r){At(r,"itemStyle"),At(r,"lineStyle"),At(r,"areaStyle"),At(r,"label"),At(r,"labelLine"),At(r,"upperLabel"),At(r,"edgeLabel")}function Je(r,e){var t=Nl(r)&&r[e],i=Nl(t)&&t.textStyle;if(i)for(var n=0,a=ev.length;n<a;n++){var o=ev[n];i.hasOwnProperty(o)&&(t[o]=i[o])}}function gr(r){r&&(Rl(r),Je(r,"label"),r.emphasis&&Je(r.emphasis,"label"))}function oN(r){if(Nl(r)){Lm(r),Rl(r),Je(r,"label"),Je(r,"upperLabel"),Je(r,"edgeLabel"),r.emphasis&&(Je(r.emphasis,"label"),Je(r.emphasis,"upperLabel"),Je(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Lm(e),gr(e));var t=r.markLine;t&&(Lm(t),gr(t));var i=r.markArea;i&&gr(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!We(a))for(var o=0;o<a.length;o++)gr(a[o]);C(r.categories,function(u){Rl(u)})}if(n&&!We(n))for(var o=0;o<n.length;o++)gr(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)gr(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)N(l[o])?(gr(l[o][0]),gr(l[o][1])):gr(l[o]);r.type==="gauge"?(Je(r,"axisLabel"),Je(r,"title"),Je(r,"detail")):r.type==="treemap"?(At(r.breadcrumb,"itemStyle"),C(r.levels,function(u){Rl(u)})):r.type==="tree"&&Rl(r.leaves)}}function Ei(r){return N(r)?r:r?[r]:[]}function NT(r){return(N(r)?r[0]:r)||{}}function Pm(r,e){kr(Ei(r.series),function(i){Nl(i)&&oN(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),kr(t,function(i){kr(Ei(r[i]),function(n){n&&(Je(n,"axisLabel"),Je(n.axisPointer,"label"))})}),kr(Ei(r.parallel),function(i){var n=i&&i.parallelAxisDefault;Je(n,"axisLabel"),Je(n&&n.axisPointer,"label")}),kr(Ei(r.calendar),function(i){At(i,"itemStyle"),Je(i,"dayLabel"),Je(i,"monthLabel"),Je(i,"yearLabel")}),kr(Ei(r.radar),function(i){Je(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)}),kr(Ei(r.geo),function(i){Nl(i)&&(gr(i),kr(Ei(i.regions),function(n){gr(n)}))}),kr(Ei(r.timeline),function(i){gr(i),At(i,"label"),At(i,"itemStyle"),At(i,"controlStyle",!0);var n=i.data;N(n)&&C(n,function(a){Y(a)&&(At(a,"label"),At(a,"itemStyle"))})}),kr(Ei(r.toolbox),function(i){At(i,"iconStyle"),kr(i.feature,function(n){At(n,"iconStyle")})}),Je(NT(r.axisPointer),"label"),Je(NT(r.tooltip).axisPointer,"label")}function sN(r,e){for(var t=e.split(","),i=r,n=0;n<t.length&&(i=i&&i[t[n]],i!=null);n++);return i}function lN(r,e,t,i){for(var n=e.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=t)}function kT(r){r&&C(uN,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var uN=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],fN=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Om=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function kl(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Om.length;t++){var i=Om[t][1],n=Om[t][0];e[i]!=null&&(e[n]=e[i])}}function BT(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function zT(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function cN(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function FT(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&FT(r[t].children,e)}function Wc(r,e){Pm(r,e),r.series=ze(r.series),C(r.series,function(t){if(Y(t)){var i=t.type;if(i==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(i==="pie"||i==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),BT(t.label);var n=t.data;if(n&&!We(n))for(var a=0;a<n.length;a++)BT(n[a]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var o=sN(t,"pointer.color");o!=null&&lN(t,"itemStyle.color",o)}else if(i==="bar"){kl(t),kl(t.backgroundStyle),kl(t.emphasis);var n=t.data;if(n&&!We(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(kl(n[a]),kl(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),zT(t),FT(t.data,zT)}else i==="graph"||i==="sankey"?cN(t):i==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&ie(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),kT(t)}}),r.dataRange&&(r.visualMap=r.dataRange),C(fN,function(t){var i=r[t];i&&(N(i)||(i=[i]),C(i,function(n){kT(n)}))})}var UT=Lo(hN);function hN(r){var e=V();r.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=t.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:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(t){if(t.length!==0){var i=t[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&t.reverse(),C(t,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),pN(t)}})}function pN(r){C(r,function(e,t){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return n;var p,d;s?d=o.getRawIndex(c):p=o.get(e.stackedByDimension,c);for(var v=NaN,m=t-1;m>=0;m--){var g=r[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,p)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=yi(h,y),v=y;break}}}return i[0]=h,i[1]=v,i})})}var jc=(function(){function r(e){this.data=e.data||(e.sourceFormat===Wt?{}:[]),this.sourceFormat=e.sourceFormat||Dv,this.seriesLayoutBy=e.seriesLayoutBy||ir,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var n=t[i];n.type==null&&Hc(this,i)===ut.Must&&(n.type="ordinal")}}return r})();function es(r){return r instanceof jc}function Bl(r,e,t){t=t||Rm(r);var i=e.seriesLayoutBy,n=dN(r,t,i,e.sourceHeader,e.dimensions),a=new jc({data:r,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:te(e)});return a}function ts(r){return new jc({data:r,sourceFormat:We(r)?rr:lt})}function GT(r){return new jc({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:te(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Rm(r){var e=Dv;if(We(r))e=rr;else if(N(r)){r.length===0&&(e=rt);for(var t=0,i=r.length;t<i;t++){var n=r[t];if(n!=null){if(N(n)||We(n)){e=rt;break}else if(Y(n)){e=Ct;break}}}}else if(Y(r)){for(var a in r)if(Pe(r,a)&&et(r[a])){e=Wt;break}}return e}function dN(r,e,t,i,n){var a,o;if(!r)return{dimensionsDefine:VT(n),startIndex:o,dimensionsDetectedCount:a};if(e===rt){var s=r;i==="auto"||i==null?HT(function(u){u!=null&&u!=="-"&&(z(u)?o==null&&(o=1):o=0)},t,s,10):o=fe(i)?i:i?1:0,!n&&o===1&&(n=[],HT(function(u,f){n[f]=u!=null?u+"":""},t,s,1/0)),a=n?n.length:t===ii?s.length:s[0]?s[0].length:null}else if(e===Ct)n||(n=vN(r));else if(e===Wt)n||(n=[],C(r,function(u,f){n.push(f)}));else if(e===lt){var l=_i(r[0]);a=N(l)&&l.length||1}return{startIndex:o,dimensionsDefine:VT(n),dimensionsDetectedCount:a}}function vN(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return ne(t)}function VT(r){if(r){var e=V();return B(r,function(t,i){t=Y(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function HT(r,e,t,i){if(e===ii)for(var n=0;n<t.length&&n<i;n++)r(t[n]?t[n][0]:null,n);else for(var a=t[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function Zc(r){var e=r.sourceFormat;return e===Ct||e===Wt}var La,Pa,Oa,Ra,YT,WT,qc=(function(){function r(e,t){var i=es(e)?e:ts(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===rr&&(this._offset=0,this._dimSize=t,this._data=n),0)var s;WT(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;WT=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,p=YT[Fm(u,f)];if(O(o,p),u===rr)o.getItem=t,o.count=n,o.fillStorage=i;else{var d=km(u,f);o.getItem=Q(d,null,s,c,h);var v=Bm(u,f);o.count=Q(v,null,s,c,h)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var p=u[h],d=p[0]==null?1/0:p[0],v=p[1]==null?-1/0:p[1],m=s-o,g=l[h],y=0;y<m;y++){var _=f[y*c+h];g[o+y]=_,_<d&&(d=_),_>v&&(v=_)}p[0]=d,p[1]=v}},n=function(){return this._data?this._data.length/this._dimSize:0};YT=(e={},e[rt+"_"+ir]={pure:!0,appendData:a},e[rt+"_"+ii]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ct]={pure:!0,appendData:a},e[Wt]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[lt]={appendData:a},e[rr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})();var Xc=function(r){N(r)||Jd("series.data or dataset.source must be an array.")},Xj=(La={},La[rt+"_"+ir]=Xc,La[rt+"_"+ii]=Xc,La[Ct]=Xc,La[Wt]=function(r,e){for(var t=0;t<e.length;t++){var i=e[t].name;i==null&&Jd("dimension name must not be null/undefined.")}},La[lt]=Xc,La),jT=function(r,e,t,i){return r[i]},mN=(Pa={},Pa[rt+"_"+ir]=function(r,e,t,i){return r[i+e]},Pa[rt+"_"+ii]=function(r,e,t,i,n){i+=e;for(var a=n||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Pa[Ct]=jT,Pa[Wt]=function(r,e,t,i,n){for(var a=n||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;a[o]=l?l[i]:null}return a},Pa[lt]=jT,Pa);function km(r,e){var t=mN[Fm(r,e)];return t}var ZT=function(r,e,t){return r.length},gN=(Oa={},Oa[rt+"_"+ir]=function(r,e,t){return Math.max(0,r.length-e)},Oa[rt+"_"+ii]=function(r,e,t){var i=r[0];return i?Math.max(0,i.length-e):0},Oa[Ct]=ZT,Oa[Wt]=function(r,e,t){var i=t[0].name,n=i!=null?r[i]:null;return n?n.length:0},Oa[lt]=ZT,Oa);function Bm(r,e){var t=gN[Fm(r,e)];return t}var Nm=function(r,e,t){return r[e]},yN=(Ra={},Ra[rt]=Nm,Ra[Ct]=function(r,e,t){return r[t]},Ra[Wt]=Nm,Ra[lt]=function(r,e,t){var i=_i(r);return i instanceof Array?i[e]:i},Ra[rr]=Nm,Ra);function zm(r){var e=yN[r];return e}function Fm(r,e){return r===rt?r+"_"+e:r}function Di(r,e,t){if(r){var i=r.getRawDataItem(e);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return zm(a)(i,o,s)}else{var l=i;return a===lt&&(l=_i(i)),l}}}}var _N=/\{@(.+?)\}/g,XT=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var i=this.getData(t),n=this.getRawValue(e,t),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",p=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,i,n,a,o){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&N(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Z(a))return l.status=t,l.dimensionIndex=n,a(l);if(z(a)){var f=Oc(a,l);return f.replace(_N,function(c,h){var p=h.length,d=h;d.charAt(0)==="["&&d.charAt(p-1)==="]"&&(d=+d.slice(1,p-1));var v=Di(s,e,d);if(o&&N(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},r.prototype.getRawValue=function(e,t){return Di(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){},r})();function Um(r){var e,t;return Y(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function yn(r){return new xN(r)}var xN=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(c||p<d)){var v=this._progress;if(N(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],p,d,l,u);else this._doProgress(v,p,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,i,n,a){qT.reset(t,i,n,a),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:qT.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(i=t.forceFirstProgress,t=t.progress),N(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})();var qT=(function(){var r,e,t,i,n,a={reset:function(l,u,f,c){e=l,r=u,t=f,i=c,n=Math.ceil(i/t),a.next=t>1&&i>0?s:o}};return a;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<i?l:e;return e++,u}})();function rs(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!fe(r)&&r!=null&&r!=="-"&&(r=+Xr(r)),r==null||r===""?NaN:Number(r))}var a4=V({number:function(r){return parseFloat(r)},time:function(r){return+Xr(r)},trim:function(r){return z(r)?mt(r):r}});var bN={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},o4=(function(){function r(e,t){if(!fe(t)){var i="";ct(i)}this._opFn=bN[e],this._rvalFloat=qr(t)}return r.prototype.evaluate=function(e){return fe(e)?this._opFn(e,this._rvalFloat):this._opFn(qr(e),this._rvalFloat)},r})(),KT=(function(){function r(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var i=fe(e)?e:qr(e),n=fe(t)?t:qr(t),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=z(e),l=z(t);s&&(i=l?e:0),l&&(n=s?t:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r})();var s4=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=qr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=qr(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function Kc(r){var e="",t=-1/0,i=-1/0,n=1/0,a=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,i=r.ge),r.l!=null&&(e+="L"+r.l,n=r.l),r.le!=null&&(e+="LE"+r.le,a=r.le)),{key:e,g:t,ge:i,l:n,le:a}}function $c(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var SN=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return rs(e,t)},r})();function TN(r,e){var t=new SN,i=r.data,n=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==ir&&ct(o);var s=[],l={},u=r.dimensionsDefine;if(u)C(u,function(v,m){var g=v.name,y={index:m,name:g,displayName:v.displayName};if(s.push(y),g!=null){var _="";Pe(l,g)&&ct(_),l[g]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=km(n,ir);e.__isBuiltIn&&(t.getRawDataItem=function(v){return c(i,a,s,v)},t.getRawData=Q(CN,null,r)),t.cloneRawData=Q(wN,null,r);var h=Bm(n,ir);t.count=Q(h,null,i,a,s);var p=zm(n);t.retrieveValue=function(v,m){var g=c(i,a,s,v);return d(g,m)};var d=t.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return p(v,m,g.name)}};return t.getDimensionInfo=Q(AN,null,s,l),t.cloneAllDimensionInfo=Q(EN,null,s),t}function CN(r){var e=r.sourceFormat;if(!Vm(e)){var t="";ct(t)}return r.data}function wN(r){var e=r.sourceFormat,t=r.data;if(!Vm(e)){var i="";ct(i)}if(e===rt){for(var n=[],a=0,o=t.length;a<o;a++)n.push(t[a].slice());return n}else if(e===Ct){for(var n=[],a=0,o=t.length;a<o;a++)n.push(O({},t[a]));return n}}function AN(r,e,t){if(t!=null){if(fe(t)||!isNaN(t)&&!Pe(e,t))return r[t];if(Pe(e,t))return e[t]}}function EN(r){return te(r)}var $T=V();function QT(r){r=te(r);var e=r.type,t="";e||ct(t);var i=e.split(":");i.length!==2&&ct(t);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),r.__isBuiltIn=n,$T.set(e,r)}function JT(r,e,t){var i=ze(r),n=i.length,a="";n||ct(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=DN(l,e,t,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function DN(r,e,t,i){var n="";e.length||ct(n),Y(r)||ct(n);var a=r.type,o=$T.get(a);o||ct(n);var s=B(e,function(f){return TN(f,o)}),l=ze(o.transform({upstream:s[0],upstreamList:s,config:te(r.config)}));if(0&&r.print)var u;return B(l,function(f,c){var h="";Y(f)||ct(h),f.data||ct(h);var p=Rm(f.data);Vm(p)||ct(h);var d,v=e[0];if(v&&c===0&&!f.dimensions){var m=v.startIndex;m&&(f.data=v.data.slice(0,m).concat(f.data)),d={seriesLayoutBy:ir,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:ir,sourceHeader:0,dimensions:f.dimensions};return Bl(f.data,d,null)})}function Vm(r){return r===rt||r===Ct}var MN=typeof Uint32Array===ln?Array:Uint32Array,IN=typeof Uint16Array===ln?Array:Uint16Array,Gm=typeof Int32Array===ln?Array:Int32Array,eC=typeof Float64Array===ln?Array:Float64Array,rC={float:eC,int:Gm,ordinal:Array,number:Array,time:eC},Hm;function is(r){return r>65535?MN:IN}function LN(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function tC(r,e,t,i,n){var a=rC[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new a(i)}var PN=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=V()}return r.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Hm[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=Zc(n);this._dimensions=B(t,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===t)return a}else a=n.length;return n[a]={type:t},i.set(e,a),this._chunks[a]=new rC[t||"float"](this._rawCount),this._rawExtent[a]=yt(),a},r.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=yt());for(var l=a[e],u=o;u<s;u++){var f=i[u]=t.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,i=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(e,t){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<a;u++){var f=n[u];tC(i,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var p=h-s,d=0;d<a;d++){var f=n[d],v=Hm.arrayRows.call(this,e[p]||c,f.property,p,d);i[d][h]=v;var m=o[d];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=B(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=yt()),tC(a,f,c.type,t,i)}if(n.fillStorage)n.fillStorage(e,t,a,l);else for(var h=[],p=e;p<t;p++){h=n.getItem(p,h);for(var d=0;d<s;d++){var v=a[d],m=this._dimValueGetter(h,u[d],p,d);v[p]=m;var g=l[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var i=[],n=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],t));return i},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(e){var t=[];this.each([e],function(n){isNaN(n)||t.push(n)}),Gt(t);var i=this.count();return i===0?0:i%2===1?t[(i-1)/2]:(t[i/2]+t[i/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=t[a]}else e=new i(t.buffer,0,n)}else{var i=is(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=is(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,h=0;h<n;h++){var p=void 0,d=i.getRawIndex(h);if(l===0)p=t(h);else if(l===1){var v=c[f][d];p=t(v,h)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][d];s[m]=h,p=t.apply(null,s)}p&&(o[u++]=d)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var n=ne(e),a=n.length;if(!a)return this;var o=t.count(),s=is(t._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],h=e[f][1],p=t._chunks,d=!1;if(!t._indices){var v=0;if(a===1){for(var m=p[n[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=h||isNaN(y))&&(l[u++]=v),v++}d=!0}else if(a===2){for(var m=p[n[0]],_=p[n[1]],x=e[n[1]][0],b=e[n[1]][1],g=0;g<i;g++){var y=m[g],S=_[g];(y>=c&&y<=h||isNaN(y))&&(S>=x&&S<=b||isNaN(S))&&(l[u++]=v),v++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var T=t.getRawIndex(g),y=p[n[0]][T];(y>=c&&y<=h||isNaN(y))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var A=!0,T=t.getRawIndex(g),w=0;w<a;w++){var E=n[w],y=p[E][T];(y<e[E][0]||y>e[E][1])&&(A=!1)}A&&(l[u++]=t.getRawIndex(g))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,i){for(var n=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=yt();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),p=0;p<o;p++)l[p]=n[t[p]][h];l[o]=c;var d=i&&i.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var v=t[f],m=d[f],g=u[v],y=n[v];y&&(y[h]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,h,p=new(is(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));p[s++]=u;for(var d=1;d<o-1;d+=l){for(var v=Math.min(d+l,o-1),m=Math.min(d+l*2,o),g=(m+v)/2,y=0,_=v;_<m;_++){var x=this.getRawIndex(_),b=a[x];isNaN(b)||(y+=b)}y/=m-v;var S=d,T=Math.min(d+l,o),A=d-1,w=a[u];f=-1,h=S;for(var E=-1,D=0,_=S;_<T;_++){var x=this.getRawIndex(_),b=a[x];if(isNaN(b)){D++,E<0&&(E=x);continue}c=Math.abs((A-g)*(b-w)-(A-_)*(y-w)),c>f&&(f=c,h=x)}D>0&&D<T-S&&(p[s++]=Math.min(E,h),h=Math.max(E,h)),p[s++]=h,u=h}return p[s++]=this.getRawIndex(o-1),i._count=s,i._indices=p,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(e,t){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/t),o=n[e],s=this.count(),l=new(is(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],p=f,d=o[this.getRawIndex(p)],v=a;f+a>s&&(v=s-f);for(var m=0;m<v;m++){var g=this.getRawIndex(f+m),y=o[g];y<h&&(h=y,c=f+m),y>d&&(d=y,p=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(p);c<p?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},r.prototype.downSample=function(e,t,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),c=a._rawExtent[e]=yt(),h=new(is(this._rawCount))(Math.ceil(f/l)),p=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var v=0;v<l;v++){var m=this.getRawIndex(d+v);s[v]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(d+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[p++]=y}return a._count=p,a._indices=h,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:t(a);break;case 1:t(n[e[0]][s],a);break;case 2:t(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var i=this._chunks[e],n=yt();if(!i)return n;var a=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Kc(t),f=u.key,c=l[f];if(c)return c.slice();for(var h=n[0],p=n[1],d=0;d<a;d++){var v=this.getRawIndex(d),m=i[v];(!t||$c(u,m))&&(m<h&&(h=m),m>p&&(p=m))}return l[f]=[h,p]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][t]);return i},r.prototype.clone=function(e,t){var i=new r,n=this._chunks,a=e&&$t(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?LN(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=te(this._extent),e._rawExtent=te(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var n=0;n<i;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,i,n,a){return rs(t[a],this._dimensions[a])}Hm={arrayRows:e,objectRows:function(t,i,n,a){return rs(t[i],this._dimensions[a])},keyedColumns:e,original:function(t,i,n,a){var o=t&&(t.value==null?t:t.value);return rs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,i,n,a){return t[a]}}})(),r})(),zl=PN;var nC=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,n,a;if(Qc(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=We(s)?rr:lt,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},p=G(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=G(c.sourceHeader,h.sourceHeader),v=G(c.dimensions,h.dimensions),m=p!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||v;n=m?[Bl(s,{seriesLayoutBy:p,sourceHeader:d,dimensions:v},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(t);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[Bl(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&iC(a)}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&iC(c),s.push(f),l.push(u._getVersionSign())}),i?o=JT(i,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[GT(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Qc(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new zl,s.initData(new qc(t,e.length),e)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Qc(e)){var t=Vc(e);return t?[t.getSourceManager()]:[]}else return B(TT(e),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,n;if(Qc(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:n}},r})();function Qc(r){return r.mainType==="series"}function iC(r){throw new Error(r)}var ON="line-height:1";function aC(r){var e=r.lineHeight;return e==null?ON:"line-height:"+ot(e+"")+"px"}function oC(r,e){var t=r.color||j.color.tertiary,i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||j.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ot(i+"")+"px;color:"+ot(t)+";font-weight:"+ot(n+""),valueStyle:"font-size:"+ot(o+"")+"px;color:"+ot(a)+";font-weight:"+ot(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var RN=[0,10,20,30],NN=["",`
|
|
9
|
+
`,`
|
|
10
|
+
|
|
11
|
+
`,`
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
`];function Na(r,e){return e.type=r,e}function Ym(r){return r.type==="section"}function sC(r){return Ym(r)?kN:BN}function lC(r){if(Ym(r)){var e=0,t=r.blocks.length,i=t>1||t>0&&!r.noHeader;return C(r.blocks,function(n){var a=lC(n);a>=e&&(e=a+ +(i&&(!a||Ym(n)&&!n.noHeader)))}),e}return 0}function kN(r,e,t,i){var n=e.noHeader,a=zN(lC(e)),o=[],s=e.blocks||[];Ue(!s||N(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Pe(u,l)){var f=new KT(u[l],null);s.sort(function(v,m){return f.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(v,m){var g=e.valueFormatter,y=sC(v)(g?O(O({},r),{valueFormatter:g}):r,v,m>0?a.html:0,i);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(a.richText):Wm(i,o.join(""),n?t:a.html);if(n)return c;var h=Pc(e.header,"ordinal",r.useUTC),p=oC(i,r.renderMode).nameStyle,d=aC(i);return r.renderMode==="richText"?uC(r,h,p)+a.richText+c:Wm(i,'<div style="'+p+";"+d+';">'+ot(h)+"</div>"+c,t)}function BN(r,e,t,i){var n=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(x){return x=N(x)?x:[x],B(x,function(b,S){return Pc(b,N(p)?p[S]:p,u)})};if(!(a&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||j.color.secondary,n),h=a?"":Pc(l,"ordinal",u),p=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),v=!s||!a,m=!s&&a,g=oC(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(a?"":uC(r,h,y))+(o?"":VN(r,d,v,m,_)):Wm(i,(s?"":c)+(a?"":FN(h,!s,y))+(o?"":UN(d,v,m,_)),t)}}function jm(r,e,t,i,n,a){if(r){var o=sC(r),s={useUTC:n,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function zN(r){return{html:RN[r],richText:NN[r]}}function Wm(r,e,t){var i='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",a=aC(r);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function FN(r,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+ot(r)+"</span>"}function UN(r,e,t,i){var n=t?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return r=N(r)?r:[r],'<span style="'+a+";"+i+'">'+B(r,function(o){return ot(o)}).join(" ")+"</span>"}function uC(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function VN(r,e,t,i,n){var a=[n],o=i?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(e)?e.join(" "):e,a)}function fC(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return Nr(i)}function Jc(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var eh=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=ol()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var n=i==="richText"?this._generateStyleName():null,a=cT({color:t,type:e,renderMode:i,markerId:n});return z(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};N(t)?C(t,function(a){return O(i,a)}):O(i,t);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},r})();function cC(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=N(s),u=fC(e,t),f,c,h,p;if(o>1||l&&!o){var d=HN(s,e,t,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,p=d.inlineValues[0]}else if(o){var v=n.getDimensionInfo(a[0]);p=f=Di(n,t,a[0]),c=v.type}else p=f=l?s[0]:s;var m=Eo(e),g=m&&e.name||"",y=n.getName(t),_=i?g:y;return Na("section",{header:g,noHeader:i||!m,sortParam:p,blocks:[Na("nameValue",{markerType:"item",markerColor:u,name:_,noName:!mt(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(t)})].concat(h||[])})}function HN(r,e,t,i,n){var a=e.getData(),o=$t(r,function(c,h,p){var d=a.getDimensionInfo(p);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?C(i,function(c){f(Di(a,t,c),c)}):C(r,f);function f(c,h){var p=a.getDimensionInfo(h);!p||p.otherDims.tooltip===!1||(o?u.push(Na("nameValue",{markerType:"subItem",markerColor:n,name:p.displayName,value:c,valueType:p.type})):(s.push(c),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var _n=ee();function th(r,e){return r.getName(e)||r.getId(e)}var GN="__universalTransitionEnabled",rh=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,n){this.seriesIndex=this.componentIndex,this.dataTask=yn({count:WN,reset:jN}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var a=_n(this).sourceManager=new nC(this);a.prepareSource();var o=this.getInitialData(t,n);pC(o,this),this.dataTask.context.data=o,_n(this).dataBeforeProcessed=o,hC(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var n=mn(this),a=n?mr(t):{},o=this.subType;Ce.hasClass(o)&&(o+="Series"),de(t,i.getTheme().get(this.subType)),de(t,this.getDefaultOption()),ll(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ar(t,a,n)},e.prototype.mergeOption=function(t,i){t=de(this.option,t,!0),this.fillDataTextStyle(t.data);var n=mn(this);n&&ar(this.option,t,n);var a=_n(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,i);pC(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,_n(this).dataBeforeProcessed=o,hC(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!We(t))for(var i=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ll(t[n],"label",i)},e.prototype.getInitialData=function(t,i){},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=Zm(this);if(i){var n=i.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return _n(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=Zm(this);if(i){var n=i.context;n.outputData=t,i!==this.dataTask&&(n.data=t)}_n(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return V(t)},e.prototype.getSourceManager=function(){return _n(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return _n(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,h=-1,p=0,d=o.getDimensionIndex(i),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),_=l.dataToCoord(y),x=u-_,b=Math.abs(x);b<=a&&((b<c||b===c&&x>=0&&h<0)&&(c=b,h=x,p=0),x===h&&(f[p++]=m))}return f.length=p,f},e.prototype.formatTooltip=function(t,i,n){return cC({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(se.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,n){var a=this.ecModel,o=Pl.prototype.getColorFromPalette.call(this,t,i,n);return o||(o=a.getColorFromPalette(t,i,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,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<t.length;s++){var l=t[s],u=th(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var n=[],a=0;a<t.length;a++)n[0]=t[a],this.isSelected(t[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=ne(t),n=[],a=0;a<i.length;a++){var o=t[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[th(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[GN])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],h=th(t,c);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var p=i[l-1],h=th(t,p);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(a={},a[h]=t.getRawIndex(p),a)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(n){var a=t.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return Ce.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(Ce);It(rh,XT);It(rh,Pl);zf(rh,Ce);function hC(r){var e=r.name;Eo(r)||(r.name=YN(r)||e)}function YN(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return C(t,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function WN(r){return r.model.getRawData().count()}function jN(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),ZN}function ZN(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pC(r,e){C(r0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Te(XN,e))})}function XN(r,e){var t=Zm(r);return t&&t.setOutputEnd((e||this).count()),e}function Zm(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var Nt=rh;var Xm=(function(){function r(){this.group=new be,this.uid=pn("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){},r.prototype.updateLayout=function(e,t,i,n){},r.prototype.updateVisual=function(e,t,i,n){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();Po(Xm);rn(Xm);var xt=Xm;function ka(){var r=ee();return function(e){var t=r(e),i=e.pipelineContext,n=!!t.large,a=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var mC=ee(),qN=ka(),qm=(function(){function r(){this.group=new be,this.uid=pn("viewChart"),this.renderTask=yn({plan:KN,reset:$N}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.highlight=function(e,t,i,n){var a=e.getData(n&&n.dataType);a&&vC(a,n,"emphasis")},r.prototype.downplay=function(e,t,i,n){var a=e.getData(n&&n.dataType);a&&vC(a,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.updateVisual=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.eachRendered=function(e){ba(this.group,e)},r.markUpdateMethod=function(e,t){mC(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function dC(r,e,t){r&&xl(r)&&(e==="emphasis"?ha:pa)(r,t)}function vC(r,e,t){var i=cr(r,e),n=e&&e.highlightKey!=null?tS(e.highlightKey):null;i!=null?C(ze(i),function(a){dC(r.getItemGraphicEl(a),t,n)}):r.eachItemGraphicEl(function(a){dC(a,t,n)})}Po(qm,["dispose"]);rn(qm);function KN(r){return qN(r.model)}function $N(r){var e=r.model,t=r.ecModel,i=r.api,n=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=n&&mC(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,n),QN[l]}var QN={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},bt=qm;var ih="\0__throttleOriginMethod",gC="\0__throttleRate",yC="\0__throttleType";function Fl(r,e,t){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];i=new Date().getTime(),l=this,u=p;var v=f||e,m=f||t;f=null,s=i-(m?n:a)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),n=i};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(p){f=p},h}function xn(r,e,t,i){var n=r[e];if(n){var a=n[ih]||n,o=n[yC],s=n[gC];if(s!==t||o!==i){if(t==null||!i)return r[e]=a;n=r[e]=Fl(a,t,i==="debounce"),n[ih]=a,n[yC]=i,n[gC]=t}return n}}function Ba(r,e){var t=r[e];t&&t[ih]&&(t.clear&&t.clear(),r[e]=t[ih])}var _C=ee(),xC={itemStyle:Kr(cm,!0),lineStyle:Kr(fm,!0)},JN={lineStyle:"stroke",itemStyle:"fill"};function bC(r,e){var t=r.visualStyleMapper||xC[e];return t||(console.warn("Unknown style type '"+e+"'."),xC.itemStyle)}function SC(r,e){var t=r.visualDrawType||JN[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var TC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=bC(r,i),o=a(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=SC(r,i),u=o[l],f=Z(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(p,d){var v=r.getDataParams(d),m=O({},o);m[l]=f(v),p.setItemVisual(d,"style",m)}}}},Ul=new Ie,CC={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=bC(r,i),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Ul.option=l[i];var u=n(Ul),f=o.ensureUniqueItemVisual(s,"style");O(f,u),Ul.option.decal&&(o.setItemVisual(s,"decal",Ul.option.decal),Ul.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},wC={performRawSeries:!0,overallReset:function(r){var e=V();r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.type+"-"+t.getColorBy();_C(t).scope=e.get(i)||e.set(i,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.getRawData(),n={},a=t.getData(),o=_C(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=SC(t,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),p=i.getName(u)||u+"",d=i.count();h[l]=t.getColorFromPalette(p,o,d)}})}})}};var nh=Math.PI;function $m(r,e){e=e||{},ie(e,{text:"loading",textColor:j.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:j.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new be,i=new xe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var n=new Me({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new xe({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new Al({shape:{startAngle:-nh/2,endAngle:-nh/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:nh*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:nh*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var ek=(function(){function r(e,t,i,n){this._stageTaskMap=V(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!t&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(t,i):Bf(e,t,i);e.pipelineContext=i.context=n},r.prototype.restorePipelines=function(e,t){var i=this,n=i._pipelineMap=V();t.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;C(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";Ue(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,t,i),n.overallReset&&this._createOverallStageTask(n,a,t,i)},this)},r.prototype.prepareView=function(e,t,i,n){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},r.prototype._performStageTasks=function(e,t,i,n){n=n||{};var a=!1,o=this;C(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var p,d=h.agentStubMap;d.each(function(m){s(n,m)&&(m.dirty(),p=!0)}),p&&h.dirty(),o.updatePayload(h,i);var v=o.getPerformArgs(h,n.block);d.each(function(m){m.perform(v)}),h.perform(v)&&(a=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,i,n){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=V(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var h=c.uid,p=s.set(h,o&&o.get(h)||yn({plan:ak,reset:ok,count:lk}));p.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,p)}},r.prototype._createOverallStageTask=function(e,t,i,n){var a=this,o=t.overallTask=t.overallTask||yn({reset:tk});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=V(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,h=!1,p="";Ue(!e.createOnAllSeries,p),u?i.eachRawSeriesByType(u,d):f?f(i,n).each(d):C(i.getSeries(),d);function d(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(h=!0,yn({reset:rk,onDirty:nk})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(v,g)}h&&o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return Z(e)&&(e={overallReset:e,seriesType:uk(e)}),e.uid=pn("stageHandler"),t&&(e.visualType=t),e},r})();function tk(r){r.overallReset(r.ecModel,r.api,r.payload)}function rk(r){return r.dirtyOnOverallProgress&&ik}function ik(){this.agent.dirty(),this.getDownstream().dirty()}function nk(){this.agent&&this.agent.dirty()}function ak(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function ok(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=ze(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?B(e,function(t,i){return AC(i)}):sk}var sk=AC(0);function AC(r){return function(e,t){var i=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function lk(r){return r.data.count()}function uk(r){ah=null;try{r(Vl,EC)}catch(e){}return ah}var Vl={},EC={},ah;DC(Vl,Yc);DC(EC,Zf);Vl.eachSeriesByType=Vl.eachRawSeriesByType=function(r){ah=r};Vl.eachComponent=function(r){r.mainType==="series"&&r.subType&&(ah=r.subType)};function DC(r,e){for(var t in e.prototype)r[t]=Ee}var Qm=ek;var X=j.darkColor,MC=X.background,Hl=function(){return{axisLine:{lineStyle:{color:X.axisLine}},splitLine:{lineStyle:{color:X.axisSplitLine}},splitArea:{areaStyle:{color:[X.backgroundTint,X.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:X.axisMinorSplitLine}},axisLabel:{color:X.axisLabel},axisName:{}}},IC={label:{color:X.secondary},itemStyle:{borderColor:X.borderTint},dividerLineStyle:{color:X.border}},LC={darkMode:!0,color:X.theme,backgroundColor:MC,axisPointer:{lineStyle:{color:X.border},crossStyle:{color:X.borderShade},label:{color:X.tertiary}},legend:{textStyle:{color:X.secondary},pageTextStyle:{color:X.tertiary}},textStyle:{color:X.secondary},title:{textStyle:{color:X.primary},subtextStyle:{color:X.quaternary}},toolbox:{iconStyle:{borderColor:X.accent50},feature:{dataView:{backgroundColor:MC,textColor:X.primary,textareaColor:X.background,textareaBorderColor:X.border,buttonColor:X.accent50,buttonTextColor:X.neutral00}}},tooltip:{backgroundColor:X.neutral20,defaultBorderColor:X.border,textStyle:{color:X.tertiary}},dataZoom:{borderColor:X.accent10,textStyle:{color:X.tertiary},brushStyle:{color:X.backgroundTint},handleStyle:{color:X.neutral00,borderColor:X.accent20},moveHandleStyle:{color:X.accent40},emphasis:{handleStyle:{borderColor:X.accent50}},dataBackground:{lineStyle:{color:X.accent30},areaStyle:{color:X.accent20}},selectedDataBackground:{lineStyle:{color:X.accent50},areaStyle:{color:X.accent30}}},visualMap:{textStyle:{color:X.secondary},handleStyle:{borderColor:X.neutral30}},timeline:{lineStyle:{color:X.accent10},label:{color:X.tertiary},controlStyle:{color:X.accent30,borderColor:X.accent30}},calendar:{itemStyle:{color:X.neutral00,borderColor:X.neutral20},dayLabel:{color:X.tertiary},monthLabel:{color:X.secondary},yearLabel:{color:X.secondary}},matrix:{x:IC,y:IC,backgroundColor:{borderColor:X.axisLine},body:{itemStyle:{borderColor:X.borderTint}}},timeAxis:Hl(),logAxis:Hl(),valueAxis:Hl(),categoryAxis:Hl(),line:{symbol:"circle"},graph:{color:X.theme},gauge:{title:{color:X.secondary},axisLine:{lineStyle:{color:[[1,X.neutral05]]}},axisLabel:{color:X.axisLabel},detail:{color:X.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:X.background}},radar:(function(){var r=Hl();return r.axisName={color:X.axisLabel},r.axisLine.lineStyle.color=X.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:X.neutral20,textStyle:{color:X.secondary}},emphasis:{itemStyle:{color:X.neutral30}}}},sunburst:{itemStyle:{borderColor:X.background}},map:{itemStyle:{borderColor:X.border,areaColor:X.neutral10},label:{color:X.tertiary},emphasis:{label:{color:X.primary},itemStyle:{areaColor:X.highlight}},select:{label:{color:X.primary},itemStyle:{areaColor:X.highlight}}},geo:{itemStyle:{borderColor:X.border,areaColor:X.neutral10},emphasis:{label:{color:X.primary},itemStyle:{areaColor:X.highlight}},select:{label:{color:X.primary},itemStyle:{color:X.highlight}}}};LC.categoryAxis.splitLine.show=!1;var PC=LC;var OC=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},i={},n={};if(z(e)){var a=Yt(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],p=u.lastIndexOf(h);if(p>0&&p===u.length-h.length){var d=u.slice(0,p);d!=="data"&&(t.mainType=d,t[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:n}},r.prototype.filter=function(e,t){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 l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,a));function f(c,h,p,d){return c[p]==null||h[d||p]===c[p]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})();var Jm=["symbol","symbolSize","symbolRotate","symbolOffset"],RC=Jm.concat(["symbolKeepAspect"]),NC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Jm.length;o++){var s=Jm[o],l=r.get(s);Z(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,t.setVisual(O({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),e.isSeriesFiltered(r))return;var u=ne(n);function f(c,h){for(var p=r.getRawValue(h),d=r.getDataParams(h),v=0;v<u.length;v++){var m=u[v];c.setItemVisual(h,m,n[m](p,d))}}return{dataEach:a?f:null}}},kC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<RC.length;s++){var l=RC[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function BC(r,e,t){switch(t){case"color":var i=r.getItemVisual(e,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:}}function zC(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:}}function FC(r,e){function t(i,n){var a=[];return i.eachComponent({mainType:"series",subType:r,query:n},function(o){a.push(o.seriesIndex)}),a}C([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){e(i[0],function(n,a,o){n=O({},n),o.dispatchAction(O(n,{type:i[1],seriesIndex:t(a,n)}))})})}function ns(r,e,t,i,n){var a=r+e;t.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=cr(c,n.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:N(h)?c.getName(h[0]):c.getName(h),selected:z(l)?l:O({},l)})}})}function UC(r,e,t){r.on("selectchanged",function(i){var n=t.getModel();i.isFromClick?(ns("map","selectchanged",e,n,i),ns("pie","selectchanged",e,n,i)):i.fromAction==="select"?(ns("map","selected",e,n,i),ns("pie","selected",e,n,i)):i.fromAction==="unselect"&&(ns("map","unselected",e,n,i),ns("pie","unselected",e,n,i))})}function za(r,e,t){for(var i;r&&!(e(r)&&(i=r,t));)r=r.__hostTarget||r.parent;return i}var fk=new at,or=fk;var VC={};function HC(r,e){VC[r]=e}function GC(r){return VC[r]}var ck={};function YC(r,e){ck[r]=e}var oh=ee();function WC(r){oh(r).prepare={}}function jC(r){oh(r).fullUpdate={}}function sh(r){return oh(r).prepare}function Fa(r){return oh(r).fullUpdate}var hk=Math.round(Math.random()*9),pk=typeof Object.defineProperty=="function",dk=(function(){function r(){this._id="__ec_inner_"+hk++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var i=this._guard(e);return pk?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),ZC=dk;var vk=ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,n=e.width/2,a=e.height/2;r.moveTo(t,i-a),r.lineTo(t+n,i+a),r.lineTo(t-n,i+a),r.closePath()}}),mk=ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,n=e.width/2,a=e.height/2;r.moveTo(t,i-a),r.lineTo(t+n,i),r.lineTo(t,i+a),r.lineTo(t-n,i),r.closePath()}}),gk=ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),p=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-c*p,l+s+h*p,t,i-d,t,i),r.bezierCurveTo(t,i-d,t-f+c*p,l+s+h*p,t-f,l+s),r.closePath()}}),yk=ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+t),r.lineTo(n,a+t/4*3),r.lineTo(n-o,a+t),r.lineTo(n,a),r.closePath()}}),_k={line:Pr,rect:xe,roundRect:xe,square:xe,circle:Sl,diamond:mk,pin:gk,arrow:yk,triangle:vk},xk={line:function(r,e,t,i,n){n.x1=r,n.y1=e+i/2,n.x2=r+t,n.y2=e+i/2},rect:function(r,e,t,i,n){n.x=r,n.y=e,n.width=t,n.height=i},roundRect:function(r,e,t,i,n){n.x=r,n.y=e,n.width=t,n.height=i,n.r=Math.min(t,i)/4},square:function(r,e,t,i,n){var a=Math.min(t,i);n.x=r,n.y=e,n.width=a,n.height=a},circle:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.r=Math.min(t,i)/2},diamond:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.width=t,n.height=i},pin:function(r,e,t,i,n){n.x=r+t/2,n.y=e+i/2,n.width=t,n.height=i},arrow:function(r,e,t,i,n){n.x=r+t/2,n.y=e+i/2,n.width=t,n.height=i},triangle:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.width=t,n.height=i}},Gl={};C(_k,function(r,e){Gl[e]=new r});var bk=ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var i=ea(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=t.y+t.height*.4),i},buildPath:function(r,e,t){var i=e.symbolType;if(i!=="none"){var n=Gl[i];n||(i="rect",n=Gl[i]),xk[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function Sk(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||j.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Et(r,e,t,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=im(r.slice(8),new re(e,t,i,n),o?"center":"cover"):r.indexOf("path://")===0?l=hc(r.slice(7),{},new re(e,t,i,n),o?"center":"cover"):l=new bk({shape:{symbolType:r,x:e,y:t,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=Sk,a&&l.setColor(a),l}function XC(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function lh(r,e){if(r!=null)return N(r)||(r=[r,r]),[we(r[0],e[0])||0,we(G(r[1],r[0]),e[1])||0]}function Ua(r){return isFinite(r)}function Tk(r,e,t){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,n=n*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y),i=Ua(i)?i:0,n=Ua(n)?n:1,a=Ua(a)?a:0,o=Ua(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function Ck(r,e,t){var i=t.width,n=t.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+t.x,s=s*n+t.y,l=l*a),o=Ua(o)?o:.5,s=Ua(s)?s:.5,l=l>=0&&Ua(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Yl(r,e,t){for(var i=e.type==="radial"?Ck(r,e,t):Tk(r,e,t),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function qC(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function uh(r){return parseInt(r,10)}function bn(r,e,t){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||uh(s[i])||uh(r.style[i]))-(uh(s[a])||0)-(uh(s[o])||0)||0}function wk(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:fe(r)?[r]:N(r)?r:null}function Wl(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&wk(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=B(t,function(a){return a/n}),i/=n)}return[t,i]}var Ak=new _t(!0);function fh(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function KC(r){return typeof r=="string"&&r!=="none"}function ch(r){var e=r.fill;return e!=null&&e!=="none"}function $C(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function QC(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function hh(r,e,t){var i=cl(e.image,e.__image,t);if(Oo(i)){var n=r.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*uo),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function Ek(r,e,t,i,n){var a,o=fh(t),s=ch(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||Ak,h=e.__dirty;if(!i){var p=t.fill,d=t.stroke,v=s&&!!p.colorStops,m=o&&!!d.colorStops,g=s&&!!p.image,y=o&&!!d.image,_=void 0,x=void 0,b=void 0,S=void 0,T=void 0;(v||m)&&(T=e.getBoundingRect()),v&&(_=h?Yl(r,p,T):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=h?Yl(r,d,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(b=h||!e.__canvasFillPattern?hh(r,p,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(S=h||!e.__canvasStrokePattern?hh(r,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),v?r.fillStyle=_:g&&(b?r.fillStyle=b:s=!1),m?r.strokeStyle=x:y&&(S?r.strokeStyle=S:o=!1)}var A=e.getGlobalScale();c.setScale(A[0],A[1],e.segmentIgnoreThreshold);var w,E;r.setLineDash&&t.lineDash&&(a=Wl(e),w=a[0],E=a[1]);var D=!0;(f||h&ji)&&(c.setDPR(r.dpr),u?c.setContext(null):(c.setContext(r),D=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(r,u?l:1),w&&(r.setLineDash(w),r.lineDashOffset=E),i?(n.batchFill=s,n.batchStroke=o):t.strokeFirst?(o&&QC(r,t),s&&$C(r,t)):(s&&$C(r,t),o&&QC(r,t)),w&&r.setLineDash([])}function Dk(r,e,t){var i=e.__image=cl(t.image,e.__image,e,e.onload);if(!(!i||!Oo(i))){var n=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(i,u,f,t.sWidth,t.sHeight,n,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,c=o-u,h=s-f;r.drawImage(i,u,f,c,h,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function Mk(r,e,t){var i,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||Vt,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=Wl(e),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(fh(t)&&r.strokeText(n,t.x,t.y),ch(t)&&r.fillText(n,t.x,t.y)):(ch(t)&&r.fillText(n,t.x,t.y),fh(t)&&r.strokeText(n,t.x,t.y)),a&&r.setLineDash([])}}var JC=["shadowBlur","shadowOffsetX","shadowOffsetY"],ew=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ow(r,e,t,i,n){var a=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){kt(r,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?$r.opacity:o}(i||e.blend!==t.blend)&&(a||(kt(r,n),a=!0),r.globalCompositeOperation=e.blend||$r.blend);for(var s=0;s<JC.length;s++){var l=JC[s];(i||e[l]!==t[l])&&(a||(kt(r,n),a=!0),r[l]=r.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(a||(kt(r,n),a=!0),r.shadowColor=e.shadowColor||$r.shadowColor),a}function tw(r,e,t,i,n){var a=e.style,o=i?null:t&&t.style||{};if(a===o)return!1;var s=ow(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(kt(r,n),s=!0),KC(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(kt(r,n),s=!0),KC(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(kt(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(kt(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<ew.length;f++){var c=ew[f],h=c[0];(i||a[h]!==o[h])&&(s||(kt(r,n),s=!0),r[h]=a[h]||c[1])}return s}function Ik(r,e,t,i,n){return ow(r,e.style,t&&t.style,i,n)}function sw(r,e){var t=e.transform,i=r.dpr||1;t?r.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):r.setTransform(i,0,0,i,0,0)}function Lk(r,e,t){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),sw(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=i}function Pk(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var rw=1,iw=2,nw=3,aw=4;function Ok(r){var e=ch(r),t=fh(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function kt(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function ph(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Sn(r,e,t),Va(r,t)}function Sn(r,e,t){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~Qe,e.__isRendered=!1;return}var n=e.__clipPaths,a=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||qC(n,a))&&(a&&(kt(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),n&&n.length&&(kt(r,t),r.save(),Lk(n,r,t),s=!0,t.prevElClipPaths=n)),t.allClipped){e.__dirty&=~Qe,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof ae&&e.autoBatch&&Ok(o);s||Pk(i,u.transform)?(kt(r,t),sw(r,e)):f||kt(r,t),e instanceof ae?(t.lastDrawType!==rw&&(l=!0,t.lastDrawType=rw),tw(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),Ek(r,e,o,f,t)):e instanceof ca?(t.lastDrawType!==nw&&(l=!0,t.lastDrawType=nw),tw(r,e,u,l,t),Mk(r,e,o)):e instanceof Tt?(t.lastDrawType!==iw&&(l=!0,t.lastDrawType=iw),Ik(r,e,u,l,t),Dk(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==aw&&(l=!0,t.lastDrawType=aw),Rk(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&kt(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Va(r,e){kt(r,e),e.prevElClipPaths&&r.restore()}function Rk(r,e,t){var i=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Sn(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Va(r,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Sn(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Va(r,a),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var eg=new ZC,lw=new Wr(100),uw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function jl(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";r.dirty&&eg.delete(r);var a=eg.get(r);if(a)return a;var o=ie(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,eg.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],c=!0,h=0;h<uw.length;++h){var p=o[uw[h]];if(p!=null&&!N(p)&&!z(p)&&!fe(p)&&typeof p!="boolean"){c=!1;break}f.push(p)}var d;if(c){d=f.join(",")+(n?"-svg":"");var v=lw.get(d);v&&(n?u.svgElement=v:u.image=v)}var m=cw(o.dashArrayX),g=Nk(o.dashArrayY),y=fw(o.symbol),_=kk(m),x=hw(g),b=!n&&$e.createCanvas(),S=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=w(),A;b&&(b.width=T.width*t,b.height=T.height*t,A=b.getContext("2d")),E(),c&&lw.put(d,b||S),u.image=b,u.svgElement=S,u.svgWidth=T.width,u.svgHeight=T.height;function w(){for(var D=1,I=0,M=_.length;I<M;++I)D=Qd(D,_[I]);for(var L=1,I=0,M=y.length;I<M;++I)L=Qd(L,y[I].length);D*=L;var P=x*_.length*y.length;if(0)var R;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(P,o.maxTileHeight))}}function E(){A&&(A.clearRect(0,0,b.width,b.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,b.width,b.height)));for(var D=0,I=0;I<g.length;++I)D+=g[I];if(D<=0)return;for(var M=-x,L=0,P=0,R=0;M<T.height;){if(L%2===0){for(var U=P/2%y.length,k=0,H=0,W=0;k<T.width*2;){for(var q=0,I=0;I<m[R].length;++I)q+=m[R][I];if(q<=0)break;if(H%2===0){var $=(1-o.symbolSize)*.5,J=k+m[R][H]*$,K=M+g[L]*$,he=m[R][H]*o.symbolSize,ye=g[L]*o.symbolSize,Ge=W/2%y[U].length;Fe(J,K,he,ye,y[U][Ge])}k+=m[R][H],++W,++H,H===m[R].length&&(H=0)}++R,R===m.length&&(R=0)}M+=g[L],++P,++L,L===g.length&&(L=0)}function Fe(Se,Le,ce,_e,Ft){var Ye=n?1:t,br=Et(Ft,Se*Ye,Le*Ye,ce*Ye,_e*Ye,o.color,o.symbolKeepAspect);if(n){var Ut=i.painter.renderOneToVNode(br);Ut&&S.children.push(Ut)}else ph(A,br)}}}}function fw(r){if(!r||r.length===0)return[["rect"]];if(z(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!z(r[t])){e=!1;break}if(e)return fw([r]);for(var i=[],t=0;t<r.length;++t)z(r[t])?i.push([r[t]]):i.push(r[t]);return i}function cw(r){if(!r||r.length===0)return[[0,0]];if(fe(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,i=0;i<r.length;++i)if(!fe(r[i])){t=!1;break}if(t)return cw([r]);for(var n=[],i=0;i<r.length;++i)if(fe(r[i])){var e=Math.ceil(r[i]);n.push([e,e])}else{var e=B(r[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function Nk(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(fe(r)){var e=Math.ceil(r);return[e,e]}var t=B(r,function(i){return Math.ceil(i)});return r.length%2?t.concat(t):t}function kk(r){return B(r,function(e){return hw(e)})}function hw(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var pw=Lo(Bk);function Bk(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var i=t.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=jl(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=jl(n,e)}}})}var zk=1,Fk=800,Uk=900,Vk=920,Hk=1e3,Gk=2e3,dw=5e3,Cw=1e3,Yk=1100,hg=2e3,ww=3e3,Wk=4e3,xh=4500,jk=4600,Zk=5e3,Xk=6e3,Aw=7e3,Ew={PROCESSOR:{SERIES_FILTER:Fk,AXIS_STATISTICS:Vk,FILTER:Hk,STATISTIC:dw,STATISTICS:dw},VISUAL:{LAYOUT:Cw,PROGRESSIVE_LAYOUT:Yk,GLOBAL:hg,CHART:ww,POST_CHART_LAYOUT:jk,COMPONENT:Wk,BRUSH:Zk,CHART_ITEM:xh,ARIA:Xk,DECAL:Aw}},nt="__flagInMainProcess",dh="__mainProcessVersion",dt="__pendingUpdate",tg="__needsUpdateStatus",vw=/^[a-zA-Z0-9_]+$/,rg="__connectUpdateStatus",mw=0,qk=1,Kk=2;function Dw(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return Iw(this,r,e)}}function Mw(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Iw(this,r,e)}}function Iw(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),at.prototype[e].apply(r,t)}var Lw=(function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(at),Pw=Lw.prototype;Pw.on=Mw("on");Pw.off=Mw("off");var Ha,ig,vh,Mi,mh,ng,ag,as,os,gw,yw,og,_w,gh,xw,Ow,yr,bw,ss,Rw=(function(r){F(e,r);function e(t,i,n){var a=r.call(this,new OC)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=t;var o="canvas",s="auto",l=!1;if(a[dh]=1,0)var u;n.ssr&&Cx(function(p){var d=ge(p),v=d.dataIndex;if(v!=null){var m=V();return m.set("series_index",d.seriesIndex),m.set("data_index",v),d.ssrType&&m.set("ssr_type",d.ssrType),m}});var f=a._zr=jd(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:G(n.useDirtyRect,l),useCoarsePointer:G(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Fl(Q(f.flush,f),17),a._updateTheme(i),a._locale=tT(n.locale||yc),a._coordSysMgr=new Il;var c=a._api=xw(a);function h(p,d){return p.__prio-d.__prio}return Yn(_h,h),Yn(ug,h),a._scheduler=new Qm(a,c,ug,_h),a._messageCenter=new Lw,a._initEvents(),a.resize=Q(a.resize,a),f.animation.on("frame",a._onframe,a),gw(f,a),yw(f,a),lo(a),a}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,i=this._model,n=this._api;if(bw(this),this[dt]){var a=this[dt].silent;this[nt]=!0,ss(this);try{Ha(this),Mi.update.call(this,null,this[dt].updateParams)}catch(l){throw this[nt]=!1,this[dt]=null,l}this._zr.flush(),this[nt]=!1,this[dt]=null,as.call(this,a),os.call(this,a)}else if(t.unfinished){var o=zk;do{t.unfinished=!1;var s=$e.getTime();t.performSeriesTasks(i),t.performDataProcessorTasks(i),ng(this,i),t.performVisualTasks(i),gh(this,this._model,n,"remain",{}),o-=$e.getTime()-s}while(o>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,n){if(!this[nt]){if(this._disposed){this.id;return}var a,o,s;if(Y(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[nt]=!0,ss(this),!this._model||i){var l=new OT(this._api),u=this._theme,f=this._model=new Yc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},fg);var c={seriesTransition:s,optionChanged:!0};if(n)this[dt]={silent:a,updateParams:c},this[nt]=!1,this.getZr().wakeUp();else{try{Ha(this),Mi.update.call(this,null,c)}catch(h){throw this[dt]=null,this[nt]=!1,h}this._ssr||this._zr.flush(),this[dt]=null,this[nt]=!1,as.call(this,a),os.call(this,a)}}},e.prototype.setTheme=function(t,i){if(!this[nt]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[dt]&&(a==null&&(a=this[dt].silent),o=this[dt].updateParams,this[dt]=null),this[nt]=!0,ss(this);try{this._updateTheme(t),n.setTheme(this._theme),Ha(this),Mi.update.call(this,{type:"setTheme"},o)}catch(s){throw this[nt]=!1,s}this[nt]=!1,as.call(this,a),os.call(this,a)}}},e.prototype._updateTheme=function(t){z(t)&&(t=Nw[t]),t&&(t=te(t),t&&Wc(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||se.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,i=t.storage.getDisplayList();return C(i,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,n=this._model,a=[],o=this;C(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Sw[n]){var l=s,u=s,f=-s,c=-s,h=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();C(Zl,function(_,x){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(te(t)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),c=o(S.bottom,c),h.push({dom:b,left:S.left,top:S.top})}}),l*=p,u*=p,f*=p,c*=p;var d=f-l,v=c-u,m=$e.createCanvas(),g=jd(m,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:v}),i){var y="";return C(h,function(_){var x=_.left-l,b=_.top-u;y+='<g transform="translate('+x+","+b+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new xe({shape:{x:0,y:0,width:d,height:v},style:{fill:t.connectedBackgroundColor}})),C(h,function(_){var x=new Tt({style:{x:_.left*p-l,y:_.top*p-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i,n){return mh(this,"convertToPixel",t,i,n)},e.prototype.convertToLayout=function(t,i,n){return mh(this,"convertToLayout",t,i,n)},e.prototype.convertFromPixel=function(t,i,n){return mh(this,"convertFromPixel",t,i,n)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var n=this._model,a,o=Nf(n,t);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(t,i){var n=this._model,a=Nf(n,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?BC(s,l,i):zC(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;C($k,function(n){var a=function(o){var s=t.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&za(l,function(v){var m=ge(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=O({},m.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var p=c&&h!=null&&s.getComponent(c,h),d=p&&t[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];u.event=o,u.type=n,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:p,view:d},t.trigger(n,u)}};a.zrEventfulCallAtLast=!0,t._zr.on(n,a,t)});var i=this._messageCenter;C(lg,function(n,a){i.on(a,function(o){t.trigger(a,o)})}),UC(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&tv(this.getDom(),dg,"");var i=this,n=i._api,a=i._model;C(i._componentsViews,function(o){o.dispose(a,n)}),C(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 Zl[i.id]},e.prototype.resize=function(t){if(!this[nt]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=t&&t.silent;this[dt]&&(a==null&&(a=this[dt].silent),n=!0,this[dt]=null),this[nt]=!0,ss(this);try{n&&Ha(this),Mi.update.call(this,{type:"resize",animation:O({duration:0},t&&t.animation)})}catch(o){throw this[nt]=!1,o}this[nt]=!1,as.call(this,a),os.call(this,a)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(Y(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!cg[t]){var n=cg[t](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=O({},t);return i.type=sg[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(Y(i)||(i={silent:!!i}),!!yh[t.type]&&this._model){if(this[nt]){this._pendingActions.push(t);return}var n=i.silent;ag.call(this,t,n);var a=i.flush;a?this._zr.flush():a!==!1&&se.browser.weChat&&this._throttledZrFlush(),as.call(this,n),os.call(this,n)}},e.prototype.updateLabelLayout=function(){or.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Ha=function(c){WC(c._model);var h=c._scheduler;h.restorePipelines(c._zr,c._model),h.prepareStageTasks(),ig(c,!0),ig(c,!1),h.plan()},ig=function(c,h){for(var p=c._model,d=c._scheduler,v=h?c._componentsViews:c._chartsViews,m=h?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<v.length;_++)v[_].__alive=!1;h?p.eachComponent(function(S,T){S!=="series"&&x(T)}):p.eachSeries(x);function x(S){var T=S.__requireNewView;S.__requireNewView=!1;var A="_ec_"+S.id+"_"+S.type,w=!T&&m[A];if(!w){var E=Yt(S.type),D=h?xt.getClass(E.main,E.sub):bt.getClass(E.sub);w=new D,w.init(p,y),m[A]=w,v.push(w),g.add(w.group)}S.__viewId=w.__id=A,w.__alive=!0,w.__model=S,w.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!h&&d.prepareView(w,S,p,y)}for(var _=0;_<v.length;){var b=v[_];b.__alive?_++:(!h&&b.renderTask.dispose(),g.remove(b.group),b.dispose(p,y),v.splice(_,1),m[b.__id]===b&&delete m[b.__id],b.__id=b.group.__ecComponentInfo=null)}},vh=function(c,h,p,d,v){var m=c._model;if(m.setUpdatePayload(p),!d){C([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=Fx(p,d,v),y=p.excludeSeriesId,_;y!=null&&(_=V(),C(ze(y),function(b){var S=tr(b,null);S!=null&&_.set(S,!0)})),m&&m.eachComponent(g,function(b){var S=_&&_.get(b.id)!=null;if(!S)if(Uv(p))if(b instanceof Nt)p.type===un&&!p.notBlur&&!b.get(["emphasis","disabled"])&&qb(b,p,c._api);else{var T=Qf(b.mainType,b.componentIndex,p.name,c._api),A=T.focusSelf,w=T.dispatchers;p.type===un&&A&&!p.notBlur&&Xf(b.mainType,b.componentIndex,c._api),w&&C(w,function(E){p.type===un?ha(E):pa(E)})}else Jf(p)&&b instanceof Nt&&(Qb(b,p,c._api),Fv(b),yr(c))},c),m&&m.eachComponent(g,function(b){var S=_&&_.get(b.id)!=null;S||x(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function x(b){b&&b.__alive&&b[h]&&b[h](b.__model,m,c._api,p)}},Mi={prepareAndUpdate:function(c){Ha(this),Mi.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var p=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(p){jC(p),p.setUpdatePayload(c),g.restoreData(p,c),g.performSeriesTasks(p),m.create(p,d),or.trigger("coordsys:aftercreate",p,d),g.performDataProcessorTasks(p,c),ng(this,p),m.update(p,d),i(p),g.performVisualTasks(p,c);var y=p.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var _=p.get("darkMode");_!=null&&_!=="auto"&&v.setDarkMode(_),og(this,p,d,c,h),or.trigger("afterupdate",p,d)}},updateTransform:function(c){var h=this,p=h._model,d=h._api;if(p){p.setUpdatePayload(c);var v=[];p.eachComponent(function(g,y){if(g!==Wf){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,p,d,c);x&&x.update&&v.push(_)}else v.push(_)}});var m=V();p.eachSeries(function(g){var y=h._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,p,d,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),h._scheduler.performVisualTasks(p,c,{setDirty:!0,dirtyMap:m}),gh(h,p,d,c,{},m),or.trigger("afterupdate",p,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),bt.markUpdateMethod(c,"updateView"),i(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),og(this,h,this._api,c,{}),or.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,p=this._model;p&&(p.setUpdatePayload(c),p.eachSeries(function(d){d.getData().clearAllVisual()}),bt.markUpdateMethod(c,"updateVisual"),i(p),this._scheduler.performVisualTasks(p,c,{visualType:"visual",setDirty:!0}),p.eachComponent(function(d,v){if(d!=="series"){var m=h.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,p,h._api,c)}}),p.eachSeries(function(d){var v=h._chartsMap[d.__viewId];v.updateVisual(d,p,h._api,c)}),or.trigger("afterupdate",p,this._api))},updateLayout:function(c){Mi.update.call(this,c)}};function t(c,h,p,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=Nf(m,p),x=0;x<g.length;x++){var b=g[x];if(b[h]&&(y=b[h](m,_,d,v))!=null)return y}}mh=t,ng=function(c,h){var p=c._chartsMap,d=c._scheduler;h.eachSeries(function(v){d.updateStreamModes(v,p[v.__viewId])})},ag=function(c,h){var p=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=yh[v],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Yt(y[0]);this[nt]=!0,ss(this);var b=[c],S=!1;c.batch&&(S=!0,b=B(c.batch,function(R){return R=ie(O({},R),c),R.batch=null,R}));var T=[],A,w=[],E=g.nonRefinedEventType,D=Jf(c),I=Uv(c);if(I&&zv(this._api),C(b,function(R){var U=g.action(R,d,p._api);if(g.refineEvent?w.push(U):A=U,A=A||O({},R),A.type=E,T.push(A),I){var k=ul(c),H=k.queryOptionMap,W=k.mainTypeSpecified,q=W?H.keys()[0]:"series";vh(p,_,R,q),yr(p)}else D?(vh(p,_,R,"series"),yr(p)):x&&vh(p,_,R,x.main,x.sub)}),_!=="none"&&!I&&!D&&!x)try{this[dt]?(Ha(this),Mi.update.call(this,c),this[dt]=null):Mi[_].call(this,c)}catch(R){throw this[nt]=!1,R}if(S?A={type:E,escapeConnect:m,batch:T}:A=T[0],this[nt]=!1,!h){var M=void 0;if(g.refineEvent){var L=g.refineEvent(w,c,d,this._api).eventContent;Ue(Y(L)),M=ie({type:g.refinedEventType},L),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var P=this._messageCenter;P.trigger(A.type,A),M&&P.trigger(M.type,M)}},as=function(c){for(var h=this._pendingActions;h.length;){var p=h.shift();ag.call(this,p,c)}},os=function(c){!c&&this.trigger("updated")},gw=function(c,h){c.on("rendered",function(p){h.trigger("rendered",p),c.animation.isFinished()&&!h[dt]&&!h._scheduler.unfinished&&!h._pendingActions.length?h.trigger("finished"):c.refresh()})},yw=function(c,h){c.on("mouseover",function(p){var d=p.target,v=za(d,xl);v&&(Kb(v,p,h._api),yr(h))}).on("mouseout",function(p){var d=p.target,v=za(d,xl);v&&($b(v,p,h._api),yr(h))}).on("click",function(p){var d=p.target,v=za(d,function(y){return ge(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=ge(v);h._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],p=[],d=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,b=_.get("z")||0,S=_.getZLevelKey();d=d||!!S,(y==="series"?p:h).push({zlevel:x,z:b,idx:_.componentIndex,type:y,key:S})}),d){var v=h.concat(p),m,g;Yn(v,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),C(v,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,b=y.key;m!=null&&(x=Math.max(m,x)),b?(x===m&&b!==g&&x++,g=b):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}og=function(c,h,p,d,v){n(h),_w(c,h,p,d,v),C(c._chartsViews,function(m){m.__alive=!1}),gh(c,h,p,d,v),C(c._chartsViews,function(m){m.__alive||m.remove(h,p)})},_w=function(c,h,p,d,v,m){C(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,h,p,d),l(y,g),f(y,g)})},gh=function(c,h,p,d,v,m){var g=c._scheduler;v=O(v||{},{updatedSeries:h.getSeries()}),or.trigger("series:beforeupdate",h,p,v);var y=!1;h.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var b=x.renderTask;g.updatePayload(b,d),u(_,x),m&&m.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),Fv(_)}),g.unfinished=y||g.unfinished,or.trigger("series:layoutlabels",h,p,v),or.trigger("series:transition",h,p,v),h.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,h),or.trigger("series:afterupdate",h,p,v)},yr=function(c){c[tg]=!0,c.getZr().wakeUp()},ss=function(c){c[dh]=(c[dh]+1)%1e6},bw=function(c){c[tg]&&(c.getZr().storage.traverse(function(h){ya(h)||a(h)}),c[tg]=!1)};function a(c){for(var h=[],p=c.currentStates,d=0;d<p.length;d++){var v=p[d];v==="emphasis"||v==="blur"||v==="select"||h.push(v)}c.selected&&c.states.select&&h.push("select"),c.hoverState===ml&&c.states.emphasis?h.push("emphasis"):c.hoverState===vl&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var p=c._zr;if(p.painter.type==="canvas"){var d=p.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>G(h.get("hoverLayerThreshold"),Uc.hoverLayerThreshold)&&!se.node&&!se.worker;(c._usingTHL||m)&&(h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==Dl&&(x.hoverLayer=m?rm:tm)})}}),c._usingTHL=m)}}function s(c,h){var p=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=p)})}function l(c,h){if(!c.preventAutoZ){var p=hn(c);h.eachRendered(function(d){return sm(d,p.z,p.zlevel),!0})}}function u(c,h){h.eachRendered(function(p){if(!ya(p)){var d=p.getTextContent(),v=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function f(c,h){var p=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=p.get("duration"),m=v>0?{duration:v,delay:p.get("delay"),easing:p.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(ya(g))return;if(g instanceof ae&&rS(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}xw=function(c){return new((function(h){F(p,h);function p(){return h!==null&&h.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},p.prototype.enterEmphasis=function(d,v){ha(d,v),yr(c)},p.prototype.leaveEmphasis=function(d,v){pa(d,v),yr(c)},p.prototype.enterBlur=function(d){Zb(d),yr(c)},p.prototype.leaveBlur=function(d){Nv(d),yr(c)},p.prototype.enterSelect=function(d){kv(d),yr(c)},p.prototype.leaveSelect=function(d){Bv(d),yr(c)},p.prototype.getModel=function(){return c.getModel()},p.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},p.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},p.prototype.getECUpdateCycleVersion=function(){return c[dh]},p.prototype.usingTHL=function(){return c._usingTHL},p})(Zf))(c)},Ow=function(c){function h(p,d){for(var v=0;v<p.length;v++){var m=p[v];m[rg]=d}}C(sg,function(p,d){c._messageCenter.on(d,function(v){if(Sw[c.group]&&c[rg]!==mw){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];C(Zl,function(y){y!==c&&y.group===c.group&&g.push(y)}),h(g,mw),C(g,function(y){y[rg]!==qk&&y.dispatchAction(m)}),h(g,Kk)}})})}})(),e})(at),pg=Rw.prototype;pg.on=Dw("on");pg.off=Dw("off");pg.one=function(r,e,t){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(r,n)}this.on.call(this,r,n,t)};var $k=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var yh={},sg={},lg={},ug=[],fg=[],_h=[],Nw={},cg={},Zl={},Sw={},Qk=+new Date-0,hq=+new Date-0,dg="_echarts_instance_";function vg(r,e,t){var i=!(t&&t.ssr);if(i){var n=Jk(r);if(n)return n}var a=new Rw(r,e,t);return a.id="ec_"+Qk++,Zl[a.id]=a,i&&tv(r,dg,a.id),Ow(a),or.trigger("afterinit",a),a}function Jk(r){return Zl[Ux(r,dg)]}function kw(r,e){Nw[r]=e}function mg(r){ue(fg,r)<0&&fg.push(r)}function gg(r,e){yg(ug,r,e,Gk)}function Bw(r){bh("afterinit",r)}function zw(r){bh("afterupdate",r)}function bh(r,e){or.on(r,e)}function Ii(r,e,t){var i,n,a,o,s;Z(e)&&(t=e,e=""),Y(r)?(i=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),a=r.refineEvent):(i=r,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;yh[i]||(Ue(vw.test(i)&&vw.test(n)),a&&Ue(n!==i),yh[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:t,refineEvent:a},lg[n]=1,a&&s&&(lg[u]=1),sg[u]=i)}function Fw(r,e){Il.register(r,e)}function Uw(r,e){yg(_h,r,e,Cw,"layout",!0)}function Tn(r,e){yg(_h,r,e,ww,"visual",!0)}var Tw=[];function yg(r,e,t,i,n,a){if((Z(e)||Y(e))&&(t=e,e=i),!(ue(Tw,t)>=0)){Tw.push(t);var o=Qm.wrapStageHandler(t,n);o.__prio=e,o.__raw=t,r.push(o)}}function _g(r,e){cg[r]=e}function Vw(r,e,t){var i=GC("registerMap");i&&i(r,e,t)}var Hw=QT;Tn(hg,TC);Tn(xh,CC);Tn(xh,wC);Tn(hg,NC);Tn(xh,kC);Tn(Aw,pw);mg(Wc);gg(Uk,UT);_g("default",$m);Ii({type:un,event:un,update:un},Ee);Ii({type:gl,event:gl,update:gl},Ee);Ii({type:yl,event:Kf,update:yl,action:Ee,refineEvent:xg,publishNonRefinedEvent:!0});Ii({type:qf,event:Kf,update:qf,action:Ee,refineEvent:xg,publishNonRefinedEvent:!0});Ii({type:_l,event:Kf,update:_l,action:Ee,refineEvent:xg,publishNonRefinedEvent:!0});function xg(r,e,t,i){return{eventContent:{selected:Jb(t),isFromClick:e.isFromClick||!1}}}kw("default",{});kw("dark",PC);function Xl(r){return r==null?0:r.length||1}function Gw(r){return r}var t2=(function(){function r(e,t,i,n,a,o){this._old=e,this._new=t,this._oldKeyGetter=i||Gw,this._newKeyGetter=n||Gw,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},n=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=Xl(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=Xl(u),h=Xl(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var n=e[i],a=t[n],o=Xl(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);t[n]=null}},r.prototype._initIndexMap=function(e,t,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!t){var l=t[s],u=Xl(l);u===0?(t[s]=o,a&&i.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),Yw=t2;var r2=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function Ww(r,e){var t={},i=t.encode={},n=V(),a=[],o=[],s={};C(r.dimensions,function(h){var p=r.getDimensionInfo(h),d=p.coordDim;if(d){var v=p.coordDimIndex;bg(i,d)[v]=h,p.isExtraCoord||(n.set(d,1),i2(p.type)&&(a[0]=h),bg(s,d)[v]=r.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(h)}jf.each(function(m,g){var y=bg(i,g),_=p.otherDims[g];_!=null&&_!==!1&&(y[_]=p.name)})});var l=[],u={};n.each(function(h,p){var d=i[p];u[p]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=B(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,t.userOutput=new r2(s,e),t}function bg(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function jw(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function i2(r){return!(r==="ordinal"||r==="time")}var n2=(function(){function r(e){this.otherDims={},e!=null&&O(this,e)}return r})(),ls=n2;var a2=ee(),o2={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Sg=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Tg(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return G(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Zc(this.source),i=!Cg(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=t?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=o2[u]||"f",f&&(n+=f.uid),n+="$"}var p=this.source,d=[p.seriesLayoutBy,p.startIndex,n].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===t)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Sh(r){return r instanceof Sg}function ql(r){for(var e=V(),t=0;t<(r||[]).length;t++){var i=r[t],n=Y(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function Tg(r){var e=a2(r);return e.dimNameMap||(e.dimNameMap=ql(r.dimensionsDefine))}function Cg(r){return r>30}var Kl=Y,Cn=B,s2=typeof Int32Array=="undefined"?Array:Int32Array,l2="e\0\0",Zw=-1,u2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],f2=["_approximateExtent"],Xw,Th,$l,Ql,wg,Jl,Ag,c2=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;Sh(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],h=z(c)?new ls({name:c}):c instanceof ls?c:new ls(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(p),a[p]=h,u[p]!=null&&(l=!0),h.createInvertedIndices&&(s[p]=[]),n&&(h.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=h.storeDimIndex),d.itemId===0&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=V();C(o,function(m){v.set(a[m].storeDimIndex,m)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(fe(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,i){var n=this,a;if(e instanceof zl&&(a=e),!a){var o=this.dimensions,s=es(e)||et(e)?new qc(e,o.length):e;a=new zl;var l=Cn(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=Ww(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t&&t.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=t[l],o&&Ag(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var n=this._dimInfos[t[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==rr&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===lt;if(l&&!n.pure)for(var u=[],f=e;f<t;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&Rx(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=tr(h,null));var p=c.id;o[f]==null&&p!=null&&(o[f]=tr(p,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Ag(this,f);Xw(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Kl(e)?O(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return i==null&&this._nameDimIdx!=null&&(i=$l(this,this._nameDimIdx,t)),i==null&&(i=""),i},r.prototype._getCategory=function(e,t){var i=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},r.prototype.getId=function(e){return Th(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var i=this,n=this._store;return N(e)?n.getValues(Cn(e,function(a){return i._getStoreDimIndex(a)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,n=t.length;i<n;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],n=i&&i[t];return n==null||isNaN(n)?Zw:n},r.prototype.each=function(e,t,i){"use strict";Z(e)&&(i=t,t=e,e=[]);var n=i||this,a=Cn(Ql(e),this._getStoreDimIndex,this);this._store.each(a,n?Q(t,n):t)},r.prototype.filterSelf=function(e,t,i){"use strict";Z(e)&&(i=t,t=e,e=[]);var n=i||this,a=Cn(Ql(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?Q(t,n):t),this},r.prototype.selectRange=function(e){"use strict";var t=this,i={},n=ne(e),a=[];return C(n,function(o){var s=t._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(e,t,i){"use strict";Z(e)&&(i=t,t=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},i),n},r.prototype.map=function(e,t,i,n){"use strict";var a=i||n||this,o=Cn(Ql(e),this._getStoreDimIndex,this),s=Jl(this);return s._store=this._store.map(o,a?Q(t,a):t),s},r.prototype.modify=function(e,t,i,n){var a=this,o=i||n||this,s=Cn(Ql(e),this._getStoreDimIndex,this);this._store.modify(s,o?Q(t,o):t)},r.prototype.downSample=function(e,t,i,n){var a=Jl(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,i,n),a},r.prototype.minmaxDownSample=function(e,t){var i=Jl(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),i},r.prototype.lttbDownSample=function(e,t){var i=Jl(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new Ie(i,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Yw(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Th(e,i)},function(i){return Th(t,i)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Kl(e)?O(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],n=i&&i[t];return n==null?this.getVisual(t):n},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[t];return a==null&&(a=this.getVisual(t),N(a)?a=a.slice():Kl(a)&&(a=O({},a)),n[t]=a),a},r.prototype.setItemVisual=function(e,t,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Kl(t)?O(n,t):n[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Kl(e)?O(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?O(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;Nb(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){C(this._graphicEls,function(i,n){i&&e&&e.call(t,i,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Cn(this.dimensions,this._getDimInfo,this),this.hostModel)),wg(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];Z(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return t.apply(this,[n].concat(Wu(arguments)))})},r.internalField=(function(){Xw=function(e){var t=e._invertedIndicesMap;C(t,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=t[n]=new s2(o.categories.length);for(var l=0;l<i.length;l++)i[l]=Zw;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},$l=function(e,t,i){return tr(e._getCategory(t,i),null)},Th=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=$l(e,e._idDimIdx,t)),i==null&&(i=l2+t),i},Ql=function(e){return N(e)||(e=e!=null?[e]:[]),e},Jl=function(e){var t=new r(e._schema?e._schema:Cn(e.dimensions,e._getDimInfo,e),e.hostModel);return wg(t,e),t},wg=function(e,t){C(u2.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,C(f2,function(i){e[i]=te(t[i])}),e._calculationInfo=O({},t._calculationInfo)},Ag=function(e,t){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[t],l=n[t];if(s==null&&a!=null&&(i[t]=s=$l(e,a,t)),l==null&&o!=null&&(n[t]=l=$l(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}}})(),r})(),Ch=c2;function eu(r,e){es(r)||(r=ts(r)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],n=V(),a=[],o=h2(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Cg(o),l=i===r.dimensionsDefine,u=l?Tg(r):ql(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=V(f),h=new Gm(o),p=0;p<h.length;p++)h[p]=-1;function d(w){var E=h[w];if(E<0){var D=i[w],I=Y(D)?D:{name:D},M=new ls,L=I.name;L!=null&&u.get(L)!=null&&(M.name=M.displayName=L),I.type!=null&&(M.type=I.type),I.displayName!=null&&(M.displayName=I.displayName);var P=a.length;return h[w]=P,M.storeDimIndex=w,a.push(M),M}return a[E]}if(!s)for(var p=0;p<o;p++)d(p);c.each(function(w,E){var D=ze(w).slice();if(D.length===1&&!z(D[0])&&D[0]<0){c.set(E,!1);return}var I=c.set(E,[]);C(D,function(M,L){var P=z(M)?u.get(M):M;P!=null&&P<o&&(I[L]=P,m(d(P),E,L))})});var v=0;C(t,function(w){var E,D,I,M;if(z(w))E=w,M={};else{M=w,E=M.name;var L=M.ordinalMeta;M.ordinalMeta=null,M=O({},M),M.ordinalMeta=L,D=M.dimsDef,I=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var P=c.get(E);if(P!==!1){if(P=ze(P),!P.length)for(var R=0;R<(D&&D.length||1);R++){for(;v<o&&d(v).coordDim!=null;)v++;v<o&&P.push(v++)}C(P,function(U,k){var H=d(U);if(l&&M.type!=null&&(H.type=M.type),m(ie(H,M),E,k),H.name==null&&D){var W=D[k];!Y(W)&&(W={name:W}),H.name=H.displayName=W.name,H.defaultTooltip=W.defaultTooltip}I&&ie(H.otherDims,I)})}});function m(w,E,D){jf.get(E)!=null?w.otherDims[E]=D:(w.coordDim=E,w.coordDimIndex=D,n.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function b(w){w.name==null&&(w.name=w.coordDim)}if(s)C(a,function(w){b(w)}),a.sort(function(w,E){return w.storeDimIndex-E.storeDimIndex});else for(var S=0;S<o;S++){var T=d(S),A=T.coordDim;A==null&&(T.coordDim=p2(x,n,_),T.coordDimIndex=0,(!g||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(Hc(r,S)===ut.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return Io(a,function(w){return w.name},function(w,E){E>0&&(w.name=w.name+(E-1))}),new Sg({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function h2(r,e,t,i){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return C(e,function(a){var o;Y(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function p2(r,e,t){if(t||e.hasKey(r)){for(var i=0;e.hasKey(r+i);)i++;r+=i}return e.set(r,!0),r}var d2=(function(){function r(e){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=e}return r})();function qw(r){var e=r.get("coordinateSystem"),t=new d2(e),i=v2[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}var v2={cartesian2d:function(r,e,t,i){var n=r.getReferringComponents("xAxis",je).models[0],a=r.getReferringComponents("yAxis",je).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",a),us(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),us(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,i){var n=r.getReferringComponents("singleAxis",je).models[0];e.coordSysDims=["single"],t.set("single",n),us(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,i){var n=r.getReferringComponents("polar",je).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),us(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),us(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();C(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),us(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,i){var n=r.getReferringComponents("matrix",je).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");t.set("x",a),t.set("y",o),i.set("x",a),i.set("y",o)}};function us(r){return r.get("type")==="category"}function Kw(r,e,t){t=t||{};var i=t.byIndex,n=t.stackedCoordDimension,a,o,s;m2(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,h,p=!0;function d(x){return x.type!=="ordinal"&&x.type!=="time"}if(C(a,function(x,b){z(x)&&(a[b]=x={name:x}),d(x)||(p=!1)}),C(a,function(x,b){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&d(x)&&(!p||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,m=f.type,g=0;C(a,function(x){x.coordDim===v&&g++});var y={name:c,coordDim:v,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:h,coordDim:h,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:h,stackResultDimension:c}}function m2(r){return!Sh(r.schema)}function Li(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function $w(r,e){return Li(r,e)?r.getCalculationInfo("stackResultDimension"):e}function g2(r,e){var t=r.get("coordinateSystem"),i=Il.get(t),n;return e&&e.coordSysDims&&(n=B(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=jw(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function y2(r,e,t){var i,n;return t&&C(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function _2(r,e,t){t=t||{};var i=e.getSourceManager(),n,a=!1;r?(a=!0,n=ts(r)):(n=i.getSource(),a=n.sourceFormat===lt);var o=qw(e),s=g2(e,o),l=t.useEncodeDefaulter,u=Z(l)?l:l?Te(bT,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=eu(n,f),h=y2(c.dimensions,t.createInvertedIndices,o),p=a?null:i.getSharedDataStore(c),d=Kw(e,{schema:c,store:p}),v=new Ch(c,e);v.setCalculationInfo(d);var m=h!=null&&x2(n)?function(g,y,_,x){return x===h?_:this.defaultDimValueGetter(g,y,_,x)}:null;return v.hasItemOption=!1,v.initData(a?n:p,null,m),v}function x2(r){if(r.sourceFormat===lt){var e=b2(r.data||[]);return!N(_i(e))}}function b2(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var wn=_2;var Qw=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();rn(Qw);var Bt=Qw;var S2=0,T2=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++S2,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,i=t.data,n=i&&B(i,C2);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!z(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,n.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=V(this.categories))},r})();function C2(r){return Y(r)&&r.value!=null?r.value:r+""}var tu=T2;var Xt=0,fs=1,w2={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},e1=ne(w2),cs=2,t1=3;function hs(r,e,t){var i;r=r||{};var n=He();if(n){var a=n.createBreakScaleMapper(e,t);a.hasBreaks()&&(C(e1,function(o){a[o]&&(r[o]=Q(a[o],a))}),i=a)}return i==null&&A2(r,t),{brk:i,mapper:r}}function wh(r,e){C(e1,function(t){r[t]=e[t]})}function Ah(r,e){r.freeze=Ee}function Pi(r){return r.getExtentUnsafe(Xt,cs)}function Ga(r,e){return r.getExtentUnsafe(fs,e)||r.getExtentUnsafe(Xt,e)}function r1(r){var e=Ga(r,t1);return e[1]-e[0]}function ps(r){var e=r.getExtentUnsafe(Xt,t1);return e[1]-e[0]}function A2(r,e){var t=r||{},i=[];return t._extents=i,i[Xt]=e?e.slice():yt(),O(t,E2),t}var E2={needTransform:function(){return!1},normalize:function(r){var e=this._extents[fs]||this._extents[Xt];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[fs]||this._extents[Xt];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=Ga(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[Xt].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){Jw(this._extents,Xt,r,e)},setExtent2:function(r,e,t){var i=this._extents;i[r]||(i[r]=i[Xt].slice()),Jw(i,r,e,t)},freeze:function(){}};function Jw(r,e,t,i){xi(t,i)&&(r[e][0]=t,r[e][1]=i)}function Eh(r){return ds(r)||ui(r)}function ds(r){return r.type==="interval"}function li(r){return r.type==="time"}function ui(r){return r.type==="log"}function Xe(r){return r.type==="ordinal"}function i1(r){var e=Rf(r),t=Ji(10,e),i=er(r/t);return i?i===2?i=3:i===3?i=5:i*=2:i=1,me(i*t,-e)}function Br(r){return Dr(r)+2}function ru(r,e){return wo(r)/wo(e)}function Dh(r,e,t){var i=t&&t.lookup;if(i){for(var n=0;n<i.from.length;n++)if(r===i.from[n])return i.to[n]}return Ji(e,r)}function Mh(r,e,t){var i=r.slice();if(i[0]===i[1]){var n=t&&t.ctnShp;if(i[0]!==0){var a=De(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Mr(i[0])||!Mr(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function n1(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function iu(r,e){return r=r||e,er(pe(r,1))}function Ih(r,e,t){var i=Pi(r),n=i[0],a=r.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){t({value:u,offInterval:f},c)}}var a1=(function(r){F(e,r);function e(t){var i=r.call(this)||this;i.type="ordinal",i.parse=e.parse,wh(i,e.decoratedMethods);var n=t.ordinalMeta;n||(n=new tu({})),N(n)&&(n=new tu({categories:B(n,function(o){return Y(o)?o.value:o})})),i._ordinalMeta=n;var a=hs(null,null,t.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,Ah(i,a.mapper),i}return e.parse=function(t){return t==null?t=NaN:z(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=er(t),t},e.prototype.getTicks=function(){var t=[];return Ih(this,0,function(i){t.push(i)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Re(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var t=Pi(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(er(this._mapper.scale(t)))},transformIn:function(t,i){return this._mapper.transformIn(this._getTickNumber(t),i)},transformOut:function(t,i){return this.getRawOrdinalNumber(this._mapper.transformOut(t,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,i){return this._mapper.getExtentUnsafe(t,i)},setExtent:function(t,i){return this._mapper.setExtent(t,i)},setExtent2:function(t,i,n){return this._mapper.setExtent2(t,i,n)}},e})(Bt);Bt.registerClass(a1);var o1=a1;function vs(r,e,t,i){for(var n=r.getTicks({expandToNicedExtent:!0}),a=[],o=r.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],h=l.value-u.value,p=h/e,d=Br(p);f<e-1;){var v=me(u.value+(f+1)*p,d);v>o[0]&&v<o[1]&&c.push(v),f++}var m=He();m&&m.pruneTicksByBreak("auto",c,t,function(g){return g},i,o),a.push(c)}}return a}var s1=(function(r){F(e,r);function e(t){var i=r.call(this)||this;i.type="interval",i.parse=e.parse,t=t||{};var n=_c(i,t),a=hs(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return te(this._cfg)},e.prototype.setConfig=function(t){var i=Pi(this);this._cfg=t=te(t),t.niceExtent==null&&(t.niceExtent=i.slice()),t.intervalPrecision==null&&(t.intervalPrecision=Br(t.interval))},e.prototype.getTicks=function(t){t=t||{};var i=this._cfg,n=i.interval,a=Pi(this),o=i.niceExtent,s=i.intervalPrecision,l=He(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(t.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var h=3e3;a[0]<o[0]&&c.push({value:t.expandToNicedExtent?me(o[0]-n,s):a[0]});for(var p=function(_,x){return er((x-_)/n)},d=i.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=Re(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=me(v+n,s),u){var g=u.calcNiceTickMultiple(v,p);g>=0&&(v=me(v+g*n,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>h)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:t.expandToNicedExtent?me(y+n,s):a[1]}),f&&l.pruneTicksByBreak(t.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&t.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(t){return vs(this,t,Ca(this),this._cfg.interval)},e.prototype.getLabel=function(t,i){if(t==null)return"";var n=i&&i.precision;n==null?n=Dr(t.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=me(t.value,n,!0);return wm(a)},e.type="interval",e})(Bt);Bt.registerClass(s1);var Ya=s1;var D2=function(r,e,t,i){for(;t<i;){var n=t+i>>>1;r[n][1]<e?t=n+1:i=n}return t},u1=(function(r){F(e,r);function e(t){var i=r.call(this)||this;i.type="time",i.parse=e.parse,i._locale=t.locale,i._useUTC=t.useUTC,i._interval=0;var n=_c(i,t),a=hs(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(t){return Aa(t.value,mm[sT(Ko(this._minLevelUnit))]||mm.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,i,n){return lT(t,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var i=this._interval,n=Pi(this),a=He(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return He().addBreaksToTicks(l,o.breaks,n),l;l=N2(this._minLevelUnit,this._approxInterval,u,n,ps(this),o);var f=Zt.length-1,c=0;return C(l,function(h){h.time&&(f=Math.min(f,ue(Zt,h.time.upperTimeUnit)),c=Math.max(c,h.time.level))}),s&&He().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(h){return h.value},this._approxInterval,n),s&&t.breakTicks!=="none"&&He().addBreaksToTicks(l,o.breaks,n,function(h){for(var p=Math.max(ue(Zt,Ea(h.vmin,u)),ue(Zt,Ea(h.vmax,u))),d=0,v=0;v<Zt.length;v++)if(!f1(Zt[v],h.vmin,h.vmax,u)){d=v;break}var m=Math.min(d,f),g=Math.max(m,p);return{level:c,lowerTimeUnit:Zt[g],upperTimeUnit:Zt[m]}}),l},e.prototype.getMinorTicks=function(t){return vs(this,t,Ca(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return fe(t)?Math.round(t):+Xr(t)},e.type="time",e})(Bt),Lh=[["second",Sc],["minute",Tc],["hour",qo],["quarter-day",qo*6],["half-day",qo*12],["day",nr*1.2],["half-week",nr*3.5],["week",nr*7],["month",nr*31],["quarter",nr*95],["half-year",vm/2],["year",vm]];function f1(r,e,t,i){return Cc(new Date(e),r,i).getTime()===Cc(new Date(t),r,i).getTime()}function M2(r,e){return r/=nr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function I2(r){var e=30*nr;return r/=e,r>6?6:r>3?3:r>2?2:1}function L2(r){return r/=qo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function l1(r,e){return r/=e?Tc:Sc,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function P2(r){return pe(ta(r,!0),1)}function O2(r,e,t){var i=Math.max(0,ue(Zt,e)-1);return Cc(new Date(r),Zt[i],t).getTime()}function R2(r,e){var t=new Date(0);t[r](1);var i=t.getTime();t[r](1+e);var n=t.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function N2(r,e,t,i,n,a){var o=3e3,s=nT,l=0;function u(R,U,k,H,W,q,$){for(var J=R2(W,R),K=U,he=new Date(K);K<k&&K<=i[1]&&($.push({value:K}),!(l++>o));)if(he[W](he[H]()+R),K=he.getTime(),a){var ye=a.calcNiceTickMultiple(K,J);ye>0&&(he[W](he[H]()+ye*R),K=he.getTime())}$.push({value:K,notAdd:K>i[1]})}function f(R,U,k){var H=[],W=!U.length;if(!f1(Ko(R),i[0],i[1],t)){W&&(U=[{value:O2(i[0],R,t)},{value:i[1]}]);for(var q=0;q<U.length-1;q++){var $=U[q].value,J=U[q+1].value;if($!==J){var K=void 0,he=void 0,ye=void 0,Ge=!1;switch(R){case"year":K=Math.max(1,Math.round(e/nr/365)),he=gm(t),ye=uT(t);break;case"half-year":case"quarter":case"month":K=I2(e),he=wc(t),ye=ym(t);break;case"week":case"half-week":case"day":K=M2(e,31),he=Ac(t),ye=_m(t),Ge=!0;break;case"half-day":case"quarter-day":case"hour":K=L2(e),he=Ec(t),ye=xm(t);break;case"minute":K=l1(e,!0),he=Dc(t),ye=bm(t);break;case"second":K=l1(e,!1),he=Mc(t),ye=Sm(t);break;case"millisecond":K=P2(e),he=Ic(t),ye=Tm(t);break}J>=i[0]&&$<=i[1]&&u(K,$,J,he,ye,Ge,H),R==="year"&&k.length>1&&q===0&&k.unshift({value:k[0].value-K})}}for(var q=0;q<H.length;q++)k.push(H[q])}}for(var c=[],h=[],p=0,d=0,v=0;v<s.length;++v){var m=Ko(s[v]);if(oT(s[v])){f(s[v],c[c.length-1]||[],h);var g=s[v+1]?Ko(s[v+1]):null;if(m!==g){if(h.length){d=p,h.sort(function(R,U){return R.value-U.value});for(var y=[],_=0;_<h.length;++_){var x=h[_].value;(_===0||h[_-1].value!==x)&&(y.push(h[_]),x>=i[0]&&x<=i[1]&&p++)}var b=n/e;if(p>b*1.5&&d>b/1.5||(c.push(y),p>b||r===s[v]))break}h=[]}}}for(var S=ke(B(c,function(R){return ke(R,function(U){return U.value>=i[0]&&U.value<=i[1]&&!U.notAdd})}),function(R){return R.length>0}),T=S.length-1,A=[],v=0;v<S.length;++v)for(var w=S[v],E=0;E<w.length;++E){var D=Ea(w[E].value,t);A.push({value:w[E].value,time:{level:T-v,upperTimeUnit:D,lowerTimeUnit:D}})}Io(A,Yx,null),A.sort(function(R,U){return R.value-U.value});var I=A[0],M=A[A.length-1],L=Ea(i[0],t),P=Ea(i[1],t);return(!I||I.value>i[0])&&A.unshift({value:i[0],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),(!M||M.value<i[1])&&A.push({value:i[1],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),A}var c1=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=nr,t[1]+=nr),t[1]===-1/0&&t[0]===1/0){var i=new Date;t[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),t[0]=t[1]-nr}r.setExtent(t[0],t[1]);var n=iu(e.splitNumber,10),a=ps(r)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=Lh.length,u=Math.min(D2(Lh,a,0,l),l-1),f=Lh[u][1],c=Lh[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};Bt.registerClass(u1);var h1=u1;var Ph=0,Oh=1,k2=2,m1=(function(r){F(e,r);function e(t){var i=r.call(this)||this;i.type="log",i.parse=Ya.parse,i.base=t.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[Ph]=n[Oh]=a[Ph]=a[Oh]=NaN,wh(i,e.mapperMethods);var s=He(),l=t.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},k2,u),i.powStub=new Ya({breakParsed:u.original}),i.intervalStub=new Ya({breakParsed:u.transformed}),Ah(i,i.intervalStub),i}return e.prototype.getTicks=function(t){var i=this.base,n=this.powStub,a=He(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return B(o.getTicks(t||{}),function(f){var c=f.value,h=Dh(c,i,u),p;if(a){var d=a.getTicksBreakOutwardTransform(this,f,Ca(n),this._lookup);d&&(p=d.vBreak,h=d.tickVal)}return{value:h,break:p}},this)},e.prototype.getMinorTicks=function(t){return vs(this,t,Ca(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,i){return this.intervalStub.getLabel(t,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(ru(t,this.base))},scale:function(t){return Dh(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,i){return t=ru(t,this.base),i&&i.depth===cs?t:this.intervalStub.transformIn(t,i)},transformOut:function(t,i){var n=i?i.depth:null;return p1.depth=n,d1.lookup=this._lookup,Dh(n===cs?t:this.intervalStub.transformOut(t,p1),this.base,d1)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,i){this.setExtent2(Xt,t,i)},setExtent2:function(t,i,n){if(!(!xi(i,n)||i<=0||n<=0)){var a=v1,o=v1;if(t===Xt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(t,a[Ph]=i,a[Oh]=n);var l=this.base;this.intervalStub.setExtent2(t,o[Ph]=ru(i,l),o[Oh]=ru(n,l))}},getFilter:function(){return{g:0}},sanitize:function(t,i){return xi(i[0],i[1])&&tt(t)&&t<=0&&(t=i[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,i){return i===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,i)}},e})(Bt);Bt.registerClass(m1);var p1={},d1={},v1=[],g1=m1;var Rh={value:1,category:1,time:1,log:1};var y1=ee();function _1(r){var e=r.get("type");return(e==null||!Pe(Rh,e)&&!Bt.getClass(e))&&(e="value"),e}function x1(r,e,t){var i=He(),n;switch(i&&(n=Eg(r,e,t)),e){case"category":return new o1({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:yt()});case"time":return new h1({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:n});case"log":return new g1({logBase:r.get("logBase"),breakOption:n});case"value":return new Ya({breakOption:n});default:return new(Bt.getClass(e)||Ya)({})}}function b1(r,e,t){var i=t?Ga(r,null):r.getExtentUnsafe(Xt,null),n=i[0],a=i[1];return xi(n,a)?n===e||a===e?z2:n<e&&a>e?B2:Nh:Nh}var B2=1,z2=2,Nh=3;function S1(r){y1(r).noOnMyZero=!0}function T1(r){return y1(r).noOnMyZero}function nu(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=aT(e);return function(n,a){return r.scale.getFormattedLabel(n,a,t)}}else{if(z(e))return function(n){var a=r.scale.getLabel(n),o=e.replace("{value}",a!=null?a:"");return o};if(Z(e)){if(r.type==="category")return function(n,a){return e(ms(r,n),n.value-r.scale.getExtent()[0],null)};var i=He();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(ms(r,n),a,o)}}else return function(n){return r.scale.getLabel(n)}}}function ms(r,e){var t=r.scale;return Xe(t)?t.getLabel(e):e.value}function kh(r){var e=r.get("interval");return e==null?"auto":e}function C1(r){return r.type==="category"&&kh(r.getLabelModel())===0}function w1(r,e){var t={};return C(r.mapDimensionsAll(e),function(i){t[$w(r,i)]=!0}),ne(t)}function An(r){return r==="middle"||r==="center"}function Wa(r){return r.getShallow("show")}function Eg(r,e,t){var i=r.get("breaks",!0);if(i!=null){if(!He())return;if(!t||!F2(e)){if(0)var n;return}return i}}function F2(r){return r!=="category"}function Bh(r,e,t,i,n,a){var o=ui(r),s=o?r.intervalStub:r;if(s.setExtent(i[0],i[1]),o){var l=r.powStub,u={depth:cs},f=r.transformOut(i[0],u),c=r.transformOut(i[1],u),h=n1(t,i);e[0]&&!h[0]&&(f=n[0]),e[1]&&!h[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function Oi(r,e){return Xe(r)?r.getRawOrdinalNumber(e.value):e.value}function zh(r,e){return Xe(r)&&!!e.get("boundaryGap")}var E1=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})();var U2=Mo(),Fh="|&",gs=ee(),Uh=-2,D1=-1,V2=ee();function M1(r,e){var t=r.model,i=gs(Fa(t.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(t.uid)}function I1(r,e){return O1(M1(r,e))}function L1(r,e){var t=[];return P1(r.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&t.push(O1(i))}),t}function P1(r,e){var t=gs(Fa(r)).keyed;t&&t.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function O1(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function R1(r,e){var t=r.model.ecModel,i=gs(Fa(t)).axSer;i&&Vh(t,i.get(r.model.uid),e)}function Ig(r,e,t){var i=M1(r,e);i&&Vh(r.model.ecModel,i.sers,t)}function Vh(r,e,t){if(e)for(var i=0;i<e.length;i++){var n=e[i];r.isSeriesFiltered(n)||t(n)}}function N1(r,e,t){var i=gs(Fa(r)).keyed,n=i&&i.get(e);n&&n.each(function(a){t(a.axis)})}function Lg(r,e){var t=r.model,i=gs(Fa(t.ecModel)).keys;i&&C(i.get(t.uid),function(n){if(0)var a;e(n)})}function H2(r){var e=V2(sh(r)),t=e.keyed||(e.keyed=V());P1(r,function(i,n,a){var o=t.get(n)||t.set(n,V()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&B1.liPosMinGap(r,i,s)})}function k1(r,e){B1[r]=e}var B1={};function Pg(r,e,t){if(r){var i=e.ecModel,n=gs(Fa(i)),a=r.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=V()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,h=e.getBaseAxis()===r,p=Mg.get(Dg(c,h,t))||Mg.get(Dg(c,h,null));if(p){var d=n.keyed||(n.keyed=V()),v=n.keys||(n.keys=V()),m=p.key,g=d.get(m)||d.set(m,V()),y=g.get(a);y||(y=g.set(a,{axis:r,sers:[],serByIdx:[]}),y.metrics=p.getMetrics(r),(v.get(a)||v.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function Dg(r,e,t){return r+Fh+G(e,!0)+Fh+(t||"")}function z1(r,e){var t=Dg(e.seriesType,e.baseAxis,e.coordSysType);Mg.set(t,e),U2(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:H2})})}var Mg=V();var G2=ee(),V1=1,H1=2,Y2=3,G1=(function(){function r(e,t,i,n,a){var o=Xe(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=i.slice();(ds(e)||ui(e)||li(e))&&(iv(f,au(e,t.get("dataMin",!0))),nv(f,au(e,t.get("dataMax",!0)))),Gx(f)||(f[0]=f[1]=NaN);var c=[],h=[!1,!1],p=t.get("min",!0);p==="dataMin"?(c[0]=f[0],h[0]=!0):(c[0]=au(e,Z(p)?p({min:f[0],max:f[1]}):p),h[0]=c[0]!=null);var d=t.get("max",!0);d==="dataMax"?(c[1]=f[1],h[1]=!0):(c[1]=au(e,Z(d)?d({min:f[0],max:f[1]}):d),h[1]=c[1]!=null);var v=W2(e,t),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-v[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+v[1]*m),!Mr(c[0])&&(c[0]=NaN),!Mr(c[1])&&(c[1]=NaN);var g=l||Vi(c[0])||Vi(c[1])||o&&!s,y=ds(e),_=y&&t.needIncludeZero&&t.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var b=au(e,t.get("startValue",!0)),S=b!=null;!tt(b)&&n&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),tt(b)&&(S||!y||_)&&(b<c[0]&&!h[0]?(c[0]=b,h[0]=!0):b>c[1]&&!h[1]&&(c[1]=b,h[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};F1(T,c)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],a[0]=n[0]=!0),t[1]!=null&&(s[1]=t[1],a[1]=n[1]=!0),F1(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r})();function F1(r,e){var t=r.scale,i=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],i),e[1]=t.sanitize(e[1],i),Do(e))}function au(r,e){return e==null?null:Vi(e)?NaN:r.parse(e)}function W2(r,e){var t;if(Xe(r))t=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),t=N(i)?i:[i,i]}return[U1(t[0]),U1(t[1])]}function U1(r){return wr(typeof r=="boolean"?0:r,1)||0}function Y1(r){var e=G2(r.scale);return e.extent||(e.extent=yt()),e}function W1(r,e){Y1(r).dimIdxInCoord=e.get(r.dim)}function Hh(r,e){var t=r.scale,i=r.model,n=r.dim;t.rawExtentInfo||j2(t,r,n,i,e)}function j2(r,e,t,i,n){var a=Y1(e),o=a.extent,s=!1;R1(e,function(f){if(f.boxCoordinateSystem){var c=kc(f).coord,h=a.dimIdxInCoord;if(h>=0){if(N(c)){var p=c[h];p!=null&&!N(p)&&fl(o,r.parse(p))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var v=r.getFilter?r.getFilter():null;C(w1(d,t),function(m){Hx(o,d.getApproximateExtent(m,v))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=X2(r,e,i),u=new G1(r,i,o,s,l);j1(r,u,n),a.extent=null}function Z2(r,e){var t=r.scale;j1(t,new G1(t,r.model,e,!1,!1),Y2)}function j1(r,e,t){r.rawExtentInfo=e,e.from=t}function Z1(r,e){Og.set(r,e)}var Og=V();function Gh(r,e,t,i,n){r.rawExtentInfo||Z2({scale:r,model:e},n||yt());var a=r.rawExtentInfo.makeFinal(),o=a.effMM;return r.setExtent(o[0],o[1]),r.setBlank(a.isBlank),i&&a.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function X2(r,e,t){var i=zh(r,t),n=t.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return Lg(e,function(o){a=!!Og.get(o)||a}),a}function X1(r,e,t,i){if(t.ctnShp){var n;if(Lg(r,function(s){var l=Og.get(s);if(l){var u=l(r,i);u&&(n=n||[0,0],iv(n,u[0]),nv(n,u[1]),S1(r))}}),!!n){var a=e.getExtent();if(Xe(e))r.onBand||e.setExtent2(fs,Re(a[0],a[0]+n[0]),pe(a[1],a[1]+n[1]));else{var o=a.slice();t.zoomFixMM[0]||(o[0]=Re(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),t.zoomFixMM[1]||(o[1]=pe(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(fs,o[0],o[1])}}}}function q1(r,e){var t=ui(r),i=t?r.intervalStub:r,n=e.fixMinMax||[],a=t?r.getExtent():null,o=i.getExtent(),s=Mh(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=t?K2(i,e):q2(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Br(c)),n[0]||(s[0]=me(fr(s[0]/f)*f,u)),n[1]||(s[1]=me(Zr(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),Bh(r,n,o,s,a,l)}function q2(r,e){var t=iu(e.splitNumber,5),i=ps(r),n=e.minInterval,a=e.maxInterval,o=ta(i/t,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=Br(o),l=r.getExtent(),u=[me(Zr(l[0]/o)*o,s),me(fr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function K2(r,e){var t=iu(e.splitNumber,10),i=r.getExtent(),n=ps(r),a=pe(Of(n),1),o=t/n*a;o<=.5&&(a*=10);var s=Br(a),l=[me(Zr(i[0]/a)*a,s),me(fr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Rg(r){var e=r.scale,t=r.model,i=t.axis,n=t.ecModel;$2(e,t,i,n,null)}function $2(r,e,t,i,n){var a=Gh(r,e,i,t,n),o=ds(r)||li(r);Q2(r,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),t&&i&&X1(t,r,a,i)}function Q2(r,e){J2[r.type](r,e)}var J2={interval:q1,log:q1,time:c1,ordinal:Ee};var K1=[],eB={registerPreprocessor:mg,registerProcessor:gg,registerPostInit:Bw,registerPostUpdate:zw,registerUpdateLifecycle:bh,registerAction:Ii,registerCoordinateSystem:Fw,registerLayout:Uw,registerVisual:Tn,registerTransform:Hw,registerLoading:_g,registerMap:Vw,registerImpl:HC,PRIORITY:Ew,ComponentModel:Ce,ComponentView:xt,SeriesModel:Nt,ChartView:bt,registerComponentModel:function(r){Ce.registerClass(r)},registerComponentView:function(r){xt.registerClass(r)},registerSeriesModel:function(r){Nt.registerClass(r)},registerChartView:function(r){bt.registerClass(r)},registerCustomSeries:function(r,e){YC(r,e)},registerSubTypeDefaulter:function(r,e){Ce.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){Sx(r,e)}};function ft(r){if(N(r)){C(r,function(e){ft(e)});return}ue(K1,r)>=0||(K1.push(r),Z(r)&&(r={install:r}),r.install(eB))}var tB=ee(),ou=ee(),qt={estimate:1,determine:2};function ys(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function $1(r,e){var t=r.getLabelModel().get("customValues");if(t){var i=r.scale;return{labels:B(J1(t,i),function(n,a){return{formattedLabel:nu(r)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return r.type==="category"?rB(r,e):nB(r)}function Q1(r,e,t){var i=r.scale,n=r.getTickModel().get("customValues");return n?{ticks:J1(n,i)}:r.type==="category"?iB(r,e):{ticks:i.getTicks(t)}}function J1(r,e){var t=e.getExtent(),i=[];return C(r,function(n){n=e.parse(n),n>=t[0]&&n<=t[1]&&i.push(n)}),Io(i,Wx,null),Gt(i),B(i,function(n){return{value:n}})}function rB(r,e){var t=r.getLabelModel(),i=eA(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:i}function eA(r,e,t){var i=oB(r),n=kh(e),a=t.kind===qt.estimate;if(!a){var o=rA(i,n);if(o)return o}var s,l;Z(n)?s=Yh(r,n,!1):(l=n==="auto"?sB(r,t):n,s=Yh(r,l,!1));var u={labels:s,labelCategoryInterval:l};return a?t.out.noPxChangeTryDetermine.push(function(){return Ng(i,n,u),!0}):Ng(i,n,u),u}function iB(r,e){var t=aB(r),i=kh(e),n=rA(t,i);if(n)return n;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),Z(i))a=Yh(r,i,!0);else if(i==="auto"){var s=eA(r,r.getLabelModel(),ys(qt.determine));o=s.labelCategoryInterval,a=B(s.labels,function(l){return l.tick})}else o=i,a=Yh(r,o,!0);return Ng(t,i,{ticks:a,tickCategoryInterval:o})}function nB(r){var e=r.scale.getTicks(),t=nu(r);return{labels:B(e,function(i,n){return{formattedLabel:t(i,n),rawLabel:r.scale.getLabel(i),tick:i}})}}var aB=tA("axisTick"),oB=tA("axisLabel");function tA(r){return function(t){return ou(t)[r]||(ou(t)[r]={list:[]})}}function rA(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function Ng(r,e,t){return r.list.push({key:e,value:t}),t}function sB(r,e){if(e.kind===qt.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return ou(r).autoInterval=t,!0}),t}var i=ou(r).autoInterval;return i!=null?i:ou(r).autoInterval=r.calculateCategoryInterval(e)}function iA(r,e){var t=e.kind,i=uB(r),n=nu(r),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=r.dataToCoord(c+1)-r.dataToCoord(c),p=Math.abs(h*Math.cos(a)),d=Math.abs(h*Math.sin(a)),v=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=Af(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var x=v/p,b=m/d;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(x,b)));if(t===qt.estimate)return e.out.noPxChangeTryDetermine.push(Q(lB,null,r,S,l)),S;var T=nA(r,S,l);return T!=null?T:S}function lB(r,e,t){return nA(r,e,t)==null}function nA(r,e,t){var i=tB(r.model),n=r.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-t)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=t,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function uB(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Yh(r,e,t){var i=nu(r),n=r.scale,a=[],o=Z(e);return Ih(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(t?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var fB=.8;function zr(r,e){e=e||{};var t={w:NaN,w2:NaN},i=r.scale,n=e.fromStat,a=e.min,o=r1(i);tt(o)||(o=NaN);var s=r.getExtent(),l=De(s[1]-s[0]);return Xe(i)?cB(t,r,o,l):n?hB(t,r,o,l,n):a==null,a!=null&&(t.w=tt(t.w)?pe(a,t.w):a),t}function cB(r,e,t,i){var n=e.onBand,a=t+(n?1:0);a===0&&(a=1),r.w=i/a,!n&&t&&i&&(r.w2=r.w*t/i)}function hB(r,e,t,i,n){var a=!1,o=-1/0;C(n.key?[I1(e,n.key)]:L1(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===Uh&&(a=!0))}),tt(t)&&t>0&&tt(o)?(r.w=i/t*o,r.w2=o):a&&(r.w=i*fB,r.w2=r.w*t/i)}var aA=[0,1],pB=(function(){function r(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return r.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=i&&e<=n},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},r.prototype.dataToCoord=function(e,t){var i=this.scale;return e=i.normalize(i.parse(e)),Ne(e,aA,oA(this),t)},r.prototype.coordToData=function(e,t){var i=Ne(e,oA(this),aA,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=Q1(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=B(i.ticks,function(s){return{coord:this.dataToCoord(Oi(this.scale,s)),tick:s}},this),a=t.get("alignWithLabel"),o=dB(this,n,a);return B(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(Xe(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),n=B(i,function(a){return B(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(e){return e=e||ys(qt.determine),$1(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return zr(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||ys(qt.determine),iA(this,e)},r})();function oA(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],i=t/r.scale.count()/2;e[0]+=i,e[1]-=i}return e}function dB(r,e,t){var i=e.length;if(!r.onBand||t||!i)return!1;var n=zr(r).w;if(!n)return!1;C(e,function(s){s.coord-=n/2});var a=r.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var sA=pB;var L7=Math.PI*2,P7=_t.CMD;function lA(r,e,t,i,n,a,o,s){var l=n-r,u=a-e,f=t-r,c=i-e,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var p=l*f+u*c,d=p/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var v=o[0]=r+d*f,m=o[1]=e+d*c;return Math.sqrt((v-n)*(v-n)+(m-a)*(m-a))}var En=new le,qe=new le,St=new le,Dn=new le,fi=new le;var Wh=[],zt=new le;function uA(r,e){if(e<=180&&e>0){e=e/180*Math.PI,En.fromArray(r[0]),qe.fromArray(r[1]),St.fromArray(r[2]),le.sub(Dn,En,qe),le.sub(fi,St,qe);var t=Dn.len(),i=fi.len();if(!(t<.001||i<.001)){Dn.scale(1/t),fi.scale(1/i);var n=Dn.dot(fi),a=Math.cos(e);if(a<n){var o=lA(qe.x,qe.y,St.x,St.y,En.x,En.y,Wh,!1);zt.fromArray(Wh),zt.scaleAndAdd(fi,o/Math.tan(Math.PI-e));var s=St.x!==qe.x?(zt.x-qe.x)/(St.x-qe.x):(zt.y-qe.y)/(St.y-qe.y);if(isNaN(s))return;s<0?le.copy(zt,qe):s>1&&le.copy(zt,St),zt.toArray(r[1])}}}}function fA(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,En.fromArray(r[0]),qe.fromArray(r[1]),St.fromArray(r[2]),le.sub(Dn,qe,En),le.sub(fi,St,qe);var i=Dn.len(),n=fi.len();if(!(i<.001||n<.001)){Dn.scale(1/i),fi.scale(1/n);var a=Dn.dot(e),o=Math.cos(t);if(a<o){var s=lA(qe.x,qe.y,St.x,St.y,En.x,En.y,Wh,!1);zt.fromArray(Wh);var l=Math.PI/2,u=Math.acos(fi.dot(e)),f=l+u-t;if(f>=l)le.copy(zt,St);else{zt.scaleAndAdd(fi,s/Math.tan(Math.PI/2-f));var c=St.x!==qe.x?(zt.x-qe.x)/(St.x-qe.x):(zt.y-qe.y)/(St.y-qe.y);if(isNaN(c))return;c<0?le.copy(zt,qe):c>1&&le.copy(zt,St)}zt.toArray(r[1])}}}}function kg(r,e,t,i){var n=t==="normal",a=n?r:r.ensureState(t);a.ignore=e;var o=i.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function vB(r,e){var t=e.smooth,i=e.points;if(i)if(r.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var n=zs(i[0],i[1]),a=zs(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*t,s=Ku([],i[1],i[0],o/n),l=Ku([],i[1],i[2],o/a),u=Ku([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function cA(r,e,t){var i=r.getTextGuideLine(),n=r.getTextContent();if(!n){i&&r.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=n.ignore,l=0;l<Bo.length;l++){var u=Bo[l],f=e[u],c=u==="normal";if(f){var h=f.get("show"),p=c?s:G(n.states[u]&&n.states[u].ignore,s);if(p||!G(h,o)){var d=c?i:i&&i.states[u];d&&(d.ignore=!0),i&&kg(i,!0,u,f);continue}i||(i=new wi,r.setTextGuideLine(i),!c&&(s||!o)&&kg(i,!0,"normal",e.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),kg(i,!1,u,f)}}if(i){ie(i.style,t),i.style.fill=null;var v=a.get("showAbove"),m=r.textGuideLineConfig=r.textGuideLineConfig||{};m.showAbove=v||!1,i.buildPath=vB}}function hA(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},i=0;i<Rt.length;i++){var n=Rt[i];t[n]=r.getModel([n,e])}return t}var pA=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],mB=1,jh=2,vA=mB|jh;function su(r,e,t){t=t||vA,e?r.dirty|=t:r.dirty&=~t}function mA(r,e){return e=e||vA,r.dirty==null||!!(r.dirty&e)}function Fr(r){if(r)return mA(r)&&zg(r,r.label,r),r}function zg(r,e,t){var i=e.getComputedTransform();r.transform=dc(r.transform,i);var n=r.localRect=jo(r.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Sa.textMargin);for(var c=0;c<4;c++)Bg[c]=f===Sa.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Sa.textMargin&&Yo(n,Bg,!1,!1);var h=r.rect=jo(r.rect,n);return i&&h.applyTransform(i),f===Sa.minMargin&&Yo(h,Bg,!1,!1),r.axisAligned=pc(i),(r.label=r.label||{}).ignore=e.ignore,su(r,!1),su(r,!0,jh),r}var Bg=[0,0,0,0];function gA(r,e,t){return r.transform=dc(r.transform,t),r.localRect=jo(r.localRect,e),r.rect=jo(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=pc(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function yA(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var i=r.rect;i&&(i.x+=e.x,i.y+=e.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,t)}}function Fg(r,e){for(var t=0;t<pA.length;t++){var i=pA[t];r[i]==null&&(r[i]=e[i])}return Fr(r)}function dA(r){var e=r.obb;return(!e||mA(r,jh))&&(r.obb=e=e||new fc,e.fromBoundingRect(r.localRect,r.transform),su(r,!1,jh)),e}function _A(r,e,t,i,n){var a=r.length,o=ai[e],s=cn[e];if(a<2)return!1;r.sort(function(w,E){return w.rect[o]-E.rect[o]});for(var l=0,u,f=!1,c=0,h=0;h<a;h++){var p=r[h],d=p.rect;u=d[o]-l,u<0&&(d[o]-=u,p.label[o]-=u,f=!0);var v=Math.max(-u,0);c+=v,l=d[o]+d[s]}c>0&&n&&S(-c/a,0,a);var m=r[0],g=r[a-1],y,_;x(),y<0&&T(-y,.8),_<0&&T(_,.8),x(),b(y,_,1),b(_,y,-1),x(),y<0&&A(-y),_<0&&A(_);function x(){y=m.rect[o]-t,_=i-g.rect[o]-g.rect[s]}function b(w,E,D){if(w<0){var I=Math.min(E,-w);if(I>0){S(I*D,0,a);var M=I+w;M<0&&T(-M*D,1)}else T(-w*D,1)}}function S(w,E,D){w!==0&&(f=!0);for(var I=E;I<D;I++){var M=r[I],L=M.rect;L[o]+=w,M.label[o]+=w}}function T(w,E){for(var D=[],I=0,M=1;M<a;M++){var L=r[M-1].rect,P=Math.max(r[M].rect[o]-L[o]-L[s],0);D.push(P),I+=P}if(I){var R=Math.min(Math.abs(w)/I,E);if(w>0)for(var M=0;M<a-1;M++){var U=D[M]*R;S(U,0,M+1)}else for(var M=a-1;M>0;M--){var U=D[M-1]*R;S(-U,M,a)}}}function A(w){var E=w<0?-1:1;w=Math.abs(w);for(var D=Math.ceil(w/(a-1)),I=0;I<a-1;I++)if(E>0?S(D,0,I+1):S(-D,a-I-1,a),w-=D,w<=0)return}return f}function xA(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<r.length;i++){var n=Fr(r[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Zh(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(a),o&&t(o)):e.push(n)}}}function Zh(r,e,t,i){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,i)?!1:r.axisAligned&&e.axisAligned?!0:dA(r).intersect(dA(e),t,i)}var gB=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(0)var i;return wn(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new be,n=Et("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(n),n.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=Et(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=j.color.neutral00,u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(Nt),bA=gB;function _s(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var n=Di(r,e,t[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<t.length;o++)a.push(Di(r,e,t[o]));return a.join(" ")}}function Xh(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!N(e))return e+"";for(var i=[],n=0;n<t.length;n++){var a=r.getDimensionIndex(t[n]);a>=0&&i.push(e[a])}return i.join(" ")}var yB=(function(r){F(e,r);function e(t,i,n,a){var o=r.call(this)||this;return o.updateData(t,i,n,a),o}return e.prototype._createSymbol=function(t,i,n,a,o,s){this.removeAll();var l=Et(t,-1,-1,2,2,null,s);l.attr({z2:G(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=_B,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ha(this.childAt(0))},e.prototype.downplay=function(){pa(this.childAt(0))},e.prototype.setZ=function(t,i){var n=this.childAt(0);n.zlevel=t,n.z=i},e.prototype.setDraggable=function(t,i){var n=this.childAt(0);n.draggable=t,n.cursor=!i&&t?"move":n.cursor},e.prototype.updateData=function(t,i,n,a){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=e.getSymbolZ2(t,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var h=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,u,h)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):Ve(p,d,s,i),Go(p)}if(this._updateCommon(t,i,l,n,a),f){var p=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,pt(p,d,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,n,a,o){var s=this.childAt(0),l=t.hostModel,u,f,c,h,p,d,v,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,p=a.blurScope,v=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||t.hasItemOption){var y=a&&a.itemModel?a.itemModel:t.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),p=_.get("blurScope"),d=_.get("disabled"),v=si(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var b=lh(t.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=t.getItemVisual(i,"style"),T=S.fill;if(s instanceof Tt){var A=s.style;s.useStyle(O({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},S))}else s.__isEmptyBrush?s.useStyle(O({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var w=t.getItemVisual(i,"liftZ"),E=this._z2;w!=null?E==null&&(this._z2=s.z2,s.z2+=w):E!=null&&(s.z2=E,this._z2=null);var D=o&&o.useNameLabel;oi(s,v,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:T,defaultOpacity:S.opacity});function I(P){return D?t.getName(P):_s(t,P)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*L,M.scaleY=this._sizeY*L,this.setSymbolScale(1),Ci(this,h,p,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,n){var a=this.childAt(0),o=ge(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Ho(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ho(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return XC(t.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(t,i){return t.getItemVisual(i,"z2")},e})(be);function _B(r,e){this.parent.drift(r,e)}var lu=yB;function qh(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(t))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function SA(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function TA(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:si(e),cursorStyle:e.get("cursor")}}function CA(r,e,t,i,n,a,o){var s=new r(e,t,i,n);return s.setPosition(a),e.setItemGraphicEl(t,s),o.add(s),s}var xB=(function(){function r(e){this.group=new be,this._SymbolCtor=e||lu}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=SA(t);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=TA(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var h=f(c);qh(e,h,c,t)&&CA(o,e,c,l,u,h,i)}).update(function(c,h){var p=a.getItemGraphicEl(h),d=f(c);if(!qh(e,d,c,t)){i.remove(p);return}var v=e.getItemVisual(c,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==v)i.remove(p),p=new o(e,c,l,u),p.setPosition(d);else{p.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?p.attr(g):Ve(p,g,n)}i.add(p),e.setItemGraphicEl(c,p)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){i.remove(h)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var i=this,n=t.getStore(),a=0,o=n.count();a<o;a++){var s=t.getItemGraphicEl(a),l=i._getSymbolPoint(a);qh(t,l,a,e)?(s=s||CA(i._SymbolCtor,t,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),t.setItemGraphicEl(a,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=TA(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i,n){this._progressiveEls=[],n=SA(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=Dl)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(qh(t,s,o,n)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){ba(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},i.hostModel)}):t.removeAll()},r})(),Kh=xB;function $h(r,e,t){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=bB(n,t),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=B(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,p=e.getCalculationInfo("stackResultDimension");return Li(e,c[0])&&(h=!0,c[0]=p),Li(e,c[1])&&(h=!0,c[1]=p),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function bB(r,e){var t=0,i=r.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:fe(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function Qh(r,e,t,i){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function Kt(r,e){return!isFinite(r)||!isFinite(e)}var SB=typeof Float32Array!==ln?Float32Array:void 0,wA=typeof Float64Array!==ln?Float64Array:void 0;function sr(r){return Jh({ctor:SB},r).arr}function Jh(r,e){var t=r.arr,i=r.ctor;if(e>Xd&&(e=Xd),!t||r.typed&&t.length<e){var n=void 0;if(i)try{n=new i(e),r.typed=!0,t&&n.set(t)}catch(s){}if(!n&&(n=[],r.typed=!1,t))for(var a=0,o=t.length;a<o;a++)n[a]=t[a];r.arr=n}return r}function TB(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,n){t.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function Ug(r,e,t,i,n,a,o,s){for(var l=TB(r,e),u=[],f=[],c=[],h=[],p=[],d=[],v=[],m=$h(n,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],b=!0,S=void 0,T=void 0;switch(x.cmd){case"=":S=x.idx*2,T=x.idx1*2;var A=g[S],w=g[S+1],E=y[T],D=y[T+1];(isNaN(A)||isNaN(w))&&(A=E,w=D),u.push(A,w),f.push(E,D),c.push(t[S],t[S+1]),h.push(i[T],i[T+1]),v.push(e.getRawIndex(x.idx1));break;case"+":var I=x.idx,M=m.dataDimsForPoint,L=n.dataToPoint([e.get(M[0],I),e.get(M[1],I)]);T=I*2,u.push(L[0],L[1]),f.push(y[T],y[T+1]);var P=Qh(m,n,e,I);c.push(P[0],P[1]),h.push(i[T],i[T+1]),v.push(e.getRawIndex(I));break;case"-":b=!1}b&&(p.push(x),d.push(d.length))}d.sort(function(he,ye){return v[he]-v[ye]});for(var R=u.length,U=sr(R),k=sr(R),H=sr(R),W=sr(R),q=[],_=0;_<d.length;_++){var $=d[_],J=_*2,K=$*2;U[J]=u[K],U[J+1]=u[K+1],k[J]=f[K],k[J+1]=f[K+1],H[J]=c[K],H[J+1]=c[K+1],W[J]=h[K],W[J+1]=h[K+1],q[_]=p[$]}return{current:U,next:k,stackedOnCurrent:H,stackedOnNext:W,status:q}}var Mn=Math.min,In=Math.max;function Vg(r,e,t,i,n,a,o,s,l){for(var u,f,c,h,p,d,v=t,m=0;m<i;m++){var g=e[v*2],y=e[v*2+1];if(v>=n||v<0)break;if(Kt(g,y)){if(l){v+=a;continue}break}if(v===t)r[a>0?"moveTo":"lineTo"](g,y),c=g,h=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){v+=a;continue}if(o>0){for(var b=v+a,S=e[b*2],T=e[b*2+1];S===g&&T===y&&m<i;)m++,b+=a,v+=a,S=e[b*2],T=e[b*2+1],g=e[v*2],y=e[v*2+1],_=g-u,x=y-f;var A=m+1;if(l)for(;Kt(S,T)&&A<i;)A++,b+=a,S=e[b*2],T=e[b*2+1];var w=.5,E=0,D=0,I=void 0,M=void 0;if(A>=i||Kt(S,T))p=g,d=y;else{E=S-u,D=T-f;var L=g-u,P=S-g,R=y-f,U=T-y,k=void 0,H=void 0;if(s==="x"){k=Math.abs(L),H=Math.abs(P);var W=E>0?1:-1;p=g-W*k*o,d=y,I=g+W*H*o,M=y}else if(s==="y"){k=Math.abs(R),H=Math.abs(U);var q=D>0?1:-1;p=g,d=y-q*k*o,I=g,M=y+q*H*o}else k=Math.sqrt(L*L+R*R),H=Math.sqrt(P*P+U*U),w=H/(H+k),p=g-E*o*(1-w),d=y-D*o*(1-w),I=g+E*o*w,M=y+D*o*w,I=Mn(I,In(S,g)),M=Mn(M,In(T,y)),I=In(I,Mn(S,g)),M=In(M,Mn(T,y)),E=I-g,D=M-y,p=g-E*k/H,d=y-D*k/H,p=Mn(p,In(u,g)),d=Mn(d,In(f,y)),p=In(p,Mn(u,g)),d=In(d,Mn(f,y)),E=g-p,D=y-d,I=g+E*H/k,M=y+D*H/k}r.bezierCurveTo(c,h,p,d,g,y),c=I,h=M}else r.lineTo(g,y)}u=g,f=y,v+=a}return m}var AA=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),EA=(function(r){F(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:j.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new AA},e.prototype.buildPath=function(t,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Kt(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Kt(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Vg(t,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=_t.CMD,s,l,u=i==="x",f=[],c=0;c<a.length;){var h=a[c++],p=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(h){case o.M:s=a[c++],l=a[c++];break;case o.L:if(p=a[c++],d=a[c++],_=u?(t-s)/(p-s):(t-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(p-s)*_+s;return u?[t,x]:[x,t]}s=p,l=d;break;case o.C:p=a[c++],d=a[c++],v=a[c++],m=a[c++],g=a[c++],y=a[c++];var b=u?jn(s,p,v,g,t,f):jn(l,d,m,y,t,f);if(b>0)for(var S=0;S<b;S++){var T=f[S];if(T<=1&&T>=0){var x=u?Be(l,d,m,y,T):Be(s,p,v,g,T);return u?[t,x]:[x,t]}}s=g,l=y;break}}},e})(ae);var CB=(function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(AA),DA=(function(r){F(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new CB},e.prototype.buildPath=function(t,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Kt(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Kt(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Vg(t,n,o,s,s,1,i.smooth,l,i.connectNulls);Vg(t,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,t.closePath()}},e})(ae);function Hg(r,e,t,i,n){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new xe({shape:{x:o,y:s,width:l,height:u}});if(e){var h=r.getBaseAxis(),p=h.isHorizontal(),d=h.inverse;p?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var v=Z(n)?function(m){n(m,c)}:null;pt(c,{shape:{width:l,height:u,x:o,y:s}},t,null,i,v)}return c}function Gg(r,e,t){var i=r.getArea(),n=me(i.r0,1),a=me(i.r,1),o=new Lr({shape:{cx:me(r.cx,1),cy:me(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,pt(o,{shape:{endAngle:i.endAngle,r:a}},t)}return o}function MA(r,e,t,i,n){if(r){if(r.type==="polar")return Gg(r,e,t);if(r.type==="cartesian2d")return Hg(r,e,t,i,n)}else return null;return null}function IA(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function ep(r,e){return r.type===e}function LA(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function PA(r){for(var e=yt(),t=yt(),i=0;i<r.length;){var n=r[i++],a=r[i++];Kt(n,a)||(fl(e,n),fl(t,a))}return[e,t]}function OA(r,e){var t=PA(r),i=t[0],n=t[1],a=PA(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function RA(r){return fe(r)?r:r?.5:0}function wB(r,e,t){if(t.valueDim==null)return[];for(var i=e.count(),n=sr(i*2),a=0;a<i;a++){var o=Qh(t,r,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function Ln(r,e,t,i,n){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(n){for(l=0;l<r.length;l+=2){var p=e||r;Kt(p[l],p[l+1])||h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),i){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,v=[];u[o]=v[o]=d,u[1-o]=f[1-o],v[1-o]=c[1-o],s.push(u[0],u[1]),s.push(v[0],v[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function AB(r,e){var t=[],i=r.length,n,a;function o(f,c,h){var p=f.coord,d=(h-p)/(c.coord-p),v=Y0(d,[f.color,c.color]);return{coord:h,color:v}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){a?t.push(o(a,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),a=l}return t}function EB(r,e,t){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=B(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=AB(u,n==="x"?t.getWidth():t.getHeight()),p=h.length;if(!p&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,v=h[0].coord-d,m=h[p-1].coord+d,g=m-v;if(g<.001)return"transparent";C(h,function(_){_.offset=(_.coord-v)/g}),h.push({offset:p?h[p-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:c[0]||"transparent"});var y=new oc(0,0,0,0,h,!0);return y[n]=v,y[n+"2"]=m,y}}}function DB(r,e,t){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(n&&MB(a,e))){var o=e.mapDimension(a.dim),s={};return C(a.getViewLabels(),function(l){l.tick.offInterval||(s[Oi(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function MB(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(lu.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function IB(r){for(var e=r.length/2;e>0&&Kt(r[e*2-2],r[e*2-1]);e--);return e-1}function NA(r,e){return[r[e*2],r[e*2+1]]}function LB(r,e,t){for(var i=r.length/2,n=t==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+n],!Kt(o,r[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function kA(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Rt.length;e++)if(r.get([Rt[e],"endLabel","show"]))return!0;return!1}function Yg(r,e,t,i){if(ep(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=kA(i)?function(p,d){r._endLabelOnDuring(p,d,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Hg(e,t,i,function(){var p=r._endLabel;p&&t&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return Gg(e,t,i)}function PB(r,e){var t=e.getBaseAxis(),i=t.isHorizontal(),n=t.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var OB=(function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new be,i=new Kh;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t,this._changePolyState=Q(this._changePolyState,this)},e.prototype.render=function(t,i,n){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",h=this._coordSys,p=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!i.ssr&&t.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=$h(a,s,_),b=y&&wB(a,s,x),S=t.get("showSymbol"),T=t.get("connectNulls"),A=S&&!c&&DB(t,s,a),w=this._data;w&&w.eachItemGraphicEl(function(Se,Le){Se.__temp&&(o.remove(Se),w.setItemGraphicEl(Le,null))}),S||p.remove(),o.add(m);var E=c?!1:t.get("step"),D;a&&a.getArea&&t.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=EB(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===a.type&&E===this._step))S&&p.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Se){return[f[Se*2],f[Se*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),E&&(b&&(b=Ln(b,f,a,E,T)),f=Ln(f,null,a,E,T)),d=this._newPolyline(f),y?v=this._newPolygon(f,b):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,Nr(I)),m.setClipPath(Yg(this,a,!0,t));else{y&&!v?v=this._newPolygon(f,b):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,Nr(I));var M=m.getClipPath();if(M){var L=Yg(this,a,!1,t);pt(M,{shape:L.shape},t)}else m.setClipPath(Yg(this,a,!0,t));S&&p.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Se){return[f[Se*2],f[Se*2+1]]}}),(!LA(this._stackedOnPoints,b)||!LA(this._points,f))&&(g?this._doUpdateAnimation(s,b,a,n,E,_,T):(E&&(b&&(b=Ln(b,f,a,E,T)),f=Ln(f,null,a,E,T)),d.setShape({points:f}),v&&v.setShape({points:f,stackedOnPoints:b})))}var P=t.getModel("emphasis"),R=P.get("focus"),U=P.get("blurScope"),k=P.get("disabled");if(d.useStyle(ie(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),da(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=d.getState("emphasis").style;H.lineWidth=+d.style.lineWidth+1}ge(d).seriesIndex=t.seriesIndex,Ci(d,R,U,k);var W=RA(t.get("smooth")),q=t.get("smoothMonotone");if(d.setShape({smooth:W,smoothMonotone:q,connectNulls:T}),v){var $=s.getCalculationInfo("stackedOnSeries"),J=0;v.useStyle(ie(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(J=RA($.get("smooth"))),v.setShape({smooth:W,stackedOnSmooth:J,smoothMonotone:q,connectNulls:T}),da(v,t,"areaStyle"),ge(v).seriesIndex=t.seriesIndex,Ci(v,R,U,k)}var K=this._changePolyState;s.eachItemGraphicEl(function(Se){Se&&(Se.onHoverStateChange=K)}),this._polyline.onHoverStateChange=K,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=E,this._valueOrigin=_;var he=t.get("triggerEvent"),ye=t.get("triggerLineEvent"),Ge=ye===!0||he===!0||he==="line",Fe=ye===!0||he===!0||he==="area";this.packEventData(t,d,Ge),v&&this.packEventData(t,v,Fe)},e.prototype.packEventData=function(t,i,n){ge(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,i,n,a){var o=t.getData(),s=cr(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Kt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=t.get("zlevel")||0,p=t.get("z")||0;u=new lu(o,s),u.x=f,u.y=c,u.setZ(h,p);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=p,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else bt.prototype.highlight.call(this,t,i,n,a)},e.prototype.downplay=function(t,i,n,a){var o=t.getData(),s=cr(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else bt.prototype.downplay.call(this,t,i,n,a)},e.prototype._changePolyState=function(t){var i=this._polygon;Rv(this._polyline,t),i&&Rv(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new EA({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new DA({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");Z(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=Z(c)?c(null):c;t.eachItemGraphicEl(function(p,d){var v=p;if(v){var m=[p.x,p.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,b=i.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-b[1]/180*Math.PI):(g=x.r0,y=x.r,_=b[0])}else{var S=n;a?(g=S.x,y=S.x+S.width,_=p.x):(g=S.y+S.height,y=S.y,_=p.y)}var T=y===g?0:(_-g)/(y-g);l&&(T=1-T);var A=Z(c)?c(d):f*T+h,w=v.getSymbolPath(),E=w.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:A}),w.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,n){var a=t.getModel("endLabel");if(kA(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Me({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=IB(l);f>=0&&(oi(s,si(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(c,h,p){return p!=null?Xh(o,p):_s(o,c)},enableTextSetter:!0},PB(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout("points"),h=n.hostModel,p=h.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?v:0)*(y?-1:1),S=(g?0:-v)*(y?-1:1),T=g?"x":"y",A=LB(c,x,T),w=A.range,E=w[1]-w[0],D=void 0;if(E>=1){if(E>1&&!p){var I=NA(c,w[0]);u.attr({x:I[0]+b,y:I[1]+S}),o&&(D=h.getRawValue(w[0]))}else{var I=f.getPointOn(x,T);I&&u.attr({x:I[0]+b,y:I[1]+S});var M=h.getRawValue(w[0]),L=h.getRawValue(w[1]);o&&(D=rv(n,d,M,L,A.t))}a.lastFrameIndex=w[0]}else{var P=t===1||a.lastFrameIndex>0?w[0]:0,I=NA(c,P);o&&(D=h.getRawValue(P)),u.attr({x:I[0]+b,y:I[1]+S})}if(o){var R=Zo(u);typeof R.setLabelText=="function"&&R.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,h=Ug(this._data,t,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),p=h.current,d=h.stackedOnCurrent,v=h.next,m=h.stackedOnNext;if(o&&(d=Ln(h.stackedOnCurrent,h.current,n,o,l),p=Ln(h.current,null,n,o,l),m=Ln(h.stackedOnNext,h.next,n,o,l),v=Ln(h.next,null,n,o,l)),OA(p,v)>3e3||f&&OA(d,m)>3e3){u.stopAnimation(),u.setShape({points:v}),f&&(f.stopAnimation(),f.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=p;var g={shape:{points:v}};h.current!==p&&(g.shape.__points=h.next),u.stopAnimation(),Ve(u,g,c),f&&(f.setShape({points:p,stackedOnPoints:d}),f.stopAnimation(),Ve(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,x=0;x<_.length;x++){var b=_[x].cmd;if(b==="="){var S=t.getItemGraphicEl(_[x].idx1);S&&y.push({el:S,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,A=0;A<y.length;A++){var w=y[A].el,E=y[A].ptIdx*2;w.x=T[E],w.y=T[E+1],w.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(bt),BA=OB;function ja(r,e){return{seriesType:r,plan:ka(),reset:function(t){var i=t.getData(),n=t.coordinateSystem,a=t.pipelineContext,o=e||a.large;if(n){var s=B(n.dimensions,function(p){return i.mapDimension(p)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Li(i,s[0])&&(s[0]=u),Li(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),h=i.getDimensionIndex(s[1]);return l&&{progress:function(p,d){for(var v=p.end-p.start,m=o&&sr(v*l),g=[],y=[],_=p.start,x=0;_<p.end;_++){var b=void 0;if(l===1){var S=f.get(c,_);b=n.dataToPoint(S,null,y)}else g[0]=f.get(c,_),g[1]=f.get(h,_),b=n.dataToPoint(g,null,y);o?(m[x++]=b[0],m[x++]=b[1]):d.setItemLayout(_,b.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:p.start,end:p.end}))}}}}}}var RB={average:function(r){for(var e=0,t=0,i=0;i<r.length;i++)isNaN(r[i])||(e+=r[i],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},NB=function(r){return Math.round(r.length/2)};function uu(r){return{seriesType:r,reset:function(e,t,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),p=Math.round(s/h);if(isFinite(p)&&p>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/p)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/p));var d=void 0;z(a)?d=RB[a]:Z(a)&&(d=a),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/p,d,NB))}}}}}function Wg(r){r.registerChartView(BA),r.registerSeriesModel(bA),r.registerLayout(ja("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,uu("line"))}var kB=(function(r){F(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(sA),zA=kB;var BB=null;function Za(){return BB}var FA="expandAxisBreak";var Pn=Math.PI,zB=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],FB=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],On=ee(),HA=ee(),Zg=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[t]||(n[t]=[]);return a[i]||(a[i]={ready:{}})},r})();function UB(r,e,t,i){var n=t.axis,a=e.ensureRecord(t),o=[],s,l=Kg(r.axisName)&&An(r.nameLocation);C(i,function(d){var v=Fr(d);if(!(!v||v.label.ignore)){o.push(v);var m=a.transGroup;l&&(m.transform?Gr(fu,m.transform):di(fu),v.transform&&Wi(fu,fu,v.transform),re.copy(tp,v.localRect),tp.applyTransform(fu),s?s.union(tp):re.copy(s=new re(0,0,0,0),tp))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,v){return Math.abs(d.label[u]-f)-Math.abs(v.label[u]-f)}),l&&s){var c=n.getExtent(),h=Math.min(c[0],c[1]),p=Math.max(c[0],c[1])-h;s.union(new re(h,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var fu=Lt(),tp=new re(0,0,0,0),Xg=function(r,e,t,i,n,a){if(An(r.nameLocation)){var o=a.stOccupiedRect;o&&GA(gA({},o,a.transGroup.transform),i,n)}else qg(a.labelInfoList,a.dirVec,i,n)};function GA(r,e,t){var i=new le;Zh(r,e,i,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&yA(e,i)}function qg(r,e,t,i){for(var n=le.dot(i,e)>=0,a=0,o=r.length;a<o;a++){var s=r[n?a:o-1-a];s.label.ignore||GA(s,t,i)}}var Xa=(function(){function r(e,t,i,n){this.group=new be,this._axisModel=e,this._api=t,this._local={},this._shared=n||new Zg(Xg),this._resetCfgDetermined(i)}return r.prototype.updateCfg=function(e){if(0)var t;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,i=t.getDefaultOption?t.getDefaultOption():{},n=G(e.axisName,t.get("name")),a=t.get("nameMoveOverlap");(a==null||a==="auto")&&(a=G(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:n,nameLocation:Qt(t.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Kg(n)&&a,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new be({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new le(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),C(VB,function(n){e[n]&&HB[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,t||{})}),this},r.innerTextLayout=function(e,t,i){var n=qd(t-e),a,o;return al(n)?(o=i>0?"top":"bottom",a="center"):al(n-Pn)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<Pn?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),VB=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],HB={axisLine:function(r,e,t,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,r.raw.axisLineAutoShow!=null&&(l=!!r.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],h=[u[1],0],p=c[0]>h[0];f&&(gt(c,c,f),gt(h,h,f));var d=O({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&wa(i.axis.scale))Za().buildAxisBreakLine(i,n,a,v);else{var m=new Pr(O({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},v));_a(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);z(g)&&(g=[g,g]),(z(y)||fe(y))&&(y=[y,y]);var _=lh(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],b=y[1];C([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(S,T){if(g[T]!=="none"&&g[T]!=null){var A=Et(g[T],-x/2,-b/2,x,b,d.stroke,!0),w=S.r+S.offset,E=p?h:c;A.attr({rotation:S.rotate,x:E[0]+w*Math.cos(r.rotation),y:E[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),n.add(A)}})}}},axisTickLabelEstimate:function(r,e,t,i,n,a,o,s){if(0)var l;var u=VA(e,n,s);u&&UA(r,e,t,i,n,a,o,qt.estimate)},axisTickLabelDetermine:function(r,e,t,i,n,a,o,s){if(0)var l;var u=VA(e,n,s);u&&UA(r,e,t,i,n,a,o,qt.determine);var f=jB(r,n,a,i);WB(r,e.labelLayoutList,f),ZB(r,n,a,i,r.tickDirection)},axisName:function(r,e,t,i,n,a,o,s){var l=t.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=r.axisName;if(Kg(f)){var c=r.nameLocation,h=r.nameDirection,p=i.getModel("nameTextStyle"),d=i.get("nameGap")||0,v=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new le(0,0),y=new le(0,0);c==="start"?(g.x=v[0]-m*d,y.x=-m):c==="end"?(g.x=v[1]+m*d,y.x=m):(g.x=(v[0]+v[1])/2,g.y=r.labelOffset+h*d,y.y=h);var _=Lt();y.transform(co(_,_,r.rotation));var x=i.get("nameRotate");x!=null&&(x=x*Pn/180);var b,S;An(c)?b=Xa.innerTextLayout(r.rotation,x!=null?x:r.rotation,h):(b=GB(r.rotation,c,x||0,v),S=r.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var T=p.getFont(),A=i.get("nameTruncate",!0)||{},w=A.ellipsis,E=oo(r.raw.nameTruncateMaxWidth,A.maxWidth,S),D=s.nameMarginLevel||0,I=new Me({x:g.x,y:g.y,rotation:b.rotation,silent:Xa.isLabelSilent(i),style:Rr(p,{text:f,font:T,overflow:"truncate",width:E,ellipsis:w,fill:p.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:p.get("align")||b.textAlign,verticalAlign:p.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(Wo({el:I,componentModel:i,itemName:f}),I.__fullText=f,I.anid="name",i.get("triggerEvent")){var M=Xa.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,ge(I).eventData=M}a.add(I),I.updateTransform(),e.nameEl=I;var L=l.nameLayout=Fr({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:An(c)?zB[D]:FB[D]});if(l.nameLocation=c,n.add(I),I.decomposeTransform(),r.shouldNameMoveOverlap&&L){var P=t.ensureRecord(i);t.resolveAxisNameOverlap(r,t,i,L,y,P)}}}};function UA(r,e,t,i,n,a,o,s){WA(e)||XB(r,e,n,s,i,o);var l=e.labelLayoutList;qB(r,i,l,a),QB(i,r.rotation,l);var u=r.optionHideOverlap;YB(i,l,u),u&&xA(ke(l,function(f){return f&&!f.label.ignore})),UB(r,t,i,l)}function GB(r,e,t,i){var n=qd(t-r),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return al(n-Pn/2)?(o=l?"bottom":"top",a="center"):al(n-Pn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<Pn*1.5&&n>Pn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function YB(r,e,t){var i=r.axis,n=r.get(["axisLabel","customValues"]);if(C1(i))return;function a(u,f,c){var h=Fr(e[f]),p=Fr(e[c]),d=i.scale;if(!(!h||!p)){if(u==null){if(!t&&n)return;var v=On(h.label).labelInfo.tick;if(li(d)&&v.notNice||Xe(d)&&v.offInterval){xs(h.label);return}}if(u===!1||h.suggestIgnore){xs(h.label);return}if(p.suggestIgnore){xs(p.label);return}var m=.1;if(!t){var g=[0,0,0,0];h=Fg({marginForce:g},h),p=Fg({marginForce:g},p)}Zh(h,p,null,{touchThreshold:m})&&xs(u?p.label:h.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function WB(r,e,t){r.showMinorTicks||C(e,function(i){if(i&&i.label.ignore)for(var n=0;n<t.length;n++){var a=t[n],o=HA(a),s=On(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){xs(a);return}}})}function xs(r){r&&(r.ignore=!0)}function YA(r,e,t,i,n){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(gt(o,o,e),gt(s,s,e));var f=new Pr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});_a(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,a.push(f);var c=HA(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return a}function jB(r,e,t,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=n.getTicksCoords(),f=YA(u,t.transform,l,ie(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function ZB(r,e,t,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!r.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ie(l.getLineStyle(),ie(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=YA(s[c],t.transform,u,f,"minorticks_"+c),p=0;p<h.length;p++)e.add(h[p])}}function VA(r,e,t){if(WA(r)){var i=r.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(t.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(r.labelGroup),jg(r,null,null,null))}return!0}function XB(r,e,t,i,n,a){var o=n.axis,s=oo(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new be;t.add(l);var u=ys(i);if(!s||o.scale.isBlank()){jg(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),h=(oo(r.raw.labelRotate,f.get("rotate"))||0)*Pn/180,p=Xa.innerTextLayout(r.rotation,h,r.labelDirection),d=n.getCategories&&n.getCategories(!0),v=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;C(c,function(x,b){var S,T=x.tick,A=x.formattedLabel,w=x.rawLabel,E=f,D=Oi(o.scale,T);if(d&&d[D]){var I=d[D];Y(I)&&I.textStyle&&(E=new Ie(I.textStyle,f,n.ecModel))}var M=E.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=E.getShallow("align",!0)||p.textAlign,P=G(E.getShallow("alignMinLabel",!0),L),R=G(E.getShallow("alignMaxLabel",!0),L),U=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||p.textVerticalAlign,k=G(E.getShallow("verticalAlignMinLabel",!0),U),H=G(E.getShallow("verticalAlignMaxLabel",!0),U),W=10+(((S=T.time)===null||S===void 0?void 0:S.level)||0);g=Math.min(g,W),y=Math.max(y,W);var q=new Me({x:0,y:0,rotation:0,silent:Xa.isLabelSilent(n),z2:W,style:Rr(E,{text:A,align:b===0?P:b===c.length-1?R:L,verticalAlign:b===0?k:b===c.length-1?H:U,fill:Z(M)?M(o.type==="category"?w:o.type==="value"?D+"":D,b):M})});q.anid="label_"+D;var $=On(q);if($.labelInfo=x,$.layoutRotation=p.rotation,Wo({el:q,componentModel:n,itemName:A,formatterParamsExtra:{isTruncated:function(){return q.isTruncated},value:w,tickIndex:b}}),m){var J=Xa.makeAxisEventDataBase(n);J.targetType="axisLabel",J.value=w,J.tickIndex=b;var K=x.tick.break;if(K){var he=K.parsedBreak;J.break={start:he.vmin,end:he.vmax}}o.type==="category"&&(J.dataIndex=D),ge(q).eventData=J,K&&$B(n,a,q,K)}v.push(q),l.add(q)});var _=B(v,function(x){return{label:x,priority:On(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});jg(e,_,l,u)}function WA(r){return!!r.labelLayoutList}function jg(r,e,t,i){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=i}function qB(r,e,t,i){var n=e.get(["axisLabel","margin"]);C(t,function(a,o){var s=Fr(a);if(s){var l=s.label,u=On(l);s.suggestIgnore=l.ignore,l.ignore=!1,$i(Ri,KB);var f=e.axis;Ri.x=f.dataToCoord(Oi(f.scale,u.labelInfo.tick)),Ri.y=r.labelOffset+r.labelDirection*n,Ri.rotation=u.layoutRotation,i.add(Ri),Ri.updateTransform(),i.remove(Ri),Ri.decomposeTransform(),$i(l,Ri),l.markRedraw(),su(s,!0),Fr(s)}})}var Ri=new xe,KB=new xe;function Kg(r){return!!r}function $B(r,e,t,i){t.on("click",function(n){var a={type:FA,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(a)})}function QB(r,e,t){var i=He();if(i){var n=i.retrieveAxisBreakPairs(t,function(o){return o&&On(o.label).labelInfo.tick.break},!0),a=r.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&C(n,function(o){Za().adjustBreakLabelPair(r.axis.inverse,e,[Fr(t[o[0]]),Fr(t[o[1]])])})}}var rp=Xa;function cu(r,e,t){t=t||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));h[f.onZero]=Math.max(Math.min(p,h[1]),h[0])}n.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=a?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),oo(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var v=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-v:v,n.z2=1,n}function jA(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function ZA(r){var e={xAxisModel:null,yAxisModel:null};return C(e,function(t,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,je).models[0];e[i]=a}),e}function XA(r,e,t,i,n,a){for(var o=cu(r,t),s=!1,l=!1,u=0;u<e.length;u++)Eh(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new rp(t,i,o,n)}function qA(r,e,t){var i=cu(e,t);if(0)var n;r.updateCfg(i)}function KA(){k1("liPosMinGap",ez)}function ez(r,e,t){var i=V(),n=t.serUids,a=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Kc(f);function h(_){Vh(r,e.sers,function(x){var b=x.getRawData(),S=b.getDimensionIndex(b.mapDimension(s.dim));S>=0&&_(S,x,b.getStore())})}var p=0;if(h(function(_,x,b){i.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),p+=b.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}Jh(qa,p);var d=0;h(function(_,x,b){for(var S=0,T=b.count();S<T;++S){var A=b.get(_,S);isFinite(A)&&(!f||$c(c,A))&&(u&&(A=l.transformIn(A,null)),qa.arr[d++]=A)}});var v=qa.typed?qa.arr.subarray(0,d):(qa.arr.length=d,qa.arr);qa.typed?v.sort():Gt(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}t.liPosMinGap=e.liPosMinGap=tt(m)?m:d>0?Uh:D1,t.serUids=i}var qa=Jh({ctor:wA},50);function $A(r){return function(e,t){var i=zr(e,{fromStat:{key:r}});if(tt(i.w2))return[-i.w2/2,i.w2/2]}}function hu(r,e){return r+Fh+e}function QA(r){return KA(),{liPosMinGap:!Xe(r.scale)}}var Ni="bar";function JA(r,e,t,i){z1(r,{key:e,seriesType:t,coordSysType:i,getMetrics:QA})}function eE(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var $g={left:0,right:0,top:0,bottom:0},pu=["25%","25%"],_r="cartesian2d",tz=(function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,i){var n=mr(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&ar(t.outerBounds,n)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&ar(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:$g,outerBoundsContain:"all",outerBoundsClampWidth:pu[0],outerBoundsClampHeight:pu[1],backgroundColor:j.color.transparent,borderWidth:1,borderColor:j.color.neutral30},e})(Ce),tE=tz;var rz=Mo(),iz="__ec_stack_";function rE(r){return r.get("stack")||iz+r.seriesIndex}function nz(r,e){var t=az(r,e);return t.columnMap=oz(t),t}function az(r,e){var t=hu(e,_r),i=[],n=zr(r,{fromStat:{key:t},min:1});return Ig(r,t,function(a){i.push({barWidth:we(a.get("barWidth"),n.w),barMaxWidth:we(a.get("barMaxWidth"),n.w),barMinWidth:we(a.get("barMinWidth")||(aE(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:rE(a)})}),{bandWidthResult:n,seriesInfo:i}}function oz(r){var e=r.bandWidthResult.w,t=e,i=0,n,a,o=[],s={};C(r.seriesInfo,function(v,m){m||(a=v.defaultBarGap||0);var g=v.stackId;Pe(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=v.barWidth;_&&!y.width&&(y.width=_,_=Re(t,_),t-=_);var x=v.barMaxWidth;x&&(y.maxWidth=x);var b=v.barMinWidth;b&&(y.minWidth=b);var S=v.barGap;S!=null&&(a=S);var T=v.barCategoryGap;T!=null&&(n=T)}),n==null&&(n=pe(35-o.length*4,15)+"%");var l=we(n,e),u=we(a,1),f=(t-l)/(i+(i-1)*u);f=pe(f,0),C(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=Re(_,g)),y&&(_=pe(_,y)),m.width=_,t-=_+u*_,i--}else{var _=f;g&&g<_&&(_=Re(g,t)),y&&y>_&&(_=y),_!==f&&(m.width=_,t-=_+u*_,i--)}}),f=(t-l)/(i+(i-1)*u),f=pe(f,0);var c=0,h;C(o,function(v){var m=s[v];m.width||(m.width=f),h=m,c+=m.width*(1+u)}),h&&(c-=h.width*u);var p={},d=-c/2;return C(o,function(v){var m=s[v];p[v]=p[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+u)}),p}function iE(r){return{seriesType:r,overallReset:function(e){var t=hu(r,_r);N1(e,t,function(i){var n=nz(i,r);Ig(i,t,function(a){var o=n.columnMap[rE(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function nE(r){return{seriesType:r,plan:ka(),reset:function(e){if(jA(e)){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),f=t.getCalculationInfo("stackResultDimension"),c=Li(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),p=a.toGlobalCoord(a.dataToCoord(eE(a))),d=aE(e),v=e.get("barMinHeight")||0,m=f&&t.getDimensionIndex(f),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(_,x){for(var b=_.count,S=d&&sr(b*3),T=d&&l&&sr(b*3),A=d&&sr(b),w=i.master.getRect(),E=h?w.width:w.height,D,I=x.getStore(),M=0;(D=_.next())!=null;){var L=I.get(c?m:o,D),P=I.get(s,D),R=p,U=void 0;c&&(U=+L-I.get(o,D));var k=void 0,H=void 0,W=void 0,q=void 0;if(h){var $=i.dataToPoint([L,P]);c&&(R=i.dataToPoint([U,P])[0]),k=R,H=$[1]+y,W=$[0]-R,q=g,De(W)<v&&(W=(W<0?-1:1)*v)}else{var $=i.dataToPoint([P,L]);c&&(R=i.dataToPoint([P,U])[1]),k=$[0]+y,H=R,W=g,q=$[1]-R,De(q)<v&&(q=(q<=0?-1:1)*v)}d?(S[M]=k,S[M+1]=H,S[M+2]=h?W:q,T&&(T[M]=h?w.x:k,T[M+1]=h?H:w.y,T[M+2]=E),A[D]=D):x.setItemLayout(D,{x:k,y:H,width:W,height:q}),M+=3}d&&x.setLayout({largePoints:S,largeDataIndices:A,largeBackgroundPoints:T,valueAxisHorizontal:h})}}}}}}function aE(r){return r.pipelineContext&&r.pipelineContext.large}function sz(r){return $A(hu(r,_r))}function oE(r){rz(r,function(){function e(t){var i=hu(t,_r);JA(r,i,t,_r),Z1(i,sz(t))}e("bar"),e("pictorialBar")})}var sE=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return wn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(n)C(a.getAxes(),function(h,p){if(h.type==="category"&&i!=null){var d=h.getTicksCoords(),v=h.getTickModel().get("alignWithLabel"),m=o[p],g=i[p]==="x1"||i[p]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[p]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,b=0;b<d.length;b++){var S=d[b].coord,T=b===d.length-1?d[b-1].tickValue+x:d[b].tickValue;if(T===m){_=S;break}else if(T<m)y=S;else if(y!=null&&T>m){_=(S+y)/2;break}b===1&&(x=T-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[p]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Nt);Nt.registerClass(sE);var Qg=sE;var lz=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return wn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,i){var n=Bf(this,t,i);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,i,n){return n.rect(i.getItemLayout(t))},e.type="series."+Ni,e.dependencies=["grid","polar"],e.defaultOption=dn(Qg.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:j.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Qg),lE=lz;var uz=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),fz=(function(r){F(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new uz},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,c=i.endAngle,h=i.clockwise,p=Math.PI*2,d=h?c-f<p:f-c<p;d||(f=c-(h?p:-p));var v=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);d?(t.moveTo(v*o+n,m*o+a),t.arc(v*u+n,m*u+a,l,-Math.PI+f,f,!h)):t.moveTo(v*s+n,m*s+a),t.arc(n,a,s,f,c,!h),t.arc(g*u+n,y*u+a,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&t.arc(n,a,o,c,f,h)},e})(ae),Jg=fz;function uE(r,e){e=e||{};var t=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return ea(i,n,a);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,p=u.r0,d=(h+p)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,y=t?Math.abs(h-p)/2:0,_=Math.cos,x=Math.sin,b=f+h*_(v),S=c+h*x(v),T="left",A="top";switch(s){case"startArc":b=f+(p-l)*_(g),S=c+(p-l)*x(g),T="center",A="top";break;case"insideStartArc":b=f+(p+l)*_(g),S=c+(p+l)*x(g),T="center",A="bottom";break;case"startAngle":b=f+d*_(v)+ip(v,l+y,!1),S=c+d*x(v)+np(v,l+y,!1),T="right",A="middle";break;case"insideStartAngle":b=f+d*_(v)+ip(v,-l+y,!1),S=c+d*x(v)+np(v,-l+y,!1),T="left",A="middle";break;case"middle":b=f+d*_(g),S=c+d*x(g),T="center",A="middle";break;case"endArc":b=f+(h+l)*_(g),S=c+(h+l)*x(g),T="center",A="bottom";break;case"insideEndArc":b=f+(h-l)*_(g),S=c+(h-l)*x(g),T="center",A="top";break;case"endAngle":b=f+d*_(m)+ip(m,l+y,!0),S=c+d*x(m)+np(m,l+y,!0),T="left",A="middle";break;case"insideEndAngle":b=f+d*_(m)+ip(m,-l+y,!0),S=c+d*x(m)+np(m,-l+y,!0),T="right",A="middle";break;default:return ea(i,n,a)}return i=i||{},i.x=b,i.y=S,i.align=T,i.verticalAlign=A,i}}function fE(r,e,t,i){if(fe(i)){r.setTextConfig({rotation:i});return}else if(N(e)){r.setTextConfig({rotation:0});return}var n=r.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function ip(r,e,t){return e*Math.sin(r)*(t?-1:1)}function np(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Ka(r,e,t){var i=r.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;N(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:B(i,function(a){return wr(a,n)})}}var ey=Math.max,ty=Math.min,cz=(function(r){F(e,r);function e(){var t=r.call(this)||this;return t.type=Ni,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,n,a){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,n):this._renderNormal(t,i,n,a))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){ba(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t,i,n,a){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=t.isAnimationEnabled()?t:null,p=hz(t,u);p&&this._enableRealtimeSort(p,s,n);var d=t.get("clip",!0)||p,v=u.getArea();o.removeClipPath();var m=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],b=this._backgroundEls,S=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function A(D){var I=ap[u.type](s,D);if(!I)return null;var M=_z(u,c,I);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[D]=M,M}s.diff(l).add(function(D){var I=s.getItemModel(D),M=ap[u.type](s,D,I);if(M&&(g&&A(D),!(!s.hasValue(D)||!vE[u.type](M)))){var L=!1;d&&(L=cE[u.type](v,M));var P=hE[u.type](t,s,D,M,c,h,f.model,!1,m);p&&(P.forceLabelAnimation=!0),mE(P,s,D,I,M,t,c,u.type==="polar"),S?P.attr({shape:M}):p?pE(p,h,P,M,D,c,!1,!1):pt(P,{shape:M},t,D),s.setItemGraphicEl(D,P),o.add(P),P.ignore=L}}).update(function(D,I){var M=s.getItemModel(D),L=ap[u.type](s,D,M);if(L){if(g){var P=void 0;b.length===0?P=A(I):(P=b[I],P.useStyle(y.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),x[D]=P);var R=ap[u.type](s,D),U=bE(c,R,u);Ve(P,{shape:U},h,D)}var k=l.getItemGraphicEl(I);if(!s.hasValue(D)||!vE[u.type](L)){o.remove(k);return}var H=!1;d&&(H=cE[u.type](v,L),H&&o.remove(k));var W=k&&(k.type==="sector"&&m||k.type==="sausage"&&!m);if(W&&(k&&fn(k,t,I),k=null),k?Go(k):k=hE[u.type](t,s,D,L,c,h,f.model,!0,m),p&&(k.forceLabelAnimation=!0),T){var q=k.getTextContent();if(q){var $=Zo(q);$.prevValue!=null&&($.prevValue=$.value)}}else mE(k,s,D,M,L,t,c,u.type==="polar");S?k.attr({shape:L}):p?pE(p,h,k,L,D,c,!0,T):Ve(k,{shape:L},t,D,null),s.setItemGraphicEl(D,k),k.ignore=H,o.add(k)}}).remove(function(D){var I=l.getItemGraphicEl(D);I&&fn(I,t,D)}).execute();var w=this._backgroundGroup||(this._backgroundGroup=new be);w.removeAll();for(var E=0;E<x.length;++E)w.add(x[E]);o.add(w),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(t,i,n){this._clear(),yE(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),yE(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&MA(t.coordinateSystem,!1,t),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,n){var a=this;if(i.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.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)}}},e.prototype._dataSort=function(t,i,n){var a=[];return t.each(t.mapDimension(i.dim),function(o,s){var l=n(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:B(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,n){for(var a=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(t.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,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(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,n,a){if(this._isOrderChangedWithinSameData(t,i,n)){var o=this._dataSort(t,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,i,n){var a=i.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){fn(a,t,ge(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Ni,e})(bt),cE={cartesian2d:function(r,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,a=r.y+r.height,o=ey(e.x,r.x),s=ty(e.x+e.width,n),l=ey(e.y,r.y),u=ty(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var n=ty(e.r,r.r),a=ey(e.r0,r.r0);e.r=n,e.r0=a;var o=n-a<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},hE={cartesian2d:function(r,e,t,i,n,a,o,s,l){var u=new xe({shape:O({},i),z2:1});if(u.__dataIndex=t,u.name="item",a){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,e,t,i,n,a,o,s,l){var u=!n&&l?Jg:Lr,f=new u({shape:i,z2:1});f.name="item";var c=xE(n);if(f.calculateTextPosition=uE(c,{isRoundCap:u===Jg}),a){var h=f.shape,p=n?"r":"endAngle",d={};h[p]=n?i.r0:i.startAngle,d[p]=i[p],(s?Ve:pt)(f,{shape:d},a)}return f}};function hz(r,e){var t=r.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function pE(r,e,t,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Ve:pt)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Ve:pt)(t,{shape:u},f,n)}function dE(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var pz=["x","y","width","height"],dz=["cx","cy","r","startAngle","endAngle"],vE={cartesian2d:function(r){return!dE(r,pz)},polar:function(r){return!dE(r,dz)}},ap={cartesian2d:function(r,e,t){var i=r.getItemLayout(e);if(!i)return null;var n=t?mz(t,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(r,e,t){var i=r.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function vz(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function xE(r){return(function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}})(r)}function mE(r,e,t,i,n,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var f=r.shape,c=Ka(i.getModel("itemStyle"),f,!0);O(f,c),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=i.getShallow("cursor");h&&r.attr("cursor",h);var p=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?xz(n,a.coordinateSystem):bz(n,a.coordinateSystem),d=si(i);oi(r,d,{labelFetcher:a,labelDataIndex:t,defaultText:_s(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var v=r.getTextContent();if(s&&v){var m=i.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,fE(r,m==="outside"?p:m,xE(o),i.get(["label","rotate"]))}jS(v,d,a.getRawValue(t),function(y){return Xh(e,y)});var g=i.getModel(["emphasis"]);Ci(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),da(r,i),vz(n)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function mz(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var gz=(function(){function r(){}return r})(),gE=(function(r){F(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new gz},e.prototype.buildPath=function(t,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(ae);function yE(r,e,t,i){var n=r.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=i?kf(r):0;if(u){var c=new gE({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var h=new gE({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(n.getVisual("style")),h.style.stroke=null,ge(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",_E),h.on("mousemove",_E)),t&&t.push(h)}var _E=Fl(function(r){var e=this,t=yz(e,r.offsetX,r.offsetY);ge(e).dataIndex=t>=0?t:null},30,!1);function yz(r,e,t){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=a.length/3;f<c;f++){var h=f*3;if(l[i]=u,l[n]=a[h+2],s[i]=a[h+i],s[n]=a[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function bE(r,e,t){if(ep(t,"cartesian2d")){var i=e,n=t.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=t.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function _z(r,e,t){var i=r.type==="polar"?Lr:xe;return new i({shape:bE(e,t,r),silent:!0,z2:0})}function xz(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function bz(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}var SE=cz;function ry(r){r.registerChartView(SE),r.registerSeriesModel(lE),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,iE(Ni)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nE(Ni)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,uu(Ni)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),oE(r)}function iy(r){return{seriesType:r,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=e.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function ny(r,e,t){e=N(e)&&{coordDimensions:e}||O({encodeDefine:r.getEncode()},e);var i=r.getSource(),n=eu(i,e).dimensions,a=new Ch(n,r);return a.initData(i,t),a}var Sz=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},r})(),TE=Sz;var Ur="pie",Tz=ee(),CE=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new TE(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return ny(this,{coordDimensions:["value"],encodeDefaulter:Te(ST,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),n=Tz(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=Dx(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ll(t,"labelLine",["show"]);var i=t.labelLine,n=t.emphasis.labelLine;i.show=i.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series."+Ur,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Nt);hT({fullType:CE.type,getCoord2:function(r){return r.getShallow("center")}});var wE=CE;var Cz=Math.PI/180;function AE(r,e,t,i,n,a,o,s,l,u){if(r.length<2)return;function f(v){for(var m=v.rB,g=m*m,y=0;y<v.list.length;y++){var _=v.list[y],x=Math.abs(_.label.y-t),b=i+_.len,S=b*b,T=Math.sqrt(Math.abs((1-x*x/g)*S)),A=e+(T+_.len2)*n,w=A-_.label.x,E=_.targetTextWidth-w*n;DE(_,E,!0),_.label.x=A}}function c(v){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var _=v[y],x=_.label.y>t?g:m,b=Math.abs(_.label.y-t);if(b>=x.maxY){var S=_.label.x-e-_.len2*n,T=i+_.len,A=Math.abs(S)<T?Math.sqrt(b*b/(1-S*S/T/T)):T;x.rB=A,x.maxY=b}x.list.push(_)}f(m),f(g)}for(var h=r.length,p=0;p<h;p++)if(r[p].position==="outer"&&r[p].labelAlignTo==="labelLine"){var d=r[p].label.x-u;r[p].linePoints[1][0]+=d,r[p].label.x=u}_A(r,1,l,l+o)&&c(r)}function wz(r,e,t,i,n,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var p=r[h].label;ay(r[h])||(p.x<e?(f=Math.min(f,p.x),l.push(r[h])):(c=Math.max(c,p.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!ay(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var p=d.label,v=d.linePoints,m=void 0;d.labelAlignTo==="edge"?p.x<e?m=v[2][0]-d.labelDistance-o-d.edgeDistance:m=o+n-d.edgeDistance-v[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?p.x<e?m=f-o-d.bleedMargin:m=o+n-c-d.bleedMargin:p.x<e?m=p.x-o-d.bleedMargin:m=o+n-p.x-d.bleedMargin,d.targetTextWidth=m,DE(d,m,!1)}}AE(u,e,t,i,1,n,a,o,s,c),AE(l,e,t,i,-1,n,a,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!ay(d)&&d.linePoints){var p=d.label,v=d.linePoints,g=d.labelAlignTo==="edge",y=p.style.padding,_=y?y[1]+y[3]:0,x=p.style.backgroundColor?0:_,b=d.rect.width+x,S=v[1][0]-v[2][0];g?p.x<e?v[2][0]=o+d.edgeDistance+b+d.labelDistance:v[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(p.x<e?v[2][0]=p.x+d.labelDistance:v[2][0]=p.x-d.labelDistance,v[1][0]=v[2][0]+S),v[1][1]=v[2][1]=p.y}}}function DE(r,e,t){if(r.labelStyleWidth==null){var i=r.label,n=i.style,a=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var h=e-l,p=e<f?h:t?h>r.unconstrainedWidth?null:h:null;i.setStyle("width",p)}ME(a,i)}}}function ME(r,e){EE.rect=r,zg(EE,e,Az)}var Az={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},EE={};function ay(r){return r.position==="center"}function oy(r){var e=r.getData(),t=[],i,n,a=!1,o=(r.get("minShowLabelAngle")||0)*Cz,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function p(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}e.each(function(S){var T=e.getItemGraphicEl(S),A=T.shape,w=T.getTextContent(),E=T.getTextGuideLine(),D=e.getItemModel(S),I=D.getModel("label"),M=I.get("position")||D.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),P=I.get("alignTo"),R=we(I.get("edgeDistance"),u),U=I.get("bleedMargin");U==null&&(U=Math.min(u,h)>200?10:2);var k=D.getModel("labelLine"),H=k.get("length");H=we(H,u);var W=k.get("length2");if(W=we(W,u),Math.abs(A.endAngle-A.startAngle)<o){C(w.states,p),w.ignore=!0,E&&(C(E.states,p),E.ignore=!0);return}if(d(w)){var q=(A.startAngle+A.endAngle)/2,$=Math.cos(q),J=Math.sin(q),K,he,ye,Ge;i=A.cx,n=A.cy;var Fe=M==="inside"||M==="inner";if(M==="center")K=A.cx,he=A.cy,Ge="center";else{var Se=(Fe?(A.r+A.r0)/2*$:A.r*$)+i,Le=(Fe?(A.r+A.r0)/2*J:A.r*J)+n;if(K=Se+$*3,he=Le+J*3,!Fe){var ce=Se+$*(H+l-A.r),_e=Le+J*(H+l-A.r),Ft=ce+($<0?-1:1)*W,Ye=_e;P==="edge"?K=$<0?f+R:f+u-R:K=Ft+($<0?-L:L),he=Ye,ye=[[Se,Le],[ce,_e],[Ft,Ye]]}Ge=Fe?"center":P==="edge"?$>0?"right":"left":$>0?"left":"right"}var br=Math.PI,Ut=0,Sr=I.get("rotate");if(fe(Sr))Ut=Sr*(br/180);else if(M==="center")Ut=0;else if(Sr==="radial"||Sr===!0){var ro=$<0?-q+br:-q;Ut=ro}else if(Sr==="tangential"||Sr==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var Tr=Math.atan2($,J);Tr<0&&(Tr=br*2+Tr);var Uu=J>0;Uu&&Sr!=="tangential-noflip"&&(Tr=br+Tr),Ut=Tr-br}if(a=!!Ut,w.x=K,w.y=he,w.rotation=Ut,w.setStyle({verticalAlign:"middle"}),Fe){w.setStyle({align:Ge});var jp=w.states.select;jp&&(jp.x+=w.x,jp.y+=w.y)}else{var io=new re(0,0,0,0);ME(io,w),t.push({label:w,labelLine:E,position:M,len:H,len2:W,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new le($,J),linePoints:ye,textAlign:Ge,labelDistance:L,labelAlignTo:P,edgeDistance:R,bleedMargin:U,rect:io,unconstrainedWidth:io.width,labelStyleWidth:w.style.width})}T.setTextConfig({inside:Fe})}}),!a&&r.get("avoidLabelOverlap")&&wz(t,i,n,l,u,h,f,c);for(var v=0;v<t.length;v++){var m=t[v],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(C(g.states,p),g.ignore=!0);var x=g.states.select;x&&(x.x+=g.x,x.y+=g.y)}if(y){var b=m.linePoints;_||!b?(C(y.states,p),y.ignore=!0):(uA(b,m.minTurnAngle),fA(b,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new le(b[0][0],b[0][1])})}}}var IE=Math.PI*2,op=Math.PI/180,LE=jx(Ur,Ez);function Ez(r,e){r.eachSeriesByType(Ur,function(t){var i=t.getData(),n=i.mapDimension("value"),a=mT(t,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-t.get("startAngle")*op,h=t.get("endAngle"),p=t.get("padAngle")*op;h=h==="auto"?c-IE:-h*op;var d=t.get("minAngle")*op,v=d+p,m=0;i.each(n,function(R){!isNaN(R)&&m++});var g=i.getSum(n),y=Math.PI/(g||m)*2,_=t.get("clockwise"),x=t.get("roseType"),b=t.get("stillShowZeroSum"),S=i.getDataExtent(n);S[0]=0;var T=_?1:-1,A=[c,h],w=T*p/2;Tv(A,!_),c=A[0],h=A[1];var E=sy(t);E.startAngle=c,E.endAngle=h,E.clockwise=_,E.cx=o,E.cy=s,E.r=l,E.r0=u;var D=Math.abs(h-c),I=D,M=0,L=c;if(i.setLayout({viewRect:f,r:l}),i.each(n,function(R,U){var k;if(isNaN(R)){i.setItemLayout(U,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:x?NaN:l});return}x!=="area"?k=g===0&&b?y:R*y:k=D/m,k<v?(k=v,I-=v):M+=R;var H=L+T*k,W=0,q=0;p>k?(W=L+T*k/2,q=W):(W=L+w,q=H-w),i.setItemLayout(U,{angle:k,startAngle:W,endAngle:q,clockwise:_,cx:o,cy:s,r0:u,r:x?Ne(R,S,[u,l]):l}),L=H}),I<IE&&m)if(I<=.001){var P=D/m;i.each(n,function(R,U){if(!isNaN(R)){var k=i.getItemLayout(U);k.angle=P;var H=0,W=0;P<p?(H=c+T*(U+1/2)*P,W=H):(H=c+T*U*P+w,W=c+T*(U+1)*P-w),k.startAngle=H,k.endAngle=W}})}else y=I/M,L=c,i.each(n,function(R,U){if(!isNaN(R)){var k=i.getItemLayout(U),H=k.angle===v?v:R*y,W=0,q=0;H<p?(W=L+T*H/2,q=W):(W=L+w,q=L+T*H-w),k.startAngle=W,k.endAngle=q,L+=T*H}})})}var sy=ee();var Dz=(function(r){F(e,r);function e(t,i,n){var a=r.call(this)||this;a.z2=2;var o=new Me;return a.setTextContent(o),a.updateData(t,i,n,!0),a}return e.prototype.updateData=function(t,i,n,a){var o=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),f=t.getItemLayout(i),c=O(Ka(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(pt(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,pt(o,{shape:{r:f.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),pt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Ve(o,{shape:{endAngle:f.endAngle}},s,i))}else Go(o),Ve(o,{shape:c},s,i);o.useStyle(t.getItemVisual(i,"style")),da(o,l);var p=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),v=Math.cos(p)*d,m=Math.sin(p)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,i),o.ensureState("emphasis").shape=O({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ka(u.getModel("itemStyle"),f)),O(o.ensureState("select"),{x:v,y:m,shape:Ka(l.getModel(["select","itemStyle"]),f)}),O(o.ensureState("blur"),{shape:Ka(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&O(y.ensureState("select"),{x:v,y:m}),O(_.ensureState("select"),{x:v,y:m}),Ci(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;oi(a,si(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||i.getName(n)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new wi,this.setTextGuideLine(p)),cA(this,hA(o),{stroke:u,opacity:Qt(s.get(["lineStyle","opacity"]),f,1)})}},e})(Lr),Mz=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ur,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,n,a){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=sy(t),p=new Lr({shape:te(h)});p.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}o.diff(s).add(function(d){var v=new Dz(o,d,u);o.setItemGraphicEl(d,v),l.add(v)}).update(function(d,v){var m=s.getItemGraphicEl(v);m.updateData(o,d,u),m.off("click"),l.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var v=s.getItemGraphicEl(d);fn(v,t,d)}).execute(),oy(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=Ur,e})(bt),PE=Mz;function ly(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(fe(o)&&!isNaN(o)&&o<0)})}}}function uy(r){r.registerChartView(PE),r.registerSeriesModel(wE),FC(Ur,r.registerAction),r.registerLayout(LE),r.registerProcessor(iy(Ur)),r.registerProcessor(ly(Ur))}var Iz=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return wn(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,i,n){return n.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:j.color.primary}},universalTransition:{divideShape:"clone"}},e})(Nt),OE=Iz;var RE=4,Lz=(function(){function r(){}return r})(),Pz=(function(r){F(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new Lz},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,i){var n=i.points,a=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]<RE,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<n.length;){var h=n[c++],p=n[c++];isNaN(h)||isNaN(p)||f&&!f.contain(h,p)||(s.x=h-a[0]/2,s.y=p-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,i=t.points,n=t.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,i){for(var n=this.shape,a=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,h=a[f+1]-l/2;if(t>=c&&i>=h&&t<=c+s&&i<=h+l)return u}return-1},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(t=n[0],i=n[1],a.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,n=i.points,a=i.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<n.length;){var p=n[h++],d=n[h++];l=Math.min(p,l),f=Math.max(p,f),u=Math.min(d,u),c=Math.max(d,c)}t=this._rect=new re(l-o/2,u-s/2,f-l+o,c-u+s)}return t},e})(ae),Oz=(function(){function r(){this.group=new be}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(t){var i=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;i=new Float32Array(i.buffer,o,a)}n.setShape("points",i),n.reset(),n.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,i,n){var a=this._newAdded[0],o=t.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=i,f.setShape({points:o}),this._setCommon(f,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new Pz({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,i){var n=t.hostModel;i=i||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=i.clipShape||null,e.symbolProxy=Et(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<RE;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ge(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),NE=Oz;var Rz=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,fy(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,n){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,n){this._symbolDraw.incrementalUpdate(t,i.getData(),kf(i),fy(i)),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,n){var a=t.getData();if(this.group.dirty(),this._finished){var o=ja("").reset(t,i,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(fy(t))}else return{update:!0}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new NE:new Kh,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(bt);function fy(r){return{clipShape:IA(r)}}var kE=Rz;var sp=(function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",je).models[0]},e.type="cartesian2dAxis",e})(Ce);It(sp,E1);var BE={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:"auto",onZeroAxisIndex:null,lineStyle:{color:j.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:j.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:j.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[j.color.backgroundTint,j.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:j.color.neutral00,borderColor:j.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Nz=de({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},BE),cy=de({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:j.color.axisMinorSplitLine,width:1}}},BE),kz=de({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},cy),Bz=ie({logBase:10},cy),zE={category:Nz,value:cy,time:kz,log:Bz};function lp(r,e,t,i){C(Rh,function(n,a){var o=de(de({},zE[a],!0),i,!0),s=(function(l){F(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=mn(this),p=h?mr(f):{},d=c.getTheme();de(f,d.get(a+"Axis")),de(f,this.getDefaultOption()),f.type=FE(f),h&&ar(f,p,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=tu.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Za();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",FE)}function FE(r){return r.type||(r.data?"category":"value")}var zz=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return B(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ke(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),UE=zz;var du=["x","y"];function VE(r){return(r.type==="interval"||r.type==="time")&&!wa(r)}var Fz=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=_r,t.dimensions=du,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!VE(t)||!VE(i))){var n=Ga(t,null),a=Ga(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-n[0]*f,p=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,p];this._invTransform=Gr([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var n=this.dataToPoint(t),a=this.dataToPoint(i),o=this.getArea(),s=new re(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,n){n=n||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return gt(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(t,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(t[0]),u=a.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i,n){if(n=n||[],this._invTransform)return gt(n,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(t[0]),i),n[1]=o.coordToData(o.toLocalCoord(t[1]),i),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(i[0],i[1])-a+t,l=Math.max(n[0],n[1])-o+t;return new re(a,o,s,l)},e})(UE),HE=Fz;function GE(r,e){var t=r.scale,i=r.model,n=Gh(t,i,i.ecModel,r,null),a=ui(t),o=ui(e)?e.intervalStub:e,s=a?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,h,p,d;if(c===1)h=p=0,d=1;else if(c===2){var v=De(u[0].value-u[1].value),m=De(u[1].value-u[2].value);h=p=0,v===m?d=2:(d=1,v<m?h=v/m:p=m/v)}else{var g=o.getConfig().interval;h=(1-(u[0].value-f[0].value)/g)%1,p=(1-(f[c].value-u[c].value)/g)%1,d=c-(h?1:0)-(p?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],b=t.getExtent(),S=s.getExtent(),T=Mh(S,x),A,w,E,D,I,M;function L($){for(var J=50,K=0;K<J&&!$();K++)E=a?E*pe(l,2):i1(E),D=Br(E)}function P(){A=me(M-E*h,D)}function R(){w=me(I+E*p,D)}function U(){M=h?me(A+E*h,D):A}function k(){I=p?me(w-E*p,D):w}if(x[0]&&x[1]){A=T[0],w=T[1],E=(w-A)/(d+h+p);var H=r.getExtent(),W=De(H[1]-H[0]);D=Pf([w,A],W,.5/d),U(),k(),tt(D)&&(E=me(E,D))}else{var q=T[1]-T[0];E=a?pe(Of(q),1):ta(q/d,Kd),D=Br(E),x[0]?(A=T[0],L(function(){if(U(),I=me(M+E*d,D),R(),w>=T[1])return!0})):x[1]?(w=T[1],L(function(){if(k(),M=me(I-E*d,D),P(),A<=T[0])return!0})):L(function(){M=me(Zr(T[0]/E)*E,D),I=me(fr(T[1]/E)*E,D);var $=er((I-M)/E);if($<=d){var J=d-$,K=void 0,he=n.incl0||a;if(he&&T[0]===0)K=[0,J];else if(he&&T[1]===0)K=[J,0];else{var ye=fr(J/2);K=J%2===0?[ye,ye]:A+w<T[0]+T[1]?[ye,ye+1]:[ye+1,ye]}if(M=me(M-E*K[0],D),I=me(I+E*K[1],D),P(),R(),A<=T[0]&&w>=T[1])return!0}})}Bh(t,x,S,[A,w],b,{interval:E,intervalCount:d,intervalPrecision:D,niceExtent:[M,I]})}var YE=[[3,1],[0,2]],Uz=(function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=du,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;C(this._axesList,function(o){Hh(o,V1);var s=o.scale;Xe(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=ne(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Rg(f)}C(l,function(c){Hz(c,c.__alignTo)?Rg(c):GE(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};C(i.x,function(o){WE(i,"y",o,a)}),C(i.y,function(o){WE(i,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var n=Ma(e,t),a=this._rect=vr(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(hy(o,a),!i){var u=Yz(a,s,o,l,t),f=void 0;if(l)qE?(qE(this._axesList,a),hy(o,a)):f=KE(a.clone(),"axisLabel",null,a,o,u,n);else{var c=Wz(e,a,n),h=c.outerBoundsRect,p=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=KE(h,p,d,a,o,u,n))}$E(a,o,qt.determine,null,f,n),C(this._coordsList,function(v){v.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}Y(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===t)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,i){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(e,t,i){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",je).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",je).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,ue(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(f,c){C(s.y,function(h,p){var d="x"+c+"y"+p,v=new HE(d);v.master=n,v.model=e,n._coordsMap[d]=v,n._coordsList.push(v),v.addAxis(f),v.addAxis(h)})}),ZE(s.x),ZE(s.y);function u(f){return function(c,h){if(Vz(c,e)){var p=c.get("position");f==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var d=_1(c),v=new zA(f,x1(c,d,!0),[0,0],d,p);v.onBand=zh(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=h,a._axesList.push(v),s[f][h]=v,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],i=[];return C(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);ue(t,a)<0&&t.push(a),ue(i,o)<0&&i.push(o)}),{baseAxes:t,otherAxes:i}},r.create=function(e,t){var i=[];return e.eachComponent("grid",function(n,a){var o=new r(n,e,t);o.name="grid_"+a,o.resize(n,t,!0),n.coordinateSystem=o,i.push(o),C(o._axesList,function(s){W1(s,r.dimIdxMap)})}),e.eachSeries(function(n){var a,o;dT({targetModel:n,coordSysType:_r,coordSysProvider:s});function s(){var l=ZA(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),h=c.coordinateSystem;return h.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Pg(a,n,_r),Pg(o,n,_r))},this),i},r.dimensions=du,r.dimIdxMap=ql(du),r})();function Vz(r,e){return r.getCoordSysModel()===e}function WE(r,e,t,i){t.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)jE(s,n[l])&&(a=n[l]);else for(var u in n)if(Pe(n,u)&&jE(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function jE(r,e){if(!e)return!1;var t=e.scale,i=b1(t,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==Nh;return n&&r==="auto"&&T1(e)&&(n=!1),n}function ZE(r){for(var e=ne(r),t,i=[],n=e.length-1;n>=0;n--){var a=r[+e[n]];Eh(a.scale)&&Eg(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):t=a)}t||(t=i.pop()),t&&C(i,function(o){o.__alignTo=t})}function Hz(r,e){return wa(r.scale)||wa(e.scale)||e.scale.getTicks().length<2}function Gz(r,e){var t=r.getExtent(),i=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return i-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function hy(r,e){C(r.x,function(t){return XE(t,e.x,e.width)}),C(r.y,function(t){return XE(t,e.y,e.height)})}function XE(r,e,t){var i=[0,t],n=r.inverse?1:0;r.setExtent(i[n],i[1-n]),Gz(r,e)}var qE;function KE(r,e,t,i,n,a,o){$E(i,n,qt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Q_(s,function(h){return h>0})==null;return Yo(i,s,!0,!0,t),hy(n,i),l;function u(h){C(n[ai[h]],function(p){if(Wa(p.model)){var d=a.ensureRecord(p.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=p.scale.normalize(Oi(p.scale,On(g.label).labelInfo.tick));y=h===1?1-y:y,f(g.rect,h,y),f(g.rect,1-h,NaN)}var _=d.nameLayout;if(_){var y=An(d.nameLocation)?.5:NaN;f(_.rect,h,y),f(_.rect,1-h,NaN)}}})}function f(h,p,d){var v=r[ai[p]]-h[ai[p]],m=h[cn[p]]+h[ai[p]]-(r[cn[p]]+r[ai[p]]);v=c(v,1-d),m=c(m,d);var g=YE[p][0],y=YE[p][1];s[g]=pe(s[g],v),s[y]=pe(s[y],m)}function c(h,p){return h>0&&!Vi(p)&&p>1e-4&&(h/=p),h}}function Yz(r,e,t,i,n){var a=new Zg(jz);return C(t,function(o){return C(o,function(s){if(Wa(s.model)){var l=!i;s.axisBuilder=XA(r,e,s.model,n,a,l)}})}),a}function $E(r,e,t,i,n,a){var o=t===qt.determine;C(e,function(u){return C(u,function(f){Wa(f.model)&&(qA(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ai[1-u]]=r[cn[u]]<=a.refContainer[cn[u]]*.5?0:1-u===1?2:1}C(e,function(u,f){return C(u,function(c){Wa(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function Wz(r,e,t){var i,n=r.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=vr(r.get("outerBounds",!0)||$g,t.refContainer));var a=r.get("outerBoundsContain",!0),o;a==null||a==="auto"||ue(["all","axisLabel"],a)<0?o="all":o=a;var s=[Lf(G(r.get("outerBoundsClampWidth",!0),pu[0]),e.width),Lf(G(r.get("outerBoundsClampHeight",!0),pu[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var jz=function(r,e,t,i,n,a){var o=t.axis.dim==="x"?"y":"x";Xg(r,e,t,i,n,a),An(r.nameLocation)||C(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&qg(s.labelInfoList,s.dirVec,i,n)})},QE=Uz;function JE(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Zz(t,r,e),t.seriesInvolved&&qz(t,r),t}function Zz(r,e,t){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];C(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=bs(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(C(s.getAxes(),Te(v,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var h=c.get("trigger")==="axis",p=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||p)&&C(d.baseAxes,Te(v,p?"cross":!0,h)),p&&C(d.otherAxes,Te(v,"cross",!1))}function v(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!m&&!dy(_))){g==null&&(g=_.get("triggerTooltip")),_=m?Xz(y,c,n,e,m,g):_;var b=_.get("snap"),S=_.get("triggerEmphasis"),T=bs(y.model),A=g||b||y.type==="category",w=r.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:S,involveSeries:A,snap:b,useHandle:dy(_),seriesModels:[],linkGroup:null};u[T]=w,r.seriesInvolved=r.seriesInvolved||A;var E=Kz(a,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[T]=w,D.mapper=a[E].mapper,w.linkGroup=D}}}})}function Xz(r,e,t,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(h){l[h]=te(o.get(h))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&ie(u,c.textStyle)}}return r.model.getModel("axisPointer",new Ie(l,t,i))}function qz(r,e){e.eachSeries(function(t){var i=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||C(r.coordSysAxesInfo[bs(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function Kz(r,e){for(var t=e.model,i=e.dim,n=0;n<r.length;n++){var a=r[n]||{};if(py(a[i+"AxisId"],t.id)||py(a[i+"AxisIndex"],t.componentIndex)||py(a[i+"AxisName"],t.name))return n}}function py(r,e){return r==="all"||N(r)&&ue(r,e)>=0||r===e}function eD(r){var e=up(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,n=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=dy(t);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function up(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[bs(r)]}function tD(r){var e=up(r);return e&&e.axisPointerModel}function dy(r){return!!r.get(["handle","show"])}function bs(r){return r.type+"||"+r.id}var rD={},$z=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){this.axisPointerClass&&eD(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,i,n,a){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=tD(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){rD[t]=i},e.getAxisPointerClass=function(t){return t&&rD[t]},e.type="axis",e})(xt),fp=$z;var my=ee();function iD(r,e,t,i){var n=t.axis;if(!n.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=my(r).splitAreaColors,h=V(),p=0;if(c)for(var d=0;d<u.length;d++){var v=c.get(u[d].tickValue);if(v!=null){p=(v+(f-1)*d)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=N(s)?s:[s];for(var d=1;d<u.length;d++){var y=n.toGlobalCoord(u[d].coord),_=void 0,x=void 0,b=void 0,S=void 0;n.isHorizontal()?(_=m,x=l.y,b=y-_,S=l.height,m=_+b):(_=l.x,x=m,b=l.width,S=y-x,m=x+S);var T=u[d-1].tickValue;T!=null&&h.set(T,p),e.add(new xe({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:b,height:S},style:ie({fill:s[p]},g),autoBatch:!0,silent:!0})),p=(p+1)%f}my(r).splitAreaColors=h}}}function nD(r){my(r).splitAreaColors=null}var Qz=["splitArea","splitLine","minorSplitLine","breakArea"],aD=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new be,this.group.add(this._axisGroup),!!Wa(t)){this._axisGroup.add(t.axis.axisBuilder.group),C(Qz,function(l){t.get([l,"show"])&&Jz[l](this,this._axisGroup,t,t.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||om(o,this._axisGroup,t),r.prototype.render.call(this,t,i,n,a)}},e.prototype.remove=function(){nD(this)},e.type="cartesianAxis",e})(fp),Jz={splitLine:function(r,e,t,i,n){var a=t.axis;if(!a.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=N(l)?l:[l];for(var c=i.coordinateSystem.getRect(),h=a.isHorizontal(),p=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var x=d[y].tickValue;h?(v[0]=_,v[1]=c.y,m[0]=_,m[1]=c.y+c.height):(v[0]=c.x,v[1]=_,m[0]=c.x+c.width,m[1]=_);var b=p++%l.length,S=new Pr({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:ie({stroke:l[b]},g),silent:!0});_a(S.shape,g.lineWidth),e.add(S)}}}},minorSplitLine:function(r,e,t,i,n){var a=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],h=[],p=s.getLineStyle(),d=0;d<f.length;d++)for(var v=0;v<f[d].length;v++){var m=a.toGlobalCoord(f[d][v].coord);u?(c[0]=m,c[1]=l.y,h[0]=m,h[1]=l.y+l.height):(c[0]=l.x,c[1]=m,h[0]=l.x+l.width,h[1]=m);var g=new Pr({anid:"minor_line_"+f[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:p,silent:!0});_a(g.shape,p.lineWidth),e.add(g)}},splitArea:function(r,e,t,i,n){iD(r,e,t,i)},breakArea:function(r,e,t,i,n){var a=Za(),o=t.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,r,t,i.coordinateSystem.getRect(),n)}},gy=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(aD);var oD=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=gy.type,t}return e.type="yAxis",e})(aD);var eF=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new xe({shape:t.coordinateSystem.getRect(),style:ie({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(xt),sD={offset:0};function cp(r){r.registerComponentView(eF),r.registerComponentModel(tE),r.registerCoordinateSystem("cartesian2d",QE),lp(r,"x",sp,sD),lp(r,"y",sp,sD),r.registerComponentView(gy),r.registerComponentView(oD),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function yy(r){ft(cp),r.registerSeriesModel(OE),r.registerChartView(kE),r.registerLayout(ja("scatter"))}var tF=ee();function _y(r,e){return!!tF(r)[e]}Ii({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ee);var iF={axisPointer:1,tooltip:1,brush:1};function lD(r,e,t){var i=e.getComponentByElement(r.topTarget);if(!i||i===t||iF.hasOwnProperty(i.mainType))return!1;var n=i.coordinateSystem;if(!n||n.model===t)return!1;var a=hn(i),o=hn(t);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var nF=(function(r){F(e,r);function e(t){var i=r.call(this)||this;i._zr=t;var n=Q(i._mousedownHandler,i),a=Q(i._mousemoveHandler,i),o=Q(i._mouseupHandler,i),s=Q(i._mousewheelHandler,i),l=Q(i._pinchHandler,i);return i.enable=function(u,f){var c=f.zInfo,h=hn(c.component),p=h.z,d=h.zlevel,v={component:c.component,z:p,zlevel:d,z2:G(c.z2,-1/0)},m=O({},f.triggerInfo);this._opt=ie(O({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:v,triggerInfo:m,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(mu(t,"mousedown",n,v),mu(t,"mousemove",a,v),mu(t,"mouseup",o,v)),(u===!0||u==="scale"||u==="zoom")&&(mu(t,"mousewheel",s,v),mu(t,"pinch",l,v)))},i.disable=function(){this._enabled&&(this._enabled=!1,gu(t,"mousedown",n),gu(t,"mousemove",a),gu(t,"mouseup",o),gu(t,"mousewheel",s),gu(t,"pinch",l))},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,i,n){var a=this._opt,o=a.zInfoParsed;if(lD(t,a.api,o.component))return!1;var s=a.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,i,n)),u&&s.isInClip&&!s.isInClip(t,i,n)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,i,n,a){var o=t.target;if(!o&&this._checkPointer(t,i,n))return this._opt.cursorGrab;if(a)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(od(t)||vu(t))){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var n=t.offsetX,a=t.offsetY;this._checkPointer(t,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var i=this._zr;if(!(t.gestureEvent==="pinch"||_y(i,"globalPan")||vu(t))){var n=t.offsetX,a=t.offsetY;if(!this._dragging||!hp("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,n,a,!1);o&&i.setCursorStyle(o);return}i.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=n-s,f=a-l;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Hr(t.event),t.__ecRoamConsumed=!0,uD(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!vu(t)){var i=this._zr;if(!od(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&i.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!vu(t)){var i=hp("zoomOnMouseWheel",t,this._opt),n=hp("moveOnMouseWheel",t,this._opt),a=t.wheelDelta,o=Math.abs(a),s=t.offsetX,l=t.offsetY;if(!(a===0||!i&&!n)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(a),h=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(_y(this._zr,"globalPan")||vu(t))){var i=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,i,n,a,o){t._checkPointer(a,o.originX,o.originY)&&(Hr(a.event),a.__ecRoamConsumed=!0,uD(t,i,n,a,o))},e})(at);function vu(r){return r.__ecRoamConsumed}var aF=ee();function pp(r){var e=aF(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function mu(r,e,t,i){for(var n=pp(r),a=n.roam,o=a[e]=a[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-i.zlevel||l.z-i.z||l.z2-i.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:i}),oF(r,e)}function gu(r,e,t){for(var i=pp(r),n=i.roam[e]||[],a=0;a<n.length;a++)if(n[a].listener===t){n.splice(a,1),n.length||sF(r,e);return}}function oF(r,e){var t=pp(r);t.uniform[e]||r.on(e,t.uniform[e]=function(i){var n=t.roam[e];if(n)for(var a=0;a<n.length;a++)n[a].listener(i)})}function sF(r,e){var t=pp(r),i=t.uniform;i[e]&&(r.off(e,i[e]),i[e]=null)}function uD(r,e,t,i,n){n.isAvailableBehavior=Q(hp,null,t,i),r.trigger(e,n)}function hp(r,e,t){var i=t[r];return!r||i&&(!z(i)||e.event[i+"Key"])}var fD=nF;function ki(r,e,t,i,n,a){r=r||0;var o=yi(t[1],-t[0]);if(n!=null&&(n=Ss(n,[0,o])),a!=null&&(a=Math.max(a,n!=null?n:0)),i==="all"){var s=Math.abs(yi(e[1],-e[0]));s=Ss(s,[0,o]),n=a=Ss(s,[n,a]),i=0}e[0]=Ss(e[0],t),e[1]=Ss(e[1],t);var l=xy(e,i);e[i]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]=yi(f[0],u):f[1]=yi(f[1],-u),e[i]=Ss(e[i],f);var c;return c=xy(e,i),n!=null&&(c.sign!==l.sign||c.span<n)&&(e[1-i]=yi(e[i],l.sign*n)),c=xy(e,i),a!=null&&c.span>a&&(e[1-i]=yi(e[i],c.sign*a)),e}function xy(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ss(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var $a=ee(),cD=te,by=Q,lF=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,n){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,t,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new be,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var h=Te(hD,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}dD(s,t,!0),this._renderHandle(a)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var i=t.get("animation"),n=e.axis,a=n.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&zr(n).w>s)return!0;if(o){var l=up(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,n,a){},r.prototype.createPointerEl=function(e,t,i,n){var a=t.pointer;if(a){var o=$a(e).pointerEl=new it[a.type](cD(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,n){if(t.label){var a=$a(e).labelEl=new Me(cD(t.label));e.add(a),pD(a,n)}},r.prototype.updatePointerEl=function(e,t,i){var n=$a(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,i,n){var a=$a(e).labelEl;a&&(a.setStyle(t.label.style),i(a,{x:t.label.x,y:t.label.y}),pD(a,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=t.getModel("handle"),o=t.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=Ml(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Hr(u.event)},onmousedown:by(this._onHandleDragMove,this,0,0),drift:by(this._onHandleDragMove,this),ondragend:by(this._onHandleDragEnd,this)}),i.add(n)),dD(n,t,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");N(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,xn(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){hD(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Sy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Sy(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Sy(n)),$a(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Ba(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},r})();function hD(r,e,t,i){vD($a(t).lastProp,i)||($a(t).lastProp=i,e?Ve(t,i,r):(t.stopAnimation(),t.attr(i)))}function vD(r,e){if(Y(r)&&Y(e)){var t=!0;return C(e,function(i,n){t=t&&vD(r[n],i)}),!!t}else return r===e}function pD(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Sy(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function dD(r,e,t){var i=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=t)})}var mD=lF;function gD(r){var e=r.get("type"),t=r.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function uF(r,e,t,i,n){var a=t.get("value"),o=Ty(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=vn(s.get("padding")||0),u=s.getFont(),f=Af(o,u),c=n.position,h=f.width+l[1]+l[3],p=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var v=n.verticalAlign;v==="bottom"&&(c[1]-=p),v==="middle"&&(c[1]-=p/2),fF(c,h,p,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Rr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function fF(r,e,t,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Ty(r,e,t,i,n){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:ms(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),z(o)?a=o.replace("{value}",a):Z(o)&&(a=o(s))}return a}function Cy(r,e,t){var i=Lt();return co(i,i,t.rotation),Vs(i,i,t.position),xa([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function yD(r,e,t,i,n,a){var o=rp.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),uF(e,i,n,a,{position:Cy(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function _D(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function xD(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function bD(r,e,t){return zr(r,{fromStat:{sers:B(e,function(i){return t.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function SD(r,e,t){return[pe(Re(e[0],e[1]),r-t/2),Re(r+t/2,pe(e[0],e[1]))]}var cF=(function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=CD(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=gD(a),d=hF[u](s,h,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=p,t.graphicKey=d.type,t.pointer=d}var v=cu(l.getRect(),n);yD(i,t,v,n,a,o)},e.prototype.getHandleTransform=function(t,i,n){var a=cu(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Cy(i.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=CD(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=i[f],c[f]=Re(l[1],c[f]),c[f]=pe(l[0],c[f]);var h=(u[1]+u[0])/2,p=[h,h];p[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:p,tooltipOption:d[f]}},e})(mD);function CD(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var hF={line:function(r,e,t,i){var n=_D([e,i[0]],[e,i[1]],wD(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t,i,n,a){var o=bD(r,n,a),s=i[1]-i[0],l=SD(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:xD([u,i[0]],[f-u,s],wD(r))}}};function wD(r){return r.dim==="x"?0:1}var AD=cF;var pF=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:j.color.border,width:1,type:"dashed"},shadowStyle:{color:j.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:j.color.neutral00,padding:[5,7,5,7],backgroundColor:j.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:j.color.accent40,throttle:40}},e})(Ce),ED=pF;var Bi=ee(),dF=C;function dp(r,e,t){if(!se.node){var i=e.getZr();Bi(i).records||(Bi(i).records={}),vF(i,e);var n=Bi(i).records[r]||(Bi(i).records[r]={});n.handler=t}}function vF(r,e){if(Bi(r).initialized)return;Bi(r).initialized=!0,t("click",Te(wy,"click")),t("mousemove",Te(wy,"mousemove")),t("mousewheel",Te(wy,"mousewheel")),t("globalout",gF);function t(i,n){r.on(i,function(a){var o=yF(e);dF(Bi(r).records,function(s){s&&n(s,a,o.dispatchAction)}),mF(o.pendings,e)})}}function mF(r,e){var t=r.showTip.length,i=r.hideTip.length,n;t?n=r.showTip[t-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function gF(r,e,t){r.handler("leave",null,t)}function wy(r,e,t,i){e.handler(r,t,i)}function yF(r){var e={showTip:[],hideTip:[]},t=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=t,r.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function yu(r,e){if(!se.node){var t=e.getZr(),i=(Bi(t).records||{})[r];i&&(Bi(t).records[r]=null)}}var _F=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=i.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";dp("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,i){yu("axisPointer",i)},e.prototype.dispose=function(t,i){yu("axisPointer",i)},e.type="axisPointer",e})(xt),MD=_F;function _u(r,e){var t=[],i=r.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=cr(a,r);if(o==null||o<0||N(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,p=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),v=[];v[p]=a.get(d,o),v[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(v)||[]}else t=l.dataToPoint(a.getValues(B(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var ID=ee();function Ay(r,e,t){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||Q(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){vp(n)&&(n=_u({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=vp(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||vp(n),h={},p={},d={list:[],map:{}},v={showPointer:Te(bF,p),showTooltip:Te(SF,d)};C(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);C(s.coordSysAxesInfo[y],function(x,b){var S=x.axis,T=AF(u,x);if(!c&&_&&(!u||T)){var A=T&&T.value;A==null&&!l&&(A=S.pointToData(n)),A!=null&&LD(x,A,v,!1,h)}})});var m={};return C(f,function(g,y){var _=g.linkGroup;_&&!p[y]&&C(_.axesInfo,function(x,b){var S=p[b];if(x!==g&&S){var T=S.value;_.mapper&&(T=g.axis.scale.parse(_.mapper(T,PD(x),PD(g)))),m[g.key]=T}})}),C(m,function(g,y){LD(f[y],g,v,!0,h)}),TF(p,f,h),CF(d,n,r,o),wF(f,o,t),h}}function LD(r,e,t,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=xF(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&O(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function xF(r,e){var t=e.axis,i=t.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,h;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(f,r,t);h=p.dataIndices,c=p.nestestValue}else{if(h=l.indicesOfNearest(i,f[0],r,t.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(tt(c)){var d=r-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,n=c,a.length=0),C(h,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function bF(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function SF(r,e,t,i){var n=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=bs(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim: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 TF(r,e,t){var i=t.axesInfo=[];C(e,function(n,a){var o=n.axisPointerModel.option,s=r[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 CF(r,e,t,i){if(vp(e)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function wF(r,e,t){var i=t.getZr(),n="axisPointerLastHighlights",a=ID(i)[n]||{},o=ID(i)[n]={};C(r,function(f,c){var h=f.axisPointerModel.option;h.status==="show"&&f.triggerEmphasis&&C(h.seriesDataIndices,function(p){o[p.seriesIndex+"|"+p.dataIndex]=p})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}C(a,function(f,c){!o[c]&&l.push(u(f))}),C(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function AF(r,e){for(var t=0;t<(r||[]).length;t++){var i=r[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function PD(r){var e=r.axis.model,t={},i=t.axisDim=r.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function vp(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function mp(r){fp.registerAxisPointerClass("CartesianAxisPointer",AD),r.registerComponentModel(ED),r.registerComponentView(MD),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!N(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=JE(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ay)}function Ey(r){ft(cp),ft(mp)}var Dy=["x","y","radius","angle","single"],EF=ee(),DF=["cartesian2d","polar","singleAxis"];function OD(r){var e=r.get("coordinateSystem");return ue(DF,e)>=0}function xr(r){return r+"Axis"}function RD(r,e){var t=V(),i=[],n=V();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!n.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){n.set(f.uid,!0),i.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,p){var d=t.get(h);d&&d[p]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(t.get(c)||t.set(c,[]))[h]=!0})}return i}function gp(r){var e=r.ecModel,t={infoList:[],infoMap:V()};return r.eachTargetAxis(function(i,n){var a=e.getComponent(xr(i),n);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}function ND(r){var e=EF(sh(r));return e.axisProxyMap||(e.axisProxyMap=V())}function Ts(r){if(r)return ND(r.ecModel).get(r.uid)}function kD(r,e){ND(r.ecModel).set(r.uid,e)}function yp(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?Ts(t.model):null}var My=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),MF=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,n){var a=BD(t);this.settledOption=a,this.mergeDefaultAndTheme(t,n),this._doInit(a)},e.prototype.mergeOption=function(t){var i=BD(t);de(this.option,t,!0),de(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;C([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(i[a[0]]=n[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=V(),n=this._fillSpecifiedTargetAxis(i);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return C(Dy,function(n){var a=this.getReferringComponents(xr(n),zx);if(a.specified){i=!0;var o=new My;C(a.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var n=this.ecModel,a=!0;if(a){var o=i==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new My;if(h.add(c.componentIndex),t.set(f,h),a=!1,f==="x"||f==="y"){var p=c.getReferringComponents("grid",je).models[0];p&&C(u,function(d){c.componentIndex!==d.componentIndex&&p===d.getReferringComponents("grid",je).models[0]&&h.add(d.componentIndex)})}}}a&&C(Dy,function(u){if(a){var f=n.findComponents({mainType:xr(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new My;c.add(f[0].componentIndex),t.set(u,c),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,n=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":n?i[o]=n[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,n){t==null&&(t=this.ecModel.getComponent(xr(i),n))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(n,a){C(n.indexList,function(o){t.call(i,a,o)})})},e.prototype.getAxisProxy=function(t,i){return Ts(this.getAxisModel(t,i))},e.prototype.getAxisModel=function(t,i){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[i])return this.ecModel.getComponent(xr(t),i)},e.prototype.setRawRange=function(t){var i=this.option,n=this.settledOption;C([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(i[a[0]]=n[a[0]]=t[a[0]],i[a[1]]=n[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;C(["start","startValue","end","endValue"],function(n){i[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(t,i).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return Ts(t);for(var i,n=this._targetAxisInfoMap.keys(),a=0;a<n.length;a++)for(var o=n[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(Ce);function BD(r){var e={};return C(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var Cs=MF;var IF=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){this.dataZoomModel=t,this.ecModel=i,this.api=n},e.type="dataZoom",e})(xt),_p=IF;var LF=(function(){function r(e,t,i,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=i}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getWindow=function(){return te(this._window)},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(OD(t)){var i=xr(this._dimName),n=t.getReferringComponents(i,je).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return te(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._extent,i=this.getAxisModel().axis,n=i.scale,a=this._dataZoomModel,o=a.getRangePropMode(),s=[0,100],l=[],u=[],f,c=[!1,!1];C(["start","end"],function(_,x){var b=e[_],S=e[_+"Value"];o[x]==="percent"?(b==null&&(b=s[x]),S=Ne(b,s,t),c[x]=!0):(f=!0,S==null?S=t[x]:(S=n.parse(S),n.sanitize&&(S=n.sanitize(S,t))),b=Ne(S,t,s)),u[x]=S==null||isNaN(S)?t[x]:S,l[x]=b==null||isNaN(b)?s[x]:b}),Gt(u),Gt(l);var h=this._minMaxSpan;f?p(u,l,t,s,!1):p(l,u,s,t,!0);function p(_,x,b,S,T){var A=T?"Span":"ValueSpan";ki(0,_,b,"all",h["min"+A],h["max"+A]);for(var w=0;w<2;w++)x[w]=Ne(_[w],b,S,!0),T&&(x[w]=x[w],c[w]=!0);Do(x)}var d=Xe(n)||li(n),v=i.getExtent(),m=De(v[1]-v[0]),g=d?0:Pf(u,m,.5);C([[0,Zr],[1,fr]],function(_){var x=_[0],b=_[1];!c[x]||!isFinite(g)||(u[x]=me(u[x],g),u[x]=Re(t[1],pe(t[0],u[x])),l[x]===s[x]&&(u[x]=t[x],d&&(u[x]=b(u[x]))))}),Do(u);var y=[Ne(u[0],t,s,!0),Ne(u[1],t,s,!0)];return Do(y),{value:u,percent:l,percentInverted:y,valuePrecision:g}},r.prototype.reset=function(e,t){if(this.hostedBy(e)){var i=this.getAxisModel().axis;Hh(i,H1);var n=i.scale.rawExtentInfo;this._extent=n.makeNoZoom(),this._updateMinMaxSpan();var a=e.settledOption;t&&(a=ie({start:t[0],end:t[1]},a));var o=this._window=this.calculateDataWindow(a),s=o.percent,l=o.value;s[0]!==0&&n.setZoomMM(0,l[0]),s[1]!==100&&n.setZoomMM(1,l[1])}},r.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var i=this._dimName,n=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._window.value;if(a==="none")return;C(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(a==="weakFilter"){var c=u.getStore(),h=B(f,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var d,v,m,g=0;g<f.length;g++){var y=c.get(h[g],p),_=!isNaN(y),x=y<o[0],b=y>o[1];if(_&&!x&&!b)return!0;_&&(m=!0),x&&(d=!0),b&&(v=!0)}return m&&d&&v})}else C(f,function(p){if(a==="empty")l.setData(u=u.map(p,function(v){return s(v)?v:NaN}));else{var d={};d[p]=o,u.selectRange(d)}});C(f,function(p){u.setApproximateExtent(o,p)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._extent;C(["min","max"],function(n){var a=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Ne(i[0]+o,i,[0,100],!0):a!=null&&(o=Ne(a,[0,100],i,!0)-i[0]),e[n+"Span"]=a,e[n+"ValueSpan"]=o},this)},r})(),zD=LF;var PF={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(xr(o),s);n(o,s,l,a)})})}var t=[];e(function(n,a,o,s){if(!Ts(o)){var l=new zD(n,a,s,r);t.push(l),kD(o,l)}});var i=V();return C(t,function(n){C(n.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var i=[];t.eachTargetAxis(function(n,a){var o=t.getAxisProxy(n,a),s=yp(t,o);s?i.push([o,s]):o.reset(t,null)}),C(i,function(n){n[0].reset(t,n[1].getWindow().percentInverted)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var n=i.getWindow(),a=n.percent,o=n.value;t.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}},FD=PF;function Iy(r){r.registerAction("dataZoom",function(e,t){var i=RD(t,e);C(i,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var OF=Mo();function xu(r){OF(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,FD),Iy(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function UD(r,e){var t=vn(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new xe({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var RF=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:j.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:j.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:j.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:j.color.tertiary,fontSize:14}},e})(Ce),VD=RF;function xp(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function HD(r){if(se.domSupported){for(var e=document.documentElement.style,t=0,i=r.length;t<i;t++)if(r[t]in e)return r[t]}}var Ly=HD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),GD=HD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Py(r,e){if(!r)return e;e=Lc(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function YD(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var NF=Py(GD,"transition"),Oy=Py(Ly,"transform"),kF="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(se.transform3dSupported?"will-change:transform;":"");function BF(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function zF(r,e,t){if(!z(t)||t==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");e=Nr(e);var a=BF(t),o=Math.max(Math.round(n)*1.5,6),s="",l=Oy+":",u;ue(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),p=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-c)/2)*100)/100;s+=";"+a+":-"+p+"px";var d=e+" solid "+n+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+v.join("")+'"></div>'}function FF(r,e,t){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return t&&(n=" "+r/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+r+"s "+i,a+=(a.length?",":"")+(se.transformSupported?""+Oy+n:",left"+n+",top"+n)),NF+":"+a}function WD(r,e,t){var i=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!se.transformSupported)return t?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=se.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return t?"top:0;left:0;"+Oy+":"+o+";":[["top",0],["left",0],[Ly,o]]}function UF(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont());var n=G(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),C(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function VF(r,e,t,i){var n=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=Jc(r,"html"),p=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+p),e&&a>0&&n.push(FF(a,t,i)),o&&n.push("background-color:"+o),C(["width","color","radius"],function(d){var v="border-"+d,m=Lc(v),g=r.get(m);g!=null&&n.push(v+":"+g+(d==="color"?"":"px"))}),n.push(UF(c)),h!=null&&n.push("padding:"+vn(h).join("px ")+"px"),n.join(";")+";"}function jD(r,e,t,i,n){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&s0(r,o,t,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var HF=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,se.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=t.appendTo,o=a&&(z(a)?document.querySelector(a):no(a)?a:Z(a)&&a(e.getDom()));jD(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Ht(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=YD(t,"position"),n=t.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=kF+VF(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+WD(a[0],a[1],!0)+("border-color:"+Nr(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(z(a)&&i.get("trigger")==="item"&&!xp(i)&&(s=zF(i,n,a)),z(e))o.innerHTML=e+s;else if(e){o.innerHTML="",N(e)||(e=[e]);for(var l=0;l<e.length;l++)no(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var i=this._styleCoord;if(jD(i,this._zr,this._container,e,t),i[0]!=null&&i[1]!=null){var n=this.el.style,a=WD(i[0],i[1]);C(a,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",se.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;l0(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var i=t.parentNode;i&&i.removeChild(t)}this.el=this._container=null},r})(),ZD=HF;var GF=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),qD(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,i,n,a){var o=this;Y(e)&&ct(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Me({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Jc(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),C(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=XD(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},r.prototype.moveTo=function(e,t){var i=this.el;if(i){var n=this._styleCoord;qD(n,this._zr,e,t),e=n[0],t=n[1];var a=i.style,o=Rn(a.borderWidth||0),s=XD(a);i.x=e+o+s.left,i.y=t+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Rn(r){return Math.max(0,r)}function XD(r){var e=Rn(r.shadowBlur||0),t=Rn(r.shadowOffsetX||0),i=Rn(r.shadowOffsetY||0);return{left:Rn(e-t),right:Rn(e+t),top:Rn(e-i),bottom:Rn(e+i)}}function qD(r,e,t,i){r[0]=t,r[1]=i,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var KD=GF;var YF=new xe({shape:{x:-1,y:-1,width:2,height:2}}),WF=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(!(se.node||!i.getDom())){var n=t.getComponent("tooltip"),a=this._renderMode=Vx(n.get("renderMode"));this._tooltipContent=a==="richText"?new KD(i):new ZD(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,i,n){if(!(se.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(t),a.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?xn(this,"_updatePosition",50,"fixRate"):Ba(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");dp("itemTooltip",this._api,Q(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,n=this._api,a=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,n,a){if(!(a.from===this.uid||se.node||!n.getDom())){var o=$D(a,n);this._ticket="";var s=a.dataByCoordSys,l=qF(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=YF;f.x=a.x,f.y=a.y,f.update(),ge(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(t,i,n,a))return;var c=_u(a,i),h=c.point[0],p=c.point[1];h!=null&&p!=null&&this._tryShow({offsetX:h,offsetY:p,target:c.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))}},e.prototype.manuallyHideTip=function(t,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide($D(a,n))},e.prototype._manuallyAxisShowTip=function(t,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=bu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,i){var n=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=ge(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;za(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ge(f).dataIndex!=null?l=f:ge(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var n=t.get("showDelay");i=Q(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(t,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=bu([i.tooltipOption],a),l=this._renderMode,u=[],f=Na("section",{blocks:[],noHeader:!0}),c=[],h=new eh;C(t,function(y){C(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,S=x.axis,T=S.scale.parse(b);if(!(!x||b==null)){var A=Ty(b,S,n,_.seriesDataIndices,_.valueLabelOpt),w=Na("section",{header:A,noHeader:!mt(A),sortBlocks:!0,blocks:[]});f.blocks.push(w),C(_.seriesDataIndices,function(E){var D=n.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,M=D.getDataParams(I);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=ms(x.axis,{value:T}),M.axisValueLabel=A,M.marker=h.makeTooltipMarker("item",Nr(M.color),l);var L=Um(D.formatTooltip(I,!0,null)),P=L.frag;if(P){var R=bu([D],a).get("valueFormatter");w.blocks.push(R?O({valueFormatter:R},P):P)}L.text&&c.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var p=i.position,d=s.get("order"),v=jm(f,h,l,d,n.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=l==="richText"?`
|
|
15
|
+
|
|
16
|
+
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],p,null,h)})},e.prototype._showSeriesItemTooltip=function(t,i,n){var a=this._ecModel,o=ge(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),p=this._renderMode,d=t.positionDefault,v=bu([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new eh;g.marker=y.makeTooltipMarker("item",Nr(g.color),p);var _=Um(u.formatTooltip(f,!1,c)),x=v.get("order"),b=v.get("valueFormatter"),S=_.frag,T=S?jm(b?O({valueFormatter:b},S):S,y,p,x,a.get("useUTC"),v.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(v,function(){this._showTooltipContent(v,T,g,A,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,n){var a=this._renderMode==="html",o=ge(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=te(l),l.content=ot(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var p=t.positionDefault,d=bu(c,this._tooltipModel,p?{position:p}:null),v=d.get("content"),m=Math.random()+"",g=new eh;this._showOrMove(d,function(){var y=te(d.get("formatterParams")||{});this._showTooltipContent(d,v,y,m,t.offsetX,t.offsetY,t.position,i,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,n,a,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var p=i,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),v=d.color;if(h)if(z(h)){var m=t.ecModel.get("useUTC"),g=N(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;p=h,y&&(p=Aa(g.axisValue,p,m)),p=Oc(p,n,!0)}else if(Z(h)){var _=Q(function(x,b){x===this._ticket&&(c.setContent(b,f,t,v,l),this._updatePosition(t,l,o,s,c,n,u))},this);this._ticket=a,p=h(n,a,_)}else p=h;c.setContent(p,f,t,v,l),c.show(t,v),this._updatePosition(t,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(t,i,n,a,o){if(n==="axis"||N(i))return{color:a||o};if(!N(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||t.get("position");var c=o.getSize(),h=t.get("align"),p=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Z(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),N(i))n=we(i[0],u),a=we(i[1],f);else if(Y(i)){var v=i;v.width=c[0],v.height=c[1];var m=vr(v,{width:u,height:f});n=m.x,a=m.y,h=null,p=null}else if(z(i)&&l){var g=XF(i,d,c,t.get("borderWidth"));n=g[0],a=g[1]}else{var g=jF(n,a,o,u,f,h?null:20,p?null:20);n=g[0],a=g[1]}if(h&&(n-=QD(h)?c[0]/2:h==="right"?c[0]:0),p&&(a-=QD(p)?c[1]/2:p==="bottom"?c[1]:0),xp(t)){var g=ZF(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===t.length;return o&&C(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&C(u,function(h,p){var d=c[p]||{},v=h.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&v.length===m.length,o&&C(v,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&C(h.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){se.node||!i.getDom()||(Ba(this,"_updatePosition"),this._tooltipContent.dispose(),yu("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(xt);function bu(r,e,t){var i=e.ecModel,n;t?(n=new Ie(t,i,i),n=new Ie(e.option,n,i)):n=e;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Ie&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(n=new Ie(o,n,i)))}return n}function $D(r,e){return r.dispatchAction||Q(e.dispatchAction,e)}function jF(r,e,t,i,n,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function ZF(r,e,t,i,n){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function XF(r,e,t,i){var n=t[0],a=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function QD(r){return r==="center"||r==="middle"}function qF(r,e,t){var i=ul(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=en(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ge(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var JD=WF;function Ry(r){ft(mp),r.registerComponentModel(VD),r.registerComponentView(JD),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ee),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ee)}var KF=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},$F=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,n=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),N(i)&&C(i,function(a,o){z(a)&&(a={type:a}),i[o]=de(a,KF(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<t.length;n++){var a=t[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(h)),h.length?i=i.concat(h):f=!0}else f=!0;f&&Eo(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=V(),s=B(a,function(l){return(z(l)||fe(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ie(l,this,this.ecModel))},this);this._data=ke(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;C(a,function(o){i[o.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var i=this.option.selected;i.hasOwnProperty(t)||(i[t]=!0),this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;C(t,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;C(t,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&ue(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:j.size.m,align:"auto",backgroundColor:j.color.transparent,borderColor:j.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:j.color.disabled,inactiveBorderColor:j.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:j.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:j.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:j.color.tertiary,borderWidth:1,borderColor:j.color.border},emphasis:{selectorLabel:{show:!0,color:j.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Ce),Su=$F;var ws=Te,Ny=C,bp=be,QF=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new bp),this.group.add(this._selectorGroup=new bp),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,i,n,l,s,u);var f=Ma(t,n).refContainer,c=t.getBoxLayoutParams(),h=t.get("padding"),p=vr(c,f,h),d=this.layoutInner(t,o,p,a,l,u),v=vr(ie({width:d.width,height:d.height},c),f,h);this.group.x=v.x-d.x,this.group.y=v.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=UD(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,n,a,o,s,l){var u=this.getContentGroup(),f=V(),c=i.get("selectedMode"),h=i.get("triggerEvent"),p=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),Ny(i.getData(),function(d,v){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
17
|
+
`)){var y=new bp;y.newline=!0,u.add(y);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),b=x.getVisual("legendLineStyle")||{},S=x.getVisual("legendIcon"),T=x.getVisual("style"),A=this._createItem(_,g,v,d,i,t,b,T,S,c,a);A.on("click",ws(eM,g,null,a,p)).on("mouseover",ws(ky,_.name,null,a,p)).on("mouseout",ws(By,_.name,null,a,p)),n.ssr&&A.eachChild(function(w){var E=ge(w);E.seriesIndex=_.seriesIndex,E.dataIndex=v,E.ssrType="legend"}),h&&A.eachChild(function(w){m.packEventData(w,i,_,v,g)}),f.set(g,!0)}else n.eachRawSeries(function(w){var E=this;if(!f.get(g)&&w.legendVisualProvider){var D=w.legendVisualProvider;if(!D.containName(g))return;var I=D.indexOfName(g),M=D.getItemVisual(I,"style"),L=D.getItemVisual(I,"legendIcon"),P=Pt(M.fill);P&&P[3]===0&&(P[3]=.2,M=O(O({},M),{fill:Xn(P,"rgba")}));var R=this._createItem(w,g,v,d,i,t,{},M,L,c,a);R.on("click",ws(eM,null,g,a,p)).on("mouseover",ws(ky,null,g,a,p)).on("mouseout",ws(By,null,g,a,p)),n.ssr&&R.eachChild(function(U){var k=ge(U);k.seriesIndex=w.seriesIndex,k.dataIndex=v,k.ssrType="legend"}),h&&R.eachChild(function(U){E.packEventData(U,i,w,v,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(t,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};ge(t).eventData=s},e.prototype._createSelector=function(t,i,n,a,o){var s=this.getSelectorGroup();Ny(t,function(u){var f=u.type,c=new Me({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var h=i.getModel("selectorLabel"),p=i.getModel(["emphasis","selectorLabel"]);oi(c,{normal:h,emphasis:p},{defaultText:u.title}),zo(c)})},e.prototype._createItem=function(t,i,n,a,o,s,l,u,f,c,h){var p=t.visualDrawType,d=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=JF(f,a,l,u,p,m,h),b=new bp,S=a.getModel("textStyle");if(Z(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:v,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;b.add(eU({itemWidth:d,itemHeight:v,icon:f,iconRotate:T,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var A=s==="left"?d+5:-5,w=s,E=o.get("formatter"),D=i;z(E)&&E?D=E.replace("{name}",i!=null?i:""):Z(E)&&(D=E(i));var I=m?S.getTextColor():a.get("inactiveColor");b.add(new Me({style:Rr(S,{text:D,x:A,y:v/2,fill:I,align:w,verticalAlign:"middle"},{inheritColor:I})}));var M=new xe({shape:b.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&Wo({el:M,componentModel:o,itemName:i,itemTooltipOption:L.option}),b.add(M),b.eachChild(function(P){P.silent=!0}),M.silent=!c,this.getContentGroup().add(b),zo(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Da(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Da("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),p=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),v=t.getOrient().index,m=v===0?"width":"height",g=v===0?"height":"width",y=v===0?"y":"x";s==="end"?p[v]+=f[m]+d:c[v]+=h[m]+d,p[1-v]+=f[g]/2-h[g]/2,u.x=p[0],u.y=p[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+d+h[m],_[g]=Math.max(f[g],h[g]),_[y]=Math.min(0,h[y]+p[1-v]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(xt);function JF(r,e,t,i,n,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Ny(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:jl(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:t).opacity),s(u,i);var h=e.getModel("lineStyle"),p=h.getLineStyle();if(s(p,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),p.stroke==="auto"&&(p.stroke=i.fill),!a){var d=e.get("inactiveBorderWidth"),v=u[f];u.lineWidth=d==="auto"?i.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=h.get("inactiveColor"),p.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function eU(r){var e=r.icon||"roundRect",t=Et(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=j.color.neutral00,t.style.lineWidth=2),t}function eM(r,e,t,i){By(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),ky(r,e,t,i)}function ky(r,e,t,i){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:i})}function By(r,e,t,i){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:i})}var Sp=QF;function Tu(r,e,t){var i=r==="allSelect"||r==="inverseSelect",n={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){i?s[r]():s[r](e.name),tM(s,n),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){C(n,function(l,u){s[l?"select":"unSelect"](u)}),tM(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function tM(r,e){var t=e||{};return C(r.getData(),function(i){var n=i.get("name");if(!(n===`
|
|
18
|
+
`||n==="")){var a=r.isSelected(n);Pe(t,n)?t[n]=t[n]&&a:t[n]=a}}),t}function rM(r){r.registerAction("legendToggleSelect","legendselectchanged",Te(Tu,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Te(Tu,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Te(Tu,"inverseSelect")),r.registerAction("legendSelect","legendselected",Te(Tu,"select")),r.registerAction("legendUnSelect","legendunselected",Te(Tu,"unSelect"))}var iM=Lo(tU);function tU(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function Tp(r){r.registerComponentModel(Su),r.registerComponentView(Sp),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,iM),r.registerSubTypeDefaulter("legend",function(){return"plain"}),rM(r)}var rU=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,n){var a=mr(t);r.prototype.init.call(this,t,i,n),nM(this,t,a)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),nM(this,this.option,t)},e.type="legend.scroll",e.defaultOption=dn(Su.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:j.color.accent50,pageIconInactiveColor:j.color.accent10,pageIconSize:15,pageTextStyle:{color:j.color.tertiary},animationDurationUpdate:800}),e})(Su);function nM(r,e,t){var i=r.getOrient(),n=[1,1];n[i.index]=0,ar(e,t,{type:"box",ignoreSize:!!n})}var aM=rU;var oM=be,zy=["width","height"],Fy=["x","y"],iU=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new oM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new oM)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),h=N(c)?c:[c,c];d("pagePrev",0);var p=i.getModel("pageTextStyle");f.add(new Me({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(v,m){var g=v+"DataIndex",y=Ml(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:Q(u._pageGo,u,g,i,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=v,f.add(y)}},e.prototype.layoutInner=function(t,i,n,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=zy[u],c=Fy[u],h=zy[1-u],p=Fy[1-u];o&&Da("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],g=te(n);o&&(g[f]=n[f]-v[f]-d);var y=this._layoutContentAndController(t,a,g,u,f,h,p,c);if(o){if(s==="end")m[u]+=y[f]+d;else{var _=v[f]+d;m[u]-=_,y[c]-=_}y[f]+=v[f]+d,m[1-u]+=y[p]+y[h]/2-v[h]/2,y[h]=Math.max(y[h],v[h]),y[p]=Math.min(y[p],v[p]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;Da(t.get("orient"),f,t.get("itemGap"),a?n.width:null,a?null:n.height),Da("horizontal",h,t.get("pageButtonItemGap",!0));var p=f.getBoundingRect(),d=h.getBoundingRect(),v=this._showController=p[o]>n[o],m=[-p.x,-p.y];i||(m[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=G(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(v){var x=t.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=p[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),h.setPosition(y);var b={x:0,y:0};if(b[o]=v?n[o]:p[o],b[s]=Math.max(p[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=n[o],v){var S={x:0,y:0};S[o]=Math.max(n[o]-d[o]-_,0),S[s]=b[s],c.setClipPath(new xe({shape:S})),c.__rectSize=S[o]}else h.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&Ve(f,{x:T.contentPosition[0],y:T.contentPosition[1]},v?t:null),this._updatePageInfoView(t,T),b},e.prototype._pageGo=function(t,i,n){var a=this._getPageInfo(i)[t];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var n=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=i[c]!=null,p=n.childOfName(f);p&&(p.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),p.cursor=h?"pointer":"default")});var a=n.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=zy[o],l=Fy[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],h=f.length,p=h?1:0,d={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var v=x(c);d.contentPosition[o]=-v.s;for(var m=u+1,g=v,y=v,_=null;m<=h;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=v,y=v,_=null;m>=-1;--m)_=x(f[m]),(!_||!b(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function x(S){if(S){var T=S.getBoundingRect(),A=T[l]+S[l];return{s:A,e:A+T[s],i:S.__legendDataIndex}}}function b(S,T){return S.e>=T&&S.s<=T+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(i=s)}),i!=null?i:a},e.type="legend.scroll",e})(Sp),sM=iU;function Uy(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function lM(r){ft(Tp),r.registerComponentModel(aM),r.registerComponentView(sM),Uy(r)}function Vy(r){ft(Tp),ft(lM)}var nU=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=dn(Cs.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Cs),uM=nU;var Hy=ee();function fM(r,e,t){Hy(r).coordSysRecordMap.each(function(i){var n=i.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function cM(r,e){for(var t=Hy(r).coordSysRecordMap,i=t.keys(),n=0;n<i.length;n++){var a=i[n],o=t.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||hM(t,o))}}}function hM(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function aU(r,e){var t={model:e,containsPoint:Te(sU,e),dispatchAction:Te(oU,r),dataZoomInfoMap:null,controller:null},i=t.controller=new fD(r.getZr());return C(["pan","zoom","scrollMove"],function(n){i.on(n,function(a){var o=[];t.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function oU(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function sU(r,e,t,i){return r.coordinateSystem.containPoint([t,i])}function lU(r,e,t){var i,n="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return r.each(function(u){var f=u.model,c=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;a[n+c]>a[n+i]&&(i=c),o=o&&f.get("preventDefaultMouseMove",!0),s=G(f.get("cursorGrab",!0),s),l=G(f.get("cursorGrabbing",!0),l)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function pM(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var i=Hy(t),n=i.coordSysRecordMap||(i.coordSysRecordMap=V());n.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=gp(a);C(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,aU(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=V());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),n.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){hM(n,a);return}var f=lU(l,a,t);o.enable(f.controlType,f.opt),xn(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var fU=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),fM(n,t,{pan:Q(Gy.pan,this),zoom:Q(Gy.zoom,this),scrollMove:Q(Gy.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){cM(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(_p),Gy={zoom:function(r,e,t,i){var n=this.range,a=n.slice(),o=r.axisModels[0];if(o){var s=Yy[e](null,[i.originX,i.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ki(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a}},pan:dM(function(r,e,t,i,n,a){var o=Yy[i]([a.oldX,a.oldY],[a.newX,a.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:dM(function(r,e,t,i,n,a){var o=Yy[i]([0,0],[a.scrollDelta,a.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*a.scrollDelta})};function dM(r){return function(e,t,i,n){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,i,n);if(ki(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Yy={grid:function(r,e,t,i,n){var a=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,e,t,i,n){var a=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,e,t,i,n){var a=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},vM=fU;function mM(r){xu(r),r.registerComponentModel(uM),r.registerComponentView(vM),pM(r)}var cU=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=dn(Cs.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:j.color.accent10,borderRadius:0,backgroundColor:j.color.transparent,dataBackground:{lineStyle:{color:j.color.accent30,width:.5},areaStyle:{color:j.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:j.color.accent40,width:.5},areaStyle:{color:j.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:j.color.neutral00,borderColor:j.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:j.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:j.color.tertiary},brushSelect:!0,brushStyle:{color:j.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:j.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(Cs),gM=cU;var Cu=xe,hU=1,Wy=30,pU=7,wu="horizontal",yM="vertical",dU=5,vU=["line","bar","candlestick","scatter"],mU={easing:"cubicOut",duration:100,delay:0},gU=(function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},e.prototype.render=function(t,i,n,a){if(r.prototype.render.apply(this,arguments),xn(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ba(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new be;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,n=t.get("brushSelect"),a=n?pU:0,o=Ma(t,i).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===wu?{right:o.width-s.x-s.width,top:o.height-Wy-l-a,width:s.width,height:Wy}:{right:l,top:s.y,width:Wy,height:s.height},f=mr(t.option);C(["right","top","width","height"],function(h){f[h]==="ph"&&(f[h]=u[h])});var c=vr(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===yM&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,n=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===wu&&!o?{scaleY:l?1:-1,scaleX:1}:n===wu&&o?{scaleY:l?1:-1,scaleX:-1}:n===yM&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,c=isNaN(u.y)?0:u.y;t.x=i.x-f,t.y=i.y-c,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,n=this._displayables.sliderGroup,a=t.get("brushSelect");n.add(new Cu({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Cu({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,n=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==n[0]||i[1]!==n[1]){var c=o.getDataExtent(t.thisDim),h=o.getDataExtent(l),p=(h[1]-h[0])*.3;h=[h[0]-p,h[1]+p];var d=[0,i[1]],v=[0,i[0]],m=[[i[0],0],[0,0]],g=[],y=v[1]/Math.max(1,o.count()-1),_=i[0]/(c[1]-c[0]),x=t.thisAxis.type==="time",b=-y,S=Math.round(o.count()/i[0]),T;o.each([t.thisDim,l],function(I,M,L){if(S>0&&L%S){x||(b+=y);return}b=x?(+I-c[0])*_:b+y;var P=M==null||isNaN(M)||M==="",R=P?0:Ne(M,h,d,!0);P&&!T&&L?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!P&&T&&(m.push([b,0]),g.push([b,0])),P||(m.push([b,R]),g.push([b,R])),T=P}),u=this._shadowPolygonPts=m,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var A=this.dataZoomModel;function w(I){var M=A.getModel(I?"selectedDataBackground":"dataBackground"),L=new be,P=new wl({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new wi({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return L.add(P),L.add(R),L}for(var E=0;E<3;E++){var D=w(E===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var n,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();C(l,function(u){if(!n&&!(i!==!0&&ue(vU,u.get("type"))<0)){var f=a.getComponent(xr(o),s).axis,c=yU(o),h,p=u.coordinateSystem;c!=null&&p.getOtherAxis&&(h=p.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:h}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,n=i.handles=[null,null],a=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=i.filler=new Cu({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Cu({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:hU,fill:j.color.transparent}})),C([0,1],function(_){var x=l.get("handleIcon");!Gl[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var b=Et(x,-1,0,2,2,null,!0);b.attr({cursor:_U(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._onOverDataInfoTriggerArea,this,!0),onmouseout:Q(this._onOverDataInfoTriggerArea,this,!1),z2:5});var S=b.getBoundingRect(),T=l.get("handleSize");this._handleHeight=we(T,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),zo(b);var A=l.get("handleColor");A!=null&&(b.style.fill=A),o.add(n[_]=b);var w=l.getModel("textStyle"),E=l.get("handleLabel")||{},D=E.show||!1;t.add(a[_]=new Me({silent:!0,invisible:!D,style:Rr(w,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:w.getTextColor(),font:w.getFont()}),z2:10}))},this);var p=h;if(c){var d=we(l.get("moveHandleSize"),s[1]),v=i.moveHandle=new xe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),m=d*.8,g=i.moveHandleIcon=Et(l.get("moveHandleIcon"),-m/2,-m/2,m,m,j.color.neutral00,!0);g.silent=!0,g.y=s[1]+d/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));p=i.moveZone=new xe({invisible:!0,shape:{y:s[1]-y,height:d+y}}),p.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(g),o.add(p)}p.attr({draggable:!0,cursor:"grab",drift:Q(this._onActualMoveZoneDrift,this),ondragstart:Q(this._onActualMoveZoneDragStart,this),ondragend:Q(this._onActualMoveZoneDragEnd,this),onmouseover:Q(this._onOverDataInfoTriggerArea,this,!0),onmouseout:Q(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Ne(t[0],[0,100],i,!0),Ne(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var n=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ki(i,a,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Ne(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ne(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Gt([Ne(a[0],o,l,!0),Ne(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var i=this._displayables,n=this._handleEnds,a=Gt(n.slice()),o=this._size;C([0,1],function(p){var d=i.handles[p],v=this._handleHeight;d.attr({scaleX:v/2,scaleY:v/2,x:n[p]+(p?-1:1),y:o[1]/2-v/2})},this),i.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var c=l[f],h=c.getClipPath();h||(h=new xe,c.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,c;if(t){var h={start:f[0],end:f[1]},p=yp(i,l);if(p){var d=p.calculateDataWindow(h).percentInverted;h={start:d[0],end:d[1]}}c=l.calculateDataWindow(h)}else c=l.getWindow();s=[_M(i,0,c,u),_M(i,1,c,u)]}}var v=Gt(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(g){var y=nm(n.handles[g].parent,this.group),_=am(g===0?"right":"left",y),x=this._handleWidth/2+dU,b=xa([v[g]+(g===0?-x:x),this._size[1]/2],y);a[g].setStyle({x:b[0],y:b[1],verticalAlign:o===wu?"middle":_,align:o===wu?_:"center",text:s[g]})}},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var i=this.dataZoomModel.get("handleLabel")||{},n=i.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,i,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,i,n)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,i,n,a){this._dragging=!0,Hr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=xa([i,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var i=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>i[0]||n[1]<0||n[1]>i[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,n=t.offsetY;this._brushStart=new le(i,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var n=i.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ki(0,l,o,0,u.minSpan!=null?Ne(u.minSpan,s,o,!0):null,u.maxSpan!=null?Ne(u.maxSpan,s,o,!0):null),this._range=Gt([Ne(l[0],o,s,!0),Ne(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Hr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var n=this._displayables,a=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Cu({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?mU:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=gp(this.dataZoomModel).infoList;if(!t&&i.length){var n=i[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(_p);function _M(r,e,t,i){var n=r.get("labelFormatter"),a=r.get("labelPrecision");(a==null||a==="auto")&&(a=t.valuePrecision);var o=t.value[e],s=o==null||isNaN(o)?"":Xe(i)||li(i)?i.getLabel({value:Math.round(o)}):isFinite(a)?me(o,a,!0):o+"";return Z(n)?n(o,s):z(n)?n.replace("{value}",s):s}function yU(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function _U(r){return r==="vertical"?"ns-resize":"ew-resize"}var xM=gU;function bM(r){r.registerComponentModel(gM),r.registerComponentView(xM),xu(r)}function jy(r){ft(mM),ft(bM)}var Zy=Math.sin,Xy=Math.cos,SM=Math.PI,Qa=Math.PI*2,xU=180/SM,bU=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,i,n,a,o){this._add("C",e,t,i,n,a,o)},r.prototype.quadraticCurveTo=function(e,t,i,n){this._add("Q",e,t,i,n)},r.prototype.arc=function(e,t,i,n,a,o){this.ellipse(e,t,i,i,0,n,a,o)},r.prototype.ellipse=function(e,t,i,n,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=jr(c-Qa)||(f?u>=Qa:-u>=Qa),p=u>0?u%Qa:u%Qa+Qa,d=!1;h?d=!0:jr(c)?d=!1:d=p>=SM==!!f;var v=e+i*Xy(o),m=t+n*Zy(o);this._start&&this._add("M",v,m);var g=Math.round(a*xU);if(h){var y=1/this._p,_=(f?1:-1)*(Qa-y);this._add("A",i,n,g,1,+f,e+i*Xy(o+_),t+n*Zy(o+_)),y>.01&&this._add("A",i,n,g,0,+f,v,m)}else{var x=e+i*Xy(s),b=t+n*Zy(s);this._add("A",i,n,g,+d,+f,x,b)}},r.prototype.rect=function(e,t,i,n){this._add("M",e,t),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,i,n,a,o,s,l,u){for(var f=[],c=this._p,h=1;h<arguments.length;h++){var p=arguments[h];if(isNaN(p)){this._invalid=!0;return}f.push(Math.round(p*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),Cp=bU;var Au="none",SU=Math.round;function TU(r){var e=r.fill;return e!=null&&e!==Au}function CU(r){var e=r.stroke;return e!=null&&e!==Au}var qy=["lineCap","miterLimit","lineJoin"],wU=B(qy,function(r){return"stroke-"+r.toLowerCase()});function Ky(r,e,t,i){var n=e.opacity==null?1:e.opacity;if(t instanceof Tt){r("opacity",n);return}if(TU(e)){var a=Ki(e.fill);r("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;(i||o<1)&&r("fill-opacity",o)}else r("fill",Au);if(CU(e)){var s=Ki(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if((i||u!==1)&&r("stroke-width",u),(i||c)&&r("paint-order",c?"stroke":"fill"),(i||f<1)&&r("stroke-opacity",f),e.lineDash){var h=Wl(t),p=h[0],d=h[1];p&&(d=SU(d||0),r("stroke-dasharray",p.join(",")),(d||i)&&r("stroke-dashoffset",d))}else i&&r("stroke-dasharray",Au);for(var v=0;v<qy.length;v++){var m=qy[v];if(i||e[m]!==Ro[m]){var g=e[m]||Ro[m];g&&r(wU[v],g)}}}else i&&r("stroke",Au)}var TM="http://www.w3.org/2000/svg",$y="http://www.w3.org/1999/xlink",CM="http://www.w3.org/2000/xmlns/",wM="http://www.w3.org/XML/1998/namespace",Qy="ecmeta_";function wp(r){return document.createElementNS(TM,r)}function Ke(r,e,t,i,n){return{tag:r,attrs:t||{},children:i,text:n,key:e}}function AU(r,e){var t=[];if(e)for(var i in e){var n=e[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+='="'+n+'"'),t.push(a))}return"<"+r+" "+t.join(" ")+">"}function EU(r){return"</"+r+">"}function Eu(r,e){e=e||{};var t=e.newline?`
|
|
19
|
+
`:"";function i(n){var a=n.children,o=n.tag,s=n.attrs,l=n.text;return AU(o,s)+(o!=="style"?ot(l):l||"")+(a?""+t+B(a,function(u){return i(u)}).join(t)+t:"")+EU(o)}return i(r)}function AM(r,e,t){t=t||{};var i=t.newline?`
|
|
20
|
+
`:"",n=" {"+i,a=i+"}",o=B(ne(r),function(l){return l+n+B(ne(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+a}).join(i),s=B(ne(e),function(l){return"@keyframes "+l+n+B(ne(e[l]),function(u){return u+n+B(ne(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function Du(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Jy(r,e,t,i){return Ke("svg","root",{width:r,height:e,xmlns:TM,"xmlns:xlink":$y,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+e:!1},t)}var DU=0;function Ap(){return DU++}var EM={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ja="transform-origin";function MU(r,e,t){var i=O({},r.shape);O(i,e),r.buildPath(t,i);var n=new Cp;return n.reset(gf(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function IU(r,e){var t=e.originX,i=e.originY;(t||i)&&(r[Ja]=t+"px "+i+"px")}var LU={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function MM(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function PU(r,e,t){var i=r.shape.paths,n={},a,o;if(C(i,function(l){var u=Du(t.zrId);u.animation=!0,Mu(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=ne(f),p=h.length;if(p){o=h[p-1];var d=f[o];for(var v in d){var m=d[v];n[v]=n[v]||{d:""},n[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=MM(n,t);return a.replace(o,s)}}function DM(r){return z(r)?EM[r]?"cubic-bezier("+EM[r]+")":go(r)?r:"":""}function Mu(r,e,t,i){var n=r.animators,a=n.length,o=[];if(r instanceof nc){var s=PU(r,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=n[u],c=[f.getMaxTime()/1e3+"s"],h=DM(f.getClip().easing),p=f.getDelay();h?c.push(h):c.push("linear"),p&&c.push(p/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function v(y){var _=y[1],x=_.length,b={},S={},T={},A="animation-timing-function";function w(Fe,Se,Le){for(var ce=Fe.getTracks(),_e=Fe.getMaxTime(),Ft=0;Ft<ce.length;Ft++){var Ye=ce[Ft];if(Ye.needsAnimate()){var br=Ye.keyframes,Ut=Ye.propName;if(Le&&(Ut=Le(Ut)),Ut)for(var Sr=0;Sr<br.length;Sr++){var ro=br[Sr],Tr=Math.round(ro.time/_e*100)+"%",Uu=DM(ro.easing),io=ro.rawValue;(z(io)||fe(io))&&(Se[Tr]=Se[Tr]||{},Se[Tr][Ut]=ro.rawValue,Uu&&(Se[Tr][A]=Uu))}}}}for(var E=0;E<x;E++){var D=_[E],I=D.targetName;I?I==="shape"&&w(D,S):!i&&w(D,b)}for(var M in b){var L={};$i(L,r),O(L,b[M]);var P=yf(L),R=b[M][A];T[M]=P?{transform:P}:{},IU(T[M],L),R&&(T[M][A]=R)}var U,k=!0;for(var M in S){T[M]=T[M]||{};var H=!U,R=S[M][A];H&&(U=new _t);var W=U.len();U.reset(),T[M].d=MU(r,S[M],U);var q=U.len();if(!H&&W!==q){k=!1;break}R&&(T[M][A]=R)}if(!k)for(var M in T)delete T[M].d;if(!i)for(var E=0;E<x;E++){var D=_[E],I=D.targetName;I==="style"&&w(D,T,function(ce){return LU[ce]})}for(var $=ne(T),J=!0,K,E=1;E<$.length;E++){var he=$[E-1],ye=$[E];if(T[he][Ja]!==T[ye][Ja]){J=!1;break}K=T[he][Ja]}if(J&&K){for(var M in T)T[M][Ja]&&delete T[M][Ja];e[Ja]=K}if(ke($,function(Fe){return ne(T[Fe]).length>0}).length){var Ge=MM(T,t);return Ge+" "+y[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+Ap();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function LM(r,e,t){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};IM(i,e,t,!0)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=n.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(a=qs(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var i={cursor:"pointer"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),u&&(i["stroke-width"]=u),IM(i,e,t,!0)}}function IM(r,e,t,i){var n=JSON.stringify(r),a=t.cssStyleCache[n];a||(a=t.zrId+"-cls-"+Ap(),t.cssStyleCache[n]=a,t.cssNodes["."+a+(i?":hover":"")]=r),e.class=e.class?e.class+" "+a:a}var Iu=Math.round;function NM(r){return r&&z(r.src)}function kM(r){return r&&Z(r.toDataURL)}function e_(r,e,t,i){Ky(function(n,a){var o=n==="fill"||n==="stroke";o&&mf(a)?n_(e,r,n,i):o&&Ks(a)?a_(t,r,n,i):r[n]=a,o&&i.ssr&&a==="none"&&(r["pointer-events"]="visible")},e,t,!1),FU(t,r,i)}function t_(r,e){var t=Tx(e);t&&(t.each(function(i,n){i!=null&&(r[(Qy+n).toLowerCase()]=i+"")}),e.isSilent()&&(r[Qy+"silent"]="true"))}function PM(r){return jr(r[0]-1)&&jr(r[1])&&jr(r[2])&&jr(r[3]-1)}function OU(r){return jr(r[4])&&jr(r[5])}function r_(r,e,t){if(e&&!(OU(e)&&PM(e))){var i=t?10:1e4;r.transform=PM(e)?"translate("+Iu(e[4]*i)/i+" "+Iu(e[5]*i)/i+")":j0(e)}}function OM(r,e,t){for(var i=r.points,n=[],a=0;a<i.length;a++)n.push(Iu(i[a][0]*t)/t),n.push(Iu(i[a][1]*t)/t);e.points=n.join(" ")}function RM(r){return!r.smooth}function RU(r){var e=B(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=t[o[0]];s!=null&&(i[o[1]]=Iu(s*n)/n)}}}var NU={circle:[RU(["cx","cy","r"])],polyline:[OM,RM],polygon:[OM,RM]};function kU(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function BM(r,e){var t=r.style,i=r.shape,n=NU[r.type],a={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&gf(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&kU(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);n[0](i,a,f)}else{var c=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;c&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var p=h.getVersion(),d=r,v=d.__svgPathBuilder;(d.__svgPathVersion!==p||!v||l!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new Cp),v.reset(u),h.rebuildPath(v,l),v.generateStr(),d.__svgPathVersion=p,d.__svgPathStrokePercent=l),a.d=v.getStr()}return r_(a,r.transform),e_(a,t,r,e),t_(a,r),e.animation&&Mu(r,a,e),e.emphasis&&LM(r,a,e),Ke(s,r.id+"",a)}function BU(r,e){var t=r.style,i=t.image;if(i&&!z(i)&&(NM(i)?i=i.src:kM(i)&&(i=i.toDataURL())),!!i){var n=t.x||0,a=t.y||0,o=t.width,s=t.height,l={href:i,width:o,height:s};return n&&(l.x=n),a&&(l.y=a),r_(l,r.transform),e_(l,t,r,e),t_(l,r),e.animation&&Mu(r,l,e),Ke("image",r.id+"",l)}}function zU(r,e){var t=r.style,i=t.text;if(i!=null&&(i+=""),!(!i||isNaN(t.x)||isNaN(t.y))){var n=t.font||Vt,a=t.x||0,o=X0(t.y||0,Jn(n),t.textBaseline),s=Z0[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Ev(t)){var u="",f=t.fontStyle,c=Av(t.fontSize);if(!parseFloat(c))return;var h=t.fontFamily||qp,p=t.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+n;return i.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),r_(l,r.transform),e_(l,t,r,e),t_(l,r),e.animation&&Mu(r,l,e),Ke("text",r.id+"",l,void 0,i)}}function i_(r,e){if(r instanceof ae)return BM(r,e);if(r instanceof Tt)return BU(r,e);if(r instanceof ca)return zU(r,e)}function FU(r,e,t){var i=r.style;if(q0(i)){var n=K0(r),a=t.shadowCache,o=a[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,h=i.shadowBlur,p=Ki(i.shadowColor),d=p.opacity,v=p.color,m=h/2/l,g=h/2/u,y=m+" "+g;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Ke("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ke("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),a[n]=o}e.filter=$s(o)}}function n_(r,e,t,i){var n=r[t],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(df(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(vf(n))a="radialGradient",o.cx=G(n.x,.5),o.cy=G(n.y,.5),o.r=G(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=pf(s[u].offset)*100+"%",h=s[u].color,p=Ki(h),d=p.color,v=p.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),l.push(Ke("stop",u+"",m))}var g=Ke(a,"",o,l),y=Eu(g),_=i.gradientCache,x=_[y];x||(x=i.zrId+"-g"+i.gradientIdx++,_[y]=x,o.id=x,i.defs[x]=Ke(a,x,o,l)),e[t]=$s(x)}function a_(r,e,t,i){var n=r.style[t],a=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(wd(n)){var h=n.imageWidth,p=n.imageHeight,d=void 0,v=n.image;if(z(v)?d=v:NM(v)?d=v.src:kM(v)&&(d=v.toDataURL()),typeof Image=="undefined"){var m="Image width/height must been given explictly in svg-ssr renderer.";Ue(h,m),Ue(p,m)}else if(h==null||p==null){var g=function(E,D){if(E){var I=E.elm,M=h||D.width,L=p||D.height;E.tag==="pattern"&&(u?(L=1,M/=a.width):f&&(M=1,L/=a.height)),E.attrs.width=M,E.attrs.height=L,I&&(I.setAttribute("width",M),I.setAttribute("height",L))}},y=cl(d,null,r,function(E){l||g(S,E),g(c,E)});y&&y.width&&y.height&&(h=h||y.width,p=p||y.height)}c=Ke("image","img",{href:d,width:h,height:p}),o.width=h,o.height=p}else n.svgElement&&(c=te(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var _,x;l?_=x=1:u?(x=1,_=o.width/a.width):f?(_=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var b=yf(n);b&&(o.patternTransform=b);var S=Ke("pattern","",o,[c]),T=Eu(S),A=i.patternCache,w=A[T];w||(w=i.zrId+"-p"+i.patternIdx++,A[T]=w,o.id=w,S=i.defs[w]=Ke("pattern",w,o,[c])),e[t]=$s(w)}}function zM(r,e,t){var i=t.clipPathCache,n=t.defs,a=i[r.id];if(!a){a=t.zrId+"-c"+t.clipPathIdx++;var o={id:a};i[r.id]=a,n[a]=Ke("clipPath",a,o,[BM(r,t)])}e["clip-path"]=$s(a)}function o_(r){return document.createTextNode(r)}function Nn(r,e,t){r.insertBefore(e,t)}function s_(r,e){r.removeChild(e)}function l_(r,e){r.appendChild(e)}function u_(r){return r.parentNode}function f_(r){return r.nextSibling}function Ep(r,e){r.textContent=e}var FM=58,VU=120,HU=Ke("","");function c_(r){return r===void 0}function ci(r){return r!==void 0}function GU(r,e,t){for(var i={},n=e;n<=t;++n){var a=r[n].key;a!==void 0&&(i[a]=n)}return i}function Lu(r,e){var t=r.key===e.key,i=r.tag===e.tag;return i&&t}function Pu(r){var e,t=r.children,i=r.tag;if(ci(i)){var n=r.elm=wp(i);if(Mp(HU,r),N(t))for(e=0;e<t.length;++e){var a=t[e];a!=null&&l_(n,Pu(a))}else ci(r.text)&&!Y(r.text)&&l_(n,o_(r.text))}else r.elm=o_(r.text);return r.elm}function UM(r,e,t,i,n){for(;i<=n;++i){var a=t[i];a!=null&&Nn(r,Pu(a),e)}}function Dp(r,e,t,i){for(;t<=i;++t){var n=e[t];if(n!=null)if(ci(n.tag)){var a=u_(n.elm);s_(a,n.elm)}else s_(r,n.elm)}}function Mp(r,e){var t,i=e.elm,n=r&&r.attrs||{},a=e.attrs||{};if(n!==a){for(t in a){var o=a[t],s=n[t];s!==o&&(o===!0?i.setAttribute(t,""):o===!1?i.removeAttribute(t):t==="style"?i.style.cssText=o:t.charCodeAt(0)!==VU?i.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?i.setAttributeNS(CM,t,o):t.charCodeAt(3)===FM?i.setAttributeNS(wM,t,o):t.charCodeAt(5)===FM?i.setAttributeNS($y,t,o):i.setAttribute(t,o))}for(t in n)t in a||i.removeAttribute(t)}}function YU(r,e,t){for(var i=0,n=0,a=e.length-1,o=e[0],s=e[a],l=t.length-1,u=t[0],f=t[l],c,h,p,d;i<=a&&n<=l;)o==null?o=e[++i]:s==null?s=e[--a]:u==null?u=t[++n]:f==null?f=t[--l]:Lu(o,u)?(As(o,u),o=e[++i],u=t[++n]):Lu(s,f)?(As(s,f),s=e[--a],f=t[--l]):Lu(o,f)?(As(o,f),Nn(r,o.elm,f_(s.elm)),o=e[++i],f=t[--l]):Lu(s,u)?(As(s,u),Nn(r,s.elm,o.elm),s=e[--a],u=t[++n]):(c_(c)&&(c=GU(e,i,a)),h=c[u.key],c_(h)?Nn(r,Pu(u),o.elm):(p=e[h],p.tag!==u.tag?Nn(r,Pu(u),o.elm):(As(p,u),e[h]=void 0,Nn(r,p.elm,o.elm))),u=t[++n]);(i<=a||n<=l)&&(i>a?(d=t[l+1]==null?null:t[l+1].elm,UM(r,d,t,n,l)):Dp(r,e,i,a))}function As(r,e){var t=e.elm=r.elm,i=r.children,n=e.children;r!==e&&(Mp(r,e),c_(e.text)?ci(i)&&ci(n)?i!==n&&YU(t,i,n):ci(n)?(ci(r.text)&&Ep(t,""),UM(t,null,n,0,n.length-1)):ci(i)?Dp(t,i,0,i.length-1):ci(r.text)&&Ep(t,""):r.text!==e.text&&(ci(i)&&Dp(t,i,0,i.length-1),Ep(t,e.text)))}function h_(r,e){if(Lu(r,e))As(r,e);else{var t=r.elm,i=u_(t);Pu(e),i!==null&&(Nn(i,e.elm,f_(t)),Dp(i,[r],0,0))}return e}var WU=0,jU=(function(){function r(e,t,i){if(this.type="svg",this.configLayer=ZU("configLayer"),this.storage=t,this._opts=i=O({},i),this.root=e,this._id="zr"+WU++,this._oldVNode=Jy(i.width,i.height),e&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=wp("svg");Mp(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",h_(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return i_(e,Du(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=Du(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=XU(i,n,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Ke("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=B(ne(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Ke("defs","defs",{},u)),e.animation){var f=AM(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Ke("style","stl",{},[],f);o.push(c)}}return Jy(i,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Eu(this.renderToVNode({animation:G(e.cssAnimation,!0),emphasis:G(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:G(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,i){for(var n=e.length,a=[],o=0,s,l,u=0,f=0;f<n;f++){var c=e[f];if(!c.invisible){var h=c.__clipPaths,p=h&&h.length||0,d=l&&l.length||0,v=void 0;for(v=Math.max(p-1,d-1);v>=0&&!(h&&l&&h[v]===l[v]);v--);for(var m=d-1;m>v;m--)o--,s=a[o-1];for(var g=v+1;g<p;g++){var y={};zM(h[g],y,t);var _=Ke("g","clip-g-"+u++,y,[]);(s?s.children:i).push(_),a[o++]=_,s=_}l=h;var x=i_(c,t);x&&(s?s.children:i).push(x)}}},r.prototype.resize=function(e,t){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),t!=null&&(i.height=t),n&&a&&(a.style.display="none",e=bn(n,0,i),t=bn(n,1,i),a.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,a){var o=a.style;o.width=e+"px",o.height=t+"px"}if(Ks(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";return e?(t=$0(t),t&&i+"base64,"+t):i+"charset=UTF-8,"+encodeURIComponent(t)},r})();function ZU(r){return function(){}}function XU(r,e,t,i){var n;if(t&&t!=="none")if(n=Ke("rect","bg",{width:r,height:e,x:"0",y:"0"}),mf(t))n_({fill:t},n.attrs,"fill",i);else if(Ks(t))a_({style:{fill:t},dirty:Ee,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",i);else{var a=Ki(t),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}var VM=jU;function p_(r){r.registerPainter("svg",VM)}function HM(r,e,t){var i=$e.createCanvas(),n=e.getWidth(),a=e.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",r)),i.width=n*t,i.height=a*t,i}function Ip(r){return!r.__cursors.get(Kv)}function GM(r){var e=r.__cursors.get(Kv);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var qU=(function(r){oe(e,r);function e(t,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Vo,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||Kn,typeof t=="string"?o=HM(t,i,n):Y(t)&&(o=t,t=o.id),a.id=t,a.dom=o;var s=o.style;return s&&(ju(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return e.prototype.afterBrush=function(){this.__prevIdx=GM(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=HM("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new re(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var b=new re(0,0,0,0);b.copy(x),o.push(b)}else{for(var S=!1,T=1/0,A=0,w=0;w<o.length;++w){var E=o[w];if(E.intersect(x)){var D=new re(0,0,0,0);D.copy(E),D.union(x),o[w]=D,S=!0;break}else if(l){u.copy(x),u.union(E);var I=x.width*x.height,M=E.width*E.height,L=u.width*u.height,P=L-I-M;P<T&&(T=P,A=w)}}if(l&&(o[A].union(x),S=!0),!S){var b=new re(0,0,0,0);b.copy(x),o.push(b)}l||(l=o.length>=s)}}for(var c=GM(this),h=c.startIdx;h<c.endIdx;++h){var p=t[h];if(p){var d=p.shouldBePainted(n,a,!0,!0),v=p.__isRendered&&(p.__dirty&Qe||!d)?p.getPrevPaintRect():null;v&&f(v);var m=d&&(p.__dirty&Qe||!p.__isRendered)?p.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,h=g.startIdx;h<g.endIdx;++h){var p=i[h],d=p&&p.shouldBePainted(n,a,!0,!0);if(p&&(!d||!p.__zr)&&p.__isRendered){var v=p.getPrevPaintRect();v&&f(v)}}var y;do{y=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var _=h+1;_<o.length;)o[h].intersect(o[_])?(y=!0,o[h].union(o[_]),o.splice(_,1)):_++;h++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=t+"px",o.height=i+"px"),a.width=t*n,a.height=i*n,s&&(s.width=t*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var p=this.domBack;function d(v,m,g,y){if(o.clearRect(v,m,g,y),i&&i!=="transparent"){var _=void 0;if(Ui(i)){var x=i.global||i.__width===g&&i.__height===y;_=x&&i.__canvasGradient||Yl(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=_,i.__width=g,i.__height=y}else J_(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,_=hh(o,i,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(v,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(p,v,m,g,y),o.restore())}!n||u?d(0,0,s,l):n.length&&C(n,function(v){d(v.x*c,v.y*c,v.width*c,v.height*c)})},e})(at),d_=qU;var YM=1e5,eo=314159,v_=void 0,KU=1,m_=2;function $U(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function QU(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}function WM(r,e,t,i){var n=new d_(r,e,e.dpr);return n.zlevel=t,n.zlevel2=i,n.__builtin__=!0,jM(n),n}function jM(r){r.__cursorStack=[],r.__cursors=V()}function JU(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function eV(r,e){var t=r.__cursors,i=+e;return t.get(i)||(r.__cursorStack.push(i),t.set(i,JU({key:i})))}function Lp(r,e){for(var t=r.__cursorStack,i=0;i<t.length;i++)e(r.__cursors.get(t[i]))}function g_(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function Dt(r,e,t){for(var i=r.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=r.layers[a][o];(!t||(!(t&Ou)||s.__builtin__)&&(!(t&y_)||!s.__builtin__)&&(!(t&ZM)||s!==r.hoverlayer))&&e(s,a,o,n)}}var Ou=1,y_=2,ZM=4,Pp=Ou|ZM,tV=(function(){function r(e,t,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=O({},i||{}),this.dpr=i.devicePixelRatio||Kn,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(ju(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=WM(l,this,eo,Vo);c.initContext(),this._insertLayer(c,eo,Vo,!0),this._domRoot=e}else{this._width=bn(e,0,i),this._height=bn(e,1,i);var s=this._domRoot=QU(this._width,this._height);e.appendChild(s)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t;e&&!Y(e)?t={paintAll:!!e}:t=e||{};var i=G(t.refresh,!0),n=G(t.refreshHover,!1);if(n&&(this._hoverLayerDirty=m_),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return Dt(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},y_),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=v_,i!==v_&&(!t&&i===m_&&(t=this._i.hoverlayer=this._ensureLayer(YM)),!!t)){t.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=t.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Sn(a,l,n),u&&(l.style=f)}}a&&(Va(a,n),a.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(YM)},r.prototype.paintOne=function(e,t){ph(e,t)},r.prototype._paintList=function(e,t,i){if(this._redrawId===i){var n=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),n)Dt(this._i,function(o){o.afterBrush&&o.afterBrush()},Pp),this._paintHoverList(e);else{var a=this;Zs(function(){a._paintList(e,t,i)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(eo).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),Dt(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,t,i)},Ou)},r.prototype._doPaintList=function(e,t){var i=this,n=!0;return Dt(this._i,function(a){var o=!1;if(Lp(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!Ip(a)?a.createRepaintRects(e,t,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,f,s)}Lp(a,function(c){var h=i._paintPerCursor(a,c,e,s,u);n=n&&h})}},Pp),se.wxa&&Dt(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},r.prototype._paintPerCursor=function(e,t,i,n,a){var o=e.ctx;if(n)if(!n.length)t.drawIdx=t.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,t,i,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,i,null,a),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=Ip(e),u=l&&$e.getTime(),f=t.drawIdx,c=t.notClearIdx,h=c>=0?Math.min(c,f):f;h<t.endIdx;h++){var p=i[h];if(!(h<f&&!p.notClear)){if(p.__inHover&&(this._hoverLayerDirty=m_),n!=null){var d=p.getPaintRect();d&&d.intersect(n)&&(Sn(s,p,o),p.setPrevPaintRect(d))}else Sn(s,p,o);if(l){var v=$e.getTime()-u;if(v>15){h++;break}}}}Va(s,o),t.drawIdx=Math.max(h,f)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,i){t=t||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=eo,t=0);var a=g_(this._i,e)[t];return a||(a=WM("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&de(a,this._layerConfig[e],!0),(i||n&&e!==eo)&&(a.virtual=!0),this._insertLayer(a,e,t,!1),a.initContext()),a},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,i,n){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[t]&&o[t][i])&&$U(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<t||s[c].zl===t&&s[c].zl2<i);)c++;if(c>0&&(u=g_(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:t,zl2:i}),g_(a,t)[i]=e,!n&&!e.virtual)if(u){var h=u.dom;h.nextSibling?l.insertBefore(e.dom,h.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(e,t){return Dt(this._i,function(i,n){e.call(t,i,n)})},r.prototype.eachBuiltinLayer=function(e,t){return Dt(this._i,function(i,n){e.call(t,i,n)},Ou)},r.prototype.eachOtherLayer=function(e,t){return Dt(this._i,function(i,n){e.call(t,i,n)},y_)},r.prototype.getLayers=function(){var e={};return Dt(this._i,function(t,i,n){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}Dt(i._i,function(m){m.__dirty=!1,Lp(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},Pp);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],h=a.zlevel,p=a.incremental,d=void 0;if(o!==h&&(o=h,u=!1),p?(u=!0,d=IS):d=u?MS:Vo,(!s||h!==s.zlevel||d!==s.zlevel2)&&(s=i._ensureLayer(h,d),l=null,!s.__builtin__)){ao("ZLevel "+h+" has been used by unknown layer "+s.id);continue}if((!l||p!==l.key)&&(l=eV(s,p),!l.used))if(l.used=!0,!t&&l.first===a.id){var v=f-l.startIdx;l.startIdx=f,l.drawIdx+=v,l.endIdx+=v}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&Qe&&!a.__inHover&&((!p||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),p&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Dt(i._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,_=g.length-1;_>=0;_--){var x=y.get(g[_]);if(!x.used)m.__dirty=!0,y.removeKey(g[_]),g.splice(_,1);else{var b=x.endIdxNew;(Ip(m)?b<x.drawIdx:b!==x.endIdx||!b||e[b-1].id!==x.last)&&(m.__dirty=!0),x.endIdx=x.endIdxNew,x.last=b?e[b-1].id:NaN}}m.__dirty&&(Lp(m,function(S){S.drawIdx=S.startIdx}),i._hoverLayerDirty===v_&&(i._hoverLayerDirty=KU))},Pp)},r.prototype.clear=function(){return Dt(this._i,function(e){e.clear(),jM(e)},Ou),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Dt(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?de(i[e],t,!0):i[e]=t,Dt(this._i,function(n,a){de(n,i[a],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,i=this._i.layers,n=t.length-1;n>=0;n--){var a=t[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(t.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;e!=null&&(n.width=e),t!=null&&(n.height=t),e=bn(a,0,n),t=bn(a,1,n),i.style.display="",(this._width!==e||t!==this._height)&&(i.style.width=e+"px",i.style.height=t+"px",Dt(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(eo).resize(e,t)}return this},r.prototype.clearLayer=function(e){C(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[eo][0].dom;var t=new d_("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var i=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,a=t.dom.height;Dt(this._i,function(c){c.__builtin__?i.drawImage(c.dom,0,0,n,a):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Sn(i,f,o)}Va(i,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})(),XM=tV;function __(r){r.registerPainter("canvas",XM)}var Op="http://www.w3.org/2001/XMLSchema#",rV=new Set(["integer","decimal","float","double","long","int","short","byte","nonNegativeInteger","positiveInteger","negativeInteger","nonPositiveInteger","unsignedLong","unsignedInt","unsignedShort","unsignedByte"].map(r=>Op+r)),iV=new Set(["date","dateTime","dateTimeStamp","gYear","gYearMonth"].map(r=>Op+r)),nV=/^[+-]?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?$/;function KM(r){if(!r||r.type!=="literal"&&r.type!=="typed-literal")return!1;if(r.datatype){if(rV.has(r.datatype))return!0;if(r.datatype!==Op+"string")return!1}return r["xml:lang"]?!1:nV.test(r.value.trim())}function $M(r){return!r||r.type!=="literal"&&r.type!=="typed-literal"?!1:!!r.datatype&&iV.has(r.datatype)}function Ru(r){if(!KM(r))return null;let e=Number(r.value.trim());return Number.isFinite(e)?e:null}function x_(r){if(!$M(r))return null;let e=r.value.trim(),t=r.datatype.substring(Op.length);t==="gYear"?e=`${e.substring(0,4)}-01-01`:t==="gYearMonth"&&(e=`${e.substring(0,7)}-01`);let i=/^(-?\d{4,}-\d{2}-\d{2})(Z|[+-]\d{2}:\d{2})?$/.exec(e);i?e=`${i[1]}T00:00:00Z`:/(Z|[+-]\d{2}:\d{2})$/.test(e)||(e=`${e}Z`);let n=Date.parse(e);return Number.isNaN(n)?null:n}function b_(r){if(!r)return null;let e=r.json&&r.json.head?r.json:r;if(e&&e.head&&Array.isArray(e.head.vars)&&e.head.vars.length>0&&e.results&&Array.isArray(e.results.bindings))return e;if(typeof r.getVariables=="function"&&typeof r.getBindings=="function"){let t=r.getVariables(),i=r.getBindings();if(Array.isArray(t)&&t.length>0&&Array.isArray(i))return{head:{vars:t},results:{bindings:i}}}return null}function aV(r,e){let t=0,i=0,n=0,a=0,o=new Set;for(let l of e){let u=l[r];u&&(t++,o.add(u.value),u.type==="uri"?a++:$M(u)?n++:KM(u)&&i++)}let s="text";return t>0&&(i===t?s="numeric":n===t?s="date":a===t&&(s="iri")),{name:r,kind:s,bound:t,distinct:o.size}}function qM(r,e,t,i=!1){let n=new Map;for(let a of t){let o=a[r];if(!o)continue;let s=a[e];if(!s)return!1;let l=n.get(o.value);if(l!==void 0&&l!==s.value)return!1;n.set(o.value,s.value)}return i&&new Set(n.values()).size!==n.size?!1:n.size>0}var oV=["Label","_label","label","Name","_name","name"];function S_(r){let e=r.results.bindings,t=r.head.vars.map(o=>aV(o,e)),i=new Map(t.map(o=>[o.name,o])),n=t.filter(o=>o.kind==="text"),a=t.filter(o=>o.kind==="iri");for(let o of a){let s=oV.map(l=>i.get(o.name+l)).find(l=>l&&l.kind==="text"&&!l.isLabel&&qM(o.name,l.name,e));if(!s&&a.length===1&&n.length===1){let l=n[0];!l.isLabel&&qM(o.name,l.name,e,!0)&&(s=l)}s&&(o.labelColumn=s.name,s.isLabel=!0)}return t}function T_(r){return r.some(e=>e.kind==="numeric")}var sV=/^[A-Za-z0-9_](?:[A-Za-z0-9_\-.]*[A-Za-z0-9_\-])?$/,lV=/^(?:[A-Za-z][A-Za-z0-9_\-.]*[A-Za-z0-9_\-]|[A-Za-z])?$/;function Rp(r){let e={};if(!r||typeof r!="object")return e;for(let[t,i]of Object.entries(r))typeof i!="string"||!i||/[<>"{}|\\^`\s]/.test(i)||lV.test(t)&&(e[t]=i);return e}function Nu(r,e){let t=null;for(let[n,a]of Object.entries(e))r.startsWith(a)&&(!t||a.length>t.namespace.length)&&(t={prefix:n,namespace:a});if(!t)return null;let i=r.substring(t.namespace.length);return i!==""&&!sV.test(i)?null:`${t.prefix}:${i}`}function uV(r,e){var t;return(t=Nu(r,e))!=null?t:`<${r.replace(/[<>"{}|\\^`\s]/g,encodeURIComponent)}>`}function QM(r,e,t={}){let i=Rp(t),n=uV(r,i),a=e==="subject"?`${n} ?p ?o`:`?s ?p ${n}`,o=Object.entries(i).map(([l,u])=>`PREFIX ${l}: <${u}>`).join(`
|
|
21
|
+
`),s=`CONSTRUCT {
|
|
22
|
+
${a} .
|
|
23
|
+
}
|
|
24
|
+
WHERE {
|
|
25
|
+
${a} .
|
|
26
|
+
}`;return o?`${o}
|
|
27
|
+
|
|
28
|
+
${s}`:s}function C_(r){return r==="subject"?"as subject":"as object"}function Np(r,e,t,i){if(!r)return"(none)";if(r.type==="uri"){let n=t!=null&&t.labelColumn?e[t.labelColumn]:void 0;return n&&n.value?n.value:Nu(r.value,i)||r.value}return r.type==="bnode"?`_:${r.value}`:r.value}function w_(r){return r?`${r.type}\0${r.value}`:"\0none"}function fV(r,e){return e.kind==="date"?x_(r):Ru(r)}function cV(r){return r<=1?1:Math.min(50,Math.max(1,Math.ceil(Math.log2(r)+1)))}function hV(r,e){if(r.length===0)return{kind:"histogram",column:e,bins:[]};let t=1/0,i=-1/0;for(let s of r)s<t&&(t=s),s>i&&(i=s);if(t===i)return{kind:"histogram",column:e,bins:[{from:t,to:i,count:r.length}]};let n=cV(r.length),a=(i-t)/n,o=Array.from({length:n},(s,l)=>({from:t+l*a,to:l===n-1?i:t+(l+1)*a,count:0}));for(let s of r){let l=Math.min(n-1,Math.floor((s-t)/a));o[l].count++}return{kind:"histogram",column:e,bins:o}}function pV(r,e){return e?r.chartType==="scatter"?!0:r.chartType==="line"||r.chartType==="area"?e.kind==="numeric"||e.kind==="date":!1:!1}function JM(r,e,t,i){let n=new Map(e.map(m=>[m.name,m])),a=t.category?n.get(t.category):void 0,o=t.series?n.get(t.series):void 0,s=t.values;if(t.chartType==="histogram"||!a){let m=s[0]||"",g=[];for(let y of r){let _=Ru(y[m]);_!==null&&g.push(_)}return hV(g,m)}let l=(m,g)=>m===null?g:s.length>1?`${m} \u2013 ${g}`:m;if(pV(t,a)){let m=new Map,g=e.find(_=>_.kind==="iri"&&_.name!==a.name&&_.name!==(o==null?void 0:o.name));for(let _ of r){let x=fV(_[a.name],a);if(x===null)continue;let b=o?_[o.name]:void 0,S=o?Np(b,_,o,i):null;for(let T of s){let A=Ru(_[T]);if(A===null)continue;let w=`${w_(b)}${T}`,E=m.get(w);E||(E={name:l(S,T),iri:(b==null?void 0:b.type)==="uri"?b.value:void 0,points:[]},m.set(w,E));let D=g?_[g.name]:void 0;E.points.push({x,y:A,label:D?Np(D,_,g,i):void 0,iri:(D==null?void 0:D.type)==="uri"?D.value:void 0})}}let y=[...m.values()];if(t.chartType!=="scatter")for(let _ of y)_.points.sort((x,b)=>x.x-b.x);return{kind:"xy",xAxis:a.kind==="date"?"time":"value",xName:a.name,series:y}}let u=[],f=new Map,c=[],h=new Map,p=new Map;for(let m of r){let g=m[a.name],y=w_(g),_=f.get(y);_===void 0&&(_=u.length,f.set(y,_),u.push({key:y,label:Np(g,m,a,i),iri:(g==null?void 0:g.type)==="uri"?g.value:void 0}),c.push(a.kind==="date"?x_(g):null));let x=o?m[o.name]:void 0,b=o?Np(x,m,o,i):null;for(let S of s){let T=Ru(m[S]);if(T===null)continue;let A=`${w_(x)}${S}`;h.has(A)||(h.set(A,{name:l(b,S),iri:(x==null?void 0:x.type)==="uri"?x.value:void 0,values:[]}),p.set(A,new Map));let w=p.get(A);w.set(_,(w.get(_)||0)+T)}}let d=u.map((m,g)=>g);a.kind==="date"&&(d=d.sort((m,g)=>{var y,_;return((y=c[m])!=null?y:0)-((_=c[g])!=null?_:0)}));let v=[];for(let[m,g]of h){let y=p.get(m);g.values=d.map(_=>y.has(_)?y.get(_):null),v.push(g)}return{kind:"category",categories:d.map(m=>u[m]),series:v}}var dV="Ctrl+click to show its triples";function Vr(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ku(r){return r==null||Number.isNaN(r)?"\u2013":Number.isInteger(r)?r.toLocaleString("en-US"):r.toLocaleString("en-US",{maximumFractionDigits:4})}function A_(r,e){return r?`${r!==e?`<div class="chart-tooltip-iri">${Vr(r)}</div>`:""}<div class="chart-tooltip-hint">${dV}</div>`:""}function E_(r,e){return{color:r.palette,backgroundColor:"transparent",animation:e<=2e3,textStyle:{color:r.text,fontFamily:"inherit"},tooltip:{confine:!0,backgroundColor:r.tooltipBackground,borderColor:r.border,textStyle:{color:r.text},extraCssText:"max-width: 420px; white-space: normal;"}}}function Es(r){return{axisLine:{lineStyle:{color:r.border}},axisTick:{lineStyle:{color:r.border}},axisLabel:{color:r.textMuted},splitLine:{lineStyle:{color:r.border,opacity:.5}},nameTextStyle:{color:r.textMuted}}}function kp(r,e){return{show:e,type:"scroll",top:0,textStyle:{color:r.text},pageTextStyle:{color:r.textMuted},pageIconColor:r.text,pageIconInactiveColor:r.border}}function vV(r,e,t){let i=r.categories.length*Math.max(1,r.series.length),n=E_(t,i),a=r.categories.map(c=>c.label);if(e.chartType==="pie"||e.chartType==="donut"){let c=r.series[0],h=c?c.values:[];return n.tooltip.trigger="item",n.tooltip.formatter=p=>{let d=r.categories[p.data.categoryIndex];return`<strong>${Vr(d.label)}</strong><br/>${Vr((c==null?void 0:c.name)||"")}: ${ku(p.value)} (${p.percent}%)`+A_(d.iri,d.label)},n.legend=kp(t,r.categories.length<=30),n.series=[{type:"pie",name:(c==null?void 0:c.name)||"",radius:e.chartType==="donut"?["40%","70%"]:"70%",center:["50%","55%"],avoidLabelOverlap:!0,itemStyle:{borderColor:t.background,borderWidth:1},label:{color:t.text,formatter:"{b}: {d}%"},data:r.categories.map((p,d)=>({name:p.label,value:h[d],categoryIndex:d})).filter(p=>p.value!==null&&p.value!==void 0&&p.value>0)}],n}let o=e.chartType==="horizontal-bar",s=e.chartType==="line"||e.chartType==="area",l=e.chartType==="stacked-bar",u={type:"category",data:a,...Es(t),axisLabel:{color:t.textMuted,hideOverlap:!0,rotate:!o&&a.length>8?35:0,overflow:"truncate",width:o?160:120},boundaryGap:!s};o&&(u.inverse=!0);let f={type:"value",...Es(t)};if(r.series.length===1&&(f.name=r.series[0].name,o&&Object.assign(f,{nameLocation:"middle",nameGap:28})),n.grid={left:16,right:24,top:r.series.length>1?40:30,bottom:o&&f.name?36:16,containLabel:!0},n.xAxis=o?f:u,n.yAxis=o?u:f,n.legend=kp(t,r.series.length>1),n.tooltip.trigger="axis",n.tooltip.axisPointer={type:s?"line":"shadow"},n.tooltip.formatter=c=>{let h=Array.isArray(c)?c:[c];if(h.length===0)return"";let p=r.categories[h[0].dataIndex],d=h.filter(v=>v.value!==null&&v.value!==void 0).map(v=>`${v.marker}${Vr(v.seriesName)}: <strong>${ku(v.value)}</strong>`).join("<br/>");return`<strong>${Vr(p.label)}</strong><br/>${d}${A_(p.iri,p.label)}`},a.length>40){let c=o?{yAxisIndex:0}:{xAxisIndex:0},h=Math.min(100,Math.max(5,40/a.length*100));n.dataZoom=[{type:"inside",...c,start:0,end:h},{type:"slider",...c,start:0,end:h,textStyle:{color:t.textMuted},borderColor:t.border,...o?{right:4,width:18}:{bottom:4,height:18}}],n.grid[o?"right":"bottom"]=36}return n.series=r.series.map(c=>({type:s?"line":"bar",name:c.name,data:c.values,stack:l?"total":void 0,areaStyle:e.chartType==="area"?{opacity:.25}:void 0,connectNulls:s,showSymbol:s&&a.length<=100,emphasis:{focus:"series"},large:!s&&a.length>1e3})),n}function mV(r,e,t){let i=r.series.reduce((s,l)=>s+l.points.length,0),n=E_(t,i),a=e.chartType==="scatter",o=s=>r.xAxis==="time"?new Date(s).toISOString().replace("T00:00:00.000Z","").replace(".000Z","Z"):ku(s);return n.grid={left:16,right:24,top:r.series.length>1?40:30,bottom:36,containLabel:!0},n.xAxis={type:r.xAxis,name:r.xName,nameLocation:"middle",nameGap:28,scale:r.xAxis==="value",...Es(t)},n.yAxis={type:"value",scale:a,...Es(t)},r.series.length===1&&(n.yAxis.name=r.series[0].name),n.legend=kp(t,r.series.length>1),n.tooltip.trigger="item",n.tooltip.formatter=s=>{var f;let l=(f=r.series[s.seriesIndex])==null?void 0:f.points[s.dataIndex];return l?(l.label?`<strong>${Vr(l.label)}</strong><br/>`:"")+`${Vr(r.xName)}: ${Vr(o(l.x))}<br/>${s.marker}${Vr(s.seriesName)}: <strong>${ku(l.y)}</strong>`+A_(l.iri,l.label||""):""},n.series=r.series.map(s=>({type:a?"scatter":"line",name:s.name,data:s.points.map(l=>[l.x,l.y]),symbolSize:a?8:4,showSymbol:!a&&s.points.length<=100,areaStyle:e.chartType==="area"?{opacity:.25}:void 0,emphasis:{focus:"series"},large:a&&s.points.length>2e3})),n}function gV(r,e){let t=E_(e,r.bins.length),i=r.bins.length>0?r.bins[0].to-r.bins[0].from:0,n=i>0?Math.min(6,Math.max(0,Math.ceil(-Math.log10(i))+1)):2,a=s=>s.toLocaleString("en-US",{maximumFractionDigits:n}),o=r.bins.map(s=>s.from===s.to?a(s.from):`${a(s.from)} \u2013 ${a(s.to)}`);return t.grid={left:16,right:24,top:30,bottom:44,containLabel:!0},t.xAxis={type:"category",data:o,name:r.column,nameLocation:"middle",nameGap:40,...Es(e),axisLabel:{color:e.textMuted,hideOverlap:!0,rotate:o.length>6?30:0}},t.yAxis={type:"value",name:"Count",minInterval:1,...Es(e)},t.legend=kp(e,!1),t.tooltip.trigger="axis",t.tooltip.axisPointer={type:"shadow"},t.tooltip.formatter=s=>{let l=Array.isArray(s)?s[0]:s;return`${Vr(r.column)}: ${Vr(o[l.dataIndex])}<br/>Count: <strong>${ku(l.value)}</strong>`},t.series=[{type:"bar",name:"Count",data:r.bins.map(s=>s.count),barCategoryGap:"4%"}],t}function eI(r,e,t){return r.kind==="histogram"?gV(r,t):r.kind==="xy"?mV(r,e,t):vV(r,e,t)}function tI(r,e){var t;if(r.kind==="category"){let i=e.data&&typeof e.data=="object"&&typeof e.data.categoryIndex=="number"?e.data.categoryIndex:e.dataIndex,n=i!==void 0?r.categories[i]:void 0;return n!=null&&n.iri?n.iri:e.seriesIndex!==void 0?(t=r.series[e.seriesIndex])==null?void 0:t.iri:void 0}if(r.kind==="xy"){let i=e.seriesIndex!==void 0?r.series[e.seriesIndex]:void 0,n=i&&e.dataIndex!==void 0?i.points[e.dataIndex]:void 0;return(n==null?void 0:n.iri)||(i==null?void 0:i.iri)}}var D_=[{value:"bar",label:"Bar"},{value:"stacked-bar",label:"Stacked bar"},{value:"horizontal-bar",label:"Horizontal bar"},{value:"line",label:"Line"},{value:"area",label:"Area"},{value:"pie",label:"Pie"},{value:"donut",label:"Donut"},{value:"scatter",label:"Scatter"},{value:"histogram",label:"Histogram"}],yV=new Set(D_.map(r=>r.value)),_V=12;function xV(r){return typeof r=="string"&&yV.has(r)}function M_(r){if(!r||typeof r!="object")return{};let e=r,t={};return xV(e.chartType)&&(t.chartType=e.chartType),typeof e.category=="string"&&(t.category=e.category),Array.isArray(e.values)&&(t.values=e.values.filter(i=>typeof i=="string")),typeof e.series=="string"&&(t.series=e.series),Array.isArray(e.columns)&&(t.columns=e.columns.filter(i=>typeof i=="string")),t}function rI(r,e){return r.columns?r.columns.length===e.length&&r.columns.every((i,n)=>i===e[n])?r:{}:r}function Bp(r){return r.filter(e=>!e.isLabel&&e.bound>0)}function bV(r){return Bp(r).find(e=>e.kind!=="numeric")||null}function SV(r,e,t,i){return!e||t.length!==1||e.distinct>=i?null:Bp(r).find(n=>n.name!==e.name&&n.kind!=="numeric"&&n.distinct>1&&n.distinct<=_V&&n.name!==e.labelColumn)||null}function iI(r,e,t){let i=new Map(r.map(f=>[f.name,f])),n=r.filter(f=>f.kind==="numeric"),a=null,o=e.category!==void 0?i.get(e.category):void 0;o&&!o.isLabel?a=o:(a=bV(r),!a&&n.length>=2&&(a=n[0]));let s=(e.values||[]).filter(f=>{var c;return((c=i.get(f))==null?void 0:c.kind)==="numeric"&&f!==(a==null?void 0:a.name)});s.length===0&&(s=n.filter(f=>f.name!==(a==null?void 0:a.name)).map(f=>f.name));let l=null;if(e.series!==void 0){let f=i.get(e.series);f&&f.name!==(a==null?void 0:a.name)&&!s.includes(f.name)&&(l=f)}else l=SV(r,a,s,t);let u;return e.chartType?u=e.chartType:a?a.kind==="date"?u="line":a.kind==="numeric"?u="scatter":u="bar":u="histogram",{chartType:u,category:a?a.name:null,values:s,series:l?l.name:null}}var TV={numeric:"number",date:"date",iri:"IRI",text:"text"};function zp(r,e){let t=document.createElement("label");t.className="chart-toolbar-field";let i=document.createElement("span");return i.className="chart-toolbar-label",i.textContent=r,t.appendChild(i),t.appendChild(e),t}function I_(r,e,t,i){let n=document.createElement("select");n.className=`chart-toolbar-select ${r}`;for(let a of e){let o=document.createElement("option");o.value=a.value,o.textContent=a.label,o.selected=a.value===t,n.appendChild(o)}return n.value=t,n.addEventListener("change",()=>i(n.value)),n}function L_(r,e,t,i){let n=document.createElement("button");return n.type="button",n.className=`chart-toolbar-button ${r}`,n.textContent=e,n.title=t,n.addEventListener("click",i),n}function nI(r){return`${r.name} (${TV[r.kind]})`}function aI(r,e){var y,_;let{columns:t,resolved:i}=r,n=document.createElement("div");n.className="chart-toolbar";let a=()=>{var x,b;return{chartType:i.chartType,category:(x=i.category)!=null?x:void 0,values:[...i.values],series:(b=i.series)!=null?b:""}},o=i.chartType==="histogram",s=i.chartType==="pie"||i.chartType==="donut";n.appendChild(zp("Chart",I_("chart-type-select",D_,i.chartType,x=>e.onChange({...a(),chartType:x}))));let l=Bp(t),u=I_("chart-category-select",l.map(x=>({value:x.name,label:nI(x)})),(y=i.category)!=null?y:"",x=>{var S;let b=a();b.category=x,b.values=(S=b.values)==null?void 0:S.filter(T=>T!==x),b.series===x&&(b.series=""),e.onChange(b)});u.disabled=o||l.length===0,n.appendChild(zp(s?"Slices":i.chartType==="horizontal-bar"?"Y axis":"X axis",u));let f=t.filter(x=>x.kind==="numeric"&&x.name!==i.category),c=document.createElement("details");c.className="chart-values-picker";let h=document.createElement("summary");h.className="chart-toolbar-select",h.textContent=i.values.length>0?i.values.join(", "):"None",c.appendChild(h);let p=document.createElement("div");p.className="chart-values-list";let d=o||s;for(let x of f){let b=document.createElement("label");b.className="chart-values-item";let S=document.createElement("input");S.type=d?"radio":"checkbox",S.name="chart-values",S.value=x.name,S.checked=d?i.values[0]===x.name:i.values.includes(x.name),S.addEventListener("change",()=>{let T;if(d)T=[x.name];else if(T=f.map(A=>A.name).filter(A=>A===x.name?S.checked:i.values.includes(A)),T.length===0){S.checked=!0;return}e.onChange({...a(),values:T})}),b.appendChild(S),b.appendChild(document.createTextNode(` ${x.name}`)),p.appendChild(b)}c.appendChild(p),n.appendChild(zp(o?"Value":s?"Size":"Values",c));let v=[{value:"",label:"None"}].concat(l.filter(x=>x.name!==i.category&&!i.values.includes(x.name)).map(x=>({value:x.name,label:nI(x)}))),m=I_("chart-series-select",v,(_=i.series)!=null?_:"",x=>e.onChange({...a(),series:x}));m.disabled=o||s||v.length<=1,n.appendChild(zp("Series",m)),r.customised&&n.appendChild(L_("chart-reset-button","Auto","Go back to the automatic chart for these results",e.onReset));let g=document.createElement("div");return g.className="chart-toolbar-spacer",n.appendChild(g),n.appendChild(L_("chart-export-png","PNG","Download the chart as a PNG image",()=>e.onExport("png"))),n.appendChild(L_("chart-export-svg","SVG","Download the chart as an SVG image",()=>e.onExport("svg"))),n}var CV=["#2f6fb0","#e07b39","#3a9a5b","#c94f5d","#7d5ab5","#2a9d9d","#c9a227","#8c6d52","#d35fa6","#6b7a8f"],wV=["#6aa6e8","#f29b5c","#5cc483","#ec7b87","#a98be0","#4fc4c4","#e6c454","#b8977a","#ef8cc8","#9aa8bb"];function AV(){return typeof document=="undefined"?"light":document.documentElement.getAttribute("data-theme")==="dark"?"dark":"light"}function Fp(){let r=AV()==="dark",e=getComputedStyle(document.documentElement),t=(i,n)=>e.getPropertyValue(i).trim()||n;return{dark:r,text:t("--yasgui-text-primary",r?"#e0e0e0":"#222222"),textMuted:t("--yasgui-text-secondary",r?"#aaaaaa":"#666666"),border:t("--yasgui-border-color",r?"#444444":"#d0d0d0"),background:t("--yasgui-bg-primary",r?"#1e1e1e":"#ffffff"),tooltipBackground:t("--yasgui-bg-secondary",r?"#2a2a2a":"#ffffff"),palette:r?wV:CV}}function oI(r){let e=new MutationObserver(t=>{t.some(i=>i.attributeName==="data-theme")&&r()});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),e}var to="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Ds="http://www.w3.org/2001/XMLSchema#",Up="http://www.w3.org/2000/10/swap/",vt={xsd:{decimal:`${Ds}decimal`,boolean:`${Ds}boolean`,dateTime:`${Ds}dateTime`,double:`${Ds}double`,integer:`${Ds}integer`,string:`${Ds}string`},rdf:{type:`${to}type`,nil:`${to}nil`,first:`${to}first`,rest:`${to}rest`,langString:`${to}langString`,dirLangString:`${to}dirLangString`,reifies:`${to}reifies`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${Up}reify#forSome`,forAll:`${Up}reify#forAll`},log:{implies:`${Up}log#implies`,isImpliedBy:`${Up}log#isImpliedBy`}};var{xsd:Vp}=vt,Ms=32,Is=9,R_=10,Ls=13,fI=35,z_=46,cI=58,EV=48,DV=57,MV=37,IV=92;function hI(r){return r===Ms||r>=Is&&r<=Ls||r>=160&&(r===160||r===5760||r>=8192&&r<=8202||r===8232||r===8233||r===8239||r===8287||r===12288||r===65279)}var pI=new Uint8Array(128);for(let r of`,;!^#()[]{}"'<>
|
|
29
|
+
\v\f\r`)pI[r.charCodeAt(0)]=1;function LV(r){return r<128?pI[r]===1:hI(r)}function PV(r,e,t){let i=r.charCodeAt(e);return i===z_&&(i=r.charCodeAt(++e)),e>=r.length?t:LV(i)}var sI={"\\":"\\","'":"'",'"':'"',n:`
|
|
30
|
+
`,r:"\r",t:" ",f:"\f",b:"\b"},dI={_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","'":"'","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},OV=/[\x00-\x20<>\\"\{\}\|\^\`]/,vI=1,mI=2,Hp=4,N_=8,gI=16,Bu=new Uint8Array(128);for(let r=0;r<128;r++){let e=String.fromCharCode(r),t=e>="A"&&e<="Z"||e>="a"&&e<="z",i=t||e==="_"||e==="-"||e>="0"&&e<="9";Bu[r]=(t?vI:0)|(i&&e!=="-"||e===":"?mI:0)|(i?Hp:0)|(i||e===":"?N_:0)|(e in dI?gI:0)}function k_(r,e,t){let i=r.charCodeAt(e);if(i<128)return(Bu[i]&t)!==0?1:0;if(i>=55296&&i<=56191){let n=r.charCodeAt(e+1);return n>=56320&&n<=57343?2:0}return t>=Hp&&(i===183||i>=768&&i<=879||i===8255||i===8256)||i>=192&&i<=8191&&i!==215&&i!==247&&(i<768||i>=880&&i!==894)||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533?1:0}function RV(r){return r<128&&(Bu[r]&gI)!==0}function lI(r){return r>=EV&&r<=DV||r>=65&&r<=70||r>=97&&r<=102}function B_(r,e){let t=k_(r,e,vI);for(;t!==0;){e+=t;let i=r.charCodeAt(e)===z_?e+1:e,n=r.charCodeAt(i);t=n<128?(Bu[n]&Hp)!==0?1:0:k_(r,i,Hp),t!==0&&(e=i)}return e}function NV(r,e){let t=e,i=mI;for(;;){let n=r.charCodeAt(e),a=n<128?(Bu[n]&i)!==0?1:0:k_(r,e,i);if(a===0&&n===MV&&lI(r.charCodeAt(e+1))&&lI(r.charCodeAt(e+2))?a=3:a===0&&n===IV&&RV(r.charCodeAt(e+1))&&(a=2),a!==0)t=e+=a,i=N_;else if(n===z_&&i===N_)e++;else return t}}function uI(r,e,t){let i=B_(r,e);if(r.charCodeAt(i)!==cI)return-1;let n=NV(r,i+1);return PV(r,n,t)?n:-1}function kV(r){return r<=1114111&&(r<55296||r>57343)}var BV={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_commentLine:!0,_whitespace:!0},zV=/$0^/,FV=/\S*/y;function Mt(r,e,t){return r.lastIndex=t,r.exec(e)}function P_(r,e,t){return r.lastIndex=t,r.test(e)}function O_(r,e,t){return r.lastIndex=0,r.exec(`${e.slice(t)} `)}function UV(r){return r===Ms||r===Is||r===R_||r===Ls||r===fI}var VV=/^(?:prefix|base|version|graph|forsome|forall|iri|a|true|false|has|is|of|id)$/i,HV=1024,Ps=class{constructor(e){if(this._iri=/<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/y,this._unescapedIri=/<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/y,this._simpleQuotedString=/"([^"\\\r\n]*)"(?=[^"])/y,this._simpleApostropheString=/'([^'\\\r\n]*)'(?=[^'])/y,this._langcode=/@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9])/iy,this._variable=/\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-9:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/y,this._blank=/_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:!\^\s#()\[\]\{\}"'<>]))/y,this._number=/[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?\d+|(?=\.?\d)\d*(?:(\.)\d+)?)(?=\.?[,;:!\^\s#()\[\]\{\}"'<>])/y,this._boolean=/(?:true|false)(?=[.,;!\^\s#()\[\]\{\}"'<>])/y,this._atKeyword=/@[a-z]+(?=[\s#<:"'.])/iy,this._keyword=/(?:PREFIX|BASE|VERSION|GRAPH)(?=[\s#<"'])/iy,this._n3Verb=/(?:has|is|of)(?=[\s#()\[\]\{\}"'<>?_+\-0-9])/y,this._n3Id=/id(?=[\s#<])/y,this._shortPredicates=/a(?=[\s#()\[\]\{\}"'<>])/y,this._commentLine=/[ \t]*#([^\n\r]*)(?:\r\n|\n|\r)([ \t]*)/y,this._whitespace=/[ \t]+/y,e=e||{},this._isImpliedBy=e.isImpliedBy,this._lineMode=!!e.lineMode){this._n3Mode=!1;for(let t in this)!(t in BV)&&this[t]instanceof RegExp&&(this[t]=zV);this._keyword=/VERSION(?=[\s#<"])/y}else this._n3Mode=e.n3!==!1;if(this._directive=null,e.directives&&e.directives.length!==0){for(let t of e.directives)if(!/^[a-z]+$/i.test(t)||VV.test(t))throw new Error(`Invalid directive name: "${t}"`);this._directive=new RegExp(`(?:${e.directives.join("|")})(?=[\\s#<])`,"iy"),this._directiveMaxLength=Math.max(...e.directives.map(t=>t.length)),this._directiveStarts=e.directives.map(t=>t[0].toLowerCase()+t[0].toUpperCase()).join("")}this.comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,t){let i=this._input,n=0,a=this._linePosition+i.length;for(;;){for(;;){let T=i.charCodeAt(n),A=0;if(T===Ms||T===Is){let w=i.charCodeAt(n+1);A=w===Ms||w===Is?Mt(this._whitespace,i,n)[0].length:1,T=i.charCodeAt(n+A)}if(T===fI){let w=Mt(this._commentLine,i,n);if(w){let E=w[0].length;if(!t&&n+E===i.length&&i.charCodeAt(i.length-1)===Ls)return this._suspend(i,n,a);this.comments&&o(w[1],this._line,a-(i.length-n)+A),n+=E,a=i.length-n+w[2].length,this._line++}else{if(n+=A,!t)return this._suspend(i,n,a);this.comments&&o(i.slice(n+1),this._line,a-(i.length-n)),n=i.length;break}}else if(T===R_||T===Ls){if(!t&&T===Ls&&n+A+1===i.length)return this._suspend(i,n,a);A+=T===Ls&&i.charCodeAt(n+A+1)===R_?2:1;let w=0,E=i.charCodeAt(n+A);if(E===Ms||E===Is){let D=i.charCodeAt(n+A+1);w=D===Ms||D===Is?Mt(this._whitespace,i,n+A)[0].length:1}n+=A+w,a=i.length-n+w,this._line++}else{n+=A;break}}if(n>=i.length)return t&&this._previousMarker==="^^"?l(this,i,n):(this._linePosition=a,t?(s("eof","","",this._line,a,0),this._input=null):this._input="");let u=this._line,f=i[n],c="",h="",p="",d=null,v=0,m=0,g=0,y=!1,_=!1;switch(f){case"^":if(this._previousMarker==="^^")return l(this,i,n);if(i.length-n<3)break;if(i[n+1]==="^"){if(this._previousMarker="^^",n+=2,i[n]!=="<"){if(UV(i.charCodeAt(n)))continue;y=!0;break}}else{this._n3Mode&&(v=1,c="^");break}case"<":if(d=Mt(this._unescapedIri,i,n))c="IRI",h=d[1],m=d[1].length+2;else if(d=Mt(this._iri,i,n)){if(h=this._unescape(d[1],sI),h===null||OV.test(h))return l(this,i,n);c="IRI",m=d[1].length+2}else i.length-n>2&&i[n+1]==="<"&&i[n+2]==="("?(c="<<(",v=3):!this._lineMode&&i.length-n>(t?1:2)&&i[n+1]==="<"?(c="<<",v=2):this._n3Mode&&i.length-n>1&&i[n+1]==="="?(v=2,this._isImpliedBy?(c="abbreviation",h="<"):(c="inverse",h=">")):this._n3Mode&&i.length-n>1&&i[n+1]==="-"&&(c="inversePredicate",v=2);break;case">":i.length-n>1&&i[n+1]===">"&&(c=">>",v=2);break;case"_":((d=Mt(this._blank,i,n))||t&&(d=O_(this._blank,i,n)))&&(c="blank",p="_",h=d[1],m=d[1].length+2);break;case'"':if(d=Mt(this._simpleQuotedString,i,n))h=d[1];else if({value:h,matchLength:v,finalLineLength:g,tripleQuoted:_}=this._parseLiteral(i,n),h===null)return l(this,i,n);(d!==null||v!==0)&&(c="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(d=Mt(this._simpleApostropheString,i,n))h=d[1];else if({value:h,matchLength:v,finalLineLength:g,tripleQuoted:_}=this._parseLiteral(i,n),h===null)return l(this,i,n);(d!==null||v!==0)&&(c="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(d=Mt(this._variable,i,n))&&(c="var",h=d[0]);break;case"@":if(this._previousMarker==="literal"&&(d=Mt(this._langcode,i,n))&&d[1]!=="version"){let T=n+d[0].length;!t&&i[T]==="-"&&i[T+1]!=="-"?d=null:(c="langcode",h=d[1])}else(d=Mt(this._atKeyword,i,n))&&(c=d[0]);break;case".":if(i.length-n===1?t:i[n+1]<"0"||i[n+1]>"9"){c=".",v=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":if(i[n+1]==="-"){this._previousMarker==="langcode"&&(i.startsWith("--ltr",n)?(c="dircode",h="ltr",v=5):i.startsWith("--rtl",n)&&(c="dircode",h="rtl",v=5));break}(d=Mt(this._number,i,n)||t&&(d=O_(this._number,i,n)))&&(c="literal",h=d[0],p=typeof d[1]=="string"?Vp.double:typeof d[2]=="string"?Vp.decimal:Vp.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":case"V":case"v":(d=Mt(this._keyword,i,n))?c=d[0].toUpperCase():y=!0;break;case"f":case"t":P_(this._boolean,i,n)?(c="literal",h=f==="t"?"true":"false",p=Vp.boolean,v=h.length):y=!0;break;case"a":P_(this._shortPredicates,i,n)?(c="abbreviation",h="a",v=1):y=!0;break;case"h":case"o":this._n3Mode&&(d=this._matchN3Verb(i,n,t))?c=d[0]:y=!0;break;case"i":this._n3Mode&&P_(this._n3Id,i,n)?(c="id",v=2):this._n3Mode&&(d=this._matchN3Verb(i,n,t))?c=d[0]:y=!0;break;case"=":this._n3Mode&&i.length-n>1&&(c="abbreviation",i[n+1]!==">"?(v=1,h="="):(v=2,h=">"));break;case"!":if(!this._n3Mode)break;case")":if(!t&&(i.length-n===1||i.length-n===2&&i[n+1]===">"))break;if(i.length-n>2&&i[n+1]===">"&&i[n+2]===">"){c=")>>",v=3;break}case",":case";":case"[":case"]":case"(":case"}":case"~":this._lineMode||(v=1,c=f);break;case"{":!this._lineMode&&i.length-n>=2&&(i[n+1]==="|"?(c="{|",v=2):(c=f,v=1));break;case"|":i.length-n>=2&&i[n+1]==="}"&&(c="|}",v=2);break;default:y=!0}if(y){let T;if((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&i.charCodeAt(T=B_(i,n))===cI&&T+1<i.length&&(i[T+1]==="#"||i[T+1]==="<"||hI(i.charCodeAt(T+1))))c="prefix",h=i.slice(n,T),v=T+1-n;else if(this._directive!==null&&this._directiveStarts.includes(f)&&((d=Mt(this._directive,i,n))||t&&i.length-n<=this._directiveMaxLength&&(d=O_(this._directive,i,n))))c=d[0].toUpperCase();else if(!this._lineMode&&(T=uI(i,n,t))>=0){let A=i.indexOf(":",n);c="prefixed",p=i.slice(n,A),h=this._unescape(i.slice(A+1,T),dI),v=T-n}}if(this._previousMarker==="^^")switch(c){case"prefixed":c="type";break;case"IRI":c="typeIRI";break;default:c=""}if(!c)return t||!i.startsWith("'''",n)&&!i.startsWith('"""',n)&&/\n|\r/.test(i.slice(n))?l(this,i,n):this._suspend(i,n,a);let x=v||d[0].length,b=a-(i.length-n),S;g?(S={type:c,value:h,prefix:p,line:u,start:b,end:g,endLine:this._line,tripleQuoted:_},e(null,S)):_?(S={type:c,value:h,prefix:p,line:u,start:b,end:b+x,tripleQuoted:_},e(null,S)):S=s(c,h,p,u,b,m||x),this.previousToken=S,this._previousMarker=c==="literal"&&(this._previousMarker==="VERSION"||this._previousMarker==="@version")?"version":c,n=Math.min(n+x,i.length),g&&(a=i.length-n+g)}function o(u,f,c){e(null,{type:"comment",value:u,prefix:"",line:f,start:c,end:c+u.length+1})}function s(u,f,c,h,p,d){let v={type:u,value:f,prefix:c,line:h,start:p,end:p+d};return e(null,v),v}function l(u,f,c){e(u._syntaxError(Mt(FV,f,c)[0]))}}_suspend(e,t,i){return this._linePosition=i-(e.length-t),this._input=e.slice(t)}_matchN3Verb(e,t,i){let n=Mt(this._n3Verb,e,t);if(!n)return null;let a=e[t+n[0].length];return a!=="-"&&a!=="_"&&(a<"0"||a>"9")&&a!=="\u1680"&&a!=="\uFEFF"?n:uI(e,t,!0)>=0||!i&&B_(e,t)===e.length?null:n}_unescape(e,t){let i=e.indexOf("\\");if(i<0)return e;let n="",a=0;for(;i>=0&&i+1<e.length;){let o=e[i+1],s=i+2,l;if(o==="u"||o==="U"){if(s+=o==="u"?4:8,s>e.length)return null;let u=0;for(let f=i+2;f<s;f++){let c=e.charCodeAt(f);if(c>=48&&c<=57)c-=48;else if(c>=65&&c<=70)c-=55;else if(c>=97&&c<=102)c-=87;else return null;u=u*16+c}if(!kV(u))return null;l=String.fromCodePoint(u)}else{if(!(o in t))return null;l=t[o]}n+=e.slice(a,i)+l,a=s,i=e.indexOf("\\",a)}return n+e.slice(a)}_parseLiteral(e,t){if(e.length-t>=3){let i=e[t],n=e[t+1]===i&&e[t+2]===i?3:1,a=i;n===3&&(a=i==='"'?'"""':"'''");let o=t+Math.max(this._literalClosingPos,n);for(;(o=e.indexOf(a,o))>t;){let s=0;for(;e[o-s-1]==="\\";)s++;if(s%2===0){let l=e.substring(t+n,o),u=l.split(/\r\n|\r|\n/),f=u.length-1,c=o-t+n;if(n===1&&f!==0||n===3&&this._lineMode)break;this._line+=f;let h=f===0?0:u[u.length-1].length+n;return{value:this._unescape(l,sI),matchLength:c,finalLineLength:h,tripleQuoted:n===3}}o++}this._literalClosingPos=e.length-t-n+1}return{value:"",matchLength:0,finalLineLength:0,tripleQuoted:!1}}_tryTokenizeToEnd(e,t){let i;try{this._tokenizeToEnd((n,a)=>{try{return e(n,a)}catch(o){throw i=o}},t)}catch(n){if(n===i||!(n instanceof RangeError))throw n;e(this._syntaxError(null,`Token too long on line ${this._line}.`))}}_syntaxError(e,t=`Unexpected "${e}" on line ${this._line}.`){this._input=null;let i=new Error(t);return i.context={token:void 0,line:this._line,previousToken:this.previousToken},i}_startTokenization(){return this._line=1,this._linePosition=0,this._previousMarker=void 0,this.previousToken=void 0,this._literalClosingPos=0,this._input=void 0,this._tokenization={}}_tokenizeString(e,t){this._startTokenization(),this._input=this._readStartingBom(e),this._tryTokenizeToEnd(t,!0)}_readStartingBom(e){return e.startsWith("\uFEFF")?(this._linePosition=1,e.slice(1)):e}tokenize(e,t){let i=this._startTokenization();if(typeof e=="string")if(this._input=this._readStartingBom(e),typeof t=="function")queueMicrotask(()=>{this._tokenization===i&&this._tryTokenizeToEnd(t,!0)});else{let n=[],a;if(this._tryTokenizeToEnd((o,s)=>o?a=o:n.push(s),!0),a)throw a;return n}else{let n,a=0;typeof e.setEncoding=="function"&&e.setEncoding("utf8"),e.on("data",o=>{if(this._tokenization===i&&this._input!==null&&o.length!==0){if(typeof o!="string"&&(n=n||new TextDecoder("utf-8",{ignoreBOM:!0}),!(o=n.decode(o,{stream:!0}))))return;typeof this._input=="undefined"?this._input=this._readStartingBom(o):this._input+=o,this._input.length>=a&&(this._tryTokenizeToEnd(t,!1),a=this._input!==null&&this._input.length>HV?2*this._input.length:0)}}),e.on("end",()=>{if(this._tokenization===i&&this._input!==null){let o=n?n.decode():"";o&&(this._input=typeof this._input=="string"?this._input+o:o),typeof this._input=="string"&&this._tryTokenizeToEnd(t,!0)}}),e.on("error",o=>{this._tokenization===i&&t(o)})}}};var{rdf:yI,xsd:kn}=vt,Fu,GV=0,YV="<>";var WV={namedNode:xI,blankNode:bI,variable:TI,literal:SI,defaultGraph:jV,quad:H_,triple:H_,fromTerm:zu,fromQuad:CI},_I=WV,zi=class r{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof r?this.id===e.id&&this.termType===e.termType:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}},Gp=class extends zi{constructor(e){e!==""?super(e):(super(YV),Object.defineProperty(this,"value",{value:""}))}get termType(){return"NamedNode"}},Os=class r extends zi{constructor(e){super(e)}get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){let e=this.id,t=e.lastIndexOf('"')+1,i=e.lastIndexOf("--");return t<e.length&&e[t++]==="@"?(i>t?e.substr(0,i):e).substr(t).toLowerCase():""}get direction(){let e=this.id,t=e.lastIndexOf('"'),i=e[t+1]==="@"?e.lastIndexOf("--"):-1;return i>t&&i+2<e.length?e.substr(i+2).toLowerCase():""}get datatype(){return new Gp(this.datatypeString)}get datatypeString(){let e=this.id,t=e.lastIndexOf('"')+1,i=t<e.length?e[t]:"";return i==="^"?e.substr(t+2):i!=="@"?kn.string:e.indexOf("--",t)>0?yI.dirLangString:yI.langString}equals(e){return e instanceof r?this.id===e.id:!!e&&!!e.datatype&&this.termType===e.termType&&this.value===e.value&&this.language===e.language&&(this.direction===e.direction||this.direction===""&&!e.direction)&&this.datatype.value===e.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,direction:this.direction,datatype:{termType:"NamedNode",value:this.datatypeString}}}},F_=class extends zi{constructor(e){super(`_:${e}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}},U_=class extends zi{constructor(e){super(`?${e}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}},V_=class extends zi{constructor(){return super(""),Fu||this}get termType(){return"DefaultGraph"}equals(e){return this===e||!!e&&this.termType===e.termType}};Fu=new V_;var Yp=class extends zi{constructor(e,t,i,n){super(""),this._subject=e,this._predicate=t,this._object=i,this._graph=n||Fu}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(e){return!!e&&this._subject.equals(e.subject)&&this._predicate.equals(e.predicate)&&this._object.equals(e.object)&&this._graph.equals(e.graph)}};function xI(r){return new Gp(r)}function bI(r){return new F_(r||`n3-${GV++}`)}function SI(r,e){if(typeof e=="string")return new Os(`"${r}"@${e.toLowerCase()}`);if(e!==void 0&&!("termType"in e))return new Os(`"${r}"@${e.language.toLowerCase()}${e.direction?`--${e.direction.toLowerCase()}`:""}`);let t=e?e.value:"";return t===""&&(typeof r=="boolean"?t=kn.boolean:typeof r=="number"?Number.isFinite(r)?t=Number.isInteger(r)&&Math.abs(r)<1e21?kn.integer:kn.double:(t=kn.double,Number.isNaN(r)||(r=r>0?"INF":"-INF")):typeof r=="bigint"?t=kn.integer:r instanceof Date&&!Number.isNaN(r.getTime())&&(t=kn.dateTime,r=r.toISOString())),t===""||t===kn.string?new Os(`"${r}"`):new Os(`"${r}"^^${t}`)}function TI(r){return new U_(r)}function jV(){return Fu}function H_(r,e,t,i){return new Yp(r,e,t,i)}function zu(r){if(r instanceof zi)return r;switch(r.termType){case"NamedNode":return xI(r.value);case"BlankNode":return bI(r.value);case"Variable":return TI(r.value);case"DefaultGraph":return Fu;case"Literal":return SI(r.value,r.language?r.direction?{language:r.language,direction:r.direction}:r.language:r.datatype);case"Quad":return CI(r);default:throw new Error(`Unexpected termType: ${r.termType}`)}}function CI(r){if(r instanceof Yp)return r;if(r.termType!=="Quad")throw new Error(`Unexpected termType: ${r.termType}`);return H_(zu(r.subject),zu(r.predicate),zu(r.object),zu(r.graph))}var wI=0,AI=/(^|\/)\.\.?($|[/#?])/,ZV=/^[^?#]*(?:^|\/)\.\.?(?:$|[/#?])/,Bn=class r{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&DI(this,e.factory);let t=typeof e.format=="string"?e.format.match(/(?:^|\W)(\w*)$/)[1].toLowerCase():"",i=/turtle/.test(t),n=/trig/.test(t),a=/triple/.test(t),o=/quad/.test(t),s=this._n3Mode=/n3/.test(t),l=a||o;if(this._emitCurrent=this._emit,s&&(this._createQuad=this._createQuadInDirection,this._emit=this._emitInDirection,this._emitCurrent=this._emitCurrentInDirection),(this._supportsNamedGraphs=!(i||s))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(i||n||a||s),this._isImpliedBy=e.isImpliedBy,this._implicitEmptyPrefix=!!e.implicitEmptyPrefix,this._emptyFormulaAsTrue=!!e.emptyFormulaAsTrue,l&&(this._resolveRelativeIRI=f=>null),this._blankNodePrefix=typeof e.blankNodePrefix!="string"?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._directives=null,e.directives){this._directives=Object.create(null);for(let f of e.directives)this._directives[`@${f.toLowerCase()}`]=this._directives[f.toUpperCase()]=f}this._lexer=e.lexer||new Ps({lineMode:l,n3:s,isImpliedBy:this._isImpliedBy,directives:e.directives}),this._explicitQuantifiers=!!e.explicitQuantifiers,this._formulaScopedBlankNodes=!!e.formulaScopedBlankNodes,this._parseUnsupportedVersions=!!e.parseUnsupportedVersions,this._version=e.version;let u=e.maxTripleTermDepth;this._maxTripleTermDepth=u===1/0||Number.isInteger(u)&&u>=0?u:1024}static _resetBlankNodePrefix(){wI=0}_setBase(e){if(!e)this._base="",this._basePath="",this._basePathHasDotSegments=!1;else{let t=e.indexOf("#");t>=0&&(e=e.substr(0,t)),this._base=e;let i=e.indexOf("?"),n=i<0?e:e.substr(0,i);this._basePath=e.indexOf("/")<0?e:n.substr(0,n.lastIndexOf("/")+1);let a=e;e=e.match(/^(?:([a-z][a-z0-9+.-]*:))?(\/\/[^\/?#]*)?/i),this._baseRoot=e[0],this._baseScheme=e[1],e[2]!==void 0&&(a.length===this._baseRoot.length||a[this._baseRoot.length]==="?")&&(this._basePath=`${this._baseRoot}/`),this._basePathHasDotSegments=AI.test(this._basePath)}}_enterTripleTerm(e,t,i,n){return this._tripleTermDepth>=this._maxTripleTermDepth?(this._error(`Triple terms nested deeper than ${this._maxTripleTermDepth} level${this._maxTripleTermDepth===1?"":"s"}`,n),!1):(this._tripleTermDepth++,this._saveContext(e,this._graph,t,i,null),this._graph=null,!0)}_saveContext(e,t,i,n,a){if(!this._n3Mode){this._contextStack.push({type:e,subject:i,predicate:n,object:a,graph:t});return}let o={type:e,subject:i,predicate:n,object:a,graph:t,inverse:this._inversePredicate,expectOf:this._expectOf,blankPrefix:this._prefixes._,prefixChanges:this._prefixChanges,quantifiedChanges:this._quantifiedChanges,emptyFormula:this._emptyFormula};e==="formula"&&(o.base=[this._base,this._basePath,this._baseRoot,this._baseScheme,this._basePathHasDotSegments],this._prefixChanges=[]),this._contextStack.push(o),this._inversePredicate=!1,this._expectOf=!1,(!this._formulaScopedBlankNodes||e==="formula")&&(this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantifiedChanges=[]),e==="formula"&&(this._subject=null,this._emptyFormula=!0)}_restoreContext(e,t){let i=this._contextStack.pop();if(!i||i.type!==e)return this._error(`Unexpected ${t.type}`,t);this._subject=i.subject,this._predicate=i.predicate,this._object=i.object,this._graph=i.graph,this._n3Mode&&(this._inversePredicate=i.inverse,this._expectOf=i.expectOf,e==="formula"&&([this._base,this._basePath,this._baseRoot,this._baseScheme,this._basePathHasDotSegments]=i.base),this._prefixChanges!==i.prefixChanges&&(EI(this._prefixes,this._prefixChanges),this._prefixChanges=i.prefixChanges),this._prefixes._=i.blankPrefix,this._quantifiedChanges!==i.quantifiedChanges&&(EI(this._quantified,this._quantifiedChanges),this._quantifiedChanges=i.quantifiedChanges),this._emptyFormula=i.emptyFormula)}_readBeforeTopContext(e){return this._version&&!this._isValidVersion(this._version)?this._error(`Detected unsupported version as media type parameter: "${this._version}"`,e):this._readInTopContext(e)}_readInTopContext(e){switch(e.type){case"eof":return this._graph!==null?this._error("Unclosed graph",e):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"VERSION":this._sparqlStyle=!0;case"@version":return this._readVersion;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._directives!==null&&e.type in this._directives&&this._graph===null?(this._sparqlStyle=e.type[0]!=="@",this._directiveCallback(this._directives[e.type]),this._readDeclarationPunctuation):this._readSubject(e)}}_readInFormulaContext(e){switch(e.type){case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;default:return this._readSubject(e)}}_getStatementReader(){let e=this._contextStack[this._contextStack.length-1];return e&&e.type==="formula"?this._readInFormulaContext:this._readInTopContext}_readEntity(e,t){let i;switch(e.type){case"IRI":case"typeIRI":let n=this._resolveIRI(e.value);if(n===null)return this._error("Invalid IRI",e);i=this._factory.namedNode(n);break;case"type":case"prefixed":let a=this._prefixes[e.prefix];if(a===void 0)return this._error(`Undefined prefix "${e.prefix}:"`,e);i=this._factory.namedNode(a+e.value);break;case"blank":i=this._factory.blankNode(this._prefixes[e.prefix]+e.value);break;case"var":i=this._factory.variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!t&&this._n3Mode&&i.id in this._quantified&&(i=this._quantified[i.id]),i}_readList(e,t,i,n){let a=this._contextStack;return(a.length&&a[a.length-1]).type==="<<"?this._error("Unexpected list in reified triple",e):(this._saveContext("list",this._graph,t,i,n),this._subject=null,this._readListItem)}_readSubject(e){switch(this._predicate=null,e.type!=="}"&&(this._emptyFormula=!1),e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.blankNode(),null,null),this._readBlankNodeHead;case"(":return this._readList(e,this.RDF_NIL,null,null);case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._factory.blankNode(),null,null),this._readInFormulaContext):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',e);case"literal":return this._n3Mode?e.prefix.length===0?(this._literalValue=e.value,this._completeSubjectLiteral):(this._subject=this._factory.literal(e.value,this._factory.namedNode(e.prefix)),this._getPathReader(this._readPredicateOrNamedGraph)):this._error("Unexpected literal",e);case"<<(":return this._n3Mode?this._enterTripleTerm("<<(",null,null,e)&&this._readSubject:this._error("Disallowed triple term as subject",e);case"<<":return this._enterTripleTerm("<<",null,null,e)&&this._readSubject;default:if((this._subject=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(e){let t=e.type,i=!1;switch(t){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case"has":return this._readPredicateAfterVerb;case"is":return this._inversePredicate=!0,this._expectOf=!0,this._readPredicateAfterVerb;case"inversePredicate":return this._inversePredicate=!0,this._readPredicateAfterVerb;case"|}":return this._subject=null,this._readAnnotationBlockPunctuation(e);case".":case"]":case"}":return this._predicate===null&&!this._n3Mode?this._error(`Unexpected ${t}`,e):(this._subject=null,t==="]"?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",e);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",e);if(e.prefix.length===0)return this._literalValue=e.value,this._completePredicateLiteral;this._predicate=this._factory.literal(e.value,this._factory.namedNode(e.prefix)),i=!0;break;case"(":return this._n3Mode?this._readList(e,this._subject,this.RDF_NIL,null):this._error(`Expected entity but got ${t}`,e);case"[":return this._n3Mode?(this._saveContext("blank",this._graph,this._subject,this._subject=this._factory.blankNode(),null),this._readBlankNodeHead):this._error("Disallowed blank node as predicate",e);case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._graph=this._factory.blankNode(),null),this._readSubject):this._readEntity(e);case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if((this._predicate=this._readEntity(e))===void 0)return;i=this._n3Mode}return this._validAnnotation=!0,i?this._getPathReader(this._readObject,"predicate"):this._readObject}_readPredicateAfterVerb(e){return e.type==="has"||e.type==="is"||e.type==="of"||e.type==="inversePredicate"?this._error(`Expected expression but got ${e.type}`,e):this._readPredicate(e)}_readObject(e){if(this._expectOf)return e.type!=="of"?this._error(`Expected of but got ${e.type}`,e):(this._expectOf=!1,this._readObject);switch(e.type){case"literal":if(e.prefix.length===0)return this._literalValue=e.value,this._readDataTypeOrLang;if(this._object=this._factory.literal(e.value,this._factory.namedNode(e.prefix)),this._n3Mode)return this._getPathReader(this._getContextEndReader());break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.blankNode()),this._readBlankNodeHead;case"(":return this._readList(e,this._subject,this._predicate,this.RDF_NIL);case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readInFormulaContext):this._error("Unexpected graph",e);case"<<(":return this._enterTripleTerm("<<(",this._subject,this._predicate,e)&&this._readSubject;case"<<":return this._enterTripleTerm("<<",this._subject,this._predicate,e)&&this._readSubject;default:if((this._object=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(e){return e.type==="{"?this._readGraph(e):this._readPredicate(e)}_readGraph(e){return e.type!=="{"?this._error(`Expected graph but got ${e.type}`,e):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(e){if(e.type==="]")return this._subject=null,this._readBlankNodeTail(e);{let t=this._contextStack;return(t.length>1&&t[t.length-2]).type==="<<"?this._error("Unexpected compound blank node expression in reified triple",e):e.type==="id"?this._readIriPropertyListId:(this._predicate=null,this._readPredicate(e))}}_readIriPropertyListId(e){let t=this._readEntity(e);if(t===void 0)return;if(t.termType!=="NamedNode")return this._error(`Expected IRI after id but got ${e.type}`,e);let i=this._subject;this._subject=t;let n=this._contextStack[this._contextStack.length-1];return n.subject===i&&(n.subject=t),n.predicate===i&&(n.predicate=t),n.object===i&&(n.object=t),this._predicate=null,this._readIriPropertyListPredicate}_readIriPropertyListPredicate(e){return e.type===";"||e.type==="]"||e.type==="."||e.type==="}"?this._error(`Expected predicate but got ${e.type}`,e):this._readPredicate(e)}_readBlankNodeTail(e){if(e.type!=="]")return this._readBlankNodePunctuation(e);this._subject!==null&&this._emitCurrent(this._subject,this._predicate,this._object,this._graph);let t=this._predicate===null;return this._restoreContext("blank",e),this._object!==null?this._getContextEndReader():this._predicate!==null?this._getPathReader(this._readObject,"predicate"):t?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(e){switch(e.type){case".":case"}":return this._subject=null,this._readPunctuation(e);default:return this._readPredicate(e)}}_readListItem(e){let t=null,i=null,n=this._readListItem,a=this._subject,o=this._contextStack,s=o[o.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,i=this._factory.blankNode(),this.RDF_FIRST,this._subject=t=this._factory.blankNode()),n=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,i=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",e),o.length!==0&&o[o.length-1].type==="list"){if(this._n3Mode)return a!==null&&this._emit(a,this.RDF_REST,this.RDF_NIL,this._graph),this._saveContext("item",this._graph,this._subject,this._predicate,this._object),this._subject=this._object,this._predicate=null,this._getPathReader(this._readListItem);this._emit(this._subject,this._predicate,this._object,this._graph)}if(this._predicate===null){if(n=this._n3Mode?this._getPathReader(this._readPredicate):this._readPredicate,this._subject===this.RDF_NIL)return n}else if(this._object===null){if(n=this._getPathReader(this._readObject,"predicate"),this._predicate===this.RDF_NIL)return n}else if(n=this._getContextEndReader(),this._n3Mode&&(n=this._getPathReader(n)),this._object===this.RDF_NIL)return n;i=this.RDF_NIL;break;case"literal":e.prefix.length===0?(this._literalValue=e.value,n=this._readListItemDataTypeOrLang):(t=this._factory.literal(e.value,this._factory.namedNode(e.prefix)),n=this._getContextEndReader());break;case"{":return this._n3Mode?(i=this._factory.blankNode(),t=this._factory.blankNode(),a===null?s.predicate===null?s.subject=i:s.object=i:this._emit(a,this.RDF_REST,i,this._graph),this._emit(i,this.RDF_FIRST,t,this._graph),this._saveContext("formula",this._graph,i,this.RDF_FIRST,this._graph=t),this._subject=null,this._readInFormulaContext):this._error("Unexpected graph",e);case"<<(":case"<<":if(!this._enterTripleTerm(e.type,null,null,e))return;n=this._readSubject;break;default:if((t=this._readEntity(e))===void 0)return}if(i===null&&(this._subject=i=this._factory.blankNode()),(e.type==="<<"||e.type==="<<(")&&(o[o.length-1].subject=this._subject),a===null?s.predicate===null?s.subject=i:s.object===null?s.predicate=i:s.object=i:this._emit(a,this.RDF_REST,i,this._graph),t!==null){if(this._n3Mode&&(e.type==="IRI"||e.type==="prefixed"||e.type==="var"||e.type==="blank"||e.type==="literal"))return this._saveContext("item",this._graph,i,this.RDF_FIRST,t),this._subject=t,this._predicate=null,this._getPathReader(this._readListItem);this._emit(i,this.RDF_FIRST,t,this._graph)}return n}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e,t){let i,n=!1;switch(e.type){case"type":case"typeIRI":let a=this._readEntity(e);if(a===void 0)return;if(a.value===vt.rdf.langString||a.value===vt.rdf.dirLangString)return this._error("Detected illegal (directional) languaged-tagged string with explicit datatype",e);i=this._factory.literal(this._literalValue,a),e=null;break;case"langcode":if(e.value.split("-").some(o=>o.length>8))return this._error("Detected language tag with subtag longer than 8 characters",e);i=this._factory.literal(this._literalValue,e.value),this._literalLanguage=e.value,e=null,this._literalComponent=t,n=!0;break;default:i=this._factory.literal(this._literalValue)}return{token:e,literal:i,readCb:n}}_readDirCode(e){let t=this._literalComponent,i=this._literalListItem;if(e.type==="dircode"){let n=this._factory.literal(this._literalValue,{language:this._literalLanguage,direction:e.value});t==="subject"?this._subject=n:t==="predicate"?this._predicate=n:this._object=n,this._literalLanguage=void 0,e=null}if(t==="subject"||t==="predicate"){let n=t==="subject"?this._readPredicateOrNamedGraph:this._readObject;return this._getPathEndReader(e,n,t)||n.call(this,e)}return this._completeObjectLiteralPost(e,i)}_completeTermLiteral(e,t){let i=this._completeLiteral(e,t);if(!i)return;let n;if(t==="subject"?(this._subject=i.literal,n=this._readPredicateOrNamedGraph):(this._predicate=i.literal,this._validAnnotation=!0,n=this._readObject),i.readCb)return this._literalListItem=!1,this._readDirCode;let a=this._getPathEndReader(i.token,n,t);return a||n.call(this,i.token)}_completeSubjectLiteral(e){return this._completeTermLiteral(e,"subject")}_completePredicateLiteral(e){return this._completeTermLiteral(e,"predicate")}_completeObjectLiteral(e,t){let i=this._completeLiteral(e,"object");if(i)return this._object=i.literal,i.readCb?(this._literalListItem=t,this._readDirCode):this._completeObjectLiteralPost(i.token,t)}_completeObjectLiteralPost(e,t){return this._n3Mode&&(e===null||e.type==="!"||e.type==="^")?t?(this._saveContext("item",this._graph,this._subject,this.RDF_FIRST,this._object),this._subject=this._object,this._predicate=null,this._getPathEndReader(e,this._readListItem)):this._getPathEndReader(e,this._getContextEndReader()):(t&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),e===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(e)))}_readFormulaTail(e){if(e.type!=="}")return this._readPunctuation(e);this._subject!==null&&this._emitCurrent(this._subject,this._predicate,this._object,this._graph);let t=this._graph,i=this._emptyFormula;return this._restoreContext("formula",e),i&&this._emptyFormulaAsTrue&&(this._subject===t?this._subject=this.N3_TRUE:this._predicate===t?this._predicate=this.N3_TRUE:this._object=this.N3_TRUE),this._object!==null?this._getPathReader(this._getContextEndReader(),"object"):this._predicate!==null?this._getPathReader(this._readObject,"predicate"):this._getPathReader(this._readPredicate,"subject")}_readPunctuation(e){let t,i=this._graph,n=this._subject,a=this._inversePredicate;switch(e.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,this._tripleTerm=null,t=this._getStatementReader(),a&&(this._inversePredicate=!1);break;case";":a&&(this._inversePredicate=!1),t=this._readPredicate;break;case",":t=this._readObject;break;case"~":case"{|":return this._readAnnotationStart(e);case"|}":return this._error("Unexpected annotation syntax closing",e);default:if(this._supportsQuads&&this._graph===null&&(i=this._readEntity(e))!==void 0){t=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(n!==null){let o=this._predicate,s=this._object;this._emit(n,o,s,i,a)}return t}_readBlankNodePunctuation(e){let t,i=!1;switch(e.type){case";":i=this._inversePredicate,t=this._readPredicate;break;case",":t=this._readObject;break;case"~":case"{|":return this._readAnnotationStart(e);case"|}":return this._error("Unexpected annotation syntax closing",e);default:return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}return this._emitCurrent(this._subject,this._predicate,this._object,this._graph),i&&(this._inversePredicate=!1),t}_readQuadPunctuation(e){return e.type!=="."?this._error("Expected dot to follow quad",e):this._readInTopContext}_readPrefix(e){return e.type!=="prefix"?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)}_readPrefixIRI(e){if(e.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,e);let t=this._readEntity(e);return this._prefixChanges!==null&&this._prefixChanges.push(this._prefix,this._prefixes[this._prefix]),this._prefixes[this._prefix]=t.value,this._prefixCallback(this._prefix,t),this._readDeclarationPunctuation}_readBaseIRI(e){let t=e.type==="IRI"&&this._resolveIRI(e.value);return t?(this._setBase(t),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",e)}_isValidVersion(e){return this._parseUnsupportedVersions||r.SUPPORTED_VERSIONS.includes(e)}_readVersion(e){return e.type!=="literal"?this._error("Expected literal to follow version declaration",e):e.prefix!==""||e.tripleQuoted?this._error("Version declarations must use single quotes",e):(this._versionCallback(e.value),this._isValidVersion(e.value)?this._readDeclarationPunctuation:this._error(`Detected unsupported version: "${e.value}"`,e))}_readNamedGraphLabel(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}}_readNamedGraphBlankLabel(e){return e.type!=="]"?this._error("Invalid graph label",e):(this._subject=this._factory.blankNode(),this._readGraph)}_readDeclarationPunctuation(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._getStatementReader().call(this,e)):e.type!=="."?this._error("Expected declaration to end with a dot",e):this._getStatementReader()}_readQuantifierList(e){let t;switch(e.type){case"IRI":case"prefixed":if((t=this._readEntity(e,!0))!==void 0)break;default:return this._error(`Unexpected ${e.type}`,e)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,t,this.QUANTIFIERS_GRAPH)):(this._quantifiedChanges!==null&&this._quantifiedChanges.push(t.id,this._quantified[t.id]),this._quantified[t.id]=this._factory[this._quantifier](this._factory.blankNode().value)),this._readQuantifierPunctuation}_readQuantifierPunctuation(e){return e.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))}_getPathReader(e,t){return this._afterPath=e,this._pathPosition=t||(this._predicate===null?"subject":"object"),this._readPath}_getPathEndReader(e,t,i){if(e!==null&&e.type!=="!"&&e.type!=="^")return null;let n=this._getPathReader(t,i);return e===null?n:n.call(this,e)}_readPath(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:let t=this._afterPath,i=this._contextStack,n=i.length&&i[i.length-1];if(n&&n.type==="item"){let a=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,a,this._graph)}return this._afterPath=null,this._pathPosition=null,t.call(this,e)}}_readForwardPath(e){let t,i,n=this._factory.blankNode();if((i=this._readEntity(e))!==void 0)return this._pathPosition==="subject"?(t=this._subject,this._subject=n):this._pathPosition==="predicate"?(t=this._predicate,this._predicate=n):(t=this._object,this._object=n),this._emit(t,i,n,this._graph),this._readPath}_readBackwardPath(e){let t=this._factory.blankNode(),i,n;if((i=this._readEntity(e))!==void 0)return this._pathPosition==="subject"?(n=this._subject,this._subject=t):this._pathPosition==="predicate"?(n=this._predicate,this._predicate=t):(n=this._object,this._object=t),this._emit(t,i,n,this._graph),this._readPath}_readTripleTermTail(e){if(e.type!==")>>")return this._error(`Expected )>> but got ${e.type}`,e);let t=this._createQuad(this._subject,this._predicate,this._object,this._graph,this._inversePredicate);this._restoreContext("<<(",e),this._tripleTermDepth--;let i=this._contextStack,n=i.length&&i[i.length-1];return n&&n.type==="list"?(this._emit(this._subject,this.RDF_FIRST,t,this._graph),this._getContextEndReader()):this._subject===null?(this._subject=t,this._readPredicate):(this._object=t,this._getContextEndReader())}_readReifiedTripleTailOrReifier(e){return e.type==="~"?this._readReifier:this._readReifiedTripleTail(e)}_readReifiedTripleTail(e){if(e.type!==">>")return this._error(`Expected >> but got ${e.type}`,e);this._tripleTerm=null;let t=this._readTripleTerm();this._restoreContext("<<",e),this._tripleTermDepth--;let i=this._contextStack,n=i.length&&i[i.length-1];return n&&n.type==="list"?(this._emit(this._subject,this.RDF_FIRST,t,this._graph),this._getContextEndReader()):this._subject===null?(this._subject=t,this._readPredicateOrReifierTripleEnd):(this._object=t,this._getContextEndReader())}_readPredicateOrReifierTripleEnd(e){return e.type==="."?(this._subject=null,this._readPunctuation(e)):this._readPredicate(e)}_readReifier(e){return e.type===">>"?this._readReifiedTripleTail(e):(this._reifier=this._readEntity(e),this._readReifiedTripleTail)}_readAnnotationStart(e){return this._emitCurrent(this._subject,this._predicate,this._object,this._graph),this._tripleTerm=null,this._readAnnotation(e)}_readAnnotation(e){switch(e.type){case"~":return this._readReifierInAnnotation;case"{|":return this._readAnnotationBlockHead(e)}switch(this._tripleTerm=null,e.type){case";":return this._inversePredicate=!1,this._readPredicate;case",":return this._readObject;default:return this._subject=null,this._getContextEndReader().call(this,e)}}_readReifierInAnnotation(e){switch(e.type){case"IRI":case"typeIRI":case"type":case"prefixed":case"blank":case"var":return this._reifier=this._readEntity(e),this._readAnnotationBlockOrReifier}return this._reifier=this._factory.blankNode(),this._readAnnotationBlockOrReifier(e)}_readAnnotationBlockOrReifier(e){return e.type==="{|"?this._readAnnotationBlockHead(e):(this._readTripleTerm(),this._readAnnotation(e))}_readAnnotationBlockHead(e){let t=this._readTripleTerm();return this._saveContext("annotation",this._graph,this._subject,this._predicate,this._object),this._contextStack[this._contextStack.length-1].tripleTerm=this._tripleTerm,this._subject=t,this._predicate=this._object=this._tripleTerm=null,this._inversePredicate=!1,this._validAnnotation=!1,this._readPredicate}_readAnnotationBlockPunctuation(e){let t=this._contextStack;if(e.type==="|}"){if(!t.length||t[t.length-1].type!=="annotation")return this._error("Unexpected annotation syntax closing",e);if(!this._validAnnotation)return this._error("Annotation block can not be empty",e);this._subject!==null&&this._emitCurrent(this._subject,this._predicate,this._object,this._graph);let{tripleTerm:i}=t[t.length-1];return this._restoreContext("annotation",e),this._tripleTerm=i,this._readAnnotation}return this._readBlankNodePunctuation(e)}_readTripleTerm(){let e=this._contextStack,t=e.length&&e[e.length-1],i=t?t.graph:void 0,n=this._reifier||this._factory.blankNode();return this._reifier=null,this._tripleTerm=this._tripleTerm||this._createQuad(this._subject,this._predicate,this._object,null,this._inversePredicate),this._emit(n,this.RDF_REIFIES,this._tripleTerm,i||this._graph||this.DEFAULTGRAPH),n}_getContextEndReader(){let e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<(":return this._readTripleTermTail;case"<<":return this._readReifiedTripleTailOrReifier;case"annotation":return this._readAnnotationBlockPunctuation}}_createQuad(e,t,i,n){return this._factory.quad(e,t,i,n||this.DEFAULTGRAPH)}_createQuadInDirection(e,t,i,n,a){return a?this._factory.quad(i,t,e,n||this.DEFAULTGRAPH):this._factory.quad(e,t,i,n||this.DEFAULTGRAPH)}_emitInDirection(e,t,i,n,a){this._callback(null,this._createQuad(e,t,i,n,a))}_emitCurrentInDirection(e,t,i,n){this._callback(null,this._createQuad(e,t,i,n,this._inversePredicate))}_emit(e,t,i,n){this._callback(null,this._factory.quad(e,t,i,n||this.DEFAULTGRAPH))}_error(e,t){let i=` on line ${t.line}.`;e.length+i.length>200&&(e=`${e.slice(0,199-i.length)}\u2026`);let n=new Error(`${e}${i}`);n.context={token:t,line:t.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=Rs}_resolveIRI(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)?e:this._resolveRelativeIRI(e)}_resolveRelativeIRI(e){if(!e.length)return this._base;switch(e[0]){case"#":return this._base+e;case"?":{let t=this._base.indexOf("?");return(t<0?this._base:this._base.substr(0,t))+e}case"/":return e[1]!=="/"?this._baseRoot+this._removeDotSegments(e):this._baseScheme?this._removeDotSegments(this._baseScheme+e):this._removeDotSegments(`:${e}`).substr(1);default:return/^[^/:]*:/.test(e)?null:this._basePathHasDotSegments||ZV.test(e)?this._removeDotSegments(this._basePath+e):this._basePath+e}}_removeDotSegments(e){if(!AI.test(e))return e;let t=e.length,i="",n=-1,a=-1,o=0,s="/";for(;n<t;){switch(s){case":":if(a<0&&e[++n]==="/"&&e[++n]==="/")for(;(a=n+1)<t&&e[a]!=="/"&&e[a]!=="?"&&e[a]!=="#";)n=a;break;case"?":case"#":n=t;break;case"/":if(e[n+1]===".")switch(s=e[++n+1],s){case"/":i+=e.substring(o,n-1),o=n+1;break;case void 0:case"?":case"#":return i+e.substring(o,n)+e.substr(n+1);case".":if(s=e[++n+1],s===void 0||s==="/"||s==="?"||s==="#"){if(i+=e.substring(o,n-2),(o=i.lastIndexOf("/"))>=a&&(i=i.substr(0,o)),s!=="/")return`${i}/${e.substr(n+1)}`;o=n+1}}}s=e[++n]}return i+e.substring(o)}parse(e,t,i,n){let a,o,s,l,u,f,c;t&&(t.onQuad||t.onPrefix||t.onComment||t.onVersion||t.onDirective||t.onToken||t.onTokenEnd)?(a=t.onQuad,o=t.onPrefix,s=t.onComment,l=t.onVersion,u=t.onDirective,f=t.onToken,c=t.onTokenEnd):(a=t,o=i,l=n),this._readCallback=this._readBeforeTopContext,this._contextStack=[],this._graph=this._subject=this._predicate=this._object=null,this._tripleTerm=this._reifier=null,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${wI++}_`,this._n3Mode&&this._implicitEmptyPrefix&&this._base&&(this._prefixes[""]=this._resolveIRI("#")),this._prefixCallback=o||Rs,this._versionCallback=l||Rs,this._directiveCallback=u||Rs,this._inversePredicate=!1,this._expectOf=!1,this._quantified=Object.create(null),this._prefixChanges=null,this._quantifiedChanges=null,this._emptyFormula=!1,this._tripleTermDepth=0;let h=v=>this._readCallback=this._readCallback(v),p=h;if((s||this._lexer.comments)&&(this._lexer.comments=!0,p=v=>v.type!=="comment"?h(v):(s&&s(v.value),this._readCallback)),f||c){let v=p;p=m=>{try{try{return f&&f(m),v(m)}finally{c&&c(m)}}catch(g){throw this._readCallback=null,g}}}if(!a){let v=[],m;this._callback=(y,_)=>{y?m=y:_&&v.push(_)};let g=this._lexer;if(!o&&!l&&!u&&!s&&!f&&!c&&g.tokenize===Ps.prototype.tokenize&&typeof g._tokenizeString=="function"){let y=[this._base,this._basePath,this._baseRoot,this._baseScheme];g._tokenizeString(e,(_,x)=>{_?([this._base,this._basePath,this._baseRoot,this._baseScheme]=y,this._callback(_),this._callback=Rs):this._readCallback&&p(x)})}else g.tokenize(e).every(p);if(m)throw m;return v}let d=(v,m)=>{v!==null?(this._callback(v),this._callback=Rs):this._readCallback&&p(m)};this._callback=a,this._lexer.tokenize(e,d)}};function EI(r,e){for(let t=e.length-2;t>=0;t-=2)e[t+1]===void 0?delete r[e[t]]:r[e[t]]=e[t+1]}function Rs(){}function DI(r,e){r._factory=e,r.DEFAULTGRAPH=e.defaultGraph(),r.RDF_FIRST=e.namedNode(vt.rdf.first),r.RDF_REST=e.namedNode(vt.rdf.rest),r.RDF_NIL=e.namedNode(vt.rdf.nil),r.RDF_REIFIES=e.namedNode(vt.rdf.reifies),r.N3_FORALL=e.namedNode(vt.r.forAll),r.N3_FORSOME=e.namedNode(vt.r.forSome),r.N3_TRUE=e.literal("true",e.namedNode(vt.xsd.boolean)),r.ABBREVIATIONS={a:e.namedNode(vt.rdf.type),"=":e.namedNode(vt.owl.sameAs),">":e.namedNode(vt.log.implies),"<":e.namedNode(vt.log.isImpliedBy)},r.QUANTIFIERS_GRAPH=e.namedNode("urn:n3:quantifiers")}Bn.SUPPORTED_VERSIONS=["1.2","1.2-basic","1.1"];DI(Bn.prototype,_I);async function XV(r){if(!r)return"";let e=r;return typeof e.text=="function"?e.text():typeof e.data=="string"?e.data:typeof r=="string"?r:""}async function MI(r){let e=await XV(r);if(!e.trim())return{triples:[],raw:""};let t=qV(e);if(t.length>0)return{triples:t,raw:e};let i=KV(e);return i.length>0?{triples:i,raw:e}:{triples:[],raw:e}}function qV(r){var t,i,n,a;let e=r.trim();if(!e.startsWith("{"))return[];try{let o=JSON.parse(e),s=((t=o==null?void 0:o.results)==null?void 0:t.bindings)||(o==null?void 0:o.bindings)||(Array.isArray(o)?o:[]);if(!Array.isArray(s))return[];let l=[];for(let u of s){if(!((i=u.subject)!=null&&i.value)||!((n=u.predicate)!=null&&n.value)||!((a=u.object)!=null&&a.value))continue;let f=u.object.type||"uri";l.push({subject:u.subject.value,predicate:u.predicate.value,object:{value:u.object.value,type:f,datatype:u.object.datatype,lang:u.object["xml:lang"]}})}return l}catch(o){return[]}}function KV(r){var e;try{let i=new Bn().parse(r),n=[];for(let a of i){let o=(a.subject.termType==="BlankNode",a.subject.value),s=a.predicate.value,l;a.object.termType==="Literal"?l={value:a.object.value,type:"literal",datatype:(e=a.object.datatype)==null?void 0:e.value,lang:a.object.language||void 0}:a.object.termType==="BlankNode"?l={value:a.object.value,type:"bnode"}:l={value:a.object.value,type:"uri"},n.push({subject:o,predicate:s,object:l})}return n}catch(t){return console.warn("yasgui-chart-plugin: failed to parse DESCRIBE response with N3",t),[]}}function II(r){if(r.type==="uri")return`<${r.value}>`;if(r.type==="bnode")return r.value;let e=`"${r.value}"`;return r.lang?e+=`@${r.lang}`:r.datatype&&(e+=`^^<${r.datatype}>`),e}var Wp=class{constructor(e={}){this.callbacks=e;this.backdrop=null;this.modal=null;this.contentArea=null;this.currentTab="triples";this.escapeHandler=null;this.view={direction:"subject",prefixes:{}};this.history=[];this.historyIndex=-1}startHistory(e,t){this.history=[{uri:e,direction:t}],this.historyIndex=0}navigate(e,t){var i,n;this.history=this.history.slice(0,this.historyIndex+1),this.history.push({uri:e,direction:t}),this.historyIndex=this.history.length-1,(n=(i=this.callbacks).onDescribe)==null||n.call(i,e,t)}getHistory(){return[...this.history]}canGoBack(){return this.historyIndex>0}canGoForward(){return this.historyIndex<this.history.length-1}back(){this.goTo(this.historyIndex-1)}forward(){this.goTo(this.historyIndex+1)}backToStart(){this.goTo(0)}goTo(e){var n,a;if(e<0||e>=this.history.length||e===this.historyIndex)return;this.historyIndex=e;let{uri:t,direction:i}=this.history[e];(a=(n=this.callbacks).onDescribe)==null||a.call(n,t,i)}showLoading(e,t){this.setView(t),this.render(e,{state:"loading"})}showResults(e,t,i){this.setView(i),this.currentTab=t.triples.length>0?"triples":"raw",this.render(e,{state:"results",result:t})}showError(e,t,i,n){this.setView(n),this.currentTab="raw",this.render(e,{state:"error",error:t,raw:i||""})}close(){this.backdrop&&(this.backdrop.remove(),this.backdrop=null),this.modal&&(this.modal.remove(),this.modal=null),this.escapeHandler&&(document.removeEventListener("keydown",this.escapeHandler),this.escapeHandler=null),this.contentArea=null}setView(e){var t,i;this.view={direction:(t=e==null?void 0:e.direction)!=null?t:"subject",prefixes:(i=e==null?void 0:e.prefixes)!=null?i:{}}}render(e,t){this.close(),this.backdrop=document.createElement("div"),this.backdrop.className="chart-modal-backdrop chart-describe-modal-backdrop",this.backdrop.addEventListener("click",()=>this.close()),this.modal=document.createElement("div"),this.modal.className="chart-modal chart-describe-modal",this.modal.addEventListener("click",h=>h.stopPropagation());let i=document.createElement("div");i.className="chart-modal-header chart-describe-modal-header";let n=document.createElement("h3");n.className="chart-modal-title";let a=C_(this.view.direction);n.textContent=`Triples ${a}: ${this.shorten(this.displayUri(e))}`,n.title=e;let o=document.createElement("button");o.className="chart-modal-close",o.innerHTML="×",o.setAttribute("aria-label","Close modal"),o.addEventListener("click",()=>this.close()),i.appendChild(this.createNavigation()),i.appendChild(n),i.appendChild(o),this.contentArea=document.createElement("div"),this.contentArea.className="chart-modal-content chart-describe-modal-content",t.state==="loading"?this.contentArea.appendChild(this.createLoadingView()):t.state==="error"?this.contentArea.appendChild(this.createErrorView(t.error,t.raw)):this.contentArea.appendChild(this.createResultsView(t.result));let s=document.createElement("div");s.className="chart-modal-footer chart-describe-modal-footer";let l=document.createElement("span");l.className="chart-describe-modal-hint",l.textContent="Ctrl+click a URI to describe it, Ctrl+Shift+click for the triples where it is the object.";let u=document.createElement("button");u.className="chart-modal-button",u.textContent="Copy Raw",u.addEventListener("click",()=>{let h=t.state==="results"?t.result.raw:t.state==="error"?t.raw:"";this.copyToClipboard(h),this.close()});let f=document.createElement("button");f.className="chart-modal-button chart-modal-button-secondary",f.textContent="Close",f.addEventListener("click",()=>this.close());let c=document.createElement("div");c.className="chart-describe-modal-footer-buttons",c.appendChild(u),c.appendChild(f),s.appendChild(l),s.appendChild(c),this.modal.appendChild(i),this.modal.appendChild(this.contentArea),this.modal.appendChild(s),document.body.appendChild(this.backdrop),document.body.appendChild(this.modal),this.escapeHandler=h=>{h.key==="Escape"?this.close():h.altKey&&h.key==="ArrowLeft"&&this.canGoBack()?(h.preventDefault(),this.back()):h.altKey&&h.key==="ArrowRight"&&this.canGoForward()&&(h.preventDefault(),this.forward())},document.addEventListener("keydown",this.escapeHandler),o.focus()}createNavigation(){let e=document.createElement("div");e.className="chart-describe-modal-nav";let t=(i,n,a,o,s)=>{let l=document.createElement("button");return l.type="button",l.className=`chart-describe-modal-nav-button ${i}`,l.textContent=n,l.title=a,l.setAttribute("aria-label",a),l.disabled=!o,l.addEventListener("click",s),l};return e.appendChild(t("chart-describe-modal-start","\u23EE","Back to start",this.canGoBack(),()=>this.backToStart())),e.appendChild(t("chart-describe-modal-back","\u25C0","Back (Alt+\u2190)",this.canGoBack(),()=>this.back())),e.appendChild(t("chart-describe-modal-forward","\u25B6","Forward (Alt+\u2192)",this.canGoForward(),()=>this.forward())),e}createLoadingView(){let e=document.createElement("div");e.className="chart-describe-modal-loading";let t=document.createElement("div");t.className="chart-describe-modal-spinner";let i=document.createElement("p");return i.textContent=`Fetching triples ${C_(this.view.direction)}\u2026`,e.appendChild(t),e.appendChild(i),e}createErrorView(e,t){let i=document.createElement("div");i.className="chart-describe-modal-error";let n=document.createElement("p");return n.textContent=`Failed to fetch triples: ${this.errorMessage(e)}`,i.appendChild(n),t&&i.appendChild(this.createRawSection(t)),i}createResultsView(e){let t=document.createElement("div");t.className="chart-describe-modal-results";let i=document.createElement("div");i.className="chart-describe-modal-tabs";let n=document.createElement("button");n.className=`chart-describe-modal-tab ${this.currentTab==="triples"?"active":""}`,n.textContent=`Triples (${e.triples.length})`,n.addEventListener("click",()=>{this.currentTab="triples",this.refreshResultsView(e)});let a=document.createElement("button");a.className=`chart-describe-modal-tab ${this.currentTab==="raw"?"active":""}`,a.textContent="Raw",a.addEventListener("click",()=>{this.currentTab="raw",this.refreshResultsView(e)}),i.appendChild(n),i.appendChild(a),t.appendChild(i);let o=document.createElement("div");if(o.className="chart-describe-modal-tab-content",this.currentTab==="triples")if(e.triples.length===0){let s=document.createElement("p");s.className="chart-describe-modal-empty",s.textContent="No triples could be parsed from the response.",o.appendChild(s)}else o.appendChild(this.createTriplesTable(e.triples));else o.appendChild(this.createRawSection(e.raw));return t.appendChild(o),t}refreshResultsView(e){this.contentArea&&(this.contentArea.innerHTML="",this.contentArea.appendChild(this.createResultsView(e)))}createTriplesTable(e){let t=document.createElement("div");t.className="chart-describe-modal-table-wrapper";let i=document.createElement("table");i.className="chart-describe-modal-table";let n=document.createElement("thead"),a=document.createElement("tr");for(let s of["Subject","Predicate","Object"]){let l=document.createElement("th");l.textContent=s,a.appendChild(l)}n.appendChild(a),i.appendChild(n);let o=document.createElement("tbody");for(let s of e){let l=document.createElement("tr"),u=s.subject.startsWith("_:")||!/^[a-z][a-z0-9+.-]*:/i.test(s.subject);l.appendChild(u?this.createCell(s.subject,s.subject):this.createUriCell(s.subject)),l.appendChild(this.createUriCell(s.predicate)),l.appendChild(s.object.type==="uri"?this.createUriCell(s.object.value):this.createCell(this.displayObject(s.object),this.fullObject(s.object))),o.appendChild(l)}return i.appendChild(o),t.appendChild(i),t}createRawSection(e){let t=document.createElement("div");if(t.className="chart-describe-modal-raw",!e.trim()){let n=document.createElement("p");return n.className="chart-describe-modal-empty",n.textContent="No raw response text available.",t.appendChild(n),t}let i=document.createElement("pre");return i.textContent=e,t.appendChild(i),t}createCell(e,t){let i=document.createElement("td");return i.textContent=e,i.title=t,i}createUriCell(e){let t=document.createElement("td");t.title=e;let i=document.createElement("a");return i.className="chart-uri-link chart-describe-modal-uri",i.href=e,i.target="_blank",i.rel="noopener noreferrer",i.textContent=this.displayUri(e),i.addEventListener("click",n=>{(n.ctrlKey||n.metaKey)&&(n.preventDefault(),this.navigate(e,n.shiftKey?"object":"subject"))}),t.appendChild(i),t}displayUri(e){var t;return(t=Nu(e,this.view.prefixes))!=null?t:`<${e}>`}displayObject(e){if(e.type==="uri")return this.displayUri(e.value);if(e.type==="bnode")return e.value;let t=`"${e.value}"`;return e.lang?t+=`@${e.lang}`:e.datatype&&(t+=`^^${this.displayUri(e.datatype)}`),t}fullObject(e){return e.type==="uri"?e.value:II(e)}shorten(e){return e.length<=60?e:e.slice(0,30)+"\u2026"+e.slice(-25)}errorMessage(e){return e instanceof Error?e.message:typeof e=="string"?e:"Unknown error"}async copyToClipboard(e){try{if(navigator.clipboard&&navigator.clipboard.writeText)await navigator.clipboard.writeText(e);else{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}catch(t){console.error("Failed to copy raw response to clipboard:",t)}}};ft([ry,Wg,uy,yy,Ey,Ry,Vy,jy,__,p_]);var $V=5e3,LI=320,QV='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="currentColor" d="M3 3h2v16h16v2H3V3zm4 10h3v5H7v-5zm5-6h3v11h-3V7zm5 3h3v8h-3v-8z"/></svg>',G_=class{constructor(e,t={}){this.priority=5;this.label="Chart";this.helpReference="https://matgui-doc.matdata.eu/docs/user-guide#chart-plugin";this.chart=null;this.chartEl=null;this.option=null;this.data=null;this.columns=[];this.results=null;this.saved={};this.resolved=null;this.resizeObserver=null;this.themeObserver=null;this.outsideClickHandler=null;this.windowResizeHandler=null;this.fullscreenObserver=null;this.describeModal=null;this.describeAbortController=null;var n,a,o;this.yasr=e;let i=(o=(a=(n=e==null?void 0:e.config)==null?void 0:n.plugins)==null?void 0:a.Chart)==null?void 0:o.options;this.options={...i||{},...t}}static get label(){return"Chart"}static get priority(){return 5}getIcon(){let e=document.createElement("div");return e.innerHTML=QV,e.setAttribute("role","img"),e.setAttribute("aria-label","Chart view"),e}canHandleResults(){var t;let e=b_((t=this.yasr)==null?void 0:t.results);return!e||e.results.bindings.length===0?!1:T_(S_(e))}getPluginName(){let e=this.yasr.plugins||{};for(let t of Object.keys(e))if(e[t]===this)return t;return"Chart"}draw(e){var i;this.cleanup(),(i=this.describeModal)==null||i.close(),this.saved=M_(e),this.yasr.resultsEl.innerHTML="";let t=b_(this.yasr.results);if(!t||t.results.bindings.length===0){this.renderMessage("No results to chart");return}if(this.results=t,this.saved=rI(this.saved,t.head.vars),this.columns=S_(t),!T_(this.columns)){this.renderMessage("The chart needs at least one numeric column");return}this.render()}renderMessage(e){let t=document.createElement("div");t.className="yasgui-chart-plugin-empty",t.textContent=e,this.yasr.resultsEl.appendChild(t)}getYasqe(){var t,i,n,a,o;let e=this.yasr;return e.yasqe||((i=(t=e.yasgui)==null?void 0:t.tab)==null?void 0:i.yasqe)||((n=e.tab)==null?void 0:n.yasqe)||((o=(a=e.tab)==null?void 0:a.getYasqe)==null?void 0:o.call(a))||null}getPrefixes(){let e={};try{typeof this.yasr.getPrefixes=="function"&&(e=Rp(this.yasr.getPrefixes()));let t=this.getYasqe();t&&typeof t.getPrefixesFromQuery=="function"&&(e={...e,...Rp(t.getPrefixesFromQuery())})}catch(t){console.warn("yasgui-chart-plugin: could not read prefixes",t)}return e}render(){var u;if(!this.results)return;this.disposeChart(),this.yasr.resultsEl.innerHTML="";let e=(u=this.options.maxRows)!=null?u:$V,t=this.results.results.bindings,i=t.length>e?t.slice(0,e):t;this.resolved=iI(this.columns,this.saved,i.length),this.data=JM(i,this.columns,this.resolved,this.getPrefixes());let n=document.createElement("div");n.className="yasgui-chart-plugin",n.appendChild(aI({columns:this.columns,resolved:this.resolved,customised:Object.keys(this.saved).length>0},{onChange:f=>this.updateSettings(f),onReset:()=>this.updateSettings({}),onExport:f=>this.exportImage(f)}));let a=[];if(t.length>e&&a.push(`Showing the first ${e.toLocaleString("en-US")} of ${t.length.toLocaleString("en-US")} rows.`),(this.resolved.chartType==="pie"||this.resolved.chartType==="donut")&&this.data.kind==="category"&&this.data.series.length>1&&a.push(`A pie chart shows one value; showing ${this.data.series[0].name}.`),a.length>0){let f=document.createElement("div");f.className="chart-note",f.textContent=a.join(" "),n.appendChild(f)}let o=document.createElement("div");if(o.className="chart-canvas",n.appendChild(o),this.chartEl=o,this.yasr.resultsEl.appendChild(n),this.data.kind==="histogram"&&this.data.bins.length===0||this.data.kind!=="histogram"&&this.data.series.length===0){o.classList.add("chart-canvas-empty"),o.textContent="Nothing to plot with these columns";return}this.updateHeight(),this.chart=vg(o,null,{renderer:"canvas"}),this.applyOption(),this.chart.on("click",f=>this.handleChartClick(f)),this.resizeObserver=new ResizeObserver(()=>{var f;return(f=this.chart)==null?void 0:f.resize()}),this.resizeObserver.observe(o),this.windowResizeHandler=()=>{var f;this.updateHeight(),(f=this.chart)==null||f.resize()},window.addEventListener("resize",this.windowResizeHandler);let l=this.yasr.resultsEl.closest(".yasr");l&&(this.fullscreenObserver=new MutationObserver(()=>{var f;return(f=this.windowResizeHandler)==null?void 0:f.call(this)}),this.fullscreenObserver.observe(l,{attributes:!0,attributeFilter:["class"]})),this.themeObserver=oI(()=>this.applyOption()),this.outsideClickHandler=f=>{let c=n.querySelector(".chart-values-picker");c&&c.hasAttribute("open")&&!c.contains(f.target)&&c.removeAttribute("open")},document.addEventListener("mousedown",this.outsideClickHandler)}updateHeight(){if(!this.chartEl)return;let e=window.innerHeight||800,t=this.chartEl.getBoundingClientRect().top,i=Math.floor(e-Math.max(0,t)-24),n=i>=LI?i:Math.max(LI,Math.round(e*.6));this.chartEl.style.height=`${n}px`}applyOption(){!this.chart||!this.data||!this.resolved||(this.option=eI(this.data,this.resolved,Fp()),this.chart.setOption(this.option,!0))}updateSettings(e){if(this.saved=M_(e),Object.keys(this.saved).length>0&&this.results&&(this.saved.columns=[...this.results.head.vars]),typeof this.yasr.storePluginConfig=="function")try{this.yasr.storePluginConfig(this.getPluginName(),this.saved)}catch(t){console.warn("yasgui-chart-plugin: could not save chart settings",t)}this.render()}handleChartClick(e){var n;let t=(n=e==null?void 0:e.event)==null?void 0:n.event;if(!t||!(t.ctrlKey||t.metaKey)||!this.data)return;let i=tI(this.data,e);i&&this.runResourceQuery(i,t.shiftKey?"object":"subject")}async runResourceQuery(e,t,i=!0){var s,l,u,f;if(this.describeModal||(this.describeModal=new Wp({onDescribe:(c,h)=>this.runResourceQuery(c,h,!1)})),typeof this.yasr.executeQuery!="function"){console.warn("yasgui-chart-plugin: background query execution is not available");return}i&&this.describeModal.startHistory(e,t),(s=this.describeAbortController)==null||s.abort();let n=new AbortController;this.describeAbortController=n;let a=this.getPrefixes(),o={direction:t,prefixes:a};this.describeModal.showLoading(e,o);try{let c=await this.yasr.executeQuery(QM(e,t,a),{acceptHeader:"text/turtle",signal:n.signal});if(n.signal.aborted)return;let h=await MI(c);if(n.signal.aborted)return;(l=this.describeModal)==null||l.showResults(e,h,o)}catch(c){if((c==null?void 0:c.name)==="AbortError")return;console.error("yasgui-chart-plugin: resource query failed",e,t,c);let h="";try{h=typeof((u=c==null?void 0:c.response)==null?void 0:u.text)=="function"?await c.response.text():""}catch(p){h=""}(f=this.describeModal)==null||f.showError(e,c,h,o)}finally{this.describeAbortController===n&&(this.describeAbortController=null)}}fileName(e,t){return`${(t||"chart").trim()||"chart"}.${e}`}getPngDataUrl(){return this.chart?this.chart.getDataURL({type:"png",pixelRatio:2,backgroundColor:Fp().background}):null}getSvgString(){if(!this.chart||!this.option||!this.chartEl)return null;let e=this.chartEl.clientWidth||800,t=this.chartEl.clientHeight||480,i=vg(null,null,{renderer:"svg",ssr:!0,width:e,height:t});try{return i.setOption({...this.option,animation:!1,backgroundColor:Fp().background,dataZoom:this.chart.getOption().dataZoom}),i.renderToSVGString()}finally{i.dispose()}}exportImage(e,t){var a,o;let i=document.createElement("a"),n=null;if(e==="png")n=this.getPngDataUrl();else{let s=this.getSvgString();s&&(n=URL.createObjectURL(new Blob([s],{type:"image/svg+xml"})))}n&&(i.href=n,i.download=this.fileName(e,t||((o=(a=this.yasr.config)==null?void 0:a.getDownloadFileName)==null?void 0:o.call(a))),document.body.appendChild(i),i.click(),i.remove(),n.startsWith("blob:")&&setTimeout(()=>URL.revokeObjectURL(n),1e3))}download(e){if(this.chart)return{getData:()=>this.getPngDataUrl()||"",contentType:"image/png",filename:this.fileName("png",e),title:"Download chart as PNG"}}disposeChart(){var e,t,i;(e=this.resizeObserver)==null||e.disconnect(),this.resizeObserver=null,(t=this.themeObserver)==null||t.disconnect(),this.themeObserver=null,(i=this.fullscreenObserver)==null||i.disconnect(),this.fullscreenObserver=null,this.windowResizeHandler&&(window.removeEventListener("resize",this.windowResizeHandler),this.windowResizeHandler=null),this.outsideClickHandler&&(document.removeEventListener("mousedown",this.outsideClickHandler),this.outsideClickHandler=null),this.chart&&(this.chart.dispose(),this.chart=null),this.chartEl=null,this.option=null}cleanup(){var e;this.disposeChart(),(e=this.describeAbortController)==null||e.abort(),this.describeAbortController=null}destroy(){var e;this.cleanup(),(e=this.describeModal)==null||e.close(),this.describeModal=null}},Y_=G_;typeof window!="undefined"&&window.Yasgui&&window.Yasgui.Yasr&&window.Yasgui.Yasr.registerPlugin("Chart",Y_);var JV=Y_;return kI(eH);})();
|
|
31
|
+
/*! Bundled license information:
|
|
32
|
+
|
|
33
|
+
tslib/tslib.es6.js:
|
|
34
|
+
tslib/tslib.es6.js:
|
|
35
|
+
(*! *****************************************************************************
|
|
36
|
+
Copyright (c) Microsoft Corporation.
|
|
37
|
+
|
|
38
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
39
|
+
purpose with or without fee is hereby granted.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
42
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
43
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
44
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
45
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
46
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
47
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
48
|
+
***************************************************************************** *)
|
|
49
|
+
|
|
50
|
+
zrender/lib/zrender.js:
|
|
51
|
+
(*!
|
|
52
|
+
* ZRender, a high performance 2d drawing library.
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
55
|
+
* All rights reserved.
|
|
56
|
+
*
|
|
57
|
+
* LICENSE
|
|
58
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE
|
|
59
|
+
*)
|
|
60
|
+
*/
|
|
61
|
+
YasguiChartPlugin = YasguiChartPlugin.default;
|
|
62
|
+
//# sourceMappingURL=yasgui-chart-plugin.min.js.map
|