pivotkit-element 0.3.0 → 0.5.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +131 -1
  2. package/dist/THIRD_PARTY_LICENSES.txt +2 -2
  3. package/dist/chunks/chunk-4PHDW2LB.js +1 -0
  4. package/dist/chunks/chunk-5QXN3X2Q.js +1 -0
  5. package/dist/chunks/chunk-65G326ME.js +1 -0
  6. package/dist/chunks/chunk-65O4Z5GI.js +1 -0
  7. package/dist/chunks/chunk-CCL5TDLA.js +6 -0
  8. package/dist/chunks/chunk-NSPPM3IJ.js +16 -0
  9. package/dist/chunks/chunk-PJA6QZ4Y.js +2 -0
  10. package/dist/chunks/chunk-QOKB5RDG.js +6 -0
  11. package/dist/chunks/chunk-SB3L4HHW.js +1 -0
  12. package/dist/chunks/chunk-WKVC2RPA.js +1 -0
  13. package/dist/chunks/chunk-XETFD6GR.js +1 -0
  14. package/dist/chunks/chunk-XR4CMFGN.js +1 -0
  15. package/dist/chunks/chunk-YUY4D5MF.js +8 -0
  16. package/dist/chunks/echarts-4DC3BQOK.js +5 -0
  17. package/dist/chunks/export-YHS47KGK.js +1 -0
  18. package/dist/chunks/import-csv-UCA275TR.js +1 -0
  19. package/dist/chunks/import-json-W4GCIW36.js +1 -0
  20. package/dist/chunks/import-ui-7XVUBL2H.js +1 -0
  21. package/dist/chunks/link-45LOEA7H.js +1 -0
  22. package/dist/chunks/menu-texts-de-74DWTJDI.js +1 -0
  23. package/dist/chunks/menus-XBN5D32E.js +2 -0
  24. package/dist/chunks/report-run-BZBFOMPF-4M6ACMUF.js +60 -0
  25. package/dist/chunks/unused-texts-Y4R67XSN-VYGDYJND.js +1 -0
  26. package/dist/chunks/unused-texts-de-6YVPTNVS-FL6CDBZX.js +1 -0
  27. package/dist/element.js +1 -1
  28. package/dist/import-worker.js +1 -0
  29. package/dist/index.js +1 -1
  30. package/package.json +11 -5
  31. package/types/element.d.ts +80 -93
  32. package/types/events.d.ts +1 -0
  33. package/types/global.d.ts +3 -1
  34. package/types/jsx.d.ts +1 -1
  35. package/dist/chunks/chunk-FW54TETI.js +0 -9
  36. package/dist/chunks/chunk-J3NYMXAT.js +0 -6
  37. package/dist/chunks/chunk-MB64GADT.js +0 -1
  38. package/dist/chunks/chunk-RXM4LLDS.js +0 -1
  39. package/dist/chunks/echarts-42T6EZ6B.js +0 -18
  40. package/dist/chunks/export-GKVGFFWM.js +0 -6
  41. package/dist/chunks/link-52SWRX4P.js +0 -1
  42. package/dist/chunks/menu-texts-de-X4IUO7W5.js +0 -1
  43. package/dist/chunks/menus-SYPZC2NE.js +0 -1
  44. package/dist/chunks/unused-texts-K3VFH65P-5EAURTYC.js +0 -1
  45. package/dist/chunks/unused-texts-de-OW4TGIVX-GHETGXFE.js +0 -1
@@ -0,0 +1,16 @@
1
+ import{a as kt,b as qp}from"./chunk-5QXN3X2Q.js";import{b as NS}from"./chunk-DCANE7XH.js";var Dl=function(t,e){return Dl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Dl(t,e)};function Ae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Dl(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var PS=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),kS=(function(){function t(){this.browser=new PS,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),Mr=new kS;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Mr.wxa=!0,Mr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Mr.worker=!0:!Mr.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Mr.node=!0,Mr.svgSupported=!0):FS(navigator.userAgent,Mr);function FS(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var ne=Mr;var Ao=12,Ml="sans-serif",ut=Ao+"px "+Ml,US=20,BS=100,zS="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function VS(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-US)/BS;e[i]=n}return e}var HS=VS(zS),be={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=be.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||ut),t.measureText(r);r=r||"",i=i||ut;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Ao,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=HS[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};var jp=xt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Qp=xt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),ia=Object.prototype.toString,Ro=Array.prototype,GS=Ro.forEach,YS=Ro.filter,Il=Ro.slice,WS=Ro.map,Kp=function(){}.constructor,Io=Kp?Kp.prototype:null,Rl="__proto__",Ol=2311,XS=Math.pow(2,53)-1;function Lo(){return Ol>=XS&&(Ol=0),Ol++}function rn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function q(t){if(t==null||typeof t!="object")return t;var e=t,r=ia.call(t);if(r==="[object Array]"){if(!ra(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=q(t[i])}}else if(Qp[r]){if(!ra(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!jp[r]&&!ra(t)&&!Al(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Rl&&(e[o]=q(t[o]))}return e}function le(t,e,r){if(!U(e)||!U(t))return r?q(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Rl){var n=t[i],a=e[i];U(a)&&U(n)&&!N(a)&&!N(n)&&!Al(a)&&!Al(n)&&!Zp(a)&&!Zp(n)&&!ra(a)&&!ra(n)?le(n,a,r):(r||!(i in t))&&(t[i]=q(e[i]))}return t}function I(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Rl&&(t[r]=e[r]);return t}function $p(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function ce(t,e,r){for(var i=Y(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var hO=be.createCanvas;function re(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function Jp(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function yt(t,e,r){if(t="prototype"in t?t.prototype:t,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"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else ce(t,e,r)}function Ie(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function b(t,e,r){if(t&&e)if(t.forEach&&t.forEach===GS)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function L(t,e,r){if(!t)return[];if(!e)return No(t);if(t.map&&t.map===WS)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function xt(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function Be(t,e,r){if(!t)return[];if(!e)return No(t);if(t.filter&&t.filter===YS)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function pO(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function Y(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function qS(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(Il.call(arguments)))}}var me=Io&&W(Io.bind)?Io.call.bind(Io.bind):qS;function na(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Il.call(arguments)))}}function N(t){return Array.isArray?Array.isArray(t):ia.call(t)==="[object Array]"}function W(t){return typeof t=="function"}function F(t){return typeof t=="string"}function aa(t){return ia.call(t)==="[object String]"}function J(t){return typeof t=="number"}function U(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Zp(t){return!!jp[ia.call(t)]}function ge(t){return!!Qp[ia.call(t)]}function Al(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Or(t){return t.colorStops!=null}function ev(t){return t.image!=null}function tv(t){return t!==t}function vO(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function z(t,e){return t??e}function Ar(t,e,r){return t??e??r}function No(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Il.apply(t,e)}function nn(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function _e(t,e){if(!t)throw new Error(e)}function rt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var rv="__ec_primitive__";function an(t){t[rv]=!0}function ra(t){return t[rv]}var KS=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Y(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),iv=typeof Map=="function";function ZS(){return iv?new Map:new KS}var jS=(function(){function t(e){var r=N(e);this.data=ZS();var i=this;e instanceof t?e.each(n):e&&b(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return iv?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function B(t){return new jS(t)}function nv(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function Ir(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&I(r,e),r}function Po(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Re(t,e){return t.hasOwnProperty(e)}function Le(){}var on=180/Math.PI,dO=Number.EPSILON||Math.pow(2,-52);var Ll=function(t,e){return Ll=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Ll(t,e)};function G(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ll(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Rr(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function av(t){return[t[0],t[1]]}function ko(t,e,r){return t[0]=e,t[1]=r,t}function Nl(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function ov(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function QS(t){return Math.sqrt($S(t))}function $S(t){return t[0]*t[0]+t[1]*t[1]}function Fo(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function sv(t,e){var r=QS(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Uo(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var uv=Uo;function JS(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ni=JS;function gO(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function cr(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function hr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function pr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var sn=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),eT=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new sn(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new sn(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new sn(u,e),"dragleave",e.event),s&&s!==u&&this.handler.dispatchToElement(new sn(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new sn(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new sn(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),lv=eT;var tT=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var u={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[e].length-1,f=a[e][l];return f&&f.callAtLast?a[e].splice(l,0,u):a[e].push(u),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(e,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],u=n.length,l=0;l<u;l++){var f=n[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),Ge=tT;var rT=Math.log(2);function Pl(t,e,r,i,n,a){var o=i+"-"+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var u=Math.round(Math.log((1<<s)-1&~n)/rT);return t[r][u]}for(var l=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*t[r][p]*Pl(t,e-1,f,l,n|v,a),h++)}return a[o]=c,c}function kl(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=Pl(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Pl(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(u,l,f){var c=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/c,u[1]=(l*a[3]+f*a[4]+a[5])/c}}}var Bo="___zrEVENTSAVED",Fl=[];function wO(t,e,r,i,n){return zo(Fl,e,i,n,!0)&&zo(t,r,Fl[0],Fl[1])}function EO(t,e){t&&r(t),e&&r(e);function r(i){var n=i[Bo];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Bo])}}function zo(t,e,r,i,n){if(e.getBoundingClientRect&&ne.domSupported&&!Ul(e)){var a=e[Bo]||(e[Bo]={}),o=iT(e,a),s=nT(o,a,n);if(s)return s(t,r,i),!0}return!1}function iT(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){b(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function nT(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=t[l].getBoundingClientRect(),c=2*l,p=f.left,h=f.top;o.push(p,h),u=u&&a&&p===a[c]&&h===a[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return u&&n?n:(e.srcCoords=o,e[i]=r?kl(s,o):kl(o,s))}function Ul(t){return t.nodeName.toUpperCase()==="CANVAS"}var aT=/([&<>"'])/g,oT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ye(t){return t==null?"":(t+"").replace(aT,function(e,r){return oT[r]})}var sT=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Bl=[],uT=ne.browser.firefox&&+ne.browser.version.split(".")[0]<39;function Vo(t,e,r,i){return r=r||{},i?fv(t,e,r):uT&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):fv(t,e,r),r}function fv(t,e,r){if(ne.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(Ul(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(zo(Bl,t,i,n)){r.zrX=Bl[0],r.zrY=Bl[1];return}}r.zrX=r.zrY=0}function Ho(t){return t||window.event}function Dt(t,e,r){if(e=Ho(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&&Vo(t,o,e,r)}else{Vo(t,e,e,r);var a=lT(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&sT.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function lT(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function cv(t,e,r,i){t.addEventListener(e,r,i)}function hv(t,e,r,i){t.removeEventListener(e,r,i)}var pv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var mv=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var u=n[o],l=Vo(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in zl)if(zl.hasOwnProperty(r)){var i=zl[r](this._track,e);if(i)return i}},t})();function dv(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function fT(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var zl={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=dv(i)/dv(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=fT(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Kt(){return[1,0,0,1,0,0]}function oi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function oa(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function un(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t}function Vl(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function gv(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],u=e[3],l=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+u*f,t[3]=-a*f+c*u,t[4]=c*(o-i[0])+f*(l-i[1])+i[0],t[5]=c*(l-i[1])-f*(o-i[0])+i[1],t}function _v(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function ln(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],u=r*o-a*i;return u?(u=1/u,t[0]=o*u,t[1]=-a*u,t[2]=-i*u,t[3]=r*u,t[4]=(i*s-o*n)*u,t[5]=(a*n-r*s)*u,t):null}var cT=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),ve=cT;var ci=Math.min,fn=Math.max,Wl=Math.abs,yv=["x","y"],hT=["width","height"],si=new ve,ui=new ve,li=new ve,fi=new ve,St=ql(),sa=St.minTv,Xl=St.maxTv,ua=[0,0],vr=(function(){function t(e,r,i,n){Gl(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=ci(e.x,this.x),i=ci(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fn(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=fn(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return pT(Kt(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&ve.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||!r)return!1;e instanceof t||(e=Gl(vT,e.x,e.y,e.width,e.height)),r instanceof t||(r=Gl(dT,r.x,r.y,r.width,r.height));var s=!!i;St.reset(n,s);var u=St.touchThreshold,l=e.x+u,f=e.x+e.width-u,c=e.y+u,p=e.y+e.height-u,h=r.x+u,v=r.x+r.width-u,g=r.y+u,d=r.y+r.height-u;if(l>f||c>p||h>v||g>d)return!1;var m=!(f<h||v<l||p<g||d<c);return(s||a)&&(ua[0]=1/0,ua[1]=0,Sv(l,f,h,v,0,s,a,o),Sv(c,p,g,d,1,s,a,o),s&&ve.copy(i,m?St.useDir?St.dirMinTv:sa:Xl)),m},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){xv(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&xv(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.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}si.x=li.x=r.x,si.y=fi.y=r.y,ui.x=fi.x=r.x+r.width,ui.y=li.y=r.y+r.height,si.transform(i),fi.transform(i),ui.transform(i),li.transform(i),e.x=ci(si.x,ui.x,li.x,fi.x),e.y=ci(si.y,ui.y,li.y,fi.y);var u=fn(si.x,ui.x,li.x,fi.x),l=fn(si.y,ui.y,li.y,fi.y);e.width=u-e.x,e.height=l-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=oi(e||[]),Vl(e,e,ko(Yl,-r.x,-r.y)),_v(e,e,ko(Yl,n,a)),Vl(e,e,ko(Yl,i.x,i.y)),e},t})(),RO=vr.create,Gl=vr.set,xv=vr.copy,pT=vr.calculateTransform,LO=vr.applyTransform,NO=vr.contain,vT=new vr(0,0,0,0),dT=new vr(0,0,0,0),Yl=[];function Sv(t,e,r,i,n,a,o,s){var u=Wl(e-r),l=Wl(i-t),f=ci(u,l),c=yv[n],p=yv[1-n],h=hT[n];e<r||i<t?u<l?(a&&(Xl[c]=-u),s&&(o[c]=e,o[h]=0)):(a&&(Xl[c]=l),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=fn(t,r),o[h]=ci(e,i)-o[c]),a&&(f<ua[0]||St.useDir)&&(ua[0]=ci(f,ua[0]),(u<l||!St.bidirectional)&&(sa[c]=u,sa[p]=0,St.useDir&&St.calcDirMTV()),(u>=l||!St.bidirectional)&&(sa[c]=-l,sa[p]=0,St.useDir&&St.calcDirMTV())))}function ql(){var t=0,e=new ve,r=new ve,i={minTv:new ve,maxTv:new ve,useDir:!1,dirMinTv:new ve,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=fn(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(t),l=Math.cos(t),f=u*a.y+l*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Wl(a)<1e-10}return i}var K=vr;var bv="silent";function mT(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:gT}}function gT(){pv(this.event)}var _T=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Ge),la=(function(){function t(e,r){this.x=e,this.y=r}return t})(),yT=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Kl=new K(0,0,0,0),wv=(function(t){G(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new la(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new _T,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new lv(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(b(yT,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Ev(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new la(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new la(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];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(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=mT(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new la(r,i);if(Tv(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new K(r-l,i-l,u,u),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Kl.copy(p.getBoundingRect()),p.transform&&Kl.applyTransform(p.transform),Kl.intersect(f)&&s.push(p))}if(s.length)for(var h=4,v=Math.PI/12,g=Math.PI*2,d=0;d<l;d+=h)for(var m=0;m<g;m+=v){var _=r+d*Math.cos(m),y=i+d*Math.sin(m);if(Tv(s,o,_,y,n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new mv);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new la;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Ge);b(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){wv.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=Ev(this,r,i),a,o;if((t!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||uv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function xT(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?bv:!0}return!1}function Tv(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=xT(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==bv)){e.target=o;break}}}function Ev(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var Cv=wv;var Ov=32,fa=7;function ST(t){for(var e=0;t>=Ov;)e|=t&1,t>>=1;return t+e}function Dv(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;TT(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function TT(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function Mv(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,u;o<s;)u=o+s>>>1,n(a,t[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;l>0;)t[o+l]=t[o+l-1],l--}t[o]=a}}function Zl(t,e,r,i,n,a){var o=0,s=0,u=1;if(a(t,e[r+n])>0){for(s=i-n;u<s&&a(t,e[r+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(t,e[r+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var f=o+(u-o>>>1);a(t,e[r+f])>0?o=f+1:u=f}return u}function jl(t,e,r,i,n,a){var o=0,s=0,u=1;if(a(t,e[r+n])<0){for(s=n+1;u<s&&a(t,e[r+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(t,e[r+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var f=o+(u-o>>>1);a(t,e[r+f])<0?u=f:o=f+1}return u}function bT(t,e){var r=fa,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function u(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function l(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],g=n[h],d=i[h+1],m=n[h+1];n[h]=g+m,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var _=jl(t[d],t,v,g,0,e);v+=_,g-=_,g!==0&&(m=Zl(t[v+g-1],t,d,m,m-1,e),m!==0&&(g<=m?c(v,g,d,m):p(v,g,d,m)))}function c(h,v,g,d){var m=0;for(m=0;m<v;m++)o[m]=t[h+m];var _=0,y=g,x=h;if(t[x++]=t[y++],--d===0){for(m=0;m<v;m++)t[x+m]=o[_+m];return}if(v===1){for(m=0;m<d;m++)t[x+m]=t[y+m];t[x+d]=o[_];return}for(var S=r,T,C,E;;){T=0,C=0,E=!1;do if(e(t[y],o[_])<0){if(t[x++]=t[y++],C++,T=0,--d===0){E=!0;break}}else if(t[x++]=o[_++],T++,C=0,--v===1){E=!0;break}while((T|C)<S);if(E)break;do{if(T=jl(t[y],o,_,v,0,e),T!==0){for(m=0;m<T;m++)t[x+m]=o[_+m];if(x+=T,_+=T,v-=T,v<=1){E=!0;break}}if(t[x++]=t[y++],--d===0){E=!0;break}if(C=Zl(o[_],t,y,d,0,e),C!==0){for(m=0;m<C;m++)t[x+m]=t[y+m];if(x+=C,y+=C,d-=C,d===0){E=!0;break}}if(t[x++]=o[_++],--v===1){E=!0;break}S--}while(T>=fa||C>=fa);if(E)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(m=0;m<d;m++)t[x+m]=t[y+m];t[x+d]=o[_]}else{if(v===0)throw new Error;for(m=0;m<v;m++)t[x+m]=o[_+m]}}function p(h,v,g,d){var m=0;for(m=0;m<d;m++)o[m]=t[g+m];var _=h+v-1,y=d-1,x=g+d-1,S=0,T=0;if(t[x--]=t[_--],--v===0){for(S=x-(d-1),m=0;m<d;m++)t[S+m]=o[m];return}if(d===1){for(x-=v,_-=v,T=x+1,S=_+1,m=v-1;m>=0;m--)t[T+m]=t[S+m];t[x]=o[y];return}for(var C=r;;){var E=0,M=0,D=!1;do if(e(o[y],t[_])<0){if(t[x--]=t[_--],E++,M=0,--v===0){D=!0;break}}else if(t[x--]=o[y--],M++,E=0,--d===1){D=!0;break}while((E|M)<C);if(D)break;do{if(E=v-jl(o[y],t,h,v,v-1,e),E!==0){for(x-=E,_-=E,v-=E,T=x+1,S=_+1,m=E-1;m>=0;m--)t[T+m]=t[S+m];if(v===0){D=!0;break}}if(t[x--]=o[y--],--d===1){D=!0;break}if(M=d-Zl(t[_],o,0,d,d-1,e),M!==0){for(x-=M,y-=M,d-=M,T=x+1,S=y+1,m=0;m<M;m++)t[T+m]=o[S+m];if(d<=1){D=!0;break}}if(t[x--]=t[_--],--v===0){D=!0;break}C--}while(E>=fa||M>=fa);if(D)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),d===1){for(x-=v,_-=v,T=x+1,S=_+1,m=v-1;m>=0;m--)t[T+m]=t[S+m];t[x]=o[y]}else{if(d===0)throw new Error;for(S=x-(d-1),m=0;m<d;m++)t[S+m]=o[m]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function hi(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<Ov){a=Dv(t,r,i,e),Mv(t,r,i,r+a,e);return}var o=bT(t,e),s=ST(n);do{if(a=Dv(t,r,i,e),a<s){var u=n;u>s&&(u=s),Mv(t,r,r+u,r+a,e),a=u}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var we=1,pi=2,Lr=4;var Av=!1;function Ql(){Av||(Av=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Iv(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var wT=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Iv}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,hi(i,Iv)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=n,f=e;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=we),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(Ql(),v.z=0),isNaN(v.z2)&&(Ql(),v.z2=0),isNaN(v.zlevel)&&(Ql(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,s,i);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=re(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Rv=wT;var Lv;Lv=ne.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ca=Lv;var Go={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Go.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?Go.bounceIn(t*2)*.5:Go.bounceOut(t*2-1)*.5+.5}},Yo=Go;var Wo=Math.pow,Pr=Math.sqrt,qo=1e-8,Pv=1e-4,Nv=Pr(3),Xo=1/3,Zt=Rr(),Mt=Rr(),cn=Rr();function Nr(t){return t>-qo&&t<qo}function kv(t){return t>qo||t<-qo}function Ee(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function $l(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function Ko(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),u=3*(e-t),l=t-n,f=s*s-3*o*u,c=s*u-9*o*l,p=u*u-3*s*l,h=0;if(Nr(f)&&Nr(c))if(Nr(s))a[0]=0;else{var v=-u/s;v>=0&&v<=1&&(a[h++]=v)}else{var g=c*c-4*f*p;if(Nr(g)){var d=c/f,v=-s/o+d,m=-d/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(g>0){var _=Pr(g),y=f*s+1.5*o*(-c+_),x=f*s+1.5*o*(-c-_);y<0?y=-Wo(-y,Xo):y=Wo(y,Xo),x<0?x=-Wo(-x,Xo):x=Wo(x,Xo);var v=(-s-(y+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*f*s-3*o*c)/(2*Pr(f*f*f)),T=Math.acos(S)/3,C=Pr(f),E=Math.cos(T),v=(-s-2*C*E)/(3*o),m=(-s+C*(E+Nv*Math.sin(T)))/(3*o),M=(-s+C*(E-Nv*Math.sin(T)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),M>=0&&M<=1&&(a[h++]=M)}}return h}function Zo(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,u=0;if(Nr(o)){if(kv(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(Nr(f))n[0]=-a/(2*o);else if(f>0){var c=Pr(f),l=(-a+c)/(2*o),p=(-a-c)/(2*o);l>=0&&l<=1&&(n[u++]=l),p>=0&&p<=1&&(n[u++]=p)}}return u}function hn(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,u=(i-r)*n+r,l=(s-o)*n+o,f=(u-s)*n+s,c=(f-l)*n+l;a[0]=t,a[1]=o,a[2]=l,a[3]=c,a[4]=c,a[5]=f,a[6]=u,a[7]=i}function Fv(t,e,r,i,n,a,o,s,u,l,f){var c,p=.005,h=1/0,v,g,d,m;Zt[0]=u,Zt[1]=l;for(var _=0;_<1;_+=.05)Mt[0]=Ee(t,r,n,o,_),Mt[1]=Ee(e,i,a,s,_),d=ni(Zt,Mt),d<h&&(c=_,h=d);h=1/0;for(var y=0;y<32&&!(p<Pv);y++)v=c-p,g=c+p,Mt[0]=Ee(t,r,n,o,v),Mt[1]=Ee(e,i,a,s,v),d=ni(Mt,Zt),v>=0&&d<h?(c=v,h=d):(cn[0]=Ee(t,r,n,o,g),cn[1]=Ee(e,i,a,s,g),m=ni(cn,Zt),g<=1&&m<h?(c=g,h=m):p*=.5);return f&&(f[0]=Ee(t,r,n,o,c),f[1]=Ee(e,i,a,s,c)),Pr(h)}function Uv(t,e,r,i,n,a,o,s,u){for(var l=t,f=e,c=0,p=1/u,h=1;h<=u;h++){var v=h*p,g=Ee(t,r,n,o,v),d=Ee(e,i,a,s,v),m=g-l,_=d-f;c+=Math.sqrt(m*m+_*_),l=g,f=d}return c}function Fe(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function Jl(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function Bv(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,u=0;if(Nr(a)){if(kv(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(Nr(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var c=Pr(f),l=(-o+c)/(2*a),p=(-o-c)/(2*a);l>=0&&l<=1&&(n[u++]=l),p>=0&&p<=1&&(n[u++]=p)}}return u}function jo(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function pn(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function zv(t,e,r,i,n,a,o,s,u){var l,f=.005,c=1/0;Zt[0]=o,Zt[1]=s;for(var p=0;p<1;p+=.05){Mt[0]=Fe(t,r,n,p),Mt[1]=Fe(e,i,a,p);var h=ni(Zt,Mt);h<c&&(l=p,c=h)}c=1/0;for(var v=0;v<32&&!(f<Pv);v++){var g=l-f,d=l+f;Mt[0]=Fe(t,r,n,g),Mt[1]=Fe(e,i,a,g);var h=ni(Mt,Zt);if(g>=0&&h<c)l=g,c=h;else{cn[0]=Fe(t,r,n,d),cn[1]=Fe(e,i,a,d);var m=ni(cn,Zt);d<=1&&m<c?(l=d,c=m):f*=.5}}return u&&(u[0]=Fe(t,r,n,l),u[1]=Fe(e,i,a,l)),Pr(c)}function Vv(t,e,r,i,n,a,o){for(var s=t,u=e,l=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=Fe(t,r,n,p),v=Fe(e,i,a,p),g=h-s,d=v-u;l+=Math.sqrt(g*g+d*d),s=h,u=v}return l}var ET=/cubic-bezier\(([0-9,\.e ]+)\)/;function vn(t){var e=t&&ET.exec(t);if(e){var r=e[1].split(","),i=+rt(r[0]),n=+rt(r[1]),a=+rt(r[2]),o=+rt(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Ko(0,i,a,1,u,s)&&Ee(0,n,o,1,s[0])}}}var CT=(function(){function t(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||Le,this.ondestroy=e.ondestroy||Le,this.onrestart=e.onrestart||Le,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;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 u=n%i;this._startTime=e-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=W(e)?e:Yo[e]||vn(e)},t})(),Hv=CT;var Gv=(function(){function t(e){this.value=e}return t})();var DT=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Gv(e);return this.insertEntry(r),r},t.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++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var MT=(function(){function t(e){this._list=new DT,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){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 u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new Gv(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),jt=MT;var Yv={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 Ft(t){return t=Math.round(t),t<0?0:t>255?255:t}function OT(t){return t=Math.round(t),t<0?0:t>360?360:t}function ha(t){return t<0?0:t>1?1:t}function tf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ft(parseFloat(e)/100*255):Ft(parseInt(e,10))}function vi(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ha(parseFloat(e)/100):ha(parseFloat(e))}function rf(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function kr(t,e,r){return t+(e-t)*r}function Ot(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function nf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var qv=new jt(20),Qo=null;function dn(t,e){Qo&&nf(Qo,e),Qo=qv.put(t,Qo||e.slice())}function lt(t,e){if(t){e=e||[];var r=qv.get(t);if(r)return nf(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in Yv)return nf(e,Yv[i]),dn(t,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)){Ot(e,0,0,0,1);return}return Ot(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),dn(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ot(e,0,0,0,1);return}return Ot(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),dn(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?Ot(e,+l[0],+l[1],+l[2],1):Ot(e,0,0,0,1);f=vi(l.pop());case"rgb":if(l.length>=3)return Ot(e,tf(l[0]),tf(l[1]),tf(l[2]),l.length===3?f:vi(l[3])),dn(t,e),e;Ot(e,0,0,0,1);return;case"hsla":if(l.length!==4){Ot(e,0,0,0,1);return}return l[3]=vi(l[3]),af(l,e),dn(t,e),e;case"hsl":if(l.length!==3){Ot(e,0,0,0,1);return}return af(l,e),dn(t,e),e;default:return}}Ot(e,0,0,0,1)}}function af(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=vi(t[1]),n=vi(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],Ot(e,Ft(rf(o,a,r+1/3)*255),Ft(rf(o,a,r)*255),Ft(rf(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function AT(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?u=p-c:r===a?u=1/3+f-p:i===a&&(u=2/3+c-f),u<0&&(u+=1),u>1&&(u-=1)}var h=[u*360,l,s];return t[3]!=null&&h.push(t[3]),h}}function Wv(t,e){var r=lt(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return mn(r,r.length===4?"rgba":"rgb")}}function sA(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=e[n],s=e[a],u=i-n;return r[0]=Ft(kr(o[0],s[0],u)),r[1]=Ft(kr(o[1],s[1],u)),r[2]=Ft(kr(o[2],s[2],u)),r[3]=ha(kr(o[3],s[3],u)),r}}function uA(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=lt(e[n]),s=lt(e[a]),u=i-n,l=mn([Ft(kr(o[0],s[0],u)),Ft(kr(o[1],s[1],u)),Ft(kr(o[2],s[2],u)),ha(kr(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:n,rightIndex:a,value:i}:l}}function pa(t,e,r,i){var n=lt(t);if(t)return n=AT(n),e!=null&&(n[0]=OT(W(e)?e(n[0]):e)),r!=null&&(n[1]=vi(W(r)?r(n[1]):r)),i!=null&&(n[2]=vi(W(i)?i(n[2]):i)),mn(af(n),"rgba")}function lA(t,e){var r=lt(t);if(r&&e!=null)return r[3]=ha(e),mn(r,"rgba")}function mn(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function gn(t,e){var r=lt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Xv=new jt(100);function va(t){if(F(t)){var e=Xv.get(t);return e||(e=Wv(t,-.1),Xv.put(t,e)),e}else if(Or(t)){var r=I({},t);return r.colorStops=L(t.colorStops,function(i){return{offset:i.offset,color:Wv(i.color,-.1)}}),r}return t}var Jo=Math.round;function Fr(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=lt(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var Kv=1e-4;function Qt(t){return t<Kv&&t>-Kv}function $o(t){return Jo(t*1e3)/1e3}function es(t){return Jo(t*1e4)/1e4}function Zv(t){return"matrix("+$o(t[0])+","+$o(t[1])+","+$o(t[2])+","+$o(t[3])+","+es(t[4])+","+es(t[5])+")"}var jv={left:"start",right:"end",center:"middle",middle:"middle"};function Qv(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function $v(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function Jv(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function of(t){return t&&!!t.image}function RT(t){return t&&!!t.svgElement}function da(t){return of(t)||RT(t)}function ts(t){return t.type==="linear"}function rs(t){return t.type==="radial"}function is(t){return t&&(t.type==="linear"||t.type==="radial")}function ma(t){return"url(#"+t+")"}function ns(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function as(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*on,n=z(t.scaleX,1),a=z(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,u=[];return(e||r)&&u.push("translate("+e+"px,"+r+"px)"),i&&u.push("rotate("+i+")"),(n!==1||a!==1)&&u.push("scale("+n+","+a+")"),(o||s)&&u.push("skew("+Jo(o*on)+"deg, "+Jo(s*on)+"deg)"),u.join(" ")}var ed=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var uf=Array.prototype.slice;function dr(t,e,r){return(e-t)*r+t}function sf(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=dr(e[a],r[a],i);return t}function LT(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=dr(e[o][s],r[o][s],i)}return t}function os(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function td(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function NT(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function PT(t,e,r){var i=t,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 u=a;u<o;u++)i.push(r===1?n[u]:uf.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(r===1)isNaN(i[u])&&(i[u]=n[u]);else for(var f=0;f<l;f++)isNaN(i[u][f])&&(i[u][f]=n[u][f])}}function ya(t){if(Ie(t)){var e=t.length;if(Ie(t[0])){for(var r=[],i=0;i<e;i++)r.push(uf.call(t[i]));return r}return uf.call(t)}return t}function ls(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function kT(t){return Ie(t&&t[0])?2:1}var ss=0,fs=1,nd=2,_a=3,lf=4,ff=5,rd=6;function id(t){return t===lf||t===ff}function us(t){return t===fs||t===nd}var ga=[0,0,0,0],FT=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=rd,u=r;if(Ie(r)){var l=kT(r);s=l,(l===1&&!J(r[0])||l===2&&!J(r[0][0]))&&(o=!0)}else if(J(r)&&!tv(r))s=ss;else if(F(r))if(!isNaN(+r))s=ss;else{var f=lt(r);f&&(u=f,s=_a)}else if(Or(r)){var c=I({},u);c.colorStops=L(r.colorStops,function(h){return{offset:h.offset,color:lt(h.color)}}),ts(r)?s=lf:rs(r)&&(s=ff),u=c}a===0?this.valType=s:(s!==this.valType||s===rd)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:u,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=W(i)?i:Yo[i]||vn(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=us(n),l=id(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(u&&f!==a-1?PT(p,h,n):l&&NT(p.colorStops,h.colorStops))}if(!s&&n!==ff&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=i[0].value,f=0;f<a;f++)n===ss?i[f].additiveValue=i[f].value-v:n===_a?i[f].additiveValue=os([],i[f].value,v,-1):us(n)&&(i[f].additiveValue=n===fs?os([],i[f].value,v,-1):td([],i[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===_a,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=p(c+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var d=v.percent-h.percent,m=d===0?1:p((r-h.percent)/d,1);v.easingFunc&&(m=v.easingFunc(m));var _=i?this._additiveValue:l?ga:e[u];if((us(a)||l)&&!_&&(_=this._additiveValue=[]),this.discrete)e[u]=m<1?h.rawValue:v.rawValue;else if(us(a))a===fs?sf(_,h[n],v[n],m):LT(_,h[n],v[n],m);else if(id(a)){var y=h[n],x=v[n],S=a===lf;e[u]={type:S?"linear":"radial",x:dr(y.x,x.x,m),y:dr(y.y,x.y,m),colorStops:L(y.colorStops,function(C,E){var M=x.colorStops[E];return{offset:dr(C.offset,M.offset,m),color:ls(sf([],C.color,M.color,m))}}),global:x.global},S?(e[u].x2=dr(y.x2,x.x2,m),e[u].y2=dr(y.y2,x.y2,m)):e[u].r=dr(y.r,x.r,m)}else if(l)sf(_,h[n],v[n],m),i||(e[u]=ls(_));else{var T=dr(h[n],v[n],m);i?this._additiveValue=T:e[u]=T}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===ss?e[i]=e[i]+n:r===_a?(lt(e[i],ga),os(ga,ga,n,1),e[i]=ls(ga)):r===fs?os(e[i],e[i],n,1):r===nd&&td(e[i],e[i],n,1)},t})(),UT=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){rn("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,Y(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new FT(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];l=p&&p.value,f.valType===_a&&l&&(l=ls(l))}else l=this._target[s];if(l==null)continue;e>0&&u.addKeyframe(0,ya(l),n),this._trackKeys.push(s)}u.addKeyframe(e,ya(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=l[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Hv({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var g=!1,d=0;d<v.length;d++)if(v[d]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(r._target,h);var m=r._onframeCbs;if(m)for(var d=0;d<m.length;d++)m[d](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return L(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){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()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(e[a]=ya(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Y(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),xa=UT;function di(){return new Date().getTime()}var BT=(function(t){G(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=di()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(ca(i),!r._paused&&r.update())}ca(i)},e.prototype.start=function(){this._running||(this._time=di(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=di(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=di()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new xa(r,i.loop);return this.addAnimator(n),n},e})(Ge),ad=BT;var zT=300,cf=ne.domSupported,hf=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=L(t,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:t,touch:e,pointer:i}})(),od={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sd=!1;function df(t){var e=t.pointerType;return e==="pen"||e==="touch"}function VT(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function pf(t){t&&(t.zrByTouch=!0)}function HT(t,e){return Dt(t.dom,new GT(t,e),!0)}function ld(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var GT=(function(){function t(e,r){this.stopPropagation=Le,this.stopImmediatePropagation=Le,this.preventDefault=Le,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Ut={mousedown:function(t){t=Dt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Dt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Dt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Dt(this.dom,t);var e=t.toElement||t.relatedTarget;ld(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){sd=!0,t=Dt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){sd||(t=Dt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Dt(this.dom,t),pf(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ut.mousemove.call(this,t),Ut.mousedown.call(this,t)},touchmove:function(t){t=Dt(this.dom,t),pf(t),this.handler.processGesture(t,"change"),Ut.mousemove.call(this,t)},touchend:function(t){t=Dt(this.dom,t),pf(t),this.handler.processGesture(t,"end"),Ut.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<zT&&Ut.click.call(this,t)},pointerdown:function(t){Ut.mousedown.call(this,t)},pointermove:function(t){df(t)||Ut.mousemove.call(this,t)},pointerup:function(t){Ut.mouseup.call(this,t)},pointerout:function(t){df(t)||Ut.mouseout.call(this,t)}};b(["click","dblclick","contextmenu"],function(t){Ut[t]=function(e){e=Dt(this.dom,e),this.trigger(t,e)}});var mf={pointermove:function(t){df(t)||mf.mousemove.call(this,t)},pointerup:function(t){mf.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function YT(t,e){var r=e.domHandlers;ne.pointerEventsSupported?b(hf.pointer,function(i){cs(e,i,function(n){r[i].call(t,n)})}):(ne.touchEventsSupported&&b(hf.touch,function(i){cs(e,i,function(n){r[i].call(t,n),VT(e)})}),b(hf.mouse,function(i){cs(e,i,function(n){n=Ho(n),e.touching||r[i].call(t,n)})}))}function WT(t,e){ne.pointerEventsSupported?b(od.pointer,r):ne.touchEventsSupported||b(od.mouse,r);function r(i){function n(a){a=Ho(a),ld(t,a.target)||(a=HT(t,a),e.domHandlers[i].call(t,a))}cs(e,i,n,{capture:!0})}}function cs(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,cv(t.domTarget,e,r,i)}function vf(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&hv(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var ud=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),XT=(function(t){G(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new ud(r,Ut),cf&&(n._globalHandlerScope=new ud(document,mf)),YT(n,n._localHandlerScope),n}return e.prototype.dispose=function(){vf(this._localHandlerScope),cf&&vf(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,cf&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?WT(this,i):vf(i)}},e})(Ge),fd=XT;var cd=1;ne.hasGlobalWindow&&(cd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var mi=cd,Sa=.4,Ta="#333",ba="#ccc",hd="#eee";var pd=oi,vd=5e-5;function gi(t){return t>vd||t<-vd}var _i=[],_n=[],gf=Kt(),_f=Math.abs,dd=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return qT(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return gi(this.rotation)||gi(this.x)||gi(this.y)||gi(this.scaleX-1)||gi(this.scaleY-1)||gi(this.skewX)||gi(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(pd(i),this.invTransform=null);return}i=i||Kt(),r?this.getLocalTransform(i):pd(i),e&&(r?un(i,e,i):oa(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Kt(),ln(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(_i);var i=_i[0]<0?-1:1,n=_i[1]<0?-1:1,a=((_i[0]-i)*r+i)/_i[0]||0,o=((_i[1]-n)*r+n)/_i[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=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),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Kt(),un(_n,e.invTransform,r),r=_n);var i=this.originX,n=this.originY;(i||n)&&(gf[4]=i,gf[5]=n,un(_n,r,gf),_n[4]-=i,_n[5]-=n,r=_n),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&cr(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&cr(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&_f(e[0]-1)>1e-10&&_f(e[3]-1)>1e-10?Math.sqrt(_f(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){wa(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,u=e.anchorY,l=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||u){var v=i+s,g=n+u;r[4]=-v*a-p*g*o,r[5]=-g*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,l&&gv(r,r,l),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),qT=dd.getLocalTransform;var yn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function wa(t,e){return $p(t,e,yn)}var xn=dd;function Bt(t){hs||(hs=new jt(100)),t=t||ut;var e=hs.get(t);return e||(e={font:t,strWidthCache:new jt(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:be.measureText("\u56FD",t).width,asciiCharWidth:be.measureText("a",t).width},hs.put(t,e)),e}var hs;function KT(t){if(!(yf>=md)){t=t||ut;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=be.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?yf=md:n>2&&yf++,e}}var yf=0,md=5;function xf(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=KT(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function zt(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=be.measureText(e,t.font).width,r.put(e,i)),i}function gd(t,e,r,i){var n=zt(Bt(e),t),a=xi(e),o=Ur(0,n,r),s=mr(0,a,i),u=new K(o,s,n,a);return u}function _d(t,e,r,i){var n=((t||"")+"").split(`
2
+ `),a=n.length;if(a===1)return gd(n[0],e,r,i);for(var o=new K(0,0,0,0),s=0;s<n.length;s++){var u=gd(n[s],e,r,i);s===0?o.copy(u):o.union(u)}return o}function Ur(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function mr(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function xi(t){return Bt(t).stWideCharWidth}function yi(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ps(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",c="top";if(i instanceof Array)u+=yi(i[0],r.width),l+=yi(i[1],r.height),f=null,c=null;else switch(i){case"left":u-=n,l+=s,f="right",c="middle";break;case"right":u+=n+o,l+=s,c="middle";break;case"top":u+=o/2,l-=n,f="center",c="bottom";break;case"bottom":u+=o/2,l+=a+n,f="center";break;case"inside":u+=o/2,l+=s,f="center",c="middle";break;case"insideLeft":u+=n,l+=s,c="middle";break;case"insideRight":u+=o-n,l+=s,f="right",c="middle";break;case"insideTop":u+=o/2,l+=n,f="center";break;case"insideBottom":u+=o/2,l+=a-n,f="center",c="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,f="right";break;case"insideBottomLeft":u+=n,l+=a-n,c="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,f="right",c="bottom";break}return t=t||{},t.x=u,t.y=l,t.align=f,t.verticalAlign=c,t}var Sf="__zr_normal__",Tf=yn.concat(["ignore"]),jT=xt(yn,function(t,e){return t[e]=!0,t},{ignore:!1}),Sn={},QT=new K(0,0,0,0),vs=[],ds=0,Tn=1,Ef=(function(){function t(e){this.id=Lo(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=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]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=QT,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Sn,i,p):ps(Sn,i,p),a.x=Sn.x,a.y=Sn.y,o=Sn.align,s=Sn.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,g=void 0;h==="center"?(v=p.width*.5,g=p.height*.5):(v=yi(h[0],p.width),g=yi(h[1],p.height)),l=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+g+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var _=m.overflowRect=m.overflowRect||new K(0,0,0,0);a.getLocalTransform(vs),ln(vs,vs),K.copy(_,p),_.applyTransform(vs)}else m.overflowRect=null;var y=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,T=void 0;y&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),T=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),T=!0)),x=x||"#000",(x!==m.fill||S!==m.stroke||T!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(u=!0,m.fill=x,m.stroke=S,m.autoStroke=T,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=we,u&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ba:Ta},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&lt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,mn(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},I(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(U(e))for(var i=e,n=Y(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Sf)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Tf)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Sf,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===Sf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(re(s,e)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!a){rn("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=this._textContent,c=yd(this,f,l,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,l,this._normalState,r,Sd(this,i,u),u);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=ds,this.__dirty&=~we),l}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(e[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=e[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,e)),f||(f=this.states[l]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=yd(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),g=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,Sd(this,r,g),g);var d=this._textGuide;p&&p.useStates(e,r,!!h),d&&d.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=ds,this.__dirty&=~we)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=re(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=re(n,e),o=re(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];I(r,a),a.textConfig&&(i=i||{},I(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==Tn){var s=!(r&&n);r&&r.textConfig?(this.textConfig=I({},n?this.textConfig:i.textConfig),I(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,f=0;f<Tf.length;f++){var c=Tf[f],p=a&&jT[c];r&&r[c]!=null?p?(l=!0,u[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(l=!0,u[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||i)[v]:r||i)}l&&this._transitionState(e,u,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new xn,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),I(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=we;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,a=new xa(n,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=re(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){bf(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){bf(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=bf(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=ds,e.__dirty=we;var r={};function i(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function n(a,o,s,u){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];l(this,f)}return this[o]},set:function(f){this[s]=f[0],this[u]=f[1],this[o]=f,l(this,f)}});function l(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[u]},set:function(p){f[u]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();yt(Ef,Ge);yt(Ef,xn);function bf(t,e,r,i,n){r=r||{};var a=[];Td(t,"",t,e,r,i,a,n);var o=a.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},c=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(v,g){r.during(g)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function wf(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function $T(t){return Ie(t[0])}function JT(t,e,r){if(Ie(e[r]))if(Ie(t[r])||(t[r]=[]),ge(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),wf(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if($T(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?wf(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else wf(a,n,o);a.length=n.length}else t[r]=e[r]}function e1(t,e){return t===e||Ie(t)&&Ie(e)&&t1(t,e)}function t1(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function Td(t,e,r,i,n,a,o,s){for(var u=Y(i),l=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!U(a),v=t.animators,g=[],d=0;d<u.length;d++){var m=u[d],_=i[m];if(_!=null&&r[m]!=null&&(h||a[m]))if(U(_)&&!Ie(_)&&!Or(_)){if(e){s||(r[m]=_,t.updateDuringAnimation(e));continue}Td(t,m,r[m],_,n,a&&a[m],o,s)}else g.push(m);else s||(r[m]=_,t.updateDuringAnimation(e),g.push(m))}var y=g.length;if(!c&&y)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var T=S.stopTracks(g);if(T){var C=re(v,S);v.splice(C,1)}}}if(n.force||(g=Be(g,function(w){return!e1(i[w],r[w])}),y=g.length),y>0||n.force&&!o.length){var E=void 0,M=void 0,D=void 0;if(s){M={},p&&(E={});for(var x=0;x<y;x++){var m=g[x];M[m]=r[m],p?E[m]=i[m]:r[m]=i[m]}}else if(p){D={};for(var x=0;x<y;x++){var m=g[x];D[m]=ya(r[m]),JT(r,i,m)}}var S=new xa(r,!1,!1,c?Be(v,function(R){return R.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&E&&S.whenWithKeys(0,E,g),D&&S.whenWithKeys(0,D,g),S.whenWithKeys(l??500,s?M:i,g).delay(f||0),t.addAnimator(S,e),o.push(S)}}function yd(t,e,r,i){return!(r&&r.hoverLayer||i)||xd(t)||e&&xd(e)?ds:Tn}function xd(t){return t.type==="text"||t.type==="tspan"}function Sd(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var ms=Ef;var bd=(function(t){G(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=re(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=re(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new K(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(K.applyTransform(i,l,f),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},e})(ms);bd.prototype.type="group";var $t=bd;var gs={},wd={};function r1(t){delete wd[t]}function i1(t){if(!t)return!1;if(typeof t=="string")return gn(t,1)<Sa;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=gn(e[n].color,1);return r/=i,r<Sa}return!1}var n1=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new Rv,o=i.renderer||"canvas";gs[o]||(o=Y(gs)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new gs[o](r,a,i,e),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!ne.node&&!ne.worker&&!u?new fd(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?ne.touchEventsSupported:!!f,p=44,h;c&&(h=z(i.pointerSize,p)),this.handler=new Cv(a,s,l,s.root,h),this.animation=new ad({stage:{update:u?null:function(){return n._flush(!1)}}}),u||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=i1(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.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},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=di(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=di();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof $t&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,r1(this.id))},t})();function Df(t,e){var r=new n1(Lo(),t,e);return wd[r.id]=r,r}function Ed(t,e){gs[t]=e}var Cf;function Cd(t){if(typeof Cf=="function")return Cf(t)}function Dd(t){Cf=t}var Md=1e-4,Od=20;function o1(t){return t.replace(/^\s+|\s+$/g,"")}var Ht=Math.min,ye=Math.max,ze=Math.abs,Gt=Math.round,Of=Math.floor,Ad=Math.ceil,Br=Math.pow,bn=Math.log,Mf=Math.LN10,s1=Math.PI,u1=Math.random;function Af(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(i)if(u>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/u*l+o}var Xe=l1;function l1(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return f1(t,e,r)}function f1(t,e,r){return F(t)?c1(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function c1(t){return!!o1(t).match(/%$/)}function it(t,e,r){return isNaN(e)?r?""+t:+t:(e=Ht(ye(0,e),Od),t=(+t).toFixed(e),r?t:+t)}function _s(t){return t.sort(function(e,r){return e-r}),t}function Vt(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Gt(t*e)/e===t)return r}return h1(t)}function h1(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return ye(0,o-i)}function oI(t,e,r){var i=ze(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=bn(2*ze(r||1)*ze(i))/Mf,a=bn(ze(e))/Mf,o=ye(0,Ad(-n+a));return isFinite(o)||(o=NaN),o}function sI(t,e){var r=xt(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var i=Br(10,e),n=L(t,function(h){return(isNaN(h)?0:h)/r*i*100}),a=i*100,o=L(n,function(h){return Of(h)}),s=xt(o,function(h,v){return h+v},0),u=L(n,function(h,v){return h-o[v]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,c=0,p=u.length;c<p;++c)u[c]>l&&(l=u[c],f=c);++o[f],u[f]=0,++s}return L(o,function(h){return h/i})}function Id(t,e){var r=ye(Vt(t),Vt(e)),i=t+e;return r>Od?i:it(i,r)}var uI=Br(2,53)-1;function lI(t){var e=s1*2;return(t%e+e)%e}function fI(t){return t>-Md&&t<Md}var p1=/^(?:(\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 Jt(t){if(t instanceof Date)return t;if(F(t)){var e=p1.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(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(t==null)return new Date(NaN);return new Date(Gt(t))}function cI(t){return Br(10,ys(t))}function ys(t){if(t===0)return 0;var e=Of(bn(t)/Mf);return t/Br(10,e)>=10&&e++,e}var v1=2;function If(t,e){var r=ys(t),i=Br(10,r),n=t/i,a;return e===v1?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,t=a*i,it(t,-r)}function hI(t){t.sort(function(u,l){return s(u,l,0)?-1:1});for(var e=-1/0,r=1,i=0;i<t.length;){for(var n=t[i].interval,a=t[i].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,a[o]=o?1:1-r),e=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function er(t){var e=parseFloat(t);return e==t&&(e!==0||!F(t)||t.indexOf("x")<=0)?e:NaN}function Rf(t){return!isNaN(er(t))}function Ea(){return Gt(u1()*9)}function Rd(t,e){return e===0?t:Rd(e,t%e)}function Lf(t,e){return t==null?e:e==null?t:t*e/Rd(t,e)}function gr(t){return t!=null&&isFinite(t)}var d1="[ECharts] ",Nd={},m1=typeof console<"u"&&console.warn&&console.log;function g1(t,e,r){if(m1){if(r){if(Nd[e])return;Nd[e]=!0}console[t](d1+e)}}function Nf(t,e){g1("error",t,e)}function qe(t){throw new Error(t)}function Pd(t,e,r){return(e-t)*r+t}var kd="series\0",_1="\0_ec_\0";function xe(t){return t instanceof Array?t:t==null?[]:[t]}function Pf(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var kf=["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 Si(t){return U(t)&&!N(t)&&!(t instanceof Date)?t.value:t}function Fd(t){return U(t)&&!(t instanceof Array)}function Ud(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=B();b(e,function(u,l){if(!U(u)){e[l]=null;return}});var s=y1(t,o,r);return(i||n)&&x1(s,t,o,e),i&&S1(s,e),i||n?T1(s,e,n):a&&b1(s,e),w1(s),s}function y1(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r==="replaceMerge"||wn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function x1(t,e,r,i){b(i,function(n,a){if(!(!n||n.id==null)){var o=Ca(n.id),s=r.get(o);if(s!=null){var u=t[s];_e(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=n,u.existing=e[s],i[a]=null}}})}function S1(t,e){b(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!wn(r)&&!wn(a)&&Bd("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function T1(t,e,r){b(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||wn(n.existing)||n.existing&&i.id!=null&&!Bd("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function b1(t,e){b(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function w1(t){var e=B();b(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),b(t,function(r){var i=r.newOption;_e(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),b(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(U(a)){if(o.name=a.name!=null?Ca(a.name):n?n.name:kd+i,n)o.id=Ca(n.id);else if(a.id!=null)o.id=Ca(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function Bd(t,e,r){var i=ft(e[t],null),n=ft(r[t],null);return i!=null&&n!=null&&i===n}function Ca(t){return ft(t,"")}function ft(t,e){return t==null?e:F(t)?t:J(t)||aa(t)?t+"":e}function xs(t){var e=t.name;return!!(e&&e.indexOf(kd))}function wn(t){return t&&t.id!=null&&Ca(t.id).indexOf(_1)===0}function zd(t,e,r){b(t,function(i){var n=i.newOption;U(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=E1(e,n,i.existing,r))})}function E1(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function gI(t,e){var r={},i={};return n(t||[],r),n(e||[],i,r),[a(r),a(i)];function n(o,s,u){for(var l=0,f=o.length;l<f;l++){var c=ft(o[l].seriesId,null);if(c==null)return;for(var p=xe(o[l].dataIndex),h=u&&u[c],v=0,g=p.length;v<g;v++){var d=p[v];h&&h[d]?h[d]=null:(s[c]||(s[c]={}))[d]=1}}}function a(o,s){var u=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)u.push(+l);else{var f=a(o[l],!0);f.length&&u.push({seriesId:l,dataIndex:f})}return u}}function Ti(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return N(e.dataIndex)?L(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return N(e.name)?L(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ie(){var t="__ec_inner_"+C1++;return function(e){return e[t]||(e[t]={})}}var C1=Ea();function Ss(t,e,r){var i=Ff(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=r?r.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,f){var c=En(t,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Ff(t,e){var r;if(F(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=B(),a={},o=!1;return b(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],c=(l[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&re(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var Ts={useDefault:!0,enableAll:!1,enableNone:!1};function En(t,e,r,i){i=i||Ts;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=t.getComponent(e))?[u]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function Vd(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function Uf(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function Hd(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function _I(t){return t==="auto"?ne.domSupported?"html":"richText":t||"html"}function D1(t,e,r,i,n){var a=e==null||e==="auto";if(i==null)return i;if(J(i)){var o=Pd(r||0,i,n);return it(o,a?Math.max(Vt(r||0),Vt(i)):e)}else{if(F(i))return n<1?r:i;for(var s=[],u=r,l=i,f=Math.max(u?u.length:0,l.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&u?u:l)[c];else{var h=u&&u[c]?u[c]:0,v=l[c],o=Pd(h,v,n);s[c]=it(o,a?Math.max(Vt(h),Vt(v)):e)}}return s}}var yI=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.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},t})();function Yt(){return[1/0,-1/0]}function xI(t,e){zr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function SI(t,e){zr(e)&&e<t[0]&&(t[0]=e)}function TI(t,e){zr(e)&&e>t[1]&&(t[1]=e)}function bI(t,e){_r(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function zr(t){return t!=null&&isFinite(t)}function _r(t,e){return zr(t)&&zr(e)&&t<=e}function wI(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function EI(t){_r(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Gd(){var t="__ec_once_"+M1++;return function(e,r){Re(e,t)||(e[t]=1,r())}}var M1=Ea();function bs(t,e,r){var i=B(),n=0;b(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function Yd(t){return t.value+""}function Wd(t){return t+""}function CI(t,e){return z(e,!0)?t.seriesIndex+2:0}function Xd(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function DI(t,e){return{seriesType:t,overallReset:e}}function ws(t){return{overallReset:t}}var O1=".",bi="___EC__COMPONENT__CONTAINER___",qd="___EC__EXTENDED_CLASS___";function ct(t){var e={main:"",sub:""};if(t){var r=t.split(O1);e.main=r[0]||"",e.sub=r[1]||""}return e}function A1(t){_e(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Kd(t){return!!(t&&t[qd])}function Cn(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return I1(i)?n=(function(a){Ae(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},Jp(n,this)),I(n.prototype,r),n[qd]=!0,n.extend=this.extend,n.superCall=L1,n.superApply=N1,n.superClass=i,n}}function I1(t){return W(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Es(t,e){t.extend=e.extend}var R1=Math.round(Math.random()*10);function Zd(t){var e=["__\0is_clz",R1++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function L1(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function N1(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Vr(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){A1(n),i.prototype.type=n;var a=ct(n);if(!a.sub)e[a.main]=i;else if(a.sub!==bi){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[bi]&&(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},t.getClassesByMainType=function(i){var n=ct(i),a=[],o=e[n.main];return o&&o[bi]?b(o,function(s,u){u!==bi&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=ct(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return b(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=ct(i),a=e[n.main];return a&&a[bi]};function r(i){var n=e[i.main];return(!n||!n[bi])&&(n=e[i.main]={},n[bi]=!0),n}}function tr(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var u=t[s][1];if(!(n&&re(n,u)>=0||a&&re(a,u)<0)){var l=i.getShallow(u,e);l!=null&&(o[t[s][0]]=l)}}return o}}var P1=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],k1=tr(P1),jd=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return k1(this,e,r)},t})();var zf=new jt(50);function $d(t){if(typeof t=="string"){var e=zf.get(t);return e&&e.image}else return t}function Ma(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=zf.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!Dn(e)&&a.pending.push(o)):(e=be.loadImage(t,Qd,Qd),e.__zrImageSrc=t,zf.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Qd(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Dn(t){return t&&t.width&&t.height}var Vf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function U1(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
3
+ `);a=rm(r,i,n,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)im(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;t.text=o.join(`
4
+ `),t.isTruncated=s}function rm(t,e,r,i){i=i||{};var n=I({},i);r=z(r,"..."),n.maxIterations=z(i.maxIterations,2);var a=n.minChar=z(i.minChar,0),o=n.fontMeasureInfo=Bt(e),s=o.asciiCharWidth;n.placeholder=z(i.placeholder,"");for(var u=t=Math.max(0,t-1),l=0;l<a&&u>=s;l++)u-=s;var f=zt(o,r);return f>u&&(r="",f=0),u=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=u,n.containerWidth=t,n}function im(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=zt(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var u=s===0?B1(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,u),o=zt(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function B1(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=xf(r,t.charCodeAt(n));return n}function nm(t,e,r,i){var n=Yf(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=e.font,f=a==="truncate",c=xi(l),p=z(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,g=e.width;g==null&&r!=null&&(g=r-s);var d=e.height;d==null&&i!=null&&(d=i-u);var m;g!=null&&(a==="break"||a==="breakAll")?m=n?om(n,e.font,g,a==="breakAll",0).lines:[]:m=n?n.split(`
5
+ `):[];var _=m.length*p;if(d==null&&(d=_),_>d&&h){var y=Math.floor(d/p);v=v||m.length>y,m=m.slice(0,y),_=m.length*p}if(n&&f&&g!=null)for(var x=rm(g,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},T=0;T<m.length;T++)im(S,m[T],x),m[T]=S.textLine,v=v||S.isTruncated;for(var C=d,E=0,M=Bt(l),T=0;T<m.length;T++)E=Math.max(zt(M,m[T]),E);g==null&&(g=E);var D=g;return C+=u,D+=s,{lines:m,height:d,outerWidth:D,outerHeight:C,lineHeight:p,calculatedLineHeight:c,contentWidth:E,contentHeight:_,width:g,isTruncated:v}}var z1=(function(){function t(){}return t})(),Jd=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),V1=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function am(t,e,r,i,n){var a=new V1,o=Yf(t);if(!o)return a;var s=e.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-u);var c=e.height;c==null&&i!=null&&(c=i-l);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,v=Vf.lastIndex=0,g;(g=Vf.exec(o))!=null;){var d=g.index;d>v&&Hf(a,o.substring(v,d),e,h),Hf(a,g[2],e,h,g[1]),v=Vf.lastIndex}v<o.length&&Hf(a,o.substring(v,o.length),e,h);var m=[],_=0,y=0,x=p==="truncate",S=e.lineOverflow==="truncate",T={};function C(de,tt,st){de.width=tt,de.lineHeight=st,_+=st,y=Math.max(y,tt)}e:for(var E=0;E<a.lines.length;E++){for(var M=a.lines[E],D=0,w=0,R=0;R<M.tokens.length;R++){var O=M.tokens[R],A=O.styleName&&e.rich[O.styleName]||{},V=O.textPadding=A.padding,k=V?V[1]+V[3]:0,H=O.font=A.font||e.font;O.contentHeight=xi(H);var $=z(A.height,O.contentHeight);if(O.innerHeight=$,V&&($+=V[0]+V[2]),O.height=$,O.lineHeight=Ar(A.lineHeight,e.lineHeight,$),O.align=A&&A.align||n,O.verticalAlign=A&&A.verticalAlign||"middle",S&&c!=null&&_+O.lineHeight>c){var oe=a.lines.length;R>0?(M.tokens=M.tokens.slice(0,R),C(M,w,D),a.lines=a.lines.slice(0,E+1)):a.lines=a.lines.slice(0,E),a.isTruncated=a.isTruncated||a.lines.length<oe;break e}var ee=A.width,Q=ee==null||ee==="auto";if(typeof ee=="string"&&ee.charAt(ee.length-1)==="%")O.percentWidth=ee,m.push(O),O.contentWidth=zt(Bt(H),O.text);else{if(Q){var ae=A.backgroundColor,fe=ae&&ae.image;fe&&(fe=$d(fe),Dn(fe)&&(O.width=Math.max(O.width,fe.width*$/fe.height)))}var j=x&&f!=null?f-w:null;j!=null&&j<O.width?!Q||j<k?(O.text="",O.width=O.contentWidth=0):(U1(T,O.text,j-k,H,e.ellipsis,{minChar:e.truncateMinChar}),O.text=T.text,a.isTruncated=a.isTruncated||T.isTruncated,O.width=O.contentWidth=zt(Bt(H),O.text)):O.contentWidth=zt(Bt(H),O.text)}O.width+=k,w+=O.width,A&&(D=Math.max(D,O.lineHeight))}C(M,w,D)}a.outerWidth=a.width=z(f,y),a.outerHeight=a.height=z(c,_),a.contentHeight=_,a.contentWidth=y,a.outerWidth+=u,a.outerHeight+=l;for(var E=0;E<m.length;E++){var O=m[E],ue=O.percentWidth;O.width=parseInt(ue,10)/100*a.width}return a}function Hf(t,e,r,i,n){var a=e==="",o=n&&r.rich[n]||{},s=t.lines,u=o.font||r.font,l=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=yi(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
6
+ `),l=!0),i.accumWidth=v}else{var g=om(e,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+h,c=g.linesWidths,f=g.lines}}f||(f=e.split(`
7
+ `));for(var d=Bt(u),m=0;m<f.length;m++){var _=f[m],y=new z1;if(y.styleName=n,y.text=_,y.isLineHolder=!_&&!a,typeof o.width=="number"?y.width=o.width:y.width=c?c[m]:zt(d,_),!m&&!l){var x=(s[s.length-1]||(s[0]=new Jd)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=y:(_||!S||a)&&x.push(y)}else s.push(new Jd([y]))}}function H1(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var G1=xt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Y1(t){return H1(t)?!!G1[t]:!0}function om(t,e,r,i,n){for(var a=[],o=[],s="",u="",l=0,f=0,c=Bt(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
8
+ `){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var v=xf(c,h.charCodeAt(0)),g=i?!1:!Y1(h);if(a.length?f+v>r:n+f+v>r){f?(s||u)&&(g?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=h,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=h,f=v)):g?(a.push(u),o.push(l),u=h,l=v):(a.push(h),o.push(v));continue}f+=v,g?(u+=h,l+=v):(u&&(s+=u,u="",l=0),s+=h)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function Gf(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;K.set(em,Ur(r,o,n),mr(i,s,a),o,s),K.intersect(e,em,null,tm);var u=tm.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=Ur(u.x,u.width,n,!0),t.baseY=mr(u.y,u.height,a,!0)}}var em=new K(0,0,0,0),tm={outIntersectRect:{},clamp:!0};function Yf(t){return t!=null?t+="":t=""}function sm(t){var e=Yf(t.text),r=t.font,i=zt(Bt(r),e),n=xi(r);return Cs(t,i,n,null)}function Cs(t,e,r,i){var n=new K(Ur(t.x||0,e,t.textAlign),mr(t.y||0,r,t.textBaseline),e,r),a=i??(Wf(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Wf(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Kf="__zr_style_"+Math.round(Math.random()*10),rr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},wi={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};rr[Kf]=!0;var um=["z","z2","invisible"],W1=["invisible"],X1=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=Y(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&q1(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new K(0,0,0,0)),i?K.applyTransform(r,n,i):r.copy(n),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new K(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:I(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=pi,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&pi)},e.prototype.styleUpdated=function(){this.__dirty&=~pi},e.prototype.createStyle=function(r){return Ir(rr,r)},e.prototype.useStyle=function(r){r[Kf]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[Kf]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,um)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var u=!(i&&a),l=this.__inHover===Tn,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)):u&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var p=Y(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var g=Y(f),h=0;h<g.length;h++){var v=g[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else l?this._useHoverStyle(f):this.useStyle(f);if(!l)for(var d=this.__inHover?W1:um,h=0;h<d.length;h++){var v=d[h];i&&i[v]!=null?this[v]=i[v]:u&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return I(r,i),r},e.prototype.getAnimationStyleProps=function(){return wi},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=we|pi})(),e})(ms),Xf=new K(0,0,0,0),qf=new K(0,0,0,0);function q1(t,e,r){return Xf.copy(t.getBoundingRect()),t.transform&&Xf.applyTransform(t.transform),qf.width=e,qf.height=r,!Xf.intersect(qf)}var ir=X1;var At=Math.min,It=Math.max,Zf=Math.sin,jf=Math.cos,Ei=Math.PI*2,Ds=Rr(),Ms=Rr(),Os=Rr();function Qf(t,e,r,i,n,a){n[0]=At(t,r),n[1]=At(e,i),a[0]=It(t,r),a[1]=It(e,i)}var lm=[],fm=[];function cm(t,e,r,i,n,a,o,s,u,l){var f=Zo,c=Ee,p=f(t,r,n,o,lm);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var h=0;h<p;h++){var v=c(t,r,n,o,lm[h]);u[0]=At(v,u[0]),l[0]=It(v,l[0])}p=f(e,i,a,s,fm);for(var h=0;h<p;h++){var g=c(e,i,a,s,fm[h]);u[1]=At(g,u[1]),l[1]=It(g,l[1])}u[0]=At(t,u[0]),l[0]=It(t,l[0]),u[0]=At(o,u[0]),l[0]=It(o,l[0]),u[1]=At(e,u[1]),l[1]=It(e,l[1]),u[1]=At(s,u[1]),l[1]=It(s,l[1])}function hm(t,e,r,i,n,a,o,s){var u=jo,l=Fe,f=It(At(u(t,r,n),1),0),c=It(At(u(e,i,a),1),0),p=l(t,r,n,f),h=l(e,i,a,c);o[0]=At(t,n,p),o[1]=At(e,a,h),s[0]=It(t,n,p),s[1]=It(e,a,h)}function pm(t,e,r,i,n,a,o,s,u){var l=hr,f=pr,c=Math.abs(n-a);if(c%Ei<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,u[0]=t+r,u[1]=e+i;return}if(Ds[0]=jf(n)*r+t,Ds[1]=Zf(n)*i+e,Ms[0]=jf(a)*r+t,Ms[1]=Zf(a)*i+e,l(s,Ds,Ms),f(u,Ds,Ms),n=n%Ei,n<0&&(n=n+Ei),a=a%Ei,a<0&&(a=a+Ei),n>a&&!o?a+=Ei:n<a&&o&&(n+=Ei),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(Os[0]=jf(h)*r+t,Os[1]=Zf(h)*i+e,l(s,Os,s),f(u,Os,u))}var se={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ci=[],Di=[],nr=[],Hr=[],ar=[],or=[],$f=Math.min,Jf=Math.max,Mi=Math.cos,Oi=Math.sin,yr=Math.abs,rc=Math.PI,Gr=rc*2,ec=typeof Float32Array<"u",Oa=[];function tc(t){var e=Math.round(t/rc*1e8)/1e8;return e%2*rc}function K1(t,e){var r=tc(t[0]);r<0&&(r+=Gr);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=Gr?n=r+Gr:e&&r-n>=Gr?n=r-Gr:!e&&r>n?n=r+(Gr-tc(r-n)):e&&r<n&&(n=r-(Gr-tc(n-r))),t[0]=r,t[1]=n}var Z1=(function(){function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=yr(i/mi/e)||0,this._uy=yr(i/mi/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(se.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=yr(e-this._xi),n=yr(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(se.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(se.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(se.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),Oa[0]=n,Oa[1]=a,K1(Oa,o),n=Oa[0],a=Oa[1];var s=a-n;return this.addData(se.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=Mi(a)*i+e,this._yi=Oi(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(se.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(se.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&ec&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(ec&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=e[a].data,s=0;s<u.length;s++)this.data[n++]=u[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ec&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){nr[0]=nr[1]=ar[0]=ar[1]=Number.MAX_VALUE,Hr[0]=Hr[1]=or[0]=or[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],u=o===1;switch(u&&(r=e[o],i=e[o+1],n=r,a=i),s){case se.M:r=n=e[o++],i=a=e[o++],ar[0]=n,ar[1]=a,or[0]=n,or[1]=a;break;case se.L:Qf(r,i,e[o],e[o+1],ar,or),r=e[o++],i=e[o++];break;case se.C:cm(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ar,or),r=e[o++],i=e[o++];break;case se.Q:hm(r,i,e[o++],e[o++],e[o],e[o+1],ar,or),r=e[o++],i=e[o++];break;case se.A:var l=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var g=!e[o++];u&&(n=Mi(h)*c+l,a=Oi(h)*p+f),pm(l,f,c,p,h,v,g,ar,or),r=Mi(v)*c+l,i=Oi(v)*p+f;break;case se.R:n=r=e[o++],a=i=e[o++];var d=e[o++],m=e[o++];Qf(n,a,n+d,a+m,ar,or);break;case se.Z:r=n,i=a;break}hr(nr,nr,ar),pr(Hr,Hr,or)}return o===0&&(nr[0]=nr[1]=Hr[0]=Hr[1]=0),new K(nr[0],nr[1],Hr[0]-nr[0],Hr[1]-nr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,u=o);var g=-1;switch(h){case se.M:a=s=e[p++],o=u=e[p++];break;case se.L:{var d=e[p++],m=e[p++],_=d-a,y=m-o;(yr(_)>i||yr(y)>n||p===r-1)&&(g=Math.sqrt(_*_+y*y),a=d,o=m);break}case se.C:{var x=e[p++],S=e[p++],d=e[p++],m=e[p++],T=e[p++],C=e[p++];g=Uv(a,o,x,S,d,m,T,C,10),a=T,o=C;break}case se.Q:{var x=e[p++],S=e[p++],d=e[p++],m=e[p++];g=Vv(a,o,x,S,d,m,10),a=d,o=m;break}case se.A:var E=e[p++],M=e[p++],D=e[p++],w=e[p++],R=e[p++],O=e[p++],A=O+R;p+=1,v&&(s=Mi(R)*D+E,u=Oi(R)*w+M),g=Jf(D,w)*$f(Gr,Math.abs(O)),a=Mi(A)*D+E,o=Oi(A)*w+M;break;case se.R:{s=a=e[p++],u=o=e[p++];var V=e[p++],k=e[p++];g=V*2+k*2;break}case se.Z:{var _=s-a,y=u-o;g=Math.sqrt(_*_+y*y),a=s,o=u;break}}g>=0&&(l[c++]=g,f+=g)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,u,l,f,c,p,h=r<1,v,g,d=0,m=0,_,y=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,_=r*g,!_)))e:for(var T=0;T<o;){var C=i[T++],E=T===1;switch(E&&(l=i[T],f=i[T+1],s=l,u=f),C!==se.L&&y>0&&(e.lineTo(x,S),y=0),C){case se.M:s=l=i[T++],u=f=i[T++],e.moveTo(l,f);break;case se.L:{c=i[T++],p=i[T++];var M=yr(c-l),D=yr(p-f);if(M>n||D>a){if(h){var w=v[m++];if(d+w>_){var R=(_-d)/w;e.lineTo(l*(1-R)+c*R,f*(1-R)+p*R);break e}d+=w}e.lineTo(c,p),l=c,f=p,y=0}else{var O=M*M+D*D;O>y&&(x=c,S=p,y=O)}break}case se.C:{var A=i[T++],V=i[T++],k=i[T++],H=i[T++],$=i[T++],oe=i[T++];if(h){var w=v[m++];if(d+w>_){var R=(_-d)/w;hn(l,A,k,$,R,Ci),hn(f,V,H,oe,R,Di),e.bezierCurveTo(Ci[1],Di[1],Ci[2],Di[2],Ci[3],Di[3]);break e}d+=w}e.bezierCurveTo(A,V,k,H,$,oe),l=$,f=oe;break}case se.Q:{var A=i[T++],V=i[T++],k=i[T++],H=i[T++];if(h){var w=v[m++];if(d+w>_){var R=(_-d)/w;pn(l,A,k,R,Ci),pn(f,V,H,R,Di),e.quadraticCurveTo(Ci[1],Di[1],Ci[2],Di[2]);break e}d+=w}e.quadraticCurveTo(A,V,k,H),l=k,f=H;break}case se.A:var ee=i[T++],Q=i[T++],ae=i[T++],fe=i[T++],j=i[T++],ue=i[T++],de=i[T++],tt=!i[T++],st=ae>fe?ae:fe,Ue=yr(ae-fe)>.001,Oe=j+ue,X=!1;if(h){var w=v[m++];d+w>_&&(Oe=j+ue*(_-d)/w,X=!0),d+=w}if(Ue&&e.ellipse?e.ellipse(ee,Q,ae,fe,de,j,Oe,tt):e.arc(ee,Q,st,j,Oe,tt),X)break e;E&&(s=Mi(j)*ae+ee,u=Oi(j)*fe+Q),l=Mi(Oe)*ae+ee,f=Oi(Oe)*fe+Q;break;case se.R:s=l=i[T],u=f=i[T+1],c=i[T++],p=i[T++];var te=i[T++],Pt=i[T++];if(h){var w=v[m++];if(d+w>_){var ke=_-d;e.moveTo(c,p),e.lineTo(c+$f(ke,te),p),ke-=te,ke>0&&e.lineTo(c+te,p+$f(ke,Pt)),ke-=Pt,ke>0&&e.lineTo(c+Jf(te-ke,0),p+Pt),ke-=te,ke>0&&e.lineTo(c,p+Jf(Pt-ke,0));break e}d+=w}e.rect(c,p,te,Pt);break;case se.Z:if(h){var w=v[m++];if(d+w>_){var R=(_-d)/w;e.lineTo(l*(1-R)+s*R,f*(1-R)+u*R);break e}d+=w}e.closePath(),l=s,f=u}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=se,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),Tt=Z1;function Ai(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)u=(e-i)/(t-r),l=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=u*a-o+l,c=f*f/(u*u+1);return c<=s/2*s/2}function vm(t,e,r,i,n,a,o,s,u,l,f){if(u===0)return!1;var c=u;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||l>t+c&&l>r+c&&l>n+c&&l>o+c||l<t-c&&l<r-c&&l<n-c&&l<o-c)return!1;var p=Fv(t,e,r,i,n,a,o,s,l,f,null);return p<=c/2}function dm(t,e,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;if(u>e+l&&u>i+l&&u>a+l||u<e-l&&u<i-l&&u<a-l||s>t+l&&s>r+l&&s>n+l||s<t-l&&s<r-l&&s<n-l)return!1;var f=zv(t,e,r,i,n,a,s,u,null);return f<=l/2}var mm=Math.PI*2;function Aa(t){return t%=mm,t<0&&(t+=mm),t}var Ia=Math.PI*2;function gm(t,e,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=t,u-=e;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(i-n)%Ia<1e-4)return!0;if(a){var c=i;i=Aa(n),n=Aa(c)}else i=Aa(i),n=Aa(n);i>n&&(n+=Ia);var p=Math.atan2(u,s);return p<0&&(p+=Ia),p>=i&&p<=n||p+Ia>=i&&p+Ia<=n}function xr(t,e,r,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 u=o*(r-t)+t;return u===n?1/0:u>n?s:0}var Yr=Tt.CMD,Ii=Math.PI*2,eb=1e-4;function tb(t,e){return Math.abs(t-e)<eb}var nt=[-1,-1,-1],Rt=[-1,-1];function rb(){var t=Rt[0];Rt[0]=Rt[1],Rt[1]=t}function ib(t,e,r,i,n,a,o,s,u,l){if(l>e&&l>i&&l>a&&l>s||l<e&&l<i&&l<a&&l<s)return 0;var f=Ko(e,i,a,s,l,nt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,g=0;g<f;g++){var d=nt[g],m=d===0||d===1?.5:1,_=Ee(t,r,n,o,d);_<u||(p<0&&(p=Zo(e,i,a,s,Rt),Rt[1]<Rt[0]&&p>1&&rb(),h=Ee(e,i,a,s,Rt[0]),p>1&&(v=Ee(e,i,a,s,Rt[1]))),p===2?d<Rt[0]?c+=h<e?m:-m:d<Rt[1]?c+=v<h?m:-m:c+=s<v?m:-m:d<Rt[0]?c+=h<e?m:-m:c+=s<h?m:-m)}return c}function nb(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var u=Bv(e,i,a,s,nt);if(u===0)return 0;var l=jo(e,i,a);if(l>=0&&l<=1){for(var f=0,c=Fe(e,i,a,l),p=0;p<u;p++){var h=nt[p]===0||nt[p]===1?.5:1,v=Fe(t,r,n,nt[p]);v<o||(nt[p]<l?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=nt[0]===0||nt[0]===1?.5:1,v=Fe(t,r,n,nt[0]);return v<o?0:a<e?h:-h}}function ab(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);nt[0]=-u,nt[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=Ii-1e-4){i=0,n=Ii;var f=a?1:-1;return o>=nt[0]+t&&o<=nt[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=Ii,n+=Ii);for(var p=0,h=0;h<2;h++){var v=nt[h];if(v+t>o){var g=Math.atan2(s,v),f=a?1:-1;g<0&&(g=Ii+g),(g>=i&&g<=n||g+Ii>=i&&g+Ii<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),p+=f)}}return p}function _m(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,u=0,l=0,f=0,c=0,p,h,v=0;v<o;){var g=a[v++],d=v===1;switch(g===Yr.M&&v>1&&(r||(s+=xr(u,l,f,c,i,n))),d&&(u=a[v],l=a[v+1],f=u,c=l),g){case Yr.M:f=a[v++],c=a[v++],u=f,l=c;break;case Yr.L:if(r){if(Ai(u,l,a[v],a[v+1],e,i,n))return!0}else s+=xr(u,l,a[v],a[v+1],i,n)||0;u=a[v++],l=a[v++];break;case Yr.C:if(r){if(vm(u,l,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=ib(u,l,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;u=a[v++],l=a[v++];break;case Yr.Q:if(r){if(dm(u,l,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=nb(u,l,a[v++],a[v++],a[v],a[v+1],i,n)||0;u=a[v++],l=a[v++];break;case Yr.A:var m=a[v++],_=a[v++],y=a[v++],x=a[v++],S=a[v++],T=a[v++];v+=1;var C=!!(1-a[v++]);p=Math.cos(S)*y+m,h=Math.sin(S)*x+_,d?(f=p,c=h):s+=xr(u,l,p,h,i,n);var E=(i-m)*x/y+m;if(r){if(gm(m,_,x,S,S+T,C,e,E,n))return!0}else s+=ab(m,_,x,S,S+T,C,E,n);u=Math.cos(S+T)*y+m,l=Math.sin(S+T)*x+_;break;case Yr.R:f=u=a[v++],c=l=a[v++];var M=a[v++],D=a[v++];if(p=f+M,h=c+D,r){if(Ai(f,c,p,c,e,i,n)||Ai(p,c,p,h,e,i,n)||Ai(p,h,f,h,e,i,n)||Ai(f,h,f,c,e,i,n))return!0}else s+=xr(p,c,p,h,i,n),s+=xr(f,h,f,c,i,n);break;case Yr.Z:if(r){if(Ai(u,l,f,c,e,i,n))return!0}else s+=xr(u,l,f,c,i,n);u=f,l=c;break}}return!r&&!tb(l,c)&&(s+=xr(u,l,f,c,i,n)||0),s!==0}function ym(t,e,r){return _m(t,0,!1,e,r)}function xm(t,e,r,i){return _m(t,e,!0,r,i)}var Mn=ce({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},rr),sb={style:ce({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},wi.style)},ic=yn.concat(["invisible","culling","z","z2","zlevel","parent"]),ub=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.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(u){r.buildPath(u,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<ic.length;++s)n[ic[s]]=this[ic[s]];n.__dirty|=we}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=Y(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?I(this.style,s):this.useStyle(s):o==="shape"?I(this.shape,s):t.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 r=this.style.fill;if(r!=="none"){if(F(r)){var i=gn(r,0);return i>.5?Ta:i>.2?hd:ba}else if(r)return ba}return Ta},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(F(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=gn(r,0)<Sa;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Lr},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Tt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Lr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),xm(s,u/l,r,i)))return!0}if(this.hasFill())return ym(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Lr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:I(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Lr)},e.prototype.createStyle=function(r){return Ir(Mn,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=I({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==Tn){var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=I({},n.shape),I(l,i.shape)):(l=I({},a?this.shape:n.shape),I(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=I({},this.shape);for(var f={},c=Y(l),p=0;p<c.length;p++){var h=c[p];typeof l[h]=="object"?this.shape[h]=l[h]:f[h]=l[h]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return sb},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){G(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return q(r.style)},o.prototype.getDefaultShape=function(){return q(r.shape)},o})(e);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=we|pi|Lr})(),e})(ir),Z=ub;var lb=ce({strokeFirst:!0,font:ut,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Mn),Sm=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Wf(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return Ir(lb,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=sm(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(ir);Sm.prototype.type="tspan";var Ri=Sm;var fb=ce({x:0,y:0},rr),cb={style:ce({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},wi.style)};function hb(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Tm=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Ir(fb,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=hb(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return cb},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new K(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(ir);Tm.prototype.type="image";var ht=Tm;function bm(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,u,l,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var c;s+u>n&&(c=s+u,s*=n/c,u*=n/c),l+f>n&&(c=l+f,l*=n/c,f*=n/c),u+l>a&&(c=u+l,u*=a/c,l*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-u,i),u!==0&&t.arc(r+n-u,i+u,u,-Math.PI/2,0),t.lineTo(r+n,i+a-l),l!==0&&t.arc(r+n-l,i+a-l,l,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var On=Math.round;function As(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(On(i*2)===On(n*2)&&(t.x1=t.x2=Wr(i,s,!0)),On(a*2)===On(o*2)&&(t.y1=t.y2=Wr(a,s,!0))),t}}function Is(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Wr(i,s,!0),t.y=Wr(n,s,!0),t.width=Math.max(Wr(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Wr(n+o,s,!1)-t.y,o===0?0:1)),t}}function Wr(t,e,r){if(!e)return t;var i=On(t*2);return(i+On(e))%2===0?i/2:(i+(r?1:-1))/2}var db=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var mb={},wm=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new db},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=Is(mb,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?bm(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Z);wm.prototype.type="rect";var pt=wm;var Em={fill:"#000"},Cm=2,sr={},gb={style:ce({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},wi.style)},Nm=(function(t){G(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Em,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,xb(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);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 r=new K(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],u=s.getBoundingRect(),l=s.getLocalTransform(n);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Em},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return I(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=Y(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},I(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return gb},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||ut,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||"left",l=r.verticalAlign||a.verticalAlign||"top";Gf(sr,a.overflowRect,o,s,u,l),o=sr.baseX,s=sr.baseY;var f=Lm(r),c=nm(f,r,sr.outerWidth,sr.outerHeight),p=nc(r),h=!!r.backgroundColor,v=c.outerHeight,g=c.outerWidth,d=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var _=o,y=mr(s,c.contentHeight,l);if(p||n){var x=Ur(o,g,u),S=mr(s,v,l);p&&this._renderBackground(r,r,x,S,g,v)}y+=m/2,n&&(_=Rm(o,u,n),l==="top"?y+=n[0]:l==="bottom"&&(y-=n[2]));for(var T=0,C=!1,E=!1,M=Im("fill"in r?r.fill:(E=!0,a.fill)),D=Am("stroke"in r?r.stroke:!h&&(!a.autoStroke||E)?(T=Cm,C=!0,a.stroke):null),w=r.textShadowBlur>0,R=0;R<d.length;R++){var O=this._getOrCreateChild(Ri),A=O.createStyle();O.useStyle(A),A.text=d[R],A.x=_,A.y=y,u&&(A.textAlign=u),A.textBaseline="middle",A.opacity=r.opacity,A.strokeFirst=!0,w&&(A.shadowBlur=r.textShadowBlur||0,A.shadowColor=r.textShadowColor||"transparent",A.shadowOffsetX=r.textShadowOffsetX||0,A.shadowOffsetY=r.textShadowOffsetY||0),A.stroke=D,A.fill=M,D&&(A.lineWidth=r.lineWidth||T,A.lineDash=r.lineDash,A.lineDashOffset=r.lineDashOffset||0),A.font=i,Mm(A,r),y+=m,O.setBoundingRect(Cs(A,c.contentWidth,c.calculatedLineHeight,C?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;Gf(sr,i.overflowRect,o,s,n,a),o=sr.baseX,s=sr.baseY;var u=Lm(r),l=am(u,r,sr.outerWidth,sr.outerHeight,n),f=l.width,c=l.outerWidth,p=l.outerHeight,h=r.padding;this.isTruncated=!!l.isTruncated;var v=Ur(o,c,n),g=mr(s,p,a),d=v,m=g;h&&(d+=h[3],m+=h[0]);var _=d+f;nc(r)&&this._renderBackground(r,r,v,g,c,p);for(var y=!!r.backgroundColor,x=0;x<l.lines.length;x++){for(var S=l.lines[x],T=S.tokens,C=T.length,E=S.lineHeight,M=S.width,D=0,w=d,R=_,O=C-1,A=void 0;D<C&&(A=T[D],!A.align||A.align==="left");)this._placeToken(A,r,E,m,w,"left",y),M-=A.width,w+=A.width,D++;for(;O>=0&&(A=T[O],A.align==="right");)this._placeToken(A,r,E,m,R,"right",y),M-=A.width,R-=A.width,O--;for(w+=(f-(w-d)-(_-R)-M)/2;D<=O;)A=T[D],this._placeToken(A,r,E,m,w+A.width/2,"center",y),w+=A.width,D++;m+=E}},e.prototype._placeToken=function(r,i,n,a,o,s,u){var l=i.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,c=a+n/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+n-r.height/2);var p=!r.isLineHolder&&nc(l);p&&this._renderBackground(l,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!l.backgroundColor,v=r.textPadding;v&&(o=Rm(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(Ri),d=g.createStyle();g.useStyle(d);var m=this._defaultStyle,_=!1,y=0,x=!1,S=Im("fill"in l?l.fill:"fill"in i?i.fill:(_=!0,m.fill)),T=Am("stroke"in l?l.stroke:"stroke"in i?i.stroke:!h&&!u&&(!m.autoStroke||_)?(y=Cm,x=!0,m.stroke):null),C=l.textShadowBlur>0||i.textShadowBlur>0;d.text=r.text,d.x=o,d.y=c,C&&(d.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,d.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=r.font||ut,d.opacity=Ar(l.opacity,i.opacity,1),Mm(d,l),T&&(d.lineWidth=Ar(l.lineWidth,i.lineWidth,y),d.lineDash=z(l.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=T),S&&(d.fill=S),g.setBoundingRect(Cs(d,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,c=u&&u.image,p=u&&!c,h=r.borderRadius,v=this,g,d;if(p||r.lineHeight||l&&f){g=this._getOrCreateChild(pt),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=n,m.y=a,m.width=o,m.height=s,m.r=h,g.dirtyShape()}if(p){var _=g.style;_.fill=u||null,_.fillOpacity=z(r.fillOpacity,1)}else if(c){d=this._getOrCreateChild(ht),d.onload=function(){v.dirtyStyle()};var y=d.style;y.image=u.image,y.x=n,y.y=a,y.width=o,y.height=s}if(l&&f){var _=g.style;_.lineWidth=l,_.stroke=f,_.strokeOpacity=z(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var x=(g||d).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=Ar(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return oc(r)&&(i=[r.fontStyle,r.fontWeight,ac(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&rt(i)||r.textFont||r.font},e})(ir),_b={left:!0,right:1,center:1},yb={top:1,bottom:1,middle:1},Dm=["fontStyle","fontWeight","fontSize","fontFamily"];function ac(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Ao+"px":t+"px"}function Mm(t,e){for(var r=0;r<Dm.length;r++){var i=Dm[r],n=e[i];n!=null&&(t[i]=n)}}function oc(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function xb(t){return Om(t),b(t.rich,Om),t}function Om(t){if(t){t.font=Nm.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||_b[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||yb[r]?r:"top";var i=t.padding;i&&(t.padding=nn(t.padding))}}function Am(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Im(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Rm(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Lm(t){var e=t.text;return e!=null&&(e+=""),e}function nc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Sr=Nm;var Ke=ie(),Pm=function(t,e,r,i){if(i){var n=Ke(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=Ke(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var Ra="undefined",Rs="series",km=B(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ze="original",Ne="arrayRows",je="objectRows",vt="keyedColumns",bt="typedArray",sc="unknown",wt="column",ur="row";var Sb=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Tb=(function(){function t(e){b(Sb,function(r){this[r]=me(e[r],e)},this)}return t})();function Fm(t,e){return e.mainType===Rs?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Ls=Tb;var Um=1,Bm={},Ym=ie(),fc=ie(),cc=0,La=1,Na=2,Tr=["emphasis","blur","select"],hc=["normal","emphasis","blur","select"],bb=10,wb=9,Xr="highlight",Pa="downplay",ka="select",Ps="unselect",Fa="toggleSelect",ks="selectchanged";function An(t){return t!=null&&t!=="none"}function Fs(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Wm(t){Fs(t,"emphasis",Na)}function Xm(t){t.hoverState===Na&&Fs(t,"normal",cc)}function pc(t){Fs(t,"blur",La)}function qm(t){t.hoverState===La&&Fs(t,"normal",cc)}function Eb(t){t.selected=!0}function Cb(t){t.selected=!1}function zm(t,e,r){e(t,r)}function br(t,e,r){zm(t,e,r),t.isGroup&&t.traverse(function(i){zm(i,e,r)})}function QR(t,e){switch(e){case"emphasis":t.hoverState=Na;break;case"normal":t.hoverState=cc;break;case"blur":t.hoverState=La;break;case"select":t.selected=!0}}function Db(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o],u=n[s];a[s]=u??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var l=t.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,e)}return a}function Mb(t,e,r,i){var n=r&&re(r,"select")>=0,a=!1;if(t instanceof Z){var o=Ym(t),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(An(s)||An(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=I({},i),l=I({},l),l.fill=s):!An(l.fill)&&An(s)?(a=!0,i=I({},i),l=I({},l),l.fill=va(s)):!An(l.stroke)&&An(u)&&(a||(i=I({},i),l=I({},l)),l.stroke=va(u)),i.style=l}}if(i&&i.z2==null){a||(i=I({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??bb)}return i}function Ob(t,e,r){if(r&&r.z2==null){r=I({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??wb)}return r}function Ab(t,e,r){var i=re(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:Db(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=I({},r),o=I({opacity:i?n:a.opacity*.1},o),r.style=o),r}function uc(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return Mb(this,t,e,r);if(t==="blur")return Ab(this,t,r);if(t==="select")return Ob(this,t,r)}return r}function Ib(t){t.stateProxy=uc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=uc),r&&(r.stateProxy=uc)}function Vm(t,e){!Zm(t,e)&&!t.__highByOuter&&br(t,Wm)}function Hm(t,e){!Zm(t,e)&&!t.__highByOuter&&br(t,Xm)}function Ua(t,e){t.__highByOuter|=1<<(e||0),br(t,Wm)}function Ba(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&br(t,Xm)}function Km(t){br(t,pc)}function vc(t){br(t,qm)}function dc(t){br(t,Eb)}function mc(t){br(t,Cb)}function Zm(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function gc(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=fc(a),s=Fm(t,a),u=n==="series";!u&&i.push(s),o.isBlured&&(s.group.traverse(function(l){qm(l)}),u&&r.push(a)),o.isBlured=!1}),b(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function lc(t,e,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(l,f){for(var c=0;c<f.length;c++){var p=l.getItemGraphicEl(f[c]);p&&vc(p)}}if(t!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];n.eachSeries(function(l){var f=o===l,c=l.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(l);if(h.group.traverse(function(d){d.__highByOuter&&f&&e==="self"||pc(d)}),Ie(e))a(l.getData(),e);else if(U(e))for(var v=Y(e),g=0;g<v.length;g++)a(l.getData(v[g]),e[v[g]]);u.push(l),fc(l).isBlured=!0}}),n.eachComponent(function(l,f){if(l!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(u,!0,n)}})}}function Ns(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){fc(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){pc(a)})}}}function jm(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=Ti(n,e);a=(N(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),u=0;!o&&u<s;)o=n.getItemGraphicEl(u++);if(o){var l=Ke(o);lc(i,l.focus,l.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&lc(i,f,c,r)}}}function Us(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(Ke(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function Qm(t,e,r){var i=Ke(t),n=Us(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&Ns(i.componentMainType,i.componentIndex,r),b(a,function(s){return Vm(s,e)})):(lc(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&Ns(i.componentMainType,i.componentIndex,r),Vm(t,e))}function $m(t,e,r){gc(r);var i=Ke(t),n=Us(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?b(n,function(a){return Hm(a,e)}):Hm(t,e)}function Jm(t,e,r){if(Bs(e)){var i=e.dataType,n=t.getData(i),a=Ti(n,e);N(a)||(a=[a]),t[e.type===Fa?"toggleSelect":e.type===ka?"select":"unselect"](a,i)}}function _c(t){var e=t.getAllData();b(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?dc(a):mc(a)})})}function eg(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();b(i,function(n){var a=n.data,o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var u={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(u.dataType=o),e.push(u)}})}),e}function Rb(t,e,r){tg(t,!0),br(t,Ib),Nb(t,e,r)}function Lb(t){tg(t,!1)}function $R(t,e,r,i){i?Lb(t):Rb(t,e,r)}function Nb(t,e,r){var i=Ke(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var Gm=["emphasis","blur","select"],Pb={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function JR(t,e,r,i){r=r||"itemStyle";for(var n=0;n<Gm.length;n++){var a=Gm[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[Pb[r]]()}}function tg(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function za(t){return!!(t&&t.__highDownDispatcher)}function rg(t){var e=Bm[t];return e==null&&Um<=32&&(e=Bm[t]=Um++),e}function Bs(t){var e=t.type;return e===ka||e===Ps||e===Fa}function yc(t){var e=t.type;return e===Xr||e===Pa}function ig(t){var e=Ym(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var Qs={};NS(Qs,{Arc:()=>Xa,BezierCurve:()=>Ac,BoundingRect:()=>K,Circle:()=>Ha,CompoundPath:()=>Ys,Ellipse:()=>bc,Group:()=>$t,HOVER_LAYER_FOR_INCREMENTAL:()=>Vc,HOVER_LAYER_FROM_THRESHOLD:()=>zc,HOVER_LAYER_NO:()=>Bc,Image:()=>ht,IncrementalDisplayable:()=>Ng,Line:()=>Wa,LinearGradient:()=>Mg,OrientedBoundingRect:()=>Ag,Path:()=>Z,Point:()=>ve,Polygon:()=>Mc,Polyline:()=>Oc,RadialGradient:()=>Og,Rect:()=>pt,Ring:()=>Cc,Sector:()=>Ec,Text:()=>Sr,WH:()=>pw,XY:()=>hw,applyTransform:()=>Hg,calcZ2Range:()=>kw,clipPointsByRect:()=>Cw,clipRectByRect:()=>Dw,createIcon:()=>Mw,decomposeTransform:()=>Uw,ensureCopyRect:()=>Nw,ensureCopyTransform:()=>Pw,expandOrShrinkRect:()=>Iw,extendPath:()=>mw,extendShape:()=>vw,getCurrentCanvasPainter:()=>Bw,getShapeClass:()=>gw,getTransform:()=>Tw,groupTransition:()=>Ew,initProps:()=>kg,isBoundingRectAxisAligned:()=>Lw,isElementRemoved:()=>ki,lineLineIntersect:()=>Gg,linePolygonIntersect:()=>Ow,makeImage:()=>Hc,makePath:()=>js,mergePath:()=>_w,payloadDisableAnimation:()=>Fw,registerShape:()=>Xt,removeElement:()=>Pc,removeElementWithFadeOut:()=>Fg,resizePath:()=>Vg,retrieveZInfo:()=>Yc,setTooltipConfig:()=>Rw,subPixelOptimize:()=>Sw,subPixelOptimizeLine:()=>yw,subPixelOptimizeRect:()=>xw,transformDirection:()=>bw,traverseElements:()=>Gc,traverseUpdateZ:()=>Wc,updateProps:()=>Nc});var In=Tt.CMD,kb=[[],[],[]],ng=Math.sqrt,Fb=Math.atan2;function xc(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,u,l,f=In.M,c=In.C,p=In.L,h=In.R,v=In.A,g=In.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case g:a=2;break;case v:var d=e[4],m=e[5],_=ng(e[0]*e[0]+e[1]*e[1]),y=ng(e[2]*e[2]+e[3]*e[3]),x=Fb(-e[1]/y,e[0]/_);r[o]*=_,r[o++]+=d,r[o]*=y,r[o++]+=m,r[o++]*=_,r[o++]*=y,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:l[0]=r[o++],l[1]=r[o++],cr(l,l,e),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],cr(l,l,e),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var S=kb[u];S[0]=r[o++],S[1]=r[o++],cr(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var Sc=Math.sqrt,zs=Math.sin,Vs=Math.cos,Va=Math.PI;function ag(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Tc(t,e){return(t[0]*e[0]+t[1]*e[1])/(ag(t)*ag(e))}function og(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Tc(t,e))}function sg(t,e,r,i,n,a,o,s,u,l,f){var c=u*(Va/180),p=Vs(c)*(t-r)/2+zs(c)*(e-i)/2,h=-1*zs(c)*(t-r)/2+Vs(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=Sc(v),s*=Sc(v));var g=(n===a?-1:1)*Sc((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,d=g*o*h/s,m=g*-s*p/o,_=(t+r)/2+Vs(c)*d-zs(c)*m,y=(e+i)/2+zs(c)*d+Vs(c)*m,x=og([1,0],[(p-d)/o,(h-m)/s]),S=[(p-d)/o,(h-m)/s],T=[(-1*p-d)/o,(-1*h-m)/s],C=og(S,T);if(Tc(S,T)<=-1&&(C=Va),Tc(S,T)>=1&&(C=0),C<0){var E=Math.round(C/Va*1e6)/1e6;C=Va*2+E%2*Va}f.addData(l,_,y,o,s,x,C,c,a)}var Ub=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Bb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function zb(t){var e=new Tt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=Tt.CMD,u=t.match(Ub);if(!u)return e;for(var l=0;l<u.length;l++){for(var f=u[l],c=f.charAt(0),p=void 0,h=f.match(Bb)||[],v=h.length,g=0;g<v;g++)h[g]=parseFloat(h[g]);for(var d=0;d<v;){var m=void 0,_=void 0,y=void 0,x=void 0,S=void 0,T=void 0,C=void 0,E=r,M=i,D=void 0,w=void 0;switch(c){case"l":r+=h[d++],i+=h[d++],p=s.L,e.addData(p,r,i);break;case"L":r=h[d++],i=h[d++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[d++],i+=h[d++],p=s.M,e.addData(p,r,i),n=r,a=i,c="l";break;case"M":r=h[d++],i=h[d++],p=s.M,e.addData(p,r,i),n=r,a=i,c="L";break;case"h":r+=h[d++],p=s.L,e.addData(p,r,i);break;case"H":r=h[d++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[d++],p=s.L,e.addData(p,r,i);break;case"V":i=h[d++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[d++],h[d++],h[d++],h[d++],h[d++],h[d++]),r=h[d-2],i=h[d-1];break;case"c":p=s.C,e.addData(p,h[d++]+r,h[d++]+i,h[d++]+r,h[d++]+i,h[d++]+r,h[d++]+i),r+=h[d-2],i+=h[d-1];break;case"S":m=r,_=i,D=e.len(),w=e.data,o===s.C&&(m+=r-w[D-4],_+=i-w[D-3]),p=s.C,E=h[d++],M=h[d++],r=h[d++],i=h[d++],e.addData(p,m,_,E,M,r,i);break;case"s":m=r,_=i,D=e.len(),w=e.data,o===s.C&&(m+=r-w[D-4],_+=i-w[D-3]),p=s.C,E=r+h[d++],M=i+h[d++],r+=h[d++],i+=h[d++],e.addData(p,m,_,E,M,r,i);break;case"Q":E=h[d++],M=h[d++],r=h[d++],i=h[d++],p=s.Q,e.addData(p,E,M,r,i);break;case"q":E=h[d++]+r,M=h[d++]+i,r+=h[d++],i+=h[d++],p=s.Q,e.addData(p,E,M,r,i);break;case"T":m=r,_=i,D=e.len(),w=e.data,o===s.Q&&(m+=r-w[D-4],_+=i-w[D-3]),r=h[d++],i=h[d++],p=s.Q,e.addData(p,m,_,r,i);break;case"t":m=r,_=i,D=e.len(),w=e.data,o===s.Q&&(m+=r-w[D-4],_+=i-w[D-3]),r+=h[d++],i+=h[d++],p=s.Q,e.addData(p,m,_,r,i);break;case"A":y=h[d++],x=h[d++],S=h[d++],T=h[d++],C=h[d++],E=r,M=i,r=h[d++],i=h[d++],p=s.A,sg(E,M,r,i,T,C,y,x,S,p,e);break;case"a":y=h[d++],x=h[d++],S=h[d++],T=h[d++],C=h[d++],E=r,M=i,r+=h[d++],i+=h[d++],p=s.A,sg(E,M,r,i,T,C,y,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var ug=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(Z);function lg(t){return t.setData!=null}function fg(t,e){var r=zb(t),i=I({},e);return i.buildPath=function(n){var a=lg(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){xc(r,n),this.dirtyShape()},i}function cg(t,e){return new ug(fg(t,e))}function hg(t,e){var r=fg(t,e),i=(function(n){G(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(ug);return i}function pg(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new Z(e);return o.createPathProxy(),o.buildPath=function(s){if(lg(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var Hb=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var vg=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Hb},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(Z);vg.prototype.type="circle";var Ha=vg;var Gb=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var dg=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Gb},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,f=u*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},e})(Z);dg.prototype.type="ellipse";var bc=dg;var gg=Math.PI,wc=gg*2,Li=Math.sin,Rn=Math.cos,Yb=Math.acos,Qe=Math.atan2,mg=Math.abs,Ya=Math.sqrt,Ga=Math.max,lr=Math.min,Wt=1e-4;function Wb(t,e,r,i,n,a,o,s){var u=r-t,l=i-e,f=o-n,c=s-a,p=c*u-f*l;if(!(p*p<Wt))return p=(f*(e-a)-c*(t-n))/p,[t+p*u,e+p*l]}function Hs(t,e,r,i,n,a,o){var s=t-r,u=e-i,l=(o?a:-a)/Ya(s*s+u*u),f=l*u,c=-l*s,p=t+f,h=e+c,v=r+f,g=i+c,d=(p+v)/2,m=(h+g)/2,_=v-p,y=g-h,x=_*_+y*y,S=n-a,T=p*g-v*h,C=(y<0?-1:1)*Ya(Ga(0,S*S*x-T*T)),E=(T*y-_*C)/x,M=(-T*_-y*C)/x,D=(T*y+_*C)/x,w=(-T*_+y*C)/x,R=E-d,O=M-m,A=D-d,V=w-m;return R*R+O*O>A*A+V*V&&(E=D,M=w),{cx:E,cy:M,x0:-f,y0:-c,x1:E*(n/S-1),y1:M*(n/S-1)}}function Xb(t){var e;if(N(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function _g(t,e){var r,i=Ga(e.r,0),n=Ga(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 u=e.startAngle,l=e.endAngle;if(!(isNaN(u)||isNaN(l))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=mg(l-u),v=h>wc&&h%wc;if(v>Wt&&(h=v),!(i>Wt))t.moveTo(f,c);else if(h>wc-Wt)t.moveTo(f+i*Rn(u),c+i*Li(u)),t.arc(f,c,i,u,l,!p),n>Wt&&(t.moveTo(f+n*Rn(l),c+n*Li(l)),t.arc(f,c,n,l,u,p));else{var g=void 0,d=void 0,m=void 0,_=void 0,y=void 0,x=void 0,S=void 0,T=void 0,C=void 0,E=void 0,M=void 0,D=void 0,w=void 0,R=void 0,O=void 0,A=void 0,V=i*Rn(u),k=i*Li(u),H=n*Rn(l),$=n*Li(l),oe=h>Wt;if(oe){var ee=e.cornerRadius;ee&&(r=Xb(ee),g=r[0],d=r[1],m=r[2],_=r[3]);var Q=mg(i-n)/2;if(y=lr(Q,m),x=lr(Q,_),S=lr(Q,g),T=lr(Q,d),M=C=Ga(y,x),D=E=Ga(S,T),(C>Wt||E>Wt)&&(w=i*Rn(l),R=i*Li(l),O=n*Rn(u),A=n*Li(u),h<gg)){var ae=Wb(V,k,O,A,w,R,H,$);if(ae){var fe=V-ae[0],j=k-ae[1],ue=w-ae[0],de=R-ae[1],tt=1/Li(Yb((fe*ue+j*de)/(Ya(fe*fe+j*j)*Ya(ue*ue+de*de)))/2),st=Ya(ae[0]*ae[0]+ae[1]*ae[1]);M=lr(C,(i-st)/(tt+1)),D=lr(E,(n-st)/(tt-1))}}}if(!oe)t.moveTo(f+V,c+k);else if(M>Wt){var Ue=lr(m,M),Oe=lr(_,M),X=Hs(O,A,V,k,i,Ue,p),te=Hs(w,R,H,$,i,Oe,p);t.moveTo(f+X.cx+X.x0,c+X.cy+X.y0),M<C&&Ue===Oe?t.arc(f+X.cx,c+X.cy,M,Qe(X.y0,X.x0),Qe(te.y0,te.x0),!p):(Ue>0&&t.arc(f+X.cx,c+X.cy,Ue,Qe(X.y0,X.x0),Qe(X.y1,X.x1),!p),t.arc(f,c,i,Qe(X.cy+X.y1,X.cx+X.x1),Qe(te.cy+te.y1,te.cx+te.x1),!p),Oe>0&&t.arc(f+te.cx,c+te.cy,Oe,Qe(te.y1,te.x1),Qe(te.y0,te.x0),!p))}else t.moveTo(f+V,c+k),t.arc(f,c,i,u,l,!p);if(!(n>Wt)||!oe)t.lineTo(f+H,c+$);else if(D>Wt){var Ue=lr(g,D),Oe=lr(d,D),X=Hs(H,$,w,R,n,-Oe,p),te=Hs(V,k,O,A,n,-Ue,p);t.lineTo(f+X.cx+X.x0,c+X.cy+X.y0),D<E&&Ue===Oe?t.arc(f+X.cx,c+X.cy,D,Qe(X.y0,X.x0),Qe(te.y0,te.x0),!p):(Oe>0&&t.arc(f+X.cx,c+X.cy,Oe,Qe(X.y0,X.x0),Qe(X.y1,X.x1),!p),t.arc(f,c,n,Qe(X.cy+X.y1,X.cx+X.x1),Qe(te.cy+te.y1,te.cx+te.x1),p),Ue>0&&t.arc(f+te.cx,c+te.cy,Ue,Qe(te.y1,te.x1),Qe(te.y0,te.x0),!p))}else t.lineTo(f+H,c+$),t.arc(f,c,n,l,u,p)}t.closePath()}}}var Kb=(function(){function t(){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 t})();var yg=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Kb},e.prototype.buildPath=function(r,i){_g(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Z);yg.prototype.type="sector";var Ec=yg;var Zb=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var xg=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Zb},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(Z);xg.prototype.type="ring";var Cc=xg;function Dc(t,e,r,i){var n=[],a=[],o=[],s=[],u,l,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)hr(f,f,t[p]),pr(c,c,t[p]);hr(f,f,i[0]),pr(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=t[p];if(r)u=t[p?p-1:h-1],l=t[(p+1)%h];else if(p===0||p===h-1){n.push(av(t[p]));continue}else u=t[p-1],l=t[p+1];ov(a,l,u),Fo(a,a,e);var g=Uo(v,u),d=Uo(v,l),m=g+d;m!==0&&(g/=m,d/=m),Fo(o,a,-g),Fo(s,a,d);var _=Nl([],v,o),y=Nl([],v,s);i&&(pr(_,_,f),hr(_,_,c),pr(y,y,f),hr(y,y,c)),n.push(_),n.push(y)}return r&&n.push(n.shift()),n}function Gs(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=Dc(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var jb=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var Tg=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new jb},e.prototype.buildPath=function(r,i){Gs(r,i,!0)},e})(Z);Tg.prototype.type="polygon";var Mc=Tg;var Qb=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var bg=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Qb},e.prototype.buildPath=function(r,i){Gs(r,i,!1)},e})(Z);bg.prototype.type="polyline";var Oc=bg;var $b={},Jb=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var wg=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Jb},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=As($b,i,this.style);n=u.x1,a=u.y1,o=u.x2,s=u.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var l=i.percent;l!==0&&(r.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(Z);wg.prototype.type="line";var Wa=wg;var dt=[],ew=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function Eg(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?$l:Ee)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?$l:Ee)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Jl:Fe)(t.x1,t.cpx1,t.x2,e),(r?Jl:Fe)(t.y1,t.cpy1,t.y2,e)]}var Cg=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ew},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,u=i.cpx1,l=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(pn(n,u,o,p,dt),u=dt[1],o=dt[2],pn(a,l,s,p,dt),l=dt[1],s=dt[2]),r.quadraticCurveTo(u,l,o,s)):(p<1&&(hn(n,u,f,o,p,dt),u=dt[1],f=dt[2],o=dt[3],hn(a,l,c,s,p,dt),l=dt[1],c=dt[2],s=dt[3]),r.bezierCurveTo(u,l,f,c,o,s)))},e.prototype.pointAt=function(r){return Eg(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=Eg(this.shape,r,!0);return sv(i,i)},e})(Z);Cg.prototype.type="bezier-curve";var Ac=Cg;var tw=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var Dg=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tw},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,u=i.endAngle,l=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,u,!l)},e})(Z);Dg.prototype.type="arc";var Xa=Dg;var rw=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Z.prototype.getBoundingRect.call(this)},e})(Z),Ys=rw;var iw=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Ws=iw;var nw=(function(t){G(e,t);function e(r,i,n,a,o,s){var u=t.call(this,o)||this;return u.x=r??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return e})(Ws),Mg=nw;var aw=(function(t){G(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(Ws),Og=aw;var Ic=Math.min,ow=Math.max,Xs=Math.abs,Ni=[0,0],Pi=[0,0],Ve=ql(),qs=Ve.minTv,Ks=Ve.maxTv,sw=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ve;for(var i=0;i<2;i++)this._axes[i]=new ve;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,u=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,u),i[3].set(a,u),r)for(var l=0;l<4;l++)i[l].transform(r);ve.sub(n[0],i[1],i[0]),ve.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&ve.set(r,0,0),Ve.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!Ve.negativeSize&&ve.copy(r,n?Ve.useDir?Ve.dirMinTv:qs:Ks),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Ni),e._getProjMinMaxOnAxis(o,r._corners,Pi),Ve.negativeSize||Ni[1]<Pi[0]||Ni[0]>Pi[1]){if(a=!1,Ve.negativeSize||i)return a;var u=Xs(Pi[0]-Ni[1]),l=Xs(Ni[0]-Pi[1]);Ic(u,l)>Ks.len()&&(u<l?ve.scale(Ks,s,-u*n):ve.scale(Ks,s,l*n))}else if(!i){var u=Xs(Pi[0]-Ni[1]),l=Xs(Ni[0]-Pi[1]);(Ve.useDir||Ic(u,l)<qs.len())&&((u<l||!Ve.bidirectional)&&(ve.scale(qs,s,u*n),Ve.useDir&&Ve.calcDirMTV()),(u>=l||!Ve.bidirectional)&&(ve.scale(qs,s,-l*n),Ve.useDir&&Ve.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(n)+a[e];s=Ic(f,s),u=ow(f,u)}i[0]=s+Ve.touchThreshold,i[1]=u-Ve.touchThreshold,Ve.negativeSize=i[1]<i[0]},t})(),Ag=sw;var Rc=0,Ig=1,Rg=2,Lg=1,Ln=0;var uw=[],lw=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=Ig,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.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(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new K(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(uw)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(ir),Ng=lw;var fw=ie();function cw(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),u=t==="update";if(s){var l=void 0,f=void 0,c=void 0;i?(l=z(i.duration,200),f=z(i.easing,"cubicOut"),c=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),f=e.getShallow(u?"animationEasingUpdate":"animationEasing"),c=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),W(c)&&(c=c(r,n)),W(l)&&(l=l(r));var p={duration:l||0,delay:c,easing:f};return p}else return null}function Lc(t,e,r,i,n,a,o){var s=!1,u;W(n)?(o=a,a=n,n=null):U(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=t==="leave";l||e.stopAnimation("leave");var f=cw(t,i,n,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!l,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Nc(t,e,r,i,n,a){Lc("update",t,e,r,i,n,a)}function kg(t,e,r,i,n,a){Lc("enter",t,e,r,i,n,a)}function ki(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Pc(t,e,r,i,n,a){ki(t)||Lc("leave",t,e,r,i,n,a)}function Pg(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),Pc(t,{style:{opacity:0}},e,r,i)}function Fg(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||Pg(n,e,r,i)}):Pg(t,e,r,i)}function lN(t){fw(t).oldStyle=t.style}var Fc={},hw=["x","y"],pw=["width","height"],Bc=0,zc=1,Vc=2;function vw(t){return Z.extend(t)}var dw=hg;function mw(t,e){return dw(t,e)}function Xt(t,e){Fc[t]=e}function gw(t){if(Fc.hasOwnProperty(t))return Fc[t]}function js(t,e,r,i){var n=cg(t,e);return r&&(i==="center"&&(r=zg(r,n.getBoundingRect())),Vg(n,r)),n}function Hc(t,e,r){var i=new ht({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(zg(e,a))}}});return i}function zg(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var _w=pg;function Vg(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function yw(t,e){return As(t,t,{lineWidth:e}),t}function xw(t,e){return Is(t,t,e),t}var Sw=Wr;function Tw(t,e){for(var r=oi([]);t&&t!==e;)un(r,t.getLocalTransform(),r),t=t.parent;return r}function Hg(t,e,r){return e&&!Ie(e)&&(e=xn.getLocalTransform(e)),r&&(e=ln([],e)),cr([],t,e)}function bw(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:ze(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:ze(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=Hg(a,e,r),ze(a[0])>ze(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Ug(t){return!t.isGroup}function ww(t){return t.shape!=null}function Ew(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(u){Ug(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ww(o)&&(s.shape=q(o.shape)),s}var a=i(t);e.traverse(function(o){if(Ug(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),Nc(o,u,r,Ke(o).dataIndex)}}})}function Cw(t,e){return L(t,function(r){var i=r[0];i=ye(i,e.x),i=Ht(i,e.x+e.width);var n=r[1];return n=ye(n,e.y),n=Ht(n,e.y+e.height),[i,n]})}function Dw(t,e){var r=ye(t.x,e.x),i=Ht(t.x+t.width,e.x+e.width),n=ye(t.y,e.y),a=Ht(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function Mw(t,e,r){var i=I({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),ce(n,r),new ht(i)):js(t.replace("path://",""),i,r,"center")}function Ow(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(Gg(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function Gg(t,e,r,i,n,a,o,s){var u=r-t,l=i-e,f=o-n,c=s-a,p=kc(f,c,u,l);if(Aw(p))return!1;var h=t-n,v=e-a,g=kc(h,v,u,l)/p;if(g<0||g>1)return!1;var d=kc(h,v,f,c)/p;return!(d<0||d>1)}function kc(t,e,r,i){return t*i-r*e}function Aw(t){return t<=1e-6&&t>=-1e-6}function Iw(t,e,r,i,n){return e==null||(J(e)?pe[0]=pe[1]=pe[2]=pe[3]=e:(pe[0]=e[0],pe[1]=e[1],pe[2]=e[2],pe[3]=e[3]),i&&(pe[0]=ye(0,pe[0]),pe[1]=ye(0,pe[1]),pe[2]=ye(0,pe[2]),pe[3]=ye(0,pe[3])),r&&(pe[0]=-pe[0],pe[1]=-pe[1],pe[2]=-pe[2],pe[3]=-pe[3]),Bg(t,pe,"x","width",3,1,n&&n[0]||0),Bg(t,pe,"y","height",0,2,n&&n[1]||0)),t}var pe=[0,0,0,0];function Bg(t,e,r,i,n,a,o){var s=e[a]+e[n],u=t[i];t[i]+=s,o=ye(0,Ht(o,u)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?u+e[a]:ze(s)>1e-8?(u-o)*e[n]/s:0):t[r]-=e[n]}function Rw(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=F(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=t.formatterParamsExtra;u&&b(Y(u),function(f){Re(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=Ke(t.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:ce({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Uc(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Gc(t,e){if(t)if(N(t))for(var r=0;r<t.length;r++)Uc(t[r],e);else Uc(t,e)}function Lw(t){return!t||ze(t[1])<Zs&&ze(t[2])<Zs||ze(t[0])<Zs&&ze(t[3])<Zs}var Zs=1e-5;function Nw(t,e){return t?K.copy(t,e):e.clone()}function Pw(t,e){return e?oa(t||Kt(),e):void 0}function Yc(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function kw(t){var e=-1/0,r=1/0;Uc(t,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<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function Wc(t,e,r){Yg(t,e,r,-1/0)}function Yg(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),u=0;u<s.length;u++)i=ye(Yg(s[u],e,r,i),i);else t.z=e,t.zlevel=r,i=ye(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var l=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(l&&l.showAbove?1:-1))}return i}function Fw(t){return t.animation={duration:0},t}function Uw(t,e){return e?oa(qa.transform,e):oi(qa.transform),qa.decomposeTransform(),wa(t,qa),t}var qa=new xn;qa.transform=Kt();function Bw(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}Xt("circle",Ha);Xt("ellipse",bc);Xt("sector",Ec);Xt("ring",Cc);Xt("polygon",Mc);Xt("polyline",Oc);Xt("rect",pt);Xt("line",Wa);Xt("bezierCurve",Ac);Xt("arc",Xa);var $s={};function zw(t,e){for(var r=0;r<Tr.length;r++){var i=Tr[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Wg(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=W(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var u={normal:s},l=0;l<Tr.length;l++){var f=Tr[l],c=e[f];u[f]=z(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return u}function HN(t,e,r,i){r=r||$s;for(var n=t instanceof Sr,a=!1,o=0;o<hc.length;o++){var s=e[hc[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=n?t:t.getTextContent();if(a){n||(u||(u=new Sr,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var l=Wg(r,e),f=e.normal,c=!!f.getShallow("show"),p=Xg(f,i&&i.normal,r,!1,!n);p.text=l.normal,n||t.setTextConfig(qg(f,r,!1));for(var o=0;o<Tr.length;o++){var h=Tr[o],s=e[h];if(s){var v=u.ensureState(h),g=!!z(s.getShallow("show"),c);if(g!==c&&(v.ignore=!g),v.style=Xg(s,i&&i[h],r,!0,!n),v.style.text=l[h],!n){var d=t.ensureState(h);d.textConfig=qg(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(p.x=u.style.x),u.style.y!=null&&(p.y=u.style.y),u.ignore=!c,u.useStyle(p),u.dirty(),r.enableTextSetter&&(e_(u).setLabelText=function(m){var _=Wg(r,e,m);zw(u,_)})}else u&&(u.ignore=!0);t.dirty()}function GN(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<Tr.length;i++){var n=Tr[i];r[n]=t.getModel([n,e])}return r}function Xg(t,e,r,i,n){var a={};return Vw(a,t,r,i,n),e&&I(a,e),a}function qg(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=z(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(r?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=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function Vw(t,e,r,i,n){r=r||$s;var a=e.ecModel,o=a&&a.option.textStyle,s=Hw(e),u;if(s){u={};var l="richInheritPlainLabel",f=z(e.get(l),a?a.get(l):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);Qg(u[c]={},p,o,e,f,r,i,n,!1,!0)}}u&&(t.rich=u);var h=e.get("overflow");h&&(t.overflow=h);var v=e.get("lineOverflow");v&&(t.lineOverflow=v);var g=t,d=e.get("minMargin");if(d!=null)d=J(d)?d/2:0,g.margin=[d,d,d,d],g.__marginType=$g.minMargin;else{var m=e.get("textMargin");m!=null&&(g.margin=nn(m),g.__marginType=$g.textMargin)}Qg(t,e,o,null,null,r,i,n,!0,!1)}function Hw(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||$s).rich;if(r){e=e||{};for(var i=Y(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var Kg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Zg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],jg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Qg(t,e,r,i,n,a,o,s,u,l){r=!o&&r||$s;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=z(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var v=z(e.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var g=z(e.getShallow("textBorderType"),r.textBorderType);g!=null&&(t.lineDash=g);var d=z(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(t.lineDashOffset=d),!o&&h==null&&!l&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<Kg.length;m++){var _=Kg[m],y=n!==!1&&i?Ar(e.getShallow(_),i.getShallow(_),r[_]):z(e.getShallow(_),r[_]);y!=null&&(t[_]=y)}for(var m=0;m<Zg.length;m++){var _=Zg[m],y=e.getShallow(_);y!=null&&(t[_]=y)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!u||!a.disableBox){for(var m=0;m<jg.length;m++){var _=jg[m],y=e.getShallow(_);y!=null&&(t[_]=y)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function Jg(t,e){var r=e&&e.getModel("textStyle");return rt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var e_=ie();function YN(t,e,r,i){if(t){var n=e_(t);n.prevValue=n.value,n.value=r;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var $g={minMargin:1,textMargin:2};var Gw=["textStyle","color"],Xc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],qc=new Sr,Yw=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(Gw):null)},t.prototype.getFont=function(){return Jg({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Xc.length;i++)r[Xc[i]]=this.getShallow(Xc[i]);return qc.useStyle(r),qc.update(),qc.getBoundingRect()},t})(),t_=Yw;var Kc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ww=tr(Kc),r_=(function(){function t(){}return t.prototype.getLineStyle=function(e){return Ww(this,e)},t})();var Zc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Xw=tr(Zc),i_=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return Xw(this,e,r)},t})();var Fi=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){le(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(q(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ne.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){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&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();Cn(Fi);Zd(Fi);yt(Fi,r_);yt(Fi,i_);yt(Fi,jd);yt(Fi,t_);var $e=Fi;var qw=Math.round(Math.random()*10);function qr(t){return[t||"",qw++].join("_")}function n_(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=ct(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=ct(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function a_(t,e){t.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,c=l.noEntryList,p={};for(b(a,function(_){p[_]=!0});c.length;){var h=c.pop(),v=f[h],g=!!p[h];g&&(s.call(u,h,v.originalDeps.slice()),delete p[h]),b(v.successor,g?m:d)}b(p,function(){var _="";throw new Error(_)});function d(_){f[_].entryCount--,f[_].entryCount===0&&c.push(_)}function m(_){p[_]=!0,d(_)}};function r(a){var o={},s=[];return b(a,function(u){var l=i(o,u),f=l.originalDeps=e(u),c=n(f,a);l.entryCount=c.length,l.entryCount===0&&s.push(u),b(c,function(p){re(l.predecessor,p)<0&&l.predecessor.push(p);var h=i(o,p);re(h.successor,p)<0&&h.successor.push(u)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return b(a,function(u){re(o,u)>=0&&s.push(u)}),s}}function uP(t,e){return le(le({},t,!0),e,!0)}var o_={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 s_={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 eu="ZH",Qc="EN",Nn=Qc,Js={},$c={},tu=ne.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Nn).toUpperCase();return t.indexOf(eu)>-1?eu:Nn})():Nn;function u_(t,e){t=t.toUpperCase(),$c[t]=new $e(e),Js[t]=e}function l_(t){if(F(t)){var e=Js[t.toUpperCase()]||{};return t===eu||t===Qc?q(e):le(q(e),q(Js[Nn]),!1)}else return le(q(t),q(Js[Nn]),!1)}function f_(t){return $c[t]}function c_(){return $c[Nn]}u_(Qc,o_);u_(eu,s_);var Kw=null;function Ce(){return Kw}function ru(t,e){var r=Ce(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function Ui(t){var e=t.brk;return e?e.breaks:[]}function gP(t){var e=t.brk;return e?e.hasBreaks():!1}var au=1e3,ou=au*60,Pn=ou*60,Et=Pn*24,Jc=Et*365,Zw={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})/},nu={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},jw="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",iu="{yyyy}-{MM}-{dd}",eh={year:"{yyyy}",month:"{yyyy}-{MM}",day:iu,hour:iu+" "+nu.hour,minute:iu+" "+nu.minute,second:iu+" "+nu.second,millisecond:jw},mt=["year","month","day","hour","minute","second","millisecond"],h_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function p_(t){return!F(t)&&!W(t)?Qw(t):t}function Qw(t){t=t||{};var e={},r=!0;return b(mt,function(i){r&&(r=t[i]==null)}),b(mt,function(i,n){var a=t[i];e[i]={};for(var o=null,s=n;s>=0;s--){var u=mt[s],l=U(a)&&!N(a)?a[u]:a,f=void 0;N(l)?(f=l.slice(),o=f[0]||""):F(l)?(o=l,f=[o]):(o==null?o=nu[i]:Zw[u].test(o)||(o=e[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][u]=f}}),e}function wr(t,e){return t+="","0000".substr(0,e-t.length)+t}function kn(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function v_(t){return t===kn(t)}function d_(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ka(t,e,r,i){var n=Jt(t),a=n[th(r)](),o=n[uu(r)]()+1,s=Math.floor((o-1)/3)+1,u=n[lu(r)](),l=n["get"+(r?"UTC":"")+"Day"](),f=n[fu(r)](),c=(f-1)%12+1,p=n[cu(r)](),h=n[hu(r)](),v=n[pu(r)](),g=f>=12?"pm":"am",d=g.toUpperCase(),m=i instanceof $e?i:f_(i||tu)||c_(),_=m.getModel("time"),y=_.get("month"),x=_.get("monthAbbr"),S=_.get("dayOfWeek"),T=_.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,wr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,wr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,wr(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,S[l]).replace(/{ee}/g,T[l]).replace(/{e}/g,l+"").replace(/{HH}/g,wr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,wr(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,wr(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,wr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,wr(v,3)).replace(/{S}/g,v+"")}function m_(t,e,r,i,n){var a=null;if(F(r))a=r;else if(W(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ce();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var u=t.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=Bi(t.value,n);a=r[f][f][0]}}return Ka(new Date(t.value),a,n,i)}function Bi(t,e){var r=Jt(t),i=r[uu(e)]()+1,n=r[lu(e)](),a=r[fu(e)](),o=r[cu(e)](),s=r[hu(e)](),u=r[pu(e)](),l=u===0,f=l&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;return v?"year":h?"month":p?"day":c?"hour":f?"minute":l?"second":"millisecond"}function su(t,e,r){switch(e){case"year":t[rh(r)](0);case"month":t[ih(r)](1);case"day":t[nh(r)](0);case"hour":t[ah(r)](0);case"minute":t[oh(r)](0);case"second":t[sh(r)](0)}return t}function th(t){return t?"getUTCFullYear":"getFullYear"}function uu(t){return t?"getUTCMonth":"getMonth"}function lu(t){return t?"getUTCDate":"getDate"}function fu(t){return t?"getUTCHours":"getHours"}function cu(t){return t?"getUTCMinutes":"getMinutes"}function hu(t){return t?"getUTCSeconds":"getSeconds"}function pu(t){return t?"getUTCMilliseconds":"getMilliseconds"}function g_(t){return t?"setUTCFullYear":"setFullYear"}function rh(t){return t?"setUTCMonth":"setMonth"}function ih(t){return t?"setUTCDate":"setDate"}function nh(t){return t?"setUTCHours":"setHours"}function ah(t){return t?"setUTCMinutes":"setMinutes"}function oh(t){return t?"setUTCSeconds":"setSeconds"}function sh(t){return t?"setUTCMilliseconds":"setMilliseconds"}function lh(t){if(!Rf(t))return F(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function CP(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var y_=nn;function vu(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&rt(f)?f:"-"}function a(f){return gr(f)}var o=e==="time",s=t instanceof Date;if(o||s){var u=o?Jt(t):t;if(isNaN(+u)){if(s)return"-"}else return Ka(u,i,r)}if(e==="ordinal")return aa(t)?n(t):J(t)&&a(t)?t+"":"-";var l=er(t);return a(l)?lh(l):aa(t)?n(t):typeof t=="boolean"?t+"":"-"}var __=["a","b","c","d","e","f","g"],uh=function(t,e){return"{"+t+(e??"")+"}"};function x_(t,e,r){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=__[a];t=t.replace(uh(o),uh(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=e[s][n[u]];t=t.replace(uh(__[u],s),r?Ye(l):l)}return t}function S_(t,e){var r=F(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ye(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ye(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function T_(t,e){return e=e||"transparent",F(t)?t:U(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function DP(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var du={},fh={},Jw=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(du,!0),this._normalMasterList=i(fh,!1);function i(n,a){var o=[];return b(n,function(s,u){var l=s.create(e,r);o=o.concat(l||[])}),o}},t.prototype.update=function(e,r){b(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){du[e]=r;return}fh[e]=r},t.get=function(e){return fh[e]||du[e]},t})();function eE(t){return!!du[t]}var tE=1,ch=2;function MP(t){b_.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var b_=B();function w_(t){var e=t.getShallow("coord",!0),r=tE;if(e==null){var i=b_.get(t.type);i&&i.getCoord2&&(r=ch,e=i.getCoord2(t))}return{coord:e,from:r}}var Fn=0,mu=1,rE=2;function iE(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=Fn;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=mu,o||(a=Fn)):i==="box"&&(a=rE,!o&&!eE(r)&&(a=Fn))}return{coordSysType:r,kind:a}}function OP(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,n=t.isDefaultDataCoordSys,a=t.allowNotFound,o=iE(e,!0),s=o.kind,u=o.coordSysType;if(n&&s!==mu&&(s=mu,u=r),s===Fn||u!==r)return Fn;var l=i(r,e);return l?(s===mu?e.coordinateSystem=l:e.boxCoordinateSystem=l,s):Fn}var hh=Jw;var _u=b,nE=["left","right","top","bottom","width","height"],gu=[["width","left","right"],["height","top","bottom"]];function vh(t,e,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(u,l){var f=u.getBoundingRect(),c=e.childAt(l+1),p=c&&c.getBoundingRect(),h,v;if(t==="horizontal"){var g=f.width+(p?-p.x+f.x:0);h=a+g,h>i||u.newline?(a=0,h=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var d=f.height+(p?-p.y+f.y:0);v=o+d,v>n||u.newline?(a+=s+r,o=0,v=d,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),t==="horizontal"?a=h+r:o=v+r)})}var NP=vh,PP=na(vh,"vertical"),kP=na(vh,"horizontal");function E_(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function aE(t,e){var r=oE(t,e,{enableLayoutOnlyByCenter:!0}),i=t.getBoxLayoutParams(),n,a;if(r.type===Za.point)a=r.refPoint,n=ph(i,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=N(o)?o:[o,o];n=ph(i,r.refContainer),a=r.boxCoordFrom===ch?r.refPoint:[Xe(s[0],n.width)+n.x,Xe(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function FP(t,e){var r=aE(t,e),i=r.viewRect,n=r.center,a=t.get("radius");N(a)||(a=[0,a]);var o=Xe(i.width,e.getWidth()),s=Xe(i.height,e.getHeight()),u=Math.min(o,s),l=Xe(a[0],u/2),f=Xe(a[1],u/2);return{cx:n[0],cy:n[1],r0:l,r:f,viewRect:i}}function ph(t,e,r){r=y_(r||0);var i=e.width,n=e.height,a=Xe(t.left,i),o=Xe(t.top,n),s=Xe(t.right,i),u=Xe(t.bottom,n),l=Xe(t.width,i),f=Xe(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(l)&&(l=i-s-p-a),isNaN(f)&&(f=n-u-c-o),h!=null&&(isNaN(l)&&isNaN(f)&&(h>i/n?l=i*.8:f=n*.8),isNaN(l)&&(l=h*f),isNaN(f)&&(f=l/h)),isNaN(a)&&(a=i-s-l-p),isNaN(o)&&(o=n-u-f-c),t.left||t.right){case"center":a=i/2-l/2-r[3];break;case"right":a=i-l-p;break}switch(t.top||t.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(l)&&(l=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(u||0));var v=new K((e.x||0)+a+r[3],(e.y||0)+o+r[0],l,f);return v.margin=r,v}var Za={rect:1,point:2};function oE(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var u=w_(t),l=u.coord,f=u.from;if(o.dataToLayout){a=Za.rect,s=f;var c=o.dataToLayout(l);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Za.point,s=f,n=o.dataToPoint(l))}return a==null&&(a=Za.rect),a===Za.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 UP(t,e,r,i,n,a){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],u=n&&n.boundingMode||"all";if(a=a||t,a.x=t.x,a.y=t.y,!o&&!s)return!1;var l;if(u==="raw")l=t.type==="group"?new K(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();l=l.clone(),l.applyTransform(f)}var c=ph(ce({width:l.width,height:l.height},e),r,i),p=o?c.x-l.x:0,h=s?c.y-l.y:0;return u==="raw"?(a.x=p,a.y=h):(a.x+=p,a.y+=h),a===t&&t.markRedraw(),!0}function Un(t){var e=t.layoutMode||t.constructor.layoutMode;return U(e)?e:e?{type:e}:null}function Bn(t,e,r){var i=r&&r.ignoreSize;!N(i)&&(i=[i,i]);var n=o(gu[0],0),a=o(gu[1],1);u(gu[0],t,n),u(gu[1],t,a);function o(l,f){var c={},p=0,h={},v=0,g=2;if(_u(l,function(_){h[_]=t[_]}),_u(l,function(_){Re(e,_)&&(c[_]=h[_]=e[_]),s(c,_)&&p++,s(h,_)&&v++}),i[f])return s(e,l[1])?h[l[2]]=null:s(e,l[2])&&(h[l[1]]=null),h;if(v===g||!p)return h;if(p>=g)return c;for(var d=0;d<l.length;d++){var m=l[d];if(!Re(c,m)&&Re(t,m)){c[m]=t[m];break}}return c}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,c){_u(l,function(p){f[p]=c[p]})}}function yu(t){return sE({},t)}function sE(t,e){return e&&t&&_u(nE,function(r){Re(e,r)&&(t[r]=e[r])}),t}var lE=ie(),zn=(function(t){Ae(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=qr("ec_cpt_model"),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=Un(this),a=n?yu(r):{},o=i.getTheme();le(r,o.get(this.mainType)),le(r,this.getDefaultOption()),n&&Bn(r,a,n)},e.prototype.mergeOption=function(r,i){le(this.option,r,!0);var n=Un(this);n&&Bn(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!Kd(r))return r.defaultOption;var i=lE(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},u=n.length-1;u>=0;u--)s=le(s,n[u],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return En(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return E_(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})($e);Es(zn,$e);Vr(zn);n_(zn);a_(zn,fE);function fE(t){var e=[];return b(zn.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=L(e,function(r){return ct(r).main}),t!=="dataset"&&re(e,"dataset")<=0&&e.unshift("dataset"),e}var De=zn;var zi={color:{},darkColor:{},size:{}},Se=zi.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)"};I(Se,{primary:Se.neutral80,secondary:Se.neutral70,tertiary:Se.neutral60,quaternary:Se.neutral50,disabled:Se.neutral20,border:Se.neutral30,borderTint:Se.neutral20,borderShade:Se.neutral40,background:Se.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Se.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Se.neutral70,axisLineTint:Se.neutral40,axisTick:Se.neutral70,axisTickMinor:Se.neutral60,axisLabel:Se.neutral70,axisSplitLine:Se.neutral15,axisMinorSplitLine:Se.neutral05});for(Kr in Se)Se.hasOwnProperty(Kr)&&(dh=Se[Kr],Kr==="theme"?zi.darkColor.theme=Se.theme.slice():Kr==="highlight"?zi.darkColor.highlight="rgba(255,231,130,0.4)":Kr.indexOf("accent")===0?zi.darkColor[Kr]=pa(dh,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):zi.darkColor[Kr]=pa(dh,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var dh,Kr;zi.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var gt=zi;var C_="";typeof navigator<"u"&&(C_=navigator.platform||"");var Vn="rgba(0, 0, 0, 0.2)",D_=gt.color.theme[0],cE=pa(D_,null,null,.9),xu={darkMode:"auto",colorBy:"series",color:gt.color.theme,gradientColor:[cE,D_],aria:{decal:{decals:[{color:Vn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Vn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Vn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Vn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Vn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Vn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:C_.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 We={Must:1,Might:2,Not:3},M_=ie();function O_(t){M_(t).datasetMap=B()}function JP(t,e,r){var i={},n=Su(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,u=M_(s).datasetMap,l=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),b(t,function(g,d){var m=U(g)?g:t[d]={name:g};m.type==="ordinal"&&f==null&&(f=d,c=v(m)),i[m.name]=[]});var p=u.get(l)||u.set(l,{categoryWayDim:c,valueWayDim:0});b(t,function(g,d){var m=g.name,_=v(g);if(f==null){var y=p.valueWayDim;h(i[m],y,_),h(o,y,_),p.valueWayDim+=_}else if(f===d)h(i[m],0,_),h(a,0,_);else{var y=p.categoryWayDim;h(i[m],y,_),h(o,y,_),p.categoryWayDim+=_}});function h(g,d,m){for(var _=0;_<m;_++)g.push(d+_)}function v(g){var d=g.dimsDef;return d?d.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function e2(t,e,r){var i={},n=Su(t);if(!n)return i;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===je||a===vt)&&b(o,function(f,c){(U(f)?f.name:f)==="name"&&(s=c)});var u=(function(){for(var f={},c={},p=[],h=0,v=Math.min(5,r);h<v;h++){var g=R_(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(g);var d=g===We.Not;if(d&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!d&&p[f.n]===We.Not)&&(f.n=h),m(f)&&p[f.n]!==We.Not)return f;d||(g===We.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function m(_){return _.v!=null&&_.n!=null}return m(f)?f:m(c)?c:null})();if(u){i.value=[u.v];var l=s??u.n;i.itemName=[l],i.seriesName=[l]}return i}function Su(t){var e=t.get("data",!0);if(!e)return En(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Ts).models[0]}function A_(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:En(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Ts).models}function I_(t,e){return R_(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function R_(t,e,r,i,n,a){var o,s=5;if(ge(t))return We.Not;var u,l;if(i){var f=i[a];U(f)?(u=f.name,l=f.type):F(f)&&(u=f)}if(l!=null)return l==="ordinal"?We.Must:We.Not;if(e===Ne){var c=t;if(r===ur){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===je){var g=t;if(!u)return We.Not;for(var h=0;h<g.length&&h<s;h++){var d=g[h];if(d&&(o=x(d[u]))!=null)return o}}else if(e===vt){var m=t;if(!u)return We.Not;var p=m[u];if(!p||ge(p))return We.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===Ze)for(var _=t,h=0;h<_.length&&h<s;h++){var d=_[h],y=Si(d);if(!N(y))return We.Not;if((o=x(y[a]))!=null)return o}function x(S){var T=F(S);if(S!=null&&isFinite(Number(S))&&S!=="")return T?We.Might:We.Not;if(T&&S!=="-")return We.Must}return We.Not}var hE=B();function L_(t,e,r){var i=hE.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var a;a<n.length;a++);return r.concat(n)}var N_=ie(),a2=ie(),ja=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=xe(this.get("color",!0)),a=this.get("colorLayer",!0);return vE(this,N_,n,a,e,r,i)},t.prototype.clearColorPalette=function(){dE(this,N_)},t})();function pE(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function vE(t,e,r,i,n,a,o){a=a||t;var s=e(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var f=o==null||!i?r:pE(i,o);if(f=f||r,!(!f||!f.length)){var c=f[u];return n&&(l[n]=c),s.paletteIdx=(u+1)%f.length,c}}function dE(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Tu,Qa,P_,k_="\0_ec_inner",mE=1;var z_=(function(t){Ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new $e(a),this._locale=new $e(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=B_(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,B_(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?P_(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&b(u,function(l){n=!0,this._mergeOption(l,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=B(),l=i&&i.replaceMergeMainTypeMap;O_(this),b(r,function(c,p){c!=null&&(De.hasClass(p)?p&&(s.push(p),u.set(p,!0)):n[p]=n[p]==null?q(c):le(n[p],c,!0))}),l&&l.each(function(c,p){De.hasClass(p)&&!u.get(p)&&(s.push(p),u.set(p,!0))}),De.topologicalTravel(s,De.getAllClassMainTypes(),f,this);function f(c){var p=L_(this,c,xe(r[c])),h=a.get(c),v=h?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=Ud(h,p,v);zd(g,c,De),n[c]=null,a.set(c,null),o.set(c,0);var d=[],m=[],_=0,y,x;b(g,function(S,T){var C=S.existing,E=S.newOption;if(!E)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var M=c==="series",D=De.getClass(c,S.keyInfo.subType,!M);if(!D){if(0)var w,R;return}if(c==="tooltip"){if(y)return;y=!0}if(C&&C.constructor===D)C.name=S.keyInfo.name,C.mergeOption(E,this),C.optionUpdated(E,!1);else{var O=I({componentIndex:T},S.keyInfo);C=new D(E,this,this,O),I(C,O),S.brandNew&&(C.__requireNewView=!0),C.init(E,this,this),C.optionUpdated(null,!0)}}C?(d.push(C.option),m.push(C),_++):(d.push(void 0),m.push(void 0))},this),n[c]=d,a.set(c,m),o.set(c,_),c==="series"&&Tu(this)}this._seriesIndices||Tu(this)},e.prototype.getOption=function(){var r=q(this.option);return b(r,function(i,n){if(De.hasClass(n)){for(var a=xe(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!wn(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[k_],r},e.prototype.setTheme=function(r){this._theme=new $e(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var u;return n!=null?(u=[],b(xe(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=F_("id",a,s):o!=null?u=F_("name",o,s):u=Be(s,function(l){return!!l}),U_(u,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):Be(this._componentsMap.get(n),function(l){return!!l});return u(U_(o,r));function s(l){var f=n+"Index",c=n+"Id",p=n+"Name";return l&&(l[f]!=null||l[c]!=null||l[p]!=null)?{mainType:n,index:l[f],id:l[c],name:l[p]}:null}function u(l){return r.filter?Be(l,r.filter):l}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(W(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var u=F(r)?a.get(r):U(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=ft(r,null);return Be(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Be(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return Be(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){Qa(this),b(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){b(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){Qa(this),b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return b(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return Qa(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){Qa(this);var n=[];b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=B(n)},e.prototype.restoreData=function(r){Tu(this);var i=this._componentsMap,n=[];i.each(function(a,o){De.hasClass(o)&&n.push(o)}),De.topologicalTravel(n,De.getAllClassMainTypes(),function(a){b(i.get(a),function(o){o&&(a!=="series"||!gE(o,r))&&o.restoreData()})})},e.internalField=(function(){Tu=function(r){var i=r._seriesIndices=[];b(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=B(i)},Qa=function(r){},P_=function(r,i){r.option={},r.option[k_]=mE,r._componentsMap=B({series:[]}),r._componentsCount=B();var n=i.aria;U(n)&&n.enabled==null&&(n.enabled=!0),_E(i,r._theme.option),le(i,xu,!1),r._mergeOption(i,null)}})(),e})($e);function gE(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function _E(t,e){var r=t.color&&!t.colorLayer;b(e,function(i,n){n==="colorLayer"&&r||n==="color"&&t.color||De.hasClass(n)||(typeof i=="object"?t[n]=t[n]?le(t[n],i,!1):q(i):t[n]==null&&(t[n]=i))})}function F_(t,e,r){if(N(e)){var i=B();return b(e,function(a){if(a!=null){var o=ft(a,null);o!=null&&i.set(a,!0)}}),Be(r,function(a){return a&&i.get(a[t])})}else{var n=ft(e,null);return Be(r,function(a){return a&&n!=null&&a[t]===n})}}function U_(t,e){return e.hasOwnProperty("subType")?Be(t,function(r){return r&&r.subType===e.subType}):t}function B_(t){var e=B();return t&&b(xe(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}yt(z_,ja);var bu=z_;var yE=/^(min|max)?(.+)$/,xE=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(b(xe(e.series),function(o){o&&o.data&&ge(o.data)&&an(o.data)}),b(xe(e.dataset),function(o){o&&o.source&&ge(o.source)&&an(o.source)})),e=q(e);var n=this._optionBackup,a=SE(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],q(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(r=q(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var u=0,l=n.length;u<l;u++)TE(n[u].query,r,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!wE(o,this._currentMediaIndices)&&(s=L(o,function(f){return q(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function SE(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,u=t.options,l=t.media,f=!!t.media,c=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&N(l)&&b(l,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),b(u,function(h){return p(h)}),b(i,function(h){return p(h.option)});function p(h){b(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:n,mediaList:i}}function TE(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return b(t,function(a,o){var s=o.match(yE);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();bE(i[l],a,u)||(n=!1)}}),n}function bE(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function wE(t,e){return t.join(",")===e.join(",")}var V_=xE;var qt=b,Ja=U,H_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function mh(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=H_.length;r<i;r++){var n=H_[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?le(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?le(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function Je(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,ce(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function $a(t){Je(t,"itemStyle"),Je(t,"lineStyle"),Je(t,"areaStyle"),Je(t,"label"),Je(t,"labelLine"),Je(t,"upperLabel"),Je(t,"edgeLabel")}function Me(t,e){var r=Ja(t)&&t[e],i=Ja(r)&&r.textStyle;if(i)for(var n=0,a=kf.length;n<a;n++){var o=kf[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function Lt(t){t&&($a(t),Me(t,"label"),t.emphasis&&Me(t.emphasis,"label"))}function EE(t){if(Ja(t)){mh(t),$a(t),Me(t,"label"),Me(t,"upperLabel"),Me(t,"edgeLabel"),t.emphasis&&(Me(t.emphasis,"label"),Me(t.emphasis,"upperLabel"),Me(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(mh(e),Lt(e));var r=t.markLine;r&&(mh(r),Lt(r));var i=t.markArea;i&&Lt(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!ge(a))for(var o=0;o<a.length;o++)Lt(a[o]);b(t.categories,function(l){$a(l)})}if(n&&!ge(n))for(var o=0;o<n.length;o++)Lt(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Lt(s[o]);if(r=t.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)N(u[o])?(Lt(u[o][0]),Lt(u[o][1])):Lt(u[o]);t.type==="gauge"?(Me(t,"axisLabel"),Me(t,"title"),Me(t,"detail")):t.type==="treemap"?(Je(t.breadcrumb,"itemStyle"),b(t.levels,function(l){$a(l)})):t.type==="tree"&&$a(t.leaves)}}function Er(t){return N(t)?t:t?[t]:[]}function G_(t){return(N(t)?t[0]:t)||{}}function gh(t,e){qt(Er(t.series),function(i){Ja(i)&&EE(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),qt(r,function(i){qt(Er(t[i]),function(n){n&&(Me(n,"axisLabel"),Me(n.axisPointer,"label"))})}),qt(Er(t.parallel),function(i){var n=i&&i.parallelAxisDefault;Me(n,"axisLabel"),Me(n&&n.axisPointer,"label")}),qt(Er(t.calendar),function(i){Je(i,"itemStyle"),Me(i,"dayLabel"),Me(i,"monthLabel"),Me(i,"yearLabel")}),qt(Er(t.radar),function(i){Me(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)}),qt(Er(t.geo),function(i){Ja(i)&&(Lt(i),qt(Er(i.regions),function(n){Lt(n)}))}),qt(Er(t.timeline),function(i){Lt(i),Je(i,"label"),Je(i,"itemStyle"),Je(i,"controlStyle",!0);var n=i.data;N(n)&&b(n,function(a){U(a)&&(Je(a,"label"),Je(a,"itemStyle"))})}),qt(Er(t.toolbox),function(i){Je(i,"iconStyle"),qt(i.feature,function(n){Je(n,"iconStyle")})}),Me(G_(t.axisPointer),"label"),Me(G_(t.tooltip).axisPointer,"label")}function CE(t,e){for(var r=e.split(","),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function DE(t,e,r,i){for(var n=e.split(","),a=t,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]]=r)}function Y_(t){t&&b(ME,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var ME=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],OE=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],_h=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function eo(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<_h.length;r++){var i=_h[r][1],n=_h[r][0];e[i]!=null&&(e[n]=e[i])}}function W_(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function X_(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function AE(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function q_(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&q_(t[r].children,e)}function wu(t,e){gh(t,e),t.series=xe(t.series),b(t.series,function(r){if(U(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),W_(r.label);var n=r.data;if(n&&!ge(n))for(var a=0;a<n.length;a++)W_(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=CE(r,"pointer.color");o!=null&&DE(r,"itemStyle.color",o)}else if(i==="bar"){eo(r),eo(r.backgroundStyle),eo(r.emphasis);var n=r.data;if(n&&!ge(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(eo(n[a]),eo(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),X_(r),q_(r.data,X_)}else i==="graph"||i==="sankey"?AE(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ce(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Y_(r)}}),t.dataRange&&(t.visualMap=t.dataRange),b(OE,function(r){var i=t[r];i&&(N(i)||(i=[i]),b(i,function(n){Y_(n)}))})}var K_=ws(IE);function IE(t){var e=B();t.eachSeries(function(r){var i=r.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),b(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),RE(r)}})}function RE(t){b(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var g=NaN,d=r-1;d>=0;d--){var m=t[d];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var _=m.data.getByRawIndex(m.stackResultDimension,v);if(u==="all"||u==="positive"&&_>0||u==="negative"&&_<0||u==="samesign"&&p>=0&&_>0||u==="samesign"&&p<=0&&_<0){p=Id(p,_),g=_;break}}}return i[0]=p,i[1]=g,i})})}var Eu=(function(){function t(e){this.data=e.data||(e.sourceFormat===vt?{}:[]),this.sourceFormat=e.sourceFormat||sc,this.seriesLayoutBy=e.seriesLayoutBy||wt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&I_(this,i)===We.Must&&(n.type="ordinal")}}return t})();function Cu(t){return t instanceof Eu}function to(t,e,r){r=r||yh(t);var i=e.seriesLayoutBy,n=LE(t,r,i,e.sourceHeader,e.dimensions),a=new Eu({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:q(e)});return a}function Q_(t){return new Eu({data:t,sourceFormat:ge(t)?bt:Ze})}function $_(t){return new Eu({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:q(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function yh(t){var e=sc;if(ge(t))e=bt;else if(N(t)){t.length===0&&(e=Ne);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(N(n)||ge(n)){e=Ne;break}else if(U(n)){e=je;break}}}}else if(U(t)){for(var a in t)if(Re(t,a)&&Ie(t[a])){e=vt;break}}return e}function LE(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:Z_(n),startIndex:o,dimensionsDetectedCount:a};if(e===Ne){var s=t;i==="auto"||i==null?j_(function(l){l!=null&&l!=="-"&&(F(l)?o==null&&(o=1):o=0)},r,s,10):o=J(i)?i:i?1:0,!n&&o===1&&(n=[],j_(function(l,f){n[f]=l!=null?l+"":""},r,s,1/0)),a=n?n.length:r===ur?s.length:s[0]?s[0].length:null}else if(e===je)n||(n=NE(t));else if(e===vt)n||(n=[],b(t,function(l,f){n.push(f)}));else if(e===Ze){var u=Si(t[0]);a=N(u)&&u.length||1}return{startIndex:o,dimensionsDefine:Z_(n),dimensionsDetectedCount:a}}function NE(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Y(r)}function Z_(t){if(t){var e=B();return L(t,function(r,i){r=U(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function j_(t,e,r,i){if(e===ur)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function Du(t){var e=t.sourceFormat;return e===je||e===vt}var Vi,Hi,Gi,Yi,J_,ey,Ou=(function(){function t(e,r){var i=Cu(e)?e:Q_(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===bt&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;ey(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;ey=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,c=u.startIndex,p=u.dimensionsDefine,h=J_[wh(l,f)];if(I(o,h),l===bt)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=Sh(l,f);o.getItem=me(v,null,s,c,p);var g=Th(l,f);o.count=me(g,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,c=0;c<l;c++)s[c]=u[f+c];return s},i=function(o,s,u,l){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=l[p],v=h[0]==null?1/0:h[0],g=h[1]==null?-1/0:h[1],d=s-o,m=u[p],_=0;_<d;_++){var y=f[_*c+p];m[o+_]=y,y<v&&(v=y),y>g&&(g=y)}h[0]=v,h[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};J_=(e={},e[Ne+"_"+wt]={pure:!0,appendData:a},e[Ne+"_"+ur]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[je]={pure:!0,appendData:a},e[vt]={pure:!0,appendData:function(o){var s=this._data;b(o,function(u,l){for(var f=s[l]||(s[l]=[]),c=0;c<(u||[]).length;c++)f.push(u[c])})}},e[Ze]={appendData:a},e[bt]={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])}})(),t})();var Mu=function(t){N(t)||Nf("series.data or dataset.source must be an array.")},G2=(Vi={},Vi[Ne+"_"+wt]=Mu,Vi[Ne+"_"+ur]=Mu,Vi[je]=Mu,Vi[vt]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&Nf("dimension name must not be null/undefined.")}},Vi[Ze]=Mu,Vi),ty=function(t,e,r,i){return t[i]},PE=(Hi={},Hi[Ne+"_"+wt]=function(t,e,r,i){return t[i+e]},Hi[Ne+"_"+ur]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},Hi[je]=ty,Hi[vt]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?t[s]:null;a[o]=u?u[i]:null}return a},Hi[Ze]=ty,Hi);function Sh(t,e){var r=PE[wh(t,e)];return r}var ry=function(t,e,r){return t.length},kE=(Gi={},Gi[Ne+"_"+wt]=function(t,e,r){return Math.max(0,t.length-e)},Gi[Ne+"_"+ur]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},Gi[je]=ry,Gi[vt]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},Gi[Ze]=ry,Gi);function Th(t,e){var r=kE[wh(t,e)];return r}var xh=function(t,e,r){return t[e]},FE=(Yi={},Yi[Ne]=xh,Yi[je]=function(t,e,r){return t[r]},Yi[vt]=xh,Yi[Ze]=function(t,e,r){var i=Si(t);return i instanceof Array?i[e]:i},Yi[bt]=xh,Yi);function bh(t){var e=FE[t];return e}function wh(t,e){return t===Ne?t+"_"+e:t}function Hn(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return bh(a)(i,o,s)}else{var u=i;return a===Ze&&(u=Si(i)),u}}}}var UE=/\{@(.+?)\}/g,iy=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),u=i.getItemVisual(e,"style"),l=u&&u[i.getItemVisual(e,"drawType")||"fill"],f=u&&u.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:l,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||"normal";var s=this.getData(i),u=this.getDataParams(e,i);if(o&&(u.value=o.interpolatedValue),n!=null&&N(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(e);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(W(a))return u.status=r,u.dimensionIndex=n,a(u);if(F(a)){var f=x_(a,u);return f.replace(UE,function(c,p){var h=p.length,v=p;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var g=Hn(s,e,v);if(o&&N(o.interpolatedValue)){var d=s.getDimensionIndex(v);d>=0&&(g=o.interpolatedValue[d])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return Hn(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function q2(t){var e,r;return U(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Zr(t){return new BE(t)}var BE=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(e&&e.modBy),l=e&&e.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(_){return!(_>=1)&&(_=1),_}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=u,this._modDataCount=l;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var g=this._progress;if(N(g))for(var d=0;d<g.length;d++)this._doProgress(g[d],h,v,u,l);else this._doProgress(g,h,v,u,l)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){ny.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:ny.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),N(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var ny=(function(){var t,e,r,i,n,a={reset:function(u,l,f,c){e=u,t=l,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var u=e%n*r+Math.ceil(e/n),l=e>=t?null:u<i?u:e;return e++,l}})();function Gn(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!J(t)&&t!=null&&t!=="-"&&(t=+Jt(t)),t==null||t===""?NaN:Number(t))}var tk=B({number:function(t){return parseFloat(t)},time:function(t){return+Jt(t)},trim:function(t){return F(t)?rt(t):t}});var zE={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},rk=(function(){function t(e,r){if(!J(r)){var i="";qe(i)}this._opFn=zE[e],this._rvalFloat=er(r)}return t.prototype.evaluate=function(e){return J(e)?this._opFn(e,this._rvalFloat):this._opFn(er(e),this._rvalFloat)},t})(),ay=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=J(e)?e:er(e),n=J(r)?r:er(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=F(e),u=F(r);s&&(i=u?e:0),u&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var ik=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=er(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=er(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function oy(t){var e="",r=-1/0,i=-1/0,n=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function sy(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var VE=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Gn(e,r)},t})();function HE(t,e){var r=new VE,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==wt&&qe(o);var s=[],u={},l=t.dimensionsDefine;if(l)b(l,function(g,d){var m=g.name,_={index:d,name:m,displayName:g.displayName};if(s.push(_),m!=null){var y="";Re(u,m)&&qe(y),u[m]=_}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Sh(n,wt);e.__isBuiltIn&&(r.getRawDataItem=function(g){return c(i,a,s,g)},r.getRawData=me(GE,null,t)),r.cloneRawData=me(YE,null,t);var p=Th(n,wt);r.count=me(p,null,i,a,s);var h=bh(n);r.retrieveValue=function(g,d){var m=c(i,a,s,g);return v(m,d)};var v=r.retrieveValueFromItem=function(g,d){if(g!=null){var m=s[d];if(m)return h(g,d,m.name)}};return r.getDimensionInfo=me(WE,null,s,u),r.cloneAllDimensionInfo=me(XE,null,s),r}function GE(t){var e=t.sourceFormat;if(!Eh(e)){var r="";qe(r)}return t.data}function YE(t){var e=t.sourceFormat,r=t.data;if(!Eh(e)){var i="";qe(i)}if(e===Ne){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===je){for(var n=[],a=0,o=r.length;a<o;a++)n.push(I({},r[a]));return n}}function WE(t,e,r){if(r!=null){if(J(r)||!isNaN(r)&&!Re(e,r))return t[r];if(Re(e,r))return e[r]}}function XE(t){return q(t)}var uy=B();function ly(t){t=q(t);var e=t.type,r="";e||qe(r);var i=e.split(":");i.length!==2&&qe(r);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),t.__isBuiltIn=n,uy.set(e,t)}function fy(t,e,r){var i=xe(t),n=i.length,a="";n||qe(a);for(var o=0,s=n;o<s;o++){var u=i[o];e=qE(u,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function qE(t,e,r,i){var n="";e.length||qe(n),U(t)||qe(n);var a=t.type,o=uy.get(a);o||qe(n);var s=L(e,function(f){return HE(f,o)}),u=xe(o.transform({upstream:s[0],upstreamList:s,config:q(t.config)}));if(0&&t.print)var l;return L(u,function(f,c){var p="";U(f)||qe(p),f.data||qe(p);var h=yh(f.data);Eh(h)||qe(p);var v,g=e[0];if(g&&c===0&&!f.dimensions){var d=g.startIndex;d&&(f.data=g.data.slice(0,d).concat(f.data)),v={seriesLayoutBy:wt,sourceHeader:d,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:wt,sourceHeader:0,dimensions:f.dimensions};return to(f.data,v,null)})}function Eh(t){return t===Ne||t===je}var KE=typeof Uint32Array===Ra?Array:Uint32Array,ZE=typeof Uint16Array===Ra?Array:Uint16Array,jE=typeof Int32Array===Ra?Array:Int32Array,cy=typeof Float64Array===Ra?Array:Float64Array,py={float:cy,int:jE,ordinal:Array,number:Array,time:cy},Ch;function Yn(t){return t>65535?KE:ZE}function QE(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function hy(t,e,r,i,n){var a=py[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];t[e]=u}}else t[e]=new a(i)}var $E=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=B()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Ch[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=Du(n);this._dimensions=L(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new py[r||"float"](this._rawCount),this._rawExtent[a]=Yt(),a},t.prototype.collectOrdinalMeta=function(e,r){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 u=a[e],l=o;l<s;l++){var f=i[l]=r.parseAndCollect(i[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),u=s+Math.max(e.length,r||0),l=0;l<a;l++){var f=n[l];hy(i,l,f.type,u,!0)}for(var c=[],p=s;p<u;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],g=Ch.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=g;var d=o[v];g<d[0]&&(d[0]=g),g>d[1]&&(d[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=L(o,function(_){return _.property}),f=0;f<s;f++){var c=o[f];u[f]||(u[f]=Yt()),hy(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,u);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var g=a[v],d=this._dimValueGetter(p,l[v],h,v);g[h]=d;var m=u[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=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],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),_s(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[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(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=Yn(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Yn(i._rawCount),o=new a(n),s=[],u=e.length,l=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(u===0)h=r(p);else if(u===1){var g=c[f][v];h=r(g,p)}else{for(var d=0;d<u;d++)s[d]=c[e[d]][v];s[d]=p,h=r.apply(null,s)}h&&(o[l++]=v)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=Y(e),a=n.length;if(!a)return this;var o=r.count(),s=Yn(r._rawCount),u=new s(o),l=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var g=0;if(a===1){for(var d=h[n[0]],m=0;m<i;m++){var _=d[m];(_>=c&&_<=p||isNaN(_))&&(u[l++]=g),g++}v=!0}else if(a===2){for(var d=h[n[0]],y=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],m=0;m<i;m++){var _=d[m],T=y[m];(_>=c&&_<=p||isNaN(_))&&(T>=x&&T<=S||isNaN(T))&&(u[l++]=g),g++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var C=r.getRawIndex(m),_=h[n[0]][C];(_>=c&&_<=p||isNaN(_))&&(u[l++]=C)}else for(var m=0;m<o;m++){for(var E=!0,C=r.getRawIndex(m),M=0;M<a;M++){var D=n[M],_=h[D][C];(_<e[D][0]||_>e[D][1])&&(E=!1)}E&&(u[l++]=r.getRawIndex(m))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),u=[],l=e._rawExtent,f=0;f<r.length;f++)l[r[f]]=Yt();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)u[h]=n[r[h]][p];u[o]=c;var v=i&&i.apply(null,u);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var g=r[f],d=v[f],m=l[g],_=n[g];_&&(_[p]=d),d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,c,p,h=new(Yn(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));h[s++]=l;for(var v=1;v<o-1;v+=u){for(var g=Math.min(v+u,o-1),d=Math.min(v+u*2,o),m=(d+g)/2,_=0,y=g;y<d;y++){var x=this.getRawIndex(y),S=a[x];isNaN(S)||(_+=S)}_/=d-g;var T=v,C=Math.min(v+u,o),E=v-1,M=a[l];f=-1,p=T;for(var D=-1,w=0,y=T;y<C;y++){var x=this.getRawIndex(y),S=a[x];if(isNaN(S)){w++,D<0&&(D=x);continue}c=Math.abs((E-m)*(S-M)-(E-y)*(_-M)),c>f&&(f=c,p=x)}w>0&&w<C-T&&(h[s++]=Math.min(D,p),p=Math.max(D,p)),h[s++]=p,l=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),u=new(Yn(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],g=a;f+a>s&&(g=s-f);for(var d=0;d<g;d++){var m=this.getRawIndex(f+d),_=o[m];_<p&&(p=_,c=f+d),_>v&&(v=_,h=f+d)}var y=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(u[l++]=y,u[l++]=x):(u[l++]=x,u[l++]=y)}return i._count=l,i._indices=u,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[e],f=this.count(),c=a._rawExtent[e]=Yt(),p=new(Yn(this._rawCount))(Math.ceil(f/u)),h=0,v=0;v<f;v+=u){u>f-v&&(u=f-v,s.length=u);for(var g=0;g<u;g++){var d=this.getRawIndex(v+g);s[g]=l[d]}var m=i(s),_=this.getRawIndex(Math.min(v+n(s,m)||0,f-1));l[_]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),p[h++]=_}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){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:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var u=0,l=[];u<i;u++)l[u]=n[e[u]][s];l[u]=a,r.apply(null,l)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=Yt();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,u=s[e]||(s[e]={}),l=oy(r),f=l.key,c=u[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var g=this.getRawIndex(v),d=i[g];(!r||sy(l,d))&&(d<p&&(p=d),d>h&&(h=d))}return u[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&xt(e,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?QE(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=q(this._extent),e._rawExtent=q(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return Gn(r[a],this._dimensions[a])}Ch={arrayRows:e,objectRows:function(r,i,n,a){return Gn(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Gn(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})(),ro=$E;var dy=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(Au(e)){var o=e,s=void 0,u=void 0,l=void 0;if(i){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=ge(s)?bt:Ze,a=[];var c=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},h=z(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=z(c.sourceHeader,p.sourceHeader),g=z(c.dimensions,p.dimensions),d=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||g;n=d?[to(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:g},u)]:[]}else{var m=e;if(i){var _=this._applyTransform(r);n=_.sourceList,a=_.upstreamSignList}else{var y=m.get("source",!0);n=[to(y,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&vy(a)}var o,s=[],u=[];return b(e,function(l){l.prepareSource();var f=l.getSource(n||0),c="";n!=null&&!f&&vy(c),s.push(f),u.push(l._getVersionSign())}),i?o=fy(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[$_(s[0])]),{sourceList:o,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var u=this._getUpstreamSourceManagers()[0];Au(this._sourceHost)&&u?s=u._innerGetDataStore(e,r,i):(s=new ro,s.initData(new Ou(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Au(e)){var r=Su(e);return r?[r.getSourceManager()]:[]}else return L(A_(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(Au(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function Au(t){return t.mainType==="series"}function vy(t){throw new Error(t)}var JE="line-height:1";function my(t){var e=t.lineHeight;return e==null?JE:"line-height:"+Ye(e+"")+"px"}function gy(t,e){var r=t.color||gt.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||gt.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ye(i+"")+"px;color:"+Ye(r)+";font-weight:"+Ye(n+""),valueStyle:"font-size:"+Ye(o+"")+"px;color:"+Ye(a)+";font-weight:"+Ye(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var eC=[0,10,20,30],tC=["",`
9
+ `,`
10
+
11
+ `,`
12
+
13
+
14
+ `];function Iu(t,e){return e.type=t,e}function Dh(t){return t.type==="section"}function _y(t){return Dh(t)?rC:iC}function yy(t){if(Dh(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return b(t.blocks,function(n){var a=yy(n);a>=e&&(e=a+ +(i&&(!a||Dh(n)&&!n.noHeader)))}),e}return 0}function rC(t,e,r,i){var n=e.noHeader,a=nC(yy(e)),o=[],s=e.blocks||[];_e(!s||N(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Re(l,u)){var f=new ay(l[u],null);s.sort(function(g,d){return f.evaluate(g.sortParam,d.sortParam)})}else u==="seriesDesc"&&s.reverse()}b(s,function(g,d){var m=e.valueFormatter,_=_y(g)(m?I(I({},t),{valueFormatter:m}):t,g,d>0?a.html:0,i);_!=null&&o.push(_)});var c=t.renderMode==="richText"?o.join(a.richText):Mh(i,o.join(""),n?r:a.html);if(n)return c;var p=vu(e.header,"ordinal",t.useUTC),h=gy(i,t.renderMode).nameStyle,v=my(i);return t.renderMode==="richText"?xy(t,p,h)+a.richText+c:Mh(i,'<div style="'+h+";"+v+';">'+Ye(p)+"</div>"+c,r)}function iC(t,e,r,i){var n=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,u=e.name,l=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=N(x)?x:[x],L(x,function(S,T){return vu(S,N(h)?h[T]:h,l)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||gt.color.secondary,n),p=a?"":vu(u,"ordinal",l),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),g=!s||!a,d=!s&&a,m=gy(i,n),_=m.nameStyle,y=m.valueStyle;return n==="richText"?(s?"":c)+(a?"":xy(t,p,_))+(o?"":sC(t,v,g,d,y)):Mh(i,(s?"":c)+(a?"":aC(p,!s,_))+(o?"":oC(v,g,d,y)),r)}}function Uk(t,e,r,i,n,a){if(t){var o=_y(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function nC(t){return{html:eC[t],richText:tC[t]}}function Mh(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=my(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function aC(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+Ye(t)+"</span>"}function oC(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=N(t)?t:[t],'<span style="'+a+";"+i+'">'+L(t,function(o){return Ye(o)}).join("&nbsp;&nbsp;")+"</span>"}function xy(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function sC(t,e,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(N(e)?e.join(" "):e,a)}function Sy(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return T_(i)}function Bk(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var zk=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ea()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i==="richText"?this._generateStyleName():null,a=S_({color:r,type:e,renderMode:i,markerId:n});return F(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};N(r)?b(r,function(a){return I(i,a)}):I(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t})();function Ty(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),u=N(s),l=Sy(e,r),f,c,p,h;if(o>1||u&&!o){var v=uC(s,e,r,a,l);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var g=n.getDimensionInfo(a[0]);h=f=Hn(n,r,a[0]),c=g.type}else h=f=u?s[0]:s;var d=xs(e),m=d&&e.name||"",_=n.getName(r),y=i?m:_;return Iu("section",{header:m,noHeader:i||!d,sortParam:h,blocks:[Iu("nameValue",{markerType:"item",markerColor:l,name:y,noName:!rt(y),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function uC(t,e,r,i,n){var a=e.getData(),o=xt(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],u=[],l=[];i.length?b(i,function(c){f(Hn(a,r,c),c)}):b(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?l.push(Iu("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),u.push(h.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var jr=ie();function Ru(t,e){return t.getName(e)||t.getId(e)}var lC="__universalTransitionEnabled",Lu=(function(t){Ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Zr({count:cC,reset:hC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=jr(this).sourceManager=new dy(this);a.prepareSource();var o=this.getInitialData(r,n);wy(o,this),this.dataTask.context.data=o,jr(this).dataBeforeProcessed=o,by(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=Un(this),a=n?yu(r):{},o=this.subType;De.hasClass(o)&&(o+="Series"),le(r,i.getTheme().get(this.subType)),le(r,this.getDefaultOption()),Pf(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&Bn(r,a,n)},e.prototype.mergeOption=function(r,i){r=le(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Un(this);n&&Bn(this.option,r,n);var a=jr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);wy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,jr(this).dataBeforeProcessed=o,by(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ge(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&Pf(r[n],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Oh(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return jr(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=Oh(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}jr(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return B(r)},e.prototype.getSourceManager=function(){return jr(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return jr(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),g=o.getStore(),d=0,m=g.count();d<m;d++){var _=g.get(v,d),y=u.dataToCoord(_),x=l-y,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=d))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return Ty({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ne.node&&!(r&&r.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(r,i,n){var a=this.ecModel,o=ja.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=Ru(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=Y(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Ru(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[lC])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,u=i.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){U(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var c=i[f],p=Ru(r,c);l[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[u-1],p=Ru(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return De.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(De);yt(Lu,iy);yt(Lu,ja);Es(Lu,De);function by(t){var e=t.name;xs(t)||(t.name=fC(t)||e)}function fC(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return b(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function cC(t){return t.model.getRawData().count()}function hC(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),pC}function pC(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function wy(t,e){b(nv(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,na(vC,e))})}function vC(t,e){var r=Oh(t);return r&&r.setOutputEnd((e||this).count()),e}function Oh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var Wn=Lu;var Ah=(function(){function t(){this.group=new $t,this.uid=qr("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Cn(Ah);Vr(Ah);var io=Ah;function Ih(){var t=ie();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Dy=ie(),dC=Ih(),Rh=(function(){function t(){this.group=new $t,this.uid=qr("viewChart"),this.renderTask=Zr({plan:mC,reset:gC}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&Cy(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&Cy(a,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){Gc(this.group,e)},t.markUpdateMethod=function(e,r){Dy(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Ey(t,e,r){t&&za(t)&&(e==="emphasis"?Ua:Ba)(t,r)}function Cy(t,e,r){var i=Ti(t,e),n=e&&e.highlightKey!=null?rg(e.highlightKey):null;i!=null?b(xe(i),function(a){Ey(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){Ey(a,r,n)})}Cn(Rh,["dispose"]);Vr(Rh);function mC(t){return dC(t.model)}function gC(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&Dy(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](e,r,i,n),_C[u]}var _C={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Wi=Rh;var Nu="\0__throttleOriginMethod",My="\0__throttleRate",Oy="\0__throttleType";function Lh(t,e,r){var i,n=0,a=0,o=null,s,u,l,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(u,l||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),u=this,l=h;var g=f||e,d=f||r;f=null,s=i-(d?n:a)-g,clearTimeout(o),d?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function dF(t,e,r,i){var n=t[e];if(n){var a=n[Nu]||n,o=n[Oy],s=n[My];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=Lh(a,r,i==="debounce"),n[Nu]=a,n[Oy]=i,n[My]=r}return n}}function mF(t,e){var r=t[e];r&&r[Nu]&&(r.clear&&r.clear(),t[e]=r[Nu])}var Ay=ie(),Iy={itemStyle:tr(Zc,!0),lineStyle:tr(Kc,!0)},yC={lineStyle:"stroke",itemStyle:"fill"};function Ry(t,e){var r=t.visualStyleMapper||Iy[e];return r||(console.warn("Unknown style type '"+e+"'."),Iy.itemStyle)}function Ly(t,e){var r=t.visualDrawType||yC[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var Ny={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=Ry(t,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=Ly(t,i),l=o[u],f=W(l)?l:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[u]||(o[u]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||W(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||W(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var g=t.getDataParams(v),d=I({},o);d[u]=f(g),h.setItemVisual(v,"style",d)}}}},no=new $e,Py={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=Ry(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){no.option=u[i];var l=n(no),f=o.ensureUniqueItemVisual(s,"style");I(f,l),no.option.decal&&(o.setItemVisual(s,"decal",no.option.decal),no.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},ky={performRawSeries:!0,overallReset:function(t){var e=B();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();Ay(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=Ay(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=Ly(r,s);a.each(function(l){var f=a.getRawIndex(l);n[f]=l}),i.each(function(l){var f=n[l],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(l)||l+"",v=i.count();p[u]=r.getColorFromPalette(h,o,v)}})}})}};var Pu=Math.PI;function Nh(t,e){e=e||{},ce(e,{text:"loading",textColor:gt.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:gt.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new $t,i=new pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new Sr({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 pt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Xa({shape:{startAngle:-Pu/2,endAngle:-Pu/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:Pu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Pu*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-u*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:u),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var xC=(function(){function t(e,r,i,n){this._stageTaskMap=B(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):Xd(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=B();r.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)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;b(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";_e(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;b(e,function(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(d){s(n,d)&&(d.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var g=o.getPerformArgs(p,n.block);v.each(function(d){d.perform(g)}),p.perform(g)&&(a=!0)}else c&&c.each(function(d,m){s(n,d)&&d.dirty();var _=o.getPerformArgs(d,n.block);_.skip=!u.performRawSeries&&r.isSeriesFiltered(d.context.model),o.updatePayload(d,i),d.perform(_)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=B(),u=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):u?i.eachRawSeriesByType(u,f):l&&l(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||Zr({plan:EC,reset:CC,count:MC}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||Zr({reset:SC});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=B(),l=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";_e(!e.createOnAllSeries,h),l?i.eachRawSeriesByType(l,v):f?f(i,n).each(v):b(i.getSeries(),v);function v(g){var d=g.uid,m=u.set(d,s&&s.get(d)||(p=!0,Zr({reset:TC,onDirty:wC})));m.context={model:g,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(g,m)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return W(e)&&(e={overallReset:e,seriesType:OC(e)}),e.uid=qr("stageHandler"),r&&(e.visualType=r),e},t})();function SC(t){t.overallReset(t.ecModel,t.api,t.payload)}function TC(t){return t.dirtyOnOverallProgress&&bC}function bC(){this.agent.dirty(),this.getDownstream().dirty()}function wC(){this.agent&&this.agent.dirty()}function EC(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function CC(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=xe(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?L(e,function(r,i){return Fy(i)}):DC}var DC=Fy(0);function Fy(t){return function(e,r){var i=r.data,n=r.resetDefines[t];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 MC(t){return t.data.count()}function OC(t){ku=null;try{t(ao,Uy)}catch{}return ku}var ao={},Uy={},ku;By(ao,bu);By(Uy,Ls);ao.eachSeriesByType=ao.eachRawSeriesByType=function(t){ku=t};ao.eachComponent=function(t){t.mainType==="series"&&t.subType&&(ku=t.subType)};function By(t,e){for(var r in e.prototype)t[r]=Le}var Ph=xC;var P=gt.darkColor,zy=P.background,oo=function(){return{axisLine:{lineStyle:{color:P.axisLine}},splitLine:{lineStyle:{color:P.axisSplitLine}},splitArea:{areaStyle:{color:[P.backgroundTint,P.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:P.axisMinorSplitLine}},axisLabel:{color:P.axisLabel},axisName:{}}},Vy={label:{color:P.secondary},itemStyle:{borderColor:P.borderTint},dividerLineStyle:{color:P.border}},Hy={darkMode:!0,color:P.theme,backgroundColor:zy,axisPointer:{lineStyle:{color:P.border},crossStyle:{color:P.borderShade},label:{color:P.tertiary}},legend:{textStyle:{color:P.secondary},pageTextStyle:{color:P.tertiary}},textStyle:{color:P.secondary},title:{textStyle:{color:P.primary},subtextStyle:{color:P.quaternary}},toolbox:{iconStyle:{borderColor:P.accent50},feature:{dataView:{backgroundColor:zy,textColor:P.primary,textareaColor:P.background,textareaBorderColor:P.border,buttonColor:P.accent50,buttonTextColor:P.neutral00}}},tooltip:{backgroundColor:P.neutral20,defaultBorderColor:P.border,textStyle:{color:P.tertiary}},dataZoom:{borderColor:P.accent10,textStyle:{color:P.tertiary},brushStyle:{color:P.backgroundTint},handleStyle:{color:P.neutral00,borderColor:P.accent20},moveHandleStyle:{color:P.accent40},emphasis:{handleStyle:{borderColor:P.accent50}},dataBackground:{lineStyle:{color:P.accent30},areaStyle:{color:P.accent20}},selectedDataBackground:{lineStyle:{color:P.accent50},areaStyle:{color:P.accent30}}},visualMap:{textStyle:{color:P.secondary},handleStyle:{borderColor:P.neutral30}},timeline:{lineStyle:{color:P.accent10},label:{color:P.tertiary},controlStyle:{color:P.accent30,borderColor:P.accent30}},calendar:{itemStyle:{color:P.neutral00,borderColor:P.neutral20},dayLabel:{color:P.tertiary},monthLabel:{color:P.secondary},yearLabel:{color:P.secondary}},matrix:{x:Vy,y:Vy,backgroundColor:{borderColor:P.axisLine},body:{itemStyle:{borderColor:P.borderTint}}},timeAxis:oo(),logAxis:oo(),valueAxis:oo(),categoryAxis:oo(),line:{symbol:"circle"},graph:{color:P.theme},gauge:{title:{color:P.secondary},axisLine:{lineStyle:{color:[[1,P.neutral05]]}},axisLabel:{color:P.axisLabel},detail:{color:P.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:P.background}},radar:(function(){var t=oo();return t.axisName={color:P.axisLabel},t.axisLine.lineStyle.color=P.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:P.neutral20,textStyle:{color:P.secondary}},emphasis:{itemStyle:{color:P.neutral30}}}},sunburst:{itemStyle:{borderColor:P.background}},map:{itemStyle:{borderColor:P.border,areaColor:P.neutral10},label:{color:P.tertiary},emphasis:{label:{color:P.primary},itemStyle:{areaColor:P.highlight}},select:{label:{color:P.primary},itemStyle:{areaColor:P.highlight}}},geo:{itemStyle:{borderColor:P.border,areaColor:P.neutral10},emphasis:{label:{color:P.primary},itemStyle:{areaColor:P.highlight}},select:{label:{color:P.primary},itemStyle:{color:P.highlight}}}};Hy.categoryAxis.splitLine.show=!1;var Gy=Hy;var Yy=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(F(e)){var a=ct(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};b(e,function(u,l){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=l.lastIndexOf(p);if(h>0&&h===l.length-p.length){var v=l.slice(0,h);v!=="data"&&(r.mainType=v,r[p.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(i[l]=u,f=!0),f||(n[l]=u)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var kh=["symbol","symbolSize","symbolRotate","symbolOffset"],Wy=kh.concat(["symbolKeepAspect"]),Xy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<kh.length;o++){var s=kh[o],u=t.get(s);W(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(I({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var l=Y(n);function f(c,p){for(var h=t.getRawValue(p),v=t.getDataParams(p),g=0;g<l.length;g++){var d=l[g];c.setItemVisual(p,d,n[d](h,v))}}return{dataEach:a?f:null}}},qy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<Wy.length;s++){var u=Wy[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?i:null}}};function Ky(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function Zy(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function zF(t,e,r,i){switch(r){case"color":var n=t.ensureUniqueItemVisual(e,"style");n[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,r,i);break;default:}}function YF(t,e){function r(i,n){var a=[];return i.eachComponent({mainType:"series",subType:t,query:n},function(o){a.push(o.seriesIndex)}),a}b([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(i){e(i[0],function(n,a,o){n=I({},n),o.dispatchAction(I(n,{type:i[1],seriesIndex:r(a,n)}))})})}function Xn(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=n.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var c=o.getData(),p=Ti(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:N(p)?c.getName(p[0]):c.getName(p),selected:F(u)?u:I({},u)})}})}function jy(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(Xn("map","selectchanged",e,n,i),Xn("pie","selectchanged",e,n,i)):i.fromAction==="select"?(Xn("map","selected",e,n,i),Xn("pie","selected",e,n,i)):i.fromAction==="unselect"&&(Xn("map","unselected",e,n,i),Xn("pie","unselected",e,n,i))})}function so(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var AC=new Ge,Ct=AC;var Qy={};function $y(t,e){Qy[t]=e}function Jy(t){return Qy[t]}var IC={};function e0(t,e){IC[t]=e}var Fu=ie();function t0(t){Fu(t).prepare={}}function r0(t){Fu(t).fullUpdate={}}function i0(t){return Fu(t).prepare}function Xi(t){return Fu(t).fullUpdate}var RC=Math.round(Math.random()*9),LC=typeof Object.defineProperty=="function",NC=(function(){function t(){this._id="__ec_inner_"+RC++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return LC?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),n0=NC;var PC=Z.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),kC=Z.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),FC=Z.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),u=i-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,c=Math.sin(l),p=Math.cos(l),h=o*.6,v=o*.7;t.moveTo(r-f,u+s),t.arc(r,u,o,Math.PI-l,Math.PI*2+l),t.bezierCurveTo(r+f-c*h,u+s+p*h,r,i-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,u+s+p*h,r-f,u+s),t.closePath()}}),UC=Z.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),BC={line:Wa,rect:pt,roundRect:pt,square:pt,circle:Ha,diamond:kC,pin:FC,arrow:UC,triangle:PC},zC={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},Fh={};b(BC,function(t,e){Fh[e]=new t});var VC=Z.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=ps(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=Fh[i];n||(i="rect",n=Fh[i]),zC[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function HC(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||gt.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function a0(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return t.indexOf("image://")===0?u=Hc(t.slice(8),new K(e,r,i,n),o?"center":"cover"):t.indexOf("path://")===0?u=js(t.slice(7),{},new K(e,r,i,n),o?"center":"cover"):u=new VC({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=HC,a&&u.setColor(a),u}function aU(t){return N(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function oU(t,e){if(t!=null)return N(t)||(t=[t,t]),[Xe(t[0],e[0])||0,Xe(z(t[1],t[0]),e[1])||0]}function qi(t){return isFinite(t)}function GC(t,e,r){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*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=qi(i)?i:0,n=qi(n)?n:1,a=qi(a)?a:0,o=qi(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function YC(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,u=e.r==null?.5:e.r;e.global||(o=o*i+r.x,s=s*n+r.y,u=u*a),o=qi(o)?o:.5,s=qi(s)?s:.5,u=u>=0&&qi(u)?u:.5;var l=t.createRadialGradient(o,s,0,o,s,u);return l}function uo(t,e,r){for(var i=e.type==="radial"?YC(t,e,r):GC(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function o0(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Uu(t){return parseInt(t,10)}function Qr(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||Uu(s[i])||Uu(t.style[i]))-(Uu(s[a])||0)-(Uu(s[o])||0)||0}function WC(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:J(t)?[t]:N(t)?t:null}function lo(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&WC(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=L(r,function(a){return a/n}),i/=n)}return[r,i]}var XC=new Tt(!0);function Bu(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function s0(t){return typeof t=="string"&&t!=="none"}function zu(t){var e=t.fill;return e!=null&&e!=="none"}function u0(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function l0(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Vu(t,e,r){var i=Ma(e.image,e.__image,r);if(Dn(i)){var n=t.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)*on),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function qC(t,e,r,i,n){var a,o=Bu(r),s=zu(r),u=r.strokePercent,l=u<1,f=!e.path;(!e.silent||l)&&f&&e.createPathProxy();var c=e.path||XC,p=e.__dirty;if(!i){var h=r.fill,v=r.stroke,g=s&&!!h.colorStops,d=o&&!!v.colorStops,m=s&&!!h.image,_=o&&!!v.image,y=void 0,x=void 0,S=void 0,T=void 0,C=void 0;(g||d)&&(C=e.getBoundingRect()),g&&(y=p?uo(t,h,C):e.__canvasFillGradient,e.__canvasFillGradient=y),d&&(x=p?uo(t,v,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(S=p||!e.__canvasFillPattern?Vu(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),_&&(T=p||!e.__canvasStrokePattern?Vu(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),g?t.fillStyle=y:m&&(S?t.fillStyle=S:s=!1),d?t.strokeStyle=x:_&&(T?t.strokeStyle=T:o=!1)}var E=e.getGlobalScale();c.setScale(E[0],E[1],e.segmentIgnoreThreshold);var M,D;t.setLineDash&&r.lineDash&&(a=lo(e),M=a[0],D=a[1]);var w=!0;(f||p&Lr)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),w=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),w&&c.rebuildPath(t,l?u:1),M&&(t.setLineDash(M),t.lineDashOffset=D),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&l0(t,r),s&&u0(t,r)):(s&&u0(t,r),o&&l0(t,r)),M&&t.setLineDash([])}function KC(t,e,r){var i=e.__image=Ma(r.image,e.__image,e,e.onload);if(!(!i||!Dn(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;t.drawImage(i,l,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,c=o-l,p=s-f;t.drawImage(i,l,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function ZC(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||ut,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=lo(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Bu(r)&&t.strokeText(n,r.x,r.y),zu(r)&&t.fillText(n,r.x,r.y)):(zu(r)&&t.fillText(n,r.x,r.y),Bu(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var f0=["shadowBlur","shadowOffsetX","shadowOffsetY"],c0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function g0(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){at(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?rr.opacity:o}(i||e.blend!==r.blend)&&(a||(at(t,n),a=!0),t.globalCompositeOperation=e.blend||rr.blend);for(var s=0;s<f0.length;s++){var u=f0[s];(i||e[u]!==r[u])&&(a||(at(t,n),a=!0),t[u]=t.dpr*(e[u]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(at(t,n),a=!0),t.shadowColor=e.shadowColor||rr.shadowColor),a}function h0(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=g0(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(at(t,n),s=!0),s0(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(at(t,n),s=!0),s0(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(at(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(at(t,n),s=!0),t.lineWidth=l)}for(var f=0;f<c0.length;f++){var c=c0[f],p=c[0];(i||a[p]!==o[p])&&(s||(at(t,n),s=!0),t[p]=a[p]||c[1])}return s}function jC(t,e,r,i,n){return g0(t,e.style,r&&r.style,i,n)}function _0(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function QC(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),_0(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function $C(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var p0=1,v0=2,d0=3,m0=4;function JC(t){var e=zu(t),r=Bu(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function at(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function Hu(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};$r(t,e,r),Ki(t,r)}function $r(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~we,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,u=!1;if((!a||o0(n,a))&&(a&&(at(t,r),t.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(at(t,r),t.save(),QC(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~we,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=e instanceof Z&&e.autoBatch&&JC(o);s||$C(i,l.transform)?(at(t,r),_0(t,e)):f||at(t,r),e instanceof Z?(r.lastDrawType!==p0&&(u=!0,r.lastDrawType=p0),h0(t,e,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),qC(t,e,o,f,r)):e instanceof Ri?(r.lastDrawType!==d0&&(u=!0,r.lastDrawType=d0),h0(t,e,l,u,r),ZC(t,e,o)):e instanceof ht?(r.lastDrawType!==v0&&(u=!0,r.lastDrawType=v0),jC(t,e,l,u,r),KC(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==m0&&(u=!0,r.lastDrawType=m0),eD(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&at(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Ki(t,e){at(t,e),e.prevElClipPaths&&t.restore()}function eD(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var u=i[o];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),$r(t,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Ki(t,a);for(var l=0,f=n.length;l<f;l++){var u=n[l];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),$r(t,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Ki(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Uh=new n0,y0=new jt(100),x0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Bh(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";t.dirty&&Uh.delete(t);var a=Uh.get(t);if(a)return a;var o=ce(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Uh.set(t,s),t.dirty=!1,s;function u(l){for(var f=[r],c=!0,p=0;p<x0.length;++p){var h=o[x0[p]];if(h!=null&&!N(h)&&!F(h)&&!J(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var g=y0.get(v);g&&(n?l.svgElement=g:l.image=g)}var d=T0(o.dashArrayX),m=tD(o.dashArrayY),_=S0(o.symbol),y=rD(d),x=b0(m),S=!n&&be.createCanvas(),T=n&&{tag:"g",attrs:{},key:"dcl",children:[]},C=M(),E;S&&(S.width=C.width*r,S.height=C.height*r,E=S.getContext("2d")),D(),c&&y0.put(v,S||T),l.image=S,l.svgElement=T,l.svgWidth=C.width,l.svgHeight=C.height;function M(){for(var w=1,R=0,O=y.length;R<O;++R)w=Lf(w,y[R]);for(var A=1,R=0,O=_.length;R<O;++R)A=Lf(A,_[R].length);w*=A;var V=x*y.length*_.length;if(0)var k;return{width:Math.max(1,Math.min(w,o.maxTileWidth)),height:Math.max(1,Math.min(V,o.maxTileHeight))}}function D(){E&&(E.clearRect(0,0,S.width,S.height),o.backgroundColor&&(E.fillStyle=o.backgroundColor,E.fillRect(0,0,S.width,S.height)));for(var w=0,R=0;R<m.length;++R)w+=m[R];if(w<=0)return;for(var O=-x,A=0,V=0,k=0;O<C.height;){if(A%2===0){for(var H=V/2%_.length,$=0,oe=0,ee=0;$<C.width*2;){for(var Q=0,R=0;R<d[k].length;++R)Q+=d[k][R];if(Q<=0)break;if(oe%2===0){var ae=(1-o.symbolSize)*.5,fe=$+d[k][oe]*ae,j=O+m[A]*ae,ue=d[k][oe]*o.symbolSize,de=m[A]*o.symbolSize,tt=ee/2%_[H].length;st(fe,j,ue,de,_[H][tt])}$+=d[k][oe],++ee,++oe,oe===d[k].length&&(oe=0)}++k,k===d.length&&(k=0)}O+=m[A],++V,++A,A===m.length&&(A=0)}function st(Ue,Oe,X,te,Pt){var ke=n?1:r,ta=a0(Pt,Ue*ke,Oe*ke,X*ke,te*ke,o.color,o.symbolKeepAspect);if(n){var ii=i.painter.renderOneToVNode(ta);ii&&T.children.push(ii)}else Hu(E,ta)}}}}function S0(t){if(!t||t.length===0)return[["rect"]];if(F(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!F(t[r])){e=!1;break}if(e)return S0([t]);for(var i=[],r=0;r<t.length;++r)F(t[r])?i.push([t[r]]):i.push(t[r]);return i}function T0(t){if(!t||t.length===0)return[[0,0]];if(J(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!J(t[i])){r=!1;break}if(r)return T0([t]);for(var n=[],i=0;i<t.length;++i)if(J(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=L(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function tD(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(J(t)){var e=Math.ceil(t);return[e,e]}var r=L(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function rD(t){return L(t,function(e){return b0(e)})}function b0(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var w0=ws(iD);function iD(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var u=i.ensureUniqueItemVisual(o,"style");u.decal=Bh(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Bh(n,e)}}})}var nD=1,aD=800,oD=900,sD=920,uD=1e3,lD=2e3,E0=5e3,P0=1e3,fD=1100,Qh=2e3,k0=3e3,cD=4e3,Zu=4500,hD=4600,pD=5e3,vD=6e3,F0=7e3,U0={PROCESSOR:{SERIES_FILTER:aD,AXIS_STATISTICS:sD,FILTER:uD,STATISTIC:E0,STATISTICS:E0},VISUAL:{LAYOUT:P0,PROGRESSIVE_LAYOUT:fD,GLOBAL:Qh,CHART:k0,POST_CHART_LAYOUT:hD,COMPONENT:cD,BRUSH:pD,CHART_ITEM:Zu,ARIA:vD,DECAL:F0}},Pe="__flagInMainProcess",Gu="__mainProcessVersion",He="__pendingUpdate",zh="__needsUpdateStatus",C0=/^[a-zA-Z0-9_]+$/,Vh="__connectUpdateStatus",D0=0,dD=1,mD=2;function B0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return V0(this,t,e)}}function z0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return V0(this,t,e)}}function V0(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Ge.prototype[e].apply(t,r)}var H0=(function(t){Ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Ge),G0=H0.prototype;G0.on=z0("on");G0.off=z0("off");var Zi,Hh,Yu,Cr,Wu,Gh,Yh,qn,Kn,M0,O0,Wh,A0,Xu,I0,Y0,Nt,R0,Zn,W0=(function(t){Ae(e,t);function e(r,i,n){var a=t.call(this,new Yy)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",u=!1;if(a[Gu]=1,0)var l;n.ssr&&Dd(function(h){var v=Ke(h),g=v.dataIndex;if(g!=null){var d=B();return d.set("series_index",v.seriesIndex),d.set("data_index",g),v.ssrType&&d.set("ssr_type",v.ssrType),d}});var f=a._zr=Df(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:z(n.useDirtyRect,u),useCoarsePointer:z(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Lh(me(f.flush,f),17),a._updateTheme(i),a._locale=l_(n.locale||tu),a._coordSysMgr=new hh;var c=a._api=I0(a);function p(h,v){return h.__prio-v.__prio}return hi(Ku,p),hi(Kh,p),a._scheduler=new Ph(a,c,Kh,Ku),a._messageCenter=new H0,a._initEvents(),a.resize=me(a.resize,a),f.animation.on("frame",a._onframe,a),M0(f,a),O0(f,a),an(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(R0(this),this[He]){var a=this[He].silent;this[Pe]=!0,Zn(this);try{Zi(this),Cr.update.call(this,null,this[He].updateParams)}catch(u){throw this[Pe]=!1,this[He]=null,u}this._zr.flush(),this[Pe]=!1,this[He]=null,qn.call(this,a),Kn.call(this,a)}else if(r.unfinished){var o=nD;do{r.unfinished=!1;var s=be.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),Gh(this,i),r.performVisualTasks(i),Xu(this,this._model,n,"remain",{}),o-=be.getTime()-s}while(o>0&&r.unfinished);r.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(r,i,n){if(!this[Pe]){if(this._disposed){this.id;return}var a,o,s;if(U(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Pe]=!0,Zn(this),!this._model||i){var u=new V_(this._api),l=this._theme,f=this._model=new bu;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Zh);var c={seriesTransition:s,optionChanged:!0};if(n)this[He]={silent:a,updateParams:c},this[Pe]=!1,this.getZr().wakeUp();else{try{Zi(this),Cr.update.call(this,null,c)}catch(p){throw this[He]=null,this[Pe]=!1,p}this._ssr||this._zr.flush(),this[He]=null,this[Pe]=!1,qn.call(this,a),Kn.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[Pe]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[He]&&(a==null&&(a=this[He].silent),o=this[He].updateParams,this[He]=null),this[Pe]=!0,Zn(this);try{this._updateTheme(r),n.setTheme(this._theme),Zi(this),Cr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Pe]=!1,s}this[Pe]=!1,qn.call(this,a),Kn.call(this,a)}}},e.prototype._updateTheme=function(r){F(r)&&(r=X0[r]),r&&(r=q(r),r&&wu(r,!0),this._theme=r)},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||ne.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return b(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;b(i,function(u){n.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return b(a,function(u){u.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(L0[n]){var u=s,l=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();b(fo,function(y,x){if(y.group===n){var S=i?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(q(r)),T=y.getDom().getBoundingClientRect();u=a(T.left,u),l=a(T.top,l),f=o(T.right,f),c=o(T.bottom,c),p.push({dom:S,left:T.left,top:T.top})}}),u*=h,l*=h,f*=h,c*=h;var v=f-u,g=c-l,d=be.createCanvas(),m=Df(d,{renderer:i?"svg":"canvas"});if(m.resize({width:v,height:g}),i){var _="";return b(p,function(y){var x=y.left-u,S=y.top-l;_+='<g transform="translate('+x+","+S+')">'+y.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new pt({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),b(p,function(y){var x=new ht({style:{x:y.left*h-u,y:y.top*h-l,image:y.dom}});m.add(x)}),m.refreshImmediately(),d.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return Wu(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return Wu(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return Wu(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=Ss(n,r);return b(o,function(s,u){u.indexOf("Models")>=0&&b(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(u==="seriesModels"){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,l))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=Ss(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?Ky(s,u,i):Zy(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;b(gD,function(n){var a=function(o){var s=r.getModel(),u=o.target,l,f=n==="globalout";if(f?l={}:u&&so(u,function(g){var d=Ke(g);if(d&&d.dataIndex!=null){var m=d.dataModel||s.getSeriesByIndex(d.seriesIndex);return l=m&&m.getDataParams(d.dataIndex,d.dataType,u)||{},!0}else if(d.eventData)return l=I({},d.eventData),!0},!0),l){var c=l.componentType,p=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=l.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:h,view:v},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;b(qh,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),jy(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 r=this.getDom();r&&Uf(this.getDom(),Jh,"");var i=this,n=i._api,a=i._model;b(i._componentsViews,function(o){o.dispose(a,n)}),b(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 fo[i.id]},e.prototype.resize=function(r){if(!this[Pe]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[He]&&(a==null&&(a=this[He].silent),n=!0,this[He]=null),this[Pe]=!0,Zn(this);try{n&&Zi(this),Cr.update.call(this,{type:"resize",animation:I({duration:0},r&&r.animation)})}catch(o){throw this[Pe]=!1,o}this[Pe]=!1,qn.call(this,a),Kn.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(U(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!jh[r]){var n=jh[r](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(r){var i=I({},r);return i.type=Xh[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(U(i)||(i={silent:!!i}),!!qu[r.type]&&this._model){if(this[Pe]){this._pendingActions.push(r);return}var n=i.silent;Yh.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&ne.browser.weChat&&this._throttledZrFlush(),qn.call(this,n),Kn.call(this,n)}},e.prototype.updateLabelLayout=function(){Ct.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Zi=function(c){t0(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),Hh(c,!0),Hh(c,!1),p.plan()},Hh=function(c,p){for(var h=c._model,v=c._scheduler,g=p?c._componentsViews:c._chartsViews,d=p?c._componentsMap:c._chartsMap,m=c._zr,_=c._api,y=0;y<g.length;y++)g[y].__alive=!1;p?h.eachComponent(function(T,C){T!=="series"&&x(C)}):h.eachSeries(x);function x(T){var C=T.__requireNewView;T.__requireNewView=!1;var E="_ec_"+T.id+"_"+T.type,M=!C&&d[E];if(!M){var D=ct(T.type),w=p?io.getClass(D.main,D.sub):Wi.getClass(D.sub);M=new w,M.init(h,_),d[E]=M,g.push(M),m.add(M.group)}T.__viewId=M.__id=E,M.__alive=!0,M.__model=T,M.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!p&&v.prepareView(M,T,h,_)}for(var y=0;y<g.length;){var S=g[y];S.__alive?y++:(!p&&S.renderTask.dispose(),m.remove(S.group),S.dispose(h,_),g.splice(y,1),d[S.__id]===S&&delete d[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Yu=function(c,p,h,v,g){var d=c._model;if(d.setUpdatePayload(h),!v){b([].concat(c._componentsViews).concat(c._chartsViews),x);return}var m=Vd(h,v,g),_=h.excludeSeriesId,y;_!=null&&(y=B(),b(xe(_),function(S){var T=ft(S,null);T!=null&&y.set(T,!0)})),d&&d.eachComponent(m,function(S){var T=y&&y.get(S.id)!=null;if(!T)if(yc(h))if(S instanceof Wn)h.type===Xr&&!h.notBlur&&!S.get(["emphasis","disabled"])&&jm(S,h,c._api);else{var C=Us(S.mainType,S.componentIndex,h.name,c._api),E=C.focusSelf,M=C.dispatchers;h.type===Xr&&E&&!h.notBlur&&Ns(S.mainType,S.componentIndex,c._api),M&&b(M,function(D){h.type===Xr?Ua(D):Ba(D)})}else Bs(h)&&S instanceof Wn&&(Jm(S,h,c._api),_c(S),Nt(c))},c),d&&d.eachComponent(m,function(S){var T=y&&y.get(S.id)!=null;T||x(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,d,c._api,h)}},Cr={prepareAndUpdate:function(c){Zi(this),Cr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,g=this._zr,d=this._coordSysMgr,m=this._scheduler;if(h){r0(h),h.setUpdatePayload(c),m.restoreData(h,c),m.performSeriesTasks(h),d.create(h,v),Ct.trigger("coordsys:aftercreate",h,v),m.performDataProcessorTasks(h,c),Gh(this,h),d.update(h,v),i(h),m.performVisualTasks(h,c);var _=h.get("backgroundColor")||"transparent";g.setBackgroundColor(_);var y=h.get("darkMode");y!=null&&y!=="auto"&&g.setDarkMode(y),Wh(this,h,v,c,p),Ct.trigger("afterupdate",h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var g=[];h.eachComponent(function(m,_){if(m!==Rs){var y=p.getViewOfComponentModel(_);if(y&&y.__alive)if(y.updateTransform){var x=y.updateTransform(_,h,v,c);x&&x.update&&g.push(y)}else g.push(y)}});var d=B();h.eachSeries(function(m){var _=p._chartsMap[m.__viewId],y=m.pipelineContext;if(_.updateTransform&&!y.progressiveRender){var x=_.updateTransform(m,h,v,c);x&&x.update&&d.set(m.uid,1)}else d.set(m.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:d}),Xu(p,h,v,c,{},d),Ct.trigger("afterupdate",h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),Wi.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),Wh(this,p,this._api,c,{}),Ct.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),Wi.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,g){if(v!=="series"){var d=p.getViewOfComponentModel(g);d&&d.__alive&&d.updateVisual(g,h,p._api,c)}}),h.eachSeries(function(v){var g=p._chartsMap[v.__viewId];g.updateVisual(v,h,p._api,c)}),Ct.trigger("afterupdate",h,this._api))},updateLayout:function(c){Cr.update.call(this,c)}};function r(c,p,h,v,g){if(c._disposed){c.id;return}for(var d=c._model,m=c._coordSysMgr.getCoordinateSystems(),_,y=Ss(d,h),x=0;x<m.length;x++){var S=m[x];if(S[p]&&(_=S[p](d,y,v,g))!=null)return _}}Wu=r,Gh=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(g){v.updateStreamModes(g,h[g.__viewId])})},Yh=function(c,p){var h=this,v=this.getModel(),g=c.type,d=c.escapeConnect,m=qu[g],_=(m.update||"update").split(":"),y=_.pop(),x=_[0]!=null&&ct(_[0]);this[Pe]=!0,Zn(this);var S=[c],T=!1;c.batch&&(T=!0,S=L(c.batch,function(k){return k=ce(I({},k),c),k.batch=null,k}));var C=[],E,M=[],D=m.nonRefinedEventType,w=Bs(c),R=yc(c);if(R&&gc(this._api),b(S,function(k){var H=m.action(k,v,h._api);if(m.refineEvent?M.push(H):E=H,E=E||I({},k),E.type=D,C.push(E),R){var $=Ff(c),oe=$.queryOptionMap,ee=$.mainTypeSpecified,Q=ee?oe.keys()[0]:"series";Yu(h,y,k,Q),Nt(h)}else w?(Yu(h,y,k,"series"),Nt(h)):x&&Yu(h,y,k,x.main,x.sub)}),y!=="none"&&!R&&!w&&!x)try{this[He]?(Zi(this),Cr.update.call(this,c),this[He]=null):Cr[y].call(this,c)}catch(k){throw this[Pe]=!1,k}if(T?E={type:D,escapeConnect:d,batch:C}:E=C[0],this[Pe]=!1,!p){var O=void 0;if(m.refineEvent){var A=m.refineEvent(M,c,v,this._api).eventContent;_e(U(A)),O=ce({type:m.refinedEventType},A),O.fromAction=c.type,O.fromActionPayload=c,O.escapeConnect=!0}var V=this._messageCenter;V.trigger(E.type,E),O&&V.trigger(O.type,O)}},qn=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();Yh.call(this,h,c)}},Kn=function(c){!c&&this.trigger("updated")},M0=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[He]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},O0=function(c,p){c.on("mouseover",function(h){var v=h.target,g=so(v,za);g&&(Qm(g,h,p._api),Nt(p))}).on("mouseout",function(h){var v=h.target,g=so(v,za);g&&($m(g,h,p._api),Nt(p))}).on("click",function(h){var v=h.target,g=so(v,function(_){return Ke(_).dataIndex!=null},!0);if(g){var d=g.selected?"unselect":"select",m=Ke(g);p._api.dispatchAction({type:d,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(_,y){var x=y.get("zlevel")||0,S=y.get("z")||0,T=y.getZLevelKey();v=v||!!T,(_==="series"?h:p).push({zlevel:x,z:S,idx:y.componentIndex,type:_,key:T})}),v){var g=p.concat(h),d,m;hi(g,function(_,y){return _.zlevel===y.zlevel?_.z-y.z:_.zlevel-y.zlevel}),b(g,function(_){var y=c.getComponent(_.type,_.idx),x=_.zlevel,S=_.key;d!=null&&(x=Math.max(d,x)),S?(x===d&&S!==m&&x++,m=S):m&&(x===d&&x++,m=""),d=x,y.setZLevel(x)})}}Wh=function(c,p,h,v,g){n(p),A0(c,p,h,v,g),b(c._chartsViews,function(d){d.__alive=!1}),Xu(c,p,h,v,g),b(c._chartsViews,function(d){d.__alive||d.remove(p,h)})},A0=function(c,p,h,v,g,d){b(d||c._componentsViews,function(m){var _=m.__model;l(_,m),m.render(_,p,h,v),u(_,m),f(_,m)})},Xu=function(c,p,h,v,g,d){var m=c._scheduler;g=I(g||{},{updatedSeries:p.getSeries()}),Ct.trigger("series:beforeupdate",p,h,g);var _=!1;p.eachSeries(function(y){var x=c._chartsMap[y.__viewId];x.__alive=!0;var S=x.renderTask;m.updatePayload(S,v),l(y,x),d&&d.get(y.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(_=!0),x.group.silent=!!y.get("silent"),s(y,x),_c(y)}),m.unfinished=_||m.unfinished,Ct.trigger("series:layoutlabels",p,h,g),Ct.trigger("series:transition",p,h,g),p.eachSeries(function(y){var x=c._chartsMap[y.__viewId];u(y,x),f(y,x)}),o(c,p),Ct.trigger("series:afterupdate",p,h,g)},Nt=function(c){c[zh]=!0,c.getZr().wakeUp()},Zn=function(c){c[Gu]=(c[Gu]+1)%1e6},R0=function(c){c[zh]&&(c.getZr().storage.traverse(function(p){ki(p)||a(p)}),c[zh]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var g=h[v];g==="emphasis"||g==="blur"||g==="select"||p.push(g)}c.selected&&c.states.select&&p.push("select"),c.hoverState===Na&&c.states.emphasis?p.push("emphasis"):c.hoverState===La&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var v=h.storage,g=0;v.traverse(function(m){m.isGroup||g++});var d=g>z(p.get("hoverLayerThreshold"),xu.hoverLayerThreshold)&&!ne.node&&!ne.worker;(c._usingTHL||d)&&(p.eachSeries(function(m){if(!m.preventUsingHoverLayer){var _=c._chartsMap[m.__viewId];_.__alive&&_.eachRendered(function(y){var x=y.states.emphasis;x&&x.hoverLayer!==Vc&&(x.hoverLayer=d?zc:Bc)})}}),c._usingTHL=d)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function u(c,p){if(!c.preventAutoZ){var h=Yc(c);p.eachRendered(function(v){return Wc(v,h.z,h.zlevel),!0})}}function l(c,p){p.eachRendered(function(h){if(!ki(h)){var v=h.getTextContent(),g=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),g=h.get("duration"),d=g>0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(m){if(m.states&&m.states.emphasis){if(ki(m))return;if(m instanceof Z&&ig(m),m.__dirty){var _=m.prevStates;_&&m.useStates(_)}if(v){m.stateTransition=d;var y=m.getTextContent(),x=m.getTextGuideLine();y&&(y.stateTransition=d),x&&(x.stateTransition=d)}m.__dirty&&a(m)}})}I0=function(c){return new((function(p){Ae(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);v=v.parent}},h.prototype.enterEmphasis=function(v,g){Ua(v,g),Nt(c)},h.prototype.leaveEmphasis=function(v,g){Ba(v,g),Nt(c)},h.prototype.enterBlur=function(v){Km(v),Nt(c)},h.prototype.leaveBlur=function(v){vc(v),Nt(c)},h.prototype.enterSelect=function(v){dc(v),Nt(c)},h.prototype.leaveSelect=function(v){mc(v),Nt(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[Gu]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Ls))(c)},Y0=function(c){function p(h,v){for(var g=0;g<h.length;g++){var d=h[g];d[Vh]=v}}b(Xh,function(h,v){c._messageCenter.on(v,function(g){if(L0[c.group]&&c[Vh]!==D0){if(g&&g.escapeConnect)return;var d=c.makeActionFromEvent(g),m=[];b(fo,function(_){_!==c&&_.group===c.group&&m.push(_)}),p(m,D0),b(m,function(_){_[Vh]!==dD&&_.dispatchAction(d)}),p(m,mD)}})})}})(),e})(Ge),$h=W0.prototype;$h.on=B0("on");$h.off=B0("off");$h.one=function(t,e,r){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(t,n)}this.on.call(this,t,n,r)};var gD=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var qu={},Xh={},qh={},Kh=[],Zh=[],Ku=[],X0={},jh={},fo={},L0={},_D=+new Date-0,_B=+new Date-0,Jh="_echarts_instance_";function yB(t,e,r){var i=!(r&&r.ssr);if(i){var n=yD(t);if(n)return n}var a=new W0(t,e,r);return a.id="ec_"+_D++,fo[a.id]=a,i&&Uf(t,Jh,a.id),Y0(a),Ct.trigger("afterinit",a),a}function yD(t){return fo[Hd(t,Jh)]}function q0(t,e){X0[t]=e}function ep(t){re(Zh,t)<0&&Zh.push(t)}function tp(t,e){rp(Kh,t,e,lD)}function K0(t){ju("afterinit",t)}function Z0(t){ju("afterupdate",t)}function ju(t,e){Ct.on(t,e)}function ji(t,e,r){var i,n,a,o,s;W(e)&&(r=e,e=""),U(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function u(f){return f.toLowerCase()}n=u(n||i);var l=a?u(i):n;qu[i]||(_e(C0.test(i)&&C0.test(n)),a&&_e(n!==i),qu[i]={actionType:i,refinedEventType:n,nonRefinedEventType:l,update:o,action:r,refineEvent:a},qh[n]=1,a&&s&&(qh[l]=1),Xh[l]=i)}function j0(t,e){hh.register(t,e)}function Q0(t,e){rp(Ku,t,e,P0,"layout",!0)}function Jr(t,e){rp(Ku,t,e,k0,"visual",!0)}var N0=[];function rp(t,e,r,i,n,a){if((W(e)||U(e))&&(r=e,e=i),!(re(N0,r)>=0)){N0.push(r);var o=Ph.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function ip(t,e){jh[t]=e}function $0(t,e,r){var i=Jy("registerMap");i&&i(t,e,r)}var J0=ly;Jr(Qh,Ny);Jr(Zu,Py);Jr(Zu,ky);Jr(Qh,Xy);Jr(Zu,qy);Jr(F0,w0);ep(wu);tp(oD,K_);ip("default",Nh);ji({type:Xr,event:Xr,update:Xr},Le);ji({type:Pa,event:Pa,update:Pa},Le);ji({type:ka,event:ks,update:ka,action:Le,refineEvent:np,publishNonRefinedEvent:!0});ji({type:Ps,event:ks,update:Ps,action:Le,refineEvent:np,publishNonRefinedEvent:!0});ji({type:Fa,event:ks,update:Fa,action:Le,refineEvent:np,publishNonRefinedEvent:!0});function np(t,e,r,i){return{eventContent:{selected:eg(r),isFromClick:e.isFromClick||!1}}}q0("default",{});q0("dark",Gy);var ex=[],xD={registerPreprocessor:ep,registerProcessor:tp,registerPostInit:K0,registerPostUpdate:Z0,registerUpdateLifecycle:ju,registerAction:ji,registerCoordinateSystem:j0,registerLayout:Q0,registerVisual:Jr,registerTransform:J0,registerLoading:ip,registerMap:$0,registerImpl:$y,PRIORITY:U0,ComponentModel:De,ComponentView:io,SeriesModel:Wn,ChartView:Wi,registerComponentModel:function(t){De.registerClass(t)},registerComponentView:function(t){io.registerClass(t)},registerSeriesModel:function(t){Wn.registerClass(t)},registerChartView:function(t){Wi.registerClass(t)},registerCustomSeries:function(t,e){e0(t,e)},registerSubTypeDefaulter:function(t,e){De.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ed(t,e)}};function tx(t){if(N(t)){b(t,function(e){tx(e)});return}re(ex,t)>=0||(ex.push(t),W(t)&&(t={install:t}),t.install(xD))}function co(t){return t==null?0:t.length||1}function rx(t){return t}var SD=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||rx,this._newKeyGetter=n||rx,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],u=i[s],l=co(u);if(l>1){var f=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(f,o)}else l===1?(i[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=i[u],f=n[u],c=co(l),p=co(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,l),n[u]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,l),n[u]=null;else if(c===1&&p===1)this._update&&this._update(f,l),n[u]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,l),n[u]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=co(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,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),!!r){var u=r[s],l=co(u);l===0?(r[s]=o,a&&i.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},t})(),ix=SD;var TD=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function nx(t,e){var r={},i=r.encode={},n=B(),a=[],o=[],s={};b(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){var g=h.coordDimIndex;ap(i,v)[g]=p,h.isExtraCoord||(n.set(v,1),bD(h.type)&&(a[0]=p),ap(s,v)[g]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}km.each(function(d,m){var _=ap(i,m),y=h.otherDims[m];y!=null&&y!==!1&&(_[y]=h.name)})});var u=[],l={};n.each(function(p,h){var v=i[h];l[h]=v[0],u=u.concat(v)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=L(u,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=l;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,r.userOutput=new TD(s,e),r}function ap(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function PB(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function bD(t){return!(t==="ordinal"||t==="time")}var wD=(function(){function t(e){this.otherDims={},e!=null&&I(this,e)}return t})(),Qu=wD;var ED=ie(),CD={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},DD=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=OD(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return z(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Du(this.source),i=!AD(e),n="",a=[],o=0,s=0;o<e;o++){var u=void 0,l=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)u=r?c.name:null,l=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(u=r?p.name:null,l=p.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!c||!c.isCalculationCoord)&&(n+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),n+="$",n+=CD[l]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function $u(t){return t instanceof DD}function MD(t){for(var e=B(),r=0;r<(t||[]).length;r++){var i=t[r],n=U(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function OD(t){var e=ED(t);return e.dimNameMap||(e.dimNameMap=MD(t.dimensionsDefine))}function AD(t){return t>30}var ho=U,ei=L,ID=typeof Int32Array>"u"?Array:Int32Array,RD="e\0\0",ax=-1,LD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ND=["_approximateExtent"],ox,Ju,po,vo,op,mo,sp,PD=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;$u(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<i.length;f++){var c=i[f],p=F(c)?new Qu({name:c}):c instanceof Qu?c:new Qu(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,l[h]!=null&&(u=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=B();b(o,function(d){g.set(a[d].storeDimIndex,d)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(J(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof ro&&(a=e),!a){var o=this.dimensions,s=Cu(e)||Ie(e)?new Ou(e,o.length):e;a=new ro;var u=ei(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=nx(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var u=s-n;this._nameList[s]=r[u],o&&sp(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==bt&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===Ze;if(u&&!n.pure)for(var l=[],f=e;f<r;f++){var c=n.getItem(f,l);if(!this.hasItemOption&&Fd(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=ft(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=ft(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)sp(this,f);ox(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){ho(e)?I(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=po(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return Ju(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return N(e)?n.getValues(ei(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?ax:n},t.prototype.each=function(e,r,i){"use strict";W(e)&&(i=r,r=e,e=[]);var n=i||this,a=ei(vo(e),this._getStoreDimIndex,this);this._store.each(a,n?me(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";W(e)&&(i=r,r=e,e=[]);var n=i||this,a=ei(vo(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?me(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=Y(e),a=[];return b(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";W(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var a=i||n||this,o=ei(vo(e),this._getStoreDimIndex,this),s=mo(this);return s._store=this._store.map(o,a?me(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this,s=ei(vo(e),this._getStoreDimIndex,this);this._store.modify(s,o?me(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=mo(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=mo(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=mo(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new $e(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new ix(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Ju(e,i)},function(i){return Ju(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},ho(e)?I(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a==null&&(a=this.getVisual(r),N(a)?a=a.slice():ho(a)&&(a=I({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,ho(r)?I(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ho(e)?I(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?I(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;Pm(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){b(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ei(this.dimensions,this._getDimInfo,this),this.hostModel)),op(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];W(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(No(arguments)))})},t.internalField=(function(){ox=function(e){var r=e._invertedIndicesMap;b(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new ID(o.categories.length);for(var u=0;u<i.length;u++)i[u]=ax;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},po=function(e,r,i){return ft(e._getCategory(r,i),null)},Ju=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=po(e,e._idDimIdx,r)),i==null&&(i=RD+r),i},vo=function(e){return N(e)||(e=e!=null?[e]:[]),e},mo=function(e){var r=new t(e._schema?e._schema:ei(e.dimensions,e._getDimInfo,e),e.hostModel);return op(r,e),r},op=function(e,r){b(LD.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,b(ND,function(i){e[i]=q(r[i])}),e._calculationInfo=I({},r._calculationInfo)},sp=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],u=n[r];if(s==null&&a!=null&&(i[r]=s=po(e,a,r)),u==null&&o!=null&&(n[r]=u=po(e,o,r)),u==null&&s!=null){var l=e._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),n[r]=u}}})(),t})(),JB=PD;function iz(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;kD(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var u=!!(t&&t.get("stack")),l,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(b(a,function(x,S){F(x)&&(a[S]=x={name:x}),v(x)||(h=!1)}),b(a,function(x,S){u&&!x.isExtraCoord&&(!i&&!l&&x.ordinalMeta&&(l=x),!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!l&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var g=f.coordDim,d=f.type,m=0;b(a,function(x){x.coordDim===g&&m++});var _={name:c,coordDim:g,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:p,coordDim:p,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(_.storeDimIndex=s.ensureCalculationDimension(p,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(_),o.appendCalculationDimension(y)):(a.push(_),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function kD(t){return!$u(t.schema)}function FD(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function sx(t,e){return FD(t,e)?t.getCalculationInfo("stackResultDimension"):e}var ux=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Vr(ux);var ot=ux;var UD=0,BD=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UD,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&L(i,zD);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!F(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=B(this.categories))},t})();function zD(t){return U(t)&&t.value!=null?t.value:t+""}var up=BD;var _t=0,lp=1,VD={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},fx=Y(VD),jn=2,cx=3;function Qn(t,e,r){var i;t=t||{};var n=Ce();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(b(fx,function(o){a[o]&&(t[o]=me(a[o],a))}),i=a)}return i==null&&HD(t,r),{brk:i,mapper:t}}function el(t,e){b(fx,function(r){t[r]=e[r]})}function tl(t,e){t.freeze=Le}function Dr(t){return t.getExtentUnsafe(_t,jn)}function rl(t,e){return t.getExtentUnsafe(lp,e)||t.getExtentUnsafe(_t,e)}function hx(t){var e=rl(t,cx);return e[1]-e[0]}function fp(t){var e=t.getExtentUnsafe(_t,cx);return e[1]-e[0]}function HD(t,e){var r=t||{},i=[];return r._extents=i,i[_t]=e?e.slice():Yt(),I(r,GD),r}var GD={needTransform:function(){return!1},normalize:function(t){var e=this._extents[lp]||this._extents[_t];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[lp]||this._extents[_t];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=rl(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[_t].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){lx(this._extents,_t,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[_t].slice()),lx(i,t,e,r)},freeze:function(){}};function lx(t,e,r,i){_r(r,i)&&(t[e][0]=r,t[e][1]=i)}function mz(t){return YD(t)||cp(t)}function YD(t){return t.type==="interval"}function gz(t){return t.type==="time"}function cp(t){return t.type==="log"}function ti(t){return t.type==="ordinal"}function _z(t){var e=ys(t),r=Br(10,e),i=Gt(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,it(i*r,-e)}function il(t){return Vt(t)+2}function go(t,e){return bn(t)/bn(e)}function nl(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return Br(e,t)}function yz(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=ze(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!zr(i[0])||!zr(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function px(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function vx(t,e){return t=t||e,Gt(ye(t,1))}function al(t,e,r){var i=Dr(t),n=i[0],a=t.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]&&u(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)u(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&u(i[1],!0,!0);function u(l,f,c){r({value:l,offInterval:f},c)}}var dx=(function(t){Ae(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,el(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new up({})),N(n)&&(n=new up({categories:L(n,function(o){return U(o)?o.value:o})})),i._ordinalMeta=n;var a=Qn(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,tl(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:F(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Gt(r),r},e.prototype.getTicks=function(){var r=[];return al(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Ht(s,i.length);o<u;++o){var l=n[o]=i[o];a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var r=Dr(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Gt(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(ot);ot.registerClass(dx);var mx=dx;function $n(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var u=n[s],l=n[s-1];if(!(l.break||u.break)){for(var f=0,c=[],p=u.value-l.value,h=p/e,v=il(h);f<e-1;){var g=it(l.value+(f+1)*h,v);g>o[0]&&g<o[1]&&c.push(g),f++}var d=Ce();d&&d.pruneTicksByBreak("auto",c,r,function(m){return m},i,o),a.push(c)}}return a}var gx=(function(t){Ae(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=ru(i,r),a=Qn(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(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return q(this._cfg)},e.prototype.setConfig=function(r){var i=Dr(this);this._cfg=r=q(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=il(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=Dr(this),o=i.niceExtent,s=i.intervalPrecision,u=Ce(),l=this.brk,f=u&&l,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&f)return u.addBreaksToTicks(c,l.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?it(o[0]-n,s):a[0]});for(var h=function(y,x){return Gt((x-y)/n)},v=i.intervalCount,g=o[0],d=0;;d++){if(v==null){if(g>o[1]||!isFinite(g)||!isFinite(o[1]))break}else{if(d>v)break;g=Ht(g,o[1]),d===v&&(g=o[1])}if(c.push({value:g}),g=it(g+n,s),l){var m=l.calcNiceTickMultiple(g,h);m>=0&&(g=it(g+m*n,s))}if(c.length>0&&g===c[c.length-1].value)break;if(c.length>p)return[]}var _=c.length?c[c.length-1].value:o[1];return a[1]>_&&c.push({value:r.expandToNicedExtent?it(_+n,s):a[1]}),f&&u.pruneTicksByBreak(r.pruneByBreak,c,l.breaks,function(y){return y.value},i.interval,a),f&&r.breakTicks!=="none"&&u.addBreaksToTicks(c,l.breaks,a),c},e.prototype.getMinorTicks=function(r){return $n(this,r,Ui(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=Vt(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=it(r.value,n,!0);return lh(a)},e.type="interval",e})(ot);ot.registerClass(gx);var Qi=gx;var WD=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},yx=(function(t){Ae(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=ru(i,r),a=Qn(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return Ka(r.value,eh[d_(kn(this._minLevelUnit))]||eh.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return m_(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=Dr(this),a=Ce(),o=this.brk,s=a&&o,u=[];if(!i)return u;var l=this._useUTC;if(s&&r.breakTicks==="only_break")return Ce().addBreaksToTicks(u,o.breaks,n),u;u=$D(this._minLevelUnit,this._approxInterval,l,n,fp(this),o);var f=mt.length-1,c=0;return b(u,function(p){p.time&&(f=Math.min(f,re(mt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ce().pruneTicksByBreak(r.pruneByBreak,u,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&Ce().addBreaksToTicks(u,o.breaks,n,function(p){for(var h=Math.max(re(mt,Bi(p.vmin,l)),re(mt,Bi(p.vmax,l))),v=0,g=0;g<mt.length;g++)if(!xx(mt[g],p.vmin,p.vmax,l)){v=g;break}var d=Math.min(v,f),m=Math.max(d,h);return{level:c,lowerTimeUnit:mt[m],upperTimeUnit:mt[d]}}),u},e.prototype.getMinorTicks=function(r){return $n(this,r,Ui(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return J(r)?Math.round(r):+Jt(r)},e.type="time",e})(ot),ol=[["second",au],["minute",ou],["hour",Pn],["quarter-day",Pn*6],["half-day",Pn*12],["day",Et*1.2],["half-week",Et*3.5],["week",Et*7],["month",Et*31],["quarter",Et*95],["half-year",Jc/2],["year",Jc]];function xx(t,e,r,i){return su(new Date(e),t,i).getTime()===su(new Date(r),t,i).getTime()}function XD(t,e){return t/=Et,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function qD(t){var e=30*Et;return t/=e,t>6?6:t>3?3:t>2?2:1}function KD(t){return t/=Pn,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function _x(t,e){return t/=e?ou:au,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function ZD(t){return ye(If(t,!0),1)}function jD(t,e,r){var i=Math.max(0,re(mt,e)-1);return su(new Date(t),mt[i],r).getTime()}function QD(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function $D(t,e,r,i,n,a){var o=3e3,s=h_,u=0;function l(k,H,$,oe,ee,Q,ae){for(var fe=QD(ee,k),j=H,ue=new Date(j);j<$&&j<=i[1]&&(ae.push({value:j}),!(u++>o));)if(ue[ee](ue[oe]()+k),j=ue.getTime(),a){var de=a.calcNiceTickMultiple(j,fe);de>0&&(ue[ee](ue[oe]()+de*k),j=ue.getTime())}ae.push({value:j,notAdd:j>i[1]})}function f(k,H,$){var oe=[],ee=!H.length;if(!xx(kn(k),i[0],i[1],r)){ee&&(H=[{value:jD(i[0],k,r)},{value:i[1]}]);for(var Q=0;Q<H.length-1;Q++){var ae=H[Q].value,fe=H[Q+1].value;if(ae!==fe){var j=void 0,ue=void 0,de=void 0,tt=!1;switch(k){case"year":j=Math.max(1,Math.round(e/Et/365)),ue=th(r),de=g_(r);break;case"half-year":case"quarter":case"month":j=qD(e),ue=uu(r),de=rh(r);break;case"week":case"half-week":case"day":j=XD(e,31),ue=lu(r),de=ih(r),tt=!0;break;case"half-day":case"quarter-day":case"hour":j=KD(e),ue=fu(r),de=nh(r);break;case"minute":j=_x(e,!0),ue=cu(r),de=ah(r);break;case"second":j=_x(e,!1),ue=hu(r),de=oh(r);break;case"millisecond":j=ZD(e),ue=pu(r),de=sh(r);break}fe>=i[0]&&ae<=i[1]&&l(j,ae,fe,ue,de,tt,oe),k==="year"&&$.length>1&&Q===0&&$.unshift({value:$[0].value-j})}}for(var Q=0;Q<oe.length;Q++)$.push(oe[Q])}}for(var c=[],p=[],h=0,v=0,g=0;g<s.length;++g){var d=kn(s[g]);if(v_(s[g])){f(s[g],c[c.length-1]||[],p);var m=s[g+1]?kn(s[g+1]):null;if(d!==m){if(p.length){v=h,p.sort(function(k,H){return k.value-H.value});for(var _=[],y=0;y<p.length;++y){var x=p[y].value;(y===0||p[y-1].value!==x)&&(_.push(p[y]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&v>S/1.5||(c.push(_),h>S||t===s[g]))break}p=[]}}}for(var T=Be(L(c,function(k){return Be(k,function(H){return H.value>=i[0]&&H.value<=i[1]&&!H.notAdd})}),function(k){return k.length>0}),C=T.length-1,E=[],g=0;g<T.length;++g)for(var M=T[g],D=0;D<M.length;++D){var w=Bi(M[D].value,r);E.push({value:M[D].value,time:{level:C-g,upperTimeUnit:w,lowerTimeUnit:w}})}bs(E,Yd,null),E.sort(function(k,H){return k.value-H.value});var R=E[0],O=E[E.length-1],A=Bi(i[0],r),V=Bi(i[1],r);return(!R||R.value>i[0])&&E.unshift({value:i[0],time:{level:0,upperTimeUnit:A,lowerTimeUnit:A},notNice:!0}),(!O||O.value<i[1])&&E.push({value:i[1],time:{level:0,upperTimeUnit:V,lowerTimeUnit:V},notNice:!0}),E}var eV=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Et,r[1]+=Et),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Et}t.setExtent(r[0],r[1]);var n=vx(e.splitNumber,10),a=fp(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var u=ol.length,l=Math.min(WD(ol,a,0,u),u-1),f=ol[l][1],c=ol[Math.max(l-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};ot.registerClass(yx);var Sx=yx;var sl=0,ul=1,JD=2,Cx=(function(t){Ae(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=Qi.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[sl]=n[ul]=a[sl]=a[ul]=NaN,el(i,e.mapperMethods);var s=Ce(),u=r.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(u,i,{noNegative:!0},JD,l),i.powStub=new Qi({breakParsed:l.original}),i.intervalStub=new Qi({breakParsed:l.transformed}),tl(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Ce(),o=this.intervalStub,s=o.getExtent(),u=n.getExtent(),l={lookup:{from:s,to:u}};return L(o.getTicks(r||{}),function(f){var c=f.value,p=nl(c,i,l),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,Ui(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return $n(this,r,Ui(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(go(r,this.base))},scale:function(r){return nl(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=go(r,this.base),i&&i.depth===jn?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return Tx.depth=n,bx.lookup=this._lookup,nl(n===jn?r:this.intervalStub.transformOut(r,Tx),this.base,bx)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(_t,r,i)},setExtent2:function(r,i,n){if(!(!_r(i,n)||i<=0||n<=0)){var a=Ex,o=Ex;if(r===_t){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[sl]=i,a[ul]=n);var u=this.base;this.intervalStub.setExtent2(r,o[sl]=go(i,u),o[ul]=go(n,u))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return _r(i[0],i[1])&&gr(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(ot);ot.registerClass(Cx);var Tx={},bx={},Ex=[],Dx=Cx;var Mx={value:1,category:1,time:1,log:1};var Ix=ie();function CV(t){var e=t.get("type");return(e==null||!Re(Mx,e)&&!ot.getClass(e))&&(e="value"),e}function DV(t,e,r){var i=Ce(),n;switch(i&&(n=rM(t,e,r)),e){case"category":return new mx({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Yt()});case"time":return new Sx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new Dx({logBase:t.get("logBase"),breakOption:n});case"value":return new Qi({breakOption:n});default:return new(ot.getClass(e)||Qi)({})}}function MV(t,e,r){var i=r?rl(t,null):t.getExtentUnsafe(_t,null),n=i[0],a=i[1];return _r(n,a)?n===e||a===e?tM:n<e&&a>e?eM:Ox:Ox}var eM=1,tM=2,Ox=3;function OV(t){Ix(t).noOnMyZero=!0}function AV(t){return Ix(t).noOnMyZero}function _o(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=p_(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else{if(F(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(W(e)){if(t.type==="category")return function(n,a){return e(Ax(t,n),n.value-t.scale.getExtent()[0],null)};var i=Ce();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(Ax(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}}function Ax(t,e){var r=t.scale;return ti(r)?r.getLabel(e):e.value}function ll(t){var e=t.get("interval");return e??"auto"}function IV(t){return t.type==="category"&&ll(t.getLabelModel())===0}function RV(t,e){var r={};return b(t.mapDimensionsAll(e),function(i){r[sx(t,i)]=!0}),Y(r)}function LV(t){return t==="middle"||t==="center"}function NV(t){return t.getShallow("show")}function rM(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!Ce())return;if(!r||!iM(e)){if(0)var n;return}return i}}function iM(t){return t!=="category"}function PV(t,e,r,i,n,a){var o=cp(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var u=t.powStub,l={depth:jn},f=t.transformOut(i[0],l),c=t.transformOut(i[1],l),p=px(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),u.setExtent(f,c)}s.setConfig(a)}function Rx(t,e){return ti(t)?t.getRawOrdinalNumber(e.value):e.value}function kV(t,e){return ti(t)&&!!e.get("boundaryGap")}var nM=Gd(),Lx="|&",Jn=ie(),Nx=-2,HV=-1,aM=ie();function Px(t,e){var r=t.model,i=Jn(Xi(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function kx(t,e){return Bx(Px(t,e))}function Fx(t,e){var r=[];return Ux(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(Bx(i))}),r}function Ux(t,e){var r=Jn(Xi(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function Bx(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function GV(t,e){var r=t.model.ecModel,i=Jn(Xi(r)).axSer;i&&zx(r,i.get(t.model.uid),e)}function YV(t,e,r){var i=Px(t,e);i&&zx(t.model.ecModel,i.sers,r)}function zx(t,e,r){if(e)for(var i=0;i<e.length;i++){var n=e[i];t.isSeriesFiltered(n)||r(n)}}function WV(t,e,r){var i=Jn(Xi(t)).keyed,n=i&&i.get(e);n&&n.each(function(a){r(a.axis)})}function XV(t,e){var r=t.model,i=Jn(Xi(r.ecModel)).keys;i&&b(i.get(r.uid),function(n){if(0)var a;e(n)})}function oM(t){var e=aM(i0(t)),r=e.keyed||(e.keyed=B());Ux(t,function(i,n,a){var o=r.get(n)||r.set(n,B()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&Vx.liPosMinGap(t,i,s)})}function qV(t,e){Vx[t]=e}var Vx={};function KV(t,e,r){if(t){var i=e.ecModel,n=Jn(Xi(i)),a=t.model.uid;if(0)var o,s;var u=n.axSer||(n.axSer=B()),l=u.get(a)||u.set(a,[]);if(0)var f;l.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=pp.get(hp(c,p,r))||pp.get(hp(c,p,null));if(h){var v=n.keyed||(n.keyed=B()),g=n.keys||(n.keys=B()),d=h.key,m=v.get(d)||v.set(d,B()),_=m.get(a);_||(_=m.set(a,{axis:t,sers:[],serByIdx:[]}),_.metrics=h.getMetrics(t),(g.get(a)||g.set(a,[])).push(d)),_.sers.push(e),_.serByIdx[e.seriesIndex]=e}}}function hp(t,e,r){return t+Lx+z(e,!0)+Lx+(r||"")}function ZV(t,e){var r=hp(e.seriesType,e.baseAxis,e.coordSysType);pp.set(r,e),nM(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:oM})})}var pp=B();var sM=ie(),yo=ie(),$i={estimate:1,determine:2};function cl(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Hx(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:L(Yx(r,i),function(n,a){return{formattedLabel:_o(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?uM(t,e):fM(t)}function Gx(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:Yx(n,i)}:t.type==="category"?lM(t,e):{ticks:i.getTicks(r)}}function Yx(t,e){var r=e.getExtent(),i=[];return b(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),bs(i,Wd,null),_s(i),L(i,function(n){return{value:n}})}function uM(t,e){var r=t.getLabelModel(),i=Wx(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function Wx(t,e,r){var i=hM(t),n=ll(e),a=r.kind===$i.estimate;if(!a){var o=qx(i,n);if(o)return o}var s,u;W(n)?s=fl(t,n,!1):(u=n==="auto"?pM(t,r):n,s=fl(t,u,!1));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return vp(i,n,l),!0}):vp(i,n,l),l}function lM(t,e){var r=cM(t),i=ll(e),n=qx(r,i);if(n)return n;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),W(i))a=fl(t,i,!0);else if(i==="auto"){var s=Wx(t,t.getLabelModel(),cl($i.determine));o=s.labelCategoryInterval,a=L(s.labels,function(u){return u.tick})}else o=i,a=fl(t,o,!0);return vp(r,i,{ticks:a,tickCategoryInterval:o})}function fM(t){var e=t.scale.getTicks(),r=_o(t);return{labels:L(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var cM=Xx("axisTick"),hM=Xx("axisLabel");function Xx(t){return function(r){return yo(r)[t]||(yo(r)[t]={list:[]})}}function qx(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function vp(t,e,r){return t.list.push({key:e,value:r}),r}function pM(t,e){if(e.kind===$i.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return yo(t).autoInterval=r,!0}),r}var i=yo(t).autoInterval;return i??(yo(t).autoInterval=t.calculateCategoryInterval(e))}function Kx(t,e){var r=e.kind,i=dM(t),n=_o(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,f=40;u>f&&(l=Math.max(1,Math.floor(u/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),g=0,d=0;c<=s[1];c+=l){var m=0,_=0,y=_d(n({value:c}),i.font,"center","top");m=y.width*1.3,_=y.height*1.3,g=Math.max(g,m,7),d=Math.max(d,_,7)}var x=g/h,S=d/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var T=Math.max(0,Math.floor(Math.min(x,S)));if(r===$i.estimate)return e.out.noPxChangeTryDetermine.push(me(vM,null,t,T,u)),T;var C=Zx(t,T,u);return C??T}function vM(t,e,r){return Zx(t,e,r)==null}function Zx(t,e,r){var i=sM(t.model),n=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function dM(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function fl(t,e,r){var i=_o(t),n=t.scale,a=[],o=W(e);return al(n,o?0:e,function(s,u){var l=n.getLabel(s);if(o){var f=!!e(s.value,l);if(s.offInterval=!f,!f&&!u)return}a.push(r?s:{formattedLabel:i(s),rawLabel:l,tick:s})}),a}var mM=.8;function dp(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=hx(i);gr(o)||(o=NaN);var s=t.getExtent(),u=ze(s[1]-s[0]);return ti(i)?gM(r,t,o,u):n?_M(r,t,o,u,n):a==null,a!=null&&(r.w=gr(r.w)?ye(a,r.w):a),r}function gM(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function _M(t,e,r,i,n){var a=!1,o=-1/0;b(n.key?[kx(e,n.key)]:Fx(e,n.sers||[]),function(s){var u=s.liPosMinGap;u!=null&&(u>0?(u>o&&(o=u),a=!1):u===Nx&&(a=!0))}),gr(r)&&r>0&&gr(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*mM,t.w2=t.w*r/i)}var jx=[0,1],yM=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=i&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),Af(e,jx,Qx(this),r)},t.prototype.coordToData=function(e,r){var i=Af(e,Qx(this),jx,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=Gx(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=L(i.ticks,function(s){return{coord:this.dataToCoord(Rx(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=xM(this,n,a);return L(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(ti(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=L(i,function(a){return L(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||cl($i.determine),Hx(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return dp(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||cl($i.determine),Kx(this,e)},t})();function Qx(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function xM(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=dp(t).w;if(!n)return!1;b(e,function(s){s.coord-=n/2});var a=t.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 d5=yM;var mp=Math.sin,gp=Math.cos,$x=Math.PI,Ji=Math.PI*2,SM=180/$x,TM=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){this._add("C",e,r,i,n,a,o)},t.prototype.quadraticCurveTo=function(e,r,i,n){this._add("Q",e,r,i,n)},t.prototype.arc=function(e,r,i,n,a,o){this.ellipse(e,r,i,i,0,n,a,o)},t.prototype.ellipse=function(e,r,i,n,a,o,s,u){var l=s-o,f=!u,c=Math.abs(l),p=Qt(c-Ji)||(f?l>=Ji:-l>=Ji),h=l>0?l%Ji:l%Ji+Ji,v=!1;p?v=!0:Qt(c)?v=!1:v=h>=$x==!!f;var g=e+i*gp(o),d=r+n*mp(o);this._start&&this._add("M",g,d);var m=Math.round(a*SM);if(p){var _=1/this._p,y=(f?1:-1)*(Ji-_);this._add("A",i,n,m,1,+f,e+i*gp(o+y),r+n*mp(o+y)),_>.01&&this._add("A",i,n,m,0,+f,g,d)}else{var x=e+i*gp(s),S=r+n*mp(s);this._add("A",i,n,m,+v,+f,x,S)}},t.prototype.rect=function(e,r,i,n){this._add("M",e,r),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,i,n,a,o,s,u,l){for(var f=[],c=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),hl=TM;var xo="none",bM=Math.round;function wM(t){var e=t.fill;return e!=null&&e!==xo}function EM(t){var e=t.stroke;return e!=null&&e!==xo}var _p=["lineCap","miterLimit","lineJoin"],CM=L(_p,function(t){return"stroke-"+t.toLowerCase()});function yp(t,e,r,i){var n=e.opacity==null?1:e.opacity;if(r instanceof ht){t("opacity",n);return}if(wM(e)){var a=Fr(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;(i||o<1)&&t("fill-opacity",o)}else t("fill",xo);if(EM(e)){var s=Fr(e.stroke);t("stroke",s.color);var u=e.strokeNoScale?r.getLineScale():1,l=u?(e.lineWidth||0)/u:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if((i||l!==1)&&t("stroke-width",l),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||f<1)&&t("stroke-opacity",f),e.lineDash){var p=lo(r),h=p[0],v=p[1];h&&(v=bM(v||0),t("stroke-dasharray",h.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",xo);for(var g=0;g<_p.length;g++){var d=_p[g];if(i||e[d]!==Mn[d]){var m=e[d]||Mn[d];m&&t(CM[g],m)}}}else i&&t("stroke",xo)}var Jx="http://www.w3.org/2000/svg",xp="http://www.w3.org/1999/xlink",eS="http://www.w3.org/2000/xmlns/",tS="http://www.w3.org/XML/1998/namespace",Sp="ecmeta_";function pl(t){return document.createElementNS(Jx,t)}function Te(t,e,r,i,n){return{tag:t,attrs:r||{},children:i,text:n,key:e}}function DM(t,e){var r=[];if(e)for(var i in e){var n=e[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+='="'+n+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function MM(t){return"</"+t+">"}function So(t,e){e=e||{};var r=e.newline?`
15
+ `:"";function i(n){var a=n.children,o=n.tag,s=n.attrs,u=n.text;return DM(o,s)+(o!=="style"?Ye(u):u||"")+(a?""+r+L(a,function(l){return i(l)}).join(r)+r:"")+MM(o)}return i(t)}function rS(t,e,r){r=r||{};var i=r.newline?`
16
+ `:"",n=" {"+i,a=i+"}",o=L(Y(t),function(u){return u+n+L(Y(t[u]),function(l){return l+":"+t[u][l]+";"}).join(i)+a}).join(i),s=L(Y(e),function(u){return"@keyframes "+u+n+L(Y(e[u]),function(l){return l+n+L(Y(e[u][l]),function(f){var c=e[u][l][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 To(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Tp(t,e,r,i){return Te("svg","root",{width:t,height:e,xmlns:Jx,"xmlns:xlink":xp,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+t+" "+e:!1},r)}var OM=0;function vl(){return OM++}var iS={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"},en="transform-origin";function AM(t,e,r){var i=I({},t.shape);I(i,e),t.buildPath(r,i);var n=new hl;return n.reset(ns(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function IM(t,e){var r=e.originX,i=e.originY;(r||i)&&(t[en]=r+"px "+i+"px")}var RM={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function aS(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function LM(t,e,r){var i=t.shape.paths,n={},a,o;if(b(i,function(u){var l=To(r.zrId);l.animation=!0,bo(u,{},l,!0);var f=l.cssAnims,c=l.cssNodes,p=Y(f),h=p.length;if(h){o=p[h-1];var v=f[o];for(var g in v){var d=v[g];n[g]=n[g]||{d:""},n[g].d+=d.d||""}for(var m in c){var _=c[m].animation;_.indexOf(o)>=0&&(a=_)}}}),!!a){e.d=!1;var s=aS(n,r);return a.replace(o,s)}}function nS(t){return F(t)?iS[t]?"cubic-bezier("+iS[t]+")":vn(t)?t:"":""}function bo(t,e,r,i){var n=t.animators,a=n.length,o=[];if(t instanceof Ys){var s=LM(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var u={},l=0;l<a;l++){var f=n[l],c=[f.getMaxTime()/1e3+"s"],p=nS(f.getClip().easing),h=f.getDelay();p?c.push(p):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var v=c.join(" ");u[v]=u[v]||[v,[]],u[v][1].push(f)}function g(_){var y=_[1],x=y.length,S={},T={},C={},E="animation-timing-function";function M(st,Ue,Oe){for(var X=st.getTracks(),te=st.getMaxTime(),Pt=0;Pt<X.length;Pt++){var ke=X[Pt];if(ke.needsAnimate()){var ta=ke.keyframes,ii=ke.propName;if(Oe&&(ii=Oe(ii)),ii)for(var Cl=0;Cl<ta.length;Cl++){var Mo=ta[Cl],Oo=Math.round(Mo.time/te*100)+"%",Wp=nS(Mo.easing),Xp=Mo.rawValue;(F(Xp)||J(Xp))&&(Ue[Oo]=Ue[Oo]||{},Ue[Oo][ii]=Mo.rawValue,Wp&&(Ue[Oo][E]=Wp))}}}}for(var D=0;D<x;D++){var w=y[D],R=w.targetName;R?R==="shape"&&M(w,T):!i&&M(w,S)}for(var O in S){var A={};wa(A,t),I(A,S[O]);var V=as(A),k=S[O][E];C[O]=V?{transform:V}:{},IM(C[O],A),k&&(C[O][E]=k)}var H,$=!0;for(var O in T){C[O]=C[O]||{};var oe=!H,k=T[O][E];oe&&(H=new Tt);var ee=H.len();H.reset(),C[O].d=AM(t,T[O],H);var Q=H.len();if(!oe&&ee!==Q){$=!1;break}k&&(C[O][E]=k)}if(!$)for(var O in C)delete C[O].d;if(!i)for(var D=0;D<x;D++){var w=y[D],R=w.targetName;R==="style"&&M(w,C,function(X){return RM[X]})}for(var ae=Y(C),fe=!0,j,D=1;D<ae.length;D++){var ue=ae[D-1],de=ae[D];if(C[ue][en]!==C[de][en]){fe=!1;break}j=C[ue][en]}if(fe&&j){for(var O in C)C[O][en]&&delete C[O][en];e[en]=j}if(Be(ae,function(st){return Y(C[st]).length>0}).length){var tt=aS(C,r);return tt+" "+_[0]+" both"}}for(var d in u){var s=g(u[d]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+vl();r.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function sS(t,e,r){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};oS(i,e,r,!0)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=n.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,u=t.currentStates.indexOf("select")>=0&&s||o;u&&(a=va(u))}var l=n.lineWidth;if(l){var f=!n.strokeNoScale&&t.transform?t.transform[0]:1;l=l/f}var i={cursor:"pointer"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),l&&(i["stroke-width"]=l),oS(i,e,r,!0)}}function oS(t,e,r,i){var n=JSON.stringify(t),a=r.cssStyleCache[n];a||(a=r.zrId+"-cls-"+vl(),r.cssStyleCache[n]=a,r.cssNodes["."+a+(i?":hover":"")]=t),e.class=e.class?e.class+" "+a:a}var wo=Math.round;function cS(t){return t&&F(t.src)}function hS(t){return t&&W(t.toDataURL)}function bp(t,e,r,i){yp(function(n,a){var o=n==="fill"||n==="stroke";o&&is(a)?Dp(e,t,n,i):o&&da(a)?Mp(r,t,n,i):t[n]=a,o&&i.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),zM(r,t,i)}function wp(t,e){var r=Cd(e);r&&(r.each(function(i,n){i!=null&&(t[(Sp+n).toLowerCase()]=i+"")}),e.isSilent()&&(t[Sp+"silent"]="true"))}function uS(t){return Qt(t[0]-1)&&Qt(t[1])&&Qt(t[2])&&Qt(t[3]-1)}function NM(t){return Qt(t[4])&&Qt(t[5])}function Ep(t,e,r){if(e&&!(NM(e)&&uS(e))){var i=r?10:1e4;t.transform=uS(e)?"translate("+wo(e[4]*i)/i+" "+wo(e[5]*i)/i+")":Zv(e)}}function lS(t,e,r){for(var i=t.points,n=[],a=0;a<i.length;a++)n.push(wo(i[a][0]*r)/r),n.push(wo(i[a][1]*r)/r);e.points=n.join(" ")}function fS(t){return!t.smooth}function PM(t){var e=L(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(i[o[1]]=wo(s*n)/n)}}}var kM={circle:[PM(["cx","cy","r"])],polyline:[lS,fS],polygon:[lS,fS]};function FM(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function pS(t,e){var r=t.style,i=t.shape,n=kM[t.type],a={},o=e.animation,s="path",u=t.style.strokePercent,l=e.compress&&ns(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&FM(t))&&!(u<1)){s=t.type;var f=Math.pow(10,l);n[0](i,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;c&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var h=p.getVersion(),v=t,g=v.__svgPathBuilder;(v.__svgPathVersion!==h||!g||u!==v.__svgPathStrokePercent)&&(g||(g=v.__svgPathBuilder=new hl),g.reset(l),p.rebuildPath(g,u),g.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=u),a.d=g.getStr()}return Ep(a,t.transform),bp(a,r,t,e),wp(a,t),e.animation&&bo(t,a,e),e.emphasis&&sS(t,a,e),Te(s,t.id+"",a)}function UM(t,e){var r=t.style,i=r.image;if(i&&!F(i)&&(cS(i)?i=i.src:hS(i)&&(i=i.toDataURL())),!!i){var n=r.x||0,a=r.y||0,o=r.width,s=r.height,u={href:i,width:o,height:s};return n&&(u.x=n),a&&(u.y=a),Ep(u,t.transform),bp(u,r,t,e),wp(u,t),e.animation&&bo(t,u,e),Te("image",t.id+"",u)}}function BM(t,e){var r=t.style,i=r.text;if(i!=null&&(i+=""),!(!i||isNaN(r.x)||isNaN(r.y))){var n=r.font||ut,a=r.x||0,o=Qv(r.y||0,xi(n),r.textBaseline),s=jv[r.textAlign]||r.textAlign,u={"dominant-baseline":"central","text-anchor":s};if(oc(r)){var l="",f=r.fontStyle,c=ac(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||Ml,h=r.fontWeight;l+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal"&&(l+="font-style:"+f+";"),h&&h!=="normal"&&(l+="font-weight:"+h+";"),u.style=l}else u.style="font: "+n;return i.match(/\s/)&&(u["xml:space"]="preserve"),a&&(u.x=a),o&&(u.y=o),Ep(u,t.transform),bp(u,r,t,e),wp(u,t),e.animation&&bo(t,u,e),Te("text",t.id+"",u,void 0,i)}}function Cp(t,e){if(t instanceof Z)return pS(t,e);if(t instanceof ht)return UM(t,e);if(t instanceof Ri)return BM(t,e)}function zM(t,e,r){var i=t.style;if($v(i)){var n=Jv(t),a=r.shadowCache,o=a[n];if(!o){var s=t.getGlobalScale(),u=s[0],l=s[1];if(!u||!l)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,h=Fr(i.shadowColor),v=h.opacity,g=h.color,d=p/2/u,m=p/2/l,_=d+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Te("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Te("feDropShadow","",{dx:f/u,dy:c/l,stdDeviation:_,"flood-color":g,"flood-opacity":v})]),a[n]=o}e.filter=ma(o)}}function Dp(t,e,r,i){var n=t[r],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(ts(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(rs(n))a="radialGradient",o.cx=z(n.x,.5),o.cy=z(n.y,.5),o.r=z(n.r,.5);else return;for(var s=n.colorStops,u=[],l=0,f=s.length;l<f;++l){var c=es(s[l].offset)*100+"%",p=s[l].color,h=Fr(p),v=h.color,g=h.opacity,d={offset:c};d["stop-color"]=v,g<1&&(d["stop-opacity"]=g),u.push(Te("stop",l+"",d))}var m=Te(a,"",o,u),_=So(m),y=i.gradientCache,x=y[_];x||(x=i.zrId+"-g"+i.gradientIdx++,y[_]=x,o.id=x,i.defs[x]=Te(a,x,o,u)),e[r]=ma(x)}function Mp(t,e,r,i){var n=t.style[r],a=t.getBoundingRect(),o={},s=n.repeat,u=s==="no-repeat",l=s==="repeat-x",f=s==="repeat-y",c;if(of(n)){var p=n.imageWidth,h=n.imageHeight,v=void 0,g=n.image;if(F(g)?v=g:cS(g)?v=g.src:hS(g)&&(v=g.toDataURL()),typeof Image>"u"){var d="Image width/height must been given explictly in svg-ssr renderer.";_e(p,d),_e(h,d)}else if(p==null||h==null){var m=function(D,w){if(D){var R=D.elm,O=p||w.width,A=h||w.height;D.tag==="pattern"&&(l?(A=1,O/=a.width):f&&(O=1,A/=a.height)),D.attrs.width=O,D.attrs.height=A,R&&(R.setAttribute("width",O),R.setAttribute("height",A))}},_=Ma(v,null,t,function(D){u||m(T,D),m(c,D)});_&&_.width&&_.height&&(p=p||_.width,h=h||_.height)}c=Te("image","img",{href:v,width:p,height:h}),o.width=p,o.height=h}else n.svgElement&&(c=q(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var y,x;u?y=x=1:l?(x=1,y=o.width/a.width):f?(y=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",y!=null&&!isNaN(y)&&(o.width=y),x!=null&&!isNaN(x)&&(o.height=x);var S=as(n);S&&(o.patternTransform=S);var T=Te("pattern","",o,[c]),C=So(T),E=i.patternCache,M=E[C];M||(M=i.zrId+"-p"+i.patternIdx++,E[C]=M,o.id=M,T=i.defs[M]=Te("pattern",M,o,[c])),e[r]=ma(M)}}function vS(t,e,r){var i=r.clipPathCache,n=r.defs,a=i[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};i[t.id]=a,n[a]=Te("clipPath",a,o,[pS(t,r)])}e["clip-path"]=ma(a)}function Op(t){return document.createTextNode(t)}function ri(t,e,r){t.insertBefore(e,r)}function Ap(t,e){t.removeChild(e)}function Ip(t,e){t.appendChild(e)}function Rp(t){return t.parentNode}function Lp(t){return t.nextSibling}function dl(t,e){t.textContent=e}var dS=58,HM=120,GM=Te("","");function Np(t){return t===void 0}function fr(t){return t!==void 0}function YM(t,e,r){for(var i={},n=e;n<=r;++n){var a=t[n].key;a!==void 0&&(i[a]=n)}return i}function Eo(t,e){var r=t.key===e.key,i=t.tag===e.tag;return i&&r}function Co(t){var e,r=t.children,i=t.tag;if(fr(i)){var n=t.elm=pl(i);if(gl(GM,t),N(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&Ip(n,Co(a))}else fr(t.text)&&!U(t.text)&&Ip(n,Op(t.text))}else t.elm=Op(t.text);return t.elm}function mS(t,e,r,i,n){for(;i<=n;++i){var a=r[i];a!=null&&ri(t,Co(a),e)}}function ml(t,e,r,i){for(;r<=i;++r){var n=e[r];if(n!=null)if(fr(n.tag)){var a=Rp(n.elm);Ap(a,n.elm)}else Ap(t,n.elm)}}function gl(t,e){var r,i=e.elm,n=t&&t.attrs||{},a=e.attrs||{};if(n!==a){for(r in a){var o=a[r],s=n[r];s!==o&&(o===!0?i.setAttribute(r,""):o===!1?i.removeAttribute(r):r==="style"?i.style.cssText=o:r.charCodeAt(0)!==HM?i.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?i.setAttributeNS(eS,r,o):r.charCodeAt(3)===dS?i.setAttributeNS(tS,r,o):r.charCodeAt(5)===dS?i.setAttributeNS(xp,r,o):i.setAttribute(r,o))}for(r in n)r in a||i.removeAttribute(r)}}function WM(t,e,r){for(var i=0,n=0,a=e.length-1,o=e[0],s=e[a],u=r.length-1,l=r[0],f=r[u],c,p,h,v;i<=a&&n<=u;)o==null?o=e[++i]:s==null?s=e[--a]:l==null?l=r[++n]:f==null?f=r[--u]:Eo(o,l)?(ea(o,l),o=e[++i],l=r[++n]):Eo(s,f)?(ea(s,f),s=e[--a],f=r[--u]):Eo(o,f)?(ea(o,f),ri(t,o.elm,Lp(s.elm)),o=e[++i],f=r[--u]):Eo(s,l)?(ea(s,l),ri(t,s.elm,o.elm),s=e[--a],l=r[++n]):(Np(c)&&(c=YM(e,i,a)),p=c[l.key],Np(p)?ri(t,Co(l),o.elm):(h=e[p],h.tag!==l.tag?ri(t,Co(l),o.elm):(ea(h,l),e[p]=void 0,ri(t,h.elm,o.elm))),l=r[++n]);(i<=a||n<=u)&&(i>a?(v=r[u+1]==null?null:r[u+1].elm,mS(t,v,r,n,u)):ml(t,e,i,a))}function ea(t,e){var r=e.elm=t.elm,i=t.children,n=e.children;t!==e&&(gl(t,e),Np(e.text)?fr(i)&&fr(n)?i!==n&&WM(r,i,n):fr(n)?(fr(t.text)&&dl(r,""),mS(r,null,n,0,n.length-1)):fr(i)?ml(r,i,0,i.length-1):fr(t.text)&&dl(r,""):t.text!==e.text&&(fr(i)&&ml(r,i,0,i.length-1),dl(r,e.text)))}function Pp(t,e){if(Eo(t,e))ea(t,e);else{var r=t.elm,i=Rp(r);Co(e),i!==null&&(ri(i,e.elm,Lp(r)),ml(i,[t],0,0))}return e}var XM=0,qM=(function(){function t(e,r,i){if(this.type="svg",this.configLayer=KM("configLayer"),this.storage=r,this._opts=i=I({},i),this.root=e,this._id="zr"+XM++,this._oldVNode=Tp(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=pl("svg");gl(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Pp(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Cp(e,To(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=To(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=ZM(i,n,this._backgroundColor,a);s&&o.push(s);var u=e.compress?null:this._mainVNode=Te("g","main",{},[]);this._paintList(r,a,u?u.children:o),u&&o.push(u);var l=L(Y(a.defs),function(p){return a.defs[p]});if(l.length&&o.push(Te("defs","defs",{},l)),e.animation){var f=rS(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Te("style","stl",{},[],f);o.push(c)}}return Tp(i,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},So(this.renderToVNode({animation:z(e.cssAnimation,!0),emphasis:z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:z(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,i){for(var n=e.length,a=[],o=0,s,u,l=0,f=0;f<n;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,v=u&&u.length||0,g=void 0;for(g=Math.max(h-1,v-1);g>=0&&!(p&&u&&p[g]===u[g]);g--);for(var d=v-1;d>g;d--)o--,s=a[o-1];for(var m=g+1;m<h;m++){var _={};vS(p[m],_,r);var y=Te("g","clip-g-"+l++,_,[]);(s?s.children:i).push(y),a[o++]=y,s=y}u=p;var x=Cp(c,r);x&&(s?s.children:i).push(x)}}},t.prototype.resize=function(e,r){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),r!=null&&(i.height=r),n&&a&&(a.style.display="none",e=Qr(n,0,i),r=Qr(n,1,i),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(da(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var u=this._bgVNode&&this._bgVNode.elm;u&&(u.setAttribute("width",e),u.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),i="data:image/svg+xml;";return e?(r=ed(r),r&&i+"base64,"+r):i+"charset=UTF-8,"+encodeURIComponent(r)},t})();function KM(t){return function(){}}function ZM(t,e,r,i){var n;if(r&&r!=="none")if(n=Te("rect","bg",{width:t,height:e,x:"0",y:"0"}),is(r))Dp({fill:r},n.attrs,"fill",i);else if(da(r))Mp({style:{fill:r},dirty:Le,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",i);else{var a=Fr(r),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}var gS=qM;function jM(t){t.registerPainter("svg",gS)}function _S(t,e,r){var i=be.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",t)),i.width=n*r,i.height=a*r,i}function _l(t){return!t.__cursors.get(Rc)}function yS(t){var e=t.__cursors.get(Rc);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var QM=(function(t){G(e,t);function e(r,i,n){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Ln,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||mi,typeof r=="string"?o=_S(r,i,n):U(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Po(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=yS(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 r=this.dpr;this.domBack=_S("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new K(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var S=new K(0,0,0,0);S.copy(x),o.push(S)}else{for(var T=!1,C=1/0,E=0,M=0;M<o.length;++M){var D=o[M];if(D.intersect(x)){var w=new K(0,0,0,0);w.copy(D),w.union(x),o[M]=w,T=!0;break}else if(u){l.copy(x),l.union(D);var R=x.width*x.height,O=D.width*D.height,A=l.width*l.height,V=A-R-O;V<C&&(C=V,E=M)}}if(u&&(o[E].union(x),T=!0),!T){var S=new K(0,0,0,0);S.copy(x),o.push(S)}u||(u=o.length>=s)}}for(var c=yS(this),p=c.startIdx;p<c.endIdx;++p){var h=r[p];if(h){var v=h.shouldBePainted(n,a,!0,!0),g=h.__isRendered&&(h.__dirty&we||!v)?h.getPrevPaintRect():null;g&&f(g);var d=v&&(h.__dirty&we||!h.__isRendered)?h.getPaintRect():null;d&&f(d)}}for(var m=this.__prevIdx,p=m.startIdx;p<m.endIdx;++p){var h=i[p],v=h&&h.shouldBePainted(n,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var g=h.getPrevPaintRect();g&&f(g)}}var _;do{_=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var y=p+1;y<o.length;)o[p].intersect(o[y])?(_=!0,o[p].union(o[y]),o.splice(y,1)):y++;p++}}while(_);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,u=a.height;i=i||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,p=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,u/c));var h=this.domBack;function v(g,d,m,_){if(o.clearRect(g,d,m,_),i&&i!=="transparent"){var y=void 0;if(Or(i)){var x=i.global||i.__width===m&&i.__height===_;y=x&&i.__canvasGradient||uo(o,i,{x:0,y:0,width:m,height:_}),i.__canvasGradient=y,i.__width=m,i.__height=_}else ev(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,y=Vu(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=y||i,o.fillRect(g,d,m,_),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(h,g,d,m,_),o.restore())}!n||l?v(0,0,s,u):n.length&&b(n,function(g){v(g.x*c,g.y*c,g.width*c,g.height*c)})},e})(Ge),kp=QM;var xS=1e5,tn=314159,Fp=void 0,$M=1,Up=2;function JM(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function eO(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function SS(t,e,r,i){var n=new kp(t,e,e.dpr);return n.zlevel=r,n.zlevel2=i,n.__builtin__=!0,TS(n),n}function TS(t){t.__cursorStack=[],t.__cursors=B()}function tO(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function rO(t,e){var r=t.__cursors,i=+e;return r.get(i)||(t.__cursorStack.push(i),r.set(i,tO({key:i})))}function yl(t,e){for(var r=t.__cursorStack,i=0;i<r.length;i++)e(t.__cursors.get(r[i]))}function Bp(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function et(t,e,r){for(var i=t.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=t.layers[a][o];(!r||(!(r&Do)||s.__builtin__)&&(!(r&zp)||!s.__builtin__)&&(!(r&bS)||s!==t.hoverlayer))&&e(s,a,o,n)}}var Do=1,zp=2,bS=4,xl=Do|bS,iO=(function(){function t(e,r,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=I({},i||{}),this.dpr=i.devicePixelRatio||mi,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(Po(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var u=e,l=u.width,f=u.height;i.width!=null&&(l=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,u.width=l*this.dpr,u.height=f*this.dpr,this._width=l,this._height=f;var c=SS(u,this,tn,Ln);c.initContext(),this._insertLayer(c,tn,Ln,!0),this._domRoot=e}else{this._width=Qr(e,0,i),this._height=Qr(e,1,i);var s=this._domRoot=eO(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!U(e)?r={paintAll:!!e}:r=e||{};var i=z(r.refresh,!0),n=z(r.refreshHover,!1);if(n&&(this._hoverLayerDirty=Up),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return et(this._i,function(u,l,f,c){u.refresh&&u.refresh(c===0?s:null)},zp),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=Fp,i!==Fp&&(!r&&i===Up&&(r=this._i.hoverlayer=this._ensureLayer(xS)),!!r)){r.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var u=e[o];if(u.__inHover){a||(a=r.ctx,a.save());var l=u.__hoverStyle,f=void 0;l&&(f=u.style,u.style=l),$r(a,u,n),l&&(u.style=f)}}a&&(Ki(a,n),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(xS)},t.prototype.paintOne=function(e,r){Hu(e,r)},t.prototype._paintList=function(e,r,i){if(this._redrawId===i){var n=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),n)et(this._i,function(o){o.afterBrush&&o.afterBrush()},xl),this._paintHoverList(e);else{var a=this;ca(function(){a._paintList(e,r,i)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(tn).ctx,r=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,r,i),et(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,r,i)},Do)},t.prototype._doPaintList=function(e,r){var i=this,n=!0;return et(this._i,function(a){var o=!1;if(yl(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!_l(a)?a.createRepaintRects(e,r,i._width,i._height):null,u=i._i.layerStack[0],l=!0;if(a.__dirty){l=!1,a.__dirty=!1;var f=a.zlevel===u.zl&&a.zlevel2===u.zl2?i._backgroundColor:null;a.clear(!1,f,s)}yl(a,function(c){var p=i._paintPerCursor(a,c,e,s,l);n=n&&p})}},xl),ne.wxa&&et(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},t.prototype._paintPerCursor=function(e,r,i,n,a){var o=e.ctx;if(n)if(!n.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,u=0;u<n.length;++u){var l=n[u];o.save(),o.beginPath(),o.rect(l.x*s,l.y*s,l.width*s,l.height*s),o.clip(),this._paintPerCursorInRect(e,r,i,l,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,i,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,u=_l(e),l=u&&be.getTime(),f=r.drawIdx,c=r.notClearIdx,p=c>=0?Math.min(c,f):f;p<r.endIdx;p++){var h=i[p];if(!(p<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=Up),n!=null){var v=h.getPaintRect();v&&v.intersect(n)&&($r(s,h,o),h.setPrevPaintRect(v))}else $r(s,h,o);if(u){var g=be.getTime()-l;if(g>15){p++;break}}}}Ki(s,o),r.drawIdx=Math.max(p,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,i){r=r||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=tn,r=0);var a=Bp(this._i,e)[r];return a||(a=SS("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&le(a,this._layerConfig[e],!0),(i||n&&e!==tn)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,i,n){var a=this._i,o=a.layers,s=a.layerStack,u=this._domRoot,l=null;if(!(o[r]&&o[r][i])&&JM(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<i);)c++;if(c>0&&(l=Bp(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:i}),Bp(a,r)[i]=e,!n&&!e.virtual)if(l){var p=l.dom;p.nextSibling?u.insertBefore(e.dom,p.nextSibling):u.appendChild(e.dom)}else u.firstChild?u.insertBefore(e.dom,u.firstChild):u.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return et(this._i,function(i,n){e.call(r,i,n)})},t.prototype.eachBuiltinLayer=function(e,r){return et(this._i,function(i,n){e.call(r,i,n)},Do)},t.prototype.eachOtherLayer=function(e,r){return et(this._i,function(i,n){e.call(r,i,n)},zp)},t.prototype.getLayers=function(){var e={};return et(this._i,function(r,i,n){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){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}}et(i._i,function(d){d.__dirty=!1,yl(d,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},xl);for(var o,s=null,u=null,l=!1,f=0,c=e.length;f<c;f++){var a=e[f],p=a.zlevel,h=a.incremental,v=void 0;if(o!==p&&(o=p,l=!1),h?(l=!0,v=Lg):v=l?Rg:Ln,(!s||p!==s.zlevel||v!==s.zlevel2)&&(s=i._ensureLayer(p,v),u=null,!s.__builtin__)){rn("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!u||h!==u.key)&&(u=rO(s,h),!u.used))if(u.used=!0,!r&&u.first===a.id){var g=f-u.startIdx;u.startIdx=f,u.drawIdx+=g,u.endIdx+=g}else s.__dirty=!0,u.first=a.id,u.startIdx=u.drawIdx=f,u.endIdx=f+1;u.endIdxNew=f+1,a.__dirty&we&&!a.__inHover&&((!h||!a.notClear&&f<u.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&u.notClearIdx<0&&(u.notClearIdx=f))}et(i._i,function(d){for(var m=d.__cursorStack,_=d.__cursors,y=m.length-1;y>=0;y--){var x=_.get(m[y]);if(!x.used)d.__dirty=!0,_.removeKey(m[y]),m.splice(y,1);else{var S=x.endIdxNew;(_l(d)?S<x.drawIdx:S!==x.endIdx||!S||e[S-1].id!==x.last)&&(d.__dirty=!0),x.endIdx=x.endIdxNew,x.last=S?e[S-1].id:NaN}}d.__dirty&&(yl(d,function(T){T.drawIdx=T.startIdx}),i._hoverLayerDirty===Fp&&(i._hoverLayerDirty=$M))},xl)},t.prototype.clear=function(){return et(this._i,function(e){e.clear(),TS(e)},Do),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,et(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var i=this._layerConfig;i[e]?le(i[e],r,!0):i[e]=r,et(this._i,function(n,a){le(n,i[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,i=this._i.layers,n=r.length-1;n>=0;n--){var a=r[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(r.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;e!=null&&(n.width=e),r!=null&&(n.height=r),e=Qr(a,0,n),r=Qr(a,1,n),i.style.display="",(this._width!==e||r!==this._height)&&(i.style.width=e+"px",i.style.height=r+"px",et(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(tn).resize(e,r)}return this},t.prototype.clearLayer=function(e){b(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[tn][0].dom;var r=new kp("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var i=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;et(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),u=0,l=s.length;u<l;u++){var f=s[u];$r(i,f,o)}Ki(i,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})(),wS=iO;function nO(t){t.registerPainter("canvas",wS)}function ES(t){return Math.round(Math.min(24,Math.max(0,t)*.05))}var CS=480,Vp=32,aO=.55,DS=(t,e)=>String(t).length*e*aO,Hp=(t,e)=>t.reduce((r,i)=>Math.max(r,DS(i,e)),0),Gp=t=>Math.round(t*4/3);function MS(t,e,r,i=kt.textSize){let n=Math.max(0,Math.min(e.width,e.height))/2,a=u=>typeof u=="number"?u:/%$/.test(String(u))?parseFloat(String(u))/100*n:parseFloat(String(u))||0,o=a(t[0]);if(o<=0)return!0;let s=a(t[1])-o;return r.every(u=>DS(u,i)+6<=s)}var oO=120,Tl={x:80,y:120},sO=4;function OS(t,e,r=kt.textSize){if(t.length===0)return{rotate:0};let i=Math.max(0,e-Tl.x)/t.length;return Hp(t,r)<=i?{rotate:0}:{rotate:45,width:oO,overflow:"truncate"}}function AS(t,e,r,i,n,a=kt.textSize){let o=Math.max(0,r-Tl.x)/Math.max(1,t),s=Math.max(0,i-Tl.y)/Math.max(1,e);return o>=Hp(n,a)+2*sO&&s>=Gp(a)}function IS(t,e,r=kt.textSize){let i=Math.max(0,e-Tl.y)/Math.max(1,t),n=Gp(r);return i>=n?0:Math.ceil(n/Math.max(i,.1))-1}var wl=120,bl={x:80,y:60};function RS(t,{width:e,height:r,horizontal:i=!1,mode:n="auto",fontSize:a=kt.textSize}){let o=Math.max(1,t.length),s={width:wl,overflow:"truncate"},u=(p,h)=>Math.max(1,Math.ceil(h/Math.max(p,.1))),l=(p,h)=>({rotate:p,interval:h-1,every:h,...s});if(i){let p=Math.max(0,r-bl.y)/o;return l(0,n==="all"?1:u(p,a+1))}let f=Math.max(0,e-bl.x)/o,c=Yp(t,a);return n==="nth"?l(0,u(f,c+8)):c+8<=f?l(0,1):l(45,n==="all"?1:u(f,Gp(a)))}function Yp(t,e=kt.textSize){return Math.min(wl,Hp(t,e))}var Sl=Object.freeze({along:56,across:28,width:420,height:260});function LS(t,e,{width:r,height:i,horizontal:n=!1}){if(r<Sl.width||i<Sl.height)return!1;let a=Math.max(1,t);return(n?Math.max(0,i-bl.y)/a:Math.max(0,r-bl.x)/a)*Math.max(1,e)>=(n?Sl.across:Sl.along)}var El=(t,e)=>Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)));function ZH(t,e,{height:r=480,width:i=800,categoryNames:n,axisLabels:a,tooltipFormatter:o}={}){let s={categoryNames:n,axisLabels:a},u=w=>Array.isArray(w)?w[0]:w,l=w=>e.getPropertyValue(w).trim(),f=typeof t.textStyle?.fontSize=="number"?t.textStyle.fontSize:kt.textSize;t.legend?.orient==="vertical"&&typeof t.legend.right=="number"&&i<CS&&(t={...t,legend:{...El(t.legend,["orient","right","top"]),bottom:0},series:(t.series||[]).map(w=>w.type==="pie"?{...El(w,["right"]),bottom:(typeof w.bottom=="number"?w.bottom:0)+Vp}:w),...t.grid?{grid:{...El(t.grid,["right"]),bottom:Vp+8}}:{}});let h=l("--pk-surface")||void 0,v=qp(l("--pk-radius-chart"))??kt.markRadius,g=Math.round(v*.75*100)/100,d={...t.tooltip,backgroundColor:l("--pk-surface-raised")||h,borderColor:l("--pk-border")||void 0,textStyle:{color:l("--pk-text")||void 0,fontFamily:e.getPropertyValue("font-family")||void 0,fontSize:f},extraCssText:`box-shadow: ${l("--pk-shadow")||"none"}; border-radius: ${l("--pk-radius-card")||`${kt.cardRadius}px`};`,...o?{formatter:o({valueFormatter:t.tooltip?.valueFormatter,xNames:u(t.xAxis)?.data,yNames:u(t.yAxis)?.data,categoryNames:s.categoryNames})}:{}},m=(t.series||[]).map(w=>{if(w.type==="bar"){let O=u(t.yAxis)?.type==="category"?[0,v,v,0]:[v,v,0,0];return{...w,barMaxWidth:48,itemStyle:{borderRadius:w.stack?0:O,borderColor:w.stack?h:void 0,borderWidth:w.stack?1:0},emphasis:{focus:"series"}}}if(w.type==="line")return{...w,lineStyle:{width:2},symbolSize:7,smooth:!!w.smooth,areaStyle:w.areaStyle?{opacity:.18}:void 0,emphasis:{focus:"series"}};if(w.type==="pie"){let R=ES(r),O=(typeof w.top=="number"?w.top:0)+R,A=(typeof w.bottom=="number"?w.bottom:0)+R,V=w.label,k=w.labelLine??{show:!0};if(V?.position==="inside"&&V.show!==!1&&Array.isArray(w.radius)){let H={width:i-(typeof w.right=="number"?w.right:0),height:r-O-A},$=(w.data||[]).reduce((ee,Q)=>ee+(typeof Q.value=="number"?Q.value:0),0),oe=typeof V.formatter=="function"?(w.data||[]).map(ee=>V.formatter({name:ee.name,value:ee.value,percent:$?ee.value/$*100:0})):[];MS(w.radius,H,oe,f)||(V=El(V,["position"]),k={show:!0})}return{...w,top:O,bottom:A,labelLine:k,itemStyle:{borderColor:h,borderWidth:2,borderRadius:v},label:{...V,color:V?.position==="inside"?void 0:l("--pk-text")||void 0}}}if(w.type==="heatmap"){let R=typeof w.label?.formatter=="function"?w.data.map(A=>w.label.formatter({value:A})):[],O=AS(t.xAxis?.data?.length??1,t.yAxis?.data?.length??1,i,r,R,f);return{...w,itemStyle:{borderColor:h,borderWidth:2,borderRadius:g},label:{...w.label,show:!!w.label?.show&&O,color:l("--pk-text")||void 0}}}return w}),_=t.legend?{...t.legend,icon:"roundRect",itemWidth:12,itemHeight:12,textStyle:{...t.legend.textStyle,color:l("--pk-text")||void 0}}:void 0,y=t.grid?{left:12,right:24,bottom:t.visualMap?64:12,containLabel:!0,...t.grid}:void 0,x=m.some(w=>w.type==="heatmap")&&t.xAxis?.axisLabel,S=x?{...t.xAxis,axisLabel:{...t.xAxis.axisLabel,...OS(t.xAxis.data??[],i,f)}}:t.xAxis,T=x&&t.yAxis?{...t.yAxis,axisLabel:{...t.yAxis.axisLabel,interval:IS(t.yAxis.data?.length??0,r,f)}}:t.yAxis,C=t.title?{title:{...t.title,textStyle:{...t.title.textStyle,width:Math.max(40,i-32),overflow:"truncate"}}}:{},E={xAxis:S,yAxis:T},M=1,D=!x&&m.some(w=>w.type==="bar"||w.type==="line")?u(t.yAxis)?.type==="category"?"yAxis":u(t.xAxis)?.type==="category"?"xAxis":null:null;if(D){let w=Array.isArray(E[D])?E[D]:[E[D]],R=w[1]?.groups?w[1]:null;R&&R.groupsAuto&&!LS(w[0].data?.length??0,R.groupSize??1,{width:i,height:r,horizontal:D==="yAxis"})&&(w=[{...w[0],data:s.categoryNames??w[0].data}]);let O=w[0].data??[],A=RS(O,{width:i,height:r,horizontal:D==="yAxis",mode:s.axisLabels,fontSize:f});M=A.every;let V=Yp(O,f),k=D==="yAxis"?Math.round(V)+16:A.rotate?Math.round(V*.71)+f+2:f+12,H={...w[0],axisLabel:{...w[0].axisLabel,rotate:A.rotate,interval:A.interval,width:A.width,overflow:A.overflow}},$=(D==="yAxis"?Math.max(0,r-60):Math.max(0,i-80))/Math.max(1,O.length),oe=D==="yAxis"?wl:Math.max(24,Math.round($*(w[1]?.groupSize??1))-8),ee=w.slice(1).map(Q=>Q.groups?{...Q,offset:k,axisTick:{...Q.axisTick,length:k},axisLabel:{...Q.axisLabel,width:oe,overflow:"truncate"}}:Q);E={...E,[D]:ee.length?[H,...ee]:H}}return{...t,...C,tooltip:d,series:m,...E.xAxis?{xAxis:E.xAxis}:{},...E.yAxis?{yAxis:E.yAxis}:{},..._?{legend:_}:{},...y?{grid:y}:{},animationDuration:e.getPropertyValue("--pk-duration").trim()==="0ms"?0:400,axisEvery:M}}export{Ae as a,ne as b,be as c,q as d,le as e,I as f,ce as g,re as h,yt as i,b as j,L as k,Be as l,pO as m,Y as n,me as o,na as p,N as q,W as r,F as s,J as t,U as u,Al as v,tv as w,vO as x,z as y,Ar as z,_e as A,rt as B,B as C,Re as D,Le as E,uv as F,gO as G,cr as H,wO as I,EO as J,Ye as K,Dt as L,pv as M,Kt as N,oi as O,un as P,Vl as Q,gv as R,ln as S,ve as T,K as U,Ee as V,Ko as W,lt as X,sA as Y,uA as Z,pa as _,lA as $,mn as aa,wa as ba,_d as ca,yi as da,ps as ea,$t as fa,Ht as ga,ye as ha,ze as ia,Gt as ja,Of as ka,Ad as la,Af as ma,Xe as na,f1 as oa,it as pa,_s as qa,oI as ra,sI as sa,Id as ta,uI as ua,lI as va,fI as wa,cI as xa,v1 as ya,If as za,hI as Aa,gr as Ba,qe as Ca,xe as Da,Pf as Ea,Si as Fa,xs as Ga,gI as Ha,Ti as Ia,ie as Ja,Ff as Ka,Ts as La,En as Ma,_I as Na,D1 as Oa,Yt as Pa,xI as Qa,SI as Ra,TI as Sa,bI as Ta,zr as Ua,wI as Va,EI as Wa,Gd as Xa,bs as Ya,CI as Za,Xd as _a,DI as $a,ws as ab,K1 as bb,Tt as cb,Z as db,ht as eb,pt as fb,Sr as gb,Ke as hb,Ra as ib,km as jb,Ze as kb,Tr as lb,hc as mb,QR as nb,Ua as ob,Ba as pb,Rb as qb,$R as rb,JR as sb,tg as tb,Ec as ub,Mc as vb,Oc as wb,Wa as xb,Mg as yb,Ag as zb,Nc as Ab,kg as Bb,Pc as Cb,Fg as Db,lN as Eb,hw as Fb,pw as Gb,Vc as Hb,yw as Ib,Tw as Jb,Hg as Kb,bw as Lb,Ew as Mb,Mw as Nb,Iw as Ob,Rw as Pb,Gc as Qb,Lw as Rb,Nw as Sb,Pw as Tb,Qs as Ub,HN as Vb,GN as Wb,Xg as Xb,e_ as Yb,YN as Zb,$g as _b,$e as $b,uP as ac,Ce as bc,gP as cc,Ka as dc,CP as ec,y_ as fc,x_ as gc,T_ as hc,DP as ic,MP as jc,w_ as kc,OP as lc,hh as mc,NP as nc,FP as oc,ph as pc,oE as qc,UP as rc,Un as sc,Bn as tc,yu as uc,De as vc,gt as wc,We as xc,JP as yc,e2 as zc,I_ as Ac,Cu as Bc,Q_ as Cc,Hn as Dc,q2 as Ec,oy as Fc,sy as Gc,jE as Hc,Iu as Ic,Uk as Jc,Bk as Kc,zk as Lc,Wn as Mc,io as Nc,Ih as Oc,Wi as Pc,Lh as Qc,dF as Rc,mF as Sc,Ky as Tc,Zy as Uc,zF as Vc,YF as Wc,so as Xc,a0 as Yc,aU as Zc,oU as _c,Bh as $c,yB as ad,PB as bd,Qu as cd,DD as dd,MD as ed,OD as fd,AD as gd,JB as hd,iz as id,FD as jd,up as kd,lp as ld,rl as md,fp as nd,mz as od,YD as pd,gz as qd,cp as rd,ti as sd,_z as td,il as ud,yz as vd,vx as wd,eV as xd,Mx as yd,CV as zd,DV as Ad,MV as Bd,Ox as Cd,OV as Dd,AV as Ed,Ax as Fd,IV as Gd,RV as Hd,LV as Id,NV as Jd,rM as Kd,PV as Ld,Rx as Md,kV as Nd,Lx as Od,Nx as Pd,HV as Qd,GV as Rd,YV as Sd,zx as Td,WV as Ud,XV as Vd,qV as Wd,KV as Xd,ZV as Yd,tx as Zd,$i as _d,cl as $d,dp as ae,d5 as be,jM as ce,nO as de,ZH as ee};